A message for defining a log replay's settings.

interface LogReplaySettings {
    channelIdentifiers: { [key: string]: string };
    higherVariance?: number;
    includeErrorFrames: boolean;
    increaseSpeed?: boolean;
    iterations: number;
    logFile: string;
    lowerVariance?: number;
    sampleRateMs: number;
    sendFirstMessageMode: number;
    timeFactor?: number;
    timeOffsetMs?: number;
    transceiverMode: number;
}

Properties

channelIdentifiers: { [key: string]: string }

A dictionary consisting of the channels found in the log file mapped to the channel identifiers to be used when replaying the file.

higherVariance?: number

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

includeErrorFrames: boolean

Replay error frames as well. Default value is false.

increaseSpeed?: boolean

Increase the speed by the time factor. Default value is true.

iterations: number

Number of iterations to loop the log file. Set to -1 to iterate forever. Default value is 1.

logFile: string

Full path to the log file to read CAN frames from.

lowerVariance?: number

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

sampleRateMs: number

Static sample rate in milliseconds to send the CAN frames at. If zero, timestamps from the log file will be used. Default value is 0.

sendFirstMessageMode: number

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

timeFactor?: number

Factor in percentage for speeding up or down the waiting time until sending the next message.

timeOffsetMs?: number

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

transceiverMode: number

If only Rx (1), Tx (2), or both (3) messages shall be replayed. Default value is 1 (Rx).