【已解决】ESP32S3官方例程 wifi->station 多块板测试连接不上WiFi

Daniel
Posts: 28
Joined: Tue Jan 09, 2018 12:55 pm

【已解决】ESP32S3官方例程 wifi->station 多块板测试连接不上WiFi

Postby Daniel » Mon Jul 24, 2023 1:09 am

问题描述:
运行的程序是wifi->station程序
1.我们自己画的PCB板子,以前用过ESP32,ESP32S2在连接WiFi上均没有问题,现在在ESP32S3时,连接不上WiFi。
2.板子搭载了一个xn297无线模块,拆掉该无线模块后还是不行
3.蓝牙功能均没有问题,甚至可以用蓝牙进行OTA更新
4.WiFi打开时,明显有反应,就是连接不上
5.已经在多块PCB板测试,均是如此
以下是运行日志:

Code: Select all

ESP-ROM:esp32s3-20210327
Build:Mar 27 2021
rst:0x1 (POWERON),boot:0x8 (SPI_FAST_FLASH_BOOT)
SPIWP:0xee
mode:DIO, clock div:1
load:0x3fce3820,len:0x1718
load:0x403c9700,len:0x4
load:0x403c9704,len:0xc08
load:0x403cc700,len:0x2f08
entry 0x403c990c
I (27) boot: ESP-IDF v5.2-dev-921-gdc016f5987-dirty 2nd stage bootloader
I (27) boot: compile time Jul 24 2023 08:46:47
I (28) boot: Multicore bootloader
I (32) boot: chip revision: v0.1
I (36) boot.esp32s3: Boot SPI Speed : 80MHz
I (41) boot.esp32s3: SPI Mode       : DIO
I (45) boot.esp32s3: SPI Flash Size : 8MB
I (50) boot: Enabling RNG early entropy source...
I (56) boot: Partition Table:
I (59) boot: ## Label            Usage          Type ST Offset   Length
I (66) boot:  0 nvs              WiFi data        01 02 00009000 00006000
I (74) boot:  1 phy_init         RF data          01 01 0000f000 00001000
I (81) boot:  2 factory          factory app      00 00 00010000 00100000
I (89) boot: End of partition table
I (93) esp_image: segment 0: paddr=00010020 vaddr=3c080020 size=20624h (132644) map
I (125) esp_image: segment 1: paddr=0003064c vaddr=3fc96f00 size=0448ch ( 17548) load
I (129) esp_image: segment 2: paddr=00034ae0 vaddr=40374000 size=0b538h ( 46392) load
I (141) esp_image: segment 3: paddr=00040020 vaddr=42000020 size=7c168h (508264) map
I (233) esp_image: segment 4: paddr=000bc190 vaddr=4037f538 size=078e0h ( 30944) load
I (248) boot: Loaded app from partition at offset 0x10000
I (248) boot: Disabling RNG early entropy source...
I (260) cpu_start: Multicore app
I (260) cpu_start: Pro cpu up.
I (260) cpu_start: Starting app cpu, entry point is 0x40375300
0x40375300: call_start_cpu1 at C:/Espressif/frameworks/esp-idf/components/esp_system/port/cpu_start.c:154

