diff options
author | Anton Tananaev <anton.tananaev@gmail.com> | 2017-01-07 09:49:43 +1300 |
---|---|---|
committer | Anton Tananaev <anton.tananaev@gmail.com> | 2017-01-07 09:49:43 +1300 |
commit | cf78794053bf2e6890e279c49471a936698bde1f (patch) | |
tree | d9513556e1aa76e330143092e2e50912dbd4a42f /test/org/traccar | |
parent | 32d0c2e760fdc9f9b7b0b2c4160987c463d27f99 (diff) | |
download | trackermap-server-cf78794053bf2e6890e279c49471a936698bde1f.tar.gz trackermap-server-cf78794053bf2e6890e279c49471a936698bde1f.tar.bz2 trackermap-server-cf78794053bf2e6890e279c49471a936698bde1f.zip |
Support GT30 alarm messages
Diffstat (limited to 'test/org/traccar')
-rw-r--r-- | test/org/traccar/protocol/Gt30ProtocolDecoderTest.java | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/test/org/traccar/protocol/Gt30ProtocolDecoderTest.java b/test/org/traccar/protocol/Gt30ProtocolDecoderTest.java index f33875ce1..7b81b1ebe 100644 --- a/test/org/traccar/protocol/Gt30ProtocolDecoderTest.java +++ b/test/org/traccar/protocol/Gt30ProtocolDecoderTest.java @@ -11,6 +11,18 @@ public class Gt30ProtocolDecoderTest extends ProtocolTest { Gt30ProtocolDecoder decoder = new Gt30ProtocolDecoder(new Gt30Protocol()); verifyPosition(decoder, text( + "$$005D3037811014 9955102834.000,A,3802.8629,N,02349.7163,E,0.00,,060117,,*13|1.3|26225BD")); + + verifyPosition(decoder, text( + "$$005E3037811014 9999\u0003121909.000,A,3802.9133,N,02349.9354,E,0.00,,060117,,*18|1.8|264518B")); + + verifyPosition(decoder, text( + "$$00633037811014 9999\u0002121901.000,A,3802.9137,N,02349.9334,E,2.86,18.16,060117,,*3E|1.8|262D752")); + + verifyPosition(decoder, text( + "$$005E3037811014 9999\u0001121849.000,A,3802.9094,N,02349.9384,E,0.00,,060117,,*1C|1.2|2683812")); + + verifyPosition(decoder, text( "$$005B3037811124 9955161049.000,A,3802.9474,N,02241.1897,E,0.00,,021115,,*15|2.9|5A639")); } |