Other Parts Discussed in Thread: Z-STACK
In a zigbee network a new device could join to a coordinator or a router. for controlled joining the coordinator and router should not allow a new device to join to the network. in other hands a end device should rejoin to a new parent when it loses its previous parent so the routers should allow the end device to rejoin all times. there is contradiction!!! controlled join is in contradiction to automatic rejoin.
In my case I have a gateway as a coordinator(z-stack Linux gateway application on BBB) and some routers and some end devices. when I want a new device to join to the network, it joins to the routers without my permit join command at the gateway application. If I configure the routers which they don't allow the new device to join to the network then end devices could not rejoin to the network too.
I'd like to implement a controlled joining to coordinator for new devices and automatic rejoining to network for end devices which lost their parent.
how can I solve this problem?