aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorZeus The Developer <75146431+zeustd@users.noreply.github.com>2023-05-10 20:24:42 +0530
committerGitHub <noreply@github.com>2023-05-10 20:24:42 +0530
commit46f09ad36017e9ac160cf029551dc2586f21504f (patch)
treefa48977042d2bf2206fb62c103b0312a1067ac9c
parentae1205dfdded530e4cdf7bb665fe52cf197c33be (diff)
downloadtrackermap-server-46f09ad36017e9ac160cf029551dc2586f21504f.tar.gz
trackermap-server-46f09ad36017e9ac160cf029551dc2586f21504f.tar.bz2
trackermap-server-46f09ad36017e9ac160cf029551dc2586f21504f.zip
Add VL502 Alarms
Added support for VL502 additional alarms, Protocol document Page 44, 0x03
-rw-r--r--src/main/java/org/traccar/protocol/HuabaoProtocolDecoder.java15
1 files changed, 15 insertions, 0 deletions
diff --git a/src/main/java/org/traccar/protocol/HuabaoProtocolDecoder.java b/src/main/java/org/traccar/protocol/HuabaoProtocolDecoder.java
index ed71861a5..2c6f9af96 100644
--- a/src/main/java/org/traccar/protocol/HuabaoProtocolDecoder.java
+++ b/src/main/java/org/traccar/protocol/HuabaoProtocolDecoder.java
@@ -951,6 +951,21 @@ public class HuabaoProtocolDecoder extends BaseProtocolDecoder {
case 0x23:
position.set(Position.KEY_ALARM, Position.ALARM_FATIGUE_DRIVING);
break;
+ case 0x26:
+ case 0x27:
+ case 0x28:
+ position.set(Position.KEY_ALARM, Position.ALARM_ACCIDENT);
+ break;
+ case 0x31:
+ case 0x32:
+ position.set(Position.KEY_ALARM, Position.ALARM_DOOR);
+ break;
+ case 0x01:
+ position.set(Position.KEY_ALARM, Position.ALARM_POWER_RESTORED);
+ break;
+ case 0x02:
+ position.set(Position.KEY_ALARM, Position.ALARM_POWER_CUT);
+ break;
default:
break;
}