discuss-gnuradio
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Discuss-gnuradio] get GPS time from GPSDO module


From: Bastien Auneau
Subject: Re: [Discuss-gnuradio] get GPS time from GPSDO module
Date: Thu, 28 Jul 2011 22:00:51 +0200

Screenshot-1
  code
Screenshot-2
  successful run
Screenshot-3
  runtime error

On 28 July 2011 21:06, Nick Foster <address@hidden> wrote:
On Thu, 2011-07-28 at 20:13 +0200, Bastien Auneau wrote:
> I use :
> uhd::sensor_value_t val = usrp->get_mboard_sensor("gps_time");
> std::cout << val.to_pp_string() << std::endl;
>
>
> I got first an unhandled exception runtime error
> at second run, it outputs :
> GPS time: 2077252342 seconds
>
>
> and these two in a row at each try
>
>
> Also, the value returned 2077252342 never increase
> And I did not plug the GPS antenna, so the GPSDO is not locked
>
>
> How can I get is stable ?
> Why runtime error pops up half of the time ?
What runtime error are you seeing? Please cut and paste the error.

> should I plug the antenna and wait for GPS lock ?
Only if you really care what time it is.

> How do I check if GPS is locked ?
get_mboard_sensor("gps_locked")

--n

>
>
> On 28 July 2011 19:44, Nick Foster <address@hidden> wrote:
>
>         On Thu, 2011-07-28 at 19:03 +0000, Bastien Auneau wrote:
>         > Hi All
>         >
>         > I cannot find in latest version (downloaded the 28/07/2011)
>         how to get
>         > UTC time from GPSDO.
>         >
>         > There used to be a get_time() function in gps_ctrl, but not
>         anymore
>         > How should I do to get GPS time ?
>
>
>         The mboard_sensors interface should be used.
>         get_mboard_sensor("gps_time") should get you what you're
>         looking for.
>
>         --n
>
>         >
>         > Regards
>         > Bastien
>         >
>         > _______________________________________________
>         > Discuss-gnuradio mailing list
>         > address@hidden
>         > https://lists.gnu.org/mailman/listinfo/discuss-gnuradio
>
>
>
>



Attachment: Screenshot-1.png
Description: PNG image

Attachment: Screenshot-2.png
Description: PNG image

Attachment: Screenshot-3.png
Description: PNG image


reply via email to

[Prev in Thread] Current Thread [Next in Thread]