From ba0cabe69c82b05982cff54ea0befc5379795d76 Mon Sep 17 00:00:00 2001 From: Chris Jackson Date: Tue, 9 Jul 2024 08:19:58 +1200 Subject: [PATCH] Increase duplicate window detection to 15 seconds and make configurable Signed-off-by: Chris Jackson --- .../com/zsmartsystems/zigbee/ZigBeeNetworkManager.java | 9 +++++++++ .../java/com/zsmartsystems/zigbee/aps/ApsDataEntity.java | 2 +- 2 files changed, 10 insertions(+), 1 deletion(-) diff --git a/com.zsmartsystems.zigbee/src/main/java/com/zsmartsystems/zigbee/ZigBeeNetworkManager.java b/com.zsmartsystems.zigbee/src/main/java/com/zsmartsystems/zigbee/ZigBeeNetworkManager.java index bd6cffe01..e6f90e251 100644 --- a/com.zsmartsystems.zigbee/src/main/java/com/zsmartsystems/zigbee/ZigBeeNetworkManager.java +++ b/com.zsmartsystems.zigbee/src/main/java/com/zsmartsystems/zigbee/ZigBeeNetworkManager.java @@ -597,6 +597,15 @@ public ZigBeeKey getZigBeeNetworkKey() { return transport.getZigBeeNetworkKey(); } + /** + * Gets the {@link ApdDataEntity} in use by the network manager. This allows configuration of the APSDE. + * + * @return the {@link ApdDataEntity} in use by the network manager. + */ + public ApsDataEntity getApsDataEntity() { + return apsDataEntity; + } + /** * Set the current link key in use by the system. *

diff --git a/com.zsmartsystems.zigbee/src/main/java/com/zsmartsystems/zigbee/aps/ApsDataEntity.java b/com.zsmartsystems.zigbee/src/main/java/com/zsmartsystems/zigbee/aps/ApsDataEntity.java index 69669523a..c7758c1f7 100644 --- a/com.zsmartsystems.zigbee/src/main/java/com/zsmartsystems/zigbee/aps/ApsDataEntity.java +++ b/com.zsmartsystems.zigbee/src/main/java/com/zsmartsystems/zigbee/aps/ApsDataEntity.java @@ -43,7 +43,7 @@ * */ public class ApsDataEntity { - private static final long DUPLICATE_TIME_WINDOW = 5000; + private static final long DUPLICATE_TIME_WINDOW = 15000; private static final int FRAGMENTATION_LENGTH = 78; private static final int FRAGMENTATION_WINDOW = 1;