Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Checking win32::serialport 1

Status
Not open for further replies.

BMO

Programmer
Aug 20, 2001
7
0
0
GB
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?

TIA
 
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.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top