参考: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信号