This is the mail archive of the
ecos-discuss@sourceware.org
mailing list for the eCos project.
Re: Re: select doesn't work on stdin?
- From: "Ken Yee" <kenkyee at excite dot com>
- To: ecos-discuss at ecos dot sourceware dot org,gary at mlbassoc dot com
- Cc:
- Date: Mon, 19 Nov 2012 11:08:02 -0500
- Subject: Re: [ECOS] Re: select doesn't work on stdin?
Gary Thomas wrote:
> Have you tried using a serial port (not the diagnostic console)?
> The problem with the diag port is that it is blocking which does
> not play nice with select()
Unfortunately, we're out of serial ports on our system. We only have 3. 1 goes to a modem, 1 is used for board-board comms, and the 3rd is the console port which we have shared w/ the diag port (eCos forces you to assign the diag port to a serial port and you can't assign it to /dev/null).
I can do ioctl w/ the FNONBIO flag to get it to run in non-blocking mode, but it only sees 1 in 18 characters (you hit the same key 17-18 times before one value gets to the read character function)-:
--- Begin Message ---
- From: ecos-discuss-digest-help at ecos dot sourceware dot org
- To: ecos-discuss at ecos dot sourceware dot org
- Date: 18 Nov 2012 10:11:16 -0000
- Subject: ecos-discuss Digest 18 Nov 2012 10:11:16 -0000 Issue 3684
- Comment: DKIM? See http://www.dkim.org
- Comment: DomainKeys? See http://antispam.yahoo.com/domainkeys
- Dkim-signature: v=1; a=rsa-sha1; c=relaxed/relaxed;d=sourceware.org; s=default; x=1353838284; h=Comment:DomainKey-Signature:Received:Precedence:List-Id:List-Unsubscribe:List-Subscribe:List-Archive:List-Post:List-Help:Sender:Mailing-List:Date:Message-ID:From:Delivered-To:To:MIME-Version:Content-Type:Subject; bh=hy4fG7y4xfSdsul7SWiLmC8GZiM=; b=VjU8PScPZ33jSUsbitKKOTGzFQ48mf8e9ilSlz+MVKsijW6f1IVFZlobK87IA5wW5nloLcKMqhbhuYF6t6j8S3MRie2jzxWGr2mnD9nzEw90Onvq9n+Pec4LzdjkRX+33Hi3Hh57yH2qbsfYvgoWa23DOxfOqRxXrhKHc0rBB70=
- Domainkey-signature: a=rsa-sha1; q=dns; c=nofws;s=default; d=sourceware.org;h=Received:Precedence:List-Id:List-Unsubscribe:List-Subscribe:List-Archive:List-Post:List-Help:Sender:Mailing-List:Date:Message-ID:From:Delivered-To:To:MIME-Version:Content-Type:Subject;b=T12drnlhJvDnd6+5AT1dWf5kJQUS5xazHaVu2RSjGkvXwyp/NsogGl2/U+XGzsiYOE1uVhAhlKrAKHCLlMr1vxubVWor5kZIoHZD90wLjZQFN+yP4Djz5C40P6mxi91+6/UZwx6f8frGALNjdKLlLD8pGhC5whkZnSmTjK96EGU=;
ecos-discuss Digest 18 Nov 2012 10:11:16 -0000 Issue 3684
Topics (messages 45794 through 45795):
select doesn't work on stdin?
45794 by: Gary Thomas <gary@mlbassoc.com>
Looking for multithreaded eCos application in C++
45795 by: Arthur Martens <martens@ibr.cs.tu-bs.de>
Administrivia:
To subscribe to the digest, e-mail:
ecos-discuss-digest-subscribe@ecos.sourceware.org
To unsubscribe from the digest, e-mail:
ecos-discuss-digest-unsubscribe@ecos.sourceware.org
To post to the list, e-mail:
ecos-discuss@ecos.sourceware.org
----------------------------------------------------------------------
--- Begin Message ---
- From: Gary Thomas <gary at mlbassoc dot com>
- To: ecos-discuss at ecos dot sourceware dot org
- Date: Thu, 15 Nov 2012 14:33:16 -0700
- Subject: Re: [ECOS] Re: select doesn't work on stdin?
On 2012-11-15 14:16, Ken Yee wrote:
I was about to put a bug in the ecos bug database and found this:
http://bugs.ecos.sourceware.org/show_bug.cgi?id=21968
From 2001??? Wow :-O
I guess no one puts command shells on stdin/stdout in their embedded environments :-P
Have you tried using a serial port (not the diagnostic console)?
The problem with the diag port is that it is blocking which does
not play nice with select()
--
------------------------------------------------------------
Gary Thomas | Consulting for the
MLB Associates | Embedded world
------------------------------------------------------------
--- End Message ---
--- Begin Message ---
- From: Arthur Martens <martens at ibr dot cs dot tu-bs dot de>
- To: ecos-discuss at sourceware dot org
- Date: Sun, 18 Nov 2012 11:11:06 +0100
- Subject: Looking for multithreaded eCos application in C++
Dear eCos community,
I want to implement some novel algorithms for replicated execution of
multithreaded applications in eCos.
Hence for demonstration and testing I am looking for some application or
service
wich uses multithreaded execution and synchronization of objects shared
among the threads.
In best case the required Program has both, parts with completely
independent parallel execution and
also parts wich are parallel executed but rely on some variables or
memoryspace shared among the threads.
Since I rely on some static code analysis and AspectC++ the Program
should be open source and written in C++.
Of course I have already considered the GoAhead webserver but since it
is written in pure c it does not meet my requirements.
I have also searched the web but I did not find anything so far.
So if anyone of you knows some good program I would apreciate any
suggestions.
Best regards,
Arthur
--
---------------------------------------------------------
Dipl.-Ing. Arthur Martens
Institut für Betriebssysteme und Rechnerverbund
Abteilung: Verteilte Systeme
TU Braunschweig tel: +49 531 391-3245
Muehlenpfordtstr. 23 fax: +49 531 391-5936
D-38106 Braunschweig eMail: martens@ibr.cs.tu-bs.de
--- End Message ---
--- End Message ---
--
Before posting, please read the FAQ: http://ecos.sourceware.org/fom/ecos
and search the list archive: http://ecos.sourceware.org/ml/ecos-discuss