tk804

dr4003 years ago

Bonjour
Try to make it (tk804) work with traccar (port 5093) but no joy. Any info would be very much appreciated. Thx in advance for help.

Anton Tananaev3 years ago

Logs?

dr4003 years ago

Hi Anton,

nothing really interesting just this part :

GET / HTTP/1.1
Host: trackerserver.domain.eu
X-Real-IP: xxx.xxx.xxx.xxx
X-Forwarded-For: xxx.xxx.xxx.xxx
X-Forwarded-Proto: http
Connection: close
Accept: text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8
User-Agent: Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/56.0.2924.87 Safari/537.36 Google (+https://developers.google.com/+/web/snippet/)
Accept-Encoding: gzip, deflate, br
Anton Tananaev3 years ago

That's almost definitely not from your device. If there's nothing else, it means server is not receiving anything from your device. Check troubleshooting guide.

dr4003 years ago

Interesting ... Troubleshooting guide has been read. But of no use ... Should I try all ports within 5000-5150 range ?

No info on the tk804 except for a dialogue protocol found on internet ...

Server on which the device is connecting is 52.28.132.157:8001

Even the unique dentifier is yet to be defined ...

Anton Tananaev3 years ago

If you are asking that question it means you haven't read it carefully. Doesn't matter what port you use. At least you should be getting HEX in the log.

dr4003 years ago

I honnestly did ! I tried the 8 or so proposed (from range 5001 up to 5093). I got no other HEX except the one provided in my answer. The server is working fine (check with my phone).

Anton Tananaev3 years ago

OK, write every step you followed and result.

dr4003 years ago

Gimme one minute I have one more idea to test beforehand ...

dr4003 years ago

server adress on device was subdomain.domain.eu ... I'm trying with xxx.xxx.xxx.xxx

dr4003 years ago

in the mean time : what I did :
1.setup the server (it is on, check with phone app)
2.on the device, server address changed to personal server (modulo see above)
3.Successful connection to phone but device remains not connected what ever port I use, no log entry of any kind regarding the device (phone is logged normally, hex are received as expected)
4.maybe identifier is wrong, Tk804 is working with IMEI, ID and ZCM (combination of previous two)

dr4003 years ago

and now here It is :

2021-08-03 08:21:11  WARN: [0847835b] error - begin 21, end 24, length 4 - StringIndexOutOfBoundsException (... < Gps103ProtocolDecoder:413 < ExtendedObjectDecoder:52 < ... < WrapperContext:102 < ...)
2021-08-03 08:21:11  INFO: [0847835b: gps103 > 172.17.0.1] HEX: 4f4e
2021-08-03 08:21:11  INFO: [0847835b: gps103 > 172.17.0.1] HEX: 4f4e
2021-08-03 08:21:11  INFO: [0847835b] disconnected

and this

2021-08-03 08:25:39  INFO: [907cd159] connected
2021-08-03 08:25:39  INFO: [907cd159: gps103 < 172.17.0.1] HEX: 5b33472a343530343630393237322a303030392a4c4b2c302c302c35355d
2021-08-03 08:25:39  WARN: [907cd159] error - begin 21, end 24, length 4 - StringIndexOutOfBoundsException (... < Gps103ProtocolDecoder:413 < ExtendedObjectDecoder:52 < ... < WrapperContext:102 < ...)
2021-08-03 08:25:39  INFO: [907cd159: gps103 > 172.17.0.1] HEX: 4f4e
2021-08-03 08:25:39  INFO: [907cd159: gps103 > 172.17.0.1] HEX: 4f4e
2021-08-03 08:25:39  INFO: [907cd159] disconnected
dr4003 years ago

4504609272 is the ID
nevertheless device is shown as not connected on the server

dr4003 years ago

it is working now ... the HEX gave me Watch protocol and I switched to port 5093. Connection is established now ! Problem was server address in the device, which is not accepting domain addresses but only ip addresses