dwm_node_id_get
Gets the UWB address of the node. The address/id is a unique 64-bit number. It is derived from a fixed prefix 0xDECA, MCU unique Chip ID, and DW1000 unique Part ID in this 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)
output – err_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