Let's keep the usrp-users list included on these communications -- there are plenty of folks far more experienced than myself who may have valuable input.
Why don't we look at this from the standpoint of your requirements. What is your end goal with synchronizing your two devices? Do you need time alignment of samples, phase coherence between channels, a consistent start time between your two benchmarking programs, or something else? Discussing your application and end goal would be helpful here as well. -Sam On Tue, Aug 20, 2019 at 2:18 PM Jiang, Fengyang <[email protected]> wrote: > Hi Sam, > > Thank you for your help! Indeed I'm using benchmark scripts and I think > adding arguments will help. I'm using two seperated commands for > transmitting and receiving, so if I use: > > python3 benchmark_tx_copied_from_ins.py -f 2.45G > --args="addr=192.168.10.3, clock_source=external, time_source=external" > --tx-gain=40 --bandwidth=1M > python3 benchmark_rx_copied_from_ins.py -f 2.45G > --args="addr=192.168.10.2, clock_source=external, time_source=external" > --rx-gain=40 --bandwidth=1M > > will that satisfy my requirements? Thank you so much! > > Best regards, > Fengyang > ------------------------------ > *发件人:* Sam Reiter <[email protected]> > *发送时间:* 2019年8月20日 14:43 > *收件人:* Jiang, Fengyang <[email protected]> > *主题:* Re: [USRP-users] A Question about Synchronization > > How you implement this will depend on what makes the most sense for your > application. If you're just getting started running shipping examples, you > can add device arguments for clock_source and time_source to specify > external time sources. For example: > > ./benchmark_rate --rx_rate=1e6 --tx_rate=1e6 --args > addr0=192.168.10.2,addr1=192.168.10.3,clock_source0=external,time_source0=external,clock_source1=external,time_source1=external > > As you move on from shipping examples, you would want to include > > usrp->set_clock_source("external"); > usrp->set_time_source("external"); > > at the appropriate place in your code to configure timing. > > -Sam > > On Tue, Aug 20, 2019 at 1:09 PM Jiang, Fengyang via USRP-users < > [email protected]> wrote: > > Hi all, > > I'm trying to synchronize 2 USRP N210 devices using the OctoClock-G > CDA-2990 as external 10MHz reference and PPS sources. It is said that I > need to set up two configurations: > > usrp->set_clock_source("external"); > usrp->set_time_source("external"); > > Which file in which path should I modify in order to apply these > configurations? Thanks a lot! > > Best regards, > Fengyang Jiang > _______________________________________________ > USRP-users mailing list > [email protected] > http://lists.ettus.com/mailman/listinfo/usrp-users_lists.ettus.com > <https://nam01.safelinks.protection.outlook.com/?url=http%3A%2F%2Flists.ettus.com%2Fmailman%2Flistinfo%2Fusrp-users_lists.ettus.com&data=02%7C01%7Cfzj28%40psu.edu%7C289a9a49c5fa46b4744108d7259e57f3%7C7cf48d453ddb4389a9c1c115526eb52e%7C0%7C1%7C637019234325754870&sdata=WLHShWdleLNLl3jhiGls9YgSIa2AwaJTAoImXzjZHRc%3D&reserved=0> > >
_______________________________________________ USRP-users mailing list [email protected] http://lists.ettus.com/mailman/listinfo/usrp-users_lists.ettus.com
