From: Jan Kiszka <jan.kiszka@domain.hid>
To: Bachman Kharazmi <bahkha@domain.hid>
Cc: Xenomai <xenomai@xenomai.org>
Subject: Re: [Xenomai-help] rtdm driver development
Date: Sun, 30 Sep 2007 20:11:07 +0200 [thread overview]
Message-ID: <46FFE6BB.6070504@domain.hid> (raw)
In-Reply-To: <1ce16a2c0709300923g339c6760hecd76a78a2c6424e@domain.hid>
[-- Attachment #1: Type: text/plain, Size: 1386 bytes --]
Bachman Kharazmi wrote:
> I've _solved_ my problem since a few days.
> My code is available here: http://bachman.tor.lindesign.se/mthesis/code/comm/
> What it does is that it makes it possible to write to a rtp0 device
> file which then handles the periodic push and write to a rtser0.
>
> Questions which still remain.
> -Are there any problems setting a high value for the pipe task?
> #define TASK_STKSZ_PIPETASK 50000
>
> I use it when creating the task:
> rt_task_create(&task3,"kernel_task3",TASK_STKSZ_PIPETASK,TASK_PRIO_PIPETASK,TASK_MODE);
> Is it the size of data that the pipe can handle before it gets filled?
The pipe buffer is configure through the pipe API, not via the task that
fills it. Above, you are setting the task stack size, that's something
different. Please read the fine API documentation.
>
> -Can I write data to the pipe( /dev/rtp0 ) using the outputstream from
> java without any delays? In the example testa.java I do that, but I'm
> working on getting that working from a data-generating thread. so that
> there will be a continues quick write to the device.
>
> -When is a outputstream.flush() needed? Is that after every single
> command or just once at the end when all write():s are done?
I least I can't help you with Java-internal questions. How Java uses
that devices is not in the hands of Xenomai.
Jan
[-- Attachment #2: OpenPGP digital signature --]
[-- Type: application/pgp-signature, Size: 249 bytes --]
prev parent reply other threads:[~2007-09-30 18:11 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2007-09-26 19:52 [Xenomai-help] rtdm driver development Bachman Kharazmi
2007-09-30 15:51 ` Jan Kiszka
2007-09-30 16:23 ` Bachman Kharazmi
2007-09-30 18:11 ` Jan Kiszka [this message]
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=46FFE6BB.6070504@domain.hid \
--to=jan.kiszka@domain.hid \
--cc=bahkha@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.