From 735e087d084afd443fe7941364201964722e44db Mon Sep 17 00:00:00 2001 From: Anton Tananaev Date: Wed, 14 Nov 2018 17:14:46 +1300 Subject: Fix XRB 28 issues --- src/org/traccar/protocol/Xrb28Protocol.java | 2 +- src/org/traccar/protocol/Xrb28ProtocolDecoder.java | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) (limited to 'src/org/traccar/protocol') diff --git a/src/org/traccar/protocol/Xrb28Protocol.java b/src/org/traccar/protocol/Xrb28Protocol.java index bb8c4fa39..e9b75dd1e 100644 --- a/src/org/traccar/protocol/Xrb28Protocol.java +++ b/src/org/traccar/protocol/Xrb28Protocol.java @@ -38,7 +38,7 @@ public class Xrb28Protocol extends BaseProtocol { pipeline.addLast(new LineBasedFrameDecoder(1024)); pipeline.addLast(new StringEncoder()); pipeline.addLast(new StringDecoder()); - pipeline.addLast(new Ardi01ProtocolDecoder(Xrb28Protocol.this)); + pipeline.addLast(new Xrb28ProtocolDecoder(Xrb28Protocol.this)); } }); } diff --git a/src/org/traccar/protocol/Xrb28ProtocolDecoder.java b/src/org/traccar/protocol/Xrb28ProtocolDecoder.java index 7c382900a..c1854e4b0 100644 --- a/src/org/traccar/protocol/Xrb28ProtocolDecoder.java +++ b/src/org/traccar/protocol/Xrb28ProtocolDecoder.java @@ -68,7 +68,7 @@ public class Xrb28ProtocolDecoder extends BaseProtocolDecoder { String sentence = (String) msg; - DeviceSession deviceSession = getDeviceSession(channel, remoteAddress, sentence.substring(8, 24)); + DeviceSession deviceSession = getDeviceSession(channel, remoteAddress, sentence.substring(9, 24)); if (deviceSession == null) { return null; } -- cgit v1.2.3