From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 25361 invoked by alias); 6 Jul 2005 10:27:47 -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 24952 invoked by uid 22791); 6 Jul 2005 10:27:38 -0000 Received: from v-mail.vsnl.com (HELO vmail.vsnl.com) (203.200.237.34) by sourceware.org (qpsmtpd/0.30-dev) with ESMTP; Wed, 06 Jul 2005 10:27:38 +0000 Received: from vsnl.net ([127.0.0.1]) by vmail.vsnl.com (iPlanet Messaging Server 5.2 HotFix 1.16 (built May 14 2003)) with ESMTP id <0IJ700CZ3AQXS6@vmail.vsnl.com> for ecos-discuss@sources.redhat.com; Wed, 06 Jul 2005 15:36:33 +0530 (IST) Received: from ([localhost (127.0.0.1)]) by vmail.vsnl.com (InterScan E-Mail VirusWall Unix); Wed, 06 Jul 2005 15:36:33 +0530 (IST) Received: from [203.197.169.20] by vmail.vsnl.com (mshttpd); Wed, 06 Jul 2005 15:06:33 +0500 Date: Wed, 06 Jul 2005 10:27:00 -0000 From: aprakash@tataelxsi.co.in To: Andrew Lunn Cc: ecos-discuss@sources.redhat.com Message-id: <14445914377f.14377f144459@vsnl.net> MIME-version: 1.0 Content-type: text/plain; charset=us-ascii Content-language: en Content-transfer-encoding: 7BIT Content-disposition: inline Subject: Re: [ECOS] Serial Port , Raw Mode using cyg_io_read X-SW-Source: 2005-07/txt/msg00064.txt.bz2 Ok. Thanks andrew... Is there any function or call to know, howmany bytes available to read in my serial buffer ?. Thanks Prakash ----- Original Message ----- From: Andrew Lunn Date: Wednesday, July 6, 2005 3:00 pm Subject: Re: [ECOS] Serial Port , Raw Mode using cyg_io_read > 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