From 4904b15558f05b3458fc5f80253707e51f0ff2c0 Mon Sep 17 00:00:00 2001 From: Anton Tananaev Date: Sat, 10 Apr 2021 19:34:15 -0700 Subject: Anti-hijack trigger alarm --- src/main/java/org/traccar/protocol/KhdProtocolDecoder.java | 2 ++ 1 file changed, 2 insertions(+) (limited to 'src') diff --git a/src/main/java/org/traccar/protocol/KhdProtocolDecoder.java b/src/main/java/org/traccar/protocol/KhdProtocolDecoder.java index b4fce5cbe..251351a74 100644 --- a/src/main/java/org/traccar/protocol/KhdProtocolDecoder.java +++ b/src/main/java/org/traccar/protocol/KhdProtocolDecoder.java @@ -73,6 +73,8 @@ public class KhdProtocolDecoder extends BaseProtocolDecoder { position.set(Position.KEY_ALARM, Position.ALARM_GEOFENCE_EXIT); } else if (BitUtil.check(status[0], 7)) { position.set(Position.KEY_ALARM, Position.ALARM_GEOFENCE_ENTER); + } else if (BitUtil.check(status[1], 0)) { + position.set(Position.KEY_ALARM, Position.ALARM_SOS); } else if (BitUtil.check(status[1], 1)) { position.set(Position.KEY_ALARM, Position.ALARM_OVERSPEED); } else if (BitUtil.check(status[1], 3)) { -- cgit v1.2.3