aboutsummaryrefslogtreecommitdiff
path: root/src/main/java/org
diff options
context:
space:
mode:
authorAnton Tananaev <anton.tananaev@gmail.com>2021-10-15 12:25:45 -0700
committerAnton Tananaev <anton.tananaev@gmail.com>2021-10-15 12:25:45 -0700
commit3c218ef8d2ff1474446e637e8abd9c97c4a47df1 (patch)
tree69106e9917bdf24808c6e21b882549fc35b35190 /src/main/java/org
parent9552097653a88ed26b89356b7cce3eabe1833aeb (diff)
downloadtrackermap-server-3c218ef8d2ff1474446e637e8abd9c97c4a47df1.tar.gz
trackermap-server-3c218ef8d2ff1474446e637e8abd9c97c4a47df1.tar.bz2
trackermap-server-3c218ef8d2ff1474446e637e8abd9c97c4a47df1.zip
Decode additional Square3X data
Diffstat (limited to 'src/main/java/org')
-rw-r--r--src/main/java/org/traccar/protocol/HuaShengProtocolDecoder.java7
1 files changed, 7 insertions, 0 deletions
diff --git a/src/main/java/org/traccar/protocol/HuaShengProtocolDecoder.java b/src/main/java/org/traccar/protocol/HuaShengProtocolDecoder.java
index 2e1ddf5f2..891046213 100644
--- a/src/main/java/org/traccar/protocol/HuaShengProtocolDecoder.java
+++ b/src/main/java/org/traccar/protocol/HuaShengProtocolDecoder.java
@@ -262,6 +262,13 @@ public class HuaShengProtocolDecoder extends BaseProtocolDecoder {
case 0x0011:
position.set(Position.KEY_HOURS, buf.readUnsignedInt() * 0.05);
break;
+ case 0x0014:
+ position.set(Position.KEY_ENGINE_LOAD, buf.readUnsignedByte() / 255.0);
+ position.set("timingAdvance", buf.readUnsignedByte() * 0.5);
+ position.set("airTemp", buf.readUnsignedByte() - 40);
+ position.set("airFlow", buf.readUnsignedShort() * 0.01);
+ position.set(Position.KEY_THROTTLE, buf.readUnsignedByte() / 255.0);
+ break;
case 0x0020:
String[] cells = buf.readCharSequence(
length, StandardCharsets.US_ASCII).toString().split("\\+");