All of lore.kernel.org
 help / color / mirror / Atom feed
From: Jan Kiszka <kiszka@domain.hid>
To: smannori <smannori@domain.hid>
Cc: xenomai-help <xenomai@xenomai.org>, wjasper@domain.hid
Subject: Re: [Xenomai-help] Interrupt Shied (II)
Date: Tue, 20 Dec 2005 08:45:11 +0100	[thread overview]
Message-ID: <43A7B687.2030807@domain.hid> (raw)
In-Reply-To: <38197.128.93.15.41.1135063005.squirrel@domain.hid>

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

smannori wrote:
> ...
> Now the problems:
> 
> 1) If I push the sample rate above 50 S/s the progam starts, but, after a
> while, the real time square wave disappear. Also the "SquareWave" task
> disappear from /proc/xenomai/sched.

Any segfaults? Take a look at /proc/xenomai/faults (if I remember this
entry name correctly now).

> 
> 2) it is not a problem of interaction with the NON realtime square wave
> because the same behavior remain if I remove the code
> 
> 3) I tried the same program on the PPC achitecture using a PowerBook with
> similar results.
> 
> Where is the catch ? I missed something around the interrupt shield ?
> 
> I need to develop real-time application using USB devices because we need
> something usable with a laptop. Unfortunately USB is NOT supported for real
> time applications and I'm not competent enough to write my real time USB
> driver.
> My hope is that the interrupt shield of Xenomai will save my day :)
> 

It may improve the number of deadline misses, but it will not make them
disappear. The standard Linux stack may do things in your back while you
do some data acquisition, and you cannot control this. Moreover, you can
suffer from low buffers when trying to issue some request to the stack,
and this is also something you cannot influence as the buffers are taken
from global pools.

I'm hopefull that we (well, it's going to be outsourced: a student) will
be able to revise the existing USB4RT stack (=>RTDM port), derive or
define an interface for high-layer drivers like your USB DAQ requires,
and then someone could port things over... :) Actually, USB becomes more
and more important for hard-RT. One just have to think of all those
<X>2USB devices (replace <X> with RS232, CAN, etc.) for boxes with
otherwise limited extensibility.

Jan

[-- Attachment #2: OpenPGP digital signature --]
[-- Type: application/pgp-signature, Size: 256 bytes --]

  reply	other threads:[~2005-12-20  7:45 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2005-12-20  7:16 [Xenomai-help] Interrupt Shied (II) smannori
2005-12-20  7:45 ` Jan Kiszka [this message]
2005-12-20  8:01 ` Philippe Gerum

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=43A7B687.2030807@domain.hid \
    --to=kiszka@domain.hid \
    --cc=smannori@domain.hid \
    --cc=wjasper@domain.hid \
    --cc=xenomai@xenomai.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.