From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 23570 invoked by alias); 6 Jul 2005 09:30:50 -0000 Mailing-List: contact ecos-discuss-help@ecos.sourceware.org; run by ezmlm Precedence: bulk List-Subscribe: List-Archive: List-Post: List-Help: , Sender: ecos-discuss-owner@ecos.sourceware.org Received: (qmail 23461 invoked by uid 22791); 6 Jul 2005 09:30:37 -0000 Received: from londo.lunn.ch (HELO londo.lunn.ch) (80.238.139.98) by sourceware.org (qpsmtpd/0.30-dev) with ESMTP; Wed, 06 Jul 2005 09:30:37 +0000 Received: from lunn by londo.lunn.ch with local (Exim 3.36 #1 (Debian)) id 1Dq6EV-0004c9-00; Wed, 06 Jul 2005 11:30:19 +0200 Date: Wed, 06 Jul 2005 09:30:00 -0000 To: Annamalai Prakash Cc: ecos-discuss@sources.redhat.com Message-ID: <20050706093019.GL30398@lunn.ch> Mail-Followup-To: Annamalai Prakash , ecos-discuss@sources.redhat.com References: <200507061412.33468.aprakash@tataelxsi.co.in> <42CB9E08.8040008@rms.ro> <200507061435.27970.aprakash@tataelxsi.co.in> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <200507061435.27970.aprakash@tataelxsi.co.in> User-Agent: Mutt/1.5.9i From: Andrew Lunn Subject: Re: [ECOS] Serial Port , Raw Mode using cyg_io_read X-SW-Source: 2005-07/txt/msg00061.txt.bz2 On Wed, Jul 06, 2005 at 02:35:27PM +0530, Annamalai Prakash wrote: > On Wednesday 06 July 2005 02:32 pm, you wrote: > > Hi, > > > > Did you tried to open the /dev/ser0 , /dev/ser1 ? Something like: > > > > err = cyg_io_lookup( "/dev/ser1", &fd ); > > yes, i tried to open ... it was opened...... but i want to make sure, whether > it is RAW Mode or TTY Mode. The device does not have modes like in unix. There are different devices for each mode. /dev/ser0 is the lowest level and gives you direct access to the serial driver. /dev/tty0 is the next level up and gives you a basic tty level similar to cooked mode. Then there is /dev/termios0 which is layed on top of /dev/tty0. Andrew -- Before posting, please read the FAQ: http://ecos.sourceware.org/fom/ecos and search the list archive: http://ecos.sourceware.org/ml/ecos-discuss