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

CDC device line state notification #2395

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

gguichard
Copy link

Allow a CDC-ACM device to send a line state notification to the host (DCD/DSR/RING etc).

It has been tested using statserial command on Linux host side to verify UART-like line status.
It looks like that the notification endpoint size must be at least 10 bytes in order to hold the entire notification packet (which means this won't work for USB low speed devices).

@tlyu
Copy link
Contributor

tlyu commented Jan 6, 2024

I'm commenting as an observer who's delved into the relevant parts of the USB specs for a while.

endpoint size must be at least 10 bytes in order to hold the entire notification packet (which means this won't work for USB low speed devices).

I'm pretty sure that low-speed USB devices aren't allowed to have bulk endpoints, which rules out typical CDC ACM implementations, so this concern probably doesn't apply.

@gguichard
Copy link
Author

I'm pretty sure that low-speed USB devices aren't allowed to have bulk endpoints, which rules out typical CDC ACM implementations, so this concern probably doesn't apply.

Perfect! Thanks for the info. :)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants