diff options
author | Anton Tananaev <anton.tananaev@gmail.com> | 2018-09-13 15:11:04 +1200 |
---|---|---|
committer | Anton Tananaev <anton.tananaev@gmail.com> | 2018-09-13 15:11:04 +1200 |
commit | e331573c0df7467fd36ae3eba3c259ed9b1d9253 (patch) | |
tree | ec49711dc3d023118e5aa45e7643383b86cdae2b /test/org | |
parent | 97fef56fd819996b8b35cb0ca9c49d11bbec635f (diff) | |
download | trackermap-server-e331573c0df7467fd36ae3eba3c259ed9b1d9253.tar.gz trackermap-server-e331573c0df7467fd36ae3eba3c259ed9b1d9253.tar.bz2 trackermap-server-e331573c0df7467fd36ae3eba3c259ed9b1d9253.zip |
Fix Coban 306A OBD decoding
Diffstat (limited to 'test/org')
-rw-r--r-- | test/org/traccar/protocol/Gps103ProtocolDecoderTest.java | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/test/org/traccar/protocol/Gps103ProtocolDecoderTest.java b/test/org/traccar/protocol/Gps103ProtocolDecoderTest.java index cf111f687..bd960a522 100644 --- a/test/org/traccar/protocol/Gps103ProtocolDecoderTest.java +++ b/test/org/traccar/protocol/Gps103ProtocolDecoderTest.java @@ -10,6 +10,9 @@ public class Gps103ProtocolDecoderTest extends ProtocolTest { Gps103ProtocolDecoder decoder = new Gps103ProtocolDecoder(new Gps103Protocol()); + verifyAttributes(decoder, text( + "imei:868683027758113,OBD,180905200218,,,,0,0,0.39%,70,9.41%,494,0.00,P0137,P0430,,;")); + verifyPosition(decoder, text( "imei:353451044508750,001,0809231929,13554900601,F,055403.000,A,2233.1870,N,11354.3067,E,0.00,30.1,65.43,1,0,10.5%,0.0%,28;")); @@ -25,7 +28,7 @@ public class Gps103ProtocolDecoderTest extends ProtocolTest { verifyAttributes(decoder, text( "imei:862106025092216,OBD,170605095949,195874,,370.8,808,066,30.0%,+87,13.0%,02444,14.3,,,,;")); - verifyNull(decoder, text( + verifyAttributes(decoder, text( "imei:868683027825532,OBD,170613203014,,,,0,0,0.00%,0,0.00%,0,0.00,,,,;")); verifyAttributes(decoder, text( |