The CANtact device is a single channel USB CAN interface. It can be used to connect to CAN bus systems, including cars, heavy duty vehicles, and industrial automation systems. CANtact works on Linux, OS X, and Windows.
With a CANtact and an OBD-II to DE9 cable, it is very easy to get onto the OBD-II CAN bus of any CAN enabled vehicle.
Connections & Jumpers
CANtact uses a USB-B cable to interface with your computer. These cables are commonly used to connect printers as well.
The DE9 connector of the CANtact allows for two pin mappings for different use cases:
- Pins 7 (CAN high), 2 (CAN low), and 3 (ground) for standard CAN connections
- Pins 3 (CAN high), 5 (CAN low), and 1 (ground) for use with an OBD-II to DB9 cable. This is compatible with the Sparkfun OBD-II cable.
The pins can be selected using the jumpers on board.
The final jumper is for CAN termination. Place the jumper beside the "CTE" marking to place 120 ohms across CAN high and CAN low. This is commonly used in development, when you are only interfacing with a single CAN device.
To use the tools discussed in this book, you must ensure your CANtact is running the CandleLight firmware. The firmware can be downloaded from Github.
After downloading, follow the steps in Updating Firmware to perform the update.
The CANtact can be updated over USB. First, you will need to put the device into DFU mode by following these steps:
- Disconnect the USB cable from the CANtact
- Connect the two "BOOT" pins
- While the pins are connected, plug the USB cable into the CANtact
- The CANtact device is now in DFU mode
The next steps depend on what OS you are using.
- Install the ST DfuSe Tool
- Open the DfuSe tool
- Click "Choose..." and select a DFU firmware file
- Check the "Verify after download" box
- Click Upgrade
- Wait for the "Verify successful !" message at the bottom of the window.
- Unplug the USB cable, disconnect the "BOOT" pins, and reconnect the USB cable. The device is now updated!
Linux & macOS
Flashing on Linux and macOS requires
On macOS, this can be installed from Brew:
brew install dfu-util.
On Ubuntu, install dfu-util with:
sudo apt install dfu-util.
dfu-util is installed, use it to flash the device:
sudo dfu-util --dfuse-address -d 0483:df11 -c 1 -i 0 -a 0 -s 0x08000000 -D FIRMWARE_FILE.bin
Once this is complete, unplug the USB cable, disconnect the "BOOT" pins, and reconnect the USB cable. The device is now updated!