delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2003/11/12/05:54:55

Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm
List-Subscribe: <mailto:cygwin-subscribe AT cygwin DOT com>
List-Archive: <http://sources.redhat.com/ml/cygwin/>
List-Post: <mailto:cygwin AT cygwin DOT com>
List-Help: <mailto:cygwin-help AT cygwin DOT com>, <http://sources.redhat.com/ml/#faqs>
Sender: cygwin-owner AT cygwin DOT com
Mail-Followup-To: cygwin AT cygwin DOT com
Delivered-To: mailing list cygwin AT cygwin DOT com
Message-ID: <3FB2115E.1EBA9A8C@dare.nl>
Date: Wed, 12 Nov 2003 11:54:22 +0100
From: Robert Bon <robo AT dare DOT nl>
X-Accept-Language: en
MIME-Version: 1.0
To: Arash Partow <arashp AT hotmail DOT com>
CC: cygwin AT cygwin DOT com
Subject: Re: Problem reading from COM1
References: <BAY9-F4BWgBmUvFN4Ro00049236 AT hotmail DOT com>

Hello Arash,

As I understood it must be possible to do a cat and redirect de stdin from
COM1.
cat< com1

I have tried to open de device and read from it.
And tried de example code on the web page.
It doesn’t work, that is, it writes but doesn’t read.

In the mailing history there are some user with similar problems but no
answers :-(.
It is state that redirection should work.
And it does work for writing.

I used the stty command to get some information about the serial port.
Is there another way to test the serial port?

Robert

Arash Partow wrote:

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


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

- Raw text -


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