TK102 or TK102B ??

Phetra8 years ago

Excuse me Sir, how can I check LOG?

Anton Tananaev8 years ago

You can find log file location in the config file (https://www.traccar.org/configuration-file/). It's a plain text, so you can open it using any text editor.

bertinets8 years ago

Hi,

I have bought a device named tk102b which, from what I read, should work on port 5023. However, if I set it to port 5001, I get something like this:

2015-12-25 21:41:14  INFO: [2B21A9CB] connected
2015-12-25 21:41:15 DEBUG: [2B21A9CB: 5001 < 89.204.130.138] HEX: 78780d010355488020151669006887040d0a
2015-12-25 21:41:22 DEBUG: [2B21A9CB: 5001 < 89.204.130.138] HEX: 78781f120f0c19152914c705a2dac2016e3f420034ef0106074eed0056dd0068f88b0d0a
2015-12-25 21:41:22 DEBUG: [2B21A9CB: 5001 < 89.204.130.138] HEX: 78780d0103554880201516690069968d0d0a
2015-12-25 21:41:31 DEBUG: [2B21A9CB: 5001 < 89.204.130.138] HEX: 78781f120f0c1915291ec605a2dac2016e3f420034ef0106074eed0056dd006935d00d0a
2015-12-25 21:41:41 DEBUG: [2B21A9CB: 5001 < 89.204.130.138] HEX: 78781f120f0c19152928c705a2dac2016e3f420034ef0106074eed0056dd006aeeaa0d0a
2015-12-25 21:41:42 DEBUG: [2B21A9CB: 5001 < 89.204.130.138] HEX: 78780a13c000640001006bcece0d0a
2015-12-25 21:41:48 DEBUG: [2B21A9CB: 5001 < 89.204.130.138] HEX: 78780d010355488020151669006cc1200d0a
2015-12-25 21:41:51 DEBUG: [2B21A9CB: 5001 < 89.204.130.138] HEX: 78781f120f0c19152932c605a2dac2016e3f420034ef0106074eed0056dd006c8b560d0a
2015-12-25 21:42:01 DEBUG: [2B21A9CB: 5001 < 89.204.130.138] HEX: 78781f120f0c19152a00c705a2dac2016e3f420034ef0106074eed0056dd006da9f40d0a
2015-12-25 21:42:11 DEBUG: [2B21A9CB: 5001 < 89.204.130.138] HEX: 78781f120f0c19152a0ac705a2dac2016e3f420034ef0106074eed0056dd006eeee00d0a
2015-12-25 21:42:20  INFO: [2B21A9CB] disconnected

and when I change it to port 5023 it disconnects (see last entry in the log) and I get no more entry afterward. I tried to restart the traccar server as suggested but still no logs from the device... I'm not sure I understand what I'm missing here.

Anton Tananaev8 years ago

It's definitely GT06 protocol. Port 5023 is the correct one.

bertinets8 years ago

Hi Anton, thanks a lot for the answer. So you mean I should complain with the producer as it does not work? or you think I am doing something wrong? Just to complete my former post, if I switch back to port 5001, I get the device logging again...

Anton Tananaev8 years ago

I think you just need to wait for it to send data. There is nothing special about port 5001.

asrc19788 years ago

Dear Anton,

I'm from Buenos Aires, Argentina. Congratulations by your page, very interesting and wonderful! ;-)

Today I bought a "local brand" TK102 with firmware version 102_150121_140617, I need to configure it to send UDP packets using GPRS.
The issue is that is configured (and fixed!) in SMS mode. Do you know if is necessary to change the firmware to activate GPRS?

Using "check123456" appears the following message:
Battery: 100%
GPRS: OFF
GPS: ON
GSM: 19

Commands like "admininp123456 server port" and "gprs123456" respond OK! But using Wireshark the UDP packets don't appear.

Thanks in advance by your help.

Sebastián.

Anton Tananaev8 years ago

Have you configured APN correctly?

asrc19788 years ago

Yes, I have configured it.

  1. "apn123456 igprs.claro.com.ar"
    "APN ok"

without USE and without PASS

  1. "adminip ###.###.###.### port"
    "adminip ok!"

I have the ports open and the IP is OK. Do you know if it possible to load a URL?

Thanks so much!

Sebastián.

asrc19788 years ago

Another issue is that when I send the following command:

"gprs123456"

The device answers:

"PWD FAIL"

But the other commands works fine. Maybe is it blocked by default to use only SMS?

Thanks again.

Seba.

Anton Tananaev8 years ago

Possibly a device issue. I think it's better to contact seller or manufacturer.

asrc19788 years ago

Thanks so much Anton by your help!

Your web page is excelent!!!

Regards from Argentina.

patkojanos8 years ago

Hi Anton!

Congrats for Your great work! I'm using TRACCAR Server 3.1 with MySQL server and with my own PHP frontend.
I'm using chinese TK-103 devices which are using gps103 protocol. But i've bought devices from a new supplier, it was been sold as TK-103A, but i've been figured out, that is is using GT06 protocol. The server responds to the tracker in order over 5023 port, altough there's no data in the position table. The tracker is working properly, sends real position in SMS when asked. Can You look at this for Me:

Log seems like this:

2016-01-19 02:42:10  INFO: [E5729C40] connected
2016-01-19 02:42:10 DEBUG: [E5729C40: 5023 < 89.223.156.232] HEX: 78780d010352887071887230000269260d0a
2016-01-19 02:42:10 DEBUG: [E5729C40: 5023 > 89.223.156.232] HEX: 787805010002eb470d0a
2016-01-19 02:42:11 DEBUG: [E5729C40: 5023 < 89.223.156.232] HEX: 78780a11100113012a3800d846007d00741e000235060d0a
2016-01-19 02:42:11 DEBUG: [E5729C40: 5023 > 89.223.156.232] HEX: 7878051146005f760d0a
2016-01-19 02:42:11  WARN: Data truncation: Incorrect datetime value: '1970-01-01 01:00:00' for column 'deviceTime' at row 1 - MysqlDataTruncation (... < QueryBuilder:428 < DataManager:345 < DefaultDataHandler:27 < ...)
2016-01-19 02:42:11  INFO: [E5729C40] id: 20, time: 1970-01-01 01:00:00, lat: 0.00000, lon: 0.00000, speed: 0.0, course: 0.0

Thanks, PJ.

Anton Tananaev8 years ago

@patkojanos, your device doesn't send any GPS data. Possibly it doesn't have a GPS fix.

patkojanos8 years ago

This wa my first thought, but it sends real position in SMS:

http://www.kepfeltoltes.eu/view.php?filename=736screenshot.jpg

It is connected to an antenne with clear sky view, which i'm using for testing purposes. And the GPS LED lights up, showing it's OK. But thank You, I'm keep on trying sending data maybe this helps...