discuss-gnuradio
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Discuss-gnuradio] Using UHD failed to find USRP2


From: Tom Rondeau
Subject: Re: [Discuss-gnuradio] Using UHD failed to find USRP2
Date: Wed, 17 Nov 2010 09:21:50 -0800

On Wed, Nov 17, 2010 at 8:37 AM, Josh Blum <address@hidden> wrote:
> I long run plan is to replace benchmark* and tunnel apps with UHD and
> message passing blocks. For now, if you want to go about modding the
> examples to work with UHD, look for generic_usrp.py and usrp_options.py. You
> can wedge a uhd source and sink block in there in parallel with the usrp1
> and 2 drivers. -Josh


Yes, we want to eventually replace all existing examples and utilities
using USRP/USRP2 with the UHD driver. There are quite a few of these
programs to modify and get properly working.

So... I'm hoping that people will offer to help with the transition
process. If you do rework some of the existing functions and examples
with UHD, we would really appreciate you contributing it back to the
project, which will significantly speed up the work.

Thanks!
Tom



> On 11/17/2010 07:27 AM, Tuan Ta wrote:
>>
>> 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<address@hidden>  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, address@hidden 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
>>>>> address@hidden
>>>>> http://lists.gnu.org/mailman/listinfo/discuss-gnuradio
>>>>>
>>>>
>>>>
>>>
>>> _______________________________________________
>>> Discuss-gnuradio mailing list
>>> address@hidden
>>> http://lists.gnu.org/mailman/listinfo/discuss-gnuradio
>>>
>>
>>
>>
>> _______________________________________________
>> Discuss-gnuradio mailing list
>> address@hidden
>> http://lists.gnu.org/mailman/listinfo/discuss-gnuradio
>
> _______________________________________________
> Discuss-gnuradio mailing list
> address@hidden
> http://lists.gnu.org/mailman/listinfo/discuss-gnuradio
>



reply via email to

[Prev in Thread] Current Thread [Next in Thread]