aboutsummaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authorAnton Tananaev <anton.tananaev@gmail.com>2016-10-02 20:38:03 +1300
committerGitHub <noreply@github.com>2016-10-02 20:38:03 +1300
commit8862d4f45712f6bee956c27380800d89105034e8 (patch)
tree869b17f6563ab3495f5cc092371a24f5d74b4acb /test
parent8e265f9c030496f5672460379bcb3fc2d0d78a3b (diff)
parentbb211eea5f62014c0700138e922cb1adcdc9d9dd (diff)
downloadtrackermap-server-8862d4f45712f6bee956c27380800d89105034e8.tar.gz
trackermap-server-8862d4f45712f6bee956c27380800d89105034e8.tar.bz2
trackermap-server-8862d4f45712f6bee956c27380800d89105034e8.zip
Merge pull request #2387 from vitalidze/jt600c_checksum_replies
For JT600c - added checksum verification and replying for alarms/positions
Diffstat (limited to 'test')
-rw-r--r--test/org/traccar/protocol/Jt600ProtocolDecoderTest.java6
1 files changed, 6 insertions, 0 deletions
diff --git a/test/org/traccar/protocol/Jt600ProtocolDecoderTest.java b/test/org/traccar/protocol/Jt600ProtocolDecoderTest.java
index 64db2a124..3fc74081f 100644
--- a/test/org/traccar/protocol/Jt600ProtocolDecoderTest.java
+++ b/test/org/traccar/protocol/Jt600ProtocolDecoderTest.java
@@ -74,6 +74,12 @@ public class Jt600ProtocolDecoderTest extends ProtocolTest {
"(6221107674,2,U09,129,2,A,280513113036,E,02711.0500,S,1721.0876,A,030613171243,E,02756.7618,S,2300.0325,3491,538200,14400,1)"));
verifyPosition(decoder, buffer(
+ "(3301210003,U02,040812,185302,T,00.000000,N,000.000000,E,0,0,0,0%,00000000000011,741,51,22,0,1,05)"));
+
+ verifyPosition(decoder, buffer(
+ "(3301210003,U06,4,250916,133207,T,7.011013,N,25.060708,W,27.61,102,10,0%,00101011000000,0,1,0,448,0,126,1,30)"));
+
+ verifyPosition(decoder, buffer(
"(3551001012,U01,010100,000032,F,0.000000,N,0.000000,E,0.00,0,0,10%,00000000010000,15748,7923,23,0,0,3E)"));
}