This is the mail archive of the
cygwin@sources.redhat.com
mailing list for the Cygwin project.
Re: Fwd: accesing the serial port in non-blocking mode ?
- To: Philippe Moutarlier <philippe at kscable dot com>
- Subject: Re: Fwd: accesing the serial port in non-blocking mode ?
- From: Mark Paulus <mark dot paulus at wcom dot com>
- Date: Wed, 12 Jul 2000 14:09:52 -0600
- Cc: Cygwin Mailing List <cygwin at sourceware dot cygnus dot com>
- Reply-to: Mark Paulus <mark dot paulus at wcom dot com>
Try doing a select(), after setting the appropriate bit in your read mask.
When your bit is set, then you can do a read() from your port.
On Wed, 12 Jul 2000 14:36:54 -0600, Philippe Moutarlier wrote:
>
>Hi everybody,
>
>please excuse this newbie question : I am trying to access and control
>my serial ports using open + read/write + tcgetattr/tcsetattr. I need
>to have the read in non-blocking mode so I set the VMIN and VTIME
>to be both 0.
>
>But the read still blocks ...
>
>I also seem to have pbs setting the speed to 115200 using the
>c_flag attribute.
>
>I have just downloaded and installed the latest cygwin.
>
>Am I doing something wrong or is it just not possible ?
>
>Thanks
>
>Philippe
>
>--
>Want to unsubscribe from this list?
>Send a message to cygwin-unsubscribe@sourceware.cygnus.com
>
--
Want to unsubscribe from this list?
Send a message to cygwin-unsubscribe@sourceware.cygnus.com