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: signature.asc
Description: OpenPGP digital signature

_______________________________________________
Xenomai-help mailing list
[email protected]
https://mail.gna.org/listinfo/xenomai-help

Reply via email to