Skip to content
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

nodes in mesh access from upper level to lower level? (AEGHB-241) #14

Open
novflying opened this issue Jun 12, 2023 · 1 comment
Open

Comments

@novflying
Copy link

Hello, is it possible or how to make the entire mesh lite network accessible between internal nodes? the lower level nodes can access upper level nodes but I found it's inaccessible from upper level nodes to lower level nodes, how to achieve this?

@github-actions github-actions bot changed the title nodes in mesh access from upper level to lower level? nodes in mesh access from upper level to lower level? (AEGHB-241) Jun 12, 2023
@tswen
Copy link
Contributor

tswen commented Jun 13, 2023

对于目前的架构,暂时没有办法实现上级节点和下级节点的点对点通信,因为每一层下级节点对于其父节点来说都属于一个“内网”,就类似外网很难穿透局域网来访问内网 IP 地址。
不过可以有两种方式实现上级节点到下级节点的通信:

  • 利用内部的 UDP 通信接口,上级节点向下级节点进行广播,子节点收到之后处理消息同时再向其下一级发起广播;
  • 使用 ESP-NOW 接口来实现设备之间点对点的通信。

For the current architecture, it is not possible to achieve point-to-point communication between the parent and child nodes because each layer of child nodes is considered an "intranet" for its parent node. It is similar to how it is difficult for the external network to access the internal IP addresses of a local network.

However, there are two ways to enable communication from the parent node to the child nodes:

  1. Utilizing the internal UDP communication interface: The parent node can broadcast messages to the child nodes, and upon receiving the messages, the child nodes can process them and further broadcast them to their respective next-level child nodes.

  2. Using the ESP-NOW interface: This allows for point-to-point communication between devices, enabling direct communication between the parent and child nodes.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants