This thread has been locked.
If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.
Tool/software: WEBENCH® Design Tools
In z-stack of SDK 4.20, function "ZDO_ProcessMgmtLeaveReq". When a end device execute this function, it will leave only when this command was generated by its parent-router. Why it is designed like this? What can be do when a Trust-Center wants a End-Device leaves current network?
if ( ( ZG_BUILD_ENDDEVICE_TYPE ) && ( ZG_DEVICE_ENDDEVICE_TYPE ) ) { //Only the parent device can request to leave, otherwise silently discard the frame if(inMsg->srcAddr.addr.shortAddr != _NIB.nwkCoordAddress) { return; } }
Hi Aries,
This behavior is part of the Zigbee 3.0 Specification and is described in Section 2.7 of SWRA615. I recommend that you send the Zstackapi_ZdoMgmtLeaveReq() to the parent device. You can send a Zstackapi_ZdoMgmtRtgReq() if you are not sure who the end device's parent is.
Regards,
Ryan