aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAnton Tananaev <anton.tananaev@gmail.com>2020-03-14 16:22:47 -0700
committerAnton Tananaev <anton.tananaev@gmail.com>2020-03-14 16:22:47 -0700
commite2071c06c0962c083f4f4d5dce5961b08c1920e7 (patch)
tree24cf32d127c68129dd9bc9677547bd71ac3509ba
parent1fdb7794514d59fef165d647f0b9ccf5db271621 (diff)
downloadtrackermap-server-e2071c06c0962c083f4f4d5dce5961b08c1920e7.tar.gz
trackermap-server-e2071c06c0962c083f4f4d5dce5961b08c1920e7.tar.bz2
trackermap-server-e2071c06c0962c083f4f4d5dce5961b08c1920e7.zip
Decode more alarms
-rw-r--r--src/main/java/org/traccar/protocol/FifotrackProtocolDecoder.java28
1 files changed, 27 insertions, 1 deletions
diff --git a/src/main/java/org/traccar/protocol/FifotrackProtocolDecoder.java b/src/main/java/org/traccar/protocol/FifotrackProtocolDecoder.java
index 40e146e0b..9bc7cb504 100644
--- a/src/main/java/org/traccar/protocol/FifotrackProtocolDecoder.java
+++ b/src/main/java/org/traccar/protocol/FifotrackProtocolDecoder.java
@@ -1,5 +1,5 @@
/*
- * Copyright 2016 - 2019 Anton Tananaev (anton@traccar.org)
+ * Copyright 2016 - 2020 Anton Tananaev (anton@traccar.org)
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
@@ -116,6 +116,32 @@ public class FifotrackProtocolDecoder extends BaseProtocolDecoder {
return Position.ALARM_POWER_CUT;
case 16:
return Position.ALARM_POWER_RESTORED;
+ case 17:
+ return Position.ALARM_LOW_BATTERY;
+ case 18:
+ return Position.ALARM_OVERSPEED;
+ case 20:
+ return Position.ALARM_GPS_ANTENNA_CUT;
+ case 21:
+ return Position.ALARM_VIBRATION;
+ case 23:
+ return Position.ALARM_ACCELERATION;
+ case 24:
+ return Position.ALARM_BRAKING;
+ case 27:
+ return Position.ALARM_FATIGUE_DRIVING;
+ case 30:
+ case 32:
+ return Position.ALARM_JAMMING;
+ case 33:
+ return Position.ALARM_GEOFENCE_EXIT;
+ case 34:
+ return Position.ALARM_GEOFENCE_ENTER;
+ case 35:
+ return Position.ALARM_IDLE;
+ case 40:
+ case 41:
+ return Position.ALARM_TEMPERATURE;
default:
return null;
}