Protocol

Wayne Sanders5 years ago

Hi
Anyone out there know what protocol is?

*HQ,353505511074867,V1,,V,,N,,E,0.00,0,,FFFFFFFF,212,a,  ec,1273#

If so how does one know?

Cristian Liebana5 years ago
Wayne Sanders5 years ago

Thanks Christian

Wayne Sanders5 years ago

Hi

If a tracker doesn't send GPS information , provided one has the protocol right , will it still show up on the server? I get this on the server

2019-04-28 18:51:27  INFO: [3d8b2dd7] connected
2019-04-28 18:51:31  INFO: [3d8b2dd7: 5002 < 49.224.228.24] HEX: 283038373037323830393435364250303048534f29
2019-04-28 18:51:31  INFO: [3d8b2dd7: 5002 > 49.224.228.24] HEX: 283038373037323830393435364150303148534f29
2019-04-28 18:52:31  INFO: [3d8b2dd7] disconnected
2019-04-28 18:53:18  INFO: [c290fa9a] connected
2019-04-28 18:53:22  INFO: [c290fa9a: 5023 < 49.224.250.97] HEX: 283038373037323830393435364250303048534f29
2019-04-28 19:01:36  INFO: [c16153b5] connected
2019-04-28 19:01:45  INFO: [c16153b5] disconnected
2019-04-28 19:10:03  INFO: [7f04a59d] connected
2019-04-28 19:10:08  INFO: [7f04a59d: 5001 < 49.224.204.252] HEX: 283038373037323830393435364250303048534f29
2019-04-28 19:33:07  INFO: [2b1540ef] connected
2019-04-28 19:33:11  INFO: [2b1540ef: 5013 < 49.224.252.214] HEX: 283038373037323830393435364250303048534f29

not sure if I have the protocol correct

Adrian Hodgson5 years ago

Looking at the last post it looks very similar to some of the idle messages I get from the GT02 devices using port 5002

That looks to be sending (087072809456BP00HSO).

So I would suggest that port 5002 is the correct one
087072809456 is your device ID so this should be what you use in traccar
The BP00 suggests it is a handshake message, probably no location data, is it showing any active GPS lock, a lot of these devices go to sleep if not moving, give it a knock every now and then. Is it close to a window to pick up sats.

Just a few quick thoughts

These are some quick hand shake messages from one of my units

2019-04-28 08:14:23  INFO: [d49ade4c: 5002 < 82.132.246.214] HEX: 283032373034353830353439364250303033353532323730343538303534393648534f31613129
2019-04-28 08:14:23  INFO: [d49ade4c: 5002 > 82.132.246.214] HEX: 283032373034353830353439364150303148534f29

The < coming in to the server
the > going out to the device
port 5002

Wayne Sanders5 years ago

Thanks Adrian , I'll change the port to 5002. When I send the gprs123456 command the device says gprs Ok , but doesnt look like it send anything. I have the device outside in full view of the sky. I;ll go and give it a bumps and see what happens
Thanks again

Wayne Sanders5 years ago

Hi Forum
Once we we have the coverted Hex file eg.

[SG*9051044302*009C*UD,010519,043807,A,37.978128,S,176.972912,E,0.0555,000,0,12,60,100,0,50,00000000,5,1,530,1,236,4732,132,236,4733,127,236,9482,123,236,9481,119,236,4721,116,,00]

Do we just look for the matching characters in the python file to find the correct protocol. I am trying to work out how others do it in this software
Regards
Wayne

Adrian Hodgson5 years ago

They are weird, do you have a link to the device showing pictures.
Are you getting any display on the traccar server software.