From daacd9e40d6b6528391d796a5a365e661f3b581f Mon Sep 17 00:00:00 2001 From: Anton Tananaev Date: Mon, 25 Mar 2019 20:23:55 -0700 Subject: Add missing alarms --- src/org/traccar/protocol/T800xProtocolDecoder.java | 15 +++++++++++++-- 1 file changed, 13 insertions(+), 2 deletions(-) diff --git a/src/org/traccar/protocol/T800xProtocolDecoder.java b/src/org/traccar/protocol/T800xProtocolDecoder.java index dfd66693a..dfb286257 100644 --- a/src/org/traccar/protocol/T800xProtocolDecoder.java +++ b/src/org/traccar/protocol/T800xProtocolDecoder.java @@ -59,6 +59,10 @@ public class T800xProtocolDecoder extends BaseProtocolDecoder { private String decodeAlarm(short value) { switch (value) { + case 1: + return Position.ALARM_POWER_CUT; + case 2: + return Position.ALARM_LOW_BATTERY; case 3: return Position.ALARM_SOS; case 4: @@ -67,13 +71,20 @@ public class T800xProtocolDecoder extends BaseProtocolDecoder { return Position.ALARM_GEOFENCE_ENTER; case 6: return Position.ALARM_GEOFENCE_EXIT; + case 7: + return Position.ALARM_TOW; case 8: case 10: return Position.ALARM_VIBRATION; + case 21: + return Position.ALARM_JAMMING; + case 23: + return Position.ALARM_POWER_RESTORED; + case 24: + return Position.ALARM_LOW_POWER; default: - break; + return null; } - return null; } @Override -- cgit v1.2.3