From ffdf0984b87e2ee3154ccb3d013a6bbf2a629783 Mon Sep 17 00:00:00 2001 From: Anton Tananaev Date: Wed, 10 Apr 2019 23:27:27 -0700 Subject: Decode digital outputs --- src/main/java/org/traccar/protocol/T800xProtocolDecoder.java | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/main/java/org/traccar/protocol/T800xProtocolDecoder.java b/src/main/java/org/traccar/protocol/T800xProtocolDecoder.java index 28fd7937d..96fb7f96a 100644 --- a/src/main/java/org/traccar/protocol/T800xProtocolDecoder.java +++ b/src/main/java/org/traccar/protocol/T800xProtocolDecoder.java @@ -163,6 +163,9 @@ public class T800xProtocolDecoder extends BaseProtocolDecoder { int io = buf.readUnsignedShort(); position.set(Position.KEY_IGNITION, BitUtil.check(io, 14)); position.set("ac", BitUtil.check(io, 13)); + for (int i = 0; i <= 2; i++) { + position.set(Position.PREFIX_OUT + (i + 1), BitUtil.check(io, 7 + i)); + } position.set(Position.PREFIX_ADC + 1, buf.readUnsignedShort()); position.set(Position.PREFIX_ADC + 2, buf.readUnsignedShort()); -- cgit v1.2.3