delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2000/02/22/09:11:51

Mailing-List: contact cygwin-help AT sourceware DOT cygnus DOT com; run by ezmlm
List-Subscribe: <mailto:cygwin-subscribe AT sourceware DOT cygnus DOT com>
List-Archive: <http://sourceware.cygnus.com/ml/cygwin/>
List-Post: <mailto:cygwin AT sourceware DOT cygnus DOT com>
List-Help: <mailto:cygwin-help AT sourceware DOT cygnus DOT com>, <http://sourceware.cygnus.com/ml/#faqs>
Sender: cygwin-owner AT sourceware DOT cygnus DOT com
Delivered-To: mailing list cygwin AT sourceware DOT cygnus DOT com
From: Michael Besl <michael DOT besl AT dwtgmbh DOT de>
Reply-To: michael DOT besl AT dwtgmbh DOT de
Organization: DWT GmbH
To: cygwin AT sourceware DOT cygnus DOT com
Subject: timeout-Problem
Date: Tue, 22 Feb 2000 13:42:59 +0100
X-Mailer: KMail [version 1.0.28]
MIME-Version: 1.0
Message-Id: <0002221415110H.25598@assemblix2>

--Boundary-=_VTRRbljpTnsNFWZqfjMAfAdrrWso
Content-Type: text/plain
Content-Transfer-Encoding: quoted-printable

Hello there,

i have a problem with the structure termios. At my linux system i
used the termios.c_cc[VTIME] for timeout for receiving bytes over
/dev/ttyS1. At my linux system this functions great, but not at my
win98 maschine. Here the program waits till the end of the world
without breaking cause of timeout. What i=B4m doing wrong??

Also i have another problem with receiving bytes over com1 at the
same program on my win98 maschine. When the programm receives ca. a
10Byte-Block then there is no problem. But when a Byte-block > 10Bytes
then the bytes are not correctly received. But when i run linux at
this maschine, then it functions great. The pitty is that it must run
on win9x, but i don=B4t know what i doing wrong? I also didn=B4t find
anything about this in the mailarchives.

I=B4m using a Pentium III with onboard serial (16550A?!) and the
cygwin-b20. I add the problematic routine at this email. Perhaps
someone has experience in using serial connection with the cygnus-b20?


Thanks in advance

=09Mick

--=20
-----------------------
DWT GmbH
Bahnhofstr. 24
86663 Asbach-B=E4umenheim
TEL +49 906/9230
FAX +49 906/9236
-----------------------

--Boundary-=_VTRRb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B3dXJkZSBlcmZvbGdy
ZWljaCAleCBlbXBmYW5nZW5cbiIsKmJ1ZmYpOwogICAgICBmZmx1c2gobG9nZGF0ZWluYW1lKTsg
Ki8KICAgIH0KICByZXR1cm4gMDsKfQo=


--Boundary-=_VTRRbljpTnsNFWZqfjMAfAdrrWso
Content-Type: text/plain; charset=us-ascii

--
Want to unsubscribe from this list?
Send a message to cygwin-unsubscribe AT sourceware DOT cygnus DOT com
--Boundary-=_VTRRbljpTnsNFWZqfjMAfAdrrWso--

- Raw text -


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