FLEX900 daughterboard not working with usrp_oscope.py

Hello,

I am using a FLEX900 daughterboard with the USRP board. I am trying to
run usrp_oscope.py, an example program contained within
gnuradio-examples-0.7. I have installed the latest usrp updates from
http://usrp.svnrepository.com/usrp/trac.cgi.

First, usrp_oscope would not run due to incomplete definitions for the
FLEX900 board in the file db_flexrf.py. There was a divide by zero
error because gain_range was not defined for the FLEX900, and another
error because power_on method was not defined.

I don’t have a schematic (it’s not available yet), but comparing the
FLEX2400 and FLEX400 BOMs to what I see on the FLEX900 board, it looks
like the FLEX2400 is most similar. (Admittedly, just a guess.) Looking
at the other daughterboard code within the file, I added the following
to db_flexrf.py:

class _900_common(_AD4360_common):
.
.
def freq_range(self): # I added this based on
return (800e6, 1000e6, 1e6) # how the other boards are set up.

class db_flexrf_900_tx(_900_common, flexrf_base_tx):
.
.
self.power_on = POWER_UP # I added this based on
self.power_off = ~POWER_UP # how the other boards are set up.
.
.
class db_flexrf_900_rx(_900_common, flexrf_base_rx):
.
.
self.power_on = POWER_UP # I added this based on
self.power_off = ~POWER_UP # how the other boards are set up.
.
.
def gain_range(self):#I copied this from flexrf_2400_rx to fix a
#divide by zero error, don’t know what the
values
#should really be.
return (self._u.pga_min(), self._u.pga_max() + 70, 0.05)
.
.

These changes eliminated the errors and the o-scope application comes
up, displaying the window with adjustment controls, etc. However, the
grid lines and vertical scale are not being displayed, and no signal is
displayed. It’s just blank. In addition, the application doesn’t close
properly, it hangs. This behavior in contrast with no daughterboard
installed, I can see the noise on channels 1 and 2.

Does anyone have suggestions on what I adjustments I may still need to
make for this particular daughterboard?

Is there a favorite IDE with stepping/breakpoint capability with python?

Best regards,
Jon


This message was sent on behalf of [email protected] at
openSubscriber.com
http://opensubscriber.com/messages/[email protected]/topic.html

On Fri, Jun 30, 2006 at 11:16:24PM +0800, [email protected] wrote:

Hello,

I am using a FLEX900 daughterboard with the USRP board. I am trying
to run usrp_oscope.py, an example program contained within
gnuradio-examples-0.7. I have installed the latest usrp updates
from http://usrp.svnrepository.com/usrp/trac.cgi.

First, usrp_oscope would not run due to incomplete definitions for
the FLEX900 board in the file db_flexrf.py. There was a divide by
zero error because gain_range was not defined for the FLEX900, and
another error because power_on method was not defined.

I don’t have a schematic (it’s not available yet), but comparing the
FLEX2400 and FLEX400 BOMs to what I see on the FLEX900 board, it
looks like the FLEX2400 is most similar. (Admittedly, just a
guess.) Looking at the other daughterboard code within the file, I
added the following to db_flexrf.py:

If you’re are going to build from anypart of CVS + SVN, you need to
build it all from CVS + SVN. You’ve probably got non-matching
versions of gnuradio-core, usrp and gr-usrp.

Checkout gr-build by hand, then use the checkout script to get
gnuradio-core, usrp and gr-usrp. Then build and install:

$ cvs -d :pserver:[email protected]:/sources/gnuradio co -P
gr-build
$ cd gr-build
$ ./checkout -i gnuradio -i usrp
$ ./for-all-dirs …/buildit 2>&1 | tee make.log

Eric

This forum is not affiliated to the Ruby language, Ruby on Rails framework, nor any Ruby applications discussed here.

| Privacy Policy | Terms of Service | Remote Ruby Jobs