Incorrect Lat Lon help please

staffstonya month ago

I have been playing with Traccar to try and get some of my radio transceivers to show up on the map.
I have cobbled together some python to parse the GPs data that they send, and then re-assemble the various chunks into a format that emulates
the GPS103 format.
All that seems to be working fine, but the position that is showing in the Traccar log is not what is shown when I click the point on the screen, and the point is showing off in both lat and lon.
That happens for the very first point shown and every other point after, so it isn't time related.

As an example, my code is sending this line to Traccar server port 5001

imei:44,tracker,250312064329,,F,064329,A,05304.29959,N,00212.61334,W,1,;

In the Traccar log, for the same message I see

2025-03-12 06:43:29  INFO: [U7837a869: gps103 < 192.168.50.150] imei:44,tracker,250312064329,,F,064329,A,05304.29959,N,00212.61334,W,1,;
2025-03-12 06:43:29  INFO: [U7837a869] id: 44, time: 2025-03-12 06:43:29, lat: 53.07166, lon: -2.21022, speed: 1.0, course: 0.0

What I cannot figure is whey Traccar is receiving the exact message I send, but the line below in the log file shows the point that is displayed on the screen, and the two are different, with the latter being wrong.
I am using the latest Traccar which I downloaded yesterday on Linux Mint x64.

Can anyone show any light on why this is happening and how I can correct it please?

Tony.

Anton Tananaeva month ago

What do you see? Specifically what fix time and coordinates.

staffstonya month ago

Hi Anton,
As described above, the fix time for the data I posted is identical the first line has the data and time written into it '250312064329' so 2025/03/12 at 06:43:29 the device should be at 53.0429959 N and 2.1261334 W, that is what is shown on the radio screen as the current position, and what is sent over RF to another radio which receives it and then outputs the GPS data to the PC, the exact same grid is then fed into Traccar via UDP port 5001 as shown in the data I posted, Traccar successfully has that data as shown in the Traccar log file, but the point on the PC screen when I click 'more info' has a different grid reference than that in the log, in fact it has this grid reference lat: 53.07166, lon: -2.21022, which is in the log file next line.
The two additional lines are taken from the Traccar log and show the exact same data line that I am sending which I shonw above, same date and same time.

What I need to know is why does Traccar change the received grid reference which I know is 100% correct for the location where I am, to one that is not correct, could it be to do with map datums and if so how do I chang that?

Tony.

Anton Tananaeva month ago

If you want the coordinates to be 53.0429959 N and 2.1261334 W, then you're not sending the right data. It seems like you simply wrote down the same digits. But that's incorrect. You need to convert your decimal degrees into minutes.

staffstonya month ago

Hi sorry I don't understand, when I look at the screen on the radio then I see 53.0429959 N and 2.1261334 W which looking on Google maps is the exact location where I am sitting, it is 100% correct, that datya is sent by the radio over RF to the other radio I have no control over it it must be correct.
When I parse the received data, I see the same grid reference, all I am doing in my python code is extracting it, and re-formatting the order of the data to emulate a GPS103 device.
The GPS device is already sending degrees and decimal degrees why do I need to convert it to minutes on the server screen under setting then server, it clearly says decimal degrees which is what I am sending?
Can you explain further as I am completely lost.

Tony

Anton Tananaeva month ago

You're sending decimal degrees when what you have to send is degrees and minutes.

staffstonya month ago

Ahh I see, I cannot change what I am sending, that is fixed within the radio so i've just modified my Python to convert the lat and lon to degrees and decimal minutes and it shows me exactly where I should be :-)

Really appreciate it thank you Anton, I will tidy the code and have a play now to test out the functionality, Traccar looks to be a really nice package.

Tony