Our website is under construction. Please stay tuned!

leaps_anchor_list_get

Read list of surrounding anchors. Works for anchors only. Anchors in the list can be from the same network or from the neighbor network as well.


Input
  • (none)

Output
  • cnt: ? 1 byte? (element count, 15 is maximum for SPI/UART, 30 is maximum for user application)

  • node_id: ? 2 bytes ? (anchor ID)

  • position: ? 12 bytes ?

  • rssi: ? 1 byte signed? (signal strength indicator)

  • seat: ? 5 bits ? (seat number occupied by the anchor)

  • neighbor_network: ? 1 bit ? (status flags that indicates if anchor is from current network or if it is from neighbor network)


Example

TLV Request

Type

Length

0x0B

0x00

Type 0x0B means command leaps_anchor_list_get

TLV response

Type

Length

Value

0x40

0x01

0x00

TLV response (residue of the frame from previous table)

Type

Length

Value

0x56

0xE1

uint8_t - flags

uint8_t - number of elements encoded in the value

uint16_t - UWB address in little endian

3 x int32_t: position coordinates x,y,z in little endian

int8_t - RSSI

uint8_t -(bits 0-4) seat number (bit 5) neighbor_network (bits 6-7) reserved

0x00 0x00 0x00

0x00

0x0F

anchor nr. 1

nr. 2 … nr. 15

Type 0x40 means status code

Type 0x56 means anchor list