Skip to content

Latest commit

 

History

History
79 lines (56 loc) · 2.27 KB

README.md

File metadata and controls

79 lines (56 loc) · 2.27 KB

Signalbroker

Development tool to access can/lin and other buses using grpc which allows usage of preferred language.

Disclaimer

Documentaion is still ongoing, Project is operational but custom dbc/ldf/human fields are required.

Hardware

The software can execute on any linux with socketcan. On hosts without hardware can interfaces can be configured using:

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

System is configured using interfaces.json

extensive reference can be found here link

Real deal

In order to access real can the following hardware can be used.

Suggested hardware

Works is ongoing for canfd support which is in experimental stage.

Accessing the server

Signalbroker is headless but can be accessed using the grpc-web frontend

To get aquainted to the system the easiest way to get going is by checking out the simple telnet guide

However, the preferred way of accessing the system is by using grpc. Follow this link

Starting the server

  • Install elixir
  • Clone this repository
  • Make sure your configuration/interfaces.json makes sense (or try out of the box)
  • Start the software by doing
mix deps.get
iex -S mix

Playback for off line purposes

On your linux

apt-get install can-utils

record can from a real network

candump -L can0 > myfile.log

once you configured your interfaces.json to use virtual can interfaces by setting using vcan instead of can just play back your recorded file

canplayer vcan0=can0 -I myfile.log

Running examples with fake data

install can-utils as described above the generate fake data using:

cangen vcan0  -v -g 4

TODO

  • Provide pre build docker image
  • Add default configuration
  • Add grpc sample code