Chinaunix首页 | 论坛 | 博客
  • 博客访问: 1146162
  • 博文数量: 177
  • 博客积分: 761
  • 博客等级: 上士
  • 技术积分: 1518
  • 用 户 组: 普通用户
  • 注册时间: 2011-02-04 22:37
文章分类

全部博文(177)

文章存档

2017年(1)

2016年(3)

2015年(33)

2014年(48)

2013年(60)

2012年(32)

分类: LINUX

2012-08-02 14:18:24

       上篇谈到历经折磨,挫折不断的安装路程。想必一路过关斩将的感觉少许有些成就感。在测试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升级,进入下面的链接将下载并解压升级
具体升级参考了的升级说明
cd /share/uhd/utils
./usrp_n2xx_net_burner.py --addr= --fw=
./usrp_n2xx_net_burner.py --addr= --fpga=
再次运行成功检测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





阅读(15870) | 评论(0) | 转发(1) |
给主人留下些什么吧!~~