How to force free a COM port occupied by another application, or hung

I am using a USB server (MyUTN USB Device Server - http://www.myutn.net/home.html ) to connect my Windows 2008 Server virtual machine to a USB Modem. The USB modem comes with a COM emulation driver that creates a virtual COM port on the Win2k8 server. MyUTN also comes with software that emulates USB devices on a Win2k8 server.

On the Win2k8 server, I run the modem application (NT service), which connects to the modem (open port) through the virtual COM port and does not release it until the application is closed by the user.

The application and the modem work fine on the physical USB port, but when I use it with the MyUTN USB device server, I have a problem when the modem resets or disconnects for a moment, the port does not free. It happens that my application is blocked from a modem. Even if I have to close the application, the port will not be released. However, the modem works when the indicator is on and blinks. The only way to solve the problem is to physically remove the modem and reconnect it.

I tried to solve the problem, but to no avail, and I urgently need the solution to work next Monday. One of the quick ways that I can think of is if I can free a busy port programmatically. Please let me know if this can be done. Thank.

+3
source share
1

MyUTN , , , . .

0