aboutsummaryrefslogtreecommitdiff
path: root/src/main/java/org/traccar/protocol/EelinkProtocolDecoder.java
diff options
context:
space:
mode:
authorcasswarry0 <casswarry0@gmail.com>2021-11-21 10:41:19 -0700
committercasswarry0 <casswarry0@gmail.com>2021-11-21 10:41:19 -0700
commita425ea42de76ba81890fb52b1f06eff82bba1ded (patch)
treea72b0444f99c931ac77174612c373e32a456fa8f /src/main/java/org/traccar/protocol/EelinkProtocolDecoder.java
parent88e5b090d7a71255a29fe6ad2ae1525c1c0a03be (diff)
downloadtrackermap-server-a425ea42de76ba81890fb52b1f06eff82bba1ded.tar.gz
trackermap-server-a425ea42de76ba81890fb52b1f06eff82bba1ded.tar.bz2
trackermap-server-a425ea42de76ba81890fb52b1f06eff82bba1ded.zip
Changes to POSITION data type according to eeLink Device Protocol V2.2 (A4) added
Diffstat (limited to 'src/main/java/org/traccar/protocol/EelinkProtocolDecoder.java')
-rw-r--r--src/main/java/org/traccar/protocol/EelinkProtocolDecoder.java11
1 files changed, 11 insertions, 0 deletions
diff --git a/src/main/java/org/traccar/protocol/EelinkProtocolDecoder.java b/src/main/java/org/traccar/protocol/EelinkProtocolDecoder.java
index 613710587..3e805097c 100644
--- a/src/main/java/org/traccar/protocol/EelinkProtocolDecoder.java
+++ b/src/main/java/org/traccar/protocol/EelinkProtocolDecoder.java
@@ -218,6 +218,17 @@ public class EelinkProtocolDecoder extends BaseProtocolDecoder {
buf.skipBytes(7); // bss2
}
+ if (BitUtil.check(flags, 7)) {
+ buf.readUnsignedByte(); // rat
+ short noc = buf.readUnsignedByte(); // noc
+ if (noc > 0) {
+ buf.skipBytes(19); // lte-srv
+ for (short i = 1; i < noc; i++) {
+ buf.skipBytes(5); // lte-nbr
+ }
+ }
+ }
+
if (type == MSG_WARNING) {
position.set(Position.KEY_ALARM, decodeAlarm(buf.readUnsignedByte()));