[USRP-users] B210 use sync_to_gps example?

Little Q kerryhuangjiahe at foxmail.com
Wed Nov 22 18:08:50 EST 2017


I am using USRP B210 with a GPSDO, and  I want to sync its time with other B210. 
But when I used the UHD example sync_to_gps, it always output "ValueError: get_time: Timeout after no valid message found"
I checked the NMEA, they are correct and the UTC time is right.
I wonder how to solve this problem.

UHD Log:
Creating the USRP device with: ...
[INFO] [UHDlinux; GNU C++ version 5.4.0 20160609; Boost_105800; UHD_3.11.0.git-233-g25fc32af] 
[INFO] [B200] Detected Device: B210
[INFO] [B200] Operating over USB 3.
[INFO] [B200] Detecting internal GPSDO.... 
[INFO] [GPS] Found a generic NMEA GPS device
[INFO] [B200] Initialize CODEC control...
[INFO] [B200] Initialize Radio control...
[INFO] [B200] Performing register loopback test... 
[INFO] [B200] pass
[INFO] [B200] Performing register loopback test... 
[INFO] [B200] pass
[INFO] [AD936X] Performing CODEC loopback test... 
[INFO] [AD936X] CODEC loopback test passed
[INFO] [AD936X] Performing CODEC loopback test... 
[INFO] [AD936X] CODEC loopback test passed
[INFO] [B200] Setting master clock rate selection to 'automatic'.
[INFO] [B200] Asking for clock rate 16.000000 MHz... 
[INFO] [B200] Actually got clock rate 16.000000 MHz.
[INFO] [CORES] Performing timer loopback test... 
[INFO] [CORES] Timer loopback test passed
[INFO] [CORES] Performing timer loopback test... 
[INFO] [CORES] Timer loopback test passed
Using Device: Single USRP:
  Device: B-Series Device
  Mboard 0: B210
  RX Channel: 0
    RX DSP: 0
    RX Dboard: A
    RX Subdev: FE-RX2
  RX Channel: 1
    RX DSP: 1
    RX Dboard: A
    RX Subdev: FE-RX1
  TX Channel: 0
    TX DSP: 0
    TX Dboard: A
    TX Subdev: FE-TX2
  TX Channel: 1
    TX DSP: 1
    TX Dboard: A
    TX Subdev: FE-TX1


Setting the reference clock source to "gpsdo"...

Clock source is now gpsdo
USRP Locked to GPSDO 10 MHz Reference.

