diff options
author | Anton Tananaev <anton.tananaev@gmail.com> | 2016-10-06 07:51:45 +1300 |
---|---|---|
committer | Anton Tananaev <anton.tananaev@gmail.com> | 2016-10-06 07:51:45 +1300 |
commit | a7b182cbacb730e85c542dac6b50e196add37261 (patch) | |
tree | 22a1cc6264c0e3c4eb25563a4c5b8a4620654432 /test/org/traccar | |
parent | 55a3404dd2d82666af8fe4fdfb81212874215879 (diff) | |
download | trackermap-server-a7b182cbacb730e85c542dac6b50e196add37261.tar.gz trackermap-server-a7b182cbacb730e85c542dac6b50e196add37261.tar.bz2 trackermap-server-a7b182cbacb730e85c542dac6b50e196add37261.zip |
Support all GL200 GTINF versions (fix #2402)
Diffstat (limited to 'test/org/traccar')
-rw-r--r-- | test/org/traccar/protocol/Gl200ProtocolDecoderTest.java | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/test/org/traccar/protocol/Gl200ProtocolDecoderTest.java b/test/org/traccar/protocol/Gl200ProtocolDecoderTest.java index b59782ac5..68c4b66a0 100644 --- a/test/org/traccar/protocol/Gl200ProtocolDecoderTest.java +++ b/test/org/traccar/protocol/Gl200ProtocolDecoderTest.java @@ -10,6 +10,18 @@ public class Gl200ProtocolDecoderTest extends ProtocolTest { Gl200ProtocolDecoder decoder = new Gl200ProtocolDecoder(new Gl200Protocol()); + verifyAttributes(decoder, text( + "+RESP:GTINF,080100,135790246811220,,16,898600810906F8048812,16,0,1,11870,,4.1,0,0,0,,20090214013254,,12340,,00,00,+0800,0,20090214093254,11F0$")); + + verifyAttributes(decoder, text( + "+RESP:GTINF,040100,135790246811220,,16,898600810906F8048812,16,0,1,,0,4.4,0,0,0,0,20090214013254,13000,00,00,+0800,0,20090214093254,11F0$")); + + verifyAttributes(decoder, text( + "+RESP:GTINF,060100,135790246811220,,16,898600810906F8048812,16,0,1,12000,,4.4,0,0,0,0,20090214013254,0,1300,2000,00,00,+0800,0,20090214093254,11F0$")); + + verifyAttributes(decoder, text( + "+RESP:GTINF,1A0800,860599000773978,GL300,41,89701016426133851978,17,0,1,26.6,,3.90,1,1,0,0,0,20161003184043,69,1,44,,,20161004040811,022C$")); + verifyPosition(decoder, text( "+RESP:GTFRI,360100,864251020141408,3VWGW6AJ0FM237324,gv500,,10,1,1,0.0,0,2258.4,-99.256948,19.555800,20160929214743,0334,0020,0084,65AC,00,0.0,,,,100,410000,0,nan,,20160929214743,13BA$")); |