Variation of Xexun Protocol

Jess-UK9 years ago

I have purchased what is claimed to be a tk106 tracker and have installed traccar server (confirmed working via iphone / android clients).

I have configured the tracker to send data to traccar and can see it is being received in the log file.
looking at the format it appears to be a variation of the xexun data string (same layout to start with but missing data after imei)

sample data from log file

2016-02-25 21:50:41 DEBUG: [22DD80BD: 5006 < 82.132.238.87] HEX: 4849
2016-02-25 21:54:01  INFO: [22DD80BD] disconnected
2016-02-25 21:59:07  INFO: [0BC6F764] connected
2016-02-25 21:59:07 DEBUG: [0BC6F764: 5006 < 82.132.234.177] HEX: 313630323236303535382c2b3434373738383831313533332c4750524d432c3231353835332e3030302c412c353330342e393630302c4e2c362e373930372c452c312e34332c38302e36372c3235303231362c30302c303030302e302c412a34372c462c2c696d65693a3335313532353031383030373837332c3132322376
2016-02-25 21:59:23 DEBUG: [0BC6F764: 5006 < 82.132.234.177] HEX: 313630323236303535392c2b3434373738383831313533332c4750524d432c3231353931392e3030302c412c353330342e393539302c4e2c362e373839312c452c322e37362c38382e31362c3235303231362c30302c303030302e302c412a34372c462c2c696d65693a3335313532353031383030373837332c3132327de6

ascii from above strings

HI
1602260558,+447788811533,GPRMC,215853.000,A,5304.9600,N,6.7907,E,1.43,80.67,250216,00,0000.0,A*47,F,,imei:351525018007873,122#v
1602260559,+447788811533,GPRMC,215919.000,A,5304.9590,N,6.7891,E,2.76,88.16,250216,00,0000.0,A*47,F,,imei:351525018007873,122}æ

yes the unit really does send HI to the server as it starts up (not seen anyone else mention this)

Anton Tananaev9 years ago

What coordinates do you expect to see? Do you expect 0 longitude value?

Jess-UK9 years ago

approx position of the tracker is 53.082697 / 0.113305
possible ones from the strings would be the 6th and 8th

looking at the typical xexun strings they appear to match up to the end of the imei

Anton Tananaev9 years ago

I have fixed the problem. Here is a new build:

https://www.dropbox.com/s/cgmlansv32j3ii0/tracker-server.jar?dl=0

Jess-UK9 years ago

Many thanks for the swift response Anton

Traccar is now recognising the data from the tracker perfectly

Jess-UK9 years ago

Spoke too soon, there is an error in the parsing of the longitude where it rolls from 9 to 10

I hope this makes sense...
9.4151,E is translating as 0.15692 which appears to be correct
10.1423,E is translating as 1.00237 which is quite a way out (it should be somewhere around 0.16)

