espressif / esp-idf

Espressif IoT Development Framework. Official development framework for Espressif SoCs.
Apache License 2.0
13.34k stars 7.2k forks source link

MESH: Root looses IP when a new node connects to the network (IDFGH-13292) #14220

Open luisyague opened 1 month ago

luisyague commented 1 month ago

Answers checklist.

General issue report

Hi there, I am having a problem while connecting a new node to my mesh network:

Is there something in the sdkconfig i should change in order the prevent this issue?

Thank you very much in advance!

zhangyanjiaoesp commented 1 month ago

@luisyague

  1. which ESP device do you use?
  2. Can you provide a demo for us to test?
luisyague commented 1 month ago

Hello, @zhangyanjiaoesp I am using a custom-made board with ESP32 32E, unfortunately as this is production firmware so I can't give you a demo, but I am using a pretty straightforward approach:

  1. I am using both cores (core 0 for stack threads and wifi-mesh and core 1 for my app thread (it is just a heater app which uses adc, spi some digital outputs)
  2. I am using secure-boot + flash encryption (it also happens without flash-encryption)
  3. Then my mesh application just calls some initilizations from esp-mdf with the default values, I know it is no longer supported but it is just a wrapper for esp-mesh so I dont think it is related.
zhangyanjiaoesp commented 1 month ago

@luisyague It should related to the application code. Because our official mesh example can works well. And according to the existing log, I can't determine what the problem is.