From 860322af33c0cfbf5b1e68bdbf248abd929edaf9 Mon Sep 17 00:00:00 2001 From: Anton Tananaev Date: Sat, 15 Sep 2018 19:48:34 +1200 Subject: Support additional Galileo tags --- src/org/traccar/protocol/GalileoProtocolDecoder.java | 14 ++++++++++++++ 1 file changed, 14 insertions(+) (limited to 'src') 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; -- cgit v1.2.3