[USRP-users] Is get_mboard_sensor( "gps_time" ) a blocking call?

Dario Fertonani dario.fertonani at gmail.com
Wed Nov 22 10:54:27 EST 2017


Toy C++ example attached, with g++ compiling info commented out at the top.
The code does nothing besides logging the blocking time of the
get_mboard_sensor( "gps_time" ) call.
This definitely blocks on B210 with GPSDO, UHD 3.10.2, x86 host.

On Wed, Nov 22, 2017 at 5:43 AM, ROBIN TORTORA <tilla at comcast.net> wrote:

> Our apps that poll for location get the string periodically and look for
> when the string changes...  I dont recall it blocking...
>
>
> It is typically updated once per second, but it doesnt always update every
> second, sometimes there are misses.
>
>
> We are on the older 3.9 branch, but they have made some updates in 3.10
> that may have made the misses occur less frequently according to release
> notes...
>
> On November 21, 2017 at 10:36 PM Dario Fertonani via USRP-users <
> usrp-users at lists.ettus.com> wrote:
>
> Yes, but that doesn't imply a blocking call. For example, PPS hits also
> occur once per second, but the relevant read-value call get_time_last_pps(
> ) isn't blocking, it just returns the last value read.
> The API isn't consistent, but I think I got my answer from experimenting.
>
> On Tue, Nov 21, 2017 at 7:19 PM, Marcus D. Leech via USRP-users <
> usrp-users at lists.ettus.com> wrote:
>
> On 11/21/2017 10:12 PM, Dario Fertonani via USRP-users wrote:
>
> From experiments it seems that the subject call blocks until the next GPS
> whole second hits. Is that correct?
>
> Thanks,
> Dario
>
> The relevant NMEA message from the GPSDO only occurs once per second.
>
>
>
> _______________________________________________
> USRP-users mailing list
> USRP-users at lists.ettus.com
> http://lists.ettus.com/mailman/listinfo/usrp-users_lists.ettus.com
>
>
> _______________________________________________
> USRP-users mailing list
> USRP-users at lists.ettus.com
> http://lists.ettus.com/mailman/listinfo/usrp-users_lists.ettus.com
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.ettus.com/pipermail/usrp-users_lists.ettus.com/attachments/20171122/52b1e6fa/attachment-0002.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: gpsTest.cpp
Type: text/x-c++src
Size: 1149 bytes
Desc: not available
URL: <http://lists.ettus.com/pipermail/usrp-users_lists.ettus.com/attachments/20171122/52b1e6fa/attachment.cpp>


More information about the USRP-users mailing list