I (0) cpu_start: App cpu up.
I (278) cpu_start: Pro cpu start user code
I (278) cpu_start: cpu freq: 160000000 Hz
I (278) cpu_start: Application information:
I (281) cpu_start: Project name:     wifi_station
I (287) cpu_start: App version:      1
I (291) cpu_start: Compile time:     Jul 24 2023 08:46:33
I (297) cpu_start: ELF file SHA256:  b1566ee4d...
I (302) cpu_start: ESP-IDF:          v5.2-dev-921-gdc016f5987-dirty
I (309) cpu_start: Min chip rev:     v0.0
I (314) cpu_start: Max chip rev:     v0.99 
I (319) cpu_start: Chip rev:         v0.1
I (324) heap_init: Initializing. RAM available for dynamic allocation:
I (331) heap_init: At 3FC9ED60 len 0004A9B0 (298 KiB): DRAM
I (337) heap_init: At 3FCE9710 len 00005724 (21 KiB): STACK/DRAM
I (344) heap_init: At 3FCF0000 len 00008000 (32 KiB): DRAM
I (350) heap_init: At 600FE010 len 00001FF0 (7 KiB): RTCRAM
I (357) spi_flash: detected chip: gd
I (360) spi_flash: flash io: dio
I (365) sleep: Configure to isolate all GPIO pins in sleep state
I (371) sleep: Enable automatic switching of GPIO sleep configuration
I (379) app_start: Starting scheduler on CPU0
I (383) app_start: Starting scheduler on CPU1
I (383) main_task: Started on CPU0
I (393) main_task: Calling app_main()
I (423) wifi station: ESP_WIFI_MODE_STA
I (423) pp: pp rom version: e7ae62f
I (423) net80211: net80211 rom version: e7ae62f
I (433) wifi:wifi driver task: 3fca8f1c, prio:23, stack:6656, core=0
I (443) wifi:wifi firmware version: b2f1f86
I (443) wifi:wifi certification version: v7.0
I (443) wifi:config NVS flash: enabled
I (443) wifi:config nano formating: disabled
I (453) wifi:Init data frame dynamic rx buffer num: 32
I (453) wifi:Init management frame dynamic rx buffer num: 32
I (463) wifi:Init management short buffer num: 32
I (463) wifi:Init dynamic tx buffer num: 32
I (473) wifi:Init static tx FG buffer num: 2
I (473) wifi:Init static rx buffer size: 1600
I (473) wifi:Init static rx buffer num: 10
I (483) wifi:Init dynamic rx buffer num: 32
I (483) wifi_init: rx ba win: 6
I (493) wifi_init: tcpip mbox: 32
I (493) wifi_init: udp mbox: 6
I (493) wifi_init: tcp mbox: 6
I (503) wifi_init: tcp tx win: 5744
I (503) wifi_init: tcp rx win: 5744
I (503) wifi_init: tcp mss: 1440
I (513) wifi_init: WiFi IRAM OP enabled
I (513) wifi_init: WiFi RX IRAM OP enabled
I (523) phy_init: phy_version 601,fe52df4,May 10 2023,17:26:54
I (583) wifi:mode : sta (f4:12:fa:57:64:bc)
I (583) wifi:enable tsf
I (583) wifi station: wifi_init_sta finished.
I (2993) wifi station: retry to connect to the AP
I (2993) wifi station: connect to the AP fail
I (5403) wifi station: retry to connect to the AP
I (5403) wifi station: connect to the AP fail
I (7803) wifi station: retry to connect to the AP
I (7803) wifi station: connect to the AP fail
I (10223) wifi station: retry to connect to the AP
I (10223) wifi station: connect to the AP fail
I (10233) wifi:new:<1,0>, old:<1,0>, ap:<255,255>, sta:<1,0>, prof:1
I (10233) wifi:state: init -> auth (b0)
I (11233) wifi:state: auth -> init (200)
I (11233) wifi:new:<1,0>, old:<1,0>, ap:<255,255>, sta:<1,0>, prof:1
I (11243) wifi station: retry to connect to the AP
I (11243) wifi station: connect to the AP fail
I (13643) wifi station: retry to connect to the AP
I (13643) wifi station: connect to the AP fail
I (13713) wifi:new:<1,0>, old:<1,0>, ap:<255,255>, sta:<1,0>, prof:1
I (13713) wifi:state: init -> auth (b0)
I (14713) wifi:state: auth -> init (200)
I (14713) wifi:new:<1,0>, old:<1,0>, ap:<255,255>, sta:<1,0>, prof:1
I (14723) wifi station: retry to connect to the AP
I (14723) wifi station: connect to the AP fail
I (17133) wifi station: retry to connect to the AP
I (17133) wifi station: connect to the AP fail
I (17193) wifi:new:<1,0>, old:<1,0>, ap:<255,255>, sta:<1,0>, prof:1
I (17193) wifi:state: init -> auth (b0)
I (18193) wifi:state: auth -> init (200)
I (18203) wifi:new:<1,0>, old:<1,0>, ap:<255,255>, sta:<1,0>, prof:1
I (18203) wifi station: retry to connect to the AP
I (18203) wifi station: connect to the AP fail
I (20613) wifi station: retry to connect to the AP
I (20613) wifi station: connect to the AP fail
I (20683) wifi:new:<1,0>, old:<1,0>, ap:<255,255>, sta:<1,0>, prof:1
I (20683) wifi:state: init -> auth (b0)
I (21683) wifi:state: auth -> init (200)
I (21683) wifi:new:<1,0>, old:<1,0>, ap:<255,255>, sta:<1,0>, prof:1
I (21683) wifi station: connect to the AP fail
I (21683) wifi station: Failed to connect to SSID:123, password:12345678
I (21693) main_task: Returned from app_main()
Image

ChenWen
Posts: 16
Joined: Tue Jun 29, 2021 6:29 am

Re: ESP32S3官方例程 wifi->station 多块板测试连接不上WiFi

Postby ChenWen » Wed Jul 26, 2023 3:08 am

问题现象必现吗?可能 ESP32S3 是不是被 AP 拉黑名单,试下重启 AP 看是否能连上?
  1. I (21683) wifi:state: auth -> init (200)
这个 log 表示设备 ESP32S3 与 AP 连线过程认证 (auth) 超时,要确认问题最好能提供整个连线的抓包,通过抓包看下 AP 是否有回 auth response;

Daniel
Posts: 28
Joined: Tue Jan 09, 2018 12:55 pm

Re: ESP32S3官方例程 wifi->station 多块板测试连接不上WiFi

Postby Daniel » Fri Aug 11, 2023 1:11 am

问题找到了,是晶振的谐波影响到了wifi的信号。


无源晶振
ESP32-S3 的无源晶振部分电路如图 6 所示,其中外部匹配电容 C1、C4 具体值需要通过对系统测试后进行调
节确定。XTAL_P 时钟走线上请务必预留一个串联电阻(初始可使用 0 Ω),以减小晶振的驱动能力,减弱晶振
谐波对射频性能的影响。


这是硬件设计指南里的说的。我们按照说明,在晶振串了一个0 Ω电阻,结果wifi收干扰不可用,换成100Ω电阻就可以了。 :D

Who is online

Users browsing this forum: No registered users and 94 guests