Setting up Linux and Getting the Device CANBUS ID
- SSH into the HOST device and edit the can0 file
sudo nano /etc/network/interfaces.d/can0
- Add the following if not already there. (Set the CANBus speed the same as the speed set in the firmware CAN bus speed)
auto can0
iface can0 can static
bitrate 1000000
up ifconfig $IFACE txqueuelen 1024
- Save (ctl+s), quit(ctl-x), and reboot the HOST device.
- Every device on CANBus generates a canbus_uuid based on the MCU’s UID, to find each microcontroller device ID, make sure the hardware is powered on and wired correctly, then run the following:
~/klippy-env/bin/python ~/klipper/scripts/canbus_query.py can0
- If an uninitialized CAN BUS Device exists, you will get a message similar to the following
Found canbus_uuid=0e0d81e4210c