aboutsummaryrefslogtreecommitdiff
path: root/src/main
diff options
context:
space:
mode:
authorAnton Tananaev <anton@traccar.org>2023-03-31 17:48:05 -0700
committerAnton Tananaev <anton@traccar.org>2023-03-31 17:48:05 -0700
commit836fb2221dedae55c3f8457f35294b3753f095c8 (patch)
treeccda038df85447f465b7dba5cd94dd5234433926 /src/main
parent5c26f25b3b0afc509c76bfc4a111dbc383efee26 (diff)
downloadtrackermap-server-836fb2221dedae55c3f8457f35294b3753f095c8.tar.gz
trackermap-server-836fb2221dedae55c3f8457f35294b3753f095c8.tar.bz2
trackermap-server-836fb2221dedae55c3f8457f35294b3753f095c8.zip
Additional HHD parameters
Diffstat (limited to 'src/main')
-rw-r--r--src/main/java/org/traccar/protocol/HuabaoProtocolDecoder.java7
1 files changed, 7 insertions, 0 deletions
diff --git a/src/main/java/org/traccar/protocol/HuabaoProtocolDecoder.java b/src/main/java/org/traccar/protocol/HuabaoProtocolDecoder.java
index 5e73967d5..f13299169 100644
--- a/src/main/java/org/traccar/protocol/HuabaoProtocolDecoder.java
+++ b/src/main/java/org/traccar/protocol/HuabaoProtocolDecoder.java
@@ -333,9 +333,16 @@ public class HuabaoProtocolDecoder extends BaseProtocolDecoder {
buf.readUnsignedByte(); // power level
position.set(Position.KEY_BATTERY_LEVEL, buf.readUnsignedByte());
break;
+ case 0x60:
+ position.set(Position.KEY_EVENT, buf.readUnsignedShort());
+ buf.skipBytes(length - 2);
+ break;
case 0x61:
position.set(Position.KEY_POWER, buf.readUnsignedShort() * 0.01);
break;
+ case 0x69:
+ position.set(Position.KEY_BATTERY, buf.readUnsignedShort() * 0.01);
+ break;
case 0x80:
position.set(Position.KEY_OBD_SPEED, buf.readUnsignedByte());
break;