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
filter_val: byte array with maximum length 8
If filter_id = 1 - Location filter, the byte[0] specifies whether the moving average filter for position is enabled or disabled.
Example
TLV Request |
|||
---|---|---|---|
Type |
Length |
Value |
|
filter id |
filter Value |
||
0x16 |
0x09 |
0x00 |
0x01 0x00 0x00 0x00 0x00 0x00 0x00 0x00 |
Type 0x16 (22 dec) means command leaps_filter_cfg_set
TLV response |
||
---|---|---|
Type |
Length |
Value |
status code |
||
0x40 |
0x01 |
0x00 |
Type 0x40 means status code
Filter values
Filter ID |
Filter Val |
---|---|
0 (measurement) |
TBD |
1 (location) |
TBD |
2 (measurement selection strategy) |
Byte[0] = Type (0 - QUAD, 1 - RSSI, 2 - Round robin) |
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) … |