Difference between revisions of "Can-utils"

From eLinux.org
Jump to: navigation, search
(Usage: add candump)
(Installation: change download location as package moved to GitHub)
Line 3: Line 3:
 
Perform following steps to install SocketCAN utilities:
 
Perform following steps to install SocketCAN utilities:
  
* git clone https://git.gitorious.org/linux-can/can-utils.git
+
* git clone https://github.com/linux-can/can-utils.git
 
* cd can-utils
 
* cd can-utils
 
* ./autogen.sh
 
* ./autogen.sh

Revision as of 14:00, 4 March 2015

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