CAN¶
USB-CAN¶
- We at Dyno use two slightly different clones of the Lawicel CANUSB USB can interface.
Full instructions for setup and troubleshooting with socketcan on Linux can be found here.
- Here are the necessary steps in short form:
- Copy
90-slcan.rulesfrom this repo to/etc/udev/rules.d/. - Copy the contents of the
slcanfolder in this repo to/usr/local/binand make sure the scripts are exucutable. - Run
sudo apt-get install can-utils atin a terminal. - Add
can,can_rawandslcanto/etc/modulesas a list (each goes in a separate line). - Restart the computer.
- Copy
Note
With this default setup, the speed of the CAN bus is set to 1000 Kbit/s
We also have a PCAN-USB interface.
To test that everyting is working, connect an interface run candump can0 in one terminal and cansend can0 123#DEADBEEF.
You should see the message you sent in the terminal where you ran candump.