Hello!
I'm having troubles with rejoining/joining a network (Zstack 2.2.0).
Imaging following situation:
# A coordinator is starting, building up the network.
# An end-device is joining the network and will send status messages periodically.
# After that the coordinator is shut down or is not reachable due to range limitations.
# The end-device will detect a sync loss to the coordinator because there will not be received an APS/MAC acknowledgment when transmitting status messages. In this case I will execute ZDO_StartDevice(NODETYPE_DEVICE, MODE_JOIN, BEACON_ORDER_NO_BEACONS, BEACON_ORDER_NO_BEACONS) to reset the Zigbee stack.
# If the coordinator is reachable again it sometimes takes about 1min to rejoin the network. Sometimes it even doesn't join anymore at all.
What am I doing wrong?
Why takes it longer to join the network when executing ZDO_StartDevice() than doing a hardware reset on the end-device and completely reset the microcontroller?
How to correctly reset the Zstack without doing a hardware reset? I don't want to loose variables stored in RAM of my application.
Regards
Rooney