From: Gilles Chanteperdrix <gilles.chanteperdrix@xenomai.org>
To: Dehann Fourie <dehann.fourie@domain.hid>
Cc: xenomai@xenomai.org
Subject: Re: [Xenomai-help] RT Serial, rt_dev_read blocking problem
Date: Fri, 17 Apr 2009 17:09:59 +0200 [thread overview]
Message-ID: <49E89BC7.6000704@domain.hid> (raw)
In-Reply-To: <2b490f270904170749m3ec39cc8vddab1b5aa50f4b4c@domain.hid>
Dehann Fourie wrote:
> Hi,
>
> I am having trouble with reading data from the serial port. I initially
> followed the RT Serial example from captain. I changed the read task to a
> periodic 20ms task, from which I read from the serial port (rtser0). This is
> all that the rt_task is doing. The serial port config is:
>
> static const struct rtser_config
> <http://www.xenomai.org/documentation/trunk/html/api/structrtser__config.html>
> read_config = {
> .config_mask = 0xFFFF,
> .baud_rate = 57600,
> .parity = RTSER_NO_PARITY,
> .data_bits = RTSER_8_BITS,
> .stop_bits = RTSER_1_STOPB,
> .handshake = RTSER_NO_HAND,
> .fifo_depth = RTSER_DEF_FIFO_DEPTH,
> .rx_timeout = RTSER_DEF_TIMEOUT,
Did you try to set .rx_timeout = RTSER_TIMEOUT_NONE here ? I may be
completely wrong because I never used the serial driver, but it looks
like what you are looking for.
> I am on a Geode 500MHz single board computer with kernel 2.6.23 and xeno
> 2.4.3.
Some issues with FPU on Geode were fixed recently, so, you should use
Xenomai 2.4.7, using the latest I-pipe patch which ship with this
version, and apply the commit 3a23967f3cc8d6881d8e3280130bbc431195aa31
from head.
--
Gilles.
next prev parent reply other threads:[~2009-04-17 15:09 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2009-04-17 14:49 [Xenomai-help] RT Serial, rt_dev_read blocking problem Dehann Fourie
2009-04-17 15:09 ` Gilles Chanteperdrix [this message]
2009-04-19 8:51 ` Dehann Fourie
2009-04-19 9:16 ` Gilles Chanteperdrix
2009-04-23 7:02 ` Dehann Fourie
2009-04-23 9:15 ` Gilles Chanteperdrix
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=49E89BC7.6000704@domain.hid \
--to=gilles.chanteperdrix@xenomai.org \
--cc=dehann.fourie@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.