diff options
author | Anton Tananaev <anton.tananaev@gmail.com> | 2021-04-10 19:34:15 -0700 |
---|---|---|
committer | Anton Tananaev <anton.tananaev@gmail.com> | 2021-04-10 19:34:15 -0700 |
commit | 4904b15558f05b3458fc5f80253707e51f0ff2c0 (patch) | |
tree | e6ac445c866efb456e6c32ae0b1e2d71dd7ceb1f | |
parent | 77fdac153e7a76e49cf84848d51a18cae00d31a2 (diff) | |
download | traccar-server-4904b15558f05b3458fc5f80253707e51f0ff2c0.tar.gz traccar-server-4904b15558f05b3458fc5f80253707e51f0ff2c0.tar.bz2 traccar-server-4904b15558f05b3458fc5f80253707e51f0ff2c0.zip |
Anti-hijack trigger alarm
-rw-r--r-- | src/main/java/org/traccar/protocol/KhdProtocolDecoder.java | 2 |
1 files changed, 2 insertions, 0 deletions
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)) { |