环境:Ubuntu 10.04 (64-bit) + Gnu Radio 3.3.1 1、物理连接电源线 / 网线;配置宿主 IP 使得其能够同缺省 IP 为 192.168.10.2 的 N210 相互通信。 ifconfig eth0 192.168.10.1 2、安装宿主机所需的 UHD (基于 UDP): 3、如若 uhd_find_devices 给出如下错误信息,这便表明该 USRP N210 需对其 Firmware 升级: Warning: Ignoring discovered device Expected protocol compatibility number 8, but got 7: The firmware build is not compatible with the host code build. No UHD Devices Found 4、下载最新的固件并安装。 比如从如下站点 http://www.ettus.com/downloads/uhd_images/UHD-images-most-recent/ 便可下载:UHD-images-002.20110122035832.cd5631f-Linux.deb 5、烧结固件(firmware)及 fpga image 映像文件: ./usrp_n2xx_net_burner.py --ip=192.168.10.2 --fpga /home/raullen/Desktop/UHD-images-002.20110122035832.cd5631f-Linux/share/uhd/images/usrp_n210_fpga.bin ./usrp_n2xx_net_burner.py --ip=192.168.10.2 --fw /home/raullen/Desktop/UHD-images-002.20110122035832.cd5631f-Linux/share/uhd/images/usrp_n2xx_fw.bin 6、uhd_find_devices linux; GNU C++ version 4.4.3; Boost_104000; UHD_003.20110217015719.e11ced6 7、uhd_usrp_probe linux; GNU C++ version 4.4.3; Boost_104000; UHD_003.20110217015719.e11ced6 Target recv sock buff size: 50000000 bytes Actual recv sock buff size: 131071 bytes Warning: The recv buffer could not be resized sufficiently. See the transport application notes on buffer resizing. Please run: sudo sysctl -w net.core.rmem_max=50000000 mboard0 MIMO master _____________________________________________________ 8、标识成功!!!此时,便可观察到 LED 灯在闪烁: LED A: transmitting 9. 在 “/home/raullen/Desktop/uhd/host/build/examples”中有一些有趣的历程。它们可以被用来测试 USRP N210 的功能,诸如“./latency_test”便可提供如下信息: Actual TX Rate: 25.000000 Msps... 在此略感不便的是 "find_usrps" 和 "usrp2_fft.py" 皆涉及 USRP2 的经典 API,这些同 UHD 设备不兼用。 10、I did’t find any working python script using UHD but got the following saying from Tom Rondeau: “The gr-uhd code will not be in release 3.3.1 but will be in 3.4.0. I can't tell you when 3.4.0 is coming out just yet, but I hope that it will not be too far away. “ 参阅资料: UHD 中文维客(http://code.ettus.com/redmine/ettus/projects/uhd/wiki#Gnuradio-UHD ) UHD USRP2 应用注解(http://www.ettus.com/uhd_docs/manual/html/usrp2.html) http://opensource.zylin.com/zpudownload.html 注:UN200: How to Make USRP N210 Running(原文出处,翻译整理仅供参考!) |