我用idf例程里的station例程,smartconfig例程编译烧录后都无法连接到路由器。用的idf版本时4.3.1 分别用eslipse编译与用vscode下编译烧录后都无法连接家里的路由器,用手机开的热点也连接不上。但是烧录micropython官网的bin文件后可以用micropyhton脚本正常联网。后来用公司电脑编译smartconfig例程烧录后,可以连接上公司的路由器,我将开发板带回家,仍然连接不上家里的路由器。
I (28) boot: ESP-IDF v4.3.1 2nd stage bootloader
I (28) boot: compile time 23:42:56
I (28) boot: chip revision: 1
I (31) boot_comm: chip revision: 1, min. bootloader chip revision: 0
I (38) boot.esp32: SPI Speed : 40MHz
I (42) boot.esp32: SPI Mode : DIO
I (47) boot.esp32: SPI Flash Size : 4MB
I (51) boot: Enabling RNG early entropy source...
I (57) boot: Partition Table:
I (60) boot: ## Label Usage Type ST Offset Length
I (68) boot: 0 nvs WiFi data 01 02 00009000 00006000
I (75) boot: 1 phy_init RF data 01 01 0000f000 00001000
I (83) boot: 2 factory factory app 00 00 00010000 00100000
I (90) boot: End of partition table
I (94) boot_comm: chip revision: 1, min. application chip revision: 0
I (101) esp_image: segment 0: paddr=00010020 vaddr=3f400020 size=130b0h ( 78000) map
I (138) esp_image: segment 1: paddr=000230d8 vaddr=3ffb0000 size=04114h ( 16660) load
I (145) esp_image: segment 2: paddr=000271f4 vaddr=40080000 size=08e24h ( 36388) load
I (160) esp_image: segment 3: paddr=00030020 vaddr=400d0020 size=6b204h (438788) map
I (319) esp_image: segment 4: paddr=0009b22c vaddr=40088e24 size=0bcf4h ( 48372) load
I (339) esp_image: segment 5: paddr=000a6f28 vaddr=50000000 size=00010h ( 16) load
I (350) boot: Loaded app from partition at offset 0x10000
I (350) boot: Disabling RNG early entropy source...
I (362) cpu_start: Pro cpu up.
I (362) cpu_start: Starting app cpu, entry point is 0x40081220
0x40081220: call_start_cpu1 at E:/esp/esp-idf/components/esp_system/port/cpu_start.c:141
I (0) cpu_start: App cpu up.
I (376) cpu_start: Pro cpu start user code
I (376) cpu_start: cpu freq: 160000000
I (376) cpu_start: Application information:
I (380) cpu_start: Project name: wifi_station
I (386) cpu_start: App version: 1
I (390) cpu_start: Compile time: Nov 6 2021 23:42:44
I (396) cpu_start: ELF file SHA256: 1e21f733b7e2dfed...
I (402) cpu_start: ESP-IDF: v4.3.1
I (407) heap_init: Initializing. RAM available for dynamic allocation:
I (415) heap_init: At 3FFAE6E0 len 00001920 (6 KiB): DRAM
I (421) heap_init: At 3FFB7E48 len 000281B8 (160 KiB): DRAM
I (427) heap_init: At 3FFE0440 len 00003AE0 (14 KiB): D/IRAM
I (433) heap_init: At 3FFE4350 len 0001BCB0 (111 KiB): D/IRAM
I (440) heap_init: At 40094B18 len 0000B4E8 (45 KiB): IRAM
I (447) spi_flash: detected chip: generic
I (450) spi_flash: flash io: dio
I (456) cpu_start: Starting scheduler on PRO CPU.
I (0) cpu_start: Starting scheduler on APP CPU.
I (522) wifi station: ESP_WIFI_MODE_STA
I (532) wifi:wifi driver task: 3ffc1900, prio:23, stack:6656, core=0
I (532) system_api: Base MAC address is not set
I (532) system_api: read default base MAC address from EFUSE
I (552) wifi:wifi firmware version: 88c8747
I (552) wifi:wifi certification version: v7.0
I (552) wifi:config NVS flash: enabled
I (552) wifi:config nano formating: disabled
I (552) wifi:Init data frame dynamic rx buffer num: 32
I (552) wifi:Init management frame dynamic rx buffer num: 32
I (562) wifi:Init management short buffer num: 32
I (562) wifi:Init dynamic tx buffer num: 32
I (572) wifi:Init static rx buffer size: 1600
I (572) wifi:Init static rx buffer num: 10
I (582) wifi:Init dynamic rx buffer num: 32
I (582) wifi_init: rx ba win: 6
I (582) wifi_init: tcpip mbox: 32
I (592) wifi_init: udp mbox: 6
I (592) wifi_init: tcp mbox: 6
I (602) wifi_init: tcp tx win: 5744
I (602) wifi_init: tcp rx win: 5744
I (602) wifi_init: tcp mss: 1440
I (612) wifi_init: WiFi IRAM OP enabled
I (612) wifi_init: WiFi RX IRAM OP enabled
I (642) phy_init: phy_version 4670,719f9f6,Feb 18 2021,17:07:07
I (752) wifi:mode : sta (7c:9e:bd:46:fc:64)
I (752) wifi:enable tsf
I (752) wifi station: wifi_init_sta finished.
I (1322) wifi<5,0>, old:<1,0>, ap:<255,255>, sta:<5,0>, prof:1
I (1322) wifi:state: init -> auth (b0)
I (2322) wifi:state: auth -> init (200)
I (2322) wifi<5,0>, old:<5,0>, ap:<255,255>, sta:<5,0>, prof:1
I (2322) wifi station: retry to connect to the AP
I (2322) wifi station: connect to the AP fail
I (4372) wifi station: retry to connect to the AP
I (4372) wifi station: connect to the AP fail
I (4392) wifi<5,0>, old:<5,0>, ap:<255,255>, sta:<5,0>, prof:1
I (4392) wifi:state: init -> auth (b0)
I (5392) wifi:state: auth -> init (200)
I (5392) wifi<5,0>, old:<5,0>, ap:<255,255>, sta:<5,0>, prof:1
I (5392) wifi station: retry to connect to the AP
I (5392) wifi station: connect to the AP fail
I (7442) wifi station: retry to connect to the AP
I (7442) wifi station: connect to the AP fail
I (7462) wifi<5,0>, old:<5,0>, ap:<255,255>, sta:<5,0>, prof:1
I (7462) wifi:state: init -> auth (b0)
I (8462) wifi:state: auth -> init (200)
I (8462) wifi<5,0>, old:<5,0>, ap:<255,255>, sta:<5,0>, prof:1
I (8462) wifi station: retry to connect to the AP
I (8472) wifi station: connect to the AP fail
I (10512) wifi station: connect to the AP fail
I (10512) wifi station: Failed to connect to SSID:CMCC-jit4, password:88888888
ESP32 IDF4.3.1例程中station模式无法连接AP
Re: ESP32 IDF4.3.1例程中station模式无法连接AP
你这边路由器是2.4G的还是5G的,看 log 是 路由器不让连接,不回复 auth response,pmf capable 设置成 true,required 设置成 1 试试。
Who is online
Users browsing this forum: Majestic-12 [Bot], virgil and 86 guests