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

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

Reply via email to