aboutsummaryrefslogtreecommitdiff
path: root/src/test
diff options
context:
space:
mode:
authorAnton Tananaev <anton.tananaev@gmail.com>2020-05-16 11:38:09 -0700
committerAnton Tananaev <anton.tananaev@gmail.com>2020-05-16 11:38:09 -0700
commit58dc2de1f80e3279c17405edf28c4deac231e7d9 (patch)
tree13d60ad53fb8959668bb8e378864912fb67de8bf /src/test
parentd16743300e424ed96b31bca98047f8e3e877162e (diff)
downloadtraccar-server-58dc2de1f80e3279c17405edf28c4deac231e7d9.tar.gz
traccar-server-58dc2de1f80e3279c17405edf28c4deac231e7d9.tar.bz2
traccar-server-58dc2de1f80e3279c17405edf28c4deac231e7d9.zip
Decode EGTS liquid sensor data
Diffstat (limited to 'src/test')
-rw-r--r--src/test/java/org/traccar/protocol/EgtsProtocolDecoderTest.java12
1 files changed, 12 insertions, 0 deletions
diff --git a/src/test/java/org/traccar/protocol/EgtsProtocolDecoderTest.java b/src/test/java/org/traccar/protocol/EgtsProtocolDecoderTest.java
index 2afb72e08..cdf27ee63 100644
--- a/src/test/java/org/traccar/protocol/EgtsProtocolDecoderTest.java
+++ b/src/test/java/org/traccar/protocol/EgtsProtocolDecoderTest.java
@@ -40,6 +40,18 @@ public class EgtsProtocolDecoderTest extends ProtocolTest {
"0100000b002400a0d601f01900030081030000000101011600030000004238363434393530333436343333373600014cdc"));
verifyPositions(decoder, binary(
+ "0100020b009e00892401504400ed539135de0100020210180051917613009194a00028db7893bd814700000001008c00001106001a3f00130300140500001d0000041207000f000000000000130100001b0700010000ae0e00004400ee539135de010002021018005491761300c094a00011db789353814700000001008c00001106001a3f00130300140500001c0000041207000f000010000000130100001b0700010000ca0e00004b47"));
+
+ verifyPositions(decoder, binary(
+ "0100020b004f00ae1101d24400ae1191af8304000202101800d9238213008dcea08070ec789338003c00000001008200001106001a740007020014050000180000041207000f000010000000130100001b0700010000af0f0000312a"));
+
+ verifyPositions(decoder, binary(
+ "0100020b009e004b8801b04400512091473502000202101800052582130026e5a080e04979937202f20000000100cd00001106001a470010030014050000190000041207000f000010000000130100001b0700010000e80b000044005220914735020002021018000b25821300d2e4a080524979937802f20000000100ce00001106001a4100110300140500001a0000041207000f000010000000130100001b0700010000eb0b0000c776"));
+
+ verifyPositions(decoder, binary(
+ "0100020b008b01550001dc4400580291ce5006000202101800fe248213002351a000072879934d810c0000000100af00001106001a5d000c030014050000000000041207000f000000000000130100001b07000100002a0a00004400590291ce500600020210180001258213002651a000e02779934481160000000100ad00001106001a49000e030014050000000000041207000f000000000000130100001b07000100003a0a000044005a0291ce500600020210180004258213002b51a000c2277993da80160000000100ab00001106001a4b000d030014050000000000041207000f000000000000130100001b0700010000d50a000044005b0291ce500600020210180014258213004e51a00033277993dd80210000000100ab00001106001a48000f030014050000000000041207000f000000000000130100001b0700010000b30a000044005c0291ce50060002021018001f258213007a51a080c4267993fa802f0000000100ac00001106001a48000f030014050000000000041207000f000000000000130100001b0700010000390a0000c664"));
+
+ verifyPositions(decoder, binary(
"0100000b002700030e01211800030e8573890100845e980f0202101500f85d980fb37f50aae9653c2b193708317b00000001c51b"));
verifyPositions(decoder, binary(