public inbox for ecos-discuss@sourceware.org
 help / color / mirror / Atom feed
From: Andre-John Mas <ajmas@sympatico.ca>
To: Andre-John Mas <ajmas@sympatico.ca>,Andrew Lunn <andrew@lunn.ch>
Cc: <ecos-discuss@sourceware.org>
Subject: Re: Re: [ECOS] Problems with tcgetattr()
Date: Mon, 21 Aug 2006 20:06:00 -0000	[thread overview]
Message-ID: <20060821200632.FYPC10262.tomts22-srv.bellnexxia.net@smtp1.sympatico.ca> (raw)

I got it working finally :)

For the benefit of others, the following posting helped:

http://ecos.sourceware.org/ml/ecos-discuss/2002-07/msg00092.html

to quote the relavent instructions:

1) In the "Serial device drivers" section, I enabled the "TTY-mode serial device drivers" subsection (CYGPKG_IO_SERIAL_TTY = 1).
2) In the "TTY-mode serial device drivers" subsection, I enabled the "TTY-mode channel #0" subsection (CYGPKG_IO_SERIAL_TTY_TTY0 = 1).
3) In the "TTY-mode channel #0" subsection, I specified "TTY-mode device channel #0 device" as "/dev/ser0" (CYGDAT_IO_SERIAL_TTY_TTY0_DEV = "/dev/ser0")
4) I also did 2 and 3 for "TTY-mode channel #1" subsection, but this may not be necessary
5) Check the "Hardware serial device drivers" sections thoroughly to make sure they are what you want for /dev/ser0 (and /dev/ser1 maybe)
6) In the "ISO C Library" section, "ISO C Library standard input/output functions" subsection, I specified "Default console device" to be "/dev/tty0" (CYGDAT_LIBC_STDIO_DEFAULT_CONSOLE = "/dev/tty0")

in addition to this I activated the value

CYGDAT_IO_SERIAL_POWERPC_QUICC_SMC_SMC1

and set the device name to

"/dev/ser0"

Step 6 above I used '/dev/termios0', instead of '/dev/tty0'. I then in my source code referred to '/dev/termios0' as suggested by Andrew.

Andre

 
> Andrew Lunn <andrew@lunn.ch> wrote:
> > 
> > On Thu, Aug 17, 2006 at 06:47:21PM -0400, Andre-John Mas wrote:
> > > Hi,
> > > 
> > 
> > > I am in the process of writing a simple authentication module for
> > >  the administration of our card. For this we need to be able to hide
> > >  the password when it is inputed. From what I can tell using
> > >  tcgetattr() and tcsetattr() are the calls that I need. The problem
> > >  is that when I try using tcgetattr() I get the error:
> > 
> > What device are you trying this on? I think it needs to be /dev/termiosX
> > 
> >      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

             reply	other threads:[~2006-08-21 20:06 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2006-08-21 20:06 Andre-John Mas [this message]
  -- strict thread matches above, loose matches on Subject: below --
2006-08-22 15:42 Andre-John Mas
2006-08-21 16:19 Andre-John Mas
2006-08-18 18:17 Andre-John Mas
2006-08-18 15:57 Andre-John Mas
2006-08-18 15:26 Andre-John Mas
2006-08-18 14:20 Andre-John Mas
2006-08-18 14:40 ` Andrew Lunn

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20060821200632.FYPC10262.tomts22-srv.bellnexxia.net@smtp1.sympatico.ca \
    --to=ajmas@sympatico.ca \
    --cc=andrew@lunn.ch \
    --cc=ecos-discuss@sourceware.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).