AnsweredAssumed Answered

USB CDC class: How to determine if VCP has been opened?

Question asked by Thomas P. on Sep 25, 2014
Latest reply on May 23, 2018 by Pieter Conradie

I'm using the USB CDC class implementation provided by STM32CubeMX 4.3.0 (firmware library v1.3.0).

Is it possible to check on the microcontroller if the virtual COM port has been opened? I want to transmit a version string via USB, but this would only be reasonable if the port is opened, otherwise the user will not receive the information.