Difference between revisions of "Can-utils"

From eLinux.org
Jump to: navigation, search
(Installation: change download location as package moved to GitHub)
(candump)
 
(One intermediate revision by the same user not shown)
Line 9: Line 9:
 
* make
 
* make
 
* make install (with root privileges)
 
* make install (with root privileges)
 +
 +
 +
OR using apt-get
 +
* sudo apt-get install can-utils
  
 
=== Usage ===
 
=== Usage ===
Line 19: Line 23:
 
   vcan0  123  [4]  01 AA BB 23
 
   vcan0  123  [4]  01 AA BB 23
 
   vcan0  123  [4]  01 AA BB 24
 
   vcan0  123  [4]  01 AA BB 24
 +
 +
 +
  for more information, use the help file
 +
* candump -help
 +
 +
== cansniffer ==
 +
 +
cansniffer is a tool that organizes can information by Arbitration ID and allows users to determine what values are changing. by default, if any arbitration ID doesn't receive "Different" information in the packet after 5 seconds, the data will be cleared from the screen.
 +
 +
* cansniffer can0
 +
 +
for more information, use the help file
 +
* cansniffer -help

Latest revision as of 13:32, 22 June 2020

Installation

Perform following steps to install SocketCAN utilities:


OR using apt-get

  • sudo apt-get install can-utils

Usage

candump

candump let you sniff CAN packets from one or more CAN interfaces with lots of other useful options to filter, redirect messages etc. Here just a small example:

 candump vcan0
 vcan0  123   [4]  01 AA BB 22
 vcan0  123   [4]  01 AA BB 23
 vcan0  123   [4]  01 AA BB 24


 for more information, use the help file
  • candump -help

cansniffer

cansniffer is a tool that organizes can information by Arbitration ID and allows users to determine what values are changing. by default, if any arbitration ID doesn't receive "Different" information in the packet after 5 seconds, the data will be cleared from the screen.

* cansniffer can0

for more information, use the help file

* cansniffer -help