[ESP32S3: ESP-IDF 5.2.2 ] WiFi and CSI camera captureing problem

chjchoi
Posts: 3
Joined: Tue Dec 05, 2023 8:20 am

[ESP32S3: ESP-IDF 5.2.2 ] WiFi and CSI camera captureing problem

Postby chjchoi » Tue Jun 11, 2024 1:23 am

Image
I'm on developing a system as below

Environment: ESP32S3, ESP-IDF 5.2.2 and ESP-ADF Master, Visual studio Code

My system gets images from

TOF camera MIPI Images => a MIPI CSI to Parallel output chip => ESP32S3
First I used camera_fb_t *pic2 = esp_camera_fb_get(); the function of esp32-camera-master/driver/esp_camera.c
to capture 30fps TOF(Time-of-flight) images .. every captured image was OK.
but when I use Wi-Fi drivers of ESP_IDF 5.2.2 /components/espressif_protocol_examples_common/connect.c
ESP_ERROR_CHECK(nvs_flash_init());
ESP_ERROR_CHECK(esp_netif_init());
ESP_ERROR_CHECK(esp_event_loop_create_default());
ESP_ERROR_CHECK(example_connect());

The frames captured by the camera_fb_get() function were partially broken ( data broken to some lines).

I’m not sure if the bits are shifted or if the values are interleaved.

It is very clear that the WiFi driver is causing the problem because the difference between capturing with the WiFi driver disabled and enabled is so starkly reproduced.


Are there any known conflicts or issues reported between the WiFi driver in ESP-IDF and the camera driver in ESP-ADF? Aren’t they commonly used together?

Thank you.
Attachments
20240611_100517.png
20240611_100517.png (37.7 KiB) Viewed 524 times

Who is online

Users browsing this forum: No registered users and 87 guests