Click here to Skip to main content
15,846,211 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
i am trying to enable and disable the USB port when the device is running. i create virtual serial communication(COM1->COM2) and (COM2->COM1). this serial port to make send and receive communication application.when this type of communication are happen,i trying to do enable and disable the device with respected COM port.but when the serial port are running,that time USB not able to disable and enable the device.how to i disable/enable the USB device when application running or connection time?

What I have tried:

i trying to do enable and disable the device with respected COM port.but when the serial port are running,that time USB not able to disable and enable the device.
Posted
Updated 15-Sep-17 1:33am

Devices which are in use can not be disabled. You have to close the port before you can disable it.
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900