aboutsummaryrefslogtreecommitdiff
path: root/src/org/traccar/protocol
diff options
context:
space:
mode:
authorAnton Tananaev <anton.tananaev@gmail.com>2018-09-15 19:48:34 +1200
committerAnton Tananaev <anton.tananaev@gmail.com>2018-09-15 19:48:34 +1200
commit860322af33c0cfbf5b1e68bdbf248abd929edaf9 (patch)
tree13e796efcfd8907f2353a2bf890a42df72bdb214 /src/org/traccar/protocol
parentfc1ef8342339e72e5d4a88ac953dfaafc3cc3b63 (diff)
downloadtraccar-server-860322af33c0cfbf5b1e68bdbf248abd929edaf9.tar.gz
traccar-server-860322af33c0cfbf5b1e68bdbf248abd929edaf9.tar.bz2
traccar-server-860322af33c0cfbf5b1e68bdbf248abd929edaf9.zip
Support additional Galileo tags
Diffstat (limited to 'src/org/traccar/protocol')
-rw-r--r--src/org/traccar/protocol/GalileoProtocolDecoder.java14
1 files changed, 14 insertions, 0 deletions
diff --git a/src/org/traccar/protocol/GalileoProtocolDecoder.java b/src/org/traccar/protocol/GalileoProtocolDecoder.java
index 8ed4840a5..e66d8fa53 100644
--- a/src/org/traccar/protocol/GalileoProtocolDecoder.java
+++ b/src/org/traccar/protocol/GalileoProtocolDecoder.java
@@ -128,6 +128,9 @@ public class GalileoProtocolDecoder extends BaseProtocolDecoder {
case 0x34:
position.setAltitude(buf.readShortLE());
break;
+ case 0x35:
+ position.set(Position.KEY_HDOP, buf.readUnsignedByte() * 0.1);
+ break;
case 0x40:
position.set(Position.KEY_STATUS, buf.readUnsignedShortLE());
break;
@@ -234,6 +237,17 @@ public class GalileoProtocolDecoder extends BaseProtocolDecoder {
position.set("userDataArray", ByteBufUtil.hexDump(buf.readSlice(buf.readUnsignedByte())));
position.set("userDataArray", ByteBufUtil.hexDump(buf.readSlice(buf.readUnsignedByte())));
break;
+ case 0xf0:
+ case 0xf1:
+ case 0xf2:
+ case 0xf3:
+ case 0xf4:
+ case 0xf5:
+ case 0xf6:
+ case 0xf7:
+ case 0xf8:
+ position.set("can32Bit" + (tag - 0xf0 + 5), buf.readUnsignedIntLE());
+ break;
default:
buf.skipBytes(getTagLength(tag));
break;