aboutsummaryrefslogtreecommitdiff
path: root/src/org/traccar
diff options
context:
space:
mode:
authorAnton Tananaev <anton.tananaev@gmail.com>2019-03-22 09:02:19 -0700
committerAnton Tananaev <anton.tananaev@gmail.com>2019-03-22 09:02:19 -0700
commit409995a6ec0fe83ead8701f938fcac9e795d084a (patch)
treeb4a37adc6428255f49654c25e6d5370b70f5cdda /src/org/traccar
parenta7c067243085ad62eefe5e6643b48ddd99793ad0 (diff)
downloadtrackermap-server-409995a6ec0fe83ead8701f938fcac9e795d084a.tar.gz
trackermap-server-409995a6ec0fe83ead8701f938fcac9e795d084a.tar.bz2
trackermap-server-409995a6ec0fe83ead8701f938fcac9e795d084a.zip
Decode GSM signal strength
Diffstat (limited to 'src/org/traccar')
-rw-r--r--src/org/traccar/protocol/T800xProtocolDecoder.java3
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));