I have the same question. What is the easiest way to modify benchmark_*.py
to make them work with UHD?

Tuan

On Mon, Nov 15, 2010 at 1:12 PM, Andrew Ge <g...@vt.edu> wrote:

> Nick, thanks for pointing this out.  Do you know whether there is some plan
> to update benchmark_tx/rx.py for UHD?
>
> Andrew
>
>
> On 11/15/2010 1:06 PM, Nick Foster wrote:
>
>> benchmark_tx uses the old USRP2 driver, not the UHD driver.
>>
>> --n
>>
>> On Mon, 2010-11-15 at 09:30 -0500, g...@vt.edu wrote:
>>
>>> Installed UHD following instructions from here:
>>>
>>> http://code.ettus.com/redmine/ettus/projects/uhd/wiki
>>>
>>> and firmware/images following instructions from here:
>>>
>>> http://www.ettus.com/uhd_docs/manual/html/usrp2.html
>>>
>>> GNU Radio was checked out from git master, so it is 3.3.1. Installed
>>> without
>>> error.
>>>
>>>
>>> After setting up PC IP, I am able to ping usrp2. Both uhd_find_devices
>>> and
>>> uhd_usrp_probe work, results are in the end.
>>>
>>> However, when I run sudo benchmark_tx.py, USRP2 (with WBX daughterboard)
>>> could
>>> not be found, results are next below.
>>>
>>> Any hints will be highly appreciated. I reinstalled both UHD and GNU
>>> Radio one
>>> time, same story. I tried to set options of -u, -a, and -e when running
>>> benchmark_tx.py, same story.
>>>
>>> -Andrew
>>>
>>>
>>>
>>> sudo benchmark_tx.py -f 434M
>>>
>>> ************************************************************************************
>>> usrp: failed to find usrp[0]
>>> Traceback (most recent call last):
>>>   File "./benchmark_tx.py", line 133, in<module>
>>>     main()
>>>   File "./benchmark_tx.py", line 97, in main
>>>     tb = my_top_block(mods[options.modulation], options)
>>>   File "./benchmark_tx.py", line 42, in __init__
>>>     self.txpath = usrp_transmit_path.usrp_transmit_path(modulator,
>>> options)
>>>   File
>>>
>>> "/home/titan/uhd/gnuradio/gnuradio-examples/python/digital/usrp_transmit_path.py",
>>> line 64, in __init__
>>>     self._setup_usrp_sink(options)
>>>   File
>>>
>>> "/home/titan/uhd/gnuradio/gnuradio-examples/python/digital/usrp_transmit_path.py",
>>> line 79, in _setup_usrp_sink
>>>     self.u = usrp_options.create_usrp_sink(options)
>>>   File "/usr/local/lib/python2.6/dist-packages/gnuradio/usrp_options.py",
>>> line
>>> 119, in create_usrp_sink
>>>     gain=options.tx_gain,
>>>   File
>>>
>>> "/usr/local/lib/python2.6/dist-packages/gnuradio/blks2impl/generic_usrp.py",
>>> line 195, in __init__
>>>     _generic_usrp_base.__init__(self, **kwargs)
>>>   File
>>>
>>> "/usr/local/lib/python2.6/dist-packages/gnuradio/blks2impl/generic_usrp.py",
>>> line 63, in __init__
>>>     except: raise Exception, 'Failed to automatically setup a usrp
>>> device.'
>>> Exception: Failed to automatically setup a usrp device.
>>>
>>> ************************************************************************************
>>>
>>>
>>>
>>> uhd_find_devices works fine, results:
>>>
>>> ************************************************************************************
>>> linux; GNU C++ version 4.4.5; Boost_104200; UHD_20101109.230702.c0dfc2c
>>>
>>> --------------------------------------------------
>>> -- UHD Device 0
>>> --------------------------------------------------
>>> Device Address:
>>>     type: usrp2
>>>     addr: 192.168.10.2
>>>     name:
>>>     serial: 00:50:c2:85:39:b9
>>>
>>> ************************************************************************************
>>>
>>> uhd_usrp_probe works, results:
>>>
>>> ************************************************************************************
>>> linux; GNU C++ version 4.4.5; Boost_104200; UHD_20101109.230702.c0dfc2c
>>>
>>> Target recv sock buff size: 50000000 bytes
>>> Actual recv sock buff size: 131071 bytes
>>>
>>> Warning:
>>>     The recv buffer is smaller than the requested size.
>>>     The minimum recommended buffer size is 50000000 bytes.
>>>     See the transport application notes on buffer resizing.
>>>     Please run: sudo sysctl -w net.core.rmem_max=50000000
>>>
>>>
>>> Warning:
>>>     error in pthread_setschedparam
>>>     Failed to set thread priority 0.5 (realtime):
>>>     Performance may be negatively affected.
>>>     See the general application notes.
>>>
>>>
>>> Warning:
>>>     error in pthread_setschedparam
>>>     Failed to set thread priority 0.5 (realtime):
>>>     Performance may be negatively affected.
>>>     See the general application notes.
>>>
>>>   _____________________________________________________
>>>  /
>>> |       Device: usrp2 device
>>> |     _____________________________________________________
>>> |    /
>>> |   |       Mboard: usrp2 mboard0 - rev 1024
>>> |   |   rev: 1024
>>> |   |   mac-addr: 00:50:c2:85:39:b9
>>> |   |   ip-addr: 255.255.255.255
>>> |   |   serial: 00:50:c2:85:39:b9
>>> |   |     _____________________________________________________
>>> |   |    /
>>> |   |   |       RX DSP: usrp2 ddc0
>>> |   |   |   Codec Rate: 100.000000 Msps
>>> |   |     _____________________________________________________
>>> |   |    /
>>> |   |   |       TX DSP: usrp2 duc0
>>> |   |   |   Codec Rate: 100.000000 Msps
>>> |   |     _____________________________________________________
>>> |   |    /
>>> |   |   |       RX Dboard: usrp2 dboard (rx unit)
>>> |   |   |     _____________________________________________________
>>> |   |   |    /
>>> |   |   |   |       RX Subdev: WBX (0x0053)
>>> |   |   |   |   Antennas: TX/RX, RX2
>>> |   |   |   |   Freq range: 68.750 to 2200.000 Mhz
>>> |   |   |   |   Gain range PGA0: 0.0 to 31.5 step 0.5 dB
>>> |   |   |   |   Connection Type: C
>>> |   |   |   |   Uses LO offset: No
>>> |   |   |     _____________________________________________________
>>> |   |   |    /
>>> |   |   |   |       RX Codec: usrp2 adc
>>> |   |   |   |   Gain Elements: None
>>> |   |     _____________________________________________________
>>> |   |    /
>>> |   |   |       TX Dboard: usrp2 dboard (tx unit)
>>> |   |   |     _____________________________________________________
>>> |   |   |    /
>>> |   |   |   |       TX Subdev: WBX (0x0052)
>>> |   |   |   |   Antennas: TX/RX
>>> |   |   |   |   Freq range: 68.750 to 2200.000 Mhz
>>> |   |   |   |   Gain range PGA0: 0.0 to 25.0 step 0.1 dB
>>> |   |   |   |   Connection Type: C
>>> |   |   |   |   Uses LO offset: No
>>> |   |   |     _____________________________________________________
>>> |   |   |    /
>>> |   |   |   |       TX Codec: usrp2 dac - ad9777
>>> |   |   |   |   Gain Elements: None
>>>
>>>
>>> ************************************************************************************
>>>
>>>
>>>
>>>
>>>
>>>
>>>
>>>
>>> _______________________________________________
>>> Discuss-gnuradio mailing list
>>> Discuss-gnuradio@gnu.org
>>> http://lists.gnu.org/mailman/listinfo/discuss-gnuradio
>>>
>>
>>
>
> _______________________________________________
> Discuss-gnuradio mailing list
> Discuss-gnuradio@gnu.org
> http://lists.gnu.org/mailman/listinfo/discuss-gnuradio
>
_______________________________________________
Discuss-gnuradio mailing list
Discuss-gnuradio@gnu.org
http://lists.gnu.org/mailman/listinfo/discuss-gnuradio

Reply via email to