Skip to content

skyguru/signalbroker-server

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

13 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Elixir 90.0%
  • C 9.4%
  • Other 0.6%