参照www.kaleidscope.cn:1020/.../992修改自己的网关代码后,终端设备还是无法重新入网,附加是我的抓包log,紧急求助!!!
void ZDApp_NetworkInit( uint16 delay )
{
+ if ( devStartMode == MODE_REJOIN )
+ {
+ _tmpRejoinState = true;
+ }
if ( delay )
{
// Wait awhile before starting the device
osal_start_timerEx( ZDAppTaskID, ZDO_NETWORK_INIT, delay );
}
else
{
osal_set_event( ZDAppTaskID, ZDO_NETWORK_INIT );
}
}
*******************************************************
if
( prevDevState == DEV_NWK_SEC_REJOIN_ALL_CHANNEL)
{
// Set the flag that will ask the device to do trust center network layer rejoin.
// 网络密钥无需擦除,避免强干扰状态下,
// 长时间没有收到新的网络密钥,进而复位到未入网状态
// 造成无法重新入网情况
//_NIB.nwkKeyLoaded = FALSE;
//ZDApp_ResetNwkKey(); // Clear up the old network key.
#ifdef DEBUG_REJOIN
