How to filter trash incoming from tracker

Grzegorz Lipok7 years ago

Hi,
from time to time tracker sends wrong values. Its an tk103b (connected to port 5023)
This is an example of correct location:

1	2018-02-10 16:27:25	50,242571	18,843163	0 m	0.0 kn	50.242571°, 18.843163°	sat=10  distance=2.66  totalDistance=17759.35  motion=false

here are few examples of wrong positions:

0	2018-02-10 07:47:34	-50,338999	18,885329	0 m	0.0 kn	-50.338999°, 18.885329°	sat=10  odometer=0  distance=1.120742308E7  totalDistance=1.120742389E7  motion=false
0	2018-02-10 07:55:00	0,000000	0,000000	0 m	0.0 kn	0.000000°, 0.000000°	sat=0  odometer=0  distance=5883375.13  totalDistance=5883389.66  motion=false
0	2018-02-10 08:25:51	-50,338987	0,000000	0 m	0.0 kn	-50.338987°, 0.000000°	sat=8  odometer=0  distance=1.135006173E7  totalDistance=3.38285517E7  motion=false

Values are set to zero or its an negative value of position. I'm ending on another side of globe :)
Can we somehow limit acceptable range to europe or ignore if jump is bigger than 1000km?

Thanks

Anton Tananaev7 years ago

You can use maxSpeed filtering option.

Grzegorz Lipok7 years ago

Thanks :)

Grzegorz Lipok7 years ago

Please take a look at my config. Just guessing but because its not calculating speed the maxSpeed limit is ignored.

Here is an screenshot of filtered data:
https://ibb.co/fG8AD7

and my traccar.xml file:

    <entry key='database.driver'>org.h2.Driver</entry>
    <entry key='database.url'>jdbc:h2:./data/database</entry>
    <entry key='database.user'>sa</entry>
    <entry key='database.password'></entry>
    <entry key='filter.maxSpeed'>19000</entry>
    <entry key='distance.enable'>true</entry>
    <entry key='processing.remoteAddress.enable'>true</entry>
    <entry key='event.enable'>true</entry>

Did i miss something in the documentation? I didn't find anything about speed.

Anton Tananaev7 years ago

You need to enable filtering as well. Also, why is the max speed so high?

Grzegorz Lipok7 years ago

I found it in docs: "Filter records by Maximum Speed value in knots. Can be used to filter jumps to far locations even if they're marked as valid. Shouldn't be too low. Start testing with values at about 25000."

The filter.maxSpeed is also in knots?

Anton Tananaev7 years ago

Yes, it's in knots.

Grzegorz Lipok7 years ago

Thans, im a bit confused so asking for everything :) Correct me if i'm not getting this.

with maxSpeed we can filter out records with values of speed bigger than X.
Here is an example which i want to filter out http://ibb.co/hWSZO7
The distance is really big but speed is calculated as 0kn.

While normal driving the speed seems to be calculated correctly.
Can we do something with this?

Anton Tananaev7 years ago

For filtering speed is calculated based on the distance and time. It does not use speed value reported by the device.

Grzegorz Lipok7 years ago

Hi, still about once a day i have a the same problem. Please take a look at this screenshoot: http://ibb.co/npwUnc
So most of the fake values are filtered. filter.maxSpeed is set to 140. Its about 20km/h more than the car max speed.
Its not a critical problem but can we do something more with this?

Thanks :)

Anton Tananaev7 years ago

It looks like zero coordinates. There is a separate filter for that.

Grzegorz Lipok7 years ago

Ok, filter.zero enabled. But its not always that case: http://ibb.co/nrHoDH

Anton Tananaev7 years ago

Well, I don't know how to help you. It looks like your device has some serious issues.