aboutsummaryrefslogtreecommitdiff
path: root/src/test/java/org
diff options
context:
space:
mode:
authorAnton Tananaev <anton.tananaev@gmail.com>2020-02-06 23:16:11 -0800
committerAnton Tananaev <anton.tananaev@gmail.com>2020-02-06 23:16:11 -0800
commite193ae4656a6e0555565b35e8c657ae0777b156b (patch)
tree7e81a648f50ca07647361cd550efd13b8f1ff79b /src/test/java/org
parenteaacf2e139b15e8d8c25f15b2d1559245184fffa (diff)
downloadtraccar-server-e193ae4656a6e0555565b35e8c657ae0777b156b.tar.gz
traccar-server-e193ae4656a6e0555565b35e8c657ae0777b156b.tar.bz2
traccar-server-e193ae4656a6e0555565b35e8c657ae0777b156b.zip
Decode additional data
Diffstat (limited to 'src/test/java/org')
-rw-r--r--src/test/java/org/traccar/protocol/BlueProtocolDecoderTest.java13
1 files changed, 13 insertions, 0 deletions
diff --git a/src/test/java/org/traccar/protocol/BlueProtocolDecoderTest.java b/src/test/java/org/traccar/protocol/BlueProtocolDecoderTest.java
index 9f3254824..4aa50e56b 100644
--- a/src/test/java/org/traccar/protocol/BlueProtocolDecoderTest.java
+++ b/src/test/java/org/traccar/protocol/BlueProtocolDecoderTest.java
@@ -2,6 +2,7 @@ package org.traccar.protocol;
import org.junit.Test;
import org.traccar.ProtocolTest;
+import org.traccar.model.Position;
public class BlueProtocolDecoderTest extends ProtocolTest {
@@ -10,6 +11,18 @@ public class BlueProtocolDecoderTest extends ProtocolTest {
BlueProtocolDecoder decoder = new BlueProtocolDecoder(null);
+ verifyAttribute(decoder, binary(
+ "AA0056860080E3E79E0C811F80000114020207170520011F00407F8005EE1938113B270000000000000000140202071705005AC7A621121F0002000100B7000080110000000000001A3A0000000001F400000000000078"),
+ Position.KEY_ALARM, Position.ALARM_SOS);
+
+ verifyAttribute(decoder, binary(
+ "AA004A860080E3E79E20015FBE40148005EE193B113B263700000000000000140202080C09005AC7A621125F0002000000BB000000000000000000001A3A0007000001F400000000000008"),
+ Position.KEY_IGNITION, true);
+
+ verifyAttribute(decoder, binary(
+ "AA004A860080E3E79E200160BE40148005EE193B113B263700000000000000140202080C13005AC7A62112600002000000B7000000110000000000001A3A0007000001F400000000000012"),
+ Position.KEY_STATUS, 0x11);
+
verifyPosition(decoder, binary(
"aa00550000813f6f840b840380001032000000002001030040008005ee1938113b26f300000000000000140114082833044d27602112030002000000b70000020000000000000000650000001601f4000000000000e4"));