aboutsummaryrefslogtreecommitdiff
path: root/src/org/traccar/protocol
diff options
context:
space:
mode:
authorAnton Tananaev <anton.tananaev@gmail.com>2016-12-16 19:06:45 +1300
committerAnton Tananaev <anton.tananaev@gmail.com>2016-12-16 19:06:45 +1300
commita06891f76bea2f514caedb3fb8b84af8c629ec6b (patch)
tree2e10f27da6624a2e02d25042f6c216c022004008 /src/org/traccar/protocol
parent929f802ac6aa8f30dd3545f325924415d6628be3 (diff)
downloadtrackermap-server-a06891f76bea2f514caedb3fb8b84af8c629ec6b.tar.gz
trackermap-server-a06891f76bea2f514caedb3fb8b84af8c629ec6b.tar.bz2
trackermap-server-a06891f76bea2f514caedb3fb8b84af8c629ec6b.zip
Modify Aplicom protocol decoder
Diffstat (limited to 'src/org/traccar/protocol')
-rw-r--r--src/org/traccar/protocol/AplicomProtocolDecoder.java5
1 files changed, 4 insertions, 1 deletions
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) {