From 9d302724115995c7cb587c581eb2d10c4a589cf3 Mon Sep 17 00:00:00 2001 From: Anton Tananaev Date: Fri, 25 Dec 2020 17:50:09 -0800 Subject: Add Dolphin protocol support --- .../traccar/protocol/DolphinProtocolDecoderTest.java | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) create mode 100644 src/test/java/org/traccar/protocol/DolphinProtocolDecoderTest.java (limited to 'src/test/java/org/traccar') diff --git a/src/test/java/org/traccar/protocol/DolphinProtocolDecoderTest.java b/src/test/java/org/traccar/protocol/DolphinProtocolDecoderTest.java new file mode 100644 index 000000000..ea60b51b1 --- /dev/null +++ b/src/test/java/org/traccar/protocol/DolphinProtocolDecoderTest.java @@ -0,0 +1,20 @@ +package org.traccar.protocol; + +import org.junit.Ignore; +import org.junit.Test; +import org.traccar.ProtocolTest; + +@Ignore +public class DolphinProtocolDecoderTest extends ProtocolTest { + + @Test + public void testDecode() throws Exception { + + DolphinProtocolDecoder decoder = new DolphinProtocolDecoder(null); + + verifyPositions(decoder, binary( + "ababe0110000000100000100b3950b86c70e030048040000f524bcc90a9d010d9de6144215b78a46421d6666c6402008359a99cf41380a455d90e15f48015a41050a0b1e29323334353637464850649601a401a601aa01ab01ad01b401b501b601b701b801c905ca05cb05cd05d105d205e605e705ef059c069e06a206a906aa06623900000015e71cc8f5d00b00ee99a20200c2c88901000001ef9aa202000200000000000000000000697d0082b4e106000000000000030000fa010a99010d9de6144215b78a46421d6666c640359a99cf4145d292e15f48015a41050a0b1e29323334353637464850649601a401a601aa01ab01ad01b401b501b601b701b801c905ca05cb05cd05d105d205e605e705ef059c069e06a206a906aa066239000000158d1dc8f5d00b00ee99a20200c2c88901000001ef9aa202000000000000000000000000697d0082b4e106000000000000030000fa010a99010d9de6144215b78a46421d6666c640359a99cf41455696e15f48015a41050a0b1e29323334353637464850649601a401a601aa01ab01ad01b401b501b601b701b801c905ca05cb05cd05d105d205e605e705ef059c069e06a206a906aa06623900000015821dc8f5d00b00ee99a20200c2c88901000001ef9aa202000000000000000000000000697d0082b4e106000000000000030000fa010a99010d9de6144215b78a46421d6666c640359a99cf4145da99e15f48015a41050a0b1e29323334353637464850649601a401a601aa01ab01ad01b401b501b601b701b801c905ca05cb05cd05d105d205e605e705ef059c069e06a206a906aa066239000000148d1dc8f5d00b00ee99a20200c2c88901000001ef9aa202000000000000000000000000697d0082b4e106000000000000030000fa010a99010d9de6144215b78a46421d6666c640359a99cf41455e9de15f48015a41050a0b1e29323334353637464850649601a401a601aa01ab01ad01b401b501b601b701b801c905ca05cb05cd05d105d205e605e705ef059c069e06a206a906aa06623900000014fd1cc8f5d00b00ee99a20200c2c88901000001ef9aa202000000000000000000000000697d0082b4e106000000000000030000fa010a99010d9de6144215b78a46421d6666c640359a99cf4145e2a0e15f48015a41050a0b1e29323334353637464850649601a401a601aa01ab01ad01b401b501b601b701b801c905ca05cb05cd05d105d205e605e705ef059c069e06a206a906aa06623900000013931dc8f5d00b00ee99a20200c2c88901000001ef9aa202000000000000000000000000697d0082b4e106000000000000030000fa010a99010d9de6144215b78a46421d6666c640359a99cf414566a4e15f48015a41050a0b1e29323334353637464850649601a401a601aa01ab")); + + } + +} -- cgit v1.2.3