From 48ec866d8e50ce2ef63ca336648db611cc233916 Mon Sep 17 00:00:00 2001 From: Anton Tananaev Date: Mon, 18 Jan 2021 21:59:54 -0800 Subject: Decode disassembling alarm --- src/main/java/org/traccar/protocol/HuabaoProtocolDecoder.java | 3 +++ 1 file changed, 3 insertions(+) (limited to 'src/main/java/org/traccar') diff --git a/src/main/java/org/traccar/protocol/HuabaoProtocolDecoder.java b/src/main/java/org/traccar/protocol/HuabaoProtocolDecoder.java index b0cd1ab8c..a3d16cb62 100644 --- a/src/main/java/org/traccar/protocol/HuabaoProtocolDecoder.java +++ b/src/main/java/org/traccar/protocol/HuabaoProtocolDecoder.java @@ -115,6 +115,9 @@ public class HuabaoProtocolDecoder extends BaseProtocolDecoder { if (BitUtil.check(value, 8)) { return Position.ALARM_POWER_OFF; } + if (BitUtil.check(value, 17)) { + return Position.ALARM_TAMPERING; + } if (BitUtil.check(value, 20)) { return Position.ALARM_GEOFENCE; } -- cgit v1.2.3