aboutsummaryrefslogtreecommitdiff
path: root/src/main/java/org/traccar
diff options
context:
space:
mode:
authorAnton Tananaev <anton@traccar.org>2022-12-31 16:46:38 -0800
committerAnton Tananaev <anton@traccar.org>2022-12-31 16:46:38 -0800
commit67964087deaa12557ac3c48b537ee22475f82f5d (patch)
treea2fec14db5d826b657c2ad99b4b3e600fd8c423f /src/main/java/org/traccar
parent32d276ee8d3595a9f3290b96ca0b6bdd6140b7b4 (diff)
downloadtrackermap-server-67964087deaa12557ac3c48b537ee22475f82f5d.tar.gz
trackermap-server-67964087deaa12557ac3c48b537ee22475f82f5d.tar.bz2
trackermap-server-67964087deaa12557ac3c48b537ee22475f82f5d.zip
Decode G1A cell info
Diffstat (limited to 'src/main/java/org/traccar')
-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 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;