【已解决】idf4.4版本里的wifi ap模式例程,出现wifi自动断开,wifi_init_softap()函数不停的初始化

guojiyuanzineng
Posts: 3
Joined: Fri Apr 28, 2023 3:47 am

【已解决】idf4.4版本里的wifi ap模式例程,出现wifi自动断开,wifi_init_softap()函数不停的初始化

Postby guojiyuanzineng » Fri Apr 28, 2023 3:56 am

wifi_init_softap()函数有时一直初始化,请大佬帮忙看下

I (43) boot: ESP-IDF v4.4.4-dirty 2nd stage bootloader
I (43) boot: compile time 09:46:53
I (43) boot: chip revision: v0.1
I (45) boot_comm: chip revision: 1, min. bootloader chip revision: 0
I (52) boot.esp32s3: Boot SPI Speed : 80MHz
I (57) boot.esp32s3: SPI Mode : DIO
I (62) boot.esp32s3: SPI Flash Size : 16MB
I (67) boot: Enabling RNG early entropy source...
I (72) boot: Partition Table:
I (76) boot: ## Label Usage Type ST Offset Length
I (83) boot: 0 nvs WiFi data 01 02 00009000 00006000
I (91) boot: 1 phy_init RF data 01 01 0000f000 00001000
I (98) boot: 2 factory factory app 00 00 00010000 00100000
I (106) boot: End of partition table
I (110) boot_comm: chip revision: 1, min. application chip revision: 0
I (117) esp_image: segment 0: paddr=00010020 vaddr=3c070020 size=12c48h ( 76872) map
I (139) esp_image: segment 1: paddr=00022c70 vaddr=3fc962e0 size=043c8h ( 17352) load
I (143) esp_image: segment 2: paddr=00027040 vaddr=40374000 size=08fd8h ( 36824) load
I (153) esp_image: segment 3: paddr=00030020 vaddr=42000020 size=6ae74h (437876) map
I (232) esp_image: segment 4: paddr=0009ae9c vaddr=4037cfd8 size=09304h ( 37636) load
I (248) boot: Loaded app from partition at offset 0x10000
I (248) boot: Disabling RNG early entropy source...
I (259) cpu_start: Pro cpu up.
I (260) cpu_start: Starting app cpu, entry point is 0x40375288
0x40375288: call_start_cpu1 at D:/Espressif/frameworks/esp-idf-v4.4.4/components/esp_system/port/cpu_start.c:148

