mirror of
https://github.com/Koenkk/Z-Stack-firmware.git
synced 2025-03-02 07:31:06 +01:00
Try to improve stability and completly disable child aging. https://github.com/Koenkk/zigbee2mqtt/issues/1429
This commit is contained in:
parent
74ef202ca4
commit
12e899d41f
@ -1,2 +1,2 @@
|
||||
# 20190414
|
||||
# 20190423
|
||||
- Initial version.
|
Binary file not shown.
BIN
coordinator/Z-Stack_3.x.0/bin/CC2652R_20190423.zip
Normal file
BIN
coordinator/Z-Stack_3.x.0/bin/CC2652R_20190423.zip
Normal file
Binary file not shown.
@ -29,7 +29,7 @@ index 305dfc7..51d8890 100644
|
||||
1, /* Software maintenance release number */
|
||||
diff --git a/Application/mt/revision_info.h b/Application/mt/revision_info.h
|
||||
new file mode 100644
|
||||
index 0000000..5cfa29e
|
||||
index 0000000..323e369
|
||||
--- /dev/null
|
||||
+++ b/Application/mt/revision_info.h
|
||||
@@ -0,0 +1,13 @@
|
||||
@ -43,34 +43,39 @@ index 0000000..5cfa29e
|
||||
+#ifndef APPLICATION_MT_REVISION_INFO_H_
|
||||
+#define APPLICATION_MT_REVISION_INFO_H_
|
||||
+
|
||||
+#define CODE_REVISION_NUMBER 20190419
|
||||
+#define CODE_REVISION_NUMBER 20190423
|
||||
+
|
||||
+#endif /* APPLICATION_MT_REVISION_INFO_H_ */
|
||||
diff --git a/Stack/Config/preinclude.h b/Stack/Config/preinclude.h
|
||||
new file mode 100644
|
||||
index 0000000..c976357
|
||||
index 0000000..8ae8c48
|
||||
--- /dev/null
|
||||
+++ b/Stack/Config/preinclude.h
|
||||
@@ -0,0 +1,38 @@
|
||||
@@ -0,0 +1,43 @@
|
||||
+/**
|
||||
+ * 1. There is currently an issue which doesn't allow us to scale to device
|
||||
+ * tables expansively.
|
||||
+ * See: http://e2e.ti.com/support/wireless-connectivity/zigbee-and-thread/f/158/p/794106/2940412#2940412
|
||||
+ */
|
||||
+
|
||||
+/**
|
||||
+ * Enable Many-To-One (MTO) Routing
|
||||
+ */
|
||||
+#define CONCENTRATOR_ENABLE TRUE
|
||||
+#define CONCENTRATOR_DISCOVERY_TIME 60
|
||||
+#define CONCENTRATOR_ROUTE_CACHE TRUE
|
||||
+#define MAX_RTG_SRC_ENTRIES 100
|
||||
+// Use 40 for now, see 1 #define MAX_RTG_SRC_ENTRIES 200
|
||||
+#define MAX_RTG_SRC_ENTRIES 40
|
||||
+#define SRC_RTG_EXPIRY_TIME 255
|
||||
+
|
||||
+/**
|
||||
+ * Scale device tables
|
||||
+ */
|
||||
+#define NWK_MAX_DEVICE_LIST 30
|
||||
+#define MAX_NEIGHBOR_ENTRIES 20
|
||||
+#define MAX_RTG_ENTRIES 100
|
||||
+// Use default of 20, see 1 #define NWK_MAX_DEVICE_LIST 50
|
||||
+// Use default of 4, see 1 #define MAX_NEIGHBOR_ENTRIES 20
|
||||
+// Use default of 40, see 1 #define MAX_RTG_ENTRIES 100
|
||||
+
|
||||
+// Use default of 40 until NVOCTP driver issue has been fixed
|
||||
+// http://e2e.ti.com/support/wireless-connectivity/zigbee-and-thread/f/158/p/794106/2937749#2937749
|
||||
+// #define ZDSECMGR_TC_DEVICE_MAX 200
|
||||
+// Use default of 40, see 1 #define ZDSECMGR_TC_DEVICE_MAX 200
|
||||
+
|
||||
+/**
|
||||
+ * Others
|
||||
@ -87,10 +92,9 @@ index 0000000..c976357
|
||||
+#define MULTICAST_ENABLED FALSE
|
||||
+
|
||||
+/**
|
||||
+ * Increase end device child aging from 256 minutes to 4096 minutes
|
||||
+ * Increase NWK_LINK_STATUS_PERIOD to reduce amount of messages on the network
|
||||
+ */
|
||||
+#define NWK_END_DEV_TIMEOUT_DEFAULT 12
|
||||
\ No newline at end of file
|
||||
+#define NWK_LINK_STATUS_PERIOD 60
|
||||
diff --git a/Stack/Config/znp_cnf.opts b/Stack/Config/znp_cnf.opts
|
||||
index 1be73a8..81f5f4e 100644
|
||||
--- a/Stack/Config/znp_cnf.opts
|
||||
@ -141,3 +145,20 @@ index d303202..55c53d4 100644
|
||||
else if ( (epDesc = afFindEndPointDesc( aff->DstEndPoint )) )
|
||||
{
|
||||
pList = afFindEndPointDescList( epDesc->endPoint );
|
||||
diff --git a/Stack/sys/zglobals.c b/Stack/sys/zglobals.c
|
||||
index 1fb33a4..2963697 100644
|
||||
--- a/Stack/sys/zglobals.c
|
||||
+++ b/Stack/sys/zglobals.c
|
||||
@@ -206,7 +206,11 @@ uint8 zgEndDeviceConfiguration = END_DEV_CONFIGURATION;
|
||||
//
|
||||
// NOTICE: Before enabling Child Aging make sure to review all the related
|
||||
// definitions in this file, especially zgNwkParentInformation.
|
||||
-uint8 zgChildAgingEnable = TRUE;
|
||||
+
|
||||
+/**
|
||||
+ * Disable child agaging, otherwise Xiaomi devices are being kicked off the network.
|
||||
+ */
|
||||
+uint8 zgChildAgingEnable = FALSE;
|
||||
|
||||
//========== TouchLink NWK configuration ===============
|
||||
// Values used by Router when starts a network as initiator
|
||||
|
Loading…
Reference in New Issue
Block a user