diff options
author | Anton Tananaev <anton@traccar.org> | 2023-11-17 07:55:35 -0800 |
---|---|---|
committer | Anton Tananaev <anton@traccar.org> | 2023-11-17 07:55:35 -0800 |
commit | eacc6603272ba06ea257807415a966474e8cd020 (patch) | |
tree | d17d68d71db25c4d353a6810ce6b4341ad4fd250 /src/main/java | |
parent | e62f2e19b8f07af2a37f5e2cfe4c380c31b5c7db (diff) | |
download | trackermap-server-eacc6603272ba06ea257807415a966474e8cd020.tar.gz trackermap-server-eacc6603272ba06ea257807415a966474e8cd020.tar.bz2 trackermap-server-eacc6603272ba06ea257807415a966474e8cd020.zip |
Support T711L sensor data
Diffstat (limited to 'src/main/java')
-rw-r--r-- | src/main/java/org/traccar/protocol/MeitrackProtocolDecoder.java | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/src/main/java/org/traccar/protocol/MeitrackProtocolDecoder.java b/src/main/java/org/traccar/protocol/MeitrackProtocolDecoder.java index ea3302c30..1235ca9fe 100644 --- a/src/main/java/org/traccar/protocol/MeitrackProtocolDecoder.java +++ b/src/main/java/org/traccar/protocol/MeitrackProtocolDecoder.java @@ -587,6 +587,20 @@ public class MeitrackProtocolDecoder extends BaseProtocolDecoder { buf.readUnsignedByte(); // alarm type buf.skipBytes(length - 2); break; + case 0xFE73: + buf.readUnsignedByte(); // version + position.set( + "tagName", + buf.readCharSequence(buf.readUnsignedByte(), StandardCharsets.US_ASCII).toString()); + buf.skipBytes(6); // mac + position.set("tagBattery", buf.readUnsignedByte()); + position.set("tagTemp", buf.readUnsignedShortLE() / 256.0); + position.set("tagHumidity", buf.readUnsignedShortLE() / 256.0); + buf.readUnsignedShortLE(); // high temperature threshold + buf.readUnsignedShortLE(); // low temperature threshold + buf.readUnsignedShortLE(); // high humidity threshold + buf.readUnsignedShortLE(); // low humidity threshold + break; case 0xFEA8: for (int k = 1; k <= 3; k++) { if (buf.readUnsignedByte() > 0) { |