Page 1 of 1

ESP32-S2 USB CDC Dual USBSerial virtual com ports

Posted: Fri Dec 03, 2021 4:11 pm
by deltaford
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

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

Posted: Thu Jan 06, 2022 5:08 am
by tore-espressif
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

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

Posted: Wed Jan 19, 2022 10:07 pm
by deltaford
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?