aboutsummaryrefslogtreecommitdiff
path: root/test/org/traccar/protocol
diff options
context:
space:
mode:
authorAnton Tananaev <anton.tananaev@gmail.com>2013-08-16 00:20:05 +1200
committerAnton Tananaev <anton.tananaev@gmail.com>2013-08-16 00:20:05 +1200
commit123544ebec47b6d418980ff2da6033de1fe0ea45 (patch)
tree84dfe31644e8979a9d3c7669cac6f166292b3ac2 /test/org/traccar/protocol
parent7c56e30b389f06713272532c10bac68ec108a29c (diff)
downloadtrackermap-server-123544ebec47b6d418980ff2da6033de1fe0ea45.tar.gz
trackermap-server-123544ebec47b6d418980ff2da6033de1fe0ea45.tar.bz2
trackermap-server-123544ebec47b6d418980ff2da6033de1fe0ea45.zip
Support alternative megastek format
Diffstat (limited to 'test/org/traccar/protocol')
-rw-r--r--test/org/traccar/protocol/MegastekProtocolDecoderTest.java10
1 files changed, 8 insertions, 2 deletions
diff --git a/test/org/traccar/protocol/MegastekProtocolDecoderTest.java b/test/org/traccar/protocol/MegastekProtocolDecoderTest.java
index f4998d3f9..33ef6fe40 100644
--- a/test/org/traccar/protocol/MegastekProtocolDecoderTest.java
+++ b/test/org/traccar/protocol/MegastekProtocolDecoderTest.java
@@ -10,16 +10,22 @@ public class MegastekProtocolDecoderTest {
MegastekProtocolDecoder decoder = new MegastekProtocolDecoder(null);
decoder.setDataManager(new TestDataManager());
-
+
assertNotNull(decoder.decode(null, null,
"STX,GerAL22,$GPRMC,174752.000,A,3637.060059,S,6416.2354,W,0.00,0.00,030812,,,A*55,F,,imei:861785000249353,05,180.6,Battery=100%,,1,722,310,0FA6,39D0;8F"));
-
+
assertNotNull(decoder.decode(null, null,
"STX,GerAL22,$GPRMC,000051.000,A,3637.079590,S,6416.2148,W,1.72,332.98,010109,,,A*52,L,,imei:861785000249353,03,275.3,Battery=68%,,1,722,07,0515,1413;41"));
assertNotNull(decoder.decode(null, null,
"STX,102110830074542,$GPRMC,114229.000,A,2238.2024,N,11401.9619,E,0.00,0.00,310811,,,A*64,F,LowBattery,imei:012207005553885,03,113.1,Battery=24%,,1,460,01,2531,647E;57"));
+ assertNotNull(decoder.decode(null, null,
+ "STX863070014949464 $GPRMC,215942.290,A,4200.1831,N,02128.5904,E,003.1,079.8,090813,,,A*6E,294,02,0064,0F3D,18,17,0000,000000,0000,0.00,0.02,0.00,Store;D8"));
+
+ assertNotNull(decoder.decode(null, null,
+ "STX123456 $GPRMC,063709.000,A,2238.1998,N,11401.9670,E,0.00,,250313,,,A*7F,460,01,2531,647E,11,87,1000,001001,0000,0.00,0.02,0.00,Timer;4A"));
+
}
}