查询USRP是否锁定了GPS信号

参考:https://files.ettus.com/manual/page_rdtesting.html#rdtesting_devtest_manual

总体测试步骤:

  1.Without connecting the peripheral to the device, run uhd_usrp_probe on the device and verify that the lack of GPSDO is correctly reported under "sensors". No warning or error must be printed.

没装GPSDO时,probe的时候,sensor里面没有gps相关内容

2.This and the following tests are run with the peripheral connected: Run uhd_usrp_probe and verify that the GPSDO is correctly reported under "sensors". Power down the device before connecting the peripheral. The GPSDO must be reported found, and no error or warning must be printed.

装上GPSDO时,probe的时候,sensor里面出现gps相关内容

    3.OCXO only: Without connecting the GPS antenna input, run utils/query_gpsdo_sensors. To pass, it must report the GPSDO as found, lock to the external reference, but then report not being locked to GPS. The tool will report a valid GPS time, and a string such as "GPS and UHD Device time are aligned" in case of success.

    4.Connect a GPS antenna to the input and make sure it is in a position to receive GPS satellite data. Confirm that GPS lock is reported by running utils/query_gpsdo_sensors within 20 minutes of connecting the antenna. The tool query_gpsdo_sensors will print a string such as "GPS Locked" in case of success.

连上GPS天线后,再运行一个程序,查看信号状态。

实际实验:

USRP B210:

未装时钟源时:

未安装时运行/usr/local/lib/uhd/utils/query_gpsdo_sensors

安装后(TCXO):

 

USRP N310:

N310自带GPSDO,在probe的时候能直接显示出来

查看GPS信号:

关机状态下连接好GPS天线后

cd /usr/local/lib/uhd/utils

sudo ./query_gpsdo_sensors

即可验证并锁定GPS信号

  • 0
    点赞
  • 8
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值