Re: [USRP-users] API for PPS input validation
Dario, Perhaps with the time source set to external, you can just check the time of the last PPS (get_time_last_pps) and if it's more than 1 sec old (relative to get_time_now), there is no PPS detected. Rob On Tue, Nov 7, 2017 at 11:02 AM, Dario Fertonani via USRP-users < usrp-users@lists.ettus.com> wrote: > On B210, the function > > get_mboard_sensor_names( ) > > returns only "ref_locked" (output confirmed by "uhd_usrp_probe"), so it > seems the answer to the question in this thread is negative. Can anybody > please confirm whether this is correct? It would be very useful to know if > the PPS signal input is actually being used. > > Thanks, > Dario > > On Sat, Nov 4, 2017 at 9:50 AM, Dario Fertonani> wrote: > >> I was wondering if it's possible to check via software API whether the >> PPS reference input is connected. Something along the lines of the API that >> checks whether the 10 MHz reference input is connected (see red part of the >> snippet below). >> >> Thanks, >> Dario >> >> rfBoardPtr->set_clock_source( "external" ); >> //more code, and give the board time to lock to the reference input >> assert( rfBoardPtr->get_mboard_sensor( "ref_locked" ).to_bool( ) ); >> > > > ___ > USRP-users mailing list > USRP-users@lists.ettus.com > http://lists.ettus.com/mailman/listinfo/usrp-users_lists.ettus.com > > ___ USRP-users mailing list USRP-users@lists.ettus.com http://lists.ettus.com/mailman/listinfo/usrp-users_lists.ettus.com
Re: [USRP-users] API for PPS input validation
On B210, the function get_mboard_sensor_names( ) returns only "ref_locked" (output confirmed by "uhd_usrp_probe"), so it seems the answer to the question in this thread is negative. Can anybody please confirm whether this is correct? It would be very useful to know if the PPS signal input is actually being used. Thanks, Dario On Sat, Nov 4, 2017 at 9:50 AM, Dario Fertonaniwrote: > I was wondering if it's possible to check via software API whether the PPS > reference input is connected. Something along the lines of the API that > checks whether the 10 MHz reference input is connected (see red part of the > snippet below). > > Thanks, > Dario > > rfBoardPtr->set_clock_source( "external" ); > //more code, and give the board time to lock to the reference input > assert( rfBoardPtr->get_mboard_sensor( "ref_locked" ).to_bool( ) ); > ___ USRP-users mailing list USRP-users@lists.ettus.com http://lists.ettus.com/mailman/listinfo/usrp-users_lists.ettus.com
[USRP-users] API for PPS input validation
I was wondering if it's possible to check via software API whether the PPS reference input is connected. Something along the lines of the API that checks whether the 10 MHz reference input is connected (see red part of the snippet below). Thanks, Dario rfBoardPtr->set_clock_source( "external" ); //more code, and give the board time to lock to the reference input assert( rfBoardPtr->get_mboard_sensor( "ref_locked" ).to_bool( ) ); ___ USRP-users mailing list USRP-users@lists.ettus.com http://lists.ettus.com/mailman/listinfo/usrp-users_lists.ettus.com