-
Notifications
You must be signed in to change notification settings - Fork 153
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Node on second level always connection fail #65
Comments
This is a hardware limitation, 4 nodes per node. |
Yes, I clearly known that. The issue occured when the fifth module try connect to level 1. This is not occured on level zero such as node 01, 02, 03 or 04. The fifth or other module are no moving (no location changed). |
Mesh networks work that way. It will constantly remap itself to minimize any issues with lost nodes or bad connection. As NodeID won't change it is no issue to still communicate with the node as you should use the NodeID instead of RF24Network address when you send messages. |
I send message by refer to NodeID. The issue is why level 0 node have no problem on lost or bad connection. It happens on level 1 and may on other level. Frankly speaking I not clear on how DHCP working. When I use DEBUG, It show me DHCP do something like to finding the new address from level 4 down to level 0. Note that whenever new node get into the network, the master get struck until the new node address is assigned or timeout. Do you have a flow chart of DHCP? I will more clear on how it does during assign the new address. |
Sending message by nodeID is less reliable because nodes will contact the master node to perform an address lookup. It needs some work. I don't have a flow chart of DHCP, its kind of complicated. In a basic sense, nodes use multicast to find other active nodes, then request an address through them, from the master. Intermediary nodes relay traffic as required. I'm not sure why the master would get 'stuck' or 'struck' or what exactly you mean by that. One thing to keep in mind, if you are changing nodes around or want to 'refresh' the mesh, you can:
|
OK I will do more to find out what exactly problem. |
It look significantly better on "MESH_MIN_SAVE_TIME" in RF24Mesh_config.h reduce from 30000 to 1000. |
Last time I mention about parameter "MESH_MIN_SAVE_TIME" that is not the cause of problem. I have back to use 30000 for MESH_MIN_SAVE_TIME and change another one of parameter that may the cause of problem. |
On zero level, modules can connected to node 01, 02, 03 or 04 perfectly.
When adding the fifth module, it randomly connect to one of zero level node.
Even it successfully connect to zero level node, sometimes the connection lost with the result -1, -2 when do mesh.write.
Anyone face this the same problem an what can I do ?
The text was updated successfully, but these errors were encountered: