ck send queue
Sends out a list of CAN or LIN messages, spaced apart in time.
Synopsis
ck send queue
<OUTPUT_CHANNEL_NAME_OR_ID>
[--url <String>]
[--api-key <String>]
[--language <en|zh|ja>]
[-f|--frame <FRAME>...]
[--frames-file <FRAMES_FILE>]
[-s|--separation-time <MILLISECONDS>]
[--first-frame-time <MILLISECONDS>]
[--lin]
[--no-wait]
[--list]
[--stop <QUEUED_TRANSMISSION_ID>]
ck send queue -h|--help
Arguments
OUTPUT_CHANNEL_NAME_OR_ID
The identifier/name of the output channel to be used. Not used together with –list or –stop.
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).-f|--frame
A frame to send, given as ID[#DATA][:FLAGS]. Repeat the option once per frame; the frames are sent in the order they are given. 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, e.g. 0011AABB, and may be left out for a frame with no data. The FLAGS are a comma separated list of rtr, fdf and brs, and are only valid for CAN frames. Examples: 0x123#0011223344556677, 0x18FEF100x#00FF, 0x123:rtr, 0x200#0011:fdf,brs.--frames-file
A file with one frame per line, written the same way as –frame. Blank lines and lines starting with # are ignored. Frames from the file are sent before any frame given with –frame.-s|--separation-time
The time in milliseconds to wait between frames. The spacing is applied by the CanKingService and is at least the given value.--first-frame-time
The time in milliseconds to wait before the first frame is sent.--lin
Send the frames as LIN frames. Only available in master mode.--no-wait
Return as soon as the frames have been queued, instead of waiting for the last frame to be sent. The identifier of the queued transmission is printed, and can be passed to –stop.--list
List the queued transmissions instead of sending anything.--stop
Stop the queued transmission with the given identifier, or all of them when given “all”.
Examples
ck send queue "CAN 1" --frame 0x100#0011 --frame 0x101x#AABB --separation-time 50
ck send queue "CAN 1" --frames-file frames.txt -s 10 --first-frame-time 500
ck send queue "CAN 1" --frame 0x200#0011:fdf,brs --frame 0x201:rtr
ck send queue "LIN 1" --lin --frame 1#0102030405060708 -s 100
ck send queue "CAN 1" --frames-file frames.txt --no-wait
ck send queue --list
ck send queue --stop all