Skip to content

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

Linux maintainer wanted! Please contact me at gocan@roffe.nu if you want to help out.

Build tags

  • 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

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

d2xx based FTDI adapters

these adapters can be accessible directly using the d2xx api from FTDI

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

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