ESP32-S2 USB CDC Dual USBSerial virtual com ports

deltaford
Posts: 4
Joined: Wed Nov 24, 2021 1:12 pm

ESP32-S2 USB CDC Dual USBSerial virtual com ports

Postby deltaford » Fri Dec 03, 2021 4:11 pm

Hi all,

I'm looking into enable two ore more USBSerial virtual com ports on ESP32-S2 usb interface.
This snippet in arduino-esp32/tools/sdk/esp32s2/include/arduino_tinyusb/tinyusb/src/class/cdc/cdc_device.h
seem to suggest it would be possible.

Code: Select all

 *  \defgroup   CDC_Serial_Device Device
 *  @{ */

//--------------------------------------------------------------------+
// Application API (Multiple Ports)
// CFG_TUD_CDC > 1
//--------------------
Anyone attempt this or know if it is even possible?

Thanks in advance

tore-espressif
Posts: 17
Joined: Thu Oct 07, 2021 8:11 am

Re: ESP32-S2 USB CDC Dual USBSerial virtual com ports

Postby tore-espressif » Thu Jan 06, 2022 5:08 am

Hi,

The USB serial device example was extended with second serial channel in this commit https://github.com/espressif/esp-idf/co ... df64117a08

Our USB peripheral implementation has only 6 hardware endpoints and one CDC channel needs 3. That leaves us with max 2 serial channels.

I'll be happy to hear from you

deltaford
Posts: 4
Joined: Wed Nov 24, 2021 1:12 pm

Re: ESP32-S2 USB CDC Dual USBSerial virtual com ports

Postby deltaford » Wed Jan 19, 2022 10:07 pm

Thanks for the update, that is good news.
Unfortunately my application also uses USB HID so with only 6 hardware endpoints I assume there will not be enough for 2 CDC channels + HID?

Who is online

Users browsing this forum: No registered users and 61 guests