Huabao Protocol - Seeing Position is showing incorrect location in China but showing correct location when responding sms or using flepi.

Saja year ago

Hi Team,

I am currently using a device from Castel 160 device however it won't work on Castel port 5086, going through the protocol identification and setting to 5015 (Huabao) it shows online and all parameters are working except the Position. The position is showing somewhere in China whereas when I query the position using SMS or other platforms such as Flespi I get the correct position I.e. in Pakistan.

Below is a sample from log.

7e0200004e080266032670006f0000000000000003017be14a040027aa00000000000023081219015230011d310106d00400003000d21d05019a0402e193f33e02e132723e02e1326f3e02e16c433e02e193ef30d3020024d4015f1b7e

Using Port 5015:
I get the following incorrect position:
Latitude 22.556330°
Longitude 113.942433°

However, when manually decoded the string I get the correct position:
Lat: 24.895818
Lon: 67.119018

https://ibb.co/pWKs1HF

Would appreciate any guide or help to get this fixed. Thanks in advance.

Saja year ago

link to image here: https://ibb.co/pWKs1HF

Anton Tananaeva year ago

Your manual decoding doesn't really explain how you decoded those coordinates.

Anton Tananaeva year ago

By the way, for the sample you provided Traccar returns the correct values. Seems like you're not looking at the right place.

Saja year ago

Thanks for the prompt response.

Re: manually decoding I followed the protocol document and created a Google sheet sample tester to check samples.
Protocol document: https://filebin.net/o14d4xpnol7d1ha8/Smart_GPS_Tracker_Communication_Protocol_Rev.1.2_.pdf
Google sheet Sample Tester: https://docs.google.com/spreadsheets/d/1lsiQKJgG0okUbZRFvYGKwa61XUnCqChhIeulFcbV2_Q

When you say Traccar is returning correct values, did you get Lat: 24.895818, Lon: 67.119018? I am getting incorrect ones on the map on Traccar. (Traccar screenshot attached)
https://filebin.net/3nr9enqcpptmeohd/Screenshot_Traccar_incorrect_positon.png

Thanks once again for the help.

Anton Tananaeva year ago
  1. Are you using the latest official release? Have you tried the preview?
  2. Provide logs to confirm that the screenshot corresponding to this sample.
Saja year ago
  1. I build from the latest source.
  2. Please find an excerpt from the log here: https://filebin.net/ibbn0ozxg8h43zgm/sample_log_-_670.rtf

Thanks once again.

Anton Tananaeva year ago

I get a different result from the latest source code.

Saja year ago

Let me rebuild again, as I am currently using the latest which was updated 5 days ago.

Do you mind sharing what co-ordinates are you getting? Thanks

Anton Tananaeva year ago

Longitude 67...

Saja year ago

Thanks, rebuilding now

Saja year ago

I rebuild both Traccar and Web but it didn't help. I will test using the official build to see if there that helps. Keep you posted but thanks a ton for looking into it.

Saja year ago

Just to update for anyone else having the same issue in future. The issue was with the build, once I installed the official build its all good. Thanks Anton.