TK915-4GSA New port and protocol change?

Elias Bouvin 4 years ago

I'm running today my GPS units on my Qnap server and really loves Traccar Manager & Client. (Anton, keep up the good work, if you read this!!)

I have some TK915 units today with 3G and bought some TK915-4GSA, when they are starting to shut down the 3G in my region.

As I understand the TK915-4GSA has a different protocol then the TK915. My questions is following:

  • I guess that's possible to use another port for the device, but need to change/update some file with correct protocol for TK915-4GSA?
    if that's the case, do someone know the file and string that's needs to be updated?

I have read the "Implement of Protocol", but it seems to advance for me.

Thanks in advance.

Anton Tananaev 4 years ago

Do you have protocol documentation or samples?

Elias Bouvin 4 years ago

Thanks for your quick answer Anton, I will try to find it out. Before I have sorted it out, maybe this link could help out when you supported another guy with the TK915-4GSA?

https://www.traccar.org/forums/topic/tk905-4gsa-watch-protocol-decode-error/#post-66090

Anton Tananaev 4 years ago

Sounds like it should be supported then.

Elias Bouvin 4 years ago

I have been going through this, and It seems also be a different in the protocol of TK915-4GSA and the unit i did refer to TK905-4GSA.

TK915-4GSA HEX:

5b53472a393135393035393733352a303036362a5544322c3233303332322c3038323133382c412c35392e35353238352c4e2c3031362e36363138352c452c302e302c3030302c32362c31342c38302c37302c302c35302c30303030303030302c312c312c3234302c372c33343530352c38303830363430362c2c30305d

TK905-4GSA HEX:

5b53472a393035393035363134332a303035332a55442c3235313032312c3232333430382c412c34312e34363530302c4e2c3038312e35333132382c572c302e3932362c3030302c302c30302c37302c37302c302c35302c30303030303030302c302c312c2c2c2c30305d

Converted HEX:

TK915-4GSA:

[SG*9159059735*0066*UD2,230322,082138,A,59.55285,N,016.66185,E,0.0,000,26,14,80,70,0,50,00000000,1,1,240,7,34505,80806406,,00]

TK905-4GSA:

[SG*9059056143*0051*UD,251021,204559,A,41.46583,N,081.53225,W,0.0,340,0,00,80,80,0,50,00000000,0,1,,,,00]
Anton Tananaev 4 years ago
Elias Bouvin 4 years ago

Thank you Anton very much for your support in this case. I have one follow up question but understand if you will not answer it.

I have Traccar installed in QNAP, is it possible to change some file directly, or need it be changed and complied? I have been looking through the folders without any sucess to find any file that looks that could keep the protocols...

Anyhow, thanks again! =)

Anton Tananaev 4 years ago

It needs to be compiled.

Elias Bouvin 4 years ago

Hi Anton,

Is this protocol compiled into the new windows 5.0 version? I did try with the TK915-4GSA in the "watch" protocol with port 5093, but get the same error as before?

Anton Tananaev 4 years ago

It should be included in 5.0. Please provide logs.

Elias Bouvin 4 years ago
2022-06-10 14:16:44  INFO: [Ta45ab828] connected
2022-06-10 14:16:44  INFO: [Ta45ab828: watch < 90.129.194.160] 5b53472a393135393035393739332a3030392a4c4b2c302c37305d
2022-06-10 14:16:44  WARN: Unknown device - 9159059793 (90.129.194.160)
2022-06-10 14:16:45  INFO: [Ta45ab828: watch < 90.129.194.160] 5b53472a393135393035393739332a303031392a434349442c38393436323034383030383030303637323638365d
2022-06-10 14:16:45  WARN: Unknown device - 9159059793 (90.129.194.160)
2022-06-10 14:16:46  INFO: [Ta45ab828: watch < 90.129.194.160] 5b53472a393135393035393739332a303036352a55442c3031303132312c3030303033332c562c35392e35353330362c4e2c3031362e36363138352c452c302e302c3030302c33322c30302c38302c37302c302c35302c30303030303030302c312c312c3234302c372c33343530352c38303830363430332c2c30305d
2022-06-10 14:16:46  WARN: Unknown device - 9159059793 (90.129.194.160)

Hope this will work?

Anton Tananaev 4 years ago

This means that you haven't registered your device on the server:

Unknown device - 9159059793
Elias Bouvin 4 years ago

Hi Anton,

Strange, please see following log instead when the device should now be registrered correct. Only get's green now, but no data will appear....

2022-06-10 16:01:15  INFO: [T9986a656: watch < 83.185.36.191] 5b53472a393135393035393739332a3030392a4c4b2c302c37305d
2022-06-10 16:01:25  INFO: user: 1, action: edit, object: device, id: 4
2022-06-10 16:03:24  INFO: [T4f1746c0] connected
Anton Tananaev 4 years ago

Seems like it's not sending any GPS data.

Elias Bouvin 4 years ago

Anton, really thanks for your fast respons and support. It works now, =) Sorry, but it seems was a fault I did do that did't send the postion.

Also I would say that it really nice version of traccar 5.0!