使用ESP32 S3芯片设计产品后发现有时候WIFI连接苦难,有时候连接很顺利

amerychou
Posts: 1
Joined: Tue Jan 07, 2025 7:27 am

使用ESP32 S3芯片设计产品后发现有时候WIFI连接苦难,有时候连接很顺利

Postby amerychou » Tue Jan 07, 2025 9:21 am

使用ESP32 S3芯片设计产品后发现有时候WIFI连接苦难,有时候连接很顺利
现象描述:断电重启后某些时段断电重启测试10次有5次连接失败,打印日志:
I (782) esp_psram: SPI SRAM memory test OK
I (5744) wifi:state: run -> init (0x2c0)
I (5744) wifi:new:<1,0>, old:<1,0>, ap:<255,255>, sta:<1,0>, prof:1, snd_ch_cfg:0x0
I (5754) wifi-config: STA Disconnected, reason code=2
某些时段断电开关机150次,每次都能成,把WIFI设置为连接失败或断网后重新连接,尝试很多次后才成功连上,但是有时候一直连不上,连接多次成功后的打印日志:

I (2524) wifi:new:<1,0>, old:<1,0>, ap:<255,255>, sta:<1,0>, proI (10654) wifi-config: STA Disconnected, reason code=205
I (11744) wifi:new:<1,0>, old:<1,0>, ap:<255,255>, sta:<1,0>, prof:1, snd_ch_cfg:0x0
I (11744) wifi:state: init -> auth (0xb0)
I (11764) wifi:state: auth -> assoc (0x0)
I (11784) wifi:state: assoc -> run (0x10)
I (11834) wifi:connected with Hearit.AI, aid = 1, channel 1, BW20, bssid = ca:79:f8:00:65:7c
I (11834) wifi:security: WPA2-PSK, phy: bgn, rssi: -47
I (11834) wifi:pm start, type: 1

I (11834) wifi:dp: 1, bi: 102400, li: 3, scale listen interval from 307200 us to 307200 us
I (11834) wifi:set rx beacon pti, rx_bcn_pti: 0, bcn_timeout: 25000, mt_pti: 0, mt_time: 10000
I (11844) wifi:dp: 2, bi: 102400, li: 4, scale listen interval from 307200 us to 409600 us
I (11844) wifi:AP's beacon interval = 102400 us, DTIM period = 2
I (11894) wifi:<ba-add>idx:0 (ifx:0, ca:79:f8:00:65:7c), tid:7, ssn:0, winSize:64
I (13494) wifi:state: run -> init (0x22a0)
I (13494) wifi:pm stop, total sleep time: 620383 us / 1658943 us

