aboutsummaryrefslogtreecommitdiff
path: root/src/main/java/org/traccar/protocol/HuabaoProtocolDecoder.java
diff options
context:
space:
mode:
authorAnton Tananaev <anton@traccar.org>2023-06-11 09:27:52 -0700
committerAnton Tananaev <anton@traccar.org>2023-06-11 09:27:52 -0700
commitf0aedd380e67488dfe73adf49f48a822ca4b232e (patch)
tree976375a49e2df6b8067ddd8ddda8e52df2193c76 /src/main/java/org/traccar/protocol/HuabaoProtocolDecoder.java
parente88a5c9086ed960da1b593c38d313d004d58da5b (diff)
downloadtrackermap-server-f0aedd380e67488dfe73adf49f48a822ca4b232e.tar.gz
trackermap-server-f0aedd380e67488dfe73adf49f48a822ca4b232e.tar.bz2
trackermap-server-f0aedd380e67488dfe73adf49f48a822ca4b232e.zip
Additional VL502 parameters
Diffstat (limited to 'src/main/java/org/traccar/protocol/HuabaoProtocolDecoder.java')
-rw-r--r--src/main/java/org/traccar/protocol/HuabaoProtocolDecoder.java14
1 files changed, 13 insertions, 1 deletions
diff --git a/src/main/java/org/traccar/protocol/HuabaoProtocolDecoder.java b/src/main/java/org/traccar/protocol/HuabaoProtocolDecoder.java
index ee5ab19d6..3adfa7daf 100644
--- a/src/main/java/org/traccar/protocol/HuabaoProtocolDecoder.java
+++ b/src/main/java/org/traccar/protocol/HuabaoProtocolDecoder.java
@@ -1,5 +1,5 @@
/*
- * Copyright 2015 - 2022 Anton Tananaev (anton@traccar.org)
+ * Copyright 2015 - 2023 Anton Tananaev (anton@traccar.org)
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
@@ -880,9 +880,15 @@ public class HuabaoProtocolDecoder extends BaseProtocolDecoder {
case 0x0539:
position.set(Position.KEY_FUEL_CONSUMPTION, buf.readUnsignedShort() * 0.01);
break;
+ case 0x052B:
+ position.set(Position.KEY_FUEL_LEVEL, buf.readUnsignedByte());
+ break;
case 0x052D:
position.set(Position.KEY_COOLANT_TEMP, buf.readUnsignedByte() - 40);
break;
+ case 0x052E:
+ position.set("airTemp", buf.readUnsignedByte() - 40);
+ break;
case 0x0530:
position.set(Position.KEY_POWER, buf.readUnsignedShort() * 0.001);
break;
@@ -892,6 +898,12 @@ public class HuabaoProtocolDecoder extends BaseProtocolDecoder {
case 0x0536:
position.set(Position.KEY_RPM, buf.readUnsignedShort());
break;
+ case 0x053D:
+ position.set("intakePressure", buf.readUnsignedShort() * 0.1);
+ break;
+ case 0x0544:
+ position.set("liquidLevel", buf.readUnsignedByte());
+ break;
case 0x0547:
case 0x0548:
position.set(Position.KEY_THROTTLE, buf.readUnsignedByte());