ESP-WIFI-MESH: Issue WIFI_REASON_ASSOC_TOOMANY When connected 20 Devices same range

andy1245
Posts: 3
Joined: Mon Jun 26, 2023 6:44 am

ESP-WIFI-MESH: Issue WIFI_REASON_ASSOC_TOOMANY When connected 20 Devices same range

Postby andy1245 » Fri Jan 05, 2024 1:04 pm

I connected 20 devices with the same length of 1 meter. However, one or two devices were disconnected due to WIFI_REASON_ASSOC_TOOMANY. We restarted that device, but the issue persists.

We have used No Router ESP-WIFI-MESH code example used.

  1. ESP-ROM:esp32s2-rc4-20191025
  2. Build:Oct 25 2019
  3. rst:0x1 (POWERON),boot:0xa (SPI_FAST_FLASH_BOOT)
  4. SPIWP:0xee
  5. mode:DIO, clock div:1
  6. load:0x3ffe6108,len:0x183c
  7. load:0x4004b000,len:0x4
  8. load:0x4004b004,len:0xab4
  9. load:0x4004f000,len:0x31b0
  10. entry 0x4004b1c4
  11. I (23) boot: ESP-IDF v5.1.2-dirty 2nd stage bootloader
  12. I (24) boot: compile time Dec 13 2023 11:22:36
  13. I (24) boot: chip revision: v1.0
  14. I (28) boot.esp32s2: SPI Speed      : 80MHz
  15. I (32) boot.esp32s2: SPI Mode       : DIO
  16. I (37) boot.esp32s2: SPI Flash Size : 4MB
  17. I (42) boot: Enabling RNG early entropy source...
  18. I (47) boot: Partition Table:
  19. I (51) boot: ## Label            Usage          Type ST Offset   Length
  20. I (58) boot:  0 nvs              WiFi data        01 02 0000d000 00004000
  21. I (66) boot:  1 otadata          OTA data         01 00 00011000 00002000
  22. I (73) boot:  2 phy_init         RF data          01 01 00013000 00001000
  23. I (81) boot:  3 edf              WiFi data        01 02 00014000 00004000
  24. I (88) boot:  4 storage          Unknown data     01 81 00018000 00020000
  25. I (95) boot:  5 ota_0            OTA app          00 10 00040000 00170000
  26. I (103) boot:  6 ota_1            OTA app          00 11 001b0000 00170000
  27. I (111) boot: End of partition table
  28. I (115) esp_image: segment 0: paddr=00040020 vaddr=3f000020 size=2d45ch (185436) map
  29. I (160) esp_image: segment 1: paddr=0006d484 vaddr=3ffc9210 size=02b94h ( 11156) load
  30. I (163) esp_image: segment 2: paddr=00070020 vaddr=40080020 size=b27b0h (731056) map
  31. I (312) esp_image: segment 3: paddr=001227d8 vaddr=3ffcbda4 size=0108ch (  4236) load
  32. I (313) esp_image: segment 4: paddr=0012386c vaddr=40024000 size=15210h ( 86544) load
  33. I (350) boot: Loaded app from partition at offset 0x40000
  34. I (350) boot: Disabling RNG early entropy source...
  35. I (362) cpu_start: Unicore app
  36. I (362) cache: Instruction cache        : size 8KB, 4Ways, cache line size 32Byte
  37. I (364) cache: Data cache               : size 8KB, 4Ways, cache line size 32Byte
  38. I (371) cpu_start: Pro cpu up.
  39. I (394) cpu_start: Pro cpu start user code
  40. I (394) cpu_start: cpu freq: 160000000 Hz
  41. I (394) cpu_start: Application information:
  42. I (397) cpu_start: Project name:     DSPVWH
  43. I (402) cpu_start: App version:      04763cb-dirty
  44. I (407) cpu_start: Compile time:     Dec 21 2023 19:45:41
  45. I (413) cpu_start: ELF file SHA256:  2b81259c1d8e2a74...
  46. I (419) cpu_start: ESP-IDF:          v5.1.2-dirty
  47. I (425) cpu_start: Min chip rev:     v0.0
  48. I (429) cpu_start: Max chip rev:     v1.99
  49. I (434) cpu_start: Chip rev:         v1.0
  50. I (439) heap_init: Initializing. RAM available for dynamic allocation:
  51. I (446) heap_init: At 3FFD4078 len 00027F88 (159 KiB): DRAM
  52. I (452) heap_init: At 3FFFC000 len 00003A10 (14 KiB): DRAM
  53. I (458) heap_init: At 3FF9E000 len 00001FE8 (7 KiB): RTCRAM
  54. I (466) spi_flash: detected chip: generic
  55. I (469) spi_flash: flash io: dio
  56. I (474) coexist: coex firmware version: b6d5e8c
  57. I (479) app_start: Starting scheduler on CPU0
  58. I (00:00:00.090) main_task: Started on CPU0
  59. I (00:00:00.095) main_task: Calling app_main()
  60. I (00:00:00.110) wearleveling_helper: Mounting FAT filesystem
  61. I (992) wifi:wifi driver task: 3ffe05b8, prio:23, stack:6656, core=0
  62. I (1004) wifi:wifi firmware version: 91b9630
  63. I (1004) wifi:wifi certification version: v7.0
  64. I (1005) wifi:config NVS flash: enabled
  65. I (1008) wifi:config nano formating: disabled
  66. I (1012) wifi:Init data frame dynamic rx buffer num: 32
  67. I (1017) wifi:Init static rx mgmt buffer num: 5
  68. I (1021) wifi:Init management short buffer num: 32
  69. I (1025) wifi:Init dynamic tx buffer num: 128
  70. I (1030) wifi:Init static rx buffer size: 1600
  71. I (1034) wifi:Init static rx buffer num: 10
  72. I (1037) wifi:Init dynamic rx buffer num: 32
  73. I (00:00:00.437) wifi_init: tcpip mbox: 32
  74. I (00:00:00.441) wifi_init: udp mbox: 6
  75. I (00:00:00.445) wifi_init: tcp mbox: 6
  76. I (00:00:00.450) wifi_init: tcp tx win: 5744
  77. I (00:00:00.455) wifi_init: tcp rx win: 5744
  78. I (00:00:00.460) wifi_init: tcp mss: 1440
  79. I (00:00:00.464) wifi_init: WiFi IRAM OP enabled
  80. I (00:00:00.470) wifi_init: WiFi RX IRAM OP enabled
  81. I (00:00:00.476) phy_init: phy_version 2401,2a6dc26,Sep 26 2023,11:22:15
  82. I (1131) wifi:mode : sta (a0:76:4e:8c:ee:8a) + softAP (a0:76:4e:8c:ee:8b)
  83. I (1131) wifi:enable tsf
  84. I (1135) wifi:Total power save buffer number: 64
  85. I (1136) wifi:Init max length of beacon: 752/752
  86. I (1138) wifi:Init max length of beacon: 752/752
  87. I (1153) wifi:Set ps type: 0, coexist: 0
  88.  
  89. W (1161) wifi:Affected by the ESP-NOW encrypt num, set the max connection num to 1
  90. I (1169) wifi:Total power save buffer number: 64
  91. I (00:00:00.987) [MESH-EVENT]: <MESH_EVENT_MESH_STARTED>ID:56:49:42:45:00:00
  92. I (00:00:00.988) [MESH-EVENT]: Mesh starts successfully.
  93. I (00:00:00.991) [MESH-EVENT]: Mesh ID:                       56:49:42:45:00:00
  94. I (00:00:00.999) [MESH-EVENT]: Mesh type:                                  Node
  95. I (00:00:01.007) [MESH-EVENT]: Channel:                                      11
  96. I (00:00:01.015) [MESH-EVENT]: Max. connected stations:                       8
  97. I (00:00:01.023) [MESH-EVENT]: STA protocol:
  98. I (00:00:01.030) [MESH-EVENT]: AP protocol:
  99. I (00:00:01.037) [MESH-EVENT]: Max. layer:                                   15
  100. I (00:00:01.046) [MESH-EVENT]: Topology:                                   Tree
  101. I (00:00:01.053) [MESH-EVENT]: Root fixed:                                  Yes
  102. I (00:00:01.061) [MESH-EVENT]: Power save enabled:                           No
  103. I (00:00:01.069) [MESH-EVENT]: Max. TX power:                          19.5 dBm
  104. I (00:00:01.078) [MESH-EVENT]: Free heap:                                 53504
  105. I (2716) wifi:new:<11,2>, old:<11,2>, ap:<11,2>, sta:<11,2>, prof:11
  106. I (3129) wifi:state: init -> auth (b0)
  107. I (3145) wifi:state: auth -> init (5c0)
  108. I (3146) wifi:new:<11,0>, old:<11,2>, ap:<11,2>, sta:<11,2>, prof:11
  109. I (00:00:02.542) [MESH-EVENT]: <MESH_EVENT_PARENT_DISCONNECTED>reason:5
  110. I (4262) wifi:new:<11,2>, old:<11,0>, ap:<11,2>, sta:<11,2>, prof:11
  111. I (4683) wifi:state: init -> auth (b0)
  112. I (4700) wifi:state: auth -> init (5c0)
  113. I (4701) wifi:new:<11,0>, old:<11,2>, ap:<11,2>, sta:<11,2>, prof:11
  114. I (00:00:04.098) [MESH-EVENT]: <MESH_EVENT_PARENT_DISCONNECTED>reason:5
  115. I (5863) wifi:new:<11,2>, old:<11,0>, ap:<11,2>, sta:<11,2>, prof:11
  116. I (6283) wifi:state: init -> auth (b0)
  117. I (6331) wifi:state: auth -> init (5c0)
  118. I (6332) wifi:new:<11,0>, old:<11,2>, ap:<11,2>, sta:<11,2>, prof:11
  119. I (00:00:05.729) [MESH-EVENT]: <MESH_EVENT_PARENT_DISCONNECTED>reason:5
  120. W (6472) wifi:scan number is 0
  121. W (6595) wifi:scan number is 0
  122. W (6717) wifi:scan number is 0
  123. I (7814) wifi:new:<11,2>, old:<11,0>, ap:<11,2>, sta:<11,2>, prof:11
  124. I (8235) wifi:state: init -> auth (b0)
  125. I (8262) wifi:state: auth -> init (5c0)
  126. I (8263) wifi:new:<11,0>, old:<11,2>, ap:<11,2>, sta:<11,2>, prof:11
  127. I (00:00:07.659) [MESH-EVENT]: <MESH_EVENT_PARENT_DISCONNECTED>reason:5
  128. I (00:00:09.346) [MESH-EVENT]: <MESH_EVENT_PARENT_DISCONNECTED>reason:201
  129. I (11408) wifi:new:<11,2>, old:<11,0>, ap:<11,2>, sta:<11,2>, prof:11
  130. I (11829) wifi:state: init -> auth (b0)
  131. I (11836) wifi:state: auth -> init (5c0)
  132. I (11837) wifi:new:<11,0>, old:<11,2>, ap:<11,2>, sta:<11,2>, prof:11
  133. I (00:00:11.245) [MESH-EVENT]: <MESH_EVENT_PARENT_DISCONNECTED>reason:5
  134. I (12934) wifi:new:<11,2>, old:<11,0>, ap:<11,2>, sta:<11,2>, prof:11
  135. I (13355) wifi:state: init -> auth (b0)
  136. I (13382) wifi:state: auth -> init (5c0)
  137. I (13383) wifi:new:<11,0>, old:<11,2>, ap:<11,2>, sta:<11,2>, prof:11
  138. I (00:00:12.779) [MESH-EVENT]: <MESH_EVENT_PARENT_DISCONNECTED>reason:5
  139. I (14503) wifi:new:<11,2>, old:<11,0>, ap:<11,2>, sta:<11,2>, prof:11
  140. I (14915) wifi:state: init -> auth (b0)
  141. I (14932) wifi:state: auth -> init (5c0)
  142. I (14933) wifi:new:<11,0>, old:<11,2>, ap:<11,2>, sta:<11,2>, prof:11
  143. I (00:00:14.330) [MESH-EVENT]: <MESH_EVENT_PARENT_DISCONNECTED>reason:5
  144. I (16091) wifi:new:<11,2>, old:<11,0>, ap:<11,2>, sta:<11,2>, prof:11
  145. I (16573) wifi:state: init -> auth (b0)
  146. I (16590) wifi:state: auth -> init (5c0)
  147. I (16591) wifi:new:<11,0>, old:<11,2>, ap:<11,2>, sta:<11,2>, prof:11
  148. I (00:00:15.988) [MESH-EVENT]: <MESH_EVENT_PARENT_DISCONNECTED>reason:5
  149. W (16853) wifi:scan number is 0
  150. W (16976) wifi:scan number is 0
  151. I (18053) wifi:new:<11,2>, old:<11,0>, ap:<11,2>, sta:<11,2>, prof:11
  152. I (18536) wifi:state: init -> auth (b0)
  153. I (18576) wifi:state: auth -> init (5c0)
  154. I (18577) wifi:new:<11,0>, old:<11,2>, ap:<11,2>, sta:<11,2>, prof:11
  155. I (00:00:17.973) [MESH-EVENT]: <MESH_EVENT_PARENT_DISCONNECTED>reason:5
  156. I (19600) wifi:new:<11,2>, old:<11,0>, ap:<11,2>, sta:<11,2>, prof:11
  157. I (20021) wifi:state: init -> auth (b0)
  158. I (20038) wifi:state: auth -> init (5c0)
  159. I (20039) wifi:new:<11,0>, old:<11,2>, ap:<11,2>, sta:<11,2>, prof:11
  160. I (00:00:19.436) [MESH-EVENT]: <MESH_EVENT_PARENT_DISCONNECTED>reason:5
  161. I (21222) wifi:new:<11,2>, old:<11,0>, ap:<11,2>, sta:<11,2>, prof:11
  162. I (21643) wifi:state: init -> auth (b0)
  163. I (21693) wifi:state: auth -> init (5c0)
  164. I (21694) wifi:new:<11,0>, old:<11,2>, ap:<11,2>, sta:<11,2>, prof:11
  165. I (00:00:21.091) [MESH-EVENT]: <MESH_EVENT_PARENT_DISCONNECTED>reason:5
  166. W (22019) wifi:scan number is 0
  167. I (23270) wifi:new:<11,2>, old:<11,0>, ap:<11,2>, sta:<11,2>, prof:11
  168. I (23683) wifi:state: init -> auth (b0)
  169. I (23707) wifi:state: auth -> init (5c0)
  170. I (23707) wifi:new:<11,0>, old:<11,2>, ap:<11,2>, sta:<11,2>, prof:11
  171. I (00:00:23.104) [MESH-EVENT]: <MESH_EVENT_PARENT_DISCONNECTED>reason:5
  172. W (24031) wifi:scan number is 0
  173. W (24153) wifi:scan number is 0
  174. I (25222) wifi:new:<11,2>, old:<11,0>, ap:<11,2>, sta:<11,2>, prof:11
  175. I (25643) wifi:state: init -> auth (b0)
  176. I (25672) wifi:state: auth -> init (5c0)
  177. I (25673) wifi:new:<11,0>, old:<11,2>, ap:<11,2>, sta:<11,2>, prof:11
  178. I (00:00:25.070) [MESH-EVENT]: <MESH_EVENT_PARENT_DISCONNECTED>reason:5
  179. I (26779) wifi:new:<11,2>, old:<11,0>, ap:<11,2>, sta:<11,2>, prof:11
  180. I (27200) wifi:state: init -> auth (b0)
  181. I (27220) wifi:state: auth -> assoc (0)
  182. I (27231) wifi:state: assoc -> run (10)
  183. I (00:00:26.631) [MESH-EVENT]: <MESH_EVENT_ROOT_ADDRESS>root address:a0:76:4e:8d:05:55
  184. E (00:00:26.631) [APP_UTILS]: Failed to MESH Network connection.
  185. I (27279) wifi:connected with ESPM_8CEECC, aid = 1, channel 11, 40D, bssid = a0:76:4e:8c:ee:cd
  186. I (27280) wifi:security: WPA2-PSK, phy: lrbgn, rssi: -74
  187. I (27284) wifi:pm start, type: 0
  188.  
  189. I (00:00:26.683) [MESH-EVENT]: <MESH_EVENT_PARENT_CONNECTED>layer:0-->8, parent:a0:76:4e:8c:ee:cd<Layer>, ID:56:49:42:45:00:00, duty:0
  190. I (00:00:26.693) [MESH-EVENT]: <MESH_EVENT_TODS_REACHABLE>state:0
  191. I (00:00:26.699) [MESH-EVENT]: <MESH_EVENT_ROOT_ADDRESS>root address:a0:76:4e:8d:05:55
  192. I (27812) wifi:AP's beacon interval = 1024000 us, DTIM period = 1
  193. W (60246) wifi:5258<clear>parent candidate a0:76:4e:8c:ef:33, candidate_set:1, <post>rssi:-46(threshold:-78), duration:21secs
  194. I (60248) wifi:state: run -> init (0)
  195. I (60251) wifi:pm stop, total sleep time: 0 us / 32966045 us
  196.  
  197. I (60256) wifi:new:<11,0>, old:<11,2>, ap:<11,2>, sta:<11,2>, prof:11
  198. I (00:00:59.671) [MESH-EVENT]: <MESH_EVENT_PARENT_DISCONNECTED>reason:8
  199. I (61273) wifi:new:<11,2>, old:<11,0>, ap:<11,2>, sta:<11,2>, prof:11
  200. I (61754) wifi:state: init -> auth (b0)
  201. I (61771) wifi:state: auth -> init (5c0)
  202. I (61772) wifi:new:<11,0>, old:<11,2>, ap:<11,2>, sta:<11,2>, prof:11
  203. I (00:01:01.169) [MESH-EVENT]: <MESH_EVENT_PARENT_DISCONNECTED>reason:5
  204. I (64322) wifi:new:<11,2>, old:<11,0>, ap:<11,2>, sta:<11,2>, prof:11
  205. I (64806) wifi:state: init -> auth (b0)
  206. I (64823) wifi:state: auth -> init (5c0)
  207. I (64824) wifi:new:<11,0>, old:<11,2>, ap:<11,2>, sta:<11,2>, prof:11
  208. I (00:01:04.221) [MESH-EVENT]: <MESH_EVENT_PARENT_DISCONNECTED>reason:5
  209. I (66414) wifi:new:<11,2>, old:<11,0>, ap:<11,2>, sta:<11,2>, prof:11
  210. I (66827) wifi:state: init -> auth (b0)
  211. I (66844) wifi:state: auth -> init (5c0)
  212. I (66845) wifi:new:<11,0>, old:<11,2>, ap:<11,2>, sta:<11,2>, prof:11
  213. I (00:01:06.242) [MESH-EVENT]: <MESH_EVENT_PARENT_DISCONNECTED>reason:5
  214. I (69442) wifi:new:<11,2>, old:<11,0>, ap:<11,2>, sta:<11,2>, prof:11
  215. I (69863) wifi:state: init -> auth (b0)
  216. I (69880) wifi:state: auth -> init (5c0)
  217. I (69881) wifi:new:<11,0>, old:<11,2>, ap:<11,2>, sta:<11,2>, prof:11
  218. I (00:01:09.278) [MESH-EVENT]: <MESH_EVENT_PARENT_DISCONNECTED>reason:5
  219. W (00:01:09.373) [APP]: Writing Flash...
  220. I (00:01:09.374) wearleveling_helper: Writing File: /spiflash/switch-data.txt
  221. I (71500) wifi:new:<11,2>, old:<11,0>, ap:<11,2>, sta:<11,2>, prof:11
  222. I (71921) wifi:state: init -> auth (b0)
  223. I (71938) wifi:state: auth -> init (5c0)
  224. I (71939) wifi:new:<11,0>, old:<11,2>, ap:<11,2>, sta:<11,2>, prof:11
  225. I (00:01:11.336) [MESH-EVENT]: <MESH_EVENT_PARENT_DISCONNECTED>reason:5
  226. I (73549) wifi:new:<11,2>, old:<11,0>, ap:<11,2>, sta:<11,2>, prof:11
  227. I (73970) wifi:state: init -> auth (b0)
  228. I (73987) wifi:state: auth -> init (5c0)
  229. I (73988) wifi:new:<11,0>, old:<11,2>, ap:<11,2>, sta:<11,2>, prof:11
  230. I (00:01:13.385) [MESH-EVENT]: <MESH_EVENT_PARENT_DISCONNECTED>reason:5
  231. I (75597) wifi:new:<11,2>, old:<11,0>, ap:<11,2>, sta:<11,2>, prof:11
  232. I (76018) wifi:state: init -> auth (b0)
  233. I (76035) wifi:state: auth -> init (5c0)
  234. I (76036) wifi:new:<11,0>, old:<11,2>, ap:<11,2>, sta:<11,2>, prof:11
  235. I (00:01:15.433) [MESH-EVENT]: <MESH_EVENT_PARENT_DISCONNECTED>reason:5
  236. I (00:01:18.503) [MESH-EVENT]: <MESH_EVENT_PARENT_DISCONNECTED>reason:201
  237. I (79590) wifi:new:<11,2>, old:<11,0>, ap:<11,2>, sta:<11,2>, prof:11
  238. I (80011) wifi:state: init -> auth (b0)
  239. I (80073) wifi:state: auth -> init (5c0)
  240. I (80074) wifi:new:<11,0>, old:<11,2>, ap:<11,2>, sta:<11,2>, prof:11
  241. I (00:01:19.470) [MESH-EVENT]: <MESH_EVENT_PARENT_DISCONNECTED>reason:5

Who is online

Users browsing this forum: No registered users and 145 guests