This is the mail archive of the ecos-discuss@sourceware.org mailing list for the eCos project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: 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 ---
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 --- 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 --- 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

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]