leaps_filter_cfg_set
Change configuration of some of the filters. Does write internal flash, do not use it frequently.
filter_id: 8-bit Unsigned Integer. Defines the filter ID with the following options
0: Measurement filter
1: Location filter
2: Measurement selection strategy
3: Position coordinate
filter_val: byte array with maximum length 12
Filter values
Filter ID |
Filter Val |
|---|---|
0 (measurement) |
TBD |
1 (location) |
Byte[0] = Mode (0 - Disable Moving Average Filter, 1 - Enable Moving Average Filter) |
2 (measurement selection strategy) |
Byte[0] = Type (0 - QUAD, 1 - RSSI, 2 - Round robin) |
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
|
Measurement selection strategy
Strategy |
Description |
|---|---|
QUAD |
TN selects up to 4 measurements of ANs from 4 quadrants for the best TN location calculation |
RSSI |
TN selects up to 4 measurements of ANs with highest RSSI |
Round robin |
TN takes turn to select up to 4 measurements from all ANs in it’s anchor list in the round robin manner. (e.g: anchor list has 6 ANs (1,2,3,4,5,6), each round TN selects measurements of ANs: (1,2,3,4), (5,6,1,2), (3,4,5,6) … |
Example
TLV Request |
|||
|---|---|---|---|
Type |
Length |
Value |
|
filter id |
filter Value |
||
0x16 |
0x02 |
0x02 |
0x00 |
Type 0x16 (22 dec) means command leaps_filter_cfg_set
Filter id 2 means “measurement selection strategy”
Filter value 0 means using the QUAD measurement selection strategy
Example
TLV Request |
|||
|---|---|---|---|
Type |
Length |
Value |
|
filter id |
filter Value |
||
0x16 |
0x0a |
0x03 |
0x01 0x18 0x49 0xB7 0xFA 0xD3 0xE6 0xAF 0x00 |
Type 0x16 (22 dec) means command 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
Example
TLV response |
||
|---|---|---|
Type |
Length |
Value |
status code |
||
0x40 |
0x01 |
0x00 |
Type 0x40 means status code