X-Recipient: archive-cygwin@delorie.com
X-SWARE-Spam-Status: No, hits=3.1 required=5.0 	tests=BAYES_20,MSGID_SPAM_CAPS
X-Spam-Check-By: sourceware.org
X-IronPort-Anti-Spam-Filtered: true
X-IronPort-Anti-Spam-Result: AtoMAImet0ukDzvj/2dsb2JhbACCMI0jizuBLrEdgmkIghYE
From: Robrecht Dewaele <Robrecht.Dewaele@vub.ac.be>
To: cygwin@cygwin.com
Date: Sun, 04 Apr 2010 05:56:23 +0200
X-sender-IP: 134.184.49.30
Subject: Re: unable to set icrnl (stty -F /dev/ttyS2 icrnl) for an ftdi device
Message-Id: <IHEEAAIAAAHAHAAH@webmail.ulb.ac.be>
Mailing-List: contact cygwin-help@cygwin.com; run by ezmlm
List-Id: <cygwin.cygwin.com>
List-Subscribe: <mailto:cygwin-subscribe@cygwin.com>
List-Archive: <http://sourceware.org/ml/cygwin/>
List-Post: <mailto:cygwin@cygwin.com>
List-Help: <mailto:cygwin-help@cygwin.com>, <http://sourceware.org/ml/#faqs>
Sender: cygwin-owner@cygwin.com
Mail-Followup-To: cygwin@cygwin.com
Delivered-To: mailing list cygwin@cygwin.com

On 4/3/2010 5:55 PM, Robrecht Dewaele wrote:
>> I'm using cygwin 1.7.2 on Windows 7, and I am unable to set the icrnl flag for >> /dev/ttyS2 as shown at the bottom of my message. The device attached to ttyS2 is a ARM development board which uses an ftdi chip for serial communication over USB.
>> (The device is connected with USB, and the driver creates a virtual com port.)

> Are you running them as Administrator? (UAC or no UAC, this matters.)
> --
> ~
> Morgan Gangwere

Yes, the user account I'm running this on is an administrator account.
Running cygwin as administrator (with right-click, run as ...) does not change
the behavior.

I must add that I am able to successfully change the baud rate, but not able to
change most of the other flags. Changing icrnl does not render an error, but
still nothing changed (see below).

(this is on a Windows 7 VM, other HW is the same)
robbe@eagle764 ~
$ stty -F /dev/ttyS2 onlcr

robbe@eagle764 ~
$ stty -F /dev/ttyS2
speed 9600 baud; line = 0;
intr = <undef>; quit = <undef>; erase = <undef>; kill = <undef>; eof = <undef>;
swtch = <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

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