Time source is now gpsdo
**************************************Helpful Notes on Clock/PPS Selection**************************************
As you can see, the default 10 MHz Reference and 1 PPS signals are now from the GPSDO.
If you would like to use the internal reference(TCXO) in other applications, you must configure that explicitly.
****************************************************************************************************************
Waiting for the GPSDO to warm up...
[WARNING] [GPS] update_cache: Malformed GPSDO string: $GPRMC,063931.00,A,4545.32799,N,12640.59889,E,0.056,,211117,,,A*7A
[WARNING] [GPS] update_cache: Malformed GPSDO string: $GPVTG,,T,,M,0.056,N,0.104,K,A*25
[WARNING] [GPS] update_cache: Malformed GPSDO string: $GPGSA,A,3,24,20,05,21,,,,,,,,,5.27,4.71,2.36*05
[WARNING] [GPS] update_cache: Malformed GPSDO string: $GPGSV,3,1,09,05,13,124,38,08,00,343,,20,62,135,36,21,46,248,31*7C
The GPSDO is warmed up and talking.
[WARNING] [GPS] update_cache: Malformed GPSDO string: $GPGSV,3,2,09,24,54,182,39,27,04,310,,28,12,042,22,42,36,161,32*7F
[WARNING] [GPS] update_cache: Malformed GPSDO string: $GPGSV,3,3,09,50,34,155,33*43
[WARNING] [GPS] update_cache: Malformed GPSDO string: $GPGLL,4545.32799,N,12640.59889,E,063931.00,A,A*65
[WARNING] [GPS] update_cache: Malformed GPSDO string: $GPZDA,063931.00,21,11,2017,00,00*6F
[WARNING] [GPS] update_cache: Malformed GPSDO string: $GPRMC,063932.00,A,4545.32798,N,12640.59881,E,0.057,,211117,,,A*71
[WARNING] [GPS] update_cache: Malformed GPSDO string: $GPVTG,,T,,M,0.057,N,0.106,K,A*26
[WARNING] [GPS] update_cache: Malformed GPSDO string: $GPGSA,A,3,24,20,05,21,,,,,,,,,5.28,4.72,2.36*09
[WARNING] [GPS] update_cache: Malformed GPSDO string: $GPGSV,3,1,09,05,13,124,38,08,00,343,,20,62,135,36,21,46,248,30*7D
[WARNING] [GPS] update_cache: Malformed GPSDO string: $GPGSV,3,2,09,24,54,182,39,27,04,310,,28,12,042,21,42,36,161,33*7D
[WARNING] [GPS] update_cache: Malformed GPSDO string: $GPGSV,3,3,09,50,34,155,33*43
[WARNING] [GPS] update_cache: Malformed GPSDO string: $GPGLL,4545.32798,N,12640.59881,E,063932.00,A,A*6F
[WARNING] [GPS] update_cache: Malformed GPSDO string: $GPZDA,06anks3932.00,21,11,2017,00,00*6C
[WARNING] [GPS] update_cache: Malformed GPSDO string: $GPRMC,063933.00,A,4545.32796,N,12640.59870,E,0.062,,211117,,,A*76
[WARNING] [GPS] update_cache: Malformed GPSDO string: $GPVTG,,T,,M,0.062,N,0.115,K,A*22
[WARNING] [GPS] update_cache: Malformed GPSDO string: $GPGSA,A,3,24,20,05,21,,,,,,,,,5.28,4.72,2.36*09
[WARNING] [GPS] update_cache: Malformed GPSDO string: $GPGSV,3,1,09,05,13,124,39,08,00,343,,20,62,135,36,21,46,248,31*7D
[WARNING] [GPS] update_cache: Malformed GPSDO string: $GPGSV,3,2,09,24,54,182,39,27,04,310,,28,12,042,21,42,36,161,33*7D
[WARNING] [GPS] update_cache: Malformed GPSDO string: $GPGSV,3,3,09,50,34,155,33*43
[WARNING] [GPS] update_cache: Malformed GPSDO string: $GPGLL,4545.32796,N,12640.59870,E,063933.00,A,A*6E
[WARNING] [GPS] update_cache: Malformed GPSDO string: $GPZDA,063933.00,21,11,2017,00,00*6D
[WARNING] [GPS] update_cache: Malformed GPSDO string: $GPRMC,063934.00,A,4545.32795,N,12640.59860,E,0.064,,211117,,,A*75
[WARNING] [GPS] update_cache: Malformed GPSDO string: $GPVTG,,T,,M,0.064,N,0.119,K,A*28
[WARNING] [GPS] update_cache: Malformed GPSDO string: $GPGSA,A,3,24,20,05,21,,,,,,,,,5.28,4.72,2.36*09
[WARNING] [GPS] update_cache: Malformed GPSDO string: $GPGSV,3,1,09,05,13,124,39,08,00,343,,20,62,135,36,21,46,248,30*7C
[WARNING] [GPS] update_cache: Malformed GPSDO string: $GPGSV,3,2,09,24,54,182,39,27,04,310,,28,12,042,20,42,36,161,32*7D
[WARNING] [GPS] update_cache: Malformed GPSDO string: $GPGSV,3,3,09,50,34,155,33*43
[WARNING] [GPS] update_cache: Malformed GPSDO string: $GPGLL,4545.32795,N,12640.59860,E,063934.00,A,A*6B
[WARNING] [GPS] update_cache: Malformed GPSDO string: $GPZDA,063934.00,21,11,2017,00,00*6A
GPS LockedError: ValueError: get_time: Timeout after no valid message found

Thanks,
Kerry Huang
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.ettus.com/pipermail/usrp-users_lists.ettus.com/attachments/20171123/232c150b/attachment-0002.html>


More information about the USRP-users mailing list