Thank you for your reply.
Not entirely leave or join network。
My problem is, I found that after the sub-device under the coordinator is off-grid, the coordinator can accept the ZPS_EVENT_NWK_LEAVE_INDICATION event, and the TClinkkey saved in the PDM area will be cleared. However, after the sub-device under the router is off the network, it cannot be clear. After receiving the ZPS_EVENT_NWK_LEAVE_INDICATION event, the TClinkkey in the PDM area will not be cleared. This will cause an old device to remain in the coordinator, causing the new device to not be added.
Looking forward to your reply
yblin