-
Notifications
You must be signed in to change notification settings - Fork 7.4k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
esp32s3 join AP failure if the AP channel is 1 (IDFGH-13063) #14008
Comments
I can also observe the esp32s3 abnormal if I change AP from "20/40MHz" to "20MHz" and then switch back to "20/40MHz". below shows the "Disconnect reason: 34" log
|
I can reproduce only when the AP's RSSI is -5X ~ -7X. |
Hi @AxelLin
This means AP can not receive S3 reply 802.11 acks, also from below comments:
seems this issue related with S3 tx power is abnormal. Could you please upload the sdkconfig?
Or:
Thanks. |
Hi @MaxwellAlan I have much less chance to see "Disconnect reason: 34" after setting CONFIG_ESP_PHY_CALIBRATION_AND_DATA_STORAGE=n, However, it may take quite long time to upload a 40KB file (sometimes it took 20 ~ 50 sec), the AP RSSI is -67. But the ESP32 test is stable and just needs less than 5 sec when test at the same place. Below is the long when I got disconnect reason 34, (just once).
|
Hi @AxelLin
seems PHY recalibration can make TX power to normal, but there still have some issues, maybe related with Bandwidth, did you test with AP bandwidth HT20-only and HT40-only to check whether HT40 issue. |
We have observed several wifi issue with S3, but not every device is debug build. Also it looks like using esp_camera has impact on wifi transfer. |
BTW, is there any API I can use to check if TX power is good or not? |
I notice ESP32S3 may switch channel multiple times when join an AP.
Below is ESP32 log for comparison:
|
I also observed below symptom when test with freenove s3 dev board:
ping the device: |
@MaxwellAlan |
hi @AxelLin |
@hansw123 The AP mac: ac:15:a2:4e:6b:47 |
@AxelLin |
@hansw123 According to this comment https://www.esp32.com/viewtopic.php?f=2&t=40111&sid=283a77286dd295dcfdd896e2c0d6e3f2#p133443 , the impact of usb is very limited. |
@AxelLin |
As I said in prvious comment, your colleague says the impact of USB is limited. I (2345) net_utils: Joining AP: IGS-MESH I (5247) wifi:dp: 1, bi: 102400, li: 3, scale listen interval from 307200 us to 307200 us I (16043) wifi:idx:1, tid:0 Could you help to check if this is related to esp_camera usage? (This happens after lcd_camera_controller is enabled) |
Attached 2 wireshark log that uploading data to http server: 1 ok case, 1 fail case. |
@AxelLin |
@AxelLin |
If the cam_task task priority is a concern, you should talk to the esp32-cam maintainer @me-no-dev BTW, I tried lower cam_task priority by modifying esp32-cam code, which seems not related to this issue. |
@AxelLin |
The interference between CPU, camera and antenna seems to be a common issue on esp32/esp32s3 as it has been reported by several users. see It would be helpful if espressif can provide some s/w and h/w design guideline |
@AxelLin @MaxwellAlan @hansw123 @methodmissing
In addition to these, I tried to run the station example. Except that Bluetooth and the LVGL&RGB screen are completely disabled, other conditions are the same, and the example can successfully connect to the AP. I hope the above information can help you locate the problem. |
I tried to reorder of WiFi configuration calls, and it worked. The following is the current call order:
|
@Zmmfly |
I have the same problem in IDFv5.1 with ESP32S3. esp32s3 takes time to connect to the internet while esp32 doesn't have this issue |
@Nezaemmy |
Answers checklist.
IDF version.
v5.2.2-163-gf81b598d10
Espressif SoC revision.
esp32s3
Operating System used.
Linux
How did you build your project?
Command line with idf.py
If you are using Windows, please specify command line type.
None
Development Kit.
ESP32S3-WROOM-1
Power Supply used.
USB
What is the expected behavior?
Join AP should work.
What is the actual behavior?
Test with tp-link AX1800 AP, security: WPS2-PSK[AES].
When the AP 2.4G setting is "20/40MHz" with channel "auto", it was working fine.
However, after I switch channel "auto" to channel 1, the esp32s3 behavior abnormal.
ps. I also test esp32 and esp32 does not has such issue.
Below show the log to join AP , it keep retry if got disconnect, but always failure.
Steps to reproduce.
Just make device join the AP.
Debug Logs.
More Information.
Seems keep receiving Disconnect reason: 34
The text was updated successfully, but these errors were encountered: