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.
Z-Stack 2530协议栈中EndDevice断网后,用Sniffer抓包,看到先Orphan notification,然后每隔一秒左右都会有Beacon request,这样意外断网后EndDevice的耗电量会非常大,如何设置Beacon request这个次数?
强制进入深度睡眠或使用ZDApp_StopJoiningCycle(); 函数!!!
There is another solution in zstack.
if( events & ZDO_REJOIN_BACKOFF ) { if( devState == DEV_NWK_BACKOFF ) { ZDApp_ChangeState(DEV_NWK_DISC); // Restart scan for rejoin ZDApp_StartJoiningCycle(); osal_start_timerEx( ZDAppTaskID, ZDO_REJOIN_BACKOFF, zgDefaultRejoinScan ); } else { // Rejoin backoff, silent period ZDApp_ChangeState(DEV_NWK_BACKOFF); ZDApp_StopJoiningCycle(); osal_start_timerEx( ZDAppTaskID, ZDO_REJOIN_BACKOFF, zgDefaultRejoinBackoff ); } return ( events ^ ZDO_REJOIN_BACKOFF); }