The leaf node cannot find the root node and throws an exception instead.
First I tried to run the example with MESH_SET_ROOT on the root esp module. During this, I faced one issue connecting to the router:
Code: Select all
I (79702) mesh: [wifi]disconnected reason:110(empty password), continuous:524/max:12, root, vote(,stopped)<><><><>
However, I managed to fix this issue (or maybe not) by manually setting the password just below the line if (my_type == MESH_ROOT) {
Code: Select all
memcpy((uint8_t *)&parent.sta.password, CONFIG_MESH_ROUTER_PASSWD, strlen(CONFIG_MESH_ROUTER_PASSWD));
Code: Select all
W (7823) mesh_main: <PARENT>Linksys07445, xx:xx:xx:2e:6c:80, channel:1, rssi:-37
I (7833) wifi: mode : sta (xx:xx:xx:c5:66:bc) + softAP (xx:xx:xx:c5:66:bd)
I (7843) mesh: [IO]disable self-organizing<reconnect>
I (8843) mesh: [MANUAL]connect to router:Linksys07445, xx:xx:xx:2e:6c:80[layer:0], ID:00:00:00:00:00:00<connect>
I (10473) wifi: new:<1,1>, old:<1,0>, ap:<1,1>, sta:<1,0>, prof:1
I (11453) wifi: state: init -> auth (b0)
I (11463) wifi: state: auth -> assoc (0)
I (11473) wifi: state: assoc -> run (10)
I (11503) wifi: connected with Linksys07445, channel 1, bssid = xx:xx:xx:2e:6c:80
I (11503) wifi: pm start, type: 0
I (11503) mesh: [scan]new scanning time:600ms
W (11503) wifi: [beacon]new interval:300ms
E (11503) event: invalid static ip
I (11513) mesh_main: <MESH_EVENT_PARENT_CONNECTED>layer:0-->1, parent:xx:xx:xx:2e:6c:80<ROOT>, ID:00:00:00:00:00:00
I (11523) mesh_main: <MESH_EVENT_TODS_REACHABLE>state:0
I (11533) mesh_main: <MESH_EVENT_ROOT_ADDRESS>root address:xx:xx:xx:c5:66:bd
I (13763) mesh_main: <MESH_EVENT_ROOT_GOT_IP>sta ip: 192.168.100.132, mask: 255.255.255.0, gw: 192.168.100.1
I (13763) event: sta ip: 192.168.100.132, mask: 255.255.255.0, gw: 192.168.100.1
Code: Select all
W (7803) mesh_main: <Warning>no parent found, modify IE crypto configuration and scan
W (7813) mesh_main: <Config>modify IE crypto key to hello, esp-mesh.
ESP_ERROR_CHECK failed: esp_err_t 0xffffffff (ESP_FAIL) at 0x4008bf74
0x4008bf74: _esp_error_check_failed at C:/......./esp/esp-idf/components/esp32/panic.c:712
file: "C:/......./esp/modified-examples/mesh/manual_networking/main/mesh_main.c" line 142
func: mesh_scan_done_handler
expression: esp_wifi_scan_stop()
Backtrace: 0x4008bb2c:0x3ffd1660 0x4008bf77:0x3ffd1680 0x400d2f0b:0x3ffd16a0 0x400d3345:0x3ffd1910 0x4012ebe0:0x3ffd19a0 0x4008ef09:0x3ffd1d00
0x4008bb2c: invoke_abort at C:/......./esp/esp-idf/components/esp32/panic.c:707
0x4008bf77: _esp_error_check_failed at C:/......./esp/esp-idf/components/esp32/panic.c:713
0x400d2f0b: mesh_scan_done_handler at C:/......./esp/modified-examples/mesh/manual_networking/main/mesh_main.c:142 (discriminator 1)
0x400d3345: mesh_event_handler at C:/......./esp/modified-examples/mesh/manual_networking/main/mesh_main.c:257 (discriminator 9)
0x4012ebe0: mesh_nwk_task_main at ??:?
0x4008ef09: vPortTaskWrapper at C:/......./esp/esp-idf/components/freertos/port.c:403
Code: Select all
I (7503) mesh_main: [0], xx:xx:xx:c5:66:bd, channel:1, rssi:-20