Incorrect Location for Chinese GPS

castco 2 years ago

Dear Traccar,

I am using the latest version of Traccar installed on Linux. I currently encounter a problem related to the location of my devices. I have two devices in the same location; one of them (Traccar Client App) shows the correct location, but the other one (Chinese GPS) shows an incorrect location on the map. I would like to kindly inquire about how I can solve this issue. Do I need to apply transformation in the source code?

Best regards,
Castco

Anton Tananaev 2 years ago

You need to find out the root cause first. Check the raw data your device is sending.

castco 2 years ago

Dear Anton,

Thank you for your reply.

2024-06-06 10:29:05  INFO: user: 1, action: login, from: 192.168.2.151
2024-06-06 10:30:53  INFO: [T13ec4eab] connected
2024-06-06 10:30:55  INFO: [T13ec4eab: gt06 < 14.0.170.31] 78780d010868022035844641001928000d0a
2024-06-06 10:30:55  INFO: Event id: 868022035844641, time: 2024-06-06 10:30:55, type: deviceOnline, notifications: 0
2024-06-06 10:30:55  INFO: [T13ec4eab: gt06 > 14.0.170.31] 78780501001945150d0a
2024-06-06 10:30:57  INFO: [T13ec4eab: gt06 < 14.0.170.31] 78780a130406040001001a3be40d0a
2024-06-06 10:30:57  INFO: [T13ec4eab] id: 868022035844641, time: 2024-06-05 17:59:42, lat: 22.60953, lon: 114.10628, course: 0.0

Attached is my log file, and the device is not sending the correct longitude and latitude. I would be happy if you could assist me accordingly. Thank you.

Best regards,
Castco

Anton Tananaev 2 years ago

From what I can tell, device is not sending any location.

castco 2 years ago

Dear Anton,

Thank you for your reply.

May I know how you could arrive with that conclusion? Since there were values for the longitude and latitude.

<?xml version='1.0' encoding='UTF-8'?>
<!DOCTYPE properties SYSTEM 'http://java.sun.com/dtd/properties.dtd'>
<properties>

   <!-- Documentation: https://www.traccar.org/configuration-file/ -->

   <entry key='database.driver'>com.microsoft.sqlserver.jdbc.SQLServerDriver</entry>
   <entry key='database.url'>***</entry>
   <entry key='database.user'>sa</entry>
   <entry key='database.password'>***</entry>
   <entry key='gt06.port'>***</entry>
</properties>

This is the code in my traccar.xml. I would be happy if you could assist me accordingly. Thank you.

Best regards,
Castco

Anton Tananaev 2 years ago

As I said, you should look at the raw data. In your log I see the status message, which does not include location. In those cases Traccar re-uses the last known location.

castco 2 years ago

Dear Anton,

Thank you for your reply. Before moving forward, I would like to know how I can delete the previous thread that I accidentally sent, since it contains credentials.

Best regards,
Dylan

Anton Tananaev 2 years ago

Masked all the credentials.

castco 2 years ago

Dear Anton,

Thank you so much for your help! I would like to let you know that the problem has been resolved.

Best regards,
Dylan