cd /usr/local/lib/uhd/examples
根据实际情况调整IP 测试时长 采样率 通道等参数设置
N310:
sudo ./benchmark_rate --args "type=n3xx,mgmt_addr=192.168.10.2,addr=192.168.10.2,master_clock_rate=125e6" --duration 60 --channels "0,1,2,3" --rx_rate 1.25e6 --rx_subdev "A:0 A:1 B:0 B:1" --tx_rate 1.25e6 --tx_subdev "A:0 A:1 B:0 B:1"
sudo ./benchmark_rate --args "type=n3xx,mgmt_addr=192.168.10.2,addr=192.168.10.2,master_clock_rate=122.88e6" --duration 60 --channels "0,1,2,3" --rx_rate 30.72e6 --rx_subdev "A:0 A:1 B:0 B:1" --tx_rate 30.72e6 --tx_subdev "A:0 A:1 B:0 B:1"
注意,N310不要在ssh到内置arm CPU的terminal执行这个命令,要在安装uhd的PC机或服务器上执行,否则以arm cpu的性能,会报很多的处理不足错误。
B210:
sudo ./benchmark_rate --args "type=b200" --duration 60 --channels "0,1" --rx_rate 10e6 --rx_subdev "A:A A:B" --tx_rate 10e6 --tx_subdev "A:A A:B"
sudo ./benchmark_rate --args "type=b200" --duration 60 --channels "0,1" --rx_rate 30.72e6 --rx_subdev "A:A A:B" --tx_rate 30.72e6 --tx_subdev "A:A A:B"
根据回显结果判断运行状态,特别是连接速度和CPU处理能力能否满足充分发挥USRP性能。