usrp N210 牛刀小试

       上篇谈到历经折磨,挫折不断的安装路程。想必一路过关斩将的感觉少许有些成就感。在测试usrp n210是否成功安装,那就来执行一些例程验证。
       将千兆网卡接上N210,PC机最好有双网卡否这比较难以想像来回拔插网线(难以保证不切换,因为菜鸟的我不能保证一次ok,需要google帮忙,百度协助)为能够使用双网卡请不要将两个网卡均设置为同一网段,我192.168.1.x网段是上外网的,需要查资料。而千兆设置为192.168.10.x网段即可。N210的缺省ip据说为192.168.10.2,不确定是不是我直接给它设置了个ip,ping通了。
$ sudo ./usrp2_recovery.py --ifc=eth0 --new-ip=192.168.10.3
[sudo] password for xxxx:
('Opening raw socket on interface:', 'eth0')
('Loading packet with ip address:', '192.168.10.3')
Sending packet (22 bytes)
Done

$ ping 192.168.10.3
PING 192.168.10.3 (192.168.10.3) 56(84) bytes of data.
64 bytes from 192.168.10.3: icmp_req=1 ttl=32 time=1.59 ms
64 bytes from 192.168.10.3: icmp_req=2 ttl=32 time=1.04 ms
64 bytes from 192.168.10.3: icmp_req=3 ttl=32 time=1.06 ms
^C
--- 192.168.10.3 ping statistics ---
3 packets transmitted, 3 received, 0% packet loss, time 2003ms
rtt min/avg/max/mdev = 1.049/1.234/1.592/0.253 ms

接下来看看是否能检测到N210设备呢,执行/usr/local/bin目录下的./uhd_usrp_probe发现fpga fw不匹配
于是给N210升级,进入下面的链接将uhd_003.004.003-release_Ubuntu-10.04-x86_64.deb下载并解压升级 http://files.ettus.com/binaries/uhd_stable/latest_release/
具体升级参考了http://kb.microembedded.com/usrp2uhdmanual的升级说明
cd <install-path>/share/uhd/utils
./usrp_n2xx_net_burner.py --addr=<ip address> --fw=<path for firmware image>
./usrp_n2xx_net_burner.py --addr=<ip address> --fpga=<path to FPGA image>
再次运行成功检测N210设备
$ ./uhd_usrp_probe
linux; GNU C++ version 4.6.3; Boost_104601; UHD_003.004.003-0-unknown

-- Opening a USRP2/N-Series device...
-- Current recv frame size: 1472 bytes
-- Current send frame size: 1472 bytes

UHD Warning:
    The recv buffer could not be resized sufficiently.
    Target sock buff size: 50000000 bytes.
    Actual sock buff size: 131071 bytes.
    See the transport application notes on buffer resizing.
    Please run: sudo sysctl -w net.core.rmem_max=50000000

UHD Warning:
    The recv buffer could not be resized sufficiently.
    Target sock buff size: 50000000 bytes.
    Actual sock buff size: 131071 bytes.
    See the transport application notes on buffer resizing.
    Please run: sudo sysctl -w net.core.rmem_max=50000000

UHD Warning:
    The send buffer could not be resized sufficiently.
    Target sock buff size: 1048576 bytes.
    Actual sock buff size: 131071 bytes.
    See the transport application notes on buffer resizing.
    Please run: sudo sysctl -w net.core.wmem_max=1048576

UHD Warning:
    Unable to set the thread priority. Performance may be negatively affected.
    Please see the general application notes in the manual for instructions.
    EnvironmentError: OSError: error in pthread_setschedparam
  _____________________________________________________
 /
|       Device: USRP2 / N-Series Device
|     _____________________________________________________
|    /
|   |       Mboard: USRP-N210-REV4
|   |   hardware: 2577
|   |   mac-addr: a0:36:fa:25:3e:94
|   |   ip-addr: 192.168.10.3
|   |   gpsdo: none
|   |   serial: E9R1EQ4UP
|   |  
|   |   Time sources: none, external, _external_, mimo
|   |   Clock sources: internal, external, mimo
|   |   Sensors: mimo_locked, ref_locked
|   |     _____________________________________________________
|   |    /
|   |   |       RX DSP: 0
|   |   |   Freq range: -50.000 to 50.000 Mhz
|   |     _____________________________________________________
|   |    /
|   |   |       RX DSP: 1
|   |   |   Freq range: -50.000 to 50.000 Mhz
|   |     _____________________________________________________
|   |    /
|   |   |       RX Dboard: A
|   |   |   ID: XCVR2450 (0x0061)
|   |   |   Serial: E8R12Z1XX
|   |   |     _____________________________________________________
|   |   |    /
|   |   |   |       RX Subdev: 0
|   |   |   |   Name: XCVR2450 (0x0061)
|   |   |   |   Antennas: J1, J2
|   |   |   |   Sensors: lo_locked, rssi
|   |   |   |   Freq range: 2400.000 to 6000.000 Mhz
|   |   |   |   Gain range LNA: 0.0 to 30.5 step 15.0 dB
|   |   |   |   Gain range VGA: 0.0 to 62.0 step 2.0 dB
|   |   |   |   Connection Type: IQ
|   |   |   |   Uses LO offset: No
|   |   |     _____________________________________________________
|   |   |    /
|   |   |   |       RX Codec: A
|   |   |   |   Name: ads62p44
|   |   |   |   Gain range digital: 0.0 to 6.0 step 0.5 dB
|   |   |   |   Gain range fine: 0.0 to 0.5 step 0.1 dB
|   |     _____________________________________________________
|   |    /
|   |   |       TX DSP: 0
|   |   |   Freq range: -250.000 to 250.000 Mhz
|   |     _____________________________________________________
|   |    /
|   |   |       TX Dboard: A
|   |   |   ID: XCVR2450 (0x0060)
|   |   |   Serial: E8R12Z1XX
|   |   |     _____________________________________________________
|   |   |    /
|   |   |   |       TX Subdev: 0
|   |   |   |   Name: XCVR2450 (0x0060)
|   |   |   |   Antennas: J1, J2
|   |   |   |   Sensors: lo_locked
|   |   |   |   Freq range: 2400.000 to 6000.000 Mhz
|   |   |   |   Gain range VGA: 0.0 to 30.0 step 0.5 dB
|   |   |   |   Gain range BB: 0.0 to 5.0 step 1.5 dB
|   |   |   |   Connection Type: QI
|   |   |   |   Uses LO offset: No
|   |   |     _____________________________________________________
|   |   |    /
|   |   |   |       TX Codec: A
|   |   |   |   Name: ad9777
|   |   |   |   Gain Elements: None





<script type=text/javascript charset=utf-8 src="http://static.bshare.cn/b/buttonLite.js#style=-1&uuid=&pophcol=3&lang=zh"></script> <script type=text/javascript charset=utf-8 src="http://static.bshare.cn/b/bshareC0.js"></script>
阅读(3653) | 评论(0) | 转发(0) |
给主人留下些什么吧!~~
评论热议
发布了156 篇原创文章 · 获赞 14 · 访问量 31万+
展开阅读全文

没有更多推荐了,返回首页

©️2019 CSDN 皮肤主题: 大白 设计师: CSDN官方博客

分享到微信朋友圈

×

扫一扫,手机浏览