Wrong Protocol port - TK102B

Kenji8 years ago

Hi there.

Just tried setting up an eBay bought TK102B from 2014.
Sendt commands, and tried port 5001, 5002, 5006, 5023 - The reply I'm getting in the logs is as follow:

2016-06-05 14:32:04 DEBUG: [A63818D7: 5001 < xxx.xxx.xx.xxx] HEX: ##,imei:XXXXXXXXXXXXXXX,A;
2016-06-05 14:32:04 DEBUG: [A63818D7: 5001 > xxx.xxx.xx.xxx] HEX: 4c4f4144
2016-06-05 14:32:04  WARN: [A63818D7] error - String index out of range: 0 - StringIndexOutOfBoundsException (... < Gps103ProtocolDecoder:123 < ExtendedObjectDecoder:59 < ...)
2016-06-05 14:32:04  INFO: [A63818D7] disconnected

Ive decoded the HEX output and written it in the first line.
The small x´s indicate the IP address and the big X´s indicate the imei number of the unit.
Do i have the wrong protocol port or have i not configured the unit correctly.

If i call the unit i get the location on google maps with correct gps coordinates.

Any suggestions would be awesome :)

Best regards,
Kenji

Kenji8 years ago

P.S.

I can se the device clocked in in my local server, but it no information what so ever. The date/clock is red.

Anton Tananaev8 years ago

There is a reason that data is stored in HEX format. Can I see the original HEX message?

Kenji8 years ago

Sure, here it is :)

2016-06-05 15:31:53  INFO: [6667B1AA] connected
2016-06-05 15:31:54 DEBUG: [6667B1AA: 5001 < 188.149.5.239] HEX: 23232c696d65693a3335333535323034353336383136352c413b0d0a
2016-06-05 15:31:54 DEBUG: [6667B1AA: 5001 > 188.149.5.239] HEX: 4c4f4144
2016-06-05 15:31:54  WARN: [6667B1AA] error - String index out of range: 0 - StringIndexOutOfBoundsException (... < Gps103ProtocolDecoder:123 < ExtendedObjectDecoder:59 < ...)
2016-06-05 15:31:54  INFO: [6667B1AA] disconnected
Anton Tananaev8 years ago

Are you sure you are using official version of Traccar? What version?

I don't get exception on my local server when I try your sample.

Kenji8 years ago

I downloaded this one: traccar-windows-64-3.5

Ive tried my IOS phone and that worked perfectly on demo server and local server.
The ports is opened local both TCP and UDP.

Anton Tananaev8 years ago
Kenji8 years ago

Hi again.

Sorry, i was out of power over here :)
But now I'm back and running. I downloaded the new jar file and replaced the old one.

What happened was this:
-In local server the date/time bar got green, but don't show any info
-This is the new HEX codes appearing:

2016-06-05 21:40:23  INFO: [A25E1A11] connected
2016-06-05 21:40:23 DEBUG: [A25E1A11: 5001 < 188.149.10.237] HEX: 23232c696d65693a3335333535323034353336383136352c413b0d0a
2016-06-05 21:40:23 DEBUG: [A25E1A11: 5001 > 188.149.10.237] HEX: 4c4f4144
2016-06-05 21:41:24 DEBUG: [A25E1A11: 5001 < 188.149.10.237] HEX: 3335333535323034353336383136350a
2016-06-05 21:41:24 DEBUG: [A25E1A11: 5001 > 188.149.10.237] HEX: 4f4e
2016-06-05 21:42:24 DEBUG: [A25E1A11: 5001 < 188.149.10.237] HEX: 3335333535323034353336383136350a
2016-06-05 21:42:24 DEBUG: [A25E1A11: 5001 > 188.149.10.237] HEX: 4f4e
Anton Tananaev8 years ago

Please check first point on the following page:

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

Kenji8 years ago

Ive tried alot of cammands but got to find that non of the "fix" commands worked.
On my device i had to use ths: tn123456 60 ***
With that command i got a reply, ok. And the log got some new strings.

2016-06-06 12:55:03 DEBUG: [A9B9E4B5: 5001 < 188.149.12.170] HEX: 696d65693a3335333535323034353336383136352c747261636b65722c3136303630363132353435352c36372e312c4c2c2c2c306564612c2c303837322c2c2c3b
2016-06-06 12:55:05 DEBUG: [A9B9E4B5: 5001 < 188.149.12.170] HEX: 3335333535323034353336383136350a
2016-06-06 12:55:05 DEBUG: [A9B9E4B5: 5001 > 188.149.12.170] HEX: 4f4e
2016-06-06 12:55:58 DEBUG: [A9B9E4B5: 5001 < 188.149.12.170] HEX: 696d65693a3335333535323034353336383136352c747261636b65722c3136303630363132353535352c36372e312c4c2c2c2c306564612c2c303837322c2c2c3b
2016-06-06 12:56:05 DEBUG: [A9B9E4B5: 5001 < 188.149.12.170] HEX: 3335333535323034353336383136350a
2016-06-06 12:56:05 DEBUG: [A9B9E4B5: 5001 > 188.149.12.170] HEX: 4f4e
2016-06-06 12:56:58 DEBUG: [A9B9E4B5: 5001 < 188.149.12.170] HEX: 696d65693a3335333535323034353336383136352c747261636b65722c3136303630363132353635352c36372e312c4c2c2c2c306564612c2c303837322c2c2c3b
2016-06-06 12:57:05 DEBUG: [A9B9E4B5: 5001 < 188.149.12.170] HEX: 3335333535323034353336383136350a
2016-06-06 12:57:05 DEBUG: [A9B9E4B5: 5001 > 188.149.12.170] HEX: 4f4e
2016-06-06 12:57:58 DEBUG: [A9B9E4B5: 5001 < 188.149.12.170] HEX: 696d65693a3335333535323034353336383136352c747261636b65722c3136303630363132353735352c36372e312c4c2c2c2c306564612c2c303837322c2c2c3b
2016-06-06 12:58:05 DEBUG: [A9B9E4B5: 5001 < 188.149.12.170] HEX: 3335333535323034353336383136350a
2016-06-06 12:58:05 DEBUG: [A9B9E4B5: 5001 > 188.149.12.170] HEX: 4f4e
2016-06-06 12:58:58 DEBUG: [A9B9E4B5: 5001 < 188.149.12.170] HEX: 696d65693a3335333535323034353336383136352c747261636b65722c3136303630363132353835352c36372e312c4c2c2c2c306564612c2c303837322c2c2c3b
2016-06-06 12:59:05 DEBUG: [A9B9E4B5: 5001 < 188.149.12.170] HEX: 3335333535323034353336383136350a
2016-06-06 12:59:05 DEBUG: [A9B9E4B5: 5001 > 188.149.12.170] HEX: 4f4e

But local server still dont show information, location or anything about the unit.
Restarted the server and unit.

Kenji8 years ago

Update!

New full restart of server, web server, then the unit worked like a charm.

Thank you Anton for your help, this software is surly an amazing thing :)
If someone have issues with the "fix" command please try what helped me.

No success: fix060sn123456
No success: fix060s
n123456
No success: t001m
**n123456
SUCCESS: tn123456 60 ***

Przemyslaw5 years ago

@Kenji Hi, do You remember what step are You produce to make that device work? Do You set sms or gprs? Do You use apn?
Regards,
Przemek