Other Parts Discussed in Thread: Z-STACK
Hello,
I have a coordinator with NWK_MAX_DEVICE_LIST set to 16. According to the definition in nwk_globals.h, 17 end devices should be able to associate directly with the coordinator.
I did a simple test on that fact. I prepared 30 end devices and 17 of them successfully joined the network.
Then I started to power off a device already joined the network, wait until it's aged out (which is set to 2 minutes), and add a new end device to the network.
I can have 5 devices replaced following the above procedure. But if I try to replace more devices, the coordinator start to complain that its association list is full by sending beacons with EndDeviceCapacity set to No. I continued powering off those devices in the network one by one, until the association table become empty. But the coordinator still sends saying association list full.
It seems that the aging mechanism is working because I can observe that the timeoutCounter of the devices are decreasing and old devices are removed from the association list correctly. But what confused me is that why would the coordinator send beacons with EndDeviceCapacity flag set to No while the association table have space (empty, indeed).
The coordinator and the end devices are all using Z-Stack Home 1.2.2a.
Any suggestions? Thanks.