This is the program I use on the Raspberry PI CAN simulator to help develop and test the Carloop open-source car adapter.
It is written in Go, using embd, the Embedded Programming Framework in Go.
The driver for the MCP2515 CAN controller defines CAN message structures and takes care of the communication with the CAN controller over SPI.
Currently the main program prints any CAN message received and sends a test message every 10 milliseconds.
- Install Go on the Raspberry Pi
- Run
go get githbub.com/carloop/simulator-program
- In the simulator-program directory, compile with
go build
- With the simulator board attached, run
./simulator-program
Copyright 2016 Julien Vanier. Distributed under the MIT license. See LICENSE for details.