ESP32S3R8 WIFI问题

15002426658
Posts: 9
Joined: Tue Sep 27, 2022 6:50 am

ESP32S3R8 WIFI问题

Postby 15002426658 » Sun Oct 09, 2022 7:14 am

ESP32S3R8芯片+GD25Q32CSIG(4M flash) wifi天线用IPEX外置天线!用例程的scan可以扫描到附近的WIFI。用例程softap搜不到创建的wifi,没有打印错误信息。用例程station也连接不上路由器,初始化都没有错误,但是就是连不上。
station 打印信息如下

Executing action: monitor
Running idf_monitor in directory d:\esp-idf\espressif\frameworks\esp-idf-v4.4\workspace\station
Executing "D:\esp-idf\Espressif\python_env\idf4.4_py3.8_env\Scripts\python.exe D:/esp-idf/Espressif/frameworks/esp-idf-v4.4/tools/idf_monitor.py -p \\.\COM17 -b 115200 --toolchain-prefix xtensa-esp32s3-elf- --target esp32s3 --print_filter d:\esp-idf\espressif\frameworks\esp-idf-v4.4\workspace\station\build\station.elf -m 'D:\esp-idf\Espressif\python_env\idf4.4_py3.8_env\Scripts\python.exe' 'D:\esp-idf\Espressif\frameworks\esp-idf-v4.4\tools\idf.py'"...
?[0;33m--- idf_monitor on \\.\COM17 115200 ---?[0m
--- Quit: Ctrl+] | Menu: Ctrl+T | Help: Ctrl+T followed by Ctrl+H ---
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:0x3fcd0108,len:0x1658
load:0x403b6000,len:0xb7c
load:0x403ba000,len:0x2f58
entry 0x403b6248
I (24) boot: ESP-IDF v4.4-dirty 2nd stage bootloader
I (25) boot: compile time 09:19:38
I (25) boot: chip revision: 0
I (27) boot.esp32s3: Boot SPI Speed : 80MHz
I (31) boot.esp32s3: SPI Mode : DIO
I (36) boot.esp32s3: SPI Flash Size : 4MB
I (41) boot: Enabling RNG early entropy source...
I (46) boot: Partition Table:
I (50) boot: ## Label Usage Type ST Offset Length
I (57) boot: 0 nvs WiFi data 01 02 00009000 00006000
I (65) boot: 1 phy_init RF data 01 01 0000f000 00001000
I (72) boot: 2 factory factory app 00 00 00010000 00100000
I (80) boot: End of partition table
I (84) esp_image: segment 0: paddr=00010020 vaddr=3c070020 size=1342ch ( 78892) map
I (106) esp_image: segment 1: paddr=00023454 vaddr=3fc951d0 size=04434h ( 17460) load
I (110) esp_image: segment 2: paddr=00027890 vaddr=40374000 size=08788h ( 34696) load
I (120) esp_image: segment 3: paddr=00030020 vaddr=42000020 size=68cf8h (429304) map
I (198) esp_image: segment 4: paddr=00098d20 vaddr=4037c788 size=08a48h ( 35400) load
I (206) esp_image: segment 5: paddr=000a1770 vaddr=50000000 size=00010h ( 16) load
I (213) boot: Loaded app from partition at offset 0x10000
I (213) boot: Disabling RNG early entropy source...
I (226) opi psram: vendor id : 0x0d (AP)
I (226) opi psram: dev id : 0x02 (generation 3)
I (227) opi psram: density : 0x03 (64 Mbit)
I (230) opi psram: good-die : 0x01 (Pass)
I (235) opi psram: Latency : 0x01 (Fixed)
I (240) opi psram: VCC : 0x01 (3V)
I (244) opi psram: SRF : 0x01 (Fast Refresh)
I (250) opi psram: BurstType : 0x01 (Hybrid Wrap)
I (255) opi psram: BurstLen : 0x01 (32 Byte)
I (260) opi psram: Readlatency : 0x02 (10 cycles@Fixed)
I (266) opi psram: DriveStrength: 0x00 (1/1)
W (271) PSRAM: DO NOT USE FOR MASS PRODUCTION! Timing parameters will be updated in future IDF version.
I (282) spiram: Found 64MBit SPI RAM device
I (286) spiram: SPI RAM mode: sram 80m
I (291) spiram: PSRAM initialized, cache is in normal (1-core) mode.
I (298) cpu_start: Pro cpu up.
I (301) cpu_start: Starting app cpu, entry point is 0x403752fc
0x403752fc: call_start_cpu1 at D:/esp-idf/Espressif/frameworks/esp-idf-v4.4/components/esp_system/port/cpu_start.c:156

I (0) cpu_start: App cpu up.
I (728) spiram: SPI SRAM memory test OK
I (736) cpu_start: Pro cpu start user code
I (736) cpu_start: cpu freq: 160000000
I (736) cpu_start: Application information:
I (739) cpu_start: Project name: station
I (744) cpu_start: App version: v4.4-dirty
I (749) cpu_start: Compile time: Oct 9 2022 09:17:54
I (755) cpu_start: ELF file SHA256: 3c268daeb45334e3...
I (761) cpu_start: ESP-IDF: v4.4-dirty
I (766) heap_init: Initializing. RAM available for dynamic allocation:
I (774) heap_init: At 3FC9D098 len 00042F68 (267 KiB): D/IRAM
I (780) heap_init: At 3FCE0000 len 0000EE34 (59 KiB): STACK/DRAM
I (787) heap_init: At 3FCF0000 len 00008000 (32 KiB): DRAM
I (793) heap_init: At 600FE000 len 00002000 (8 KiB): RTCRAM
I (799) spiram: Adding pool of 8192K of external SPI memory to heap allocator
I (808) spi_flash: detected chip: gd
I (811) spi_flash: flash io: dio
I (816) sleep: Configure to isolate all GPIO pins in sleep state
I (822) sleep: Enable automatic switching of GPIO sleep configuration
I (829) cpu_start: Starting scheduler on PRO CPU.
I (0) cpu_start: Starting scheduler on APP CPU.
I (840) spiram: Reserving pool of 32K of internal memory for DMA/internal allocations
I (880) wifi station: ESP_WIFI_MODE_STA
Hello world3
I (880) pp: pp rom version: e7ae62f
I (880) net80211: net80211 rom version: e7ae62f
I (900) wifi:wifi driver task: 3fca24b4, prio:23, stack:6656, core=0
I (900) system_api: Base MAC address is not set
I (900) system_api: read default base MAC address from EFUSE
I (920) wifi:wifi firmware version: 7679c42
I (920) wifi:wifi certification version: v7.0
I (920) wifi:config NVS flash: enabled
I (920) wifi:config nano formating: disabled
I (920) wifi:Init data frame dynamic rx buffer num: 32
I (930) wifi:Init management frame dynamic rx buffer num: 32
I (930) wifi:Init management short buffer num: 32
I (940) wifi:Init static tx buffer num: 16
I (940) wifi:Init tx cache buffer num: 32
I (940) wifi:Init static tx FG buffer num: 2
I (950) wifi:Init static rx buffer size: 1600
I (950) wifi:Init static rx buffer num: 10
I (960) wifi:Init dynamic rx buffer num: 32
I (960) wifi_init: rx ba win: 6
I (960) wifi_init: tcpip mbox: 32
I (970) wifi_init: udp mbox: 6
I (970) wifi_init: tcp mbox: 6
I (980) wifi_init: tcp tx win: 5744
I (980) wifi_init: tcp rx win: 5744
I (980) wifi_init: tcp mss: 1440
I (990) wifi_init: WiFi IRAM OP enabled
I (990) wifi_init: WiFi RX IRAM OP enabled
I (1000) phy_init: phy_version 302,3ddfab3,Dec 3 2021,14:39:12
I (1050) wifi:mode : sta (68:b6:b3:24:75:78)
I (1050) wifi:enable tsf
I (1050) wifi station: wifi_init_sta finished.
I (1140) wifi:new:<1,1>, old:<1,0>, ap:<255,255>, sta:<1,1>, prof:1
I (1140) wifi:state: init -> auth (b0)
I (2140) wifi:state: auth -> init (200)
I (2140) wifi:new:<1,0>, old:<1,1>, ap:<255,255>, sta:<1,1>, prof:1
I (2140) wifi station: retry to connect to the AP
I (2140) wifi station: connect to the AP fail
I (2780) wifi:new:<6,0>, old:<1,0>, ap:<255,255>, sta:<6,0>, prof:1
I (2780) wifi:state: init -> auth (b0)
I (3780) wifi:state: auth -> init (200)
I (3790) wifi:new:<6,0>, old:<6,0>, ap:<255,255>, sta:<6,0>, prof:1
I (3790) wifi station: retry to connect to the AP
I (3790) wifi station: connect to the AP fail
I (5830) wifi station: retry to connect to the AP
I (5830) wifi station: connect to the AP fail
I (5850) wifi:new:<6,0>, old:<6,0>, ap:<255,255>, sta:<6,0>, prof:1
I (5850) wifi:state: init -> auth (b0)
I (6850) wifi:state: auth -> init (200)
I (6850) wifi:new:<6,0>, old:<6,0>, ap:<255,255>, sta:<6,0>, prof:1
I (6850) wifi station: retry to connect to the AP
I (6860) wifi station: connect to the AP fail
I (7070) wifi:new:<1,1>, old:<6,0>, ap:<255,255>, sta:<1,1>, prof:1
I (7070) wifi:state: init -> auth (b0)
I (8070) wifi:state: auth -> init (200)
I (8070) wifi:new:<1,0>, old:<1,1>, ap:<255,255>, sta:<1,1>, prof:1
I (8080) wifi station: retry to connect to the AP
I (8080) wifi station: connect to the AP fail
I (10120) wifi station: connect to the AP fail
I (10120) wifi station: Failed to connect to SSID:tianxing, password:23456789

ESP_LJY
Posts: 58
Joined: Mon Sep 27, 2021 3:06 am

Re: ESP32S3R8 WIFI问题

Postby ESP_LJY » Mon Oct 10, 2022 6:38 am

更换芯片是否能复现一样的问题?
scan 扫描周围信号的 rssi 是否都很小?推测可能是天线问题,接收较差或者是数据没有真正发送出去,可以参考 乐鑫 Wireshark 使用指南 抓包确认一下。

15002426658
Posts: 9
Joined: Tue Sep 27, 2022 6:50 am

Re: ESP32S3R8 WIFI问题

Postby 15002426658 » Tue Oct 11, 2022 12:10 am

你好,下面是打印信息,我看这信号强度都挺好的吧?是不是证明天线没有问题呢?我用的外置天线!
Executing action: monitor
Running idf_monitor in directory d:\esp-idf\espressif\frameworks\esp-idf-v4.4\workspace\scan
Executing "D:\esp-idf\Espressif\python_env\idf4.4_py3.8_env\Scripts\python.exe D:/esp-idf/Espressif/frameworks/esp-idf-v4.4/tools/idf_monitor.py -p \\.\COM17 -b 115200 --toolchain-prefix xtensa-esp32s3-elf- --target esp32s3 --print_filter d:\esp-idf\espressif\frameworks\esp-idf-v4.4\workspace\scan\build\scan.elf -m 'D:\esp-idf\Espressif\python_env\idf4.4_py3.8_env\Scripts\python.exe' 'D:\esp-idf\Espressif\frameworks\esp-idf-v4.4\tools\idf.py'"...
?[0;33m--- idf_monitor on \\.\COM17 115200 ---?[0m
--- Quit: Ctrl+] | Menu: Ctrl+T | Help: Ctrl+T followed by Ctrl+H ---
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:0x3fcd0108,len:0x1658
load:0x403b6000,len:0xb7c
load:0x403ba000,len:0x2f58
entry 0x403b6248
I (24) boot: ESP-IDF v4.4-dirty 2nd stage bootloader
I (25) boot: compile time 08:06:21
I (25) boot: chip revision: 0
I (27) boot.esp32s3: Boot SPI Speed : 80MHz
I (31) boot.esp32s3: SPI Mode : DIO
I (36) boot.esp32s3: SPI Flash Size : 2MB
I (41) boot: Enabling RNG early entropy source...
I (46) boot: Partition Table:
I (50) boot: ## Label Usage Type ST Offset Length
I (57) boot: 0 nvs WiFi data 01 02 00009000 00006000
I (65) boot: 1 phy_init RF data 01 01 0000f000 00001000
I (72) boot: 2 factory factory app 00 00 00010000 00100000
I (80) boot: End of partition table
I (84) esp_image: segment 0: paddr=00010020 vaddr=3c070020 size=13434h ( 78900) map
I (106) esp_image: segment 1: paddr=0002345c vaddr=3fc94200 size=04088h ( 16520) load
I (110) esp_image: segment 2: paddr=000274ec vaddr=40374000 size=08b2ch ( 35628) load
I (120) esp_image: segment 3: paddr=00030020 vaddr=42000020 size=68a44h (428612) map
I (197) esp_image: segment 4: paddr=00098a6c vaddr=4037cb2c size=076c8h ( 30408) load
I (204) esp_image: segment 5: paddr=000a013c vaddr=50000000 size=00010h ( 16) load
I (211) boot: Loaded app from partition at offset 0x10000
I (211) boot: Disabling RNG early entropy source...
I (226) cpu_start: Pro cpu up.
I (226) cpu_start: Starting app cpu, entry point is 0x403751b4
0x403751b4: call_start_cpu1 at D:/esp-idf/Espressif/frameworks/esp-idf-v4.4/components/esp_system/port/cpu_start.c:156

I (0) cpu_start: App cpu up.
I (240) cpu_start: Pro cpu start user code
I (240) cpu_start: cpu freq: 160000000
I (240) cpu_start: Application information:
I (243) cpu_start: Project name: scan
I (248) cpu_start: App version: v4.4-dirty
I (253) cpu_start: Compile time: Oct 11 2022 08:05:40
I (259) cpu_start: ELF file SHA256: 29aa74b027a8a64b...
I (265) cpu_start: ESP-IDF: v4.4-dirty
I (270) heap_init: Initializing. RAM available for dynamic allocation:
I (277) heap_init: At 3FC9BD00 len 00044300 (272 KiB): D/IRAM
I (284) heap_init: At 3FCE0000 len 0000EE34 (59 KiB): STACK/DRAM
I (290) heap_init: At 3FCF0000 len 00008000 (32 KiB): DRAM
I (297) heap_init: At 600FE000 len 00002000 (8 KiB): RTCRAM
I (303) spi_flash: detected chip: gd
I (307) spi_flash: flash io: dio
W (311) spi_flash: Detected size(4096k) larger than the size in the binary image header(2048k). Using the size in the binary image header.
I (325) sleep: Configure to isolate all GPIO pins in sleep state
I (331) sleep: Enable automatic switching of GPIO sleep configuration
I (339) cpu_start: Starting scheduler on PRO CPU.
I (0) cpu_start: Starting scheduler on APP CPU.
Hello world3
I (403) pp: pp rom version: e7ae62f
I (403) net80211: net80211 rom version: e7ae62f
I (413) wifi:wifi driver task: 3fce5b20, prio:23, stack:6656, core=0
I (413) system_api: Base MAC address is not set
I (413) system_api: read default base MAC address from EFUSE
I (433) wifi:wifi firmware version: 7679c42
I (433) wifi:wifi certification version: v7.0
I (433) wifi:config NVS flash: enabled
I (433) wifi:config nano formating: disabled
I (443) wifi:Init data frame dynamic rx buffer num: 32
I (443) wifi:Init management frame dynamic rx buffer num: 32
I (453) wifi:Init management short buffer num: 32
I (453) wifi:Init dynamic tx buffer num: 32
I (463) wifi:Init static tx FG buffer num: 2
I (463) wifi:Init static rx buffer size: 1600
I (463) wifi:Init static rx buffer num: 10
I (473) wifi:Init dynamic rx buffer num: 32
I (473) wifi_init: rx ba win: 6
I (483) wifi_init: tcpip mbox: 32
I (483) wifi_init: udp mbox: 6
I (483) wifi_init: tcp mbox: 6
I (493) wifi_init: tcp tx win: 5744
I (493) wifi_init: tcp rx win: 5744
I (503) wifi_init: tcp mss: 1440
I (503) wifi_init: WiFi IRAM OP enabled
I (503) wifi_init: WiFi RX IRAM OP enabled
I (513) phy_init: phy_version 302,3ddfab3,Dec 3 2021,14:39:12
I (563) wifi:mode : sta (68:b6:b3:24:75:78)
I (563) wifi:enable tsf
I (2663) scan: Total APs scanned = 6
I (2663) scan: SSID tianxing
I (2663) scan: RSSI -32
I (2663) scan: Authmode WIFI_AUTH_WPA_WPA2_PSK
I (2663) scan: Pairwise Cipher WIFI_CIPHER_TYPE_CCMP
I (2673) scan: Group Cipher WIFI_CIPHER_TYPE_CCMP
I (2673) scan: Channel 11

I (2683) scan: SSID TP317
I (2683) scan: RSSI -65
I (2683) scan: Authmode WIFI_AUTH_WPA_WPA2_PSK
I (2693) scan: Pairwise Cipher WIFI_CIPHER_TYPE_CCMP
I (2693) scan: Group Cipher WIFI_CIPHER_TYPE_CCMP
I (2703) scan: Channel 6

I (2703) scan: SSID tianxin
I (2713) scan: RSSI -79
I (2713) scan: Authmode WIFI_AUTH_WPA_WPA2_PSK
I (2713) scan: Pairwise Cipher WIFI_CIPHER_TYPE_CCMP
I (2723) scan: Group Cipher WIFI_CIPHER_TYPE_CCMP
I (2733) scan: Channel 1

I (2733) scan: SSID tianxing
I (2733) scan: RSSI -79
I (2743) scan: Authmode WIFI_AUTH_WPA_WPA2_PSK
I (2743) scan: Pairwise Cipher WIFI_CIPHER_TYPE_TKIP_CCMP
I (2753) scan: Group Cipher WIFI_CIPHER_TYPE_TKIP
I (2753) scan: Channel 6

I (2763) scan: SSID zjly
I (2763) scan: RSSI -85
I (2763) scan: Authmode WIFI_AUTH_WPA_WPA2_PSK
I (2773) scan: Pairwise Cipher WIFI_CIPHER_TYPE_CCMP
I (2773) scan: Group Cipher WIFI_CIPHER_TYPE_CCMP
I (2783) scan: Channel 1

I (2783) scan: SSID phb-3000
I (2793) scan: RSSI -86
I (2793) scan: Authmode WIFI_AUTH_WPA_WPA2_PSK
I (2803) scan: Pairwise Cipher WIFI_CIPHER_TYPE_CCMP
I (2803) scan: Group Cipher WIFI_CIPHER_TYPE_CCMP
I (2813) scan: Channel 6

ESP_LJY
Posts: 58
Joined: Mon Sep 27, 2021 3:06 am

Re: ESP32S3R8 WIFI问题

Postby ESP_LJY » Wed Oct 12, 2022 7:04 am

扫描出来前两个 AP 信号好一些,其他低于 -70 就是信号比较差了。
可以试一下,设置 station config 中 channel = 11, 连接 11 信道的这个信号好一些的路由器试试。

15002426658
Posts: 9
Joined: Tue Sep 27, 2022 6:50 am

Re: ESP32S3R8 WIFI问题

Postby 15002426658 » Wed Oct 12, 2022 7:53 am

我就是一直连接这个 这个路由和我的设备天线距离还不到一米 连接不上!

ESP_LJY
Posts: 58
Joined: Mon Sep 27, 2021 3:06 am

Re: ESP32S3R8 WIFI问题

Postby ESP_LJY » Thu Oct 13, 2022 6:34 am

通过扫描看到 SSID:tianxing 的路由器有三个,11 信道的这个路由信号最好, rssi -32dB, 但是上面给出的连线 log 显示先是连接信道 1 的路由,然后连接信道 6 的路由,都连接失败,没有看到连接 11 信道的这个路由。
如果还是连接不上,需要提供抓包来继续分析。

15002426658
Posts: 9
Joined: Tue Sep 27, 2022 6:50 am

Re: ESP32S3R8 WIFI问题

Postby 15002426658 » Fri Oct 21, 2022 8:24 am

针对没有信号的问题,我用示波器看了一下 我的板子晶振两个引脚波形,好像没有拉倒GND,开发板上的基本接近于GND,0V.请问是什么原因?另外我焊接12p的电容,P和N都有波形,焊接22P电容,P有波形,n没有波形。是什么原因?
Attachments
微信图片_20221021161742_WO.jpg
我的板子引脚波形
微信图片_20221021161742_WO.jpg (143.18 KiB) Viewed 3612 times
微信图片_20221021161735_KAI.jpg
开发板晶振引脚波形
微信图片_20221021161735_KAI.jpg (155.91 KiB) Viewed 3612 times

X二X二X二X
Posts: 19
Joined: Fri Feb 11, 2022 8:16 am

Re: ESP32S3R8 WIFI问题

Postby X二X二X二X » Sun Mar 19, 2023 4:27 pm

解决了?和你用的芯片一样,
(322223) wifi:new:<11,2>, old:<11,0>, ap:<255,255>, sta:<11,2>, prof:1
I (322224) wifi:state: init -> auth (b0)
I (323225) wifi:state: auth -> init (200)
I (323225) wifi:new:<11,0>, old:<11,2>, ap:<255,255>, sta:<11,2>, prof:1
I (323726) FOG: wifi disconnect reason:2
I (323726) FOG: wifi AP BSSID:e4:d3:73:4:71
I (326629) FOG: wifi disconnect reason:205
I (326629) FOG: wifi AP BSSID:0:0:0:0:0
循环报错

Who is online

Users browsing this forum: No registered users and 42 guests