Michael Smith wrote: > 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.
Why not using the synchronism of WAITONCYCLE_EX directly? Even if you don't use it, doing some calculations with offsets and scheduled cycle starts and then calling rt_sleep_until should provide solution, no? > 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 > Jan
signature.asc
Description: OpenPGP digital signature
------------------------------------------------------------------------- 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