-
Notifications
You must be signed in to change notification settings - Fork 7.4k
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
[ESP-WIFI-MESH] esp_mesh_recv received wrong device when series of MAC ID's into Mesh network. (IDFGH-12904) #13864
Comments
@andy-danieal |
I'm aware of that, but I'm interested in a better solution without changing serial mac IDs. @zhangyanjiaoesp, Also curious as to why this impacts the SoftAP MAC ID, since ESP-MESH works with Station MAC ID. |
@andy-danieal Each mesh node (except the leaf node) opens the station and softAP interface. If the station mac is 60:55:f9:e7:5e:56, the the softap mac is 60:55:f9:e7:5e:57 for D1, when gateway send data to 60:55:f9:e7:5e:57 , D1 will receive it. |
I have update only STA MAC ID as custom MAC. but at time esp_mesh not working with D2 device.
Mesh logs
|
|
Update only STA mac. D1 device D2 device
|
@andy-danieal The root cause of the aforementioned issue is: In the mesh network, When a node joins the network, such as D2 (STA) connecting to D1 (softAP), D1 can only obtain the STA MAC address of D2. If D1 needs to know the softAP MAC address of D2, it defaults to the four-address rule, where the Therefore, we recommend you don't change the mac address for mesh devices. And for other cases, avoid assigning consecutive MAC addresses to different devices. It is best to follow the four-address rule and ensure there is a gap of at least 4 between the MAC addresses of two devices. |
Answers checklist.
General issue report
When I added two series of custom MAC devices to Mesh network. For example, D1 -> 60:55:f9:e7:5e:56 and D2 -> 60:55:f9:e7:5e:57 was connected to Gateway with ESP-WIFI-MESH. And D1 is the parent of D2, the issue occurs. During that time, Gateway sent data to D2, but D1 received it.
ESP IDF Version:- ESP-IDF v5.2.1-533-g9f4f8e24f
Gateway Logs
D1 Device Logs
D2 Device Logs
The text was updated successfully, but these errors were encountered: