diff options
author | Anton Tananaev <anton.tananaev@gmail.com> | 2020-02-05 21:29:55 -0800 |
---|---|---|
committer | Anton Tananaev <anton.tananaev@gmail.com> | 2020-02-05 21:29:55 -0800 |
commit | eaacf2e139b15e8d8c25f15b2d1559245184fffa (patch) | |
tree | 2b7ff36d6c0651c1a27959197acc728aee158900 /src/main/java/org/traccar/protocol/Gt06ProtocolDecoder.java | |
parent | 2c0563a4f7d4c89551c23c13f17249b5f1b4665a (diff) | |
download | traccar-server-eaacf2e139b15e8d8c25f15b2d1559245184fffa.tar.gz traccar-server-eaacf2e139b15e8d8c25f15b2d1559245184fffa.tar.bz2 traccar-server-eaacf2e139b15e8d8c25f15b2d1559245184fffa.zip |
Cell info attributes
Diffstat (limited to 'src/main/java/org/traccar/protocol/Gt06ProtocolDecoder.java')
-rw-r--r-- | src/main/java/org/traccar/protocol/Gt06ProtocolDecoder.java | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/src/main/java/org/traccar/protocol/Gt06ProtocolDecoder.java b/src/main/java/org/traccar/protocol/Gt06ProtocolDecoder.java index 946652b03..6f4f9f75e 100644 --- a/src/main/java/org/traccar/protocol/Gt06ProtocolDecoder.java +++ b/src/main/java/org/traccar/protocol/Gt06ProtocolDecoder.java @@ -259,9 +259,16 @@ public class Gt06ProtocolDecoder extends BaseProtocolDecoder { int mcc = buf.readUnsignedShort(); int mnc = BitUtil.check(mcc, 15) ? buf.readUnsignedShort() : buf.readUnsignedByte(); + int lac = buf.readUnsignedShort(); + int cid = buf.readUnsignedMedium(); + + position.set("mcc", mcc); + position.set("mnc", mnc); + position.set("lac", lac); + position.set("cid", cid); position.setNetwork(new Network(CellTower.from( - BitUtil.to(mcc, 15), mnc, buf.readUnsignedShort(), buf.readUnsignedMedium()))); + BitUtil.to(mcc, 15), mnc, lac, cid))); if (length > 9) { buf.skipBytes(length - 9); |