espressif / esp-mdf

Espressif Mesh Development Framework, limited maintain, recommend to use https://github.com/espressif/esp-mesh-lite
Other
774 stars 253 forks source link

<ESP_ERR_MESH_NOT_ALLOWED> Node failed to receive packets #174

Open nsimranjain opened 4 years ago

nsimranjain commented 4 years ago

Environment

Problem Description

The below warning message is thrown continuously if we try to give same mesh id for more than one node and hence not able to create a mesh network. The non-root node throws these warnings.

Debug Logs

I (33248) mesh: [SCAN][ch:7]AP:2, other(ID:0, RD:0), MAP:1, idle:0, candidate:1, root:1, topMAP:0[c:0,i:0][90:67:17:1f:15:85]router found<>
I (33250) mesh: 7333[selection]try rssi_threshold:-78, backoff times:0, max:5<-78,-82,-85>
I (33259) mesh: [DONE]connect to parent:ESPM_50B54C, channel:7, rssi:-21, 24:0a:c4:50:b5:4d[layer:1, assoc:0], my_vote_num:0/voter_num:0, rc[00:00:00:00:00:00/-120/0]
I (34878) wifi:new:<7,1>, old:<7,1>, ap:<7,1>, sta:<7,1>, prof:7
I (34878) wifi:state: init -> auth (b0)
I (34886) wifi:state: auth -> assoc (0)
I (34901) wifi:state: assoc -> run (10)
I (34902) wifi:connected with ESPM_50B54C, aid = 1, channel 7, 40U, bssid = 24:0a:c4:50:b5:4d
I (34902) wifi:security: Open Auth, phy: bgn, rssi: -21
I (34915) wifi:pm start, type: 0

I (34916) mesh: <MESH_NWK_MIE_CHANGE><><><><ROOT ADDR><><><>
I (34917) mesh: <MESH_NWK_ROOT_ADDR>from assoc, layer:2, root_addr:24:0a:c4:50:b5:4d, root_cap:1
I (34925) mesh: [scan]new scanning time:600ms, beacon interval:300ms
I (34932) mesh: 1990<arm>parent monitor, my layer:2(cap:16)(node), interval:11176ms, retries:1<normal connected>
I (34941) [mwifi, 172]: Parent is connected
I (34941) mesh: <MESH_NWK_ROOT_ADDR>node, layer:2, root_addr:24:0a:c4:50:b5:4d, conflict_roots.num:0<>
I (34945) [mwifi, 255]: State represents: 0
I (34945) [app.main.c, 216]: event_loop_cb, event: 7
I (34965) [app.main.c, 228]: Parent is connected on station interface
I (34972) [app.main.c, 216]: event_loop_cb, event: 11
I (34972) [nodemtsk.c, 668]: Note read task started.
I (34977) [app.main.c, 216]: event_loop_cb, event: 14
I (35196) wifi:AP's beacon interval = 307200 us, DTIM period = 1
I (35746) esp_netif_handlers: sta ip: 192.168.4.2, mask: 255.255.255.0, gw: 192.168.4.1
I (35747) [app.main.c, 216]: event_loop_cb, event: 65
I (35750) [app.main.c, 278]: Root obtains the IP address. It is posted by LwIP stack automatically
I (35760) [app.main.c, 290]: Starting MQTT Client with default client certificate...
W (35760) [mwifi, 1325]: <ESP_ERR_MESH_NOT_ALLOWED> Node failed to receive packets
I (35770) mymqtt.c: Other event id:7
W (35776) [rootmtsk.c, 44]: <ESP_ERR_MESH_NOT_ALLOWED> mwifi_root_read
W (35788) [mwifi, 1325]: <ESP_ERR_MESH_NOT_ALLOWED> Node failed to receive packets
W (35796) [rootmtsk.c, 44]: <ESP_ERR_MESH_NOT_ALLOWED> mwifi_root_read
W (35803) [mwifi, 1325]: <ESP_ERR_MESH_NOT_ALLOWED> Node failed to receive packets
W (35812) [rootmtsk.c, 44]: <ESP_ERR_MESH_NOT_ALLOWED> mwifi_root_read
W (35819) [mwifi, 1325]: <ESP_ERR_MESH_NOT_ALLOWED> Node failed to receive packets
W (35827) [rootmtsk.c, 44]: <ESP_ERR_MESH_NOT_ALLOWED> mwifi_root_read
W (35834) [mwifi, 1325]: <ESP_ERR_MESH_NOT_ALLOWED> Node failed to receive packets
W (35842) [rootmtsk.c, 44]: <ESP_ERR_MESH_NOT_ALLOWED> mwifi_root_read
W (35850) [mwifi, 1325]: <ESP_ERR_MESH_NOT_ALLOWED> Node failed to receive packets
W (35858) [rootmtsk.c, 44]: <ESP_ERR_MESH_NOT_ALLOWED> mwifi_root_read
W (35865) [mwifi, 1325]: <ESP_ERR_MESH_NOT_ALLOWED> Node failed to receive packets
W (35873) [rootmtsk.c, 44]: <ESP_ERR_MESH_NOT_ALLOWED> mwifi_root_read

sdkconfig

sdkconfig.zip

EspHuifeng commented 3 years ago

Sorry for reply so late, Are you run ip-for-mesh on mdf ? Can you provide a demo for me to reproduce this issue?