Page 1 of 1

Recovery if CoolTerm shuts down while port is open

Posted: Thu Aug 18, 2022 7:19 pm
by jmuhammad
Greetings,

This is not specific to CoolTerm as it may apply to any application.

If CoolTerm has a serial port open then CoolTerm is suddenly killed (shuts down, crashes, etc.) without using the menu to disconnect the port, it is seen by Windows as still using the port (the connect will not work). The only way I have found to release the port is to power cycle the controller. Is there something on the PC that can be done to 'release' the port?

Re: Recovery if CoolTerm shuts down while port is open

Posted: Fri Aug 19, 2022 12:08 pm
by roger
I think this may be due to the driver still holding on to the port and not knowing that the app that has been accessing it is no longer doing so, which can happen if such an app is suddenly killed without allowing it to properly close and release the port. I believe there is a way to restart the driver via the Device Manager in Windows. This might be helpful:

https://blogs.gwu.edu/ecelabs/2020/06/2 ... com-ports/

Roger

Re: Recovery if CoolTerm shuts down while port is open

Posted: Sat Aug 20, 2022 10:22 am
by jmuhammad
OK, thanks Roger.