aboutsummaryrefslogtreecommitdiff
path: root/src/main/java/org
diff options
context:
space:
mode:
authorAnton Tananaev <anton.tananaev@gmail.com>2021-07-26 20:30:04 -0700
committerAnton Tananaev <anton.tananaev@gmail.com>2021-07-26 20:30:04 -0700
commite474e607eb2938e1b2e7baef761587eba9726f71 (patch)
treed8e6ce0a61be5858583b33db68b3fac7fceb3cfb /src/main/java/org
parent08442e5f2c24299b6120a2296a1cfd000a042178 (diff)
downloadtrackermap-server-e474e607eb2938e1b2e7baef761587eba9726f71.tar.gz
trackermap-server-e474e607eb2938e1b2e7baef761587eba9726f71.tar.bz2
trackermap-server-e474e607eb2938e1b2e7baef761587eba9726f71.zip
Fix protocol definition
Diffstat (limited to 'src/main/java/org')
-rw-r--r--src/main/java/org/traccar/protocol/NavtelecomProtocol.java6
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));
}
});
}