This is the mail archive of the cygwin@sources.redhat.com mailing list for the Cygwin project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Re: Fwd: accesing the serial port in non-blocking mode ?


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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]