The most important for me is about routing!
thanks!
1) what is the method of dynamic routing? which criterias nodes are uses to find best route?
2) Server just print that he is available and thats all? So how can I monitor the proses of mesh working? Where and how can I investigate bits in packets as you do it in ESP8266 Mesh User Guide?
3) I still cant understand where to look for such prints))
mesh will print "**** mesh is busy"
4) where in code should I look for description of events that are wreaten in README file such as
2. Every node sends one packet to server per 7 seconds after it joins mesh network.
3. Every node gets mac address of all devices working in mesh per 14 seconds after it joins mesh?
5) Finally what is the procedure of election root and non root node?
Response:
- 1. There is just one path from one node to anther node, the router path is established during the mesh establishment.
- 2. You can print more information when you receive packet from node.
Now, the server will print packet content when it receive packet, please pay attention to the line 14 of demo_server.py
You may pay attention to line 17 ~ 27 of demo_server.py, they are the packet format.
- 3. mesh just hold one packet from user, before it send the packet out, if user try to send another packet, you will get the indication "mesh is busy"
- 4. Please pay attention to esp_mesh_demo_test in mesh_demo.c, the test case will send one packet to server per 7 seconds.
at the same time, mesh_topo_test in mesh_none.c, it is the case to send topology request packet to get all device working in mesh per 14 seconds.
- 5. You can make one device as root according to your plan, or contest for root automatically.
If you select contest solution, all the node will try to as root device, and we implement solution to check the conflict of root.
The RSSI and current capacity of node will determine the final root.
The root with max RSSI and most capacity continues as root, the other root would not be as root, and re-join mesh as non-root device.