Traccar Client Hex Not Decoded

AAccount3 years ago

Hi everyone. I've just newly setup Traccar behind an nginx reverse proxy with the Traccar Android client. When I enable the client on my phone I can see the device status change to online on the Traccar webapp, but there are no coordinates or other status info. I checked the server's logs which shows successful osmand hex messages. When I decode them I get (coordinates changed)

POST /?id=Pixel3×tamp=1647997601&lat=1.234&lon=-1.234&speed=0.006348942455292&bearing=122.0&altitude=174.03521728515625&accuracy=20.368000030517578&batt=63.0 HTTP/1.0
X-Real-IP: 1.2.3.4
Host: example.com
X-Forwarded-For: 1.2.3.4
Connection: close
Content-Length: 0
Content-Type: application/x-www-form-urlencoded
User-Agent: Dalvik/2.1.0 (Linux; U; Android 11; Pixel 3 XL Build/RQ3A.211001.001)
Accept-Encoding: gzip
Anton Tananaev3 years ago

The problem is likely with closing connection after sending data. Try disabling geocoding.

AAccount3 years ago

Thanks for the lightning fast response. I set geocode.enable to false and commented out the other geocoder xml entries. Now, I can see my cell phone's location.

Martin Nicholls2 years ago

Anton,

I had the exact same problem and the fix above worked and the iPhone came online immediately.

Is there some way to enable geo for the 'Show address' when using with iPhones?

Thanks

Anton Tananaev2 years ago

Have you checked documentation parameters?

Michaela year ago

If anyone stumbles on this in the future and you're getting the "Unknown device" message in the log but the HEX decodes fine - check your device type. I was using the "t55" device for my iPhone using Traccar Client, I should have been using "osmand" type. Once I changed to "osmand", all worked properly.

Seems so obvious now :D