From c1b406b6fcc442f96f9698774f5544ec9a0588e9 Mon Sep 17 00:00:00 2001 From: Anton Tananaev Date: Wed, 29 Sep 2021 20:37:47 -0700 Subject: Decode ADC values --- src/main/java/org/traccar/protocol/HuabaoProtocolDecoder.java | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'src/main/java/org') diff --git a/src/main/java/org/traccar/protocol/HuabaoProtocolDecoder.java b/src/main/java/org/traccar/protocol/HuabaoProtocolDecoder.java index 4d77d554e..05411addf 100644 --- a/src/main/java/org/traccar/protocol/HuabaoProtocolDecoder.java +++ b/src/main/java/org/traccar/protocol/HuabaoProtocolDecoder.java @@ -333,6 +333,10 @@ public class HuabaoProtocolDecoder extends BaseProtocolDecoder { Position.KEY_VIN, buf.readCharSequence(length, StandardCharsets.US_ASCII).toString()); } break; + case 0xA7: + position.set(Position.PREFIX_ADC + 1, buf.readUnsignedShort()); + position.set(Position.PREFIX_ADC + 2, buf.readUnsignedShort()); + break; case 0xAC: position.set(Position.KEY_ODOMETER, buf.readUnsignedInt()); break; -- cgit v1.2.3