Other Parts Discussed in Thread: SIMPLELINK-CC13X2-26X2-SDK
Hello,
SDK 5.10
I have send the management leave request from the co ordinator to my router device. The router device responds that request and acknowledgement is also coming from the co ordinator side. after that device resets and start from idle state. it starts to beacon request again. but the issue happen here the old coordinator device responds to beacon and bind with the device again and again that management leave request things happens , again device resets.
I have further debug that so i found that the NV is not cleared after leaving request. i have debug it from zdoapp.c file i found the below condition.
if (cnf->status == ZSuccess)
{
// Check for this device
if ( osal_ExtAddrEqual( cnf->extAddr,
NLME_GetExtAddr() ) == TRUE )
{
// Pass the leave confirm to higher layer if callback registered
if ( ( zdoCBFunc[ZDO_LEAVE_CNF_CBID] == NULL ) ||
( (*zdoCBFunc[ZDO_LEAVE_CNF_CBID])( cnf ) == NULL ) )
{
// Prepare to leave with reset
ZDApp_LeaveReset( cnf->rejoin ); //***********************************the device goes here**************************************
}
}
else if ( ZSTACK_ROUTER_BUILD )
{
// Remove device address(optionally descendents) from data
ZDApp_LeaveUpdate( cnf->dstAddr, // ************************not goes here*******************
cnf->extAddr,
cnf->removeChildren,
cnf->rejoin );
}
}
}
please guide me. i am facing this issue again and again. please suggest me a fix for this.
i am using zr warning device example.