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

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.

Dave.

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?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://481363]
help
Chatterbox?
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
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found

    Notices?