Help: UHD, gnuradio and USRP

Dear all
i have a usrp and i have installed the uhd and gnuradio 3.2
when i use sudo uhd_usrp_probe in the terminal i have this output:

[email protected]:~/Desktop$ sudo uhd_usrp_probe
linux; GNU C++ version 4.4.3; Boost_104000; UHD_003.001.002-a3e1cb7

– Loading firmware image: /usr/local/share/uhd/images/usrp1_fw.ihx…
done
– Opening a USRP1 device…
– Loading FPGA image: /usr/local/share/uhd/images/usrp1_fpga.rbf…
done


/
| Device: usrp1 device
| _____________________________________________________
| /
| | Mboard: usrp1 mboard - 4d9dfb1f
| | serial: 4d9dfb1f
| | _____________________________________________________
| | /
| | | RX DSP: usrp1 ddc0 + hb
| | | Codec Rate: 64.000000 Msps
| | _____________________________________________________
| | /
| | | RX DSP: usrp1 ddc1 + hb
| | | Codec Rate: 64.000000 Msps
| | _____________________________________________________
| | /
| | | RX Dboard: usrp1 dboard (rx unit) - A
| | | ID: WBX, WBX + Simple GDB (0x0053)
| | | _____________________________________________________
| | | /
| | | | RX Subdev: WBX RX + Simple GDB
| | | | 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: usrp1 adc - ad9862 - slot A
| | | | Gain range PGA: 0.0 to 20.0 step 1.0 dB
| | _____________________________________________________
| | /
| | | RX Dboard: usrp1 dboard (rx unit) - B
| | | ID: RFX2400 (0x0027)
| | | Serial: E5R10Z8R2
| | | _____________________________________________________
| | | /
| | | | RX Subdev: RFX2400 (0x0027)
| | | | Antennas: TX/RX, RX2
| | | | Freq range: 2300.000 to 2900.000 Mhz
| | | | Gain range PGA0: 0.0 to 70.0 step 0.0 dB
| | | | Connection Type: c
| | | | Uses LO offset: No
| | | _____________________________________________________
| | | /
| | | | RX Codec: usrp1 adc - ad9862 - slot B
| | | | Gain range PGA: 0.0 to 20.0 step 1.0 dB
| | _____________________________________________________
| | /
| | | TX DSP: usrp1 duc0
| | | Codec Rate: 64.000000 Msps
| | _____________________________________________________
| | /
| | | TX DSP: usrp1 duc1
| | | Codec Rate: 64.000000 Msps
| | _____________________________________________________
| | /
| | | TX Dboard: usrp1 dboard (tx unit) - A
| | | ID: WBX (0x0052)
| | | _____________________________________________________
| | | /
| | | | TX Subdev: WBX TX + Simple GDB
| | | | 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: usrp1 dac - ad9862 - slot A
| | | | Gain range PGA: -20.0 to 0.0 step 0.1 dB
| | _____________________________________________________
| | /
| | | TX Dboard: usrp1 dboard (tx unit) - B
| | | ID: RFX2400 (0x002b)
| | | Serial: E5R10Z8R2
| | | _____________________________________________________
| | | /
| | | | TX Subdev: RFX2400 (0x002b)
| | | | Antennas: TX/RX
| | | | Freq range: 2300.000 to 2900.000 Mhz
| | | | Gain Elements: None
| | | | Connection Type: C
| | | | Uses LO offset: Yes
| | | _____________________________________________________
| | | /
| | | | TX Codec: usrp1 dac - ad9862 - slot B
| | | | Gain range PGA: -20.0 to 0.0 step 0.1 dB

and when i am running any python script i have this error:

Warning: Treating daughterboard with invalid EEPROM contents as if it
were a
“Basic Rx.”
Warning: This is almost certainly wrong… Use appropriate
burn-*-eeprom
utility.

Using RX d’board A: Unknown (0x0053)

so what is the solution ??
thanks a lot

On Thu, Jul 7, 2011 at 6:23 AM, Eng.Ziedan [email protected] wrote:

Dear all
i have a usrp and i have installed the uhd and gnuradio 3.2

gnuradio 3.2 does not have the UHD blockset, you need to install
gnuradio from source to use UHD:

http://code.ettus.com/redmine/ettus/projects/uhd/wiki#Gnuradio-UHD

It looks like you have UHD installed successfully already

and when i am running any python script i have this error:
Warning: Treating daughterboard with invalid EEPROM contents as if it were a
“Basic Rx.”
Warning: This is almost certainly wrong… Use appropriate burn-*-eeprom
utility.
Using RX d’board A: Unknown (0x0053)

so what is the solution ??

This error is because the python script you ran is trying to access
the usrp + WBX with libusrp1 from gnuradio 3.2, which does not support
WBX.

Jason

On 07/07/2011 9:23 AM, Eng.Ziedan wrote:

