diff options
author | Anton Tananaev <anton.tananaev@gmail.com> | 2019-03-22 09:02:19 -0700 |
---|---|---|
committer | Anton Tananaev <anton.tananaev@gmail.com> | 2019-03-22 09:02:19 -0700 |
commit | 409995a6ec0fe83ead8701f938fcac9e795d084a (patch) | |
tree | b4a37adc6428255f49654c25e6d5370b70f5cdda | |
parent | a7c067243085ad62eefe5e6643b48ddd99793ad0 (diff) | |
download | trackermap-server-409995a6ec0fe83ead8701f938fcac9e795d084a.tar.gz trackermap-server-409995a6ec0fe83ead8701f938fcac9e795d084a.tar.bz2 trackermap-server-409995a6ec0fe83ead8701f938fcac9e795d084a.zip |
Decode GSM signal strength
-rw-r--r-- | src/org/traccar/protocol/T800xProtocolDecoder.java | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/org/traccar/protocol/T800xProtocolDecoder.java b/src/org/traccar/protocol/T800xProtocolDecoder.java index 5a8ba0751..dfd66693a 100644 --- a/src/org/traccar/protocol/T800xProtocolDecoder.java +++ b/src/org/traccar/protocol/T800xProtocolDecoder.java @@ -107,7 +107,8 @@ public class T800xProtocolDecoder extends BaseProtocolDecoder { buf.readUnsignedShort(); // acc off interval buf.readUnsignedByte(); // angle compensation buf.readUnsignedShort(); // distance compensation - buf.readUnsignedShort(); // speed alarm + + position.set(Position.KEY_RSSI, BitUtil.to(buf.readUnsignedShort(), 7)); int status = buf.readUnsignedByte(); position.set(Position.KEY_SATELLITES, BitUtil.to(status, 5)); |