From: Jan Kiszka <jan.kiszka@domain.hid>
To: Marco Jackel <ich@domain.hid>
Cc: xenomai@xenomai.org
Subject: Re: [Xenomai-help] Re: read data from serial device
Date: Fri, 24 Mar 2006 13:20:54 +0100 [thread overview]
Message-ID: <4423E426.1010206@domain.hid> (raw)
In-Reply-To: <4422A10B.90508@domain.hid>
[-- Attachment #1: Type: text/plain, Size: 1426 bytes --]
Philippe Gerum wrote:
> Marco Jackel wrote:
>> Hi,
>>
>> Philippe Gerum wrote:
>>
>>> Marco Jackel wrote:
>>>
>>>> "rt_dev_read" gives negative Results. Whats wrong?
>>>
>>> Which negative code is returned exactely?
>>
>> It returns -5
>
> -EIO. Except for traditional RTOS skins like VxWorks, VRTX and so on
> which have their own error list, we tend to normalize on POSIX error
> codes in all other parts of the codebase.
>
> Regarding the EIO issue, it looks like a transmission error has been
> detected on the read-side by the 16650A driver. Jan will likely tell you
> more when time allows.
Are you sure that you transmit with the correct baud rate and line
settings? In your rtser_config I see that you use odd parity. I think
Linux default is no parity bit.
>
>>
>> Are the error-codes documented somewehere?
>>
>
> Yes, the documentation link on our website is a good starting point. For
> the particular EIO issue on the serial driver, I'm not sure there is a
> lot more explanations than the one above, though.
Oops, undocumented return code in the profile. Need to be fixed. Yes,
it's indeed some hardware/bit error that is expressed with EIO.
Jan
PS: A cleaned-up version of the serial port demo code can currently be
found at http://www.rts.uni-hannover.de/mitarbeiter/kiszka/rtaddon.
PPS: I'm examining the reason for your crash ATM. Should not happen.
[-- Attachment #2: OpenPGP digital signature --]
[-- Type: application/pgp-signature, Size: 252 bytes --]
next prev parent reply other threads:[~2006-03-24 12:20 UTC|newest]
Thread overview: 14+ messages / expand[flat|nested] mbox.gz Atom feed top
2006-03-22 15:46 [Xenomai-help] read data from serial device Marco Jackel
2006-03-23 10:08 ` [Xenomai-help] " Marco Jackel
2006-03-23 12:41 ` Marco Jackel
2006-03-23 12:49 ` Philippe Gerum
2006-03-23 12:56 ` Marco Jackel
2006-03-23 13:22 ` Philippe Gerum
2006-03-24 12:20 ` Jan Kiszka [this message]
2006-03-23 12:56 ` Gilles Chanteperdrix
2006-03-23 13:21 ` Marco Jackel
2006-03-24 12:36 ` [Xenomai-help] " Jan Kiszka
2006-03-24 17:09 ` [Xenomai-help] " Marco Jackel
2006-03-24 17:23 ` Jan Kiszka
2006-03-24 17:42 ` Marco Jackel
2006-03-25 1:06 ` Marco Jackel
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=4423E426.1010206@domain.hid \
--to=jan.kiszka@domain.hid \
--cc=ich@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.