What my system needs to do is to run multiple computers on a RTnet network but their threads (100us, 1ms and 10ms) needs to be kept in sync with each other across the network. My RTnet TDMA cycle is running at 1ms. The way I hoped to do it is to keep all the 1ms RTAI threads in sync with the RTNet's 1ms TDMA cycle by using the "rtmac_waitinfo" information from the RTMAC_RTIOC_WAITONCYCLE_EX IOCTL call. By calculating the offset between the RTAI 1ms thread and the expected Sync timing of the RTnet TDMA I wanted to use aperiodic thread synchronization to adjust the thread timing of all the threads to run in pace with RTnet's 1ms SYNC. Do you know of any other way to keep the scheduling in pace with the TDMA cycle? I want to keep from doing any manual scheduling by using timer interrupts and the like if at all possible.
Michael On 5/16/07, Jan Kiszka <[EMAIL PROTECTED]> wrote: > Michael Smith wrote: > > Hi Jan > > I'm sure you're the man to help me on this question. > > I am attempting to run RTAI together with RTnet but with a variable > > task scheduling. I use the rt_sleep() call at the end of the task > > instead of the normal rt_task_wait_period() call to get this working. > > The problem with this is that the timer has to be placed into oneshot > > mode to get this done, as apposed to periodic mode. This then > > obviously stops RTnet's running cycle because it runs with the timer > > in periodic mode (I assume). > > Is there any other way that I can run variable task scheduling of RTAI > > without affecting RTnet? > > I surely can't help teaching periodic over aperiodic mode to RTAI. But I > wonder why you need periodic timer mode at all? Is there no way to > emulate what you need at application level? > > The point is that RTnet requires high-res timers underneath to achieve > reasonable TDMA schedules. Jitters explode over periodic mode when you > have to deal with distributed clocks like RTnet does. And that would > require far larger slot offsets. > > Jan > > > ------------------------------------------------------------------------- This SF.net email is sponsored by DB2 Express Download DB2 Express C - the FREE version of DB2 express and take control of your XML. No limits. Just data. Click to get it now. http://sourceforge.net/powerbar/db2/ _______________________________________________ RTnet-users mailing list RTnet-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/rtnet-users