Our website is under construction. Please stay tuned!

leaps_uwb_scan_result_get not implemented

Reads last scan result of the UWB network. The scan must be first started by leaps_uwb_scan_start. The end of the scan that was started is communicated to the user by event. The event can set dedicated GPIO pin (CORE_INT) if enabled by leaps_int_set. The status flag is set when the event is generated. The status is read by API call leaps_status_get.


Input
  • (none)

Output
  • Status Code

  • mode: ? 1 byte, unsigned integer ?

  • mode 0: channel=5 PRF=64 PREAMBLE_LENGTH=128 PAC_SIZE=8 TXCODE=9 RXCODE=9 STANDARD_FRAME_DELIM=0 BAUD_RATE=6800 PHR_EXTENDED SFD_TIMEOUT=129 SMARTPOWER=1

  • mode 1: channel=5 PRF=16 PREAMBLE_LENGTH=128 PAC_SIZE=8 TXCODE=9 RXCODE=9 STANDARD_FRAME_DELIM=0 BAUD_RATE=6800 PHR_EXTENDED SFD_TIMEOUT=129 SMARTPOWER=1*)

  • rssi: ? 1 byte, signed integer ? (UWB signal strength indication in dB)


Example

TLV request

Type

Length

0x24

0x00

Type 0x24 means command leaps_uwb_scan_result_get

TLV response

Type

Length

Value

Type

Length

Value

byte 0: mode
byte 1: rssi
byte 2: mode
byte 3: rssi

0x40

0x01

0x00

0x5C

0x04

0x00 0xFE 0x01 0xFD

Type 0x5C means UWB scan result