环境:Ubuntu 10.04 (64-bit) + Gnu Radio  3.3.1

1、物理连接电源线 / 网线;配置宿主 IP 使得其能够同缺省 IP 为 192.168.10.2 的 N210 相互通信。

    ifconfig eth0 192.168.10.1 
    ping 192.168.10.2 (此时 USRP N210 应当有所反应,不然的话,断电查看网络连接情况)

2、安装宿主机所需的 UHD (基于 UDP): 
    git clone git://code.ettus.com/ettus/uhd.git 
    cd <uhd-path>/host 
    mkdir build 
    cd build 
    cmake ../ 
    make 
    make test 
    sudo make install 
    uhd_find_devices

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 
-------------------------------------------------- 
-- UHD Device 0 
-------------------------------------------------- 
Device Address: 
    type: usrp2 
    addr: 192.168.10.2 
    name: 
    serial: xxxxxxxxxx

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

  _____________________________________________________
/
|       Device: USRP2/N Series device
|     _____________________________________________________
|    /
|   |       Mboard: USRP-N210 mboard
|   |   rev: 2561
|   |   mac-addr: a0:36:fa:25:31:64
|   |   ip-addr: 192.168.10.2
|   |   serial: xxxxxxxxxx
|   |     _____________________________________________________
|   |    /
|   |   |       RX DSP: USRP-N210 ddc0
|   |   |   Codec Rate: 100.000000 Msps
|   |     _____________________________________________________
|   |    /
|   |   |       TX DSP: USRP-N210 duc0
|   |   |   Codec Rate: 100.000000 Msps
|   |     _____________________________________________________
|   |    /
|   |   |       RX Dboard: USRP-N210 dboard (rx unit)
|   |   |     _____________________________________________________
|   |   |    /
|   |   |   |       RX Subdev: RFX900 (0x0025)
|   |   |   |   Antennas: TX/RX, RX2
|   |   |   |   Freq range: 750.000 to 1050.000 Mhz
|   |   |   |   Gain range PGA0: 0.0 to 70.0 step 0.0 dB
|   |   |   |   Connection Type: c
|   |   |   |   Uses LO offset: No
|   |   |     _____________________________________________________
|   |   |    /
|   |   |   |       RX Codec: USRP-N210 adc - ads62p44
|   |   |   |   Gain range digital: 0.0 to 6.0 step 0.5 dB
|   |   |   |   Gain range digital-fine: 0.0 to 0.5 step 0.1 dB
|   |     _____________________________________________________
|   |    /
|   |   |       TX Dboard: USRP-N210 dboard (tx unit)
|   |   |     _____________________________________________________
|   |   |    /
|   |   |   |       TX Subdev: RFX900 (0x0029)
|   |   |   |   Antennas: TX/RX
|   |   |   |   Freq range: 750.000 to 1050.000 Mhz
|   |   |   |   Gain Elements: None
|   |   |   |   Connection Type: C
|   |   |   |   Uses LO offset: Yes
|   |   |     _____________________________________________________
|   |   |    /
|   |   |   |       TX Codec: USRP-N210 dac - ad9777
|   |   |   |   Gain Elements: None

8、标识成功!!!此时,便可观察到 LED 灯在闪烁:

LED A: transmitting 
LED B: mimo cable link 
LED C: receiving 
LED D: firmware loaded 
LED E: reference lock 
LED F: CPLD loaded

9. 在 “/home/raullen/Desktop/uhd/host/build/examples”中有一些有趣的历程。它们可以被用来测试 USRP N210 的功能,诸如“./latency_test”便可提供如下信息:

Actual TX Rate: 25.000000 Msps... 
Actual RX Rate: 25.000000 Msps... 
ACK 1000, UNDERFLOW 0, TIME_ERR 0, other 0

在此略感不便的是 "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. “

参阅资料:







注:UN200: How to Make USRP N210 Running(原文出处,翻译整理仅供参考!)