使用uhd库对USRP N310/B210进行基础测试

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性能。

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值