Page 1 of 1

[Solved] mesh example internal_transceiver fails to work

Posted: Fri May 18, 2018 4:46 am
by mairswartz
Hi,
I am trying to get the internal_transceiver sample code working in the esp-idf example directory.
* I have 2 esp32's flashed with the same firmware.
* I have updated the menuconfig and set the SSID and router password to my router

when I run the software I get the following on my serial monitor

I (308) mesh_main: <MESH_EVENT_STARTED>
I (308) mesh_main: mesh starts successfully, heap:193264, root not fixed


I (668) mesh: [SCAN][ch:1]AP:1, otherID:0, idle:1, mAP:0, root:0, top mAP:0[Layer:0/0.ing]
I (688) mesh: [FAIL][1]root:0, fail:1, normal:0
I (1048) mesh: [SCAN][ch:1]AP:1, otherID:0, idle:1, mAP:0, root:0, top mAP:0[Layer:0/0.ing]
I (1048) mesh: [FAIL][2]root:0, fail:2, normal:0

and it just keeps on printing the same.
Am I missing something?

Re: mesh example internal_transceiver fails to work

Posted: Fri May 18, 2018 7:17 am
by ESP_yudong
The log shows that the esp32 didn't find your router during scan and its scan channel is 1.

There are two possibilities I could imagine from this:
1. The scan channel is not same with your router.
Make sure the channel is corret first.
2. Your router is hiden. The router bssid must be set when mesh config for hiden router. And the bssid can't be set in menuconfig now.
Let the router not hide or add your router bssid in codes. (See the structure mesh_router_t)

Re: mesh example internal_transceiver fails to work

Posted: Mon May 21, 2018 7:13 am
by mairswartz
@ESP_yudong

thanks, changing the channel did the trick :)