From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 26124 invoked by alias); 21 Feb 2007 09:19:46 -0000 Received: (qmail 26113 invoked by uid 22791); 21 Feb 2007 09:19:45 -0000 X-Spam-Check-By: sourceware.org Received: from www.nabble.com (HELO talk.nabble.com) (72.21.53.35) by sourceware.org (qpsmtpd/0.31) with ESMTP; Wed, 21 Feb 2007 09:19:38 +0000 Received: from [72.21.53.38] (helo=jubjub.nabble.com) by talk.nabble.com with esmtp (Exim 4.50) id 1HJndO-0006e1-FQ for ecos-discuss@ecos.sourceware.org; Wed, 21 Feb 2007 01:19:34 -0800 Message-ID: <9077603.post@talk.nabble.com> Date: Wed, 21 Feb 2007 09:19:00 -0000 From: Tim Hatton To: ecos-discuss@ecos.sourceware.org MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Nabble-From: tim@coherent-tech.co.uk X-IsSubscribed: yes Mailing-List: contact ecos-discuss-help@ecos.sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: ecos-discuss-owner@ecos.sourceware.org Subject: [ECOS] How to temporarily hijack console serial port X-SW-Source: 2007-02/txt/msg00198.txt.bz2 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