aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/org/traccar/protocol/Gps103ProtocolDecoder.java2
-rw-r--r--test/org/traccar/protocol/Gps103ProtocolDecoderTest.java3
2 files changed, 5 insertions, 0 deletions
diff --git a/src/org/traccar/protocol/Gps103ProtocolDecoder.java b/src/org/traccar/protocol/Gps103ProtocolDecoder.java
index f96f30090..38e6ec834 100644
--- a/src/org/traccar/protocol/Gps103ProtocolDecoder.java
+++ b/src/org/traccar/protocol/Gps103ProtocolDecoder.java
@@ -56,6 +56,7 @@ public class Gps103ProtocolDecoder extends BaseProtocolDecoder {
"([^,]+)?,?" +
"([^,]+)?,?" +
"([^,]+)?,?" +
+ "([^,]+)?,?" +
".*");
@Override
@@ -197,6 +198,7 @@ public class Gps103ProtocolDecoder extends BaseProtocolDecoder {
position.set(Event.PREFIX_IO + 2, parser.group(index++));
position.set(Event.PREFIX_IO + 3, parser.group(index++));
position.set(Event.PREFIX_IO + 4, parser.group(index++));
+ position.set(Event.PREFIX_IO + 5, parser.group(index++));
return position;
}
diff --git a/test/org/traccar/protocol/Gps103ProtocolDecoderTest.java b/test/org/traccar/protocol/Gps103ProtocolDecoderTest.java
index c4cb4fd49..3e63d4b34 100644
--- a/test/org/traccar/protocol/Gps103ProtocolDecoderTest.java
+++ b/test/org/traccar/protocol/Gps103ProtocolDecoderTest.java
@@ -120,6 +120,9 @@ public class Gps103ProtocolDecoderTest extends ProtocolDecoderTest {
verify(decoder.decode(null, null, null,
"imei:359710047424644,tracker,150506224036,,F,154037.000,A,0335.2785,N,09841.1543,E,3.03,337.54,,0,0,45.16%,,;"));
+
+ verify(decoder.decode(null, null, null,
+ "imei:865328023776874,acc off,150619152221,,F,072218.000,A,5439.8489,N,02518.5945,E,0.00,,,1,1,0.0,0.0,23.0,;"));
}