latonita / arduino-canbus-monitor

Can bus monitoring tool based on arduino and can bus shield. Implements CAN ASCII/SLCAN protocol compatible with Lawicel CAN232/CANUSB. Can be used for monitoring low speed CAN (interior can bus of most cars, less than 500kbps). For higher speeds serial port can become a bottleneck in case data density is high.
MIT License
308 stars 91 forks source link

Instructions for Linux #10

Closed Mebus closed 3 years ago

Mebus commented 4 years ago

Hallo,

on Linux I used the follow instructions to create a can0 device in conjunction with sudo:

slcan_attach -f -s4 -o /dev/ttyUSB0
slcand -S 115200 /dev/ttyUSB0 can0  
ifconfig can0 up 

To dump the running traffic the following command can be used

candump can0

To delete the interface the following commands can be used:

ifconfig can0 down
killall slcand

On Debian or Ubuntu this command:

apt install can-utils

installs the neccessary packages.

Can you please add theses instructions to the Readme? :smiley:

Mebus

Mebus commented 4 years ago

And thanks for the great code, it works quite nice with my PLC! :grinning:

latonita commented 4 years ago

Thank you for feedback. I'm glad it helps people!