aboutsummaryrefslogtreecommitdiff
path: root/src/main
diff options
context:
space:
mode:
authorAnton Tananaev <anton@traccar.org>2024-05-06 17:37:27 -0700
committerAnton Tananaev <anton@traccar.org>2024-05-06 17:37:27 -0700
commita8a8036fc87076c910196c290b8ea551c7be9a52 (patch)
tree9b2158d9d4803041bdf90667cf4910f2879be380 /src/main
parent49483e0420ca8c7ff1afb31dacc7a427f93c7a3a (diff)
downloadtrackermap-server-a8a8036fc87076c910196c290b8ea551c7be9a52.tar.gz
trackermap-server-a8a8036fc87076c910196c290b8ea551c7be9a52.tar.bz2
trackermap-server-a8a8036fc87076c910196c290b8ea551c7be9a52.zip
Add G1C 5W ICCID support
Diffstat (limited to 'src/main')
-rw-r--r--src/main/java/org/traccar/protocol/HuabaoProtocolDecoder.java4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/main/java/org/traccar/protocol/HuabaoProtocolDecoder.java b/src/main/java/org/traccar/protocol/HuabaoProtocolDecoder.java
index 648c5fb42..fd3015e66 100644
--- a/src/main/java/org/traccar/protocol/HuabaoProtocolDecoder.java
+++ b/src/main/java/org/traccar/protocol/HuabaoProtocolDecoder.java
@@ -668,6 +668,10 @@ public class HuabaoProtocolDecoder extends BaseProtocolDecoder {
position.set("fuel2", Double.parseDouble(
buf.readCharSequence(6, StandardCharsets.US_ASCII).toString()));
break;
+ case 0x00B2:
+ position.set(Position.KEY_ICCID, ByteBufUtil.hexDump(
+ buf.readSlice(10)).replaceAll("f", ""));
+ break;
case 0x00CE:
position.set(Position.KEY_POWER, buf.readUnsignedShort() * 0.01);
break;