Skip to content
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

Create several Virtual Com ports (IDFGH-8838) #10266

Closed
beckmx opened this issue Nov 28, 2022 · 3 comments
Closed

Create several Virtual Com ports (IDFGH-8838) #10266

beckmx opened this issue Nov 28, 2022 · 3 comments
Labels
Resolution: Done Issue is done internally Status: Done Issue is done internally Type: Feature Request Feature request for IDF

Comments

@beckmx
Copy link

beckmx commented Nov 28, 2022

Is your feature request related to a problem?

Sometimes having to attach several devices to USB takes a lot of space for settting up new serial ports, being able to create virtual com ports inside the hardware could be a great idea

Describe the solution you'd like.

When connecting an esp32 usb we could be able to setup new ports or a number of serial ports that we could handle inside the code

Describe alternatives you've considered.

creating several pcbs to individual setup serial ports in the computer host

Additional context.

No response

@beckmx beckmx added the Type: Feature Request Feature request for IDF label Nov 28, 2022
@espressif-bot espressif-bot added the Status: Opened Issue is new label Nov 28, 2022
@github-actions github-actions bot changed the title Create several Virtual Com ports Create several Virtual Com ports (IDFGH-8838) Nov 28, 2022
@igrr
Copy link
Member

igrr commented Jan 16, 2023

@beckmx to clarify your request, is your request related to ESP32-S2 and ESP32-S3?

Other ESP32 series chips don't have a programmable USB peripheral which could be used to implement multiple virtual serial ports.

If yes, then this example should allow you to create two CDC ports: https://github.com/espressif/esp-idf/tree/master/examples/peripherals/usb/device/tusb_serial_device if you set CONFIG_TINYUSB_CDC_COUNT=2.

Increasing the number of CDC ports might not be possible beyond that, though, since the chip only supports a limited number of USB endpoints (#8011 (comment)).

@beckmx
Copy link
Author

beckmx commented Jan 16, 2023

Hello @igrr the device I am using is s3, is this the max limit for cdc devices?

@beckmx
Copy link
Author

beckmx commented Jan 17, 2023

Nvm I just noticed you answered everything

@beckmx beckmx closed this as completed Jan 17, 2023
@espressif-bot espressif-bot added Resolution: Done Issue is done internally Status: Done Issue is done internally and removed Status: Opened Issue is new labels Jan 17, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Resolution: Done Issue is done internally Status: Done Issue is done internally Type: Feature Request Feature request for IDF
Projects
None yet
Development

No branches or pull requests

3 participants