Dedicated USB CAN device
If you want to use a dedicated USB CAN devcice, then it should be as simple as plugging it in to your Pi via USB. You shouldn’t have to flash anything to this U2C/UTOC/etc device first, they are meant to come pre-installed with the necessary firmware. They do NOT run Klipper. You can test if it is working by running an lsusb
command (from an SSH terminal to your pi). Most common USB CAN devices will show up as a “Geschwister Schneider CAN adapter” when they are working properly (though some may simply show as an “OpenMoko, Inc” device):
A better check is by running ip -s -d link show can0
. If everything is correct you will see something like this:
You see a can0 interface, the “qlen” will be 1024, and the bitrate will be 1000000
If the
ip -s -d link show can0
command returns an error then go back to ths top of this page and check that your USB CAN adapter is properly showing up to anlsusb
command.If the can0 network shows up, but the qlen isn’t 1024 or the bitrate isn’t 1000000 then go back to Getting_Started and check the can0 file settigns in both the ifupdown section and the netplan section.
A note on edge cases
If you plug in your USB CAN adapter and you don’t see the expected results from an lsusb
, then the firmware on your device may have issues. If this is the case then it’s worth going to the Github page of your device as they usually have the stock firmware and flashing instructions there.
A note on the note
The BTT U2C V2.1 was released with bad firmware which although would show up to the above tests it would make issues show up down the line. If you have a v2.1 of the U2C then please follow these instructions to update it.
Next Step
Once you have confirmed you can see your can0 interface, continue here for instructions on flashing your toolhead for use with Canbus.