This repository contains sources for the slcan CANable 2.0 firmware. This firmware implements non-standard slcan commands to support CANFD messaging alongside a LAWICEL-style command set.
O
- Open channel in normal modeL
- Open channel in silent modeC
- Close channelS0
- Set nominal bitrate to 10kS1
- Set nominal bitrate to 20kS2
- Set nominal bitrate to 50kS3
- Set nominal bitrate to 100kS4
- Set nominal bitrate to 125k (default)S5
- Set nominal bitrate to 250kS6
- Set nominal bitrate to 500kS7
- Set nominal bitrate to 800kS8
- Set nominal bitrate to 1Msddxxyyzz
- Set nominal bitrate and bittimingY0
- Set data bitrate to 500kY1
- Set data bitrate to 1MY2
- Set data bitrate to 2M (default)Y4
- Set data bitrate to 4MY5
- Set data bitrate to 5MY8
- Set data bitrate to 8M (If supported by the CAN tranceiver)yddxxyyzz
- Set data bitrate and bittimingriiil
- Transmit remote frame (Standard ID) [ID, length]Riiiiiiiil
- Transmit remote frame (Extended ID) [ID, length]tiiildd...
- Transmit data frame (Standard ID) [ID, length, data]Tiiiiiiiildd...
- Transmit data frame (Extended ID) [ID, length, data]diiildd...
- Transmit CAN FD standard ID (no BRS) [ID, length, data]Diiiiiiiildd...
- Transmit CAN FD extended ID (no BRS) [ID, length, data]biiildd...
- Transmit CAN FD BRS standard ID [ID, length, data]Biiiiiiiildd...
- Transmit CAN FD BRS extended ID [ID, length, data]V
andv
- Returns firmware version and remote path as a stringN
- Returns and sets serial numberI
andi
- Returns CAN controller informationZ
andz
- Configure reporting mechanism including time stamp and Tx eventM
andm
- Configure CAN acceptance filterF
andf
- Returns status flags and detailed statusQ
- Turn on or off auto-startup feature
Please find more information in the doc
directory or the wiki.
Note: Channel configuration commands must be sent before opening the channel. The channel must be opened before transmitting frames.
Firmware builds with GCC. Specifically, you will need gcc-arm-none-eabi, which
is packaged for Windows, OS X, and Linux on
Launchpad. Download for your
system and add the bin
folder to your PATH.
Your Linux distribution may also have a prebuilt package for arm-none-eabi-gcc
or gcc-arm-none-eabi
, check your distro's repositories to see if a build exists. Simply compile by running make
.
Plug in your CANable2 while boot pins are shorted with jumper. Neither the blue nor the green LED should be illuminated. Next, type make flash
and your CANable will be updated to the latest firwmare. Unplug/replug the device after moving the boot jumper back, and your CANable2 will be up and running.
See LICENSE.md