Paulo Schreiner wrote:
> Hi, I'm trying to adapt the example server to get messages on a loop,
> with a timeout. 
> 
> I set the timeout with ioctl_rt to 500ms (0,5s), and then call
> rt_dev_recv from inside the loop. Unfurtunately, no matter what value i
> set the timeout, it always times out imeediately (half a second should
> be noticeable by me). If i set it to 0, it blocks OK.
> If i send something to it, it does get received, because i loop around
> the recv. But that is not the desired behaviour.

I cannot find start_rt_timer() in your code. Is it already running when
starting this example (e.g. rtcfg.ko or tdma.ko is loaded)?

It's a quite common mistake, not necessarily limited to newcomers, to
forget this - one reason why we eliminated this requirement in Xenomai.

[Oops, I just noticed that there is still a lonesome stop_rt_timer() in
examples/rtai/simpleserver.c. Just killed it.]

Jan

Attachment: signature.asc
Description: OpenPGP digital signature

Reply via email to