Our website is under construction. Please stay tuned!

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

  • 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 (see error codes)

type

Length

Value

0x40

0x01

0x00

0x5D

0x13

sf_number, bh_seat_map and node_id are in little endian

0x6c 0x00 0x07 0x00 0x00 0x00 0x03 0xf3 0x11 0x00 0x01 0xc3 0x11 0x01 0x01 0x66 0x11 0x02 0x01

Type 0x40 means err_code of the previous command
Type 0x5D means UWBMAC status