aboutsummaryrefslogtreecommitdiff
path: root/src/org/traccar/protocol/Gl200TextProtocolDecoder.java
diff options
context:
space:
mode:
authorAnton Tananaev <anton.tananaev@gmail.com>2018-07-29 12:48:01 +1200
committerAnton Tananaev <anton.tananaev@gmail.com>2018-07-29 12:48:01 +1200
commit6135c6230bbbb27228029c46fa61fcdb9b274efc (patch)
treecd9038ed28838e34d339265175440d328382ea0e /src/org/traccar/protocol/Gl200TextProtocolDecoder.java
parent3fa3659a470dc9ab79a880304f179f08f78fddab (diff)
downloadtrackermap-server-6135c6230bbbb27228029c46fa61fcdb9b274efc.tar.gz
trackermap-server-6135c6230bbbb27228029c46fa61fcdb9b274efc.tar.bz2
trackermap-server-6135c6230bbbb27228029c46fa61fcdb9b274efc.zip
Additional GL200 alarms
Diffstat (limited to 'src/org/traccar/protocol/Gl200TextProtocolDecoder.java')
-rw-r--r--src/org/traccar/protocol/Gl200TextProtocolDecoder.java8
1 files changed, 8 insertions, 0 deletions
diff --git a/src/org/traccar/protocol/Gl200TextProtocolDecoder.java b/src/org/traccar/protocol/Gl200TextProtocolDecoder.java
index e6187a002..675a7c1fe 100644
--- a/src/org/traccar/protocol/Gl200TextProtocolDecoder.java
+++ b/src/org/traccar/protocol/Gl200TextProtocolDecoder.java
@@ -1023,6 +1023,12 @@ public class Gl200TextProtocolDecoder extends BaseProtocolDecoder {
decodeDeviceTime(position, parser);
switch (type) {
+ case "TOW":
+ position.set(Position.KEY_ALARM, Position.ALARM_TOW);
+ break;
+ case "IDL":
+ position.set(Position.KEY_ALARM, Position.ALARM_IDLE);
+ break;
case "PNA":
position.set(Position.KEY_ALARM, Position.ALARM_POWER_ON);
break;
@@ -1030,9 +1036,11 @@ public class Gl200TextProtocolDecoder extends BaseProtocolDecoder {
position.set(Position.KEY_ALARM, Position.ALARM_POWER_OFF);
break;
case "EPN":
+ case "MPN":
position.set(Position.KEY_ALARM, Position.ALARM_POWER_RESTORED);
break;
case "EPF":
+ case "MPF":
position.set(Position.KEY_ALARM, Position.ALARM_POWER_CUT);
break;
case "BPL":