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.

  1. 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.

  2. Open virtualbox, click your ‘box’ VM, and click ‘settings’

  3. Go to the USB tab and press the ‘add filter’ button

  4. In the dropdown, click the one that says “Protofusion Labs CANable …”

    1. I have two of them plugged in, that’s why two appear on the list.

  5. 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, run ls /dev/ | grep ACM and choose the highest number that appears (which might just be 0)

  6. You should be all set up! to dump CAN messages, run candump can0