aboutsummaryrefslogtreecommitdiff
path: root/src/org/traccar/protocol/MeiligaoProtocolDecoder.java
diff options
context:
space:
mode:
authorAbyss777 <abyss@fox5.ru>2016-08-01 12:10:17 +0500
committerAbyss777 <abyss@fox5.ru>2016-08-01 12:10:17 +0500
commitc41c8edd7e4d275885cbef72212e553a2c86c9b4 (patch)
tree08740df9c0c871e0ad3dc52d7b84c76f18cc912b /src/org/traccar/protocol/MeiligaoProtocolDecoder.java
parent20c2456a9df46eaef04c787ea5471bf31a71f93c (diff)
downloadtrackermap-server-c41c8edd7e4d275885cbef72212e553a2c86c9b4.tar.gz
trackermap-server-c41c8edd7e4d275885cbef72212e553a2c86c9b4.tar.bz2
trackermap-server-c41c8edd7e4d275885cbef72212e553a2c86c9b4.zip
- Added a few more protocols
- Removed useless alarms - Optimizations
Diffstat (limited to 'src/org/traccar/protocol/MeiligaoProtocolDecoder.java')
-rw-r--r--src/org/traccar/protocol/MeiligaoProtocolDecoder.java14
1 files changed, 1 insertions, 13 deletions
diff --git a/src/org/traccar/protocol/MeiligaoProtocolDecoder.java b/src/org/traccar/protocol/MeiligaoProtocolDecoder.java
index 196b24d27..f23641ddb 100644
--- a/src/org/traccar/protocol/MeiligaoProtocolDecoder.java
+++ b/src/org/traccar/protocol/MeiligaoProtocolDecoder.java
@@ -150,26 +150,14 @@ public class MeiligaoProtocolDecoder extends BaseProtocolDecoder {
}
return server;
}
-
+
private String decodeAlarm(short value) {
switch (value) {
case 0x01: return Position.ALARM_SOS;
- case 0x02: return Position.PREFIX_BUTTON + "B" + Position.ENDING_PRESSED;
- case 0x03: return Position.PREFIX_BUTTON + "C" + Position.ENDING_PRESSED;
- case 0x04: return Position.PREFIX_IO + "4" + Position.ENDING_ACTIVE;
- case 0x05: return Position.PREFIX_IO + "5" + Position.ENDING_ACTIVE;
case 0x10: return Position.ALARM_LOW_BATTERY;
case 0x11: return Position.ALARM_OVERSPEED;
case 0x12: return Position.ALARM_MOVEMENT;
case 0x13: return Position.ALARM_GEOFENCE_ENTER;
- case 0x14: return Position.ALARM_TRACKER_ON;
- case 0x15: return Position.ALARM_GPS_BLIND_ENTER;
- case 0x16: return Position.ALARM_GPS_BLIND_EXIT;
- case 0x31: return Position.ALARM_SOS + Position.ENDING_RELEASED;
- case 0x32: return Position.PREFIX_BUTTON + "B" + Position.ENDING_RELEASED;
- case 0x33: return Position.PREFIX_BUTTON + "C" + Position.ENDING_RELEASED;
- case 0x34: return Position.PREFIX_IO + "4" + Position.ENDING_INACTIVE;
- case 0x35: return Position.PREFIX_IO + "5" + Position.ENDING_INACTIVE;
case 0x50: return Position.ALARM_POWER_OFF;
case 0x53: return Position.ALARM_GPS_ANTENNA_CUT;
default: return null;