public inbox for ecos-discuss@sourceware.org
 help / color / mirror / Atom feed
* [ECOS] How to temporarily hijack console serial port
@ 2007-02-21  9:19 Tim Hatton
  0 siblings, 0 replies; only message in thread
From: Tim Hatton @ 2007-02-21  9:19 UTC (permalink / raw)
  To: ecos-discuss


Hi,
I am currently in the process of building an application with eCos (2.0.43)
running on our own hardware which uses an ATMEL AT91RM9200 CPU. 

I have a strange requirement which I'm not sure how to fulfil at the moment.
Our application uses many serial ports talking to other devices (via termios
drivers) and  one device has been configured eCos to use one of the serial
ports as the C console (stdin/stdout) which is used as a user interface for
configuration etc.
So far, so good. We now have a requirement to also be able to plug a device
into the user interface port sometimes. So now I would like to allow the
application to temporarily "hijack" the console serial port and open it as a
termios port for a while to talk to the device and then "return" it to it's
user interface use. 

So, is there anyway to tell eCos (or I guess the C library) to stop using a
particular port as the console at run time and then re-instate it? (There's
no problem within the context of the application to know when to change from
one "mode" to the other, I just don't know how to do it). 

If anyone has any ideas I'd be very grateful,
Best regards,
Tim Hatton

-- 
View this message in context: http://www.nabble.com/How-to-temporarily-hijack-console-serial-port-tf3265595.html#a9077603
Sent from the Sourceware - ecos-discuss mailing list archive at Nabble.com.


-- 
Before posting, please read the FAQ: http://ecos.sourceware.org/fom/ecos
and search the list archive: http://ecos.sourceware.org/ml/ecos-discuss

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2007-02-21  9:19 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2007-02-21  9:19 [ECOS] How to temporarily hijack console serial port Tim Hatton

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).