Skip to content
/ gocan Public

Golang CAN library with support for various USB adapters and J2534

License

Notifications You must be signed in to change notification settings

roffe/gocan

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

goCAN

A Go Linux/Windows/OSX CAN library

Build tags

  • combi - requires libusb-1.0.dll
  • canlib - requires client32.dll
  • canusb - requires canusbdrv(64).dll
  • j2538 - requires vendor DLL to be installed

Usage

Get goCAN

go get github.com/roffe/gocan@latest

Import the package in your imports

import (
	...
	"github.com/roffe/gocan"
)

Showcase

Supported Adapters

USB Serial

libusb

  • CombiAdapter

Canusb DLL

Supported via goCANUSB

Lawicel canusbdrv.dll for both 32 and 64bit is supported

Kvaser Canlib

Supported via goCANlib, Tested with the following adapters

J2534

Support for both 32 & 64bit DLL's. Your GOARCH will controll which 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

Most adapters that comes with a J2534 DLL will work. The list given is just ones verified to work.

Windows

Linux

Other

  • SocketCAN
  • OBDX Pro GT BLE & Wifi
  • Combiadapter via libusb

About

Golang CAN library with support for various USB adapters and J2534

Topics

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Contributors 3

  •  
  •  
  •  

Languages