tk103-2 not recognized by server

mknoblock8 years ago

First, I just discovered this site - thank you so much for all this effort!!

My 'TK103-2' chinese tracker has worked for a year on Gps-trace.com but no longer works; I really prefer your solution.

I reconfigured it to send to all of your 'chinese' ports, and according to the log each one is the same:

2016-07-04 14:46:52  INFO: [AA4836E8] connected
2016-07-04 14:46:52 DEBUG: [AA4836E8: 5013 < 107.77.160.36] HEX: 23232c696d65693a3335393731303034353734393236352c413b
2016-07-04 14:47:09  INFO: [56746CCA] connected
2016-07-04 14:47:09 DEBUG: [56746CCA: 5013 < 107.77.160.34] HEX: 23232c696d65693a3335393731303034353734393236352c413b
2016-07-04 14:47:47  INFO: [49C204DB] connected
2016-07-04 14:47:47 DEBUG: [49C204DB: 5013 < 107.77.160.26] HEX: 23232c696d65693a3335393731303034353734393236352c413b
2016-07-04 14:48:05  INFO: [49C204DB] disconnected
2016-07-04 14:48:06  INFO: [E40B0EFB] connected
2016-07-04 14:48:06 DEBUG: [E40B0EFB: 5013 < 107.77.160.34] HEX: 23232c696d65693a3335393731303034353734393236352c413b
2016-07-04 14:48:35  INFO: [E40B0EFB] disconnected
2016-07-04 14:48:36  INFO: [A8215352] connected
2016-07-04 14:48:36 DEBUG: [A8215352: 5013 < 107.77.160.34] HEX: 23232c696d65693a3335393731303034353734393236352c413b
2016-07-04 14:49:05  INFO: [A8215352] disconnected
2016-07-04 14:49:06  INFO: [F45E9345] connected
2016-07-04 14:49:06 DEBUG: [F45E9345: 5013 < 107.77.160.18] HEX: 23232c696d65693a3335393731303034353734393236352c413b
2016-07-04 14:49:08  WARN: [34D0CF84] error - An existing connection was forcibly closed by the remote host - IOException (...)
2016-07-04 14:49:08  INFO: [34D0CF84] disconnected
2016-07-04 14:49:35  INFO: [F45E9345] disconnected
2016-07-04 14:50:09  INFO: [7F6FB137] connected
2016-07-04 14:50:09 DEBUG: [7F6FB137: 5013 < 107.77.160.43] HEX: 23232c696d65693a3335393731303034353734393236352c413b
2016-07-04 14:50:32  INFO: [51A273A4] connected
2016-07-04 14:50:32 DEBUG: [51A273A4: 5013 < 107.77.160.35] HEX: 23232c696d65693a3335393731303034353734393236352c413b
2016-07-04 14:50:33  INFO: [5D143F39] connected
2016-07-04 14:50:33 DEBUG: [5D143F39: 5055 < 192.168.99.110] HEX: 474554202f3f69643d3531343032362674696d657374616d703d31343637363631383336266c61743d33362e333232313231266c6f6e3d2d38352e3434303237312673706565643d302e3334393839312662656172696e673d3136352e32333426616c7469747564653d3331362e37333426626174743d3020485454502f312e310d0a486f73743a203139322e3136382e39392e39393a353035350d0a436f6e6e656374696f6e3a206b6565702d616c6976650d0a4163636570742d456e636f64696e673a20677a69702c206465666c6174650d0a557365722d4167656e743a2054726163636172436c69656e742f332e302043464e6574776f726b2f3735382e342e332044617277696e2f31352e352e300d0a4163636570742d4c616e67756167653a20656e2d75730d0a4163636570743a202a2f2a0d0a0d0a
2016-07-04 14:50:33 DEBUG: [5D143F39: 5055 > 192.168.99.110] HEX: 485454502f312e3120323030204f4b0d0a0d0a
2016-07-04 14:50:33  INFO: [5D143F39] disconnected
2016-07-04 14:50:33  INFO: [5D143F39] id: 1, time: 2016-07-04 14:50:36, lat: 36.32212, lon: -85.44027, speed: 0.3, course: 165.2
2016-07-04 14:51:01  INFO: [51A273A4] disconnected
2016-07-04 14:51:02  INFO: [A1581761] connected
2016-07-04 14:51:02 DEBUG: [A1581761: 5023 < 107.77.160.43] HEX: 23232c696d65693a3335393731303034353734393236352c413b
2016-07-04 14:51:31  INFO: [A1581761] disconnected
2016-07-04 14:51:32  INFO: [277FBF0B] connected
2016-07-04 14:51:33 DEBUG: [277FBF0B: 5023 < 107.77.160.27] HEX: 23232c696d65693a3335393731303034353734393236352c413b
2016-07-04 14:51:35  INFO: [CE857100] connected
2016-07-04 14:51:35 DEBUG: [CE857100: 5055 < 192.168.99.110] HEX: 474554202f3f69643d3531343032362674696d657374616d703d31343637363631383937266c61743d33362e333232313431266c6f6e3d2d38352e3434303237332673706565643d302662656172696e673d3026616c7469747564653d3331352e30363726626174743d3020485454502f312e310d0a486f73743a203139322e3136382e39392e39393a353035350d0a436f6e6e656374696f6e3a206b6565702d616c6976650d0a4163636570742d456e636f64696e673a20677a69702c206465666c6174650d0a557365722d4167656e743a2054726163636172436c69656e742f332e302043464e6574776f726b2f3735382e342e332044617277696e2f31352e352e300d0a4163636570742d4c616e67756167653a20656e2d75730d0a4163636570743a202a2f2a0d0a0d0a
2016-07-04 14:51:35 DEBUG: [CE857100: 5055 > 192.168.99.110] HEX: 485454502f312e3120323030204f4b0d0a0d0a
2016-07-04 14:51:35  INFO: [CE857100] disconnected
2016-07-04 14:51:35  INFO: [CE857100] id: 1, time: 2016-07-04 14:51:37, lat: 36.32214, lon: -85.44027, speed: 0.0, course: 0.0
2016-07-04 14:51:43  WARN: [A97113CA] error - An existing connection was forcibly closed by the remote host - IOException (...)
2016-07-04 14:51:43  INFO: [A97113CA] disconnected
2016-07-04 14:51:53  INFO: [D04F7A4C] connected
2016-07-04 14:51:53 DEBUG: [D04F7A4C: 5023 < 107.77.160.56] HEX: 23232c696d65693a3335393731303034353734393236352c413b
2016-07-04 14:51:57  WARN: [4B9525BB] error - An existing connection was forcibly closed by the remote host - IOException (...)
2016-07-04 14:51:57  INFO: [4B9525BB] disconnected
2016-07-04 14:52:20  INFO: [6A652FD4] connected
2016-07-04 14:52:20 DEBUG: [6A652FD4: 5036 < 107.77.160.24] HEX: 23232c696d65693a3335393731303034353734393236352c413b
2016-07-04 14:52:35  INFO: [6B003C20] connected
2016-07-04 14:52:35 DEBUG: [6B003C20: 5055 < 192.168.99.110] HEX: 474554202f3f69643d3531343032362674696d657374616d703d31343637363631393538266c61743d33362e333232313238266c6f6e3d2d38352e3434303237352673706565643d302e3739363937342662656172696e673d3136352e32333426616c7469747564653d3331342e32393826626174743d3020485454502f312e310d0a486f73743a203139322e3136382e39392e39393a353035350d0a436f6e6e656374696f6e3a206b6565702d616c6976650d0a4163636570742d456e636f64696e673a20677a69702c206465666c6174650d0a557365722d4167656e743a2054726163636172436c69656e742f332e302043464e6574776f726b2f3735382e342e332044617277696e2f31352e352e300d0a4163636570742d4c616e67756167653a20656e2d75730d0a4163636570743a202a2f2a0d0a0d0a
2016-07-04 14:52:35 DEBUG: [6B003C20: 5055 > 192.168.99.110] HEX: 485454502f312e3120323030204f4b0d0a0d0a
2016-07-04 14:52:35  INFO: [6B003C20] disconnected
2016-07-04 14:52:35  INFO: [6B003C20] id: 1, time: 2016-07-04 14:52:38, lat: 36.32213, lon: -85.44028, speed: 0.8, course: 165.2
2016-07-04 14:52:48  INFO: [6A652FD4] disconnected
2016-07-04 14:52:49  INFO: [2757173D] connected
2016-07-04 14:52:49 DEBUG: [2757173D: 5093 < 107.77.160.40] HEX: 23232c696d65693a3335393731303034353734393236352c413b
2016-07-04 14:53:19  INFO: [2757173D] disconnected

In this log, the working device is my iphone (port 5055) using Traccar client.

I see where you suggest forcing the device to update with GPS coordinates with 'fix030s**n123456'. On my device this gets a reply of 'password fail' for some reason.

As you can see, the device only sends the ascii string:

##,imei:359710045749265,A;

Any hope for this? I have two of these trackers and would love to host Traccar...

thanks

Anton Tananaev8 years ago

First of all, your device is using GPS103 protocol, so correct port is 5001.

Second problem is that it doesn't send GPS info. If command returns password fail, it must be incorrect password or just some device issue.

mknoblock8 years ago

Thanks for this reply.

The 'password fail' message bothered me, and I tried some variations on it. I now think the syntax is 'fix000s000n123456' where 000s is the number of seconds and 000n is the number of messages to send (and 123456 is the password). The numbers can be wildcarded and must be three digits, so the command must be:

fix060x***n123456

otherwise, with only two asterisks, the device reads the password digits incorrectly, and rejects the message. I tried this variation of the message and both devices came up working, so my issue is resolved.

If you could correct the typo on this page:

https://www.traccar.org/ports-for-tk-gt-and-other-gps-devices/

where this message is incorrectly shown with two asterisks instead of three, future users of these nice little trackers (all over amazon.com for about $30) will not have the same problem I had.

Once again - thanks for this site and all this effort. First class.

Anton Tananaev8 years ago

Updated the page. Thanks for feedback.