diff options
author | Anton Tananaev <anton@traccar.org> | 2022-12-31 16:46:38 -0800 |
---|---|---|
committer | Anton Tananaev <anton@traccar.org> | 2022-12-31 16:46:38 -0800 |
commit | 67964087deaa12557ac3c48b537ee22475f82f5d (patch) | |
tree | a2fec14db5d826b657c2ad99b4b3e600fd8c423f /src/main/java/org | |
parent | 32d276ee8d3595a9f3290b96ca0b6bdd6140b7b4 (diff) | |
download | trackermap-server-67964087deaa12557ac3c48b537ee22475f82f5d.tar.gz trackermap-server-67964087deaa12557ac3c48b537ee22475f82f5d.tar.bz2 trackermap-server-67964087deaa12557ac3c48b537ee22475f82f5d.zip |
Decode G1A cell info
Diffstat (limited to 'src/main/java/org')
-rw-r--r-- | src/main/java/org/traccar/protocol/HuabaoProtocolDecoder.java | 7 |
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 f08c2afa4..d0bbeebb5 100644 --- a/src/main/java/org/traccar/protocol/HuabaoProtocolDecoder.java +++ b/src/main/java/org/traccar/protocol/HuabaoProtocolDecoder.java @@ -571,6 +571,13 @@ public class HuabaoProtocolDecoder extends BaseProtocolDecoder { case 0x00CE: position.set(Position.KEY_POWER, buf.readUnsignedShort() * 0.01); break; + case 0x00D8: + Network network = new Network(); + network.addCellTower(CellTower.from( + buf.readUnsignedShort(), buf.readUnsignedByte(), + buf.readUnsignedShort(), buf.readUnsignedInt())); + position.setNetwork(network); + break; case 0xE1: position.set(Position.KEY_BATTERY_LEVEL, buf.readUnsignedByte()); break; |