Skip to content

elliotmr/cantest

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Setup

This module is a basic test for SocketCAN functionality in Go. This will only work with a patched version of golang.org/x/sys/unix (see patch in unix.diff).

After patching you must also set up a virtual can bus to run this code. In your shell type the following commands.

sudo modprobe vcan
sudo ip link add dev vcan0 type vcan
sudo ip link set up vcan0

Running the Test

Simply run go test -v github.com/elliotmr/cantest

About

Basic of SocketCAN functionality for Go

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages