ESP-WIFI-MESH is not stable

TRUEcabbage
Posts: 4
Joined: Fri Aug 16, 2024 9:01 am

ESP-WIFI-MESH is not stable

Postby TRUEcabbage » Thu Nov 14, 2024 6:29 am

hello, i have a project relating to mavlink based telemetry system that uses ESP-WIFI-MESH, i started my development on this project 4 months ago based on https://github.com/espressif/esp-idf/tr ... mples/mesh sample code, i tested the code on esp32-wroom-32d hardware with pcb antenna, i worked well i was able to get reliable connection up to 10 meters solid, This is my project which uses esp-wifi-mesh https://github.com/WCjai/Drone-Mesh/tre ... -no-router (check branch with esp-mesh) this project is simple here is a simple illustration
Image

i tested this even a month ago it worked fine with esp32-wroom-32d, but now when i uploaded that same code now to that same hardware it has connectivity issues, and can not able to connect with nodes or router with the hardware and code being same , but when i uploaded same code to esp32-wroom-32ue it is able to connect to routers and node, but the connection is weak after moving away 3-4meter the connection is lost and i face lot of packets loss when connection is there, i even uploaded example code too, still facing same issues


output of esp32-wroom-32d serial, with router

Code: Select all

I (18067) wifi:new:<3,0>, old:<3,1>, ap:<3,1>, sta:<3,0>, prof:3, snd_ch_cfg:0x0
I (18077) mesh: [wifi]disconnected reason:2(auth expire), continuous:3/max:12, root, vote(,stopped)<><>
I (18077) mesh_main: <MESH_EVENT_PARENT_DISCONNECTED>reason:2
I (20937) mesh: [wifi]disconnected reason:205(), continuous:4/max:12, root, vote(,stopped)<><>
I (20937) mesh_main: <MESH_EVENT_PARENT_DISCONNECTED>reason:205
I (20997) wifi:new:<3,1>, old:<3,0>, ap:<3,1>, sta:<3,0>, prof:3, snd_ch_cfg:0x0
I (20997) wifi:state: init -> auth (0xb0)
I (22007) wifi:state: auth -> init (0x200)
I (22007) wifi:new:<3,0>, old:<3,1>, ap:<3,1>, sta:<3,0>, prof:3, snd_ch_cfg:0x0
I (22007) mesh: [wifi]disconnected reason:2(auth expire), continuous:5/max:12, root, vote(,stopped)<><>
I (22007) mesh_main: <MESH_EVENT_PARENT_DISCONNECTED>reason:2
I (24877) mesh: [wifi]disconnected reason:205(), continuous:6/max:12, root, vote(,stopped)<><>
I (24877) mesh_main: <MESH_EVENT_PARENT_DISCONNECTED>reason:205
I (24887) wifi:new:<3,1>, old:<3,0>, ap:<3,1>, sta:<3,0>, prof:3, snd_ch_cfg:0x0
I (24897) wifi:state: init -> auth (0xb0)
I (25897) wifi:state: auth -> init (0x200)
I (25897) wifi:new:<3,0>, old:<3,1>, ap:<3,1>, sta:<3,0>, prof:3, snd_ch_cfg:0x0
I (25907) mesh: [wifi]disconnected reason:2(auth expire), continuous:7/max:12, root, vote(,stopped)<><>
I (25907) mesh_main: <MESH_EVENT_PARENT_DISCONNECTED>reason:2
I (28767) mesh: [wifi]disconnected reason:205(), continuous:8/max:12, root, vote(,stopped)<><>
I (28767) mesh_main: <MESH_EVENT_PARENT_DISCONNECTED>reason:205
I (28787) wifi:new:<3,1>, old:<3,0>, ap:<3,1>, sta:<3,0>, prof:3, snd_ch_cfg:0x0
I (28787) wifi:state: init -> auth (0xb0)
I (29787) wifi:state: auth -> init (0x200)
I (29787) wifi:new:<3,0>, old:<3,1>, ap:<3,1>, sta:<3,0>, prof:3, snd_ch_cfg:0x0
I (29807) mesh: [wifi]disconnected reason:2(auth expire), continuous:9/max:12, root, vote(,stopped)<><>
I (29807) mesh_main: <MESH_EVENT_PARENT_DISCONNECTED>reason:2
I (32667) mesh: [wifi]disconnected reason:205(), continuous:10/max:12, root, vote(,stopped)<><>
I (32667) mesh_main: <MESH_EVENT_PARENT_DISCONNECTED>reason:205
I (32677) wifi:new:<3,1>, old:<3,0>, ap:<3,1>, sta:<3,0>, prof:3, snd_ch_cfg:0x0
I (32677) wifi:state: init -> auth (0xb0)
I (33677) wifi:state: auth -> init (0x200)
I (33677) wifi:new:<3,0>, old:<3,1>, ap:<3,1>, sta:<3,0>, prof:3, snd_ch_cfg:0x0
I (33697) mesh: [wifi]disconnected reason:2(auth expire), continuous:11/max:12, root, vote(,stopped)<><>
I (33697) mesh_main: <MESH_EVENT_PARENT_DISCONNECTED>reason:2
I (36557) mesh: [wifi]disconnected reason:205(), continuous:12/max:12, root, vote(,stopped)<><>
I (36557) mesh_main: <MESH_EVENT_PARENT_DISCONNECTED>reason:205
I (36567) wifi:new:<3,1>, old:<3,0>, ap:<3,1>, sta:<3,0>, prof:3, snd_ch_cfg:0x0
I (36567) wifi:state: init -> auth (0xb0)
I (37567) wifi:state: auth -> init (0x200)
I (37567) wifi:new:<3,0>, old:<3,1>, ap:<3,1>, sta:<3,0>, prof:3, snd_ch_cfg:0x0
I (37577) mesh: [wifi]disconnected reason:2(auth expire), continuous:13/max:12, root, vote(,stopped)<><>
I (37577) mesh_main: <MESH_EVENT_PARENT_DISCONNECTED>reason:2
I (40447) mesh: [wifi]disconnected reason:205(), continuous:14/max:12, root, vote(,stopped)<><>
I (40447) mesh_main: <MESH_EVENT_PARENT_DISCONNECTED>reason:205
I (40467) wifi:new:<3,1>, old:<3,0>, ap:<3,1>, sta:<3,0>, prof:3, snd_ch_cfg:0x0
I (40467) wifi:state: init -> auth (0xb0)

