The default values are 5, 20, 6, and 30,000 nodes in total.
Max_depth determines the maximum depth of the network. The Coordinator (Coordinator) is located in depth 0,max_depth
Parameters limit the physical length of the network, which defaults to 5 and cannot exceed 15.
Max_children determines whether a route (Router) or a coordinator node can handle a son's day
The maximum number of points.
Max_router determines whether a route (ROUTER) or a coordinator (Coordinator) node can
The maximum number of child nodes that are processed with routing capability. This parameter is a child of the Max_children
Set, the end node uses the remaining address space (Max_children–max_router).
Modify the values of the Cskiprtrs and cskipchldrn two arrays.
such as max_node_depth=6, routers can connect up to 10 routers, routers can connect up to 30 nodes.
Modified to:
#if (stack_profile_id = = Home_controls)
byte cskiprtrs[max_node_depth+1] = {10,10,10,10,10,10,0};
byte cskipchldrn[max_node_depth+1] = {30,30,30,30,30,30,0};
#elif (stack_profile_id = = Generic_star)
byte cskiprtrs[max_node_depth+1] = {10,10,10,10,10,10,0};
byte cskipchldrn[max_node_depth+1] = {10,10,10,10,10,10,0};
#elif (stack_profile_id = = network_specific)
byte cskiprtrs[max_node_depth+1] = {10,10,10,10,10,10,0};
CC2530 as the coordinator or router, the maximum number of child nodes that can be taken