dniu 23.01.2018 o 19:11, Martin Braun via USRP-users pisze: > On Thu, Jan 18, 2018 at 10:34:14AM +0100, Piotr Krysik via USRP-users wrote: >> Hi Hideyuki, >> >> Our students were working (with my help) on synchronizing two USRPs B210 >> with use of Octoclock-G. >> To make your code work without any race-conditions I would add a loop >> that waits for pps edge before your adjustment code, like this: >> ``` >> time_last_pps = self.uhd_usrp_source_0.get_time_last_pps() >> while(self.uhd_usrp_source_0.get_time_last_pps() == time_last_pps): >> time.sleep(0.01) >> ``` > This is good advice. You can go to multi_usrp.cpp and take a look at > set_time_unknown_pps() for a reference on how to do that. > Hi Martin,
The problem is that even when I replicated exactly the set_time_unknown_pps() function in Python it doesn't work with USRPs B210. It works perfectly well with X310s but somehow with B210s there is some time offset (few hundreds us) that changes from one program execution to another. I still have to check on different B210s and different Octoclocks but it requires some time and in the end I don't expect a surprise (probably I will just be more sure that it is fault of the B210). So even to get information from someone like: "I checked and it works for me" would help me and others a lot. -- Best Regards, Piotr Krysik _______________________________________________ USRP-users mailing list USRP-users@lists.ettus.com http://lists.ettus.com/mailman/listinfo/usrp-users_lists.ettus.com