Our website is under construction. Please stay tuned!

leaps_dist_alarm_cfg_set

Changes configuration of distance alarm detection. Writes internal flash, do not use it frequently.


Input
  • 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))

Output

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

0x33

0x0B

0xDC 0x05 0x00 0x00

0xC4 0x09 0x00 0x00

0x02

0x02

0x01

Type 0x33 (51 dec) means command leaps_dist_alarm_cfg_set

TLV response

Type

Length

Value

0x40

0x01

0x00

Type 0x40 means status code