Mail Archives: cygwin/2001/03/09/20:25:44
Hello,
At 08:57 PM 3/6/01 -0800, Eric M. Monsler wrote:
>All,
>
>I have been testing it by running my application on both ports, with a
>cable between them, and sending messages.
>
>When I run at 115200 baud, everything works great.
>
>When I run at 9600 baud, I lose a significant fraction of the messages.
>
Strange indeed.
>Has anyone seen this type of behavior with cygwin's serial port
>interface?
Not with Cygwin serial in particular.
>
>I have no particular reason to blame cygwin vs. NT's serial drivers, or
>the PC's hardware, but I do see the same effect on two different PC's,
>different motherboards. So, I thought I'd ask.
>
It can be as simple as RS232 cabling problem. Well, I can't tell without
a wiring diagram.
>A snip of the code I use to setup the port is below.
>
>Eric Monsler
>
>
>/************* Port open and setup code ****************************/
>
>
> }
>
> /* I think we want to disable hardware flow control. FIXME */
> newtio.c_cflag &= ~CRTSCTS;
>
> /* When we read, we want completely raw access */
> newtio.c_lflag &= ~(ICANON | ECHO | ECHOE | ISIG);
>
> /* I think we want to disable software flow control. FIXME */
> newtio.c_iflag &= ~(IXON | IXOFF | IXANY);
>
> tcsetattr(fd,TCSANOW,&newtio);
>
Perhaps, you do your own flow control of some sort?
----
EW
--
Want to unsubscribe from this list?
Check out: http://cygwin.com/ml/#unsubscribe-simple
- Raw text -