dwm_bh_status_get
Gets the current UWBMAC backhaul status. The node must be configured as a bridge.
-
void dwm_bh_status_get(void)
- Parameters
input – (none)
output – sf_number, bh_seat_map, origin_cnt, {origin_info}
sf_number – 16-bit integer (current superframe number)
bh_seat_map – 32-bit integer (seat map in the current superframe)
origin_cnt – 8-bit integer (range is from 0 to 8)
origin_info – node_id, bh_seat, hop_lvl (element in the list of origins)
node_id – 16-bit integer (origin address)
bh_seat – 8-bit integer (seat that the origin occupies, range from 0 to 8)
hop_lvl – 8-bit integer (hop level)
C code example
Not available in the on-module user application.
SPI/UART example
TLV Request |
|
---|---|
Type |
Length |
0x3A |
0x00 |
Type 0x3A means command dwm_bh_status_get
TLV response |
|||||
---|---|---|---|---|---|
Type |
Length |
Value |
Type |
Length |
Value |
(2 bytes) sf_number
(4 bytes) bh_seat_map
(1 byte) origin_cnt
(N*4 bytes) N*origin_info
|
|||||
0x40 |
0x01 |
0x00 |
0x5D |
0x13 |
0x6c 0x00 0x07 0x00 0x00 0x00 0x03 0xf3 0x11 0x00 0x01 0xc3 0x11 0x01 0x01 0x66 0x11 0x02 0x01 |