aboutsummaryrefslogtreecommitdiff
path: root/test/org/traccar/protocol/MegastekProtocolDecoderTest.java
diff options
context:
space:
mode:
authorAnton Tananaev <anton.tananaev@gmail.com>2015-12-21 15:29:27 +1300
committerAnton Tananaev <anton.tananaev@gmail.com>2015-12-21 15:29:27 +1300
commitaff70bdec220c4fb0c2b6dd05a2e858db383cefc (patch)
treeef4d4d47cee8218abbfaf163a5452acb6521c9c4 /test/org/traccar/protocol/MegastekProtocolDecoderTest.java
parent00ff8ce695d3a9baeaf999fd481bc2e897c84d7f (diff)
downloadtrackermap-server-aff70bdec220c4fb0c2b6dd05a2e858db383cefc.tar.gz
trackermap-server-aff70bdec220c4fb0c2b6dd05a2e858db383cefc.tar.bz2
trackermap-server-aff70bdec220c4fb0c2b6dd05a2e858db383cefc.zip
Implement new Megastek message format
Diffstat (limited to 'test/org/traccar/protocol/MegastekProtocolDecoderTest.java')
-rw-r--r--test/org/traccar/protocol/MegastekProtocolDecoderTest.java9
1 files changed, 9 insertions, 0 deletions
diff --git a/test/org/traccar/protocol/MegastekProtocolDecoderTest.java b/test/org/traccar/protocol/MegastekProtocolDecoderTest.java
index 27215d8eb..7f1c8f603 100644
--- a/test/org/traccar/protocol/MegastekProtocolDecoderTest.java
+++ b/test/org/traccar/protocol/MegastekProtocolDecoderTest.java
@@ -10,6 +10,15 @@ public class MegastekProtocolDecoderTest extends ProtocolTest {
MegastekProtocolDecoder decoder = new MegastekProtocolDecoder(new MegastekProtocol());
+ verifyNothing(decoder, text(
+ "0147$MGV002,354550050292669,GVT900,S,141215,031804,A,,S,,E,00,04,00,5.17,0.000,193.05,117.1,0.0,510,10,041B,0A5E,,0000,0000,22,12,0, , ,,1-1,98,Timer;!"));
+
+ verifyNothing(decoder, text(
+ "0137$MGV002,354550050292669,GVT900,R,141215,031804,A,,S,,E,00,03,00,3.67,0.000,0.00,117.1,0.0,510,10,,,,0000,0000,22,12,0, , ,,1-1,98,PW ON;!"));
+
+ verifyPosition(decoder, text(
+ "0125$MGV002,860719020193193,DeviceName,R,240214,104742,A,2238.20471,N,11401.97967,E,00,03,00,1.20,0.462,356.23,137.9,1.5,460,07,262C,0F54,25,0000,0000,0,0,0,28.5,28.3,,,100,Timer;"));
+
verifyPosition(decoder, text(
"$MGV002,860719020193193,DeviceName,R,240214,104742,A,2238.20471,N,11401.97967,E,00,03,00,1.20,0.462,356.23,137.9,1.5,460,07,262C,0F54,25,0000,0000,0,0,0,28.5,28.3,,,100,Timer;!"),
position("2014-02-24 10:47:42.000", true, 22.63675, 114.03299));