JT808 Chinese Protocol

Berna Maxim 2 years ago

Here attached protocol documentation for Chinese device called JT808.

JT808 Vehicle Tracking Protocol

I have tried connecting with port 5015 (huabao), but there is an error in the log as follows:

INFO: [Tbd15b4aa] error - readerIndex(113) + length(126) exceeds writerIndex(113): UnpooledByteBufAllocator$InstrumentedUnpooledUnsafeHeapByteBuf(ridx: 113, widx: 113, cap: 113) - IndexOutOfBoundsException (... < HuabaoProtocolDecoder:691 < *:237 < ExtendedObjectDecoder:75 < ... < WrapperContext:102 < ...)

The following is one of the location information data sent to the server:

7e02000062010000809750003f00000000000c0001000000000000000000000000000023111314532201040000000002020000030200001404000000051504000000021604000000001702000218030000002504000000002b040000000030011d31010051020000ee020031f30100227e
Anton Tananaev 2 years ago

Looks like it's not compatible with the current implementation. They probably changes something and decoder needs to be updated to support the change.

MarcosZreal 2 years ago

Hello Antón, I have a similar problem. Can the protocol code be modified? If so, could you give me a guide on how to do it please

Anton Tananaev 2 years ago

I already explained what needs to be done. If you have the skills, you should be able to do it. Please send us a pull request if you manage to update the protocol.

tr3vi0 2 years ago

@MarcosZreal, were you able to update the protocol?

Haim Rodrik 2 years ago

I got today, this updated JT808 protocol from gps tracker factory from China. I am assuming that is the latest version. How can I upload here?

vrish 2 years ago

Looks like I have a similar problem. Here is my forum post on it. https://www.traccar.org/forums/topic/huabao-incorrect-battery-level/

Has anyone managed to modify the protocol?

Anton Tananaev 2 years ago

Are you also getting the same error?

vrish 2 years ago

I get a similar error. Happens when the device sends a large packet / data.

error - Adjusted frame length exceeds 512: 12853 - discarded - TooLongFrameException (... < WrapperInboundHandler:57 < ... < StandardLoggingHandler:51 < ... < NetworkMessageHandler:37 < ...)
Anton Tananaev 2 years ago

That's a very different error.

Tanveer Asim a year ago

Hi guys, JT808 Chinese Protocol is supported in latest release? it is not mentioned in devices protocol list

Anton Tananaev a year ago
bumihartawan a year ago

Hi...
anyone have information port for Legevo HSZ-202?, i have try to use port clone 5001-5093 not working. Thank You

Anton Tananaev a year ago

Logs?

bumihartawan a year ago

Hi Anton,
i got it, legevo HSZ-202 using port 5002 protocol TK103

2025-01-31 23:55:36  INFO: [Tc78880a6: tk103 < 182.1.65.231]  (013612345678BR00250131A0719.5433S11241.2719E000.0165533220.4900020003L00000000)
2025-01-31 23:55:36  WARN: Unknown device - 013612345678 (182.1.65.231) 

Thank a lot