If a device is connected to the serial port and it becomes disconnected, does this close the port (after it has been successfully opened)? If it does, is it possible to detect that the port is trying to communicate to a non existant device?
I don't know the answer to your question. You might try checking the port status with $Port->status. I just ran into a similar problem with talking to a device's serial port that has been reset. For some reason, the '$Port->get(TimeOut => 1)' hangs when the device's serial port has been reset. Normally it times out after 1 second.
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.