aboutsummaryrefslogtreecommitdiff
path: root/src/org/traccar/model
diff options
context:
space:
mode:
authorAbyss777 <abyss@fox5.ru>2016-07-29 15:50:59 +0500
committerAbyss777 <abyss@fox5.ru>2016-07-29 15:50:59 +0500
commit20c2456a9df46eaef04c787ea5471bf31a71f93c (patch)
treef8e76fb8f6cf27b0d1b2a9476dcb8436f4e88feb /src/org/traccar/model
parentcd0c04a03b359dfc5b1ea3f61b93aaae8f6fec3e (diff)
downloadtrackermap-server-20c2456a9df46eaef04c787ea5471bf31a71f93c.tar.gz
trackermap-server-20c2456a9df46eaef04c787ea5471bf31a71f93c.tar.bz2
trackermap-server-20c2456a9df46eaef04c787ea5471bf31a71f93c.zip
Organized alarms in the first part of protocols
Diffstat (limited to 'src/org/traccar/model')
-rw-r--r--src/org/traccar/model/Position.java31
1 files changed, 31 insertions, 0 deletions
diff --git a/src/org/traccar/model/Position.java b/src/org/traccar/model/Position.java
index e667f097d..3b6b9c8b1 100644
--- a/src/org/traccar/model/Position.java
+++ b/src/org/traccar/model/Position.java
@@ -54,6 +54,7 @@ public class Position extends Message {
public static final String KEY_APPROXIMATE = "approximate";
public static final String KEY_THROTTLE = "throttle";
public static final String KEY_MOTION = "motion";
+ public static final String KEY_GUARD = "guard";
public static final String KEY_OBD_SPEED = "obd-speed";
public static final String KEY_OBD_ODOMETER = "obd-odometer";
@@ -65,15 +66,45 @@ public class Position extends Message {
public static final String PREFIX_ADC = "adc";
public static final String PREFIX_IO = "io";
public static final String PREFIX_COUNT = "count";
+ public static final String PREFIX_BUTTON = "button";
+ public static final String ENDING_PRESSED = "Pressed";
+ public static final String ENDING_RELEASED = "Released";
+ public static final String ENDING_OPEN = "Open";
+ public static final String ENDING_CLOSE = "Close";
+ public static final String ENDING_ACTIVE = "Active";
+ public static final String ENDING_INACTIVE = "Inactive";
+
+
+ public static final String ALARM_GENERAL = "general";
public static final String ALARM_SOS = "sos";
public static final String ALARM_VIBRATION = "vibration";
public static final String ALARM_MOVEMENT = "movement";
public static final String ALARM_OVERSPEED = "overspeed";
+ public static final String ALARM_OVERSPEED_END = "overspeedEnd";
public static final String ALARM_FALL_DOWN = "fallDown";
public static final String ALARM_LOW_BATTERY = "lowBattery";
public static final String ALARM_MOTION = "motion";
public static final String ALARM_FAULT = "fault";
+ public static final String ALARM_POWER_OFF = "powerOff";
+ public static final String ALARM_JAMMING = "jamming";
+ public static final String ALARM_GEOFENCE = "geofence";
+ public static final String ALARM_GEOFENCE_ENTER = "geofenceEnter";
+ public static final String ALARM_GEOFENCE_EXIT = "geofenceExit";
+ public static final String ALARM_ODB = "odb";
+ public static final String ALARM_POWER_LOW = "powerLow";
+ public static final String ALARM_PARKING = "parking";
+ public static final String ALARM_CHARGE_BEGIN = "chargeBegin";
+ public static final String ALARM_CHARGE_END = "chargeEnd";
+ public static final String ALARM_RFID_NEW = "rfidNew";
+ public static final String ALARM_SLEEP_INTO = "intoSleep";
+ public static final String ALARM_SLEEP_FROM = "fromSleep";
+ public static final String ALARM_TRACKER_ON = "trackerOn";
+ public static final String ALARM_SHUTDOWN = "shutdown";
+ public static final String ALARM_GPS_BLIND_ENTER = "gpsBlindEnter";
+ public static final String ALARM_GPS_BLIND_EXIT = "gpsBlindExit";
+ public static final String ALARM_GPS_ANTENNA_CUT = "gpsAntennaCut";
+
private String protocol;