dwm_node_id_get

Gets the full UWB address of the node. The address/ID is a unique 64-bit number. It is derived from the fixed prefix 0xDECA, the MCU unique Chip ID, and the DW1000 unique Part ID in following format: 0xDECA + 28 bits MCU unique Chip ID + 20 bits DW1000 unique Part ID.

void dwm_node_id_get(uint64_t *node_id)
Parameters
  • input – (none)

  • outputStatus code, node_id

  • node_id – ? 64-bit integer ? (UWB node address/ID)

C code example

uint64_t node_id;
dwm_node_id_get(&node_id);
printf("node ID = 0x%llx \n", node_id);

SPI/UART example

TLV Request

Type

Length

0x30

0x00

Type 0x30 means command dwm_node_id_get

TLV Response

Type

Length

Value (see error codes)

Type

Length

Value

0x40

0x01

0x00

0x4E

0x08

8 bytes in little endian

0x99 0x0c 0x80 0x8d 0x63 0xef 0xca 0xde

Type 0x40 means err_code of the previous command
Type 0x4E means node ID