aboutsummaryrefslogtreecommitdiff
path: root/src/main/java/org/traccar
diff options
context:
space:
mode:
authorAnton Tananaev <anton@traccar.org>2023-03-23 09:51:52 -0700
committerAnton Tananaev <anton@traccar.org>2023-03-23 09:51:52 -0700
commitb083371beb7b5d32b8ce91da60e10dd3cf8b4c6b (patch)
treebf26785ac426c2493913b92b39d8d110f90a4807 /src/main/java/org/traccar
parent7c2f9e56ba5f699d22ec2939408357b5a220bacc (diff)
downloadtrackermap-server-b083371beb7b5d32b8ce91da60e10dd3cf8b4c6b.tar.gz
trackermap-server-b083371beb7b5d32b8ce91da60e10dd3cf8b4c6b.tar.bz2
trackermap-server-b083371beb7b5d32b8ce91da60e10dd3cf8b4c6b.zip
Decode alarm code and input
Diffstat (limited to 'src/main/java/org/traccar')
-rw-r--r--src/main/java/org/traccar/protocol/T800xProtocolDecoder.java2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/main/java/org/traccar/protocol/T800xProtocolDecoder.java b/src/main/java/org/traccar/protocol/T800xProtocolDecoder.java
index 758716d23..4ddea730c 100644
--- a/src/main/java/org/traccar/protocol/T800xProtocolDecoder.java
+++ b/src/main/java/org/traccar/protocol/T800xProtocolDecoder.java
@@ -400,6 +400,7 @@ public class T800xProtocolDecoder extends BaseProtocolDecoder {
int alarm = buf.readUnsignedByte();
position.set(Position.KEY_ALARM, header != 0x2727 ? decodeAlarm1(alarm) : decodeAlarm2(alarm));
+ position.set("alarmCode", alarm);
if (header != 0x2727) {
@@ -470,6 +471,7 @@ public class T800xProtocolDecoder extends BaseProtocolDecoder {
int inputStatus = buf.readUnsignedShort();
position.set(Position.KEY_IGNITION, BitUtil.check(inputStatus, 2));
position.set(Position.KEY_RSSI, BitUtil.between(inputStatus, 4, 11));
+ position.set(Position.KEY_INPUT, inputStatus);
buf.readUnsignedShort(); // ignition on upload interval
buf.readUnsignedInt(); // ignition off upload interval