-
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
Mesh Internal communication : 2 nodes are becoming root node in self organizing network. (IDFGH-11175) #12343
Comments
@amitabhskrishworks |
No i have not used this option . |
No |
when the device2 becomes root, the device1 still be root? The log shows that there is 1 node in the network.
|
Yes |
2 mesh network get formed with same Mesh ID |
@amitabhskrishworks Did you test just with the |
Yes i did not made any changes except adding some logs |
@amitabhskrishworks I have tested locally, and I didn't reproduce your issue. And I noticed that your rssi from the router is -83/-85, can you get your devices closer to the router and test it again? |
I tested it and got the same result but this time with lesser frequency. |
This is my full code which makes 2 root nodes when 2 nodes are switched ON simultaneously #include <string.h> #define RX_SIZE (1500) static const char *MESH_TAG = "mesh_main"; void esp_mesh_p2p_tx_main(void *arg)
} void esp_mesh_p2p_rx_main(void *arg)
} esp_err_t esp_mesh_comm_p2p_start(void) void mesh_event_handler(void *arg, esp_event_base_t event_base, int32_t event_id, void *event_data)
} void ip_event_handler(void *arg, esp_event_base_t event_base, int32_t event_id, void *event_data) } void app_main(void) } |
I just run the above code can reproduce the problem, right? |
yes |
please provide the IDF branch commit id you used. |
ESP IDF version - v5.0.4 |
OK, so the commit id is 8fbf4ba, I will test on it. |
Have tested based on your code for 20 times, still can't reproduce your issue. Can you provide your |
Here is the sdkconfig file in text format |
@amitabhskrishworks Do you use the ESP32 device with PSRAM? |
Yes i used PSRAM. |
I'm not sure, I will test on the PSRAM devices with the same code and sdkconfig with yours and feedback to you. |
@amitabhskrishworks When I enable the mesh PS in the menuconfig, and try to connect to a WPA3 router, the problem can be reproduced. when I disable the mesh PS in menuconfig, and try to connect to a WPA3 router, the problem can't be reproduced. My WPA3 router is Xiaomi AX6000, can you provide the type of your router and show me the setting of it ? So I can use the same router with yours to debug, this can ensure the behavior of the router is same. |
@zhangyanjiaoesp Thanks for identifying the cause of issue. My router configurations are: |
We also encountered a situation with two root nodes and are hoping for a good solution. |
@amitabhskrishworks Sorry to reply you so late. I was held up by something else. I checked the mesh code and found that the default configuration of Here is my logs using the device1:
device2:
|
Hi @amitabhskrishworks, could you please share your latest updates on this issue? Thanks. |
Thanks for reporting, will close due to short of feedback, feel free to reopen with more updates. |
Answers checklist.
IDF version.
v 5.0
Espressif SoC revision.
ESP 32 (chip revision 3.1)
Operating System used.
Windows
How did you build your project?
Command line with Make
If you are using Windows, please specify command line type.
None
Development Kit.
ESP 32 One
Power Supply used.
USB
What is the expected behavior?
One node becoming root node in esp wifi mesh.
What is the actual behavior?
2 nodes are becoming root node .
Steps to reproduce.
Debug Logs.
More Information.
No response
The text was updated successfully, but these errors were encountered: