From 7dd73afe4fe7f07e93e7fbfbb7ed4e1e4e94d10a Mon Sep 17 00:00:00 2001 From: Anton Tananaev Date: Sun, 18 Nov 2018 14:12:48 +1300 Subject: Handle BCE command responses --- src/org/traccar/protocol/BceProtocolDecoder.java | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'src') diff --git a/src/org/traccar/protocol/BceProtocolDecoder.java b/src/org/traccar/protocol/BceProtocolDecoder.java index 22877a29b..ed810bebb 100644 --- a/src/org/traccar/protocol/BceProtocolDecoder.java +++ b/src/org/traccar/protocol/BceProtocolDecoder.java @@ -65,6 +65,11 @@ public class BceProtocolDecoder extends BaseProtocolDecoder { int dataEnd = buf.readUnsignedShortLE() + buf.readerIndex(); int type = buf.readUnsignedByte(); + + if (type != MSG_ASYNC_STACK && type != MSG_TIME_TRIGGERED) { + return null; + } + int confirmKey = buf.readUnsignedByte() & 0x7F; while (buf.readerIndex() < dataEnd) { -- cgit v1.2.3