leaps_filter_cfg_set

更改某些过滤器的配置。 会写入内部闪存,请勿频繁使用。


输入
  • filter_id: 8 位无符号整数. 用以下选项定义过滤器 ID

    • 0: 测量过滤器

    • 1: 位置过滤器

    • 2: 测量选择策略

    • 3: Position coordinate

  • filter_val: byte array with maximum length 12

输出

筛选值

筛选器ID

过滤器Val

0(测量值)

TBD

1(位置)

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

2(测量选择策略)

字节[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 最多可从 4 个象限中选择 4 个 AN 的测量值,用于计算最佳 TN 位置

RSSI

TN 选择最多 4 个 RSSI 最高的 AN 的测量值

循环赛

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 表示状态代码