Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/cvra/CAN-USB-dongle-fw
slcan firmware for the CVRA CAN to USB dongle
https://github.com/cvra/CAN-USB-dongle-fw
c can-bus chibios embedded slcan-protocol socketcan stm32
Last synced: 28 days ago
JSON representation
slcan firmware for the CVRA CAN to USB dongle
- Host: GitHub
- URL: https://github.com/cvra/CAN-USB-dongle-fw
- Owner: cvra
- Created: 2015-08-06T12:25:25.000Z (over 9 years ago)
- Default Branch: master
- Last Pushed: 2021-03-23T21:59:29.000Z (over 3 years ago)
- Last Synced: 2024-08-10T12:39:59.865Z (4 months ago)
- Topics: c, can-bus, chibios, embedded, slcan-protocol, socketcan, stm32
- Language: C
- Homepage:
- Size: 173 KB
- Stars: 36
- Watchers: 5
- Forks: 12
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
- awesome-canbus - CAN-USB-dongle-fw - A slcan firmware for the CVRA CAN to USB dongle (STM32F302). (Hardware / ARM)
README
# CVRA CAN to USB interface
[![STM32 builds](https://github.com/cvra/CAN-USB-dongle-fw/actions/workflows/build.yml/badge.svg)](https://github.com/cvra/CAN-USB-dongle-fw/actions/workflows/build.yml)
## Usage
use with SocketCAN
```
sudo modprobe can
sudo modprobe can-raw
sudo modprobe slcan# configure CAN interface
sudo slcan_attach -s8 -o /dev/ttyACM0
sudo slcand ttyACM0 slcan0
sudo ifconfig slcan0 up# use with can-utils
cansend slcan0 123#2a
candump slcan0
```## Building & flashing
```
# make sure all submodules are initialized
git submodule update --init# building
make# flashing using USB DFU
# to enter DFU mode, press the button while plugging USB in.
make dfu
```## Supported commands
- 'T', 't', 'R', 'r': send CAN frames
- 'Sx': set bitrate
- 'O': open channel
- 'l', 'L': open in loop back or silent mode
- 'C': close channel
- 'V', 'v': hardware and software version
- 'P', 'p': turn bus power on and off respectively.
This is a proprietary extension to the SLCAN protocol.
A tool is included to make use of this feature.