Imre Paniti wrote: > We are trying to run a sending and a reciving program (in a thread) on 2 > computers. > We have read that rtnet can synchronize computer clocks on a real-time > network. > http://dslab.lzu.edu.cn/docs/summer_school_2005/docs/study.pdf > > "Each frame starts with Preamble of 7 bytes, each containing the > > bit pattern 10101010. This allows the receiver's clock to synchronize with > the sender's"
Mmh, this rather describes the synchronisation of a NIC on an incoming frame at hardware level. RTnet is not involved here. > If we do this, and after set a task on two computers to execute at the same > time, will the tasks be synchronized, e.g., start at the exact same time? > Nope, but RTnet, more precisely RTmac/TDMA, provides means to obtain the clock offset between the local system and the master: RTMAC_RTIOC_TIMEOFFSET. Check this example [1] how to issue such IOCTLs to the RTnet core. The offset is updated once per cycle, so your effective clock may jump slightly. You could apply some smarter algorithm on top of this interface if you like. Jan [1]http://www.rts.uni-hannover.de/rtnet/lxr/source/examples/xenomai/native/tdma-api.c?v=SVN
signature.asc
Description: OpenPGP digital signature
------------------------------------------------------------------------- Using Tomcat but need to do more? Need to support web services, security? Get stuff done quickly with pre-integrated technology to make your job easier Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
_______________________________________________ RTnet-users mailing list RTnet-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/rtnet-users