– Loading FPGA image: /usr/local/share/uhd/images/usrp1_fpga.rbf… done
| | | Codec Rate: 64.000000 Msps
| | | | RX Subdev: WBX RX + Simple GDB
| | /
| | | | Uses LO offset: No
| | | TX DSP: usrp1 duc1
| | | | Gain range PGA0: 0.0 to 25.0 step 0.1 dB
| | | Serial: E5R10Z8R2
| | | | TX Codec: usrp1 dac - ad9862 - slot B
Using RX d’board A: Unknown (0x0053)

so what is the solution ??
thanks a lot

The solution is to use programs that understand the UHD API, or to
convert the programs that you’re interested in to use UHD.

What happens if you use a simple “uhd_fft.py” on your system?

And I just noticed that you mentioned Gnu Radio 3.2. I was assuming that you’d
installed from recent source. You’ll need the very
latest Gnu Radio. If you don’t mind starting over from the beginning, you can
download the following script:

http://www.sbrac.org/files/build-gnuradio

Which will take care of building everything, installing, and making certain that
you have the pre-requisites. It will also uninstall anything
you’ve installed as a packaged binary, so that there won’t be any conflicts.

Hi Marcus,

I have got some problem with my GNURadio+UHD installation. I have seen
you mentioned this script for installation
several times, I am curious about how to use this script to easily
install GNU Radio+UHD?

Really appreciate your help!

Thanks,
Yan

On 07/07/2011 9:49 AM, Marcus D. Leech wrote:

– Opening a USRP1 device…
| | /
| | | _____________________________________________________
| | | | Gain range PGA: 0.0 to 20.0 step 1.0 dB
| | | | Gain range PGA0: 0.0 to 70.0 step 0.0 dB
| | _____________________________________________________
| | | | Antennas: TX/RX
| | | TX Dboard: usrp1 dboard (tx unit) - B
| | | _____________________________________________________
burn-*-eeprom utility.
What happens if you use a simple “uhd_fft.py” on your system?

And I just noticed that you mentioned Gnu Radio 3.2. I was assuming
that you’d installed from recent source. You’ll need the very
latest Gnu Radio. If you don’t mind starting over from the
beginning, you can download the following script:

http://www.sbrac.org/files/build-gnuradio

Which will take care of building everything, installing, and making
certain that you have the pre-requisites. It will also uninstall
anything
you’ve installed as a packaged binary, so that there won’t be any
conflicts.

On 08/07/2011 9:39 AM, Drury, Ian wrote:

File “uhd_fft.py”, line 23, in

Regards
Ian.

(Also posted this direct to Josh by mistake, sorry)

I haven’t tried an F15 setup yet, but make sure your PYTHONPATH is
correct–keep in mind that on 64-bit systems,
Fedora likes to use /usr/local/lib64 rather than /usr/local/lib

Hello Marcus,

I have just done an install using your script and it worked fine in that
it all the required software seemed to be installed and the build seemed
to run & complete OK for both UHD & GNU Radio.

I tried running gr-uhd/uhd_fft.py and got an error:

[[email protected] apps]# python uhd_fft.py
Traceback (most recent call last):
File “uhd_fft.py”, line 23, in
from gnuradio import gr, gru
ImportError: No module named gnuradio

This looks a bit fundamental, have I missed out on something, not set up
a path perhaps?

It’s a Fedora 15 setup. PYTHONPATH is set as in the build instructions.
One of my colleagues has run usrp2_fft.py successfully with the earlier
drivers on a USRP2 platform some time ago, so should the gr-uhd version
work OK the latest build?

Regards
Ian.

(Also posted this direct to Josh by mistake, sorry)

Update: GRC works fine; the command name has been updated to
‘gnuradio-companion’ NOT ‘grc’!

My only question remaining for now is what’s wrong with that
‘uhd_fft.py’ command. I don’t know much about python yet, so I’m having
trouble reading the error output.

Hello all,

I have installed using the build script by Marcus and am trying to get
GRC to run, but it is apparently not in my path. I tried adding it from
a package on my second system, but that resulted in various errors (and
now I realize from this thread that it should be already included by the
script). What is the location so I can check the path? I installed on
Ubuntu 11.04

Meanwhile, I’m checking the rest of the install. I have successfully
run the dial tone application (phone tones) here:

http://www.joshknows.com/gnuradio#example

I am able to run the probe command with the following output:

$ uhd_usrp_probe
linux; GNU C++ version 4.5.2; Boost_104200; UHD_003.001.002-90271a6

– Loading firmware image: /usr/local/share/uhd/images/usrp1_fw.ihx…
done
– Opening a USRP1 device…
– Loading FPGA image: /usr/local/share/uhd/images/usrp1_fpga.rbf…
done


