leaps_dist_alarm_cfg_set
Changes configuration of distance alarm detection. Writes internal flash, do not use it frequently.
threshold_1: ? 32-bits unsigned integer ? (distance threshold in millimeters)
threshold_2: ? 32-bits unsigned integer ? (distance threshold in millimeters)
mincon: ? 8-bits unsigned integer ? (threshold hysteresis in multiple of update rate)
minnoconn: ? 8-bits unsigned integer ? (threshold hysteresis in multiple of update rate)
options: ? 8-bits unsigned integer ? (alarm indication options, 0 - LED (discrete), 1 - LED (continuous), 2 - Buzzer (continuous), 3 - Motor (continuous))
Example
TLVT response |
|||||||
---|---|---|---|---|---|---|---|
Type |
Length |
Value |
|||||
distance
threshold
nr.1
(millimeters)
|
distance
threshold
nr.2
(millimeters)
|
mincon |
minnocon |
options
bits (3-7) -
reserved
bits (0-2) -
alarm
indication
options
|
reserved (8 bytes) |
||
0x33 |
0x13 |
0xDC 0x05 0x00 0x00 |
0xC4 0x09 0x00 0x00 |
0x02 |
0x02 |
0x01 |
0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 |
Type 0x33 (51 dec) means command leaps_dist_alarm_cfg_set
TLV response |
||
---|---|---|
Type |
Length |
Value |
0x40 |
0x01 |
0x00 |
Type 0x40 means status code