aboutsummaryrefslogtreecommitdiff
path: root/test/org/traccar/protocol/GoSafeProtocolDecoderTest.java
diff options
context:
space:
mode:
authorAnton Tananaev <anton.tananaev@gmail.com>2018-03-28 07:31:15 +1300
committerAnton Tananaev <anton.tananaev@gmail.com>2018-03-28 07:31:15 +1300
commitb98b3370bf975501857f6300a4f140e05cd82d5f (patch)
treeb135324bf22a7462b135ef6e3b4978adbc0f382e /test/org/traccar/protocol/GoSafeProtocolDecoderTest.java
parent85c43a28405deab09a15ffbc8fcaa38570b69cf8 (diff)
downloadtraccar-server-b98b3370bf975501857f6300a4f140e05cd82d5f.tar.gz
traccar-server-b98b3370bf975501857f6300a4f140e05cd82d5f.tar.bz2
traccar-server-b98b3370bf975501857f6300a4f140e05cd82d5f.zip
Fix GoSafe G6S and G3S decoding
Diffstat (limited to 'test/org/traccar/protocol/GoSafeProtocolDecoderTest.java')
-rw-r--r--test/org/traccar/protocol/GoSafeProtocolDecoderTest.java6
1 files changed, 6 insertions, 0 deletions
diff --git a/test/org/traccar/protocol/GoSafeProtocolDecoderTest.java b/test/org/traccar/protocol/GoSafeProtocolDecoderTest.java
index 42293f7ec..3e4e8f413 100644
--- a/test/org/traccar/protocol/GoSafeProtocolDecoderTest.java
+++ b/test/org/traccar/protocol/GoSafeProtocolDecoderTest.java
@@ -11,6 +11,12 @@ public class GoSafeProtocolDecoderTest extends ProtocolTest {
GoSafeProtocolDecoder decoder = new GoSafeProtocolDecoder(new GoSafeProtocol());
verifyPositions(decoder, text(
+ "*GS06,860078024213915,032544190318,,SYS:G3SC;V3.32;V1.1.8,GPS:A;7;N3.052417;E101.787112;0;0;94;1.38,COT:686;0-0-0,ADC:16.25;4.09,DTT:4000;E0;0;0;0;1#"));
+
+ verifyPositions(decoder, text(
+ "*GS06,351535058659335,062728190318,,SYS:G6S;V3.32;V1.0.5,GPS:A;10;N23.169806;E113.450760;0;0;81;0.77,COT:0,ADC:0.00;0.16,DTT:80;E0;0;0;0;1#"));
+
+ verifyPositions(decoder, text(
"*GS26,356449061046586,082522030117,,SYS:G737IC;V1.13;V1.0.5,GPS:V;5;N42.594136;W70.723832;0;0;8;2.06,GSM:;;310;260;C76D;9F1D;-85,ADC:3.86,DTT:3918C;;0;0;0;1,#"));
verifyPositions(decoder, text(