A Go Linux/Windows/OSX CAN library
Linux maintainer wanted! Please contact me at gocan@roffe.nu if you want to help out.
- ftdi - d2xx based FTDI support
- canlib - requires client32.dll
- canusb - requires canusbdrv(64).dll
- combi - requires libusb-1.0.dll
- j2538 - requires vendor DLL to be installed
- pcan - requires PCANBasic.dll
Get goCAN
go get github.com/roffe/gocan@latest
Import the package in your imports
import (
...
"github.com/roffe/gocan"
)
- OBDLinx SX/EX/MX/MX+: https://www.obdlink.com/
- STN1130
- STN1170
- STN2120
- CANUSB adapter running in VCP mode using Lawicel ascii api
- CANable Nano and Pro 1.0 & 2.0 running slcan
- YACA
these adapters can be accessible directly using the d2xx api from FTDI
- CombiAdapter
Supported via goCANUSB
Lawicel canusbdrv.dll for both 32 and 64bit is supported
Supported via goCANlib, Tested with the following adapters
- Kvaser Leaf Light V2 https://kvaser.com/
Support for both 32 & 64bit DLL's. Your GOARCH will controll which DLL it will look for.
Do note that not all vendors provide 64bit DLL's so you migh need to build your software with GOARCH=386 to be able to use the j2534 DLL. I've made a experimental CAN gateway that can be accessed over gRCP on linux or named pipes on windows to be able to use 32bit DLL's on 64bit systems. See goCANGateway
Most adapters that comes with a J2534 DLL will work. The list given is just ones verified to work.
- Drewtech Mongoose GM PRO II: https://www.drewtech.com/
- Scanmatik 2 PRO: https://scanmatik.pro/
- Tech2 passthru ( limited support )
- GM MDI
- OBDX Pro GT/VT: https://www.obdxpro.com/
- Kvaser Leaf Light V2: https://kvaser.com/
- PCAN-USB
- Tactrix Openport 2.0: https://github.com/dschultzca/j2534
- Machina: https://github.com/rnd-ash/Macchina-J2534
- WQCAN: https://github.com/witoldo7/STM32CAN
- SocketCAN
- OBDX Pro GT BLE & Wifi
- Combiadapter via libusb