2

In Windows, sometimes the serial port "hangs" due to lost connection or some other reason beyond control of my app. When this happens we usually have to physically unplug the USB or shutdown the OS and restart.

Does anyone know if there is a way to send a Close or Kill command to an existing serial port that is opened by another app or service.

ldiablo
  • 67
  • 11
  • 1
    See this question http://stackoverflow.com/questions/7208094/force-a-com-port-to-close – HavelTheGreat Feb 10 '15 at 19:15
  • thanks Elizion i'm in a similar dilemma – ldiablo Feb 10 '15 at 19:53
  • Have you tried the tools described in the linked answers? – andlabs Feb 10 '15 at 20:40
  • andlabs, thanks for replying. Not as yet, it is usually something that happens on the customer computer so I don't have the luxury of diagnosing the problem there. These tools would help me diagnose if it is an issue with our device. From the answers, it seems it is not possible to "kill" an existing COM connection. – ldiablo Feb 10 '15 at 22:53

0 Answers0