What is Maximum No of layer or Hops can be achieved? (AEGHB-664)
mightChamp opened this issue ยท 19 comments
I have 1000 nodes which are in a line(Street light) 50-100 meter apart. So, I want to make sure that in mesh I can connect to last one node. Data Speed is not issue, if node get data in 30-60 seconds, it will be ok. Will this system Use ESP32-C6 as Gateway, as well as for Nodes.
Currently, Mesh Lite supports up to 15 layers. Additionally, it is recommended to limit the number of nodes within a single mesh network to under 100.
Can ESP-MDF be used for my system(1000 nodes which are in a line(Street light) 50-100 meter apart)?
Will you directly connect to the last node for communication? Is the data both downlink and uplink, or only downlink?
@xcguang All node will send data to gateway, So last 1000th Node(50Km apart from gateway) will send data to gateway, latency is not issue, if took time, it will be ok, but data must be reached to gateway. and both uplink and downlink should work with 1000th node from gateway.
ESPNOW would be great for this use-case. Checkit out.
@grodansparadis ESPNOW can support mesh?
No it is not mesh, but you can easily handle a use-case like yours.
- Send the message
- Let everyone that see the message retransmit i once and only once.
- Eventually the message will be received at its destination.
- If you want to make sure it reaches the gateway send confirmation back when it receives the message and if you don't see a confirmation within a specific timeout, the originating node resend the message.
More than one node will receive the message on each send so you get a bit of free redundancy there. If you don't want messages to traverse backwards use a numeric id on the node and just do resend on nodes with higher id or similar..
If there is line of sight between nodes you probably get a message throuigh to nodes 1000 meter away.
@grodansparadis Thanks for ESP-NOW Suggestion, many repo are there which implements Mesh Protocol. So will study it.
My System is as follows:
- AC Power Supply 24 Hours running
- Each Node is 50 Meter Apart on street light (last 1000th node is at 25km from gateway).
- Node will never move it is static
- Data Frame will be Max 50 Bytes
- Each node send Data to next 5 nodes, for some trigger.
- Each node send an heartbeat data to node every 15 minute.
- Gateway can send downlink for configurations any time.
So, Based on above could you suggest best Technology to use :
Zigbee/ESP-MDF/ESP-Mesh-Lite/PainlessMesh/ESP-NOW/Openthread
ESP-NOW would solve that scenario easy and at a low cost. The others to of course but at a higher complexity. I'm a fan of KISS (Keep It Simple Stupid) . :) I have never tested PainlessMesh but OpenThread is nice.
Mesh-Lite supports downlink data communicate on esp-now, which api is esp_mesh_lite_espnow_send
. But so many nodes, maybe pure esp_now will be better.
Hello to all,
In my all research, I reached at conclusion that 1000 node is not feasible in single mesh. So, I am changing my implementation to minimal requirement of 100 nodes in a single mesh of street lights, which is as follow:
- Node has AC Power Supply 24 Hours running
- Each Node is 50 Meter Apart on street lights (last 100th node is at 5km from gateway).
- Node will never move it is static
- Data Frame will be Max 50 Bytes
- Each node send Data to next 5 nodes, for some trigger.
- Each node send an heartbeat data to gateway every 15 minute.
- Gateway can send downlink for configurations any time.
So, Based on above could you suggest best Technology to use :
Zigbee/ESP-MDF/ESP-Mesh-Lite/PainlessMesh/ESP-NOW/Openthread/BLE-Mesh
hello @mightChamp, could you give me a mail, I'd like to know more about your project.
@xcguang Above is only my requirement, Could you suggest which technology form Zigbee/ESP-MDF/ESP-Mesh-Lite/PainlessMesh/Openthread/BLE-Mesh, would be best fit in Street light line topology mesh communication.
Maybe esp_now still is better.
esp-now is not an official mesh support, So I am afraid to use it. And now I am ready to compromise on number of nodes and communication delay in single mesh. So what do you suggest best.
If the layer is less than 15, I will say ESP-Mesh-Lite should meet your requirements as discussed in #96, however, we'd like to evaluate it.
To be honest, the others mesh technology(Zigbee/ESP-MDF/PainlessMesh/Openthread/BLE-Mesh) may work well in your scenario, but I did not test them, so I can not guarantee it.
@xcguang thanks for your response. Last thing I want to know that, Can We use two root nodes in mesh?
As from documentation, word Normally is used, So I am asking for possibility to use 2 or more root nodes.
Yes, it supports multiple root nodes