Hi!
If I have a Coordinator (C) and a Router (R). and R has a short power outage, it needs about 90 seconds to reconnect to the coordinator. I'd like to know if this is by design, or it can be reduced to somewhere 15-20 seconds?
I'm having the following code snippet for forming and joining to the network:
NWK_JoinControl_t joinControl = {
.method = NWK_JOIN_BY_DEFAULT,
.secured = true,
.discoverNetworks = true,
.annce = true
};
CS_WriteParameter(CS_JOIN_CONTROL_ID, &joinControl);
//Starting network (results in joining to or forming a ZigBee network)
zdoStartReq.ZDO_StartNetworkConf = appZdoStartNetworkConf; //Setting the callback function
ZDO_StartNetworkReq(&zdoStartReq); //Sending a request to the stack
It looks like 90 seconds is defined somewhere, because it's very accurate from 10 times, 7-8 times right after 90 seconds after power outage, the router rejoins.
And another question is what should happen if R's parent (okay, there is no such thing, but anyway) gets a power outage? In this particular case C.
Which callback function should be called in this case by the framework?
So, to summarize, I have 2 questions:
- How can I reduce the reconnection time from R->C when R gets a power outage? Now it's 90 seconds.
- How can I force R to reset itself when it losts it's connection to C due to a power outage in C? Now nothing seems getting called.
Thank you,
danergo