Thanks. The problem was the stray stop_rt_timer. Unloading all the rt*
modules and loading them again, THE FIRST TIME I ran the prog it
worked... Removing the stop_rt_timer, (and reloading all modules), it
now seems to be working.
Rtcfg was loaded, and apparently my program was just stoping the time
for no reason at all.

Thanks a lot,
Paulo Schreiner

Am Montag, den 29.05.2006, 15:18 +0200 schrieb Jan Kiszka:
> 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
> 



-------------------------------------------------------
All the advantages of Linux Managed Hosting--Without the Cost and Risk!
Fully trained technicians. The highest number of Red Hat certifications in
the hosting industry. Fanatical Support. Click to learn more
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=107521&bid=248729&dat=121642
_______________________________________________
RTnet-users mailing list
RTnet-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/rtnet-users

Reply via email to