ck add traffic
Adds a Traffic Generator to the current measurement setup.
Synopsis
traffic [OutputChannel] [--brs] [-b|--bs,burst-size] [-d|--data] [--fdf] [-i|--id] [-r|--interval] [-l|--language] [--name] [-n|--number-of-messages] [--random-bs] [--random-data] [--random-id] [--random-interval] [--random-length] [--rtr] [--scan-id]
Description
Adds a Traffic Generator to the current measurement setup.
Arguments
OutputChannelThe identifier/name of the output channel to be used.
Options
--brsSend flexible data frame with bit rate switch.
-b|--bs,burst-sizeThe burst size, number of messages sent out at every sample. This option is ignored if –random-bs is set. Default value is
-d|--dataThe message data, a byte array (hex format) passed as a string, e.g. 0001020304.
--fdfSend message as flexible data frame.
-i|--idThe message id. Prefix with 0x to indicate hex format. Suffix with x to indicate extended identifier.
-r|--intervalThe transmission interval (sample rate) in milliseconds. This option is ignored if –random-interval is set. Default value is 50 ms.
-l|--languageSpecify the preferred language to be used in all output strings. Default value is English (en).
--nameName of the node. Default value is ‘Traffic Generator’
-n|--number-of-messagesThe number of messages that will be sent out. Set to zero to keep sending indefinitely. Default value is 0, indefinitely.
--random-bsSet this option to send out the messages with a randomized burst size. The value should be set using format
- , e.g. 1-5. --random-dataSet this option to randomized the message data.
--random-idSet this option to send out the message with a randomized identifiers. The value should be set using format
- , e.g. 0x10-0x1F or 0x10x-0x1Fx. --random-intervalSet this option to send out the message with a randomized interval. The value should be set using format
- , e.g. 100-2000. --random-lengthSet this option to randomized the message data length.
--rtrSend message as remote request frame.
--scan-idSet this option to send out the message with identifiers going from min-id to max-id. The value should be set using format
- , e.g. 0x10-0x1F or 0x10x-0x1Fx.
Examples
ck add traffic "CAN 1" --id 0xABx -d 0001020304 --interval 500 --name "C1 traffic generator"