delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2001/03/11/02:31:03

Mailing-List: contact cygwin-help AT sourceware DOT cygnus DOT com; run by ezmlm
List-Subscribe: <mailto:cygwin-subscribe AT sources DOT redhat DOT com>
List-Archive: <http://sources.redhat.com/ml/cygwin/>
List-Post: <mailto:cygwin AT sources DOT redhat DOT com>
List-Help: <mailto:cygwin-help AT sources DOT redhat DOT com>, <http://sources.redhat.com/ml/#faqs>
Sender: cygwin-owner AT sources DOT redhat DOT com
Delivered-To: mailing list cygwin AT sources DOT redhat DOT com
X-Envelope-Sender-Is: Andrej DOT Borsenkow AT mow DOT siemens DOT ru (at relayer david.siemens.de)
From: "Andrej Borsenkow" <Andrej DOT Borsenkow AT mow DOT siemens DOT ru>
To: "Enoch Wu" <ewu AT scn DOT org>,
"Eric M. Monsler" <emonsler AT beamreachnetworks DOT com>,
<cygwin AT cygwin DOT com>
Subject: RE: Serial port interface under cygwin. Lossy?
Date: Sun, 11 Mar 2001 10:30:10 +0300
Message-ID: <000601c0a9fd$1a9227e0$21c9ca95@mow.siemens.ru>
MIME-Version: 1.0
X-Priority: 3 (Normal)
X-MSMail-Priority: Normal
X-Mailer: Microsoft Outlook IMO, Build 9.0.2416 (9.0.2911.0)
In-Reply-To: <3.0.3.32.20010309173519.007d49b0@scn.org>
X-MimeOLE: Produced By Microsoft MimeOLE V5.50.4133.2400
Importance: Normal

>
> 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

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019