This is the mail archive of the cygwin@cygwin.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: Serial port interface under cygwin. Lossy?



>
> 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.
> >
>
[ ... snip ... ]
> >
> >  /* 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?
>

Yep. Flow control is completely disabled, so as long as you're in sync with
partner (I presume, it runs 115Kb as well), everything is rolling. As soon as
you try to run at different speed something is lost.

You mean to say, it ever worked?

-andrej


--
Want to unsubscribe from this list?
Check out: http://cygwin.com/ml/#unsubscribe-simple


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