CANable CAN-USB adapter setup
All our infrastructure (dev environment) is super legacy so I don’t know how all of it works. There’s probably a better way to do this, but for now here’s some instructions for setting up the new CAN adapters.
Acquire the necessary wires (micro-usb) and connect the adapter to your computer. Connect CANL and CANH to whatever you’re trying to get messages from.
Open virtualbox, click your ‘box’ VM, and click ‘settings’
Go to the USB tab and press the ‘add filter’ button
In the dropdown, click the one that says “Protofusion Labs CANable …”
I have two of them plugged in, that’s why two appear on the list.
Next, in a terminal ssh’ed into your box, run
sudo slcand -o -c -s6 /dev/ttyACM0 slcan0 sudo ip link set up slcan0
note: it may be
ttyACM1
,ttyACM2
, etc. To find out which one, runls /dev/ | grep ACM
and choose the highest number that appears (which might just be 0)You should be all set up! to dump CAN messages, run
candump can0