CDC callbacks on disconnection/reconnection #3222
Unanswered
moritzstoetter
asked this question in
Q&A
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
We are running TinyUSB v0.18.0 on a STM32H7 in CDC device mode, and are experiencing difficulties around the detection of physical disconnection/reconnection.
What we observe:
tud_cdc_line_state_cbgets called with dtr and rts set to true.tud_cdc_line_state_cbgets called with dtr and rts set to false.tud_suspend_cbgets called (nottud_cdc_line_state_cbortud_unmount_cb).tud_mount_cbgets called (nottud_cdc_line_state_cbortud_suspend_cb).Our internal state machine relies on knowledge about the cdc port's state, and with this limitation we are having great difficulty to get things working smoothly.
Questions:
Beta Was this translation helpful? Give feedback.
All reactions