From a06891f76bea2f514caedb3fb8b84af8c629ec6b Mon Sep 17 00:00:00 2001 From: Anton Tananaev Date: Fri, 16 Dec 2016 19:06:45 +1300 Subject: Modify Aplicom protocol decoder --- src/org/traccar/protocol/AplicomProtocolDecoder.java | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'src/org/traccar/protocol') diff --git a/src/org/traccar/protocol/AplicomProtocolDecoder.java b/src/org/traccar/protocol/AplicomProtocolDecoder.java index 8c06aad6f..bcaac5349 100644 --- a/src/org/traccar/protocol/AplicomProtocolDecoder.java +++ b/src/org/traccar/protocol/AplicomProtocolDecoder.java @@ -466,7 +466,10 @@ public class AplicomProtocolDecoder extends BaseProtocolDecoder { position.set("tripDistance", buf.readUnsignedInt() * 5); position.set("serviceDistance", (buf.readUnsignedInt() - 2105540607) * 5); } else if (type == 0x0A) { - position.set("brakeData", ChannelBuffers.hexDump(buf.readBytes(length))); + ChannelBuffer brakeData = buf.readBytes(length); + position.set("absStatusCounter", brakeData.readUnsignedShort()); + position.set("atvbStatusCounter", brakeData.readUnsignedShort()); + position.set("vdcActiveCounter", brakeData.readUnsignedShort()); } else if (type == 0x0B) { position.set("brakeMinMaxData", ChannelBuffers.hexDump(buf.readBytes(length))); } else if (type == 0x0C) { -- cgit v1.2.3