aboutsummaryrefslogtreecommitdiff
path: root/src/org/traccar
diff options
context:
space:
mode:
authorAnton Tananaev <anton.tananaev@gmail.com>2018-03-14 07:11:35 +1300
committerAnton Tananaev <anton.tananaev@gmail.com>2018-03-14 07:11:35 +1300
commitb04758893af970e7954571771c1e6c136d472f20 (patch)
treeb5d3b8523f9e36c92abb6958283c6bd854ad0b25 /src/org/traccar
parent0aa78a779f764cad80d54d4710118212d52402c1 (diff)
downloadtrackermap-server-b04758893af970e7954571771c1e6c136d472f20.tar.gz
trackermap-server-b04758893af970e7954571771c1e6c136d472f20.tar.bz2
trackermap-server-b04758893af970e7954571771c1e6c136d472f20.zip
Additional Xirgo events
Diffstat (limited to 'src/org/traccar')
-rw-r--r--src/org/traccar/protocol/XirgoProtocolDecoder.java20
1 files changed, 12 insertions, 8 deletions
diff --git a/src/org/traccar/protocol/XirgoProtocolDecoder.java b/src/org/traccar/protocol/XirgoProtocolDecoder.java
index 1a753cb3e..461503af1 100644
--- a/src/org/traccar/protocol/XirgoProtocolDecoder.java
+++ b/src/org/traccar/protocol/XirgoProtocolDecoder.java
@@ -100,6 +100,18 @@ public class XirgoProtocolDecoder extends BaseProtocolDecoder {
position.set(Position.KEY_EVENT, event);
switch (event) {
+ case 4001:
+ case 4003:
+ case 6011:
+ case 6013:
+ position.set(Position.KEY_IGNITION, true);
+ break;
+ case 4002:
+ case 4004:
+ case 6012:
+ case 6014:
+ position.set(Position.KEY_IGNITION, false);
+ break;
case 4005:
position.set(Position.KEY_CHARGE, false);
break;
@@ -121,14 +133,6 @@ public class XirgoProtocolDecoder extends BaseProtocolDecoder {
case 6010:
position.set(Position.KEY_ALARM, Position.ALARM_POWER_RESTORED);
break;
- case 6011:
- case 6013:
- position.set(Position.KEY_IGNITION, true);
- break;
- case 6012:
- case 6014:
- position.set(Position.KEY_IGNITION, false);
- break;
case 6016:
position.set(Position.KEY_ALARM, Position.ALARM_IDLE);
break;