Skip to content

msplr/CAN-USB-dongle-fw

 
 

Repository files navigation

CVRA CAN to USB interface Build Status

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.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • C 76.7%
  • C++ 8.8%
  • Objective-C 6.7%
  • Makefile 5.9%
  • Shell 1.0%
  • Python 0.7%
  • Other 0.2%