delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2001/03/09/20:25:44

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
Message-Id: <3.0.3.32.20010309173519.007d49b0@scn.org>
X-Sender: enochw AT scn DOT org
X-Mailer: QUALCOMM Windows Eudora Pro Version 3.0.3 (32)
Date: Fri, 09 Mar 2001 17:35:19 -0800
To: "Eric M. Monsler" <emonsler AT beamreachnetworks DOT com>,
"cygwin AT cygwin DOT com" <cygwin AT cygwin DOT com>
From: Enoch Wu <ewu AT scn DOT org>
Subject: Re: Serial port interface under cygwin. Lossy?
In-Reply-To: <3AA5BFD1.43809E15@beamreachnetworks.com>
Mime-Version: 1.0

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 -


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