diff options
author | Anton Tananaev <anton.tananaev@gmail.com> | 2020-03-26 20:51:13 -0700 |
---|---|---|
committer | Anton Tananaev <anton.tananaev@gmail.com> | 2020-03-26 20:51:13 -0700 |
commit | 0cd2d9e4d78fd586f71027e4eab486b047a7383e (patch) | |
tree | 7e9ae39b2c8c26958a088a581816e3b51836a357 /src/main/java/org/traccar | |
parent | 854e4c6f1de4620b86842ebd5f21aa26b3f13f2f (diff) | |
download | traccar-server-0cd2d9e4d78fd586f71027e4eab486b047a7383e.tar.gz traccar-server-0cd2d9e4d78fd586f71027e4eab486b047a7383e.tar.bz2 traccar-server-0cd2d9e4d78fd586f71027e4eab486b047a7383e.zip |
Update binary frame decoding
Diffstat (limited to 'src/main/java/org/traccar')
-rw-r--r-- | src/main/java/org/traccar/protocol/Gl200FrameDecoder.java | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/main/java/org/traccar/protocol/Gl200FrameDecoder.java b/src/main/java/org/traccar/protocol/Gl200FrameDecoder.java index c192cc28d..4ce243425 100644 --- a/src/main/java/org/traccar/protocol/Gl200FrameDecoder.java +++ b/src/main/java/org/traccar/protocol/Gl200FrameDecoder.java @@ -31,7 +31,7 @@ public class Gl200FrameDecoder extends BaseFrameDecoder { private static final int MINIMUM_LENGTH = 11; private static final Set<String> BINARY_HEADERS = new HashSet<>( - Arrays.asList("+RSP", "+BSP", "+EVT", "+BVT", "+INF", "+BNF", "+HBD", "+CRD", "+BRD")); + Arrays.asList("+RSP", "+BSP", "+EVT", "+BVT", "+INF", "+BNF", "+HBD", "+CRD", "+BRD", "+LGN")); public static boolean isBinary(ByteBuf buf) { String header = buf.toString(buf.readerIndex(), 4, StandardCharsets.US_ASCII); @@ -66,6 +66,7 @@ public class Gl200FrameDecoder extends BaseFrameDecoder { break; case "+CRD": case "+BRD": + case "+LGN": length = buf.getUnsignedShort(buf.readerIndex() + 6); break; default: |