ESP32-S2 supports USB Camera or not

Ritesh
Posts: 1383
Joined: Tue Sep 06, 2016 9:37 am
Location: India
Contact:

ESP32-S2 supports USB Camera or not

Postby Ritesh » Mon Mar 01, 2021 9:38 am

Hello Espressif Team,

We have one product requirements in which we want to USB Endoscope Type low dimension camera for one of our product.

So, I just want to know that ESP32-S2 chip/modules supports USB 1.1 Specifications based OTG support and fully provide supports for USB Endoscope Camera or any other USB Camera from hardware and software side?

Let me know if need anything else from my end.
Regards,
Ritesh Prajapati

chegewara
Posts: 2378
Joined: Wed Jun 14, 2017 9:00 pm

Re: ESP32-S2 supports USB Camera or not

Postby chegewara » Mon Mar 01, 2021 10:33 am

At this moment S2 does not have USB host/OTG API yet. There is no official timeline yet.
I cant answer if USB camera will be supported when API will be released.

Ritesh
Posts: 1383
Joined: Tue Sep 06, 2016 9:37 am
Location: India
Contact:

Re: ESP32-S2 supports USB Camera or not

Postby Ritesh » Mon Mar 01, 2021 12:17 pm

chegewara wrote:
Mon Mar 01, 2021 10:33 am
At this moment S2 does not have USB host/OTG API yet. There is no official timeline yet.
I cant answer if USB camera will be supported when API will be released.
Thanks for your quick answer and it is really appreciated.

Do you have any idea like apart from ESP32-S2, is there any other variant of ESP32 Chip or Module which has full support of USB host/OTG from hardware and software side?

If no any variant then I need to move to some other controller for time being till it is not fully supported for my prototype and product as well.
Regards,
Ritesh Prajapati

chegewara
Posts: 2378
Joined: Wed Jun 14, 2017 9:00 pm

Re: ESP32-S2 supports USB Camera or not

Postby chegewara » Mon Mar 01, 2021 4:10 pm

Currently only S2 has hardware support for USB and next will be S3, at least it is announced.
I would like to convince you to stay with esp32, but if you need it now then stm32 or rpi pico, maybe other chips with support here:
https://github.com/hathach/tinyusb

Of course there are other usb host stacks.

Ritesh
Posts: 1383
Joined: Tue Sep 06, 2016 9:37 am
Location: India
Contact:

Re: ESP32-S2 supports USB Camera or not

Postby Ritesh » Tue Mar 02, 2021 4:16 am

chegewara wrote:
Mon Mar 01, 2021 4:10 pm
Currently only S2 has hardware support for USB and next will be S3, at least it is announced.
I would like to convince you to stay with esp32, but if you need it now then stm32 or rpi pico, maybe other chips with support here:
https://github.com/hathach/tinyusb

Of course there are other usb host stacks.
Thank you very much for your quick response.

Sorry but Right now i need to move with some other MCU at-least for prototype perspective because I need to prepare and deliver it to client ASAP.

Once ESP32-S2 support USB Host fully from software side then i will move into ESP32-S2 as well.

Do you have any idea like which STM32 or RPI will be fulfilled as per my requirements?

FYI - I have provided few details with reference product image into viewtopic.php?f=12&t=19474 thread.

Let me know if need anything else from my end to understand my overall product requirements as well.
Regards,
Ritesh Prajapati

ESP_Sprite
Posts: 9769
Joined: Thu Nov 26, 2015 4:08 am

Re: ESP32-S2 supports USB Camera or not

Postby ESP_Sprite » Tue Mar 02, 2021 5:58 am

Also note that the S2 and S3 are low/full-speed, not high-speed USB; this means you can get a datarate of 12MBit/second at absolute max. You may want to find out if that is enough for your requirements (FPS, resolution, encoding etc) before deciding to wait for this.

Ritesh
Posts: 1383
Joined: Tue Sep 06, 2016 9:37 am
Location: India
Contact:

Re: ESP32-S2 supports USB Camera or not

Postby Ritesh » Tue Mar 02, 2021 4:35 pm

ESP_Sprite wrote:
Tue Mar 02, 2021 5:58 am
Also note that the S2 and S3 are low/full-speed, not high-speed USB; this means you can get a datarate of 12MByte/second at absolute max. You may want to find out if that is enough for your requirements (FPS, resolution, encoding etc) before deciding to wait for this.
Thanks. I will note for that as well.

Is it 12 or 1.2 MByte per second? Also we need to support max 720P resolution at max.
Regards,
Ritesh Prajapati

ESP_Sprite
Posts: 9769
Joined: Thu Nov 26, 2015 4:08 am

Re: ESP32-S2 supports USB Camera or not

Postby ESP_Sprite » Wed Mar 03, 2021 1:35 am

Whoops, fixed the notation, I meant 12MBit which would be 1.2MByte/sec-ish. I don't think there is much chance you can get 720P to run at any decent framerate, unless your USB camera happens to do great compression (to e.g. h.264/h.265) in-camera, and you don't need to decompress that in your ESP32. (For instance, for uncompressed YUV422 video, you would get (1280*720*1.5)/1200000=1.5FPS; you're lucky if your camera allows you to set that framerate at all.)

Ritesh
Posts: 1383
Joined: Tue Sep 06, 2016 9:37 am
Location: India
Contact:

Re: ESP32-S2 supports USB Camera or not

Postby Ritesh » Wed Mar 03, 2021 3:46 am

ESP_Sprite wrote:
Wed Mar 03, 2021 1:35 am
Whoops, fixed the notation, I meant 12MBit which would be 1.2MByte/sec-ish. I don't think there is much chance you can get 720P to run at any decent framerate, unless your USB camera happens to do great compression (to e.g. h.264/h.265) in-camera, and you don't need to decompress that in your ESP32. (For instance, for uncompressed YUV422 video, you would get (1280*720*1.5)/1200000=1.5FPS; you're lucky if your camera allows you to set that framerate at all.)
Thanks for providing quick response.

Yes. I understood your calculation for the same. Still I will check little bit into details with different camera and USB specification and will let you know if any query for the same.
Regards,
Ritesh Prajapati

chegewara
Posts: 2378
Joined: Wed Jun 14, 2017 9:00 pm

Re: ESP32-S2 supports USB Camera or not

Postby chegewara » Wed Mar 10, 2021 10:51 am

I didnt have chance to test it yet, but is looking interesting:
https://github.com/sdima1357/esp32_usb_soft_host

Who is online

Users browsing this forum: No registered users and 104 guests