h02 binary protocol - mcc/mcn/lac/cid

maabe a year ago

Hi,

I have a J14 tracker that mostly sends out binary (0x24 / $) frames to the server.
Positioning works when GPS data is available, but does not fall back to LBS when GPS is not valid.

Looking at the sources, I see there's no LBS processing at all for binary h02 data.
My java is a bit rusty (more used to old school C/C++) but I'd be happy to see if there's something I can add.

One question to start with would be: why is it checking readable length of 42 bytes to determine 5 vs 8 bytes of device id? My binary frames are longer than 42 (but do have 5 bytes device id, so this "accidentally" works)

Are there any pointers in terms of protocol, and in terms of returning lbs data from the protocol parser?

Anton Tananaev a year ago

There are a number of variations of this protocols. That would explain the check.