Slcan Cabana (martinloretzzz.github.io/cabana/)
This is a fork of cabana supports slcan(also known as Lawicel protocol) devices instead of the comma panda.
This fork doesn't support pandas and or comma connect, only use realtime streaming with slcan devices.
The device count, serial baud rate and the can bus bitrate can be configured by url params:
- deviceCount: 1-4, default: 1
- serialBaudRate: integer, default: 115200
- canBitRate: 10kbit, 20kbit, 50kbit, 100kbit, 125kbit, 250kbit, 500kbit, 800kbit, 1Mbit, only these values are allowed, default: 500kbit
The common automotive bitrate seams to be 500kbit, but I can't find a good source
Examples:
-
Use one can interface for automotive: https://martinloretzzz.github.io/cabana/
-
Use one can interface and an odrive(bitrate: 250kbit): https://martinloretzzz.github.io/cabana/?canBitRate=250kbit
-
Use two slcan interfaces for automotive(bitrate: 500kbit): https://martinloretzzz.github.io/cabana/?deviceCount=2&canBitRate=500kbit
-
Use a slcan interface with specific serial baud rate of 57600: https://martinloretzzz.github.io/cabana/?serialBaudRate=57600
All slcan/Lawicel compatible usb/can interfaces To read multiple can buses, you need multiple usb/can interfaces
I use a CANable, that works really well.
Devices(only CANable is tested and works for sure, CANtact also likely, because it uses the same fw):
martinloretzzz#2635 on the comma.ai discord
Cabana is a tool developed to view raw CAN data. One use for this is creating and editing CAN Dictionaries (DBC files), and the tool provides direct integration with commaai/opendbc (a collection of DBC files), allowing you to load the DBC files direct from source, and save to your fork. In addition, you can load routes from comma connect.
See openpilot wiki
yarn
yarn run sass
yarn start
yarn run test
npm version patch
git push origin master --tags # push version patch
yarn run deploy # builds and deploys to github pages
You can safely ignore those errors even though it returns 1. If you'd like them to go away just because they're annoying, install libusb-dev...
sudo apt-get install -y libusb-dev libudev-dev
or
brew install libusb
This project was bootstrapped with Create React App v1.x, then upgraded to react-scripts
v3.x and use craco to customize it.
You can read the create react app documentation here
We use craco to easily add worker-loader.
THIS IS ALPHA QUALITY SOFTWARE FOR RESEARCH PURPOSES ONLY. THIS IS NOT A PRODUCT. YOU ARE RESPONSIBLE FOR COMPLYING WITH LOCAL LAWS AND REGULATIONS. NO WARRANTY EXPRESSED OR IMPLIED.