I (0) cpu_start: App cpu up.
I (274) cpu_start: Pro cpu start user code
I (274) cpu_start: cpu freq: 160000000
I (274) cpu_start: Application information:
I (276) cpu_start: Project name: wifi_softAP
I (282) cpu_start: App version: 1
I (286) cpu_start: Compile time: Apr 28 2023 09:46:25
I (292) cpu_start: ELF file SHA256: ae65708da115e99e...
I (298) cpu_start: ESP-IDF: v4.4.4-dirty
I (304) heap_init: Initializing. RAM available for dynamic allocation:
I (311) heap_init: At 3FC9DE58 len 0004B8B8 (302 KiB): D/IRAM
I (317) heap_init: At 3FCE9710 len 00005724 (21 KiB): STACK/DRAM
I (324) heap_init: At 3FCF0000 len 00008000 (32 KiB): DRAM
I (330) heap_init: At 600FE000 len 00002000 (8 KiB): RTCRAM
I (337) spi_flash: detected chip: gd
I (341) spi_flash: flash io: dio
I (345) sleep: Configure to isolate all GPIO pins in sleep state
I (351) sleep: Enable automatic switching of GPIO sleep configuration
I (359) cpu_start: Starting scheduler on PRO CPU.
I (0) cpu_start: Starting scheduler on APP CPU.
I (407) wifi softAP: ESP_WIFI_MODE_AP
I (417) pp: pp rom version: e7ae62f
I (417) net80211: net80211 rom version: e7ae62f
I (427) wifi:wifi driver task: 3fceec80, prio:23, stack:6656, core=0
I (427) system_api: Base MAC address is not set
I (427) system_api: read default base MAC address from EFUSE
I (437) wifi:wifi firmware version: 6567a16
I (437) wifi:wifi certification version: v7.0
I (437) wifi:config NVS flash: enabled
I (447) wifi:config nano formating: disabled
I (447) wifi:Init data frame dynamic rx buffer num: 32
I (447) wifi:Init management frame dynamic rx buffer num: 32
I (457) wifi:Init management short buffer num: 32
I (457) wifi:Init dynamic tx buffer num: 32
I (467) wifi:Init static tx FG buffer num: 2
I (467) wifi:Init static rx buffer size: 1600
I (477) wifi:Init static rx buffer num: 10
I (477) wifi:Init dynamic rx buffer num: 32
I (477) wifi_init: rx ba win: 6
I (487) wifi_init: tcpip mbox: 32
I (487) wifi_init: udp mbox: 6
I (497) wifi_init: tcp mbox: 6
I (497) wifi_init: tcp tx win: 5744
I (497) wifi_init: tcp rx win: 5744
I (507) wifi_init: tcp mss: 1440
I (507) wifi_init: WiFi IRAM OP enabled
I (517) wifi_init: WiFi RX IRAM OP enabled
I (527) phy_init: phy_version 540,a5d905b,Oct 20 2022,19:36:11
I (567) wifi:mode : softAP (34:85:18:8f:5d:d1)
I (567) wifi:Total power save buffer number: 16
I (567) wifi:Init max length of beacon: 752/752
I (567) wifi:Init max length of beacon: 752/752
I (567) wifi softAP: wifi_init_softap finished. SSID:myssid password:11111111 channel:1
I (10627) wifi:new:<1,0>, old:<1,1>, ap:<1,1>, sta:<255,255>, prof:1
I (10627) wifi:station: 56:2d:a4:fc:83:8e join, AID=1, bgn, 20
I (10737) wifi softAP: station 56:2d:a4:fc:83:8e join, AID=1
I (10807) wifi:<ba-add>idx:2 (ifx:1, 56:2d:a4:fc:83:8e), tid:0, ssn:2, winSize:64
I (11027) esp_netif_lwip: DHCP server assigned IP to a station, IP is: 192.168.4.2
I (12247) wifi:<ba-add>idx:3 (ifx:1, 56:2d:a4:fc:83:8e), tid:7, ssn:0, winSize:64
GetOverlappedResult failed (PermissionError(13, '???????????????', None, 5))
Waiting for the device to reconnect
I (557) wifi:mode : softAP (34:85:18:8f:5d:d1)
I (567) wifi:Total power save buffer number: 16
I (567) wifi:Init max length of beacon: 752/752
I (567) wifi:Init max length of beacon: 752/752
I (567) wifi softAP: wifi_init_softap finished. SSID:myssid password:11111111 channel:1
I (3407) wifi:new:<1,0>, old:<1,1>, ap:<1,1>, sta:<255,255>, prof:1
I (3407) wifi:station: 56:2d:a4:fc:83:8e join, AID=1, bgn, 20
I (3527) wifi softAP: station 56:2d:a4:fc:83:8e join, AID=1
I (3587) wifi:<ba-add>idx:2 (ifx:1, 56:2d:a4:fc:83:8e), tid:0, ssn:2, winSize:64
I (3797) esp_netif_lwip: DHCP server assigned IP to a station, IP is: 192.168.4.2
I (5027) wifi:<ba-add>idx:3 (ifx:1, 56:2d:a4:fc:83:8e), tid:7, ssn:0, winSize:64
GetOverlappedResult failed (PermissionError(13, '???????????????', None, 5))
Waiting for the device to reconnect
I (558) wifi:mode : softAP (34:85:18:8f:5d:d1)
I (568) wifi:Total power save buffer number: 16
I (568) wifi:Init max length of beacon: 752/752
I (568) wifi:Init max length of beacon: 752/752
I (568) wifi softAP: wifi_init_softap finished. SSID:myssid password:11111111 channel:1
I (2538) wifi:new:<1,0>, old:<1,1>, ap:<1,1>, sta:<255,255>, prof:1
I (2548) wifi:station: 56:2d:a4:fc:83:8e join, AID=1, bgn, 20
I (2598) wifi softAP: station 56:2d:a4:fc:83:8e join, AID=1
I (2738) wifi:<ba-add>idx:2 (ifx:1, 56:2d:a4:fc:83:8e), tid:0, ssn:2, winSize:64
I (2988) esp_netif_lwip: DHCP server assigned IP to a station, IP is: 192.168.4.2
I (4268) wifi:<ba-add>idx:3 (ifx:1, 56:2d:a4:fc:83:8e), tid:7, ssn:0, winSize:64
GetOverlappedResult failed (PermissionError(13, '???????????????', None, 5))
Waiting for the device to reconnect
I (568) wifi:mode : softAP (34:85:18:8f:5d:d1)
I (568) wifi:Total power save buffer number: 16
I (568) wifi:Init max length of beacon: 752/752
I (568) wifi:Init max length of beacon: 752/752
I (568) wifi softAP: wifi_init_softap finished. SSID:myssid password:11111111 channel:1
GetOverlappedResult failed (PermissionError(13, '???????????????', None, 5))
Waiting for the device to reconnect
I (557) wifi:mode : softAP (34:85:18:8f:5d:d1)
I (567) wifi:Total power save buffer number: 16
I (567) wifi:Init max length of beacon: 752/752
I (567) wifi:Init max length of beacon: 752/752
I (567) wifi softAP: wifi_init_softap finished. SSID:myssid password:11111111 channel:1
GetOverlappedResult failed (PermissionError(13, '???????????????', None, 5))
Waiting for the device to reconnect
I (557) wifi:mode : softAP (34:85:18:8f:5d:d1)
I (567) wifi:Total power save buffer number: 16
I (567) wifi:Init max length of beacon: 752/752
I (567) wifi:Init max length of beacon: 752/752
I (567) wifi softAP: wifi_init_softap finished. SSID:myssid password:11111111 channel:1
GetOverlappedResult failed (PermissionError(13, '???????????????', None, 5))
Waiting for the device to reconnect
I (558) wifi:mode : softAP (34:85:18:8f:5d:d1)
I (568) wifi:Total power save buffer number: 16
I (568) wifi:Init max length of beacon: 752/752
I (568) wifi:Init max length of beacon: 752/752
I (568) wifi softAP: wifi_init_softap finished. SSID:myssid password:11111111 channel:1
GetOverlappedResult failed (PermissionError(13, '???????????????', None, 5))
Waiting for the device to reconnect
I (558) wifi:mode : softAP (34:85:18:8f:5d:d1)
I (568) wifi:Total power save buffer number: 16
I (568) wifi:Init max length of beacon: 752/752
I (568) wifi:Init max length of beacon: 752/752
I (568) wifi softAP: wifi_init_softap finished. SSID:myssid password:11111111 channel:1
Attachments
[IY{Z3NV9XWLEVH$[Z0XD0W.png
[IY{Z3NV9XWLEVH$[Z0XD0W.png (133.07 KiB) Viewed 2184 times

ESP_LiuH
Posts: 42
Joined: Fri Feb 10, 2023 7:20 am

Re: idf4.4版本里的wifi ap模式例程,出现wifi自动断开,wifi_init_softap()函数不停的初始化

Postby ESP_LiuH » Wed May 10, 2023 7:18 am

I have checked the example of https://github.com/espressif/esp-idf/tr ... ted/softAP, it can't reproduce your issue? Please share your code or modify information which can reproduce the issue.

guojiyuanzineng
Posts: 3
Joined: Fri Apr 28, 2023 3:47 am

Re: idf4.4版本里的wifi ap模式例程,出现wifi自动断开,wifi_init_softap()函数不停的初始化

Postby guojiyuanzineng » Wed May 10, 2023 7:24 am

The problem has been solved, and the reason was unstable power supply

fanks123
Posts: 2
Joined: Sun Jan 22, 2023 8:28 am

Re: 【已解决】idf4.4版本里的wifi ap模式例程,出现wifi自动断开,wifi_init_softap()函数不停的初始化

Postby fanks123 » Fri Jun 16, 2023 1:13 am

我也遇到同样问题,求解

guojiyuanzineng
Posts: 3
Joined: Fri Apr 28, 2023 3:47 am

Re: 【已解决】idf4.4版本里的wifi ap模式例程,出现wifi自动断开,wifi_init_softap()函数不停的初始化

Postby guojiyuanzineng » Fri Jun 16, 2023 8:50 am

我的是usb接口供电不稳,换了个插口就好了

Who is online

Users browsing this forum: No registered users and 44 guests