完善资料让更多小伙伴认识你,还能领取20积分哦, 立即完善>
我用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 |
|
相关推荐
2个回答
|
|
你这边路由器是2.4G的还是5G的,看 log 是 路由器不让连接,不回复 auth response,pmf capable 设置成 true,required 设置成 1 试试。
|
|
|
|
根据您提供的信息,您在使用ESP32 IDF 4.3.1版本时,无法在station模式下连接到家里的路由器。但是使用MicroPython可以正常联网。以下是一些建议来解决这个问题:
1. 检查路由器设置:确保您的路由器没有设置MAC地址过滤,或者已经将ESP32的MAC地址添加到允许列表中。同时,检查路由器的信道设置,确保ESP32支持该信道。 2. 检查ESP32的配置:在`menuconfig`中,检查无线网络设置,确保SSID和密码与您的路由器匹配。同时,检查无线模式设置,确保与路由器兼容。 3. 更新ESP32固件:尝试升级到最新版本的ESP-IDF,以解决可能存在的已知问题。 4. 检查电源:确保ESP32的电源稳定,因为不稳定的电源可能会影响无线连接。 5. 检查天线:如果您使用的是外部天线,请确保天线连接正确,没有损坏。 6. 尝试其他连接方式:如果问题仍然存在,您可以尝试使用其他连接方式,如Wi-Fi AP模式或以太网。 7. 查看日志:检查ESP32的输出日志,看是否有关于连接失败的错误信息,这可能会帮助您找到问题的原因。 8. 硬件问题:如果以上方法都无法解决问题,可能是ESP32硬件存在问题。您可以尝试更换其他ESP32模块进行测试。 希望这些建议能帮助您解决问题。如果问题仍然存在,请提供更多详细信息,以便我们能更好地帮助您。 |
|
|
|
只有小组成员才能发言,加入小组>>
545浏览 6评论
457浏览 5评论
有没有办法在不使用混杂模式的情况下实现Wifi驱动程序接收缓冲区访问中断呢?
437浏览 5评论
441浏览 4评论
411浏览 4评论
小黑屋| 手机版| Archiver| 电子发烧友 ( 湘ICP备2023018690号 )
GMT+8, 2024-11-22 00:37 , Processed in 0.850391 second(s), Total 78, Slave 62 queries .
Powered by 电子发烧友网
© 2015 bbs.elecfans.com
关注我们的微信
下载发烧友APP
电子发烧友观察
版权所有 © 湖南华秋数字科技有限公司
电子发烧友 (电路图) 湘公网安备 43011202000918 号 电信与信息服务业务经营许可证:合字B2-20210191 工商网监 湘ICP备2023018690号