aboutsummaryrefslogtreecommitdiff
path: root/src/org/traccar/protocol
diff options
context:
space:
mode:
Diffstat (limited to 'src/org/traccar/protocol')
-rw-r--r--src/org/traccar/protocol/NavisProtocolDecoder.java17
1 files changed, 16 insertions, 1 deletions
diff --git a/src/org/traccar/protocol/NavisProtocolDecoder.java b/src/org/traccar/protocol/NavisProtocolDecoder.java
index 39e3bdc0f..93e751012 100644
--- a/src/org/traccar/protocol/NavisProtocolDecoder.java
+++ b/src/org/traccar/protocol/NavisProtocolDecoder.java
@@ -458,7 +458,22 @@ public class NavisProtocolDecoder extends BaseProtocolDecoder {
case 69:
int satVisible = 0;
for (int k = 0; k < 8; k++) {
- satVisible += buf.readUnsignedByte();
+ switch (k) {
+ case 0:
+ int satVisibleGLONASS = buf.readUnsignedByte();
+ position.set("sat-visible-glonass", satVisibleGLONASS);
+ satVisible += satVisibleGLONASS;
+ break;
+ case 1:
+ int satVisibleGPS = buf.readUnsignedByte();
+ position.set("sat-visible-gps", satVisibleGPS);
+ satVisible += satVisibleGPS;
+ break;
+ default:
+ // Don't detalize Galileo, Compass, Beidou, DORIS, IRNSS, QZSS
+ satVisible += buf.readUnsignedByte();
+ break;
+ }
}
position.set(Position.KEY_SATELLITES_VISIBLE, satVisible);
break;