OverSpeed Event Reoccurrence

Ubaid2 years ago

Hi,
I have followed the https://www.traccar.org/configuration-file/ and set <entry key='event.overspeed.notRepeat'>true</entry> in traccar.xml. But OverSpeed event is still occurring with every packet received. Please guide am I missing anything?

Thanks in advance.
Regards,
Ubaid

Anton Tananaev2 years ago

Event or alarm?

Ubaid2 years ago

In the event report, I get the following, I think it is an Event. Because in case of Alarm, Type should be alarm. Correct me if I am wrong.

Fix Time	                        Type	                        Data
2022-08-15 10:02:59	Speed limit exceeded	50.00 km/h
2022-08-15 10:03:07	Speed limit exceeded	50.00 km/h
Anton Tananaev2 years ago
  1. Does device disconnected in between those messages?
  2. Was there a speed below the limit in between?
Ubaid2 years ago

No in both cases.
This was not the one time, each time I receive a packet I was getting a Speed event.

Ubaid2 years ago

Route Packets information

BWM-820		2022-08-15 10:20:13	Show Address	Yes	11.00 km/h
BWM-820		2022-08-15 10:20:30	Show Address	Yes	11.00 km/h
BWM-820		2022-08-15 10:20:42	Show Address	Yes	21.00 km/h
BWM-820		2022-08-15 10:20:55	Show Address	Yes	36.00 km/h
BWM-820		2022-08-15 10:21:04	Show Address	Yes	49.00 km/h
BWM-820		2022-08-15 10:21:11	Show Address	Yes	58.00 km/h
BWM-820		2022-08-15 10:21:19	Show Address	Yes	56.00 km/h
BWM-820		2022-08-15 10:21:27	Show Address	Yes	50.00 km/h
BWM-820		2022-08-15 10:21:34	Show Address	Yes	30.00 km/h
BWM-820		2022-08-15 10:21:51	Show Address	Yes	30.00 km/h
BWM-820		2022-08-15 10:22:00	Show Address	Yes	47.00 km/h

Events

2022-08-15 10:21:10	Speed limit exceeded	58.00 km/h
2022-08-15 10:21:17	Speed limit exceeded	56.00 km/h
2022-08-15 10:21:24	Speed limit exceeded	50.00 km/h
Anton Tananaev2 years ago

Just tested locally and it works correctly for me.

Ubaid2 years ago

Sir can you please share the configuration you set locally so that I can compare what I was missing.

Anton Tananaev2 years ago

I used default configuration + the entry you provided in the original comment.

Ubaid2 years ago

Should I restart the server after changing config file?

Anton Tananaev2 years ago

Yes, of course. You haven't done that?

Ubaid2 years ago

Yes, I did that too,

I have used following config,

<?xml version='1.0' encoding='UTF-8'?>

<!DOCTYPE properties SYSTEM 'http://java.sun.com/dtd/properties.dtd'>

<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='report.trip.useIgnition'>true</entry>
    <entry key='report.trip.minimalTripDistance'>500</entry>
    <entry key='report.trip.minimalTripDuration'>300</entry>
    
    
    <entry key='event.overspeed.notRepeat'>true</entry>
    <entry key='event.motion.speedThreshold'>5</entry>
    -->

    <!-- <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.microsoft.sqlserver.jdbc.SQLServerDriver</entry>
    <entry key='database.url'>jdbc:sqlserver://localhost:1433;user=sa;password=;databaseName=traccar;</entry>
    <entry key='database.user'>sa</entry>
    <entry key='database.password'></entry>

    <entry key='event.overspeed.notRepeat'>true</entry>

    
</properties>

but still no impact. :-(

Ubaid2 years ago

After setting the above configuration, when I started the trip, it is now showing 1 event for each set of Speed limits exceed. Thanks.

Gaurav4 months ago

Is this config removed?

key='event.overspeed.notRepeat'>true</entry>

Not able to find this in config page

Anton Tananaev4 months ago

I think we removed it and now that's the default behavior.