Running usrp2_wfm_rcv.py

Hello,

-I tried to run usrp2_wfm_rcv.py to test my USRP2 with a BasicRX board
and I got the following error.
¨AttributeError: ‘usrp2_source_32fc_sptr’ object has no attribute
'adc_rate’¨

-After I set the adc_rate=100e6, I got the following error:

AttributeError: ‘usrp2_source_32fc_sptr’ object has no attribute
‘daughterboard_id’

-Testing ./find-usrps script is running fine with following result.
00:50:c2:85:30:0a hw_rev = 0x0300

My configuration is
-Ubuntu 8.04, with the latest svn (7 days old)-USRP2 with a BasicRX

  • I am using Netgear Gigabit switch to connect to fast Ethernet port on
    my laptop. I could not directly connect my Gigabit PCMCIA card to USRP2.

Please let me know how I can fix the error AttributeError:
‘usrp2_source_32fc_sptr’ object has no attribute ‘daughterboard_id’

Thank you,
-Catalin

For both those functions you need to pass in the variable you want
assigned the value as an input parameter.

Look at gnuradio/trunk/gr-usrp2/src/usrp2_source_base.cc for the
function definitions of adc_rate and daughterboard_id.

Tim

From: discuss-gnuradio-bounces+trnewman=removed_email_address@domain.invalid
[mailto:discuss-gnuradio-bounces+trnewman=removed_email_address@domain.invalid] On Behalf Of
Catalin LACATUS
Sent: Thursday, November 13, 2008 8:48 AM
To: [email protected]
Subject: [Discuss-gnuradio] Running usrp2_wfm_rcv.py

Hello,

-I tried to run usrp2_wfm_rcv.py to test my USRP2 with a BasicRX board
and I got the following error.
¨AttributeError: ‘usrp2_source_32fc_sptr’ object has no attribute
'adc_rate’¨

-After I set the adc_rate=100e6, I got the following error:

AttributeError: ‘usrp2_source_32fc_sptr’ object has no attribute
‘daughterboard_id’

-Testing ./find-usrps script is running fine with following result.
00:50:c2:85:30:0a hw_rev = 0x0300

My configuration is
-Ubuntu 8.04, with the latest svn (7 days old)-USRP2 with a BasicRX

  • I am using Netgear Gigabit switch to connect to fast Ethernet port on
    my laptop. I could not directly connect my Gigabit PCMCIA card to USRP2.

Please let me know how I can fix the error AttributeError:
‘usrp2_source_32fc_sptr’ object has no attribute ‘daughterboard_id’

Thank you,
-Catalin

On Thu, 2008-11-13 at 08:48 -0500, Catalin LACATUS wrote:

-I tried to run usrp2_wfm_rcv.py to test my USRP2 with a BasicRX board
and I got the following error.
¨AttributeError: ‘usrp2_source_32fc_sptr’ object has no attribute
'adc_rate’¨

This likely a bug in the host driver for the USRP2; I will work on this
today.

-Johnathan

On Thu, 2008-11-13 at 10:12 -0500, Newman, Timothy wrote:

For both those functions you need to pass in the variable you want
assigned the value as an input parameter.

Look at gnuradio/trunk/gr-usrp2/src/usrp2_source_base.cc for the
function definitions of adc_rate and daughterboard_id.

Actually, that is correct for the C++ API, but for Python we add a small
shim to make it return the value instead of passing a pointer into it.
So the code in usrp2_fft.py is calling it correctly.

-Johnathan

On Thu, Nov 13, 2008 at 5:48 AM, Catalin LACATUS
[email protected] wrote:

-I tried to run usrp2_wfm_rcv.py to test my USRP2 with a BasicRX board and I
got the following error.
¨AttributeError: ‘usrp2_source_32fc_sptr’ object has no attribute
'adc_rate’¨

Could you please confirm which repository revision of software you are
using? Change into the top level directory that you checked out the
source code into, and type:

$ svn info

On the surface, this looks like a version mismatch between the
usrp2_fft.py script and the rest of GNU Radio. It could be other
things as well, however.

-Johnathan

Hello,

I attached the results of svn info for:

gnuradio
usrp2_wfm_rcv.py
usrp2_fft.py

The reversions are below.

gnuradio

Repository Root: http://gnuradio.org/svn

Repository UUID: 221aa14e-8319-0410-a670-987f0aec2ac5

Revision: 9900

Node Kind: directory

Schedule: normal

Last Changed Author: jcorgan

Last Changed Rev: 9863

Last Changed Date: 2008-10-26 23:09:27 -0400 (Sun, 26 Oct 2008)

usrp2_wfm_rcv.py

root@gdhcp78:/home/gnuradio/gnuradio# svn info

Path: .

URL: http://gnuradio.org/svn/gnuradio/trunk

Repository Root: http://gnuradio.org/svn

Repository UUID: 221aa14e-8319-0410-a670-987f0aec2ac5

Revision: 9900

Node Kind: directory

Schedule: normal

Last Changed Author: eb

Last Changed Rev: 9878

Last Changed Date: 2008-10-27 12:36:52 -0400 (Mon, 27 Oct 2008)

usrp2_fft.py

root@gdhcp78:/home/gnuradio/gnuradio/gr-utils/src/python# svn info

Path: .

URL: http://gnuradio.org/svn/gnuradio/trunk/gr-utils/src/python

Repository Root: http://gnuradio.org/svn

Repository UUID: 221aa14e-8319-0410-a670-987f0aec2ac5

Revision: 9900

Node Kind: directory

Schedule: normal

Last Changed Author: jcorgan

Last Changed Rev: 9864

Last Changed Date: 2008-10-26 23:32:36 -0400 (Sun, 26 Oct 2008)

Please let me know how I can solve this problem.

Thank you,

Catalin

On Fri, Nov 14, 2008 at 7:53 AM, Catalin Lacatus
[email protected] wrote:

I attached the results of svn info for:

Thanks. While it looks like your repository is in order, the version
of the Python script you are running doesn’t appear to match the
version of the USRP2 library that is actually installed on the system.

Other people who have recently reported similar issues as you have
solved it by doing a fresh rebuild and reinstallation of the code.
You can do this either by checking out a fresh version of the trunk,
or, by running ‘make distclean’, then repeating the usual steps for
configuration and installation.

-Johnathan