aboutsummaryrefslogtreecommitdiff
path: root/src/main/java/org
diff options
context:
space:
mode:
authorAnton Tananaev <anton@traccar.org>2023-10-14 17:00:41 -0700
committerAnton Tananaev <anton@traccar.org>2023-10-14 17:00:41 -0700
commitb9c2d03f189abb7360801952ba69138fdf9fe432 (patch)
tree85e3378bc96dd9bd9ac0989d717b3d7d3f6b20cd /src/main/java/org
parentb8b84db2104b26dfeedbe1faaa4a52fef608cd1c (diff)
downloadtrackermap-server-b9c2d03f189abb7360801952ba69138fdf9fe432.tar.gz
trackermap-server-b9c2d03f189abb7360801952ba69138fdf9fe432.tar.bz2
trackermap-server-b9c2d03f189abb7360801952ba69138fdf9fe432.zip
Support Teltonika advanced beacon
Diffstat (limited to 'src/main/java/org')
-rw-r--r--src/main/java/org/traccar/protocol/TeltonikaProtocolDecoder.java6
1 files changed, 5 insertions, 1 deletions
diff --git a/src/main/java/org/traccar/protocol/TeltonikaProtocolDecoder.java b/src/main/java/org/traccar/protocol/TeltonikaProtocolDecoder.java
index 16c1dd210..45afbd0f7 100644
--- a/src/main/java/org/traccar/protocol/TeltonikaProtocolDecoder.java
+++ b/src/main/java/org/traccar/protocol/TeltonikaProtocolDecoder.java
@@ -588,7 +588,7 @@ public class TeltonikaProtocolDecoder extends BaseProtocolDecoder {
}
index += 1;
}
- } else if (id == 10829 || id == 10831) {
+ } else if (id == 548 || id == 10829 || id == 10831) {
ByteBuf data = buf.readSlice(length);
data.readUnsignedByte(); // header
for (int i = 1; data.isReadable(); i++) {
@@ -604,6 +604,10 @@ public class TeltonikaProtocolDecoder extends BaseProtocolDecoder {
String beaconId = ByteBufUtil.hexDump(beacon.readSlice(parameterLength));
position.set("tag" + i + "Id", beaconId);
break;
+ case 2:
+ String beaconData = ByteBufUtil.hexDump(beacon.readSlice(parameterLength));
+ position.set("tag" + i + "Data", beaconData);
+ break;
case 13:
position.set("tag" + i + "LowBattery", beacon.readUnsignedByte());
break;