Beefy Boxes and Bandwidth Generously Provided by pair Networks
XP is just a number

Re: issues reading from serial port

by dave_the_m (Monsignor)
on Aug 05, 2005 at 20:34 UTC ( #481363=note: print w/replies, xml ) Need Help??

in reply to issues reading from serial port

Well, in the UNIX world the trick would be to open the device nonblocking, ie with the O_NONBLOCK flag, or use fcntl to set it later; but I don't know much about windows and what it supports. I suppose you could try
use Fnctl; sysopen(HANDLE, $path, O_NONBLOCK);
and see if it works under windows.


Replies are listed 'Best First'.
Re^2: issues reading from serial port
by EvanK (Chaplain) on Aug 06, 2005 at 04:14 UTC
    well, I'm using the Win32::SerialPort module, and it doesnt use sysopen() at all, it simply tie()s the filehandle to the serial stream.

    Give a man a match and he'll be warm for an hour. Set him on fire and he'll be warm for the rest of his life.

Log In?

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://481363]
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others chilling in the Monastery: (3)
As of 2021-04-19 06:18 GMT
Find Nodes?
    Voting Booth?

    No recent polls found