cancel
Showing results for 
Search instead for 
Did you mean: 

USB VCP - How to know if host COM port is open?

Clonimus74
Senior II
Posted on June 25, 2018 at 13:44

Hi all,

Is there a way to know if the host PC's COM port is open?

My application looks if the USB state is USBD_STATE_CONFIGURED and then starts sending data. In this case my PC application (CVI) cannot open the COM port until I stop sending data.

I want to solve this by knowing if the host COM port is open, is there a method to do this?

I use STM32L476, CubeMX VCP code

Thanks

#host #com-port #usb-vcp
10 REPLIES 10
Posted on July 02, 2018 at 07:43

There is one, though I don&39t know if it functions as what

Moon.Michael

 calls 

&39magic text&39