aboutsummaryrefslogtreecommitdiff
path: root/test/org/traccar/protocol/Gps103ProtocolDecoderTest.java
diff options
context:
space:
mode:
authorAnton Tananaev <anton.tananaev@gmail.com>2017-06-13 04:43:11 +1200
committerAnton Tananaev <anton.tananaev@gmail.com>2017-06-13 04:43:11 +1200
commit1df59fb0916ec36604a7771a40f887caebd0e228 (patch)
tree3460c7498dc18339a32909cce74f884dfeb883f6 /test/org/traccar/protocol/Gps103ProtocolDecoderTest.java
parent2c82232375a16c1b3f5a62e2e5561d37a482dff9 (diff)
downloadtrackermap-server-1df59fb0916ec36604a7771a40f887caebd0e228.tar.gz
trackermap-server-1df59fb0916ec36604a7771a40f887caebd0e228.tar.bz2
trackermap-server-1df59fb0916ec36604a7771a40f887caebd0e228.zip
Fix GPS103 OBD message decoding
Diffstat (limited to 'test/org/traccar/protocol/Gps103ProtocolDecoderTest.java')
-rw-r--r--test/org/traccar/protocol/Gps103ProtocolDecoderTest.java6
1 files changed, 6 insertions, 0 deletions
diff --git a/test/org/traccar/protocol/Gps103ProtocolDecoderTest.java b/test/org/traccar/protocol/Gps103ProtocolDecoderTest.java
index c1f29add6..345a89ad9 100644
--- a/test/org/traccar/protocol/Gps103ProtocolDecoderTest.java
+++ b/test/org/traccar/protocol/Gps103ProtocolDecoderTest.java
@@ -10,6 +10,12 @@ public class Gps103ProtocolDecoderTest extends ProtocolTest {
Gps103ProtocolDecoder decoder = new Gps103ProtocolDecoder(new Gps103Protocol());
+ verifyAttributes(decoder, text(
+ "imei:862106025092216,OBD,170612165656,196043,,145803.9,,000,0.0%,+,0.0%,00000,12.6,,,,;"));
+
+ verifyAttributes(decoder, text(
+ "imei:862106025092216,OBD,170605095949,195874,,370.8,808,066,30.0%,+87,13.0%,02444,14.3,,,,;"));
+
verifyPosition(decoder, text(
"imei:353451044508750,DTC,0809231929,,F,055403.000,A,2233.1870,N,11354.3067,E,0.00,30.1,,1,0,10.5%,P0021,;"));