Please note that the Chinese and Japanese versions are currently being updated and are not yet complete. Stay tuned for the final versions!

一般的な 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