Skip to content

Example code for Arduino Due or Teensy 4.0 implementing a bridge between two CAN bus networks or devices

License

Notifications You must be signed in to change notification settings

torriem/j1939bridge

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

15 Commits
 
 
 
 
 
 
 
 

Repository files navigation

j1939bridge

This is a simple example of using the due_can library and two CAN transceivers--one on the Due's CAN0 pins and the other on the CAN1 pins--in a bridge configuration. All packets that are seen by the one CAN interface are echoed to the other in both directions. Code decodes j1939 src address and PGN fields, and one could modify the code to filter out or modify specific messages as they traverse the bridge.

This code only runs on the Arduino Due.

Requires CAN transceiver chips attached to the CAN0 TX and RX and CAN1 TX/RX pins of the Due.

Capturing lots of data to the Serial port for analysis will require the use of the native USB port, which can go much faster than the normal UART on the programming USB port.

About

Example code for Arduino Due or Teensy 4.0 implementing a bridge between two CAN bus networks or devices

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages