From 3ceee5bc5d3d5c94045e1f2ff14e0cd801bfa5d4 Mon Sep 17 00:00:00 2001 From: Anton Tananaev Date: Mon, 2 Jul 2018 00:56:11 -0700 Subject: Decode Aplicom event data --- src/org/traccar/protocol/AplicomProtocolDecoder.java | 12 ++++++++++++ 1 file changed, 12 insertions(+) (limited to 'src/org') diff --git a/src/org/traccar/protocol/AplicomProtocolDecoder.java b/src/org/traccar/protocol/AplicomProtocolDecoder.java index 54b15700a..14ab83788 100644 --- a/src/org/traccar/protocol/AplicomProtocolDecoder.java +++ b/src/org/traccar/protocol/AplicomProtocolDecoder.java @@ -102,6 +102,18 @@ public class AplicomProtocolDecoder extends BaseProtocolDecoder { buf.readUnsignedInt(); buf.readUnsignedByte(); break; + case 119: + StringBuilder sb = new StringBuilder(); + while (buf.isReadable()) { + char c = (char) buf.readByte(); + if (c >= 0x20) { + sb.append(c); + } else { + break; + } + } + position.set("eventData", sb.toString()); + break; case 121: case 142: buf.readLong(); -- cgit v1.2.3