From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 14354 invoked by alias); 18 Aug 2006 15:57:05 -0000 Received: (qmail 14341 invoked by uid 22791); 18 Aug 2006 15:57:03 -0000 X-Spam-Check-By: sourceware.org Received: from tomts25.bellnexxia.net (HELO tomts25-srv.bellnexxia.net) (209.226.175.188) by sourceware.org (qpsmtpd/0.31) with ESMTP; Fri, 18 Aug 2006 15:56:59 +0000 Received: from smtp1.sympatico.ca ([209.226.175.22]) by tomts25-srv.bellnexxia.net (InterMail vM.5.01.06.13 201-253-122-130-113-20050324) with SMTP id <20060818155656.GPSS1747.tomts25-srv.bellnexxia.net@smtp1.sympatico.ca>; Fri, 18 Aug 2006 11:56:56 -0400 X-Mailer: Openwave WebEngine, version 2.8.6.6 (webedge20-101-174-112-20020617)" From: Andre-John Mas To: Andre-John Mas ,Andrew Lunn CC: Date: Fri, 18 Aug 2006 15:57:00 -0000 MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: 7bit Message-Id: <20060818155656.GPSS1747.tomts25-srv.bellnexxia.net@smtp1.sympatico.ca> X-IsSubscribed: yes 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 Subject: Re: Re: [ECOS] Problems with tcgetattr() X-SW-Source: 2006-08/txt/msg00187.txt.bz2 Trying to see if I can get things working myself, I have activated the option in the ECC file for "Termios TTY channel #0", but when I compile I get the error: packages/io/serial/v2_0_51/src/common/termiostty.c:189: error: `B5000000' undeclared here (not in a function) Searching the packages I have I find no defintion for 'B5000000' or any of the values defined in the variable defined at that line: static speed_t ecosbaud2posixbaud[] Any ideas? Andre Andre-John Mas wrote: > > Fair enough. I have added the following code: > > char* deviceName = "/dev/termiosX"; > > fd = open(deviceName, O_RDWR | O_NOCTTY); > > but this fails at the 'isatty(fd)' test. Changing the device name > to to the value specified by 'console device name',in the ECC file: > > "/dev/ttydiag" > > gives me the same error as when I used STDIN_FILENO: > > tcgetattr: Invalid argument > > Any ideas? > > Andre > > Andrew Lunn wrote: > > > > On Fri, Aug 18, 2006 at 10:20:30AM -0400, Andre-John Mas wrote: > > > > > I am trying this on STDIN_FILENO, based on examples I have seen > > > posted on the net. Currently I am connecting via the serial port, > > > but later on it is likely to be via a telnet or ssh connection. I > > > thought STDIN_FILENO was meant to be mapped to the current device? > > > > You are thinking in Unix way, not the eCos way. termio controls only > > work on the termios devices and no other devices. > > > > However, there is currently no ssh or telnet daemon for eCos, so when > > you implement these things, you can add support for this in however > > you implement telnet or ssh. > > > > Also, not there is no concept of a per thread STDIN. It is one STDIN > > for the whole system. > > > > 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 > -- Before posting, please read the FAQ: http://ecos.sourceware.org/fom/ecos and search the list archive: http://ecos.sourceware.org/ml/ecos-discuss