Mailing-List: contact cygwin-help@cygwin.com; run by ezmlm
List-Subscribe: <mailto:cygwin-subscribe@cygwin.com>
List-Archive: <http://sources.redhat.com/ml/cygwin/>
List-Post: <mailto:cygwin@cygwin.com>
List-Help: <mailto:cygwin-help@cygwin.com>, <http://sources.redhat.com/ml/#faqs>
Sender: cygwin-owner@cygwin.com
Mail-Followup-To: cygwin@cygwin.com
Delivered-To: mailing list cygwin@cygwin.com
X-Originating-IP: [203.29.131.24]
X-Originating-Email: [arashp@hotmail.com]
From: "Arash Partow" <arashp@hotmail.com>
To: cygwin@cygwin.com
Subject: Re: Problem reading from COM1
Date: Tue, 11 Nov 2003 18:27:16 +0000
Mime-Version: 1.0
Content-Type: text/plain; format=flowed
Message-ID: <BAY9-F4BWgBmUvFN4Ro00049236@hotmail.com>
X-OriginalArrivalTime: 11 Nov 2003 18:27:16.0766 (UTC) FILETIME=[6F46BBE0:01C3A881]

Hi,

Cygwin provides a posix layer for interfacing with i/o devices,
looking at this line you have written:

>$ stty -F /dev/com1

You need some more info about how serial i/o ports are described
in a posix system, this page is a good resource:

http://www.easysw.com/~mike/serial/serial.html


Regards


Arash



>Problem reading from COM1
>
>Hello,
>
>I have installed Cygwin on a windows98 computer.
>I have a problem using the serial port. (COM1)
>It is possible to write to COM1 but impossible to read from.
>
>ls >com1
>data is send and received
>
>cat< com1
>nothing is received.
>
>I did several tests with different programs.
>But nothing is received. (under cygwin)
>A normal HyperTerminal on windows did work.
>The stty command have the following settings.
>
>
>$ stty -F /dev/com1
>speed 9600 baud; line = 0;
>intr = <undef>; quit = <undef>; erase = <undef>; kill = <undef>; eof =
><undef>;
>susp = <undef>; rprnt = <undef>; werase = <undef>; lnext = <undef>;
>flush = <undef>; min = 0; time = 0;
>-cread
>-brkint -icrnl -imaxbel
>-opost -onlcr
>-isig -icanon -iexten -echo -echoe -echok -echoctl -echoke
>
>$ stty -F /dev/com1 cread
>stty: /dev/com1: unable to perform all requested operations
>
>Why Can?t I read from the COM1?
>Is it because I use windows 98?
>Why can?t stty set cread?
>
>Thanks Robert Bon

_________________________________________________________________
Hot chart ringtones and polyphonics. Go to  
http://ninemsn.com.au/mobilemania/default.asp


--
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple
Problem reports:       http://cygwin.com/problems.html
Documentation:         http://cygwin.com/docs.html
FAQ:                   http://cygwin.com/faq/

