CANpie FD
CAN programming interface environment - Version 3.08
All Data Structures Namespaces Files Functions Variables Enumerations Enumerator Friends Macros Modules Pages
can-dump

The purpose of the command line tool can-dump is to show CAN frames from an active CANpie FD Server channel.

Description

can-dump [options] interface

The options are as follows:

-h, --help     Displays this help
-H <host>      Connect to <host>
-n <count>     Terminate after reception of <count> CAN frames
-t             Show time-stamp
-T <msec>      Terminate after <msec> without reception
-v, --version  Displays version information

The command requires a CAN interface as argument, where can1 is the first CAN interface.

Examples

Show CAN messages from CAN interface 2 and stop after 20 messages:

can-dump -n 20 can2

Connect to CAN channel 1 of a CANpie server running on a remote host with IP address 192.168.40.44, terminate after 2 seconds without reception of CAN messages:

can-dump -H 192.168.40.44 -T 2000 can1

See also

Use can-send for transmission of CAN data frames and can-error for transmission of CAN error frames.