|
CAN programming interface environment
Version 3.10
|
The purpose of the command-line tool can-send is to send CAN data frames to an active CANpie FD Server channel.
can-send [options] interface
The options are as follows:
-h, --help Displays this help. -D <dlc> Set DLC to <dlc> -f <format> Set frame format to [CBFF|CEFF|FBFF|FEFF] -g <gap> Time gap in milliseconds between multiple CAN frames -H <host> Connect to <host> -i <I|D|P> Increment the requested type -I <id> Set identifier to <id> -n <count> Terminate after transmission of <count> CAN frames -P <payload> Set payload to <payload>, i.e. a string of hex values -v, --version Displays version information.
The command requires a CAN interface as argument, where can1 is the first CAN interface.
Send a CAN data frame in CBFF with identifier 33 and DLC 4 on CAN interface 1:
can-send -I 33 -D 4 can1
Send 10 CAN data frames with a starting identifier of 100; increment the identifier for each subsequent CAN frame. Use a gap of 100 ms between transmissions on CAN interface 2:
can-send -I 100 -D 0 -iI -n 10 -g 100 can2
Use can-dump for receiving CAN data frames and can-error for transmission of CAN error frames.