ck add logreplay
Adds a Log Replay node to the current measurement setup.
The supported file formats are: .csv, .log, .mf4, .txt, .asc, .blf, .kme, .kme25, .kme40, .kme50
Synopsis
logreplay [CHANNELMAPPINGS] [--decrease-speed] [--higher-variance] [--include-error-frames] [-i|--iterations] [-l|--language] [--lower-variance] [-n|--name] [-p|--path] [-s|--samplerate] [-m|--send-first-message-mode] [--time-factor] [-o|--time-offset] [-t|--transceiver-mode]
Description
Adds a Log Replay node to the current measurement setup.
The supported file formats are: .csv, .log, .mf4, .txt, .asc, .blf, .kme, .kme25, .kme40, .kme50
Arguments
CHANNELMAPPINGSJSON string mapping a channel found in the log file to the channel identifier to be used when replaying the file. Example: ‘{“1”:”abc1-def2-ghi3-4567j”}’
Options
--decrease-speedDecrease the speed by the time factor. By default, the speed will be increased.
--higher-varianceMaximum waiting time variance (0-1) for how long to wait before sending the next message. The resulting range will be between the time factor and the time factor plus the higher variance.
--include-error-framesReplay error frames as well. Default value is false.
-i|--iterationsNumber of iterations to loop the log file. Set to -1 to keep looping indefinitely. Default value is 1.
-l|--languageSpecify the preferred language to be used in all output strings. Default value is English (en).
--lower-varianceMinimum waiting time variance (0-1) for how long to wait before sending the next message. The resulting range will be between the time factor and the time factor minus the lower variance.
-n|--nameName of the node. Default value is ‘Log replay’
-p|--pathFull path to the log file to read CAN frames from.
-s|--samplerateStatic sample rate in milliseconds to send the CAN frames at. If zero, timestamps from the log file will be used. Default value is
-m|--send-first-message-modeSend the first message straight away (1), after the time specified in the log file (2) or after an offset (3). Default value is 1 (send directly).
--time-factorFactor in percentage for speeding up or down the waiting time until sending the next message.
-o|--time-offsetTime offset in milliseconds until sending the first message. Default value is 0. This parameter shall be used together with the mode for sending the first message after an offset (3).
-t|--transceiver-modeIf only Rx (1), Tx (2), or both (3) messages shall be replayed. Default value is 1 (Rx).
Examples
ck add logreplay '{"1":"abc1-def2-ghi3-4567j"}' -p full/path/to/file -t 3