Skip to content

Example code for sniffing j1939 messages on a CAN bus using the Arduino Due, or Teensy 3.6 or 4.0, and a CAN transceiver.

License

Notifications You must be signed in to change notification settings

torriem/j1939sniff

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 

Repository files navigation

j1939sniff

This is a simple example of using the due_can library on the Arduino Due, or FlexCAN_T4 on the Teensy 3.6 or Teensy 4.0 to sniff j1939 packets on a CAN bus. If you want to filter the messages just add some if statements to the got_frame() function. This code only runs on the Arduino Due.

Requires a CAN transceiver chip attached to the CAN0 TX and RX pins of the Due, CAN0 on the Teensy 3.6, or CAN1 on the Teensy 4.0.

Capturing lots of data to the Serial port for analysis on the Due will require the use of the native USB port, which can go much faster than the normal UART on the programming USB port. The Teensy USB Serial devices are already full speed.

About

Example code for sniffing j1939 messages on a CAN bus using the Arduino Due, or Teensy 3.6 or 4.0, and a CAN transceiver.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages