Skip to content

Provide an optional second USB CDC serial channel #3853

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

Closed
dhalbert opened this issue Dec 19, 2020 · 6 comments
Closed

Provide an optional second USB CDC serial channel #3853

dhalbert opened this issue Dec 19, 2020 · 6 comments
Labels
Milestone

Comments

@dhalbert
Copy link
Collaborator

Several other issues (#231, #3849, for example) want to communicate serially with a host computer without the REPL interfering. We have discussed providing a second USB CDC serial device. This probably needs dynamic USB descriptors (#1015), because of the shortage of endpoints, and the confusion that an always-present second CDC might present.

@emard
Copy link

emard commented Dec 19, 2020

I'd suggest to test-implement 2nd CDC channel with static descriptor,
observe problems what happens with host os and fix problems then.

I can test and what happens with dual CDC on linux.

@tannewt
Copy link
Member

tannewt commented Dec 22, 2020

TinyUSB has a dual CDC example already here: https://github.com/hathach/tinyusb/tree/master/examples/device/cdc_dual_ports

@ladyada
Copy link
Member

ladyada commented Dec 22, 2020

during discussion today i asked if we could implement secondary CDC UART on one or two platforms that have the spare endpoints now, rather than blocking on a dynamic descriptor implementation

@tannewt
Copy link
Member

tannewt commented Dec 22, 2020

during discussion today i asked if we could implement secondary CDC UART on one or two platforms that have the spare endpoints now, rather than blocking on a dynamic descriptor implementation

We certainly could. I think that'd get us most of the way to supporting dynamic descriptors. We have most of the prerequisites in place already.

@kevinjwalters
Copy link

For reference, this may well be of interest for this user and anyone who finds this question: How to do non blocking usb serial input in circuit python?.

@ladyada
Copy link
Member

ladyada commented Feb 20, 2021

added

@ladyada ladyada closed this as completed Feb 20, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

5 participants