From: Jan Kiszka <jan.kiszka@domain.hid>
To: Jonas Witt <Jonas@domain.hid>
Cc: xenomai@xenomai.org
Subject: Re: [Xenomai-help] Serial Port Driver (rtser): No RTSER_RTIOC_WAIT_EVENT
Date: Thu, 10 May 2007 18:11:23 +0200 [thread overview]
Message-ID: <4643442B.8080600@domain.hid> (raw)
In-Reply-To: <000b01c79302$3cf11a40$c67ba8c0@domain.hid>
[-- Attachment #1: Type: text/plain, Size: 1547 bytes --]
Jonas Witt wrote:
> Hi everybody,
>
>
>
> i am having a problem with the serial port driver in xenomai for a while
> now..
>
>
>
> I have tried different programs like
> http://www.captain.at/xenomai-serial-port-example.php
>
>
>
> I have also changed the code of cross-link.c to use the same port for
> writing and reading (as i only have one serial port in my computer). Opening
> a port and writing the configuration seems to work form e.. also writing.
> The Problem stems from the call to:
>
>
>
> rt_dev_ioctl(read_fd, RTSER_RTIOC_WAIT_EVENT, &rx_event);
>
>
>
> which keeps waiting forever and never receives an interrupt. I tried a
> self-made loopback-adapter and a sensor with a serial interface (so at least
> _something_ should come back). Nothing worked. The serial port is working
> fine with the linux-driver, though. I already figured that the calls to
> rt_dev_write do not work from non-xenomai-tasks (which should really be
> emphasized in the documentation..)
>
Some suggestions:
o check the hardware configuration (ie. the module parameters of
xeno_16550A) twice, you can easily get them wrong
o check /proc/xenomai/irq for any progress on transmission as well as
on reception. If there is nothing happen on tx, the IRQ number may be
wrong, if there is nothing on rx, your port configuration might be
broken.
o try the driver from trunk, it can handle PnP-related issues (hardware
gets powered off when Linux driver is removed)
Jan
[-- Attachment #2: OpenPGP digital signature --]
[-- Type: application/pgp-signature, Size: 250 bytes --]
next prev parent reply other threads:[~2007-05-10 16:11 UTC|newest]
Thread overview: 12+ messages / expand[flat|nested] mbox.gz Atom feed top
2007-05-10 12:53 [Xenomai-help] Serial Port Driver (rtser): No RTSER_RTIOC_WAIT_EVENT Jonas Witt
2007-05-10 16:11 ` Jan Kiszka [this message]
2007-05-10 14:56 ` [Xenomai-help] Serial Port Driver (rtser): NoRTSER_RTIOC_WAIT_EVENT Jonas Witt
2007-05-10 17:09 ` Jan Kiszka
2007-05-10 15:32 ` Jonas Witt
2007-05-10 17:35 ` Jan Kiszka
2007-05-11 17:05 ` [Xenomai-help] Serial Port Driver(rtser): No RTSER_RTIOC_WAIT_EVENT Jonas Witt
2007-05-11 19:17 ` Jan Kiszka
2007-05-11 17:57 ` [Xenomai-help] Serial Port Driver(rtser): NoRTSER_RTIOC_WAIT_EVENT Jonas Witt
2007-05-11 18:16 ` [Xenomai-help] Serial Port Driver(rtser):NoRTSER_RTIOC_WAIT_EVENT Jonas Witt
-- strict thread matches above, loose matches on Subject: below --
2007-05-13 16:57 [Xenomai-help] Serial Port Driver (rtser): No RTSER_RTIOC_WAIT_EVENT Jonas
2007-05-13 17:06 ` Jan Kiszka
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=4643442B.8080600@domain.hid \
--to=jan.kiszka@domain.hid \
--cc=Jonas@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.