Other Parts Discussed in Thread: Z-STACK
Hi,
I wanna end device to rejoin the ZC after power-off/on, so I set NWK_END_DEVICE_LEAVE_TIMEOUT to 1 or 0. Upon observation, ZED powered on and join the ZC successfully. However, after a few seconds, ZC sends out Leave Request and ZED responses which causes ZED keeping leave and rejoin. The following snippet states that poll rate on ZED is slower than this will not receive the leave request. For example, I set poll rate on ZED to 15s by calling NLME_SetPollRate(15000) right after successful binding. My understanding is that if leave timeout is 10s, calling NLME_SetPollRate(15000) on ZED to reset poll rate to 15s, ZC wont send out Leave Request, right? The attached is my trace and it's telling it did not work as expected.
//Timeout after which an EndDevice will be removed from from the indirect MAC messages queue // NOTE: End devices which poll rate is slower than this will not receive the leave request #if !defined ( NWK_END_DEVICE_LEAVE_TIMEOUT ) #define NWK_END_DEVICE_LEAVE_TIMEOUT 9 #endif