GT06 0x18 error

Tom2 years ago

Hello, I've bought a "Bolokuki" GT011 pet gps tracker, which appears to use gt06 protocol. For reference, when disassembled the board has MD303-V01 written on it.

It connects fine on port 5023, but is disconnected after sending an 0x18 "MSG_LBS_EXTEND" message, with traccar writing an error into the logs. I've had a look at all the gt06 protocols referenced and can find 0x18 in two of them, but I'm unclear what issue the error is actually highlighting, so would appreciate any assistance.

I can't tell from the protocol whether it needs to send 6 x neighbouring cell sites, or if its "up to" 6? And whilst I'm not a java dev, I've had a look at the decoder and can't work out if the protocol is expecting wifi data after receiving cell site data and failing at that point? Or if I'm completely misreading it?

Log extract with initial connection and error. Note that I see 0x01, 0x05, 0x12 and 0x13 messages dealt with without issue, but every time an 0x18 is sent, it causes an error and subsequent disconnect:

2022-10-22 20:17:23  INFO: [T1e5e4a49] connected
2022-10-22 20:17:23  INFO: [T1e5e4a49: gt06 < 213.205.242.147] 78780d01086068903158442700055aeb0d0a
2022-10-22 20:17:23  INFO: [T1e5e4a49: gt06 > 213.205.242.147] 7878050100059ff80d0a
2022-10-22 20:17:28  INFO: [T1e5e4a49: gt06 < 213.205.242.147] 787822180f060100020000ea1e084077850e80ce04000000000000000000000000000525460d0a
2022-10-22 20:17:28  INFO: [T1e5e4a49] error - readerIndex(39) + length(3) exceeds writerIndex(39): PooledSlicedByteBuf(ridx: 39, widx: 39, cap: 39/39, unwrapped: PooledDirectByteBuf(ridx: 39, widx: 39, cap: 2048)) - IndexOutOfBoundsException (... < Gt06ProtocolDecoder:687 < *:1374 < ExtendedObjectDecoder:72 < ... < WrapperContext:102 < ...)
2022-10-22 20:17:28  INFO: [T1e5e4a49] disconnected
Anton Tananaev2 years ago

Looks like it's not fully compatible. Do you have protocol documentation?

Tom2 years ago

I don't, unfortunately. I messaged the seller/manufacturer and they sent me protocol documentation for watch protocol, which this obviously isn't. Its a shame as I have the chance to buy 4 of these very cheap, which is handy for when my dogs get them wet and they inevitably break...

I'm guessing without documentation you can't help much more? Is there any suggestion in the error as to where it is incompatible?

Anton Tananaev2 years ago

Have you tried Topin protocol. Maybe that would work better.

Tom2 years ago

I'll give it a try, thanks!

I've also found that SZORCHID have a GT011 device which looks identical. I've emailed them for their protocol documentation. Should have mentioned when I took the device apart, the gps ceramic thing has GT011 written on it...