ck send can
Sends out a CAN message.
Synopsis
ck send can
<OUTPUT_CHANNEL_NAME_OR_ID>
[--url <String>]
[--api-key <String>]
[--language <en|zh|ja>]
[-i|--id <MESSAGE_ID>]
[-d|--data <MESSAGE_DATA>]
[-f|--frame <FRAME>]
[--rtr]
[--fdf]
[--brs]
ck send can -h|--help
Arguments
OUTPUT_CHANNEL_NAME_OR_ID
The identifier/name of the output channel to be used.
Options
--url
Specify the URL of the CanKingService if connecting to a remote host. Falls back to the CANKING_REMOTE_URL environment variable. If not specified, the command will connect to a local CanKingService instance.--api-key
API key required when connecting to a remote CanKingService instance. Falls back to the CANKING_REMOTE_API_KEY environment variable.--language
Specify the preferred language to be used in all output strings. Default value is English (en). Supported languages are English (en), Chinese (zh), and Japanese (ja).-i|--id
The message id. Prefix with 0x to indicate hex format. Suffix with x to indicate extended identifier. Not used together with –frame.-d|--data
The message data, a byte array (hex format) passed as a string, e.g. 0001020304. Not used together with –frame.-f|--frame
The whole message given as ID[#DATA][:FLAGS], as an alternative to –id, –data and the flag options. The ID is decimal, or hex when prefixed with 0x, and is an extended identifier when suffixed with x. The DATA is a byte array in hex format, and may be left out for a message with no data. The FLAGS are a comma separated list of rtr, fdf and brs. Examples: 0x123#0011223344556677, 0x18FEF100x#00FF, 0x123:rtr, 0x200#0011:fdf,brs.--rtr
Send message as remote request frame.--fdf
Send message as flexible data frame (CAN FD frame).--brs
Send flexible data frame with bit rate switch.
Examples
ck send can "CAN 1" --id 0xAB -d 0001020304
ck send can "CAN 1" --id 0xABx -d 0001020304 --fdf --brs
ck send can "CAN 1" --id 0x123 -d 00 --rtr
ck send can "CAN 1" --frame 0xAB#0001020304
ck send can "CAN 1" --frame 0xABx#0001020304:fdf,brs