osmand command not showing online

Saj3 years ago

I am using the osmand command and I am seeing a hex log on the server side when i send command from client side but the server does not show the device is online. Here is the Hexdump the command server is receiving. Am I missing anything here?
Thank you,
Saj

2022-04-24 02:44:05  INFO: [e38fed02: osmand < 107.127.61.225] HEX: 504f5354202f3f69643d3131323233333434266c61743d7b313233343536373839307d266c6f6e3d7b3435343534353435343534357d2674696d657374616d703d7b313635303135363236377d2668646f703d7b36377d26616c7469747564653d7b3938373635343332327d2673706565643d7b32337d0d4
2022-04-24 02:44:38  INFO: [e38fed02: osmand < 107.127.61.225] HEX: 504f5354202f3f69643d3131323233333434266c61743d7b313233343536373839307d266c6f6e3d7b3435343534353435343534357d2674696d657374616d703d7b313635303135363236377d2668646f703d7b36377d26616c7469747564653d7b3938373635343332327d2673706565643d7b32337d0d4
Anton Tananaev3 years ago

At the very least the format is wrong. You need to remove curly braces everywhere.

Saj3 years ago

Thank you Anton, I reran again by removing curly braces and still dont see it online. Here is the hexdump. Please let me know.
Thank you,
Saj

2022-04-24 17:58:02  INFO: [82151dc0: osmand < 107.127.26.193] HEX: 504f5354202f3f69643d3131323233333434266c61743d31323334353637383930266c6f6e3d3435343534353435343534352674696d657374616d703d313635303135363236372668646f703d363726616c7469747564653d3938373635343332322673706565643d32330
Anton Tananaev3 years ago

It's still not a valid HTTP request.

Saj3 years ago

Hi Anton,

Is there any way i can check what is wrong in this HTTP request. i checked HEX to string converter and things seems right as below.

POST /?id=11223344&lat=1234567890&lon=454545454545&timestamp=1650156267&hdop=67&altitude=987654322&speed=23

Prior to that is just HTTP connection which i can see at server side all right as below

2022-04-24 18:20:50  INFO: [ab972992] connected

Any ideas how can i debug this further?
Thank you

Anton Tananaev3 years ago

I would recommend you to compare your request with a request from the Traccar Client.

Saj3 years ago

Hi Anton,

Thank you so much for your help here. Issue was at the client side. I had wrong information from the module vendor that HTTP header get appended by user level string which i was passing. But based on your information I appended HTTP header matching with Traccar Client and now I can see it online.
I have some other issues I think related to length and dynamically creating strings which i need to fix at client side but at least I can see it online now at server side.

Thank you again for your help.
Saj