I (13494) wifi:<ba-del>idx:0, tid:7
I (13494) wifi:new:<1,0>, old:<1,0>, ap:<255,255>, sta:<1,0>, prof:1, snd_ch_cfg:0x0
I (13504) wifi-config: STA Disconnected, reason code=34
I (14504) wifi:new:<1,0>, old:<1,0>, ap:<255,255>, sta:<1,0>, prof:1, snd_ch_cfg:0x0
I (14504) wifi:state: init -> auth (0xb0)
I (14514) wifi:state: auth -> assoc (0x0)
I (14524) wifi:state: assoc -> run (0x10)
I (14594) wifi:state: run -> init (0x7a0)
I (14594) wifi:new:<1,0>, old:<1,0>, ap:<255,255>, sta:<1,0>, prof:1, snd_ch_cfg:0x0
I (14594) wifi-config: STA Disconnected, reason code=7
I (18004) wifi-config: STA Disconnected, reason code=205
I (19014) wifi:new:<1,0>, old:<1,0>, ap:<255,255>, sta:<1,0>, prof:1, snd_ch_cfg:0x0
I (19014) wifi:state: init -> auth (0xb0)
I (19044) wifi:state: auth -> assoc (0x0)
I (19054) wifi:state: assoc -> run (0x10)
I (19114) wifi:state: run -> init (0x7a0)
I (19114) wifi:new:<1,0>, old:<1,0>, ap:<255,255>, sta:<1,0>, prof:1, snd_ch_cfg:0x0
I (19114) wifi-config: STA Disconnected, reason code=7
I (22524) wifi-config: STA Disconnected, reason code=201
I (23624) wifi:new:<1,0>, old:<1,0>, ap:<255,255>, sta:<1,0>, prof:1, snd_ch_cfg:0x0
I (23624) wifi:state: init -> auth (0xb0)
I (23644) wifi:state: auth -> assoc (0x0)
I (23684) wifi:state: assoc -> run (0x10)
I (23754) wifi:state: run -> init (0x7a0)
I (23754) wifi:new:<1,0>, old:<1,0>, ap:<255,255>, sta:<1,0>, prof:1, snd_ch_cfg:0x0
I (23754) wifi-config: STA Disconnected, reason code=7
I (27164) wifi-config: STA Disconnected, reason code=205
I (28224) wifi:new:<1,0>, old:<1,0>, ap:<255,255>, sta:<1,0>, prof:1, snd_ch_cfg:0x0
I (28224) wifi:state: init -> auth (0xb0)
I (28234) wifi:state: auth -> assoc (0x0)
I (28264) wifi:state: assoc -> run (0x10)
I (28344) wifi:state: run -> init (0x7a0)
I (28344) wifi:new:<1,0>, old:<1,0>, ap:<255,255>, sta:<1,0>, prof:1, snd_ch_cfg:0x0
I (28344) wifi-config: STA Disconnected, reason code=7
I (31754) wifi-config: STA Disconnected, reason code=205
E (31954) wifi-config: WIFI_MODE_STA can't connected. SSID:Hearit.AI password:66668888
I (33324) wifi-config: GPT_PROMPT:You are a lovely bear named Austin who can sing birthday song. You are developed by Hearit.ai. OPENAI_TTS_VOICE:echo

I (33324) wifi-config: GPT_WEBSITE:api.openai.com GPT_API_KEY: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 GPT_SESSION_COUNT:5
I (33324) main_task: Returned from app_main()
I (35164) wifi-config: STA Disconnected, reason code=201
I (36214) wifi:new:<1,0>, old:<1,0>, ap:<255,255>, sta:<1,0>, prof:1, snd_ch_cfg:0x0
I (36214) wifi:state: init -> auth (0xb0)
I (36234) wifi:state: auth -> assoc (0x0)
I (36244) wifi:state: assoc -> run (0x10)
I (36324) wifi:connected with Hearit.AI, aid = 1, channel 1, BW20, bssid = ca:79:f8:00:65:7c
I (36324) wifi:security: WPA2-PSK, phy: bgn, rssi: -40
I (36324) wifi:pm start, type: 1

I (36324) wifi:dp: 1, bi: 102400, li: 3, scale listen interval from 307200 us to 307200 us
I (36324) wifi:set rx beacon pti, rx_bcn_pti: 0, bcn_timeout: 25000, mt_pti: 0, mt_time: 10000
I (36324) wifi-config: STA WIFI_EVENT_STA_CONNECTED
I (36414) wifi:<ba-add>idx:0 (ifx:0, ca:79:f8:00:65:7c), tid:7, ssn:0, winSize:64
I (36414) wifi:dp: 2, bi: 102400, li: 4, scale listen interval from 307200 us to 409600 us
I (36414) wifi:AP's beacon interval = 102400 us, DTIM period = 2
I (36504) wifi:<ba-del>idx:0, tid:7
I (36514) wifi:<ba-add>idx:0 (ifx:0, ca:79:f8:00:65:7c), tid:7, ssn:1, winSize:64
I (37324) esp_netif_handlers: sta ip: 192.168.3.115, mask: 255.255.255.0, gw: 192.168.3.1
I (37324) wifi-config: IP_EVENT_STA_GOT_IP

以上问题复现概率大的都是使用了板载天线,当使用IPEX4座子插入外部FPC天线后概率会小很多,可能一百次出现1次,然后使用“ESP32-S3-Korvo-2”开发板对比测试100次,第83次出现1次
宗上现象描述帮忙分析根本原因

Who is online

Users browsing this forum: No registered users and 71 guests