is there any solution?
Attachments
ROOT-NO-ROUTER.cpp
(19.55 KiB) Downloaded 109 times
NODE-NO-ROUTER.cpp
(19.12 KiB) Downloaded 110 times

aliarifat794
Posts: 200
Joined: Sun Jun 23, 2024 6:18 pm

Re: ESP-WIFI-MESH is not stable

Postby aliarifat794 » Thu Nov 14, 2024 8:18 am

I think it will be wise if you take another fresh WROOM 32D and try to upload the same code.

TRUEcabbage
Posts: 4
Joined: Fri Aug 16, 2024 9:01 am

Re: ESP-WIFI-MESH is not stable

Postby TRUEcabbage » Fri Nov 15, 2024 12:00 pm

i don't know what happened, i just did what you told and did full clean of my project build then uploaded the code, then it just works as normal, and i did it for the other hardware which i was facing issues with, they too functions as normal i didn't face any of the other issues mentioned before, but some esp are not connecting to mesh i have a pool of esp32 ranging esp32-wroom-32, esp32-wroom-32D from ESP32_Devkitc_v4, esp32-wroom-32d_v2.2 and esp32-wroom-32UE

esp32-wroom-32 and esp32-wroom-32D from ESP32_Devkitc_v4 together can connect to mesh but other boards ie esp32-wroom-32d_v2.2 and esp32-wroom-32UE cant connect or discover by mesh

esp32-wroom-32d_v2.2 and esp32-wroom-32UE are also same for some reason there are not detecting these two esp (esp32-wroom-32 and esp32-wroom-32D)

i have attached pre-compiler bin and elf files

but the afore mention issue still priests on esp32c3 hardware
Attachments
pre-compiled.zip
(7.35 MiB) Downloaded 29 times

TRUEcabbage
Posts: 4
Joined: Fri Aug 16, 2024 9:01 am

Re: ESP-WIFI-MESH is not stable

Postby TRUEcabbage » Sat Nov 16, 2024 12:06 pm

so this is todays compiled firmware of the same code, now it behaves different dropping connection, and losing packets this time, and i used fresh esp32-wroom-32UE's this time... one set with older firmware which i uploaded to this form yesterday, another set with newly compiled firmware... both behaves totally different... the one set with older firmware performs better than the newly uploaded firmware

the hardware i used is new this time
Attachments
16.11-5.27ist-pre-comiple.zip
(6.84 MiB) Downloaded 106 times

Who is online

Users browsing this forum: No registered users and 100 guests