GT02A port no issue

ak20158 years ago

Hi, I have purchased gps device from local market. I configured and getting below Hex value

2016-08-22 15:33:05  INFO: [A53D1152] connected
2016-08-22 15:33:05 DEBUG: [A53D1152: 5002 < 106.67.122.216] HEX: 78780d0103554880201656970004b93a0d0a
2016-08-22 15:34:38 DEBUG: [A53D1152: 5002 < 106.67.122.216] HEX: 78780a13000664000100040cde0d0a
2016-08-22 15:34:53 DEBUG: [A53D1152: 5002 < 106.67.122.216] HEX: 78780d0103554880201656970005a8b30d0a

Can u let me know the correct port no and this value is correct or not because when i decode this using your own online Hex decoder, not getting any correct data

Anton Tananaev8 years ago

It's GT06 protocol, so correct port is 5023.

ak20158 years ago

Hi Anton,

How u identify these protocols ?, can u let me know

Anton Tananaev8 years ago

This particular protocol is one of the most popular ones, so I just remember it. There is a 7878 header at the beginning.

ak20158 years ago

What is the IMEI no in above hex code ? I have added full IMEI as uniqueId but not working no location is getting update ?

Anton Tananaev8 years ago

What do you see in the logs now? Maybe your device just doesn't report location.

ak20158 years ago

I am getting below details

2016-08-22 16:05:41  INFO: [77FAEA79] disconnected
2016-08-22 16:11:04  INFO: [FBF5B3A3] connected
2016-08-22 16:11:59 DEBUG: [FBF5B3A3: 5023 < 106.67.78.165] HEX: 78780d01035548802016569700078ba10d0a
2016-08-22 16:11:59 DEBUG: [FBF5B3A3: 5023 > 106.67.78.165] HEX: 787805010007bcea0d0a
Anton Tananaev8 years ago

That's just a login message. If there is nothing else, it means that your device doesn't send location info.

ak20158 years ago

Hi Anton,
Thanks, now it is working on port 5023 and getting location.

In attributes field, battery detail is not available, Is there any settings to change in device ?

Getting below data

{"sat":9,"mcc":404,"mnc":4,"lac":828,"cid":41072,"index":66,"ip":"106.67.34.86"}

Anton Tananaev8 years ago

I don't know. There might be an option to include battery info with every message.

bike8 years ago

hello, and thanks !!! this post resolve my same problem like ak2015

best regards!!
great program!!