通用 API 信息

以下部分描述了常用的 TLV 值

注解

除非另有说明,否则 API 中使用的整数都是小端序的.

状态代码

每个 TLV 请求都会得到状态代码的回复,状态代码提供了请求是否被成功处理的信息.

err_code =  8-bit unsigned integer = ‘0’ | ‘1’ | ‘2’ | ‘3’ | ’4’ | ’5’
0: ok
1: unknown command or broken TLV frame
2: internal error
3: invalid parameter
4: busy
5: operation not permitted

位置

节点(锚点或标记)的 13 个字节位置.

position = x, y, z, pqf (* position coordinates *)
x = 32-bit integer (* bytes 0-3, in millimeters *)
y = 32-bit integer (* bytes 4-7, in millimeters *)
z = 32-bit integer (* bytes 8-11, in millimeters *)
pqf = 8-bit integer (* byte 12, position quality factor in percents *)

gpio_idx

用户可用的 GPIO 引脚索引. 请参阅下面列表中特定设备的索引.

  • DWM1001: 8, 12, 13, 15, 23, 27