ck update traffic

Updates an existing Traffic Generator node in the current measurement setup.

Synopsis

ck update traffic
    <TRAFFIC_NAME_OR_ID>
    [--url <String>]
    [--api-key <String>]
    [--language <en|zh|ja>]
    [--name <NODE_NAME>]
    [-i|--id <MESSAGE_ID>]
    [-d|--data <MESSAGE_DATA>]
    [--request <True|False>]
    [--rtr <True|False>]
    [--fdf <True|False>]
    [--brs <True|False>]
    [-r|--interval <INTERVAL_MS>]
    [-n|--number-of-messages <NUMBER_OF_MESSAGES>]
    [--random-length <True|False>]
    [--random-data <True|False>]
    [--random-interval <MIN_MS-MAX_MS>]
    [--random-id <MIN_ID-MAX_ID>]
    [--scan-id <MIN_ID-MAX_ID>]
    [-b|--burst-size <BURST_SIZE>]
    [--random-bs <MIN_SIZE-MAX_SIZE>]

ck update traffic -h|--help

Arguments

  • TRAFFIC_NAME_OR_ID
    The name or identifier of the Traffic Generator node to update.

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).

  • --name
    New name for the node.

  • -i|--id
    The message id. Prefix with 0x to indicate hex format. Suffix with x to indicate extended identifier.

  • -d|--data
    The message data, a byte array (hex format) passed as a string, e.g. 0001020304.

  • --request
    LIN only. Send just a message header, letting a slave fill in the data.

  • --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.

  • -r|--interval
    The transmission interval (sample rate) in milliseconds.

  • -n|--number-of-messages
    The number of messages that will be sent out. Set to zero to keep sending indefinitely.

  • --random-length
    Set this option to randomize the message data length.

  • --random-data
    Set this option to randomize the message data.

  • --random-interval
    Set this option to send out the message with a randomized interval. The value should be set using format -, e.g. 100-2000.

  • --random-id
    Set this option to send out the message with randomized identifiers. The value should be set using format -.

  • --scan-id
    Set this option to send out the message with identifiers going from min-id to max-id. The value should be set using format -.

  • -b|--burst-size
    The burst size, number of messages sent out at every sample.

  • --random-bs
    Set this option to send out the messages with a randomized burst size. The value should be set using format -.

Examples

ck update traffic "Traffic Generator" --id 0xAB --interval 500
ck update traffic "Traffic Generator" --number-of-messages 100
ck update traffic 1875f340-a9c4-4d5b-993c-b08ce4bdfca2 --name "My Traffic Generator"