Image is of a short trip testing the tracker in a car (I can assure you we didn't drive in the sea)
Ooops

Anton Tananaev9 years ago

Please provide HEX message samples.

Jess-UK9 years ago

Here's a sample of the problem occurring from my log files (error first appears at 11:25:12)

2016-02-26 11:21:37  INFO: [81ABAD4D] connected
2016-02-26 11:21:37 DEBUG: [81ABAD4D: 5006 < 82.132.234.117] HEX: 313630323236313931362c2b3434373738383831313533332c4750524d432c3131313633302e3030302c412c353330342e393533302c4e2c362e383038322c452c312e30372c3333312e39312c3236303231362c30302c303030302e302c412a37332c4c2c2c696d65693a3335313532353031383030373837332c3132336292
2016-02-26 11:21:37  INFO: [81ABAD4D] id: 8, time: 2016-02-26 11:16:30, lat: 53.08255, lon: 0.11347, speed: 1.1, course: 331.9
2016-02-26 11:21:49 DEBUG: [81ABAD4D: 5006 < 82.132.234.117] HEX: 313630323236313932312c2b3434373738383831313533332c4750524d432c3131323132322e3030302c412c353330352e323934302c4e2c362e373631312c452c32362e39382c3335332e38372c3236303231362c30302c303030302e302c412a34362c4c2c2c696d65693a3335313532353031383030373837332c313234b178
2016-02-26 11:21:49  INFO: [81ABAD4D] id: 8, time: 2016-02-26 11:21:22, lat: 53.08823, lon: 0.11269, speed: 27.0, course: 353.9
2016-02-26 11:21:52 DEBUG: [81ABAD4D: 5006 < 82.132.234.117] HEX: 313630323236313932312c2b3434373738383831313533332c4750524d432c3131323132322e3030302c412c353330352e323934302c4e2c362e373631312c452c32362e39382c3335332e38372c3236303231362c30302c303030302e302c412a34362c4c2c2c696d65693a3335313532353031383030373837332c313234b178
2016-02-26 11:21:53  INFO: [81ABAD4D] id: 8, time: 2016-02-26 11:21:22, lat: 53.08823, lon: 0.11269, speed: 27.0, course: 353.9
2016-02-26 11:22:02 DEBUG: [81ABAD4D: 5006 < 82.132.234.117] HEX: 313630323236313932312c2b3434373738383831313533332c4750524d432c3131323135382e3030302c412c353330352e343233302c4e2c362e373337332c452c31342e34352c34302e34332c3236303231362c30302c303030302e302c412a37382c462c6d6f7665642c696d65693a3335313532353031383030373837332c3132381b37
2016-02-26 11:22:02  INFO: [81ABAD4D] id: 8, time: 2016-02-26 11:21:58, lat: 53.09038, lon: 0.11229, speed: 14.5, course: 40.4
2016-02-26 11:22:08 DEBUG: [81ABAD4D: 5006 < 82.132.234.117] HEX: 313630323236313932312c2b3434373738383831313533332c4750524d432c3131323135382e3030302c412c353330352e343233302c4e2c362e373337332c452c31342e34352c34302e34332c3236303231362c30302c303030302e302c412a37382c462c2c696d65693a3335313532353031383030373837332c3132333983
2016-02-26 11:22:08  INFO: [81ABAD4D] id: 8, time: 2016-02-26 11:21:58, lat: 53.09038, lon: 0.11229, speed: 14.5, course: 40.4
2016-02-26 11:22:50 DEBUG: [81ABAD4D: 5006 < 82.132.234.117] HEX: 313630323236313932322c2b3434373738383831313533332c4750524d432c3131323234372e3030302c412c353330352e353135302c4e2c372e353035302c452c38332e37332c37382e38382c3236303231362c30302c303030302e302c412a37372c462c2c696d65693a3335313532353031383030373837332c31323332b4
2016-02-26 11:22:50  INFO: [81ABAD4D] id: 8, time: 2016-02-26 11:22:47, lat: 53.09192, lon: 0.12508, speed: 83.7, course: 78.9
2016-02-26 11:23:29 DEBUG: [81ABAD4D: 5006 < 82.132.234.117] HEX: 313630323236313932332c2b3434373738383831313533332c4750524d432c3131323332362e3030302c412c353330352e363437302c4e2c382e323135382c452c37322e33362c38312e30342c3236303231362c30302c303030302e302c412a37392c462c2c696d65693a3335313532353031383030373837332c31323363ee
2016-02-26 11:23:29  INFO: [81ABAD4D] id: 8, time: 2016-02-26 11:23:26, lat: 53.09412, lon: 0.13693, speed: 72.4, course: 81.0
2016-02-26 11:24:00 DEBUG: [81ABAD4D: 5006 < 82.132.234.117] HEX: 313630323236313932332c2b3434373738383831313533332c4750524d432c3131323335372e3030302c412c353330352e373136302c4e2c382e373731332c452c36372e31322c3130392e32362c3236303231362c30302c303030302e302c412a34352c462c2c696d65693a3335313532353031383030373837332c3132340b06
2016-02-26 11:24:00  INFO: [81ABAD4D] id: 8, time: 2016-02-26 11:23:57, lat: 53.09527, lon: 0.14619, speed: 67.1, course: 109.3
2016-02-26 11:24:34 DEBUG: [81ABAD4D: 5006 < 82.132.234.117] HEX: 313630323236313932342c2b3434373738383831313533332c4750524d432c3131323433322e3030302c412c353330352e353831302c4e2c392e343135312c452c38322e36392c3130382e37302c3236303231362c30302c303030302e302c412a35302c462c2c696d65693a3335313532353031383030373837332c3132343eff
2016-02-26 11:24:34  INFO: [81ABAD4D] id: 8, time: 2016-02-26 11:24:32, lat: 53.09302, lon: 0.15692, speed: 82.7, course: 108.7
2016-02-26 11:25:12 DEBUG: [81ABAD4D: 5006 < 82.132.234.117] HEX: 313630323236313932352c2b3434373738383831313533332c4750524d432c3131323531302e3030302c412c353330352e343335302c4e2c31302e313432332c452c36392e39352c3130332e32382c3236303231362c30302c303030302e302c412a37382c462c2c696d65693a3335313532353031383030373837332c313235a768
2016-02-26 11:25:12  INFO: [81ABAD4D] id: 8, time: 2016-02-26 11:25:10, lat: 53.09058, lon: 1.00237, speed: 70.0, course: 103.3
2016-02-26 11:25:48 DEBUG: [81ABAD4D: 5006 < 82.132.234.117] HEX: 313630323236313932352c2b3434373738383831313533332c4750524d432c3131323534352e3030302c412c353330352e323335302c4e2c31302e333731332c452c35362e31302c3135382e37312c3236303231362c30302c303030302e302c412a38352c462c2c696d65693a3335313532353031383030373837332c313235a3a5
2016-02-26 11:25:48  INFO: [81ABAD4D] id: 8, time: 2016-02-26 11:25:45, lat: 53.08725, lon: 1.00619, speed: 56.1, course: 158.7
2016-02-26 11:26:31 DEBUG: [81ABAD4D: 5006 < 82.132.234.117] HEX: 313630323236313932362c2b3434373738383831313533332c4750524d432c3131323632382e3030302c412c353330342e393039302c4e2c31302e363337382c452c34382e39312c3133392e31382c3236303231362c30302c303030302e302c412a37302c462c2c696d65693a3335313532353031383030373837332c313235933a
2016-02-26 11:26:31  INFO: [81ABAD4D] id: 8, time: 2016-02-26 11:26:28, lat: 53.08182, lon: 1.01063, speed: 48.9, course: 139.2
2016-02-26 11:27:02 DEBUG: [81ABAD4D: 5006 < 82.132.234.117] HEX: 313630323236313932372c2b3434373738383831313533332c4750524d432c3131323730302e3030302c412c353330342e373730302c4e2c31302e373137362c452c34302e30322c3137342e30362c3236303231362c30302c303030302e302c412a37322c462c2c696d65693a3335313532353031383030373837332c31323527d6
2016-02-26 11:27:02  INFO: [81ABAD4D] id: 8, time: 2016-02-26 11:27:00, lat: 53.07950, lon: 1.01196, speed: 40.0, course: 174.1
2016-02-26 11:27:44 DEBUG: [81ABAD4D: 5006 < 82.132.234.117] HEX: 313630323236313932372c2b3434373738383831313533332c4750524d432c3131323734302e3030302c412c353330342e353635302c4e2c31302e373937312c452c35352e34392c3138372e34372c3236303231362c30302c303030302e302c412a38332c462c2c696d65693a3335313532353031383030373837332c3132357493
2016-02-26 11:27:44  INFO: [81ABAD4D] id: 8, time: 2016-02-26 11:27:40, lat: 53.07608, lon: 1.01329, speed: 55.5, course: 187.5
2016-02-26 11:28:19 DEBUG: [81ABAD4D: 5006 < 82.132.234.117] HEX: 313630323236313932382c2b3434373738383831313533332c4750524d432c3131323831372e3030302c412c353330342e343930302c4e2c31302e373938382c452c302e34362c3134302e32362c3236303231362c30302c303030302e302c412a35342c462c2c696d65693a3335313532353031383030373837332c313234cada
2016-02-26 11:28:20  INFO: [81ABAD4D] id: 8, time: 2016-02-26 11:28:17, lat: 53.07483, lon: 1.01331, speed: 0.5, course: 140.3
2016-02-26 11:28:58 DEBUG: [81ABAD4D: 5006 < 82.132.234.117] HEX: 313630323236313932382c2b3434373738383831313533332c4750524d432c3131323835352e3030302c412c353330342e343936302c4e2c31302e373934302c452c312e37322c3131342e32352c3236303231362c30302c303030302e302c412a35342c462c2c696d65693a3335313532353031383030373837332c3132340f32
2016-02-26 11:28:58  INFO: [81ABAD4D] id: 8, time: 2016-02-26 11:28:55, lat: 53.07493, lon: 1.01323, speed: 1.7, course: 114.3
2016-02-26 11:29:36 DEBUG: [81ABAD4D: 5006 < 82.132.234.117] HEX: 313630323236313932392c2b3434373738383831313533332c4750524d432c3131323933332e3030302c412c353330342e343838302c4e2c31302e383030392c452c312e35302c3330392e39362c3236303231362c30302c303030302e302c412a35332c462c2c696d65693a3335313532353031383030373837332c3132344825
2016-02-26 11:29:36  INFO: [81ABAD4D] id: 8, time: 2016-02-26 11:29:33, lat: 53.07480, lon: 1.01335, speed: 1.5, course: 310.0
2016-02-26 11:30:14 DEBUG: [81ABAD4D: 5006 < 82.132.234.117] HEX: 313630323236313933302c2b3434373738383831313533332c4750524d432c3131333031312e3030302c412c353330342e343935302c4e2c31302e373939312c452c362e35362c3131342e30362c3236303231362c30302c303030302e302c412a34382c462c2c696d65693a3335313532353031383030373837332c313234b07c
2016-02-26 11:30:14  INFO: [81ABAD4D] id: 8, time: 2016-02-26 11:30:11, lat: 53.07492, lon: 1.01332, speed: 6.6, course: 114.1
2016-02-26 11:30:52 DEBUG: [81ABAD4D: 5006 < 82.132.234.117] HEX: 313630323236313933302c2b3434373738383831313533332c4750524d432c3131333034392e3030302c412c353330342e343834302c4e2c31302e383036392c452c312e36332c3135372e30342c3236303231362c30302c303030302e302c412a34302c462c2c696d65693a3335313532353031383030373837332c3132342585
2016-02-26 11:30:52  INFO: [81ABAD4D] id: 8, time: 2016-02-26 11:30:49, lat: 53.07473, lon: 1.01345, speed: 1.6, course: 157.0
2016-02-26 11:31:30 DEBUG: [81ABAD4D: 5006 < 82.132.234.117] HEX: 313630323236313933312c2b3434373738383831313533332c4750524d432c3131333132382e3030302c412c353330342e343935302c4e2c31302e373934392c452c302e33332c3239312e30342c3236303231362c30302c303030302e302c412a35352c462c2c696d65693a3335313532353031383030373837332c313234c52b
2016-02-26 11:31:30  INFO: [81ABAD4D] id: 8, time: 2016-02-26 11:31:28, lat: 53.07492, lon: 1.01325, speed: 0.3, course: 291.0
2016-02-26 11:32:08 DEBUG: [81ABAD4D: 5006 < 82.132.234.117] HEX: 313630323236313933322c2b3434373738383831313533332c4750524d432c3131333230362e3030302c412c353330342e343932302c4e2c31302e383031382c452c312e38372c3134312e30332c3236303231362c30302c303030302e302c412a34322c462c2c696d65693a3335313532353031383030373837332c313234a96e
2016-02-26 11:32:08  INFO: [81ABAD4D] id: 8, time: 2016-02-26 11:32:06, lat: 53.07487, lon: 1.01336, speed: 1.9, course: 141.0
2016-02-26 11:32:46 DEBUG: [81ABAD4D: 5006 < 82.132.234.117] HEX: 313630323236313933322c2b3434373738383831313533332c4750524d432c3131333234332e3030302c412c353330342e353034302c4e2c31302e383032372c452c332e33302c32322e34362c3236303231362c30302c303030302e302c412a38302c462c2c696d65693a3335313532353031383030373837332c3132334561
2016-02-26 11:32:46  INFO: [81ABAD4D] id: 8, time: 2016-02-26 11:32:43, lat: 53.07507, lon: 1.01338, speed: 3.3, course: 22.5
2016-02-26 11:33:28 DEBUG: [81ABAD4D: 5006 < 82.132.234.117] HEX: 313630323236313933332c2b3434373738383831313533332c4750524d432c3131333332342e3030302c412c353330342e333538302c4e2c31302e393231392c452c35372e32382c3134392e30352c3236303231362c30302c303030302e302c412a37382c462c2c696d65693a3335313532353031383030373837332c313235e8d0
2016-02-26 11:33:28  INFO: [81ABAD4D] id: 8, time: 2016-02-26 11:33:24, lat: 53.07263, lon: 1.01537, speed: 57.3, course: 149.1
2016-02-26 11:34:05 DEBUG: [81ABAD4D: 5006 < 82.132.234.117] HEX: 313630323236313933342c2b3434373738383831313533332c4750524d432c3131333430322e3030302c412c353330342e303635302c4e2c31302e393831352c452c36312e38342c3230372e39352c3236303231362c30302c303030302e302c412a37332c462c2c696d65693a3335313532353031383030373837332c313235f104
2016-02-26 11:34:05  INFO: [81ABAD4D] id: 8, time: 2016-02-26 11:34:02, lat: 53.06775, lon: 1.01636, speed: 61.8, course: 208.0
2016-02-26 11:34:42 DEBUG: [81ABAD4D: 5006 < 82.132.234.117] HEX: 313630323236313933342c2b3434373738383831313533332c4750524d432c3131333433392e3030302c412c353330332e373433302c4e2c31302e353138312c452c36382e38302c3232382e33332c3236303231362c30302c303030302e302c412a38312c462c2c696d65693a3335313532353031383030373837332c31323514d8
2016-02-26 11:34:42  INFO: [81ABAD4D] id: 8, time: 2016-02-26 11:34:39, lat: 53.06238, lon: 1.00864, speed: 68.8, course: 228.3
2016-02-26 11:35:21 DEBUG: [81ABAD4D: 5006 < 82.132.234.117] HEX: 313630323236313933352c2b3434373738383831313533332c4750524d432c3131333531382e3030302c412c353330332e343135302c4e2c31302e323336382c452c36302e37332c3230372e34322c3236303231362c30302c303030302e302c412a37342c462c2c696d65693a3335313532353031383030373837332c313235545f
2016-02-26 11:35:21  INFO: [81ABAD4D] id: 8, time: 2016-02-26 11:35:18, lat: 53.05692, lon: 1.00395, speed: 60.7, course: 207.4
Anton Tananaev9 years ago
Jess-UK9 years ago

new build installed and working for my home location, I will be able to check for the rollover error tomorrow and report back.

edit :
I used a tool to fake a couple of packets to traccar (repeats of old packets with modified time data) which would previously have caused the error, they all positioned perfectly

Jess-UK9 years ago

Just thought I would pop back and let you know that the new version worked perfectly, thanks again for your help.