I would like to be able to detect when the virtual com port gets opened by some program and when it closes the port.
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
2020-12-03 11:28 AM
I would like to be able to detect when the virtual com port gets opened by some program and when it closes the port.
How would I do that?
This discussion is locked. Please start a new topic to ask your question.
1 REPLY 1
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
2020-12-03 12:21 PM
The VCP connection consists only of the RX and TX lines, there is no possibility to find out if someone is listening on the PC side. You can implement your own USB CDC Virtual Com Port if the MCU supports USB, or you can implement some protocol inside VCP, e.g. one side sends periodic "ping" messages and the other side responds.
