On 03/30/2012 04:34 PM, Minh GIANG wrote: > hi, > > with option RTSER_RTIOC_WAIT_EVENT in rt_dev_ioctl(), this function returns > un number -110 (Connection timed out) > with option RTSER_RTIOC_GET_STATUS in rt_dev_ioctl(), this function returns > un number 0 (not message)
You should call this function *after* the timeout happened. What does the "struct rtser_status" contain? Especially the "line_status" is of interest. > > Anyway, currently it works without rt_dev_ioctl(), i can see rt_dev_read() > wait data event (with debug mode) while giving the period of write > task, for exemple = two seconds. > > so can i remove the funtion rt_dev_ioctl? The rt_dev_ioctl should work. You can remove it, but the problem will remain. To debug the problem you could also add some printk's here: http://www.rts.uni-hannover.de/xenomai/lxr/source/ksrc/drivers/serial/16550A.c#223 Especially the value of "iir" might be interesting. Wolfgang. _______________________________________________ Xenomai-help mailing list Xenomai-help@gna.org https://mail.gna.org/listinfo/xenomai-help