Patch 3/3: db specific patches

On Tuesday 16 September 2008 14:24:49 Stefan Brüns wrote:

Changes:

  • db_base is abstract now
  • db_flexrf: removed implementations from the derived classes which
    where
    identical to the base class implementation
  • db_flexrf/db_wbx: call set_auto_tr in the tx/rx class constructor,
    base
    class does not have this method.
  • removed d_tx variable, use db_flexrf_{rx,tx} instead


Stefan Brüns / Bergstraße 21 / 52062 Aachen
mailto:lurch at gmx.li http://www.kawo1.rwth-aachen.de/~lurchi/
phone: +49 241 53809034 mobile: +49 151 50412019

On Friday 26 September 2008 02:08:40 Eric B. wrote:

On Tue, Sep 16, 2008 at 05:47:56PM +0200, Stefan Brüns wrote:
[…]
This message didn’t have an attachment. Was there supposed to be one?

Actually, yes, but my fault.

FYI, Tom R., who’s been working on this stuff, has been traveling
for the last couple of weeks. Thanks for sending the patches. Either
he or I will take a look at them soon.

No worries.

Part of the strangeness that you may have seen in the original code,
is that there is class of daughterboards where the Tx and the Rx side
share resources such as a single LO (XCVR2450 and the not yet released
WBX-*). Either side needs to be able to access and control the shared
resource, which may be physically connected to the other side’s control
lines. I’m by no means sure that what’s in the tree is optimal by any
definition, but that’s part of what’s behind the design.

Yeah, the shared parts make a clean design challenging. Nevertheless the
biggest part of 2nd patch is IMHO still correct.

There is no point in setting a variable depending on the class and
calling a
dispatcher in the base class. So the only part which should be kept are
the “usrp_basic::common_*” methods, as these may be called from some
daughterboard classes keeping only an pointer to an usrp_basic instance
(more
or less).

Thanks again for your contributions!

What but be the best way to get any changes into trunk or a branch as
soon as
possible? First, there are some changes possible in Toms branch to get
it
more in line with trunk. Clearly there are other parts which are not in
trunk, but in Toms branch (eg the usrp_basic::db(…) method and related
stuff), which have to be merged into trunk. And there are some changes
which
should be applied to Toms branch to make the patch and the codebase as
small
as possible.

Stefan


Stefan Brüns / Bergstraße 21 / 52062 Aachen
mailto:lurch at gmx.li http://www.kawo1.rwth-aachen.de/~lurchi/
phone: +49 241 53809034 mobile: +49 151 50412019

Stefan Brüns wrote:

What but be the best way to get any changes into trunk or a branch as soon as
possible? First, there are some changes possible in Toms branch to get it
more in line with trunk. Clearly there are other parts which are not in
trunk, but in Toms branch (eg the usrp_basic::db(…) method and related
stuff), which have to be merged into trunk. And there are some changes which
should be applied to Toms branch to make the patch and the codebase as small
as possible.

All the work on the C++ db code has been merged into a feature branch
based on a very recent trunk:

http://gnuradio.org/trac/browser/gnuradio/branches/features/cppdb

Fortunately, very little had to be changed to work with the current
trunk vs. the one the development branch was based on, so you shouldn’t
expect any surprises in the actual daughterboard code. Any future
changes to the code, as well as some wider testing, will happen here.

Right now there are some issues regarding compatibility with the
original Python implementations; we’re working through that.

On Tuesday 30 September 2008 21:29:44 Bob McGwier wrote:

Tom is VERY close to support for almost all of the daughter cards. He,
Jason, and I have already all currently available daughterboards or on
order for quick delivery with the goal of making all of them work. Jason
needs all of them at work and with USRP1 support for now, and USRP2 support
once it is in our hands and we have c++/libgnuradio.so support rung out.

Here is a small series of patches:

Remove superfluous d_tx variable in _AD4360_common
db_flexrf-remove-d_tx-p1.diff
db_flexrf-remove-d_tx-p2.diff

Move identical implementations from inherited classes to base class
db_flexrf-move-freq_minmax.diff

Fix typo
db_flexrf-fix-fx900-gain_min.diff

Stefan

On Tue, Sep 30, 2008 at 11:26:11PM +0200, Stefan Brüns wrote:

Fix typo
db_flexrf-fix-fx900-gain_min.diff

Stefan

I’ve applied them to my cppdb-wip developer branch.

Thanks!

Eric

Tom is VERY close to support for almost all of the daughter cards. He,
Jason, and I have already all currently available daughterboards or on
order
for quick delivery with the goal of making all of them work. Jason
needs
all of them at work and with USRP1 support for now, and USRP2 support
once
it is in our hands and we have c++/libgnuradio.so support rung out.

Bob

ARRL SDR Working Group Chair
Member: ARRL, AMSAT, AMSAT-DL, TAPR, Packrats,
NJQRP, QRP ARCI, QCWA, FRC.
“Trample the slow … Hurdle the dead"