Difference between revisions of "Can-utils"

From eLinux.org
Jump to: navigation, search
(Add SocketCAN can-utils tutorial)
 
(Usage: add candump)
Line 11: Line 11:
  
 
=== Usage ===
 
=== 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

Revision as of 00:46, 31 January 2014

Installation

Perform following steps to install SocketCAN utilities:

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