Skip to content

How to handle host application crash on CDC-ACM endpoint? #1426

Answered by hathach
CraigHutchinson asked this question in Q&A
Discussion options

You must be logged in to vote

CDC does not have any keep alive message that I am aware of. Worse an terminal can be left opened without sending any message for hours, though host usually received and stored all data as soon as we send it. To detect app hanging, we probably need to have an timer here. Though to make sure it is actually app hanging and not “host is just busy with other task” we can make use of notification endpoint.

Notification endpoint is often used to inform host that there is new data (DSR #1417). Since notification endpoint is an interrupt one, and host guarantees (by USB spec) to check it out by defined interval 1-255 ms. If host does not, or does but not retrieve data anyway, it is probably the i…

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@CraigHutchinson
Comment options

Answer selected by CraigHutchinson
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants