aboutsummaryrefslogtreecommitdiff
path: root/src/org/traccar
diff options
context:
space:
mode:
authorAnton Tananaev <anton.tananaev@gmail.com>2018-04-18 05:36:08 +1200
committerAnton Tananaev <anton.tananaev@gmail.com>2018-04-18 05:36:08 +1200
commit48268488c8fbd12e2e177e57dc20cb1d011879d9 (patch)
tree6a63bca324911e792c76b878603c00ca76eee5ca /src/org/traccar
parent430aeaa159e01d21966a20c77cdaf9aed0fa0730 (diff)
downloadtrackermap-server-48268488c8fbd12e2e177e57dc20cb1d011879d9.tar.gz
trackermap-server-48268488c8fbd12e2e177e57dc20cb1d011879d9.tar.bz2
trackermap-server-48268488c8fbd12e2e177e57dc20cb1d011879d9.zip
Additional GV300W info decoding
Diffstat (limited to 'src/org/traccar')
-rw-r--r--src/org/traccar/protocol/Gl200TextProtocolDecoder.java5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/org/traccar/protocol/Gl200TextProtocolDecoder.java b/src/org/traccar/protocol/Gl200TextProtocolDecoder.java
index ff300d429..598cee814 100644
--- a/src/org/traccar/protocol/Gl200TextProtocolDecoder.java
+++ b/src/org/traccar/protocol/Gl200TextProtocolDecoder.java
@@ -828,6 +828,7 @@ public class Gl200TextProtocolDecoder extends BaseProtocolDecoder {
decodeLocation(position, parser);
+ position.set(Position.KEY_IGNITION, sentence.contains("IGN"));
position.set(Position.KEY_HOURS, parser.next());
position.set(Position.KEY_ODOMETER, parser.nextDouble() * 1000);
@@ -918,6 +919,10 @@ public class Gl200TextProtocolDecoder extends BaseProtocolDecoder {
position.set(Position.KEY_MOTION, reportType == 1);
} else if (type.equals("SOS")) {
position.set(Position.KEY_ALARM, Position.ALARM_SOS);
+ } else if (type.equals("DIS")) {
+ position.set(Position.PREFIX_IN + reportType / 10, reportType % 10 == 1);
+ } else if (type.equals("IGL")) {
+ position.set(Position.KEY_IGNITION, reportType % 10 == 0);
}
decodeLocation(position, parser);