/
| Device: usrp1 device
| _____________________________________________________
| /
| | Mboard: usrp1 mboard - 479bc565
| | serial: 479bc565
| | _____________________________________________________
| | /
| | | RX DSP: usrp1 ddc0 + hb
| | | Codec Rate: 64.000000 Msps
| | _____________________________________________________
| | /
| | | RX DSP: usrp1 ddc1 + hb
| | | Codec Rate: 64.000000 Msps
| | _____________________________________________________
| | /
| | | RX Dboard: usrp1 dboard (rx unit) - A
| | | ID: RFX1800 (0x0034)
| | | _____________________________________________________
| | | /
| | | | RX Subdev: RFX1800 (0x0034)
| | | | Antennas: TX/RX, RX2
| | | | Freq range: 1500.000 to 2100.000 Mhz
| | | | Gain range PGA0: 0.0 to 70.0 step 0.0 dB
| | | | Connection Type: c
| | | | Uses LO offset: No
| | | _____________________________________________________
| | | /
| | | | RX Codec: usrp1 adc - ad9862 - slot A
| | | | Gain range PGA: 0.0 to 20.0 step 1.0 dB
| | _____________________________________________________
| | /
| | | RX Dboard: usrp1 dboard (rx unit) - B
| | | _____________________________________________________
| | | /
| | | | RX Subdev: Unknown - Unknown (0xffff)
| | | | Antennas:
| | | | Freq range: 0.000 to 0.000 Mhz
| | | | Gain Elements: None
| | | | Connection Type: C
| | | | Uses LO offset: No
| | | _____________________________________________________
| | | /
| | | | RX Codec: usrp1 adc - ad9862 - slot B
| | | | Gain range PGA: 0.0 to 20.0 step 1.0 dB
| | _____________________________________________________
| | /
| | | TX DSP: usrp1 duc0
| | | Codec Rate: 64.000000 Msps
| | _____________________________________________________
| | /
| | | TX DSP: usrp1 duc1
| | | Codec Rate: 64.000000 Msps
| | _____________________________________________________
| | /
| | | TX Dboard: usrp1 dboard (tx unit) - A
| | | ID: RFX1800 (0x0035)
| | | _____________________________________________________
| | | /
| | | | TX Subdev: RFX1800 (0x0035)
| | | | Antennas: TX/RX
| | | | Freq range: 1500.000 to 2100.000 Mhz
| | | | Gain Elements: None
| | | | Connection Type: C
| | | | Uses LO offset: Yes
| | | _____________________________________________________
| | | /
| | | | TX Codec: usrp1 dac - ad9862 - slot A
| | | | Gain range PGA: -20.0 to 0.0 step 0.1 dB
| | _____________________________________________________
| | /
| | | TX Dboard: usrp1 dboard (tx unit) - B
| | | _____________________________________________________
| | | /
| | | | TX Subdev: Unknown - Unknown (0xffff)
| | | | Antennas:
| | | | Freq range: 0.000 to 0.000 Mhz
| | | | Gain Elements: None
| | | | Connection Type: C
| | | | Uses LO offset: No
| | | _____________________________________________________
| | | /
| | | | TX Codec: usrp1 dac - ad9862 - slot B
| | | | Gain range PGA: -20.0 to 0.0 step 0.1 dB

If I run uhd_fft.py I get the following:

$ uhd_fft.py
linux; GNU C++ version 4.5.2; Boost_104200; UHD_003.001.002-90271a6

Traceback (most recent call last):
File “/usr/local/bin/uhd_fft.py”, line 267, in
main ()
File “/usr/local/bin/uhd_fft.py”, line 263, in main
app = stdgui2.stdapp(app_top_block, “UHD FFT”, nstatus=1)
File
“/usr/local/lib/python2.7/dist-packages/gnuradio/wxgui/stdgui2.py”, line
36, in init
wx.App.init (self, redirect=False)
File
“/usr/lib/python2.7/dist-packages/wx-2.8-gtk2-unicode/wx/_core.py”, line
7978, in init
self._BootstrapApp()
File
“/usr/lib/python2.7/dist-packages/wx-2.8-gtk2-unicode/wx/_core.py”, line
7552, in _BootstrapApp
return core.PyApp__BootstrapApp(*args, **kwargs)
File
“/usr/local/lib/python2.7/dist-packages/gnuradio/wxgui/stdgui2.py”, line
39, in OnInit
frame = stdframe (self.top_block_maker, self.title, self._nstatus)
File
“/usr/local/lib/python2.7/dist-packages/gnuradio/wxgui/stdgui2.py”, line
60, in init
self.panel = stdpanel (self, self, top_block_maker)
File
“/usr/local/lib/python2.7/dist-packages/gnuradio/wxgui/stdgui2.py”, line
81, in init
self.top_block = top_block_maker (frame, self, vbox, sys.argv)
File “/usr/local/bin/uhd_fft.py”, line 70, in init
num_channels=1)
File
“/usr/local/lib/python2.7/dist-packages/gnuradio/uhd/init.py”, line
74, in constructor_interceptor
return old_constructor(*args, **kwargs)
File
“/usr/local/lib/python2.7/dist-packages/gnuradio/uhd/uhd_swig.py”, line
1834, in usrp_source
return _uhd_swig.usrp_source(*args, **kwargs)
RuntimeError: LookupError: KeyError: No devices found for ----->
Device Address:
addr: 192.168.10.2

Thanks for your help everyone,
David