diff options
author | Anton Tananaev <anton.tananaev@gmail.com> | 2018-03-21 23:06:13 +1300 |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-03-21 23:06:13 +1300 |
commit | ed8485eb47443a202eeaad79753a2c5a085fce80 (patch) | |
tree | beb695a4addaa4a5fbf6d0006bac56451fe73817 /test/org/traccar/protocol | |
parent | 3449aa51dc8250ba38772b39deb48f1f76be08c1 (diff) | |
parent | 277b14899879e882869552acc7847d63a03effcf (diff) | |
download | trackermap-server-ed8485eb47443a202eeaad79753a2c5a085fce80.tar.gz trackermap-server-ed8485eb47443a202eeaad79753a2c5a085fce80.tar.bz2 trackermap-server-ed8485eb47443a202eeaad79753a2c5a085fce80.zip |
Merge pull request #3810 from kevingoos/master
Added LaipacSFKamel protocol
Diffstat (limited to 'test/org/traccar/protocol')
-rw-r--r-- | test/org/traccar/protocol/LaipacProtocolDecoderTest.java | 25 |
1 files changed, 25 insertions, 0 deletions
diff --git a/test/org/traccar/protocol/LaipacProtocolDecoderTest.java b/test/org/traccar/protocol/LaipacProtocolDecoderTest.java index 787f33e65..41925040e 100644 --- a/test/org/traccar/protocol/LaipacProtocolDecoderTest.java +++ b/test/org/traccar/protocol/LaipacProtocolDecoderTest.java @@ -95,6 +95,31 @@ public class LaipacProtocolDecoderTest extends ProtocolTest { verifyPosition(decoder, text( "$AVRMC,96414215,170046,p,4310.7965,N,07652.0816,E,0.00,0.00,071016,0,4069,98,1,0,0*04")); + verifyPosition(decoder, text( + "$AVRMC,999999999999999,111602,r,5050.1262,N,00419.9660,E,0.00,0.00,120318,0,3843,95,1,0,0,3EE4A617,020610*47")); + + verifyPosition(decoder, text( + "$AVRMC,358174067149865,143456,R,5050.1285,N,00420.0620,E,0.00,309.27,190318,0,3455,119,1,0,0,3EE4A617,020610*54")); + + verifyPosition(decoder, text( + "$AVRMC,999999999999999,084514,r,5050.1314,N,00419.9719,E,0.68,306.39,120318,0,3882,84,1,0,0,3EE4A617,020610*4D")); + + //Alarm button + verifyPosition(decoder, text( + "$AVRMC,358174067149865,142945,R,5050.1254,N,00420.0490,E,0.00,0.00,190318,3,3455,119,1,0,0,3EE4A617,020610*53")); + + //G-Sensor + verifyPosition(decoder, text( + "$AVRMC,358174067149865,143407,R,5050.1254,N,00420.0490,E,0.00,0.00,190318,8,3455,119,1,0,0,3EE4A617,020610*52")); + + //Powered off + verifyPosition(decoder, text( + "$AVRMC,358174067149865,143648,A,5050.1141,N,00420.0525,E,1.24,174.38,190318,H,3455,119,1,0,0,3EE4A617,020610*3E")); + + //No network + verifyPosition(decoder, text( + "$AVRMC,358174067149865,143747,R,5050.1124,N,00420.0542,E,1.34,161.96,190318,a,3416,119,1,0,0*7D")); + } } |