-
Notifications
You must be signed in to change notification settings - Fork 669
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
esp-camera causes ESP32S3 WiFi hang in *some* AP (IDFGH-8977) #687
Comments
I further bisected the issue and found that it was the reset that caused the issue.
After commenting out those two lines, WiFi is no longer problematic but the camera is not probed by SCCB. |
I tried to execute those four lines but it did not affect WiFi. I found it only affected WiFi if this line is first executed, esp32-camera/target/esp32s3/ll_cam.c Line 330 in 402b811
|
I have just tried connecting to my Android Hotspot and it seems the connection is fine. Here is the log. So this is likely something wrong with the Windows Mobile Hotspot. However, without camera running WiFi works just fine. What else could be different here? Maybe the Windows Mobile Hotspot has lower tolerance of response time-out and the ESP runs slower when camera is used so WiFi did not catch up in time?
|
Disconnect reason 2 is I suggest you try running the camera code on Core 1 and see if that changes the situation :) |
@me-no-dev thanks for the suggestion. I actually changed WiFi task core affinity to core 1 once and it did not help. I will try to change the camera task later. But I guess the timeout limit posed by the windows hotspot is more tight than the normal router, causing the expiry failure only under this combination. |
@wuyuanyi135 can we have a sniffer capture during association with and without the camera code while connecting to the windows hotspot.We can compare the difference. |
@nishanth-radja Hello. Could you please provide the procedures to perform the capture? |
https://docs.espressif.com/projects/esp-idf/en/latest/esp32/api-guides/wireshark-user-guide.html |
@wuyuanyi135 Any update regarding comment #687 ? |
@wuyuanyi135 |
@AxelLin Thank you for continuing attention to this issue and sorry for the late response. Due to job reallocation I did not have the same setup to test this issue. I am pretty sure this issue could be tested using the widely available ESP-CAM module (despite the different mcu, esp32s3 vs esp32). If anyone could help validate this issue would be much appreciated. |
This issue appears to be stale. Please close it if its no longer valid. |
Answers checklist.
IDF version.
v5.1-dev-2355-gedd815af2e
Operating System used.
Windows
How did you build your project?
CLion IDE
If you are using Windows, please specify command line type.
PowerShell
Development Kit.
ESP32-S3-WROOM-1-N16R2
Power Supply used.
External 3.3V
What is the expected behavior?
The ESP32S3 (N16R2) allows WiFi and esp-camera module to run on any hotspot.
What is the actual behavior?
When
esp-camera
and WiFi are enabled simultaneously, the module cannot connect to the hotspot generated by Windows Mobile Hotspot but can connect to my home router.If I initialize esp-camera library after WiFi has been connected, the WiFi becomes nonresponsive, with kernel still running (I used a timer to print periodically). However, pinging, http access, etc. all stop working on the ESP32. Also, there is no more log output from wifi task even in verbose level.
Steps to reproduce.
(See the details below)
Debug Logs.
No response
More Information.
I am developing a product with ESP32S3 module (N16R2) that connects to a Windows host computer using Windows Mobile Hotspot feature. The ESP32S3 runs fine until I recently introduced the
esp-camera
library (version 2.0.3) into my project.When esp-camera library and WiFi are used together, the esp cannot connect to the WiFi spawned by Windows Mobile Hotspot, with flooding WIFI_EVENT_STA_DISCONNECTED and
reason=2
. It can still connect to my router normally.I bisected where the problem occurs, it turns out if I comment out the following lines in the
esp-camera
source code, both Windows Mobile Hotspot and home router can be connected successfully. However, I haven't test if the camera still works if those lines are removed. These lines involves some low level register operation that's why I believe this issue should be posted here.esp32-camera/target/esp32s3/ll_cam.c
Lines 238 to 243 in 402b811
I also attached the logging output from
I only see one difference between my home wifi and Windows Mobile Hotspot one: the home wifi has
40U
subchannel but the Hotspot hasBW20
.Please let me know if any more information is needed.
The text was updated successfully, but these errors were encountered: