Our website is under construction. Please stay tuned!

TLV API

TLV format, the Type-Length-Value encoding, is used in the DWM module API. Data in TLV format always begins with the type byte, followed by the length byte, and followed by a variable number of value bytes [0 to 253] as specified by the length byte. Table 1 shows an example of TLV format data, in which the type byte is 0x28, the length byte is 0x02, and as declared by the length byte, the value field is of two bytes: 0x0D and 0x01.

In DWM1001 firmware, both SPI and UART APIs use TLV format for data transmission. Users should refer to the TLV type list for the meaning of type bytes. For each specific command or response, the value field is of different lengthss to provide the corresponding information.

TLV format data example

TLV request

type

length

value

pin index

pin value

0x28

0x02

0x0D

0x01

Detail information of each API, please read the following pages: