Ignore zero does not appear to be working...

timmcmic5 months ago

Hello everyone...

I have a device that occassionally appears to loose it's GPS signal. When reviewing the device I can see that it only locates a single satellite.

The device is reporting 0 0 positions causing it to plot in the middle of the ocean.

2024-07-13 22:44:22  INFO: [U79ec1383] id: 0001, time: 2024-07-13 20:00:00, lat: 0.00000, lon: 0.00000, course: 0.0

I have the following filters enabled.

    <entry key='filter.enable'>true></entry>
    <entry key='filter.zero'>true</entry>
    <entry key='filter.invalid'>true</entry>
    <entry key='filter.distance'>25</entry>
    <entry key='filter.duplicate'>true</entry>
    <entry key='filter.future'>30</entry>

What am I missing?

Tom5 months ago

What device do you use?

timmcmic5 months ago

It's in Sierra Wireless OMG2000 -> an old inmotion device. This particular one does appear to be finicky.

Tom5 months ago

Have you ever rebooted your device?

timmcmic5 months ago

On more than one occasion....

Anton Tananaev5 months ago

Are you sure that all you have in the config? Nothing about skipping filters?

timmcmic5 months ago
<properties>

    <entry key='config.default'>./conf/default.xml</entry>

    <!--

    This is the main configuration file. All your configuration parameters should be placed in this file.

    Default configuration parameters are located in the "default.xml" file. You should not modify it to avoid issues
    with upgrading to a new version. Parameters in the main config file override values in the default file. Do not
    remove "config.default" parameter from this file unless you know what you are doing.

    For list of available parameters see following page: https://www.traccar.org/configuration-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='database.driver'>com.mysql.jdbc.Driver</entry>
    <entry key='database.url'>jdbc:mysql://localhost/traccar?zeroDateTimeBehavior=round&amp;serverTimezone=UTC&amp;allowPublicKeyRetrieval=true&amp;useSSL=false&amp;allowMultiQueries=true&amp;autoReconnect=true&amp;useUnicode=yes&amp;characterEncoding=UTF-8&amp;sessionVariables=sql_mode=''</entry>
    <entry key='database.user'></entry>
    <entry key='database.password'></entry>

    <entry key='event.enable'>true</entry>
    <entry key='event.overspeedHandler'>true</entry>
    <entry key='event.overspeed.notRepeat'>true</entry>
    <entry key='event.motionHandler'>true</entry>
    <entry key='event.geofenceHandler'>true</entry>
    <entry key='event.alertHandler'>true</entry>
    <entry key='event.ignitionHandler'>true</entry>
    <entry key='event.statusHandler'>true</entry>
    <entry key='event.maintenanceHandler'>true</entry>

    #<entry key='geocoder.enable'>true</entry>
    #<entry key='geocoder.type'>nominatim</entry>
    #<entry key='geocoder.url'>https://nominatim.openstreetmap.org/reverse</entry>
    #<entry key='geocoder.onRequest'>true</entry>
    #<entry key='geocoder.ignorePositions'>true</entry>
    #<entry key='geocoder.reuseDistance'>50</entry>

    <entry key='filter.enable'>true></entry>
    <entry key='filter.zero'>true</entry>
    <entry key='filter.invalid'>true</entry>
    <entry key='filter.distance'>25</entry>
    <entry key='filter.duplicate'>true</entry>
    <entry key='filter.future'>30</entry>

    <entry key='mail.smtp.host'></entry>
    <entry key='mail.smtp.port'>25</entry>
    <entry key='mail.smtp.starttls.enable'>true</entry>
    <entry key='mail.smtp.from'></entry>

</properties>
Anton Tananaev5 months ago

Seems like you're not using the latest version.

br05 months ago

Or here is a problem

<entry key='filter.enable'>true></entry>

Anton Tananaev5 months ago

That's definitely a problem.

timmcmic5 months ago

@br0 Thank you - I completely missed it!