aboutsummaryrefslogtreecommitdiff
path: root/src/main/java/org
diff options
context:
space:
mode:
authorAnton Tananaev <anton.tananaev@gmail.com>2021-11-29 20:49:25 -0800
committerAnton Tananaev <anton.tananaev@gmail.com>2021-11-29 20:49:25 -0800
commit480aee67810d6cd39e1d8efcdc2bed9b52789292 (patch)
treeb5de303dff23f8fc87166b867cc8b4b999324e5c /src/main/java/org
parent542e70a1d4aca4fa3260b86993a1b3558d81e508 (diff)
downloadtrackermap-server-480aee67810d6cd39e1d8efcdc2bed9b52789292.tar.gz
trackermap-server-480aee67810d6cd39e1d8efcdc2bed9b52789292.tar.bz2
trackermap-server-480aee67810d6cd39e1d8efcdc2bed9b52789292.zip
Update RSSI decoding
Diffstat (limited to 'src/main/java/org')
-rw-r--r--src/main/java/org/traccar/protocol/BceProtocolDecoder.java12
1 files changed, 7 insertions, 5 deletions
diff --git a/src/main/java/org/traccar/protocol/BceProtocolDecoder.java b/src/main/java/org/traccar/protocol/BceProtocolDecoder.java
index c1a69981d..535827f3c 100644
--- a/src/main/java/org/traccar/protocol/BceProtocolDecoder.java
+++ b/src/main/java/org/traccar/protocol/BceProtocolDecoder.java
@@ -90,11 +90,13 @@ public class BceProtocolDecoder extends BaseProtocolDecoder {
}
if (BitUtil.check(mask, 14)) {
- position.setNetwork(new Network(CellTower.from(
- buf.readUnsignedShortLE(), buf.readUnsignedByte(),
- buf.readUnsignedShortLE(), buf.readUnsignedShortLE(),
- buf.readUnsignedByte())));
- buf.readUnsignedByte();
+ int mcc = buf.readUnsignedShortLE();
+ int mnc = buf.readUnsignedByte();
+ int lac = buf.readUnsignedShortLE();
+ int cid = buf.readUnsignedShortLE();
+ buf.readUnsignedByte(); // time advance
+ int rssi = -buf.readUnsignedByte();
+ position.setNetwork(new Network(CellTower.from(mcc, mnc, lac, cid, rssi)));
}
}