diff options
author | Anton Tananaev <anton.tananaev@gmail.com> | 2021-07-26 20:30:04 -0700 |
---|---|---|
committer | Anton Tananaev <anton.tananaev@gmail.com> | 2021-07-26 20:30:04 -0700 |
commit | e474e607eb2938e1b2e7baef761587eba9726f71 (patch) | |
tree | d8e6ce0a61be5858583b33db68b3fac7fceb3cfb /src/main/java | |
parent | 08442e5f2c24299b6120a2296a1cfd000a042178 (diff) | |
download | traccar-server-e474e607eb2938e1b2e7baef761587eba9726f71.tar.gz traccar-server-e474e607eb2938e1b2e7baef761587eba9726f71.tar.bz2 traccar-server-e474e607eb2938e1b2e7baef761587eba9726f71.zip |
Fix protocol definition
Diffstat (limited to 'src/main/java')
-rw-r--r-- | src/main/java/org/traccar/protocol/NavtelecomProtocol.java | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/src/main/java/org/traccar/protocol/NavtelecomProtocol.java b/src/main/java/org/traccar/protocol/NavtelecomProtocol.java index c76b42768..29ad62e48 100644 --- a/src/main/java/org/traccar/protocol/NavtelecomProtocol.java +++ b/src/main/java/org/traccar/protocol/NavtelecomProtocol.java @@ -20,14 +20,16 @@ import org.traccar.BaseProtocol; import org.traccar.PipelineBuilder; import org.traccar.TrackerServer; +import java.nio.ByteOrder; + public class NavtelecomProtocol extends BaseProtocol { public NavtelecomProtocol() { addServer(new TrackerServer(false, getName()) { @Override protected void addProtocolHandlers(PipelineBuilder pipeline) { - pipeline.addLast(new LengthFieldBasedFrameDecoder(256, 2, 1, 2, 0)); - pipeline.addLast(new Gt02ProtocolDecoder(NavtelecomProtocol.this)); + pipeline.addLast(new LengthFieldBasedFrameDecoder(ByteOrder.LITTLE_ENDIAN, 1024, 12, 2, 2, 0, true)); + pipeline.addLast(new NavtelecomProtocolDecoder(NavtelecomProtocol.this)); } }); } |