Hi, the demo is very simple.
In the Cdc_vcom.c code, there si vcom_write API.
I use this API to output debug message, and PC receive it with terminal tool.
Then I close the terminal, I hope the firmware can detect the terminal is closed.
But "pVcom->tx_flags & VCOM_TX_CONNECTED" always show it is connected.
This status can not update.
The only way to detect if the PC terminal is closed is that the busy status is keep. So that the firmware may know the terminal is closed?
Any better method?
Thanks
Ken