leaps_cfg_tag_set

Configure node as tag with given options. Encryption can’t be enabled if the encryption key is not set. This call requires reset for a new configuration to take effect (leaps_reset). This call does a write to internal flash in case of new value being set, hence should not be used frequently and can take in worst case hundreds of milliseconds!


Input
  • stnry_en: 1-bit (‘0’ | ‘1’ Stationary detection enabled, if enabled, the stationary update rate is used instead of normal update rate if node is not moving)

  • meas_mode: 2-bits (‘0’ - TWR, Two way ranging, ‘1’ - TDOA, time difference of arrival, ‘2’, ‘3’ - reserved)

  • low_power_en: 1-bit (‘0’ | ‘1’ Low-power mode enable)

  • loc_engine_en: 1-bit (‘0’ | ‘1’ 0 means do not use internal Location Engine, 1 means internal Location Engine)

  • enc_en: 1-bit (‘0’ | ‘1’ encryption enable)

  • led_en: 1-bit (‘0’ | ‘1’ general purpose LEDs enable)

  • ble_en: 1-bit (‘0’ | ‘1’ BLE enable)

  • uwb_mode: 2-bits (‘0’ | ‘1’ | ‘2’ 0-off, 1-passive, 2-active)

  • fw_update_en: 1-bit (‘0’ | ‘1’ Firmware update enable)

  • profile_id: 3-bit unsigned integer (ID of the profile)

  • uwb_act_ble: 1-bit unsigned integer (UWB activation over BLE)

Output

Example

TLV response

Type

Length

Value

(bit 7) low_power_en
(bit 6) loc_engine_en
(bit 5) enc_en
(bit 4) led_en
(bit 3) ble_en
(bit 2) fw_update_en
(bits 0-1) uwb_mode
(bits 4-7) reserved
(bit 3) uwb_act_ble
(bit 2) stnry_en
(bits 0-1) meas_mode

(bits 0-2) profile id

0x05

0x03

0x72

0x04

0x05

Type 0x05 means command leaps_cfg_tag_set

TLV response

Type

Length

Value

0x40

0x01

0x00

Type 0x40 means status code