Re: XP Serial port control




"Samwyse" <samwyse@xxxxxxxxx> wrote in message
news:fMptf.60029$tV6.10747@xxxxxxxxxxxxxxxxxxxxxxxxxxxxx
> cubscout wrote:
> > I am trying to use the serial port from perl, but I need O_NONBLOCK.
..
..
>
> If you are doing anything fancy, Unix-isms don't work well in Win32.
> Look at I/O Completion Ports on these two pages:
>
> http://www.sysinternals.com/Information/IoCompletionPorts.html
>
>
http://msdn.microsoft.com/library/default.asp?url=/library/en-us/dndllpro/html/msdn_scalabil.asp
>
> No, I don't know how to relate all of this information to Perl.

One could access that functionality from perl using either Inline::C or
Win32::API.

My impression from the op's first post is that there was no problem with
Windows2000. So I was going to suggest that the op try and dig up that
code - because I feel that if it worked on 2k, then it should work on XP
with little or no modification. I could, of course, be wrong about that -
however I find that O_NONBLOCK is also *not* a defined macro on my
Windows2000 box. (Or - perhaps it *is* defined under Cygwin ... if the op
wants to go down that path.)

Cheers,
Rob


.



Relevant Pages

  • WSDL/SOAP/XML-RPC HELP
    ... I have to define and make something like virtual driver for serial port ... It is not important what is connected on serial port. ... I read some tutorials, guides on XML-RPC, SOAP and WSDL, ... I was planning to use Perl becouse I know something about it. ...
    (comp.lang.python)
  • Begginer Question about TK::filevent
    ... I am beginer in Perl. ... receiving and transmitting on same or diffrent ports depending on the ... Serial port becomes readable. ... I wish to call &read_comport whenever my comport becomes readable ...
    (comp.lang.perl)
  • Re: Writing a daemon
    ... and the write to a 1-wire network. ... such as serial port to monitor, speed, log file name, etc. Googling for ttywatch should bring you right to the tarball. ... I use it at work in combination with a perl script to get pressure readings ...
    (Ubuntu)
  • currently promoted serial access techniques
    ... My useage of perl now dates back to the 90's and I was wondering if ... as the common way to access the serial port from Linux using perl. ... Device::SerialPort the same task will be accorded to our Unix users. ...
    (perl.beginners)
  • RE: Pretty Printing
    ... > I am asking about printing my perl code itself, and not about printing from within Perl. ... > I am hoping there is a utility which if used to print my perl program will make reading the program easier. ... Seems like I had to dig a little to get it to use something thatn the a4 ...
    (RedHat)