Page 1 of 1

Two roots are created after provisioning

Posted: Fri Aug 02, 2019 6:42 am
by LahiruLKR
I have created a mesh network using ESP32 MDF by connecting 9 esp32 boards. But two roots have been created. Even the ESP mesh FAQ section has mentioned that there can be only one root for a network . How can this be happen?
I use the example in https://github.com/espressif/esp-mdf/tr ... _kit/light .
Here is an image of my network. The pink light shows root nodes. Other colors represents different layers in the network
https://drive.google.com/file/d/1tCcmsa ... sp=sharing

Re: Two roots are created after provisioning

Posted: Fri Aug 02, 2019 8:37 am
by ESP_LBB
Hi LahiruLKR,

There are two factors that will cause this:

1. the vote percentage for a root. when this is low, there is possible to generate several root nodes.

2. root_conflict_allow is enabled, which means we allow the existance of several root nodes in a network.

With 1 and 2, the case may occur.

You can try in the code, feel free to feedback if this not help or can't find where the code is.

Re: Two roots are created after provisioning

Posted: Fri Aug 02, 2019 9:21 am
by LahiruLKR
Hi ESP_LBB,

Thank you for replying. Unfortunately i could not find root_conflict_allow in my code. Also i googled it but couldn't find it.

Re: Two roots are created after provisioning

Posted: Mon Aug 05, 2019 4:13 am
by ESP_Bond
1. You can modify the configuration by

Code: Select all

make menuconfig
Image

2. Provide some logs of the device so that we can better analyze the cause of the problem