leaps_filter_cfg_get

Read configuration of one of the filters (e.g. location filter or measurement filter).


Input
  • id: ?8-bit unsigned integer (ID of the filter, 0 - measurement filter, 1 - location filter, 2 - measurement selection strategy, 3 - position coordinate)

Output
  • Status Code

  • filter_id: 8-bits unsigned integer (ID of the filter, 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

0x1B

0x01

0x03

Type 0x1B (27 dec) means command leaps_filter_cfg_get

TLV response

Type

Length

Value

Type

Length

Value

status code

filter id

filter val

0x40

0x01

0x00

0x54

0x0a

0x03

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

Type 0x40 means status code

Type 0x54 (84) means filter configuration