public inbox for ecos-discuss@sourceware.org
 help / color / mirror / Atom feed
* Re: [ECOS] Re: select doesn't work on stdin?
@ 2012-11-30 14:49 Ken Yee
  0 siblings, 0 replies; 5+ messages in thread
From: Ken Yee @ 2012-11-30 14:49 UTC (permalink / raw)
  To: ecos-discuss

Gary Thomas wrote:
> Not exactly true - you can use the serial driver (interrupt driven, etc)
> alongside the polled diag driver, at least for output. I've done it
> on many occasions and it works just fine.

We're actually doing that...diag goes to same port via polled driver.  We also have stdout going to the same port using the interrupt based driver.

We're trying to use it for input (aka, the command console I spoke of) and that's where I finally hit issues :-P

--
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] 5+ messages in thread

* Re: [ECOS] Re: select doesn't work on stdin?
  2012-11-19 16:09 Ken Yee
@ 2012-11-19 17:56 ` Gary Thomas
  0 siblings, 0 replies; 5+ messages in thread
From: Gary Thomas @ 2012-11-19 17:56 UTC (permalink / raw)
  To: Ken Yee; +Cc: ecos-discuss

On 2012-11-19 09:08, Ken Yee wrote:
> 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).

Not exactly true - you can use the serial driver (interrupt driven, etc)
alongside the polled diag driver, at least for output.  I've done it
on many occasions and it works just fine.

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

-- 
------------------------------------------------------------
Gary Thomas                 |  Consulting for the
MLB Associates              |    Embedded world
------------------------------------------------------------

-- 
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] 5+ messages in thread

* Re: [ECOS] Re: select doesn't work on stdin?
@ 2012-11-19 16:09 Ken Yee
  2012-11-19 17:56 ` Gary Thomas
  0 siblings, 1 reply; 5+ messages in thread
From: Ken Yee @ 2012-11-19 16:09 UTC (permalink / raw)
  To: ecos-discuss, gary

