B&B Electronics LDVDSV2-S-P9D - Manual User Manual
Page 33

OBDII Streamer Command & Response
V2.11
Page 33/49
0x31 – SET_THRESHOLD_UPDATES
Description:
This command will setup the threshold triggered messages for a single parameter.
Note that when a threshold is tripped and a message is sent to the host the message will
be packaged in the same format as command 0x22 but with a new control byte.
Threshold based update messages will use control byte 0xC1.
The SET_UPDATE_MODE command must be sent to enable all parameters configured
for threshold based updates to be sent.
Command to Send:
0x01 0x01 0x31 0x04 PID SETTINGS TVALUE CS
Response:
0x01 0x01 0xB1 0x04 PID SETTINGS TVALUE CS
Field Description:
PID
This field is a 1 byte PID. Use this field to select the PID that will
be configured.
SETTINGS
Threshold Settings
Bit 0 - This bit will enable or disable threshold updates for the
selected parameter.
0x00 = Disabled
0x01 = Enabled
If disabling a parameter the TVALUE byte must be sent, but can
be set to any value since it will be ignored.
Bit 1 – This bit specifies if trigger level is greater than or less than
the TVALUE.
0 = Send a message when the parameter > TVALUE
1 = Send a message when the parameter < TVALUE
The TVALUE is compared to the value returned by the
device before the parameter scaling is applied. If the
parameter being configured has 2 states set the threshold to
(< 1) or (> 0). If the parameter being configured is a 4 byte
parameter the TVALUE will be compared to all 4 byte of
the value.