leaps_filter_cfg_set

一部のフィルターの構成を変更します。内部フラッシュに書き込みます。頻繁に使用しないでください。


入力
  • filter_id: 8 ビット符号なし整数。次のオプションを使用してフィルタ ID を定義します。

    • 0: 測定フィルター

    • 1: 場所フィルター

    • 2: 測定値の選択戦略

    • 3: Position coordinate

  • filter_val: byte array with maximum length 12

フィルタ値

フィルターID

フィルター値

0 (測定)

TBD

1 (場所)

Byte[0] = Mode (0 - Disable Moving Average Filter, 1 - Enable Moving Average Filter)

2 (測定値の選択戦略)

Byte[0] = タイプ (0 - QUAD、1 - RSSI、2 - ラウンドロビン)

3 (position coordinate)

Byte[0] = Type (0 - CARTESIAN, 1 - WSG84)
If Type = 1(WSG84)
Byte[1]..Byte[4] = WSG84 Latitude of the Cartesian origin[0,0,0] * 10^7
Byte[5]..Byte[8] = WSG84 Longitude of the Cartesian origin[0,0,0] * 10^7

測定値の選択戦略

戦略

説明

QUAD

TN は、最適な TN 位置計算のために 4 つの象限から AN の最大 4 つの測定値を選択します

RSSI

TN は、RSSI が最も高い AN の測定値を最大 4 つ選択します

ラウンドロビン

TN は、ラウンドロビン方式で、アンカー リスト内のすべての AN から最大 4 つの測定値を順番に選択します。 (例: アンカー リストには 6 つの AN (1,2,3,4,5,6) があり、各ラウンド TN は AN の測定値を選択します: (1,2,3,4)、(5,6,1,2)、(3,4,5,6)...


TLV 要求

タイプ

長さ

フィルターID

フィルタ値

0x16

0x02

0x02

0x00

This command selects the QUAD measurement selection strategy:
  • タイプ 0x16 (12 進数 22) はコマンド Leaps_filter_cfg_set を意味します

  • Filter id 2 means "measurement selection strategy"

  • Filter value 0 means using the QUAD measurement selection strategy


TLV 要求

タイプ

長さ

フィルターID

フィルタ値

0x16

0x0a

0x03

0x01 0x18 0x49 0xB7 0xFA 0xD3 0xE6 0xAF 0x00

This command selects the WSG84 coordinate:
  • タイプ 0x16 (12 進数 22) はコマンド Leaps_filter_cfg_set を意味します

  • Filter id 3 means "position coordinate"

  • Filter value Byte[0]=1 means using the WSG84 coordinate

  • Filter value Byte[1]..Byte[4]=0x1849B7FA=407484410 means the Latitude of the Cartesian origin[0,0,0]=40,7484410

  • Filter value Byte[5]..Byte[8]=0xD3E6AF00=-739856640 means the Longitude of the Cartesian origin[0,0,0]=-73,9856640


TLV 応答

タイプ

長さ

ステータスコード

0x40

0x01

0x00

タイプ 0x40 はステータスコード