[-- Attachment #1: Type: text/plain, Size: 686 bytes --]

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

[-- Attachment #2: 0riginal_message --]
[-- Type: message/rfc822, Size: 6840 bytes --]

Return-Path: <ecos-discuss-digest-return-45794-kenkyee=excite.com@ecos.sourceware.org>
X-Original-To: kenkyee.excite@masc002.roc2.bluetie.com
Delivered-To: kenkyee.excite@masc002.roc2.bluetie.com
Received: from inbound004.roc2.bluetie.com (inbound004.roc2.bluetie.com [10.200.2.204])
	by mas002.roc2.bluetie.com (Postfix) with ESMTP id 90D25B38002
	for <kenkyee.excite@masc002.roc2.bluetie.com>; Sun, 18 Nov 2012 05:11:24 -0500 (EST)
Received: from sourceware.org ([209.132.180.131])
	by inbound004.roc2.bluetie.com with inbound001
	id QyBP1k01r2qVqVd01yBPwG; Sun, 18 Nov 2012 05:11:24 -0500
X-BT-Recipient: kenkyee@excite.com
X-CMAE-Score: 0.00
X-CMAE-Analysis: v=2.0 cv=IKGA+3TG c=1 sm=1 a=vbYRN7G9ZuyAWxq09MFwFw==:17
 a=vU3rK2PHhi4A:10 a=_F_L4KYDMoQA:10 a=CCpqsmhAAAAA:8 a=74X2A2tjMz0A:10
 a=2gMqQXS_AAAA:8 a=HFttej4lMtX42uEE5Y8A:9 a=CjuIK1q_8ugA:10 a=WgOm5YoSbN4A:10
 a=7tJrxDyKC5oqpNMp3vIA:9 a=QEXdDO2ut3YA:10 a=qzaP1pLRpC2n4gCtcyYA:9
 a=PUjeQqilurYA:10 a=_4Uo6wCEcfYA:10 a=5Fu4M29zSRAA:10 a=HrsIUweAnlwA:10
 a=vbYRN7G9ZuyAWxq09MFwFw==:117
X-BT-Reason: DKIM Validation Failure
Comment: DKIM? See http://www.dkim.org
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=VjU8PSc
	PZ33jSUsbitKKOTGzFQ48mf8e9ilSlz+MVKsijW6f1IVFZlobK87IA5wW5nloLcK
	MqhbhuYF6t6j8S3MRie2jzxWGr2mnD9nzEw90Onvq9n+Pec4LzdjkRX+33Hi3Hh5
	7yH2qbsfYvgoWa23DOxfOqRxXrhKHc0rBB70=
Comment: DomainKeys? See http://antispam.yahoo.com/domainkeys
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+XGzs
	iYOE1uVhAhlKrAKHCLlMr1vxubVWor5kZIoHZD90wLjZQFN+yP4Djz5C40P6mxi9
	1+6/UZwx6f8frGALNjdKLlLD8pGhC5whkZnSmTjK96EGU=;
Received: (qmail 29280 invoked by alias); 18 Nov 2012 10:11:16 -0000
Precedence: bulk
List-Id: <ecos-discuss-digest.ecos.sourceware.org>
List-Unsubscribe: <mailto:ecos-discuss-digest-unsubscribe-kenkyee=excite.com@ecos.sourceware.org>
List-Subscribe: <mailto:ecos-discuss-subscribe@ecos.sourceware.org>
List-Archive: <http://ecos.sourceware.org/ml/ecos-discuss/>
List-Post: <mailto:ecos-discuss@ecos.sourceware.org>
List-Help: <mailto:ecos-discuss-help@ecos.sourceware.org>, <http://ecos.sourceware.org/ml/#faqs>
Sender: ecos-discuss-owner@ecos.sourceware.org
Mailing-List: contact ecos-discuss-help@ecos.sourceware.org; run by ezmlm
Date: 18 Nov 2012 10:11:16 -0000
Message-ID: <1353233476.29273.ezmlm@ecos.sourceware.org>
From: ecos-discuss-digest-help@ecos.sourceware.org
Delivered-To: responder for ecos-discuss-digest@ecos.sourceware.org
To: ecos-discuss@ecos.sourceware.org
MIME-Version: 1.0
Content-Type: multipart/digest; boundary=kmfofknfaielnadclpfm
Subject: ecos-discuss Digest 18 Nov 2012 10:11:16 -0000 Issue 3684
X-BtMT: Sun, 18 Nov 2012 05:11:24 -0500 (EST)


--kmfofknfaielnadclpfm
Content-Type: text/plain; charset=us-ascii
Content-length: 611


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


----------------------------------------------------------------------

--kmfofknfaielnadclpfm
Content-Type: message/rfc822
Content-Disposition: inline; filename="ecos-discuss.45794"
Content-length: 981

Message-ID: <50A55F9C.30703@mlbassoc.com>
Date: Thu, 15 Nov 2012 14:33:16 -0700
From: Gary Thomas <gary@mlbassoc.com>
MIME-Version: 1.0
To: ecos-discuss@ecos.sourceware.org
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 7bit
Subject: Re: [ECOS] Re: select doesn't work on stdin?
Content-length: 666

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

--kmfofknfaielnadclpfm
Content-Type: message/rfc822
Content-Disposition: inline; filename="ecos-discuss.45795"
Content-length: 1585

Message-ID: <50A8B43A.4070508@ibr.cs.tu-bs.de>
Date: Sun, 18 Nov 2012 11:11:06 +0100
From: Arthur Martens <martens@ibr.cs.tu-bs.de>
MIME-Version: 1.0
To: ecos-discuss@sourceware.org
Content-Type: text/plain; charset=ISO-8859-15; format=flowed
Content-Transfer-Encoding: 8bit
Subject: Looking for multithreaded eCos application in C++
Content-length: 1250

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


--kmfofknfaielnadclpfm--



[-- Attachment #2.1.1: Type: text/plain, Size: 611 bytes --]


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


----------------------------------------------------------------------

[-- Attachment #2.1.2: ecos-discuss.45794 --]
[-- Type: message/rfc822, Size: 1001 bytes --]

From: Gary Thomas <gary@mlbassoc.com>
To: ecos-discuss@ecos.sourceware.org
Subject: Re: [ECOS] Re: select doesn't work on stdin?
Date: Thu, 15 Nov 2012 14:33:16 -0700
Message-ID: <50A55F9C.30703@mlbassoc.com>

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

[-- Attachment #2.1.3: ecos-discuss.45795 --]
[-- Type: message/rfc822, Size: 1607 bytes --]

From: Arthur Martens <martens@ibr.cs.tu-bs.de>
To: ecos-discuss@sourceware.org
Subject: Looking for multithreaded eCos application in C++
Date: Sun, 18 Nov 2012 11:11:06 +0100
Message-ID: <50A8B43A.4070508@ibr.cs.tu-bs.de>

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


[-- Attachment #3: Type: text/plain, Size: 148 bytes --]

-- 
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] 5+ messages in thread

* Re: [ECOS] Re: select doesn't work on stdin?
  2012-11-15 21:16 Ken Yee
@ 2012-11-15 21:33 ` Gary Thomas
  0 siblings, 0 replies; 5+ messages in thread
From: Gary Thomas @ 2012-11-15 21:33 UTC (permalink / raw)
  To: ecos-discuss

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

-- 
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] 5+ messages in thread

* [ECOS] Re: select doesn't work on stdin?
@ 2012-11-15 21:16 Ken Yee
  2012-11-15 21:33 ` Gary Thomas
  0 siblings, 1 reply; 5+ messages in thread
From: Ken Yee @ 2012-11-15 21:16 UTC (permalink / raw)
  To: ecos-discuss

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

--
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] 5+ messages in thread

end of thread, other threads:[~2012-11-30 14:49 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2012-11-30 14:49 [ECOS] Re: select doesn't work on stdin? Ken Yee
  -- strict thread matches above, loose matches on Subject: below --
2012-11-19 16:09 Ken Yee
2012-11-19 17:56 ` Gary Thomas
2012-11-15 21:16 Ken Yee
2012-11-15 21:33 ` Gary Thomas

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