Incoming HEX, but Device have status "Offline" and have no markers on my OSM map

HumAid2 years ago

Hi all,

this is my system:
  • lsb_release -a ->Ubuntu 20.04.4 LTS
  • mysql -v ->10.3.34-MariaDB-0ubuntu0.20.04.1
  • Traccar Server Version 4.15 (17-Jan-2022)
What I did so far

The web application works (half) fine, but devices "Offline" and no maps on OSM map.
I installed traccar client on my iPhone 8 (iOS 15 latest updates)

When i look into my log, I see receiving HEX from clients.

2022-03-05 13:47:24  INFO: [344f0ade: osmand > 80.187.98.18] HEX: 485454502f312e31203430302042616420526571756573740d0a636f6e74656e742d6c656e6774683a20300d0a0d0a
2022-03-05 13:47:24  INFO: [344f0ade] disconnected
2022-03-05 13:47:30  INFO: [24c29584] connected
2022-03-05 13:47:30  INFO: [24c29584: osmand < 80.187.xxx.xxx] HEX: 1603010200010001fc0303f9411ce79946d648911234aa67ed3eda62195862b2a9df204b1b6a83e734cf2320c0049154c8c4d9066c107e0024096fe00e4d37b69808a035b164125d040bb1940036dada130113021303c02cc02bcca9c030c02fcca8c024c023c00ac009c028c027c014c013009d009c003d003c0035002fc008c012000a0100017d2a2a0000000000180016000013747261636b2e7363686e65747465722e6f726700170000ff01000100000a000c000acaca001d001700180019000b000201000010000b000908687474702f312e31000500050100000000000d0018001604030804040105030203080508050501080606010201001200000033002b0029caca000100001d0020c0d6de541c290849c6f7512f0b94d9f1aec663da87b9a68a9e7ec7c959cd2805002d00020101002b000b0ababa0304030303020301001b00030200010a0a000100001500b200000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
Problems I have:

I see incoming HEX in my Logfile BUT Devices in Webapp have status "Offline" and
I have no markers on my OSM map.

So how do I proceed from here? Any ideas, hints, tips, suggestions, ... ?

HumAid2 years ago

I couldn't edit my post, so some addition:

  • I got no errors in the Chrome debug console
HumAid2 years ago

Port 5055 is open on my server:

telnet <myDomain>5055
Trying 95.xxx.xxx.xxx...
Connected to <myDomain>.
Escape character is '^]'.`
Ronaldo2 years ago

send more log information, because what I see is the server sending first and the device responding then when we know it's the opposite... but if you said you only have one device on the platform, what I can see is a quick switch of IP address between sending and receiving. You need to check your connectivity providers.

HumAid2 years ago

Sorry, there are two devices (1x Android, 1x iOS), both in Telekom net.
Ths why the have the same subnets.

Here is some more extract from the log:

2022-03-05 13:46:57  INFO: [38ea846b: osmand > 80.187.97.131] HEX: 485454502f312e31203430302042616420526571756573740d0a636f6e74656e742d6c656e6774683a20300d0a0d0a
2022-03-05 13:46:57  INFO: [38ea846b: osmand < 80.187.97.131] HEX: 15030100020246
2022-03-05 13:46:57  INFO: [38ea846b] disconnected
2022-03-05 13:46:57  INFO: [98927696] connected
2022-03-05 13:46:57  INFO: [98927696: osmand < 80.187.97.131] HEX: 1603010200010001fc030329392480046aa4e752317b9b59e34f896aad9b4c615e77599b1cedfc3fb53c982068e6d3120e3a86ddf91e136c17b7e775936a569fe64c1a3f18c39ad865b85baf00382a2a130113021303c02cc02bcca9c030c02fcca8c024c023c00ac009c028c027c014c013009d009c003d003c0035002fc008c012000a56000100017b1a1a0000000000180016000013747261636b2e7363686e65747465722e6f726700170000ff01000100000a000c000ababa001d001700180019000b000201000010000b000908687474702f312e31000500050100000000000d0018001604030804040105030203080508050501080606010201001200000033002b0029baba000100001d0020fbadbc7daec7c23a1ead7146315837058735b244db2a8033172124a77c2b8820002d00020101002b000b0aaaaa0304030303020301001b0003020001aaaa000100001500b00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
2022-03-05 13:46:57  INFO: [98927696: osmand > 80.187.97.131] HEX: 485454502f312e31203430302042616420526571756573740d0a636f6e74656e742d6c656e6774683a20300d0a0d0a
2022-03-05 13:46:57  INFO: [98927696: osmand < 80.187.97.131] HEX: 15030100020246
2022-03-05 13:46:57  INFO: [98927696] disconnected
2022-03-05 13:46:57  INFO: [2cee887b] connected
2022-03-05 13:46:57  INFO: [2cee887b: osmand < 80.187.97.131] HEX: 16030100960100009203013abdc0b373a75fd5b0d6e4ead48759bcc5004176826fbe87dbaf00013c5ec53a000014c00ac009c014c0130035002fc008c012000a560001000055000000180016000013747261636b2e7363686e65747465722e6f726700170000ff01000100000a000a0008001d001700180019000b000201000010000b000908687474702f312e3100050005010000000000120000
2022-03-05 13:46:57  INFO: [2cee887b: osmand > 80.187.97.131] HEX: 485454502f312e31203430302042616420526571756573740d0a636f6e74656e742d6c656e6774683a20300d0a0d0a
2022-03-05 13:46:57  INFO: [2cee887b: osmand < 80.187.97.131] HEX: 15030100020246
2022-03-05 13:46:57  INFO: [2cee887b] disconnected
2022-03-05 13:47:11  INFO: [e95f2227] connected
2022-03-05 13:47:11  INFO: [e95f2227: osmand < 80.187.98.18] HEX: 1603010200010001fc03035ade32dc7e9305af7c5d95a9f836ff41f0f69d6c7fdbc1d92fe6871c764e3fe7205bf2df78135d5b017599004d5905fb4fdb0b986c37adbd89d7f21c1444e2e8b80022130313011302cca9c02bc02ccca8c02fc030c009c00ac013c014009c009d002f003501000191000000180016000013747261636b2e7363686e65747465722e6f726700170000ff01000100000a00080006001d00170018000b00020100002300000010000b000908687474702f312e31000500050100000000000d00140012040308040401050308050501080606010201003300260024001d00205843732050be48126cfec83d651465673cda883127dbc36b176308902e91270a002d00020101002b0009080304030303020301001500e500000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
2022-03-05 13:47:11  INFO: [e95f2227: osmand > 80.187.98.18] HEX: 485454502f312e31203430302042616420526571756573740d0a636f6e74656e742d6c656e6774683a20300d0a0d0a
2022-03-05 13:47:11  INFO: [e95f2227] disconnected
2022-03-05 13:47:24  INFO: [344f0ade] connected
2022-03-05 13:47:24  INFO: [344f0ade: osmand < 80.187.98.18] HEX: 1603010200010001fc03030c1d2e28f81fc17d1b5ecfa6ce35e7a9e008103f82237d5ba218dfb5a385dbc620621eaeab331815b14551c28a28bd2a4e6f231408cb24bb212c7b65377e0d62020022130313011302cca9c02bc02ccca8c02fc030c009c00ac013c014009c009d002f003501000191000000180016000013747261636b2e7363686e65747465722e6f726700170000ff01000100000a00080006001d00170018000b00020100002300000010000b000908687474702f312e31000500050100000000000d00140012040308040401050308050501080606010201003300260024001d00202290bf58a49cb6b8c1b65389f7775bc568672368e053e78805fb8f157b36b302002d00020101002b0009080304030303020301001500e500000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
2022-03-05 13:47:24  INFO: [344f0ade: osmand > 80.187.98.18] HEX: 485454502f312e31203430302042616420526571756573740d0a636f6e74656e742d6c656e6774683a20300d0a0d0a
2022-03-05 13:47:24  INFO: [344f0ade] disconnected
2022-03-05 13:47:30  INFO: [24c29584] connected
2022-03-05 13:47:30  INFO: [24c29584: osmand < 80.187.97.131] HEX: 1603010200010001fc0303f9411ce79946d648911234aa67ed3eda62195862b2a9df204b1b6a83e734cf2320c0049154c8c4d9066c107e0024096fe00e4d37b69808a035b164125d040bb1940036dada130113021303c02cc02bcca9c030c02fcca8c024c023c00ac009c028c027c014c013009d009c003d003c0035002fc008c012000a0100017d2a2a0000000000180016000013747261636b2e7363686e65747465722e6f726700170000ff01000100000a000c000acaca001d001700180019000b000201000010000b000908687474702f312e31000500050100000000000d0018001604030804040105030203080508050501080606010201001200000033002b0029caca000100001d0020c0d6de541c290849c6f7512f0b94d9f1aec663da87b9a68a9e7ec7c959cd2805002d00020101002b000b0ababa0304030303020301001b00030200010a0a000100001500b200000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
2022-03-05 13:47:30  INFO: [24c29584: osmand > 80.187.97.131] HEX: 485454502f312e31203430302042616420526571756573740d0a636f6e74656e742d6c656e6774683a20300d0a0d0a
2022-03-05 13:47:30  INFO: [24c29584: osmand < 80.187.97.131] HEX: 15030100020246
2022-03-05 13:47:30  INFO: [24c29584] disconnected
Ronaldo2 years ago

the connection needs to be open...

and I believe that there is some filtering by the internet operator...

try sending the data through your local network (if your server is there with you) and see if it works, since it is osmand protocol you can send it both from your smartphone and from your web browser...

HumAid2 years ago

So how would the URL with osm protocol look like when sending from my browser?

https://<myDomain>:5055/???????

is there something like wireshark for ios?
I could capture the requests on my phone then.

Ronaldo2 years ago

First of all, I hope the apps are official.

About what the URL would be, there is a lot of documentation on this site... and what you're looking for is at:

https://www.traccar.org/osmand/

first try to focus on sending the data as this will cause logical eliminations... leave networking tools for later.

HumAid2 years ago

Yes, I have the official Traccar Client and Traccar Manager App on my iPhone ...
Thanks for the link, I will have a look. :-)

HumAid2 years ago

Hi Ronaldo,
thanks for your (great) suggestions. :-)

Now I got a step further. I am giving the URL to my browser:

http://<domain>:5055/?id=H1&lat=32.2134567890&lon=19.234567890×tamp=1646493660&hdop=1&altitude=10000&speed=80

The devices are now "ONline" in my browser.

But still no marker on map ... :-(

How should I proceed further?

HumAid2 years ago

P.S. I also get errors in my log the upper mentioned URL.

http://<domain>:5055/?id=H2&lat=52&lon=9×tamp=1646493651&hdop=12&altitude=400&speed=90
2022-03-05 17:30:22  WARN: [43b88b15] error - empty String - NumberFormatException (... < DeviceManager:418 < OverspeedEventHandler:123 < BaseEventHandler:29 < ...)

But I can't imagine, what is wrong with the prameters in my URL.
There are no dots(.) and colons(,) ... for the GET values ...

HumAid2 years ago

I tried to look into BaseEventHandler.class Line 29 to look what is wron with my submittet numbers in my URL,
but vim cant handle the contents :-(

Anton Tananaev2 years ago

Looks like you have an empty value for speed limit.

Ronaldo2 years ago

make sure to use "http" (port 80) do not use "https" (443) to send data either through browser or smartphone...

then disable reverse geocoding in the configuration file (this is probably what is causing the error: empty String).

jay2 years ago

Try removing distance filter zero from config. I noticed on lastest version if removed, units become active.