discuss-gnuradio
[Top][All Lists]
Advanced

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

Re: [Discuss-gnuradio] Re: USRP2 current svn code not working. Is the sv


From: Martin DvH
Subject: Re: [Discuss-gnuradio] Re: USRP2 current svn code not working. Is the svn code still in flux?
Date: Sun, 26 Oct 2008 22:47:34 +0100

On Sun, 2008-10-26 at 14:03 -0700, Johnathan Corgan wrote:
> On Sun, 2008-10-26 at 21:49 +0100, Martin DvH wrote:
> 
> > The new fpga image in combination with the latest svn code also makes it 
> > possible to set the gain from the gui of usrp2_fft.py without crashing the 
> > app.
> > (And the gain actually changes as can be seen by the change in signal
> > level)
> > 
> > Trying to set the frequency this way is not fixed. This still hangs the
> > whole app.
> 
> I've updated usrp2_fft.py on the trunk to use the latest gr-usrp2.  It
> is working normally now with setting the USRP2 parameters via the
> command line, however, as you note, changing frequency doesn't work.
> This has been isolated to some problem in either libusrp2 or in the
> USRP2 firmware.  Eric and I are working on this.
> 
> Other commands that operate in "batch" mode, where you set the USRP2
> parameters from the command line, are working normally now as well.
> 
When you set the decimation above 19 then you CAN set gain in the GUI.
With decimation below 19, setting gain in the GUI hangs the app.

Setting the freq only works from commandline.

The gainrange for "TVRX rev 3" comes out as 0 , 0
This triggers a python error min <max ==False and the gain slider cannot
be used.

I saw you have a workaround for the gainrange for TVRX, probably this
should also apply for TVRX rev 2 and TVRX rev 3.
(Or there is something else wrong in the backend code)

Following patch adds the workaround for alls TVRXs.
--- usrp2_fft.py        2008-10-26 22:36:36.000000000 +0100
+++ mdvh_usrp2_fft.py   2008-10-26 22:35:56.000000000 +0100
@@ -133,9 +133,10 @@
 
         hbox.Add((5,0), 0, 0)
         g = self.u.gain_range()
-       if self.u.daughterboard_id() == 0x0003: # FIXME: get range right in
firmware for TVRX
+        dbid=self.u.daughterboard_id()
+       if dbid == 0x0003 or dbid==0x0040 or dbid == 0x0040: # FIXME: get
range right in firmware for "TV Rx", "TV Rx Rev 2" and "TV Rx Rev 3"
          g[1] = 104
-         
+
         myform['gain'] = form.slider_field(parent=self.panel,
sizer=hbox, label="Gain",
                                            weight=3,
                                            min=int(g[0]),
max=int(g[1]),



> Thanks again for your testing.
> 
> -Johnathan

> 
> 
> 
> 
> _______________________________________________
> 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]