Two roots are created after provisioning

LahiruLKR
Posts: 6
Joined: Sun Jul 28, 2019 6:07 pm

Two roots are created after provisioning

Postby LahiruLKR » Fri Aug 02, 2019 6:42 am

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

ESP_LBB
Posts: 108
Joined: Fri May 18, 2018 3:41 am

Re: Two roots are created after provisioning

Postby ESP_LBB » Fri Aug 02, 2019 8:37 am

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.

LahiruLKR
Posts: 6
Joined: Sun Jul 28, 2019 6:07 pm

Re: Two roots are created after provisioning

Postby LahiruLKR » Fri Aug 02, 2019 9:21 am

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.

ESP_Bond
Posts: 51
Joined: Mon Apr 15, 2019 1:37 pm

Re: Two roots are created after provisioning

Postby ESP_Bond » Mon Aug 05, 2019 4:13 am

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

Who is online

Users browsing this forum: No registered users and 23 guests