TK 905 (magnet car tracker) only sending 6 positions, then disconnects

Wulfrun Lorensen4 years ago

Dear Traccars,

I am using the TK 905 and, after some initial fumbling, by reading this thread: https://www.traccar.org/forums/topic/tk905/ and sage advice from here: https://www.traccar.org/clones/, got it working by sending the command fix060s***n123456 to the device.

I am using port 5093 and the identifier is showing 9053120621 which is the same identifier reported when I run Check123456. If it helps, check also reports XM_TK915_SW_6.2 2019/09/07 10:25.

However, after 6 updates, the Traccar console output shows (note that I've converted all the HEX data to make it easier to understand) that it disconnects:

2020-01-28 10:49:20  INFO: [eb49384b] connected
2020-01-28 10:49:47  INFO: [eb49384b: watch < 213.205.241.68] HEX: [SG*9053120621*0076*UD,280120,104942,A,52.401050,N,2.234407,W,1.7223,000,1,06,80,100,0,50,00000000,2,1,234,30,2518,8584,136,2518,1987,132,,00]
2020-01-28 10:49:47  INFO: [eb49384b] id: 9053120621, time: 2020-01-28 10:49:42, lat: 52.40105, lon: -2.23441, speed: 0.9, course: 0.0
2020-01-28 10:50:47  INFO: [eb49384b: watch < 213.205.241.68] HEX: [SG*9053120621*00AF*UD,280120,105043,A,52.401210,N,2.234177,W,0.3704,000,1,08,80,100,0,50,00000000,6,1,234,30,2518,8583,139,2518,8584,136,2518,1987,133,2518,48472,128,612,37417,124,2518,1989,124,,00]
2020-01-28 10:50:47  INFO: [eb49384b] id: 9053120621, time: 2020-01-28 10:50:43, lat: 52.40121, lon: -2.23418, speed: 0.2, course: 0.0
2020-01-28 10:51:46  INFO: [eb49384b: watch < 213.205.241.68] HEX: [SG*9053120621*00AF*UD,280120,105142,A,52.401336,N,2.234342,W,0.1296,000,1,07,80,100,0,50,00000000,6,1,234,30,2518,8583,137,2518,8584,136,2518,1987,131,2518,8035,128,2518,48472,126,612,37417,123,,00]
2020-01-28 10:51:46  INFO: [eb49384b] id: 9053120621, time: 2020-01-28 10:51:42, lat: 52.40134, lon: -2.23434, speed: 0.1, course: 0.0
2020-01-28 10:52:19  INFO: [eb49384b: watch < 213.205.241.68] HEX: [SG*9053120621*0009*LK,0,100]
2020-01-28 10:52:19  INFO: [eb49384b: watch > 213.205.241.68] HEX: [SG*9053120621*0002*LK]
2020-01-28 10:52:21  INFO: [eb49384b: watch < 213.205.241.68] HEX: [SG*9053120621*00AF*UD,280120,105217,A,52.401249,N,2.234340,W,0.7408,000,1,07,80,100,0,50,00000000,6,1,234,30,2518,8584,136,2518,8583,134,2518,1987,132,2518,8035,127,2518,48472,126,2518,1989,122,,00]
2020-01-28 10:52:21  INFO: [eb49384b] id: 9053120621, time: 2020-01-28 10:52:17, lat: 52.40125, lon: -2.23434, speed: 0.4, course: 0.0
2020-01-28 10:52:45  INFO: [eb49384b: watch < 213.205.241.68] HEX: [SG*9053120621*00AF*UD,280120,105242,A,52.401259,N,2.234307,W,0.0000,000,2,06,80,100,0,50,00000000,6,1,234,30,2518,8584,136,2518,8583,135,2518,1987,133,2518,48472,126,2518,8035,126,612,37417,123,,00]
2020-01-28 10:52:46  INFO: [eb49384b] id: 9053120621, time: 2020-01-28 10:52:42, lat: 52.40126, lon: -2.23431, course: 0.0
2020-01-28 10:53:45  INFO: [eb49384b: watch < 213.205.241.68] HEX: [SG*9053120621*00AF*UD,280120,105341,A,52.401269,N,2.234222,W,1.0186,000,1,07,80,100,0,50,00000000,6,1,234,30,2518,8584,136,2518,8583,135,2518,1987,132,2518,48472,126,2518,8035,125,2518,1989,124,,00]
2020-01-28 10:53:45  INFO: [eb49384b] id: 9053120621, time: 2020-01-28 10:53:41, lat: 52.40127, lon: -2.23422, speed: 0.6, course: 0.0
2020-01-28 10:54:14  INFO: [eb49384b] disconnected

Is there a command I am missing to get continual updates? I have also tried upload123456 60 - same behaviour, 6 updates then disconnected.

Before deciding that this is a device 'quirk' (read: manufacturer issue), I thought I'd try here any see if any of you knowledgeable Traccars could help me solve this issue.

Best,

Wulfrun

Wulfrun Lorensen4 years ago

By the way, here's the SQL output if it helps - I've selected the latest 7 messages, 6 recent and the oldest the one where there's a gap until I request for positional information:

select p.servertime, p.latitude, p.longitude, p.attributes from tc_positions p JOIN tc_devices d on p.deviceid = d.id order by p.id desc limit 7;
+---------------------+-----------+-----------+----------------------------------------------------------------------------------------------------------+
| servertime          | latitude  | longitude | attributes                                                                                               |
+---------------------+-----------+-----------+----------------------------------------------------------------------------------------------------------+
| 2020-01-28 12:04:14 | 52.401312 | -2.234308 | {"sat":5,"rssi":50,"batteryLevel":100,"steps":0,"distance":7.37,"totalDistance":1276.29,"motion":false}  |
| 2020-01-28 12:03:14 |  52.40128 | -2.234213 | {"sat":5,"rssi":50,"batteryLevel":100,"steps":0,"distance":0.73,"totalDistance":1268.92,"motion":false}  |
| 2020-01-28 12:03:09 | 52.401285 |  -2.23422 | {"sat":5,"rssi":50,"batteryLevel":100,"steps":0,"distance":4.52,"totalDistance":1268.19,"motion":true}   |
| 2020-01-28 12:02:14 | 52.401305 | -2.234278 | {"sat":5,"rssi":50,"batteryLevel":100,"steps":0,"distance":21.59,"totalDistance":1263.67,"motion":false} |
| 2020-01-28 12:01:15 |  52.40115 | -2.234087 | {"sat":5,"rssi":50,"batteryLevel":100,"steps":0,"distance":11.91,"totalDistance":1242.08,"motion":false} |
| 2020-01-28 12:00:16 |   52.4011 | -2.233932 | {"sat":4,"rssi":60,"batteryLevel":100,"steps":0,"distance":188.2,"totalDistance":1230.17,"motion":true}  |
| 2020-01-28 11:38:33 | 52.402162 | -2.236088 | {"sat":6,"rssi":50,"batteryLevel":100,"steps":0,"distance":43.46,"totalDistance":1041.97,"motion":false} |
+---------------------+-----------+-----------+----------------------------------------------------------------------------------------------------------+
7 rows in set (0.01 sec)

If you require further logs or information, feel free to ask.

Best,

Wulfrun

Wulfrun Lorensen4 years ago

Problem solved: it turns out the device comes automatically configured to sleep after five minutes of no activity. This is the first device where I've encountered that sleep is set to on by default. Unless someone bought the device, returned it and I received the one that was sent back after someone had set it to sleep already.

For others encountering this issue, sending

Sleep[password] off

... Where [password] is your password, for example 123456, will resolve the issue. I originally tried Nosleep[password], which works with a number of other trackers. I knew something was up when there was no (standard) reply of nosleep ok. That's when I turned to the internet for assistance. The other thing that roused my suspicions was that after five minutes, the updates stopped, and the manual explicitly states going to sleep for five minutes in the command to sleep but not that this was configured by default. With all previous trackers I've tested, sleep is off by default.

The problem came from the lack of documentation with the device - it didn't state how to switch sleep off; I found a more detailed manual - search for lekemi GPS Tracker User Manual For TK905 English - GTS4B on Google should give you the first result.