Skip to content

Nakakiyo092/usb2canfdv1

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

WeActStudio.USB2CANFDV1

This repository contains sources for an alternative USB2CANFDV1 firmware. This firmware implements non-standard slcan commands to support CAN FD messaging and other new features, alongside the LAWICEL-style command set.

Frequently used commands

  • O[CR] - Opens the CAN channel
  • C[CR] - Closes the CAN channel
  • sddxxyyzz[CR] - Sets custom nominal bit rate
  • yddxxyyzz[CR] - Sets custom CANFD data segment bit rate
  • tiiildd...[CR] - Transmits base frame
  • Tiiiiiiiildd...[CR] - Transmits extended frame
  • diiildd...[CR] - Transmits CANFD base frame (BRS disabled)
  • Diiiiiiiildd...[CR] - Transmits CANFD extended frames (BRS disabled)
  • biiildd...[CR] - Transmits CANFD base frames (BRS enabled)
  • Biiiiiiiildd...[CR] - Transmits CANFD extended frames (BRS enable)
  • V[CR] and v[CR] - Returns firmware version and remote path as a string
  • Z[CR] and z[CR] - Configures reporting mechanism including time stamp and Tx event
  • M[CR] and m[CR] - Configures CAN acceptance filter
  • F[CR] - Returns status flags

[CR] : 0x0D (hex), \r (ascii)

Please find more information in the doc directory or the wiki.

How to compile firmware

Use STM32CubeIDE 1.19.0 or later.

How to upgrade firmware

Use the upgrade tool in the root repository.

Note: After flashing this firmware, there would be an issue upgrading to another firmware. You should force upgrade mode by shorting DIO and GND as described in the root repository. There would be no command to enter firmware upgrade mode.

About

An alternative USB2CANFDV1 firmware that features message filtering and tx event reporting

Topics

Resources

License

Stars

Watchers

Forks

Languages

  • C 97.5%
  • Python 2.1%
  • Other 0.4%