AnsweredAssumed Answered

USB CDC state detection

Question asked by ml.michal on Oct 4, 2013
Latest reply on Mar 13, 2015 by paus.anton.001
Hi All,

i'm using STM32F407 in USB CDC mode,
i'm having issue when i'm sending bytes from STM to PC,
client application on PC is minicom,
issue is when i close minicom and STM runs into "frozen" state until i open minicom again, and after opening minicom everything continues in normal running state,

is there a way how to detect that client application is closed ? so i will stop sending bytes to PC,
i found that STM got Ctrl call with Cmd 0x22 when i close minicom and same code 0x22 when i open minicom :-(

Thanks for all replies,
Kind regards,

Outcomes