Part Number: CC2530
Hi guys,
what is the best way to initiate the rejoin network process in case my end device loses its parent.
Sometimes it happens in my network, that my End device changes parent e.g. from router to coordinator, but the end device is not aware of it for some unknown reason.
Then it sends requests still to the old parent which ignores them. I have a timer which identifies such "lost of sync" and I would like to trigger the rejoin process when such situation happens.
But I'm not sure how to do that.. Should I use:
bdb_StartCommissioning(BDB_COMMISSIONING_REJOIN_EXISTING_NETWORK_ON_STARTUP);
or is it better to call:
ZDO_StartNetwork(ZDO_STARTOPT_AUTO_REJOIN);
Basically I would like to simulate restarting of my end device, because when I take the batteries out and put them back in, it correctly rejoins the network and the problem is fixed.
In my init method I call bdb_StartCommissioning(BDB_COMMISSIONING_REJOIN_EXISTING_NETWORK_ON_STARTUP);
Thanks a lot!