discuss-gnuradio
[Top][All Lists]
Advanced

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

Re: [Discuss-gnuradio] Trying to use latest version of UHD


From: Per Zetterberg
Subject: Re: [Discuss-gnuradio] Trying to use latest version of UHD
Date: Wed, 27 Oct 2010 08:25:16 +0200

If I have "no_chan" usrp2 with XCVR2450 would this work:

 uhd::usrp::subdev_spec_t e("");
    for (uint32_t i1=0;i1<no_chan;i1++) {
      d_mdev->set_rx_subdev_spec(e, i1);
      d_mdev->set_tx_subdev_spec(e, i1);
    };


Or should I write:

uhd::usrp::subdev_spec_t e("0:A");

?

BR/
Per


On Tue, 2010-10-26 at 09:48 -0700, Josh Blum wrote:
> I fixed a typo and pushed it to the master. When you leave the dboard 
> name blank, and you have a single slot, it should use the name of the 
> only daughterboard slot on your usrp. Except for the typo...
> 
> So, to use the AB subdev on basic RX on usrp2, the following would work:
> 
> "0:AB"
> ":AB" - was previously broken by the typo
> ""    - empty string automatically picks the first subdevice 0:AB
> 
> -josh
> 
> On 10/26/2010 05:25 AM, Per Zetterberg wrote:
> > Hi Josh and List,
> >
> > I am now trying to use the latest version of UHD. I am working with one or 
> > two USRP2s (I have previously worked successfully with up to four USPR2s).
> >
> > I tried the following which I though should be the way to handle a general 
> > number of USRP2s (no_ant).
> >
> >
> >    std::string abcd_string("ABCDEFGHIJKLMNOPQRSTUVXYZ");
> >    uhd::usrp::subdev_spec_t abcd(":"+abcd_string.substr(0,no_ant));
> >    d_mdev->set_rx_subdev_spec(abcd, uhd::usrp::multi_usrp::ALL_MBOARDS);
> >    d_mdev->set_tx_subdev_spec(abcd, uhd::usrp::multi_usrp::ALL_MBOARDS);
> >
> >
> > However, I get the error:
> >
> > error: Validate rx subdev spec failed: :AB
> >      assertion failed:
> >     is not a valid rx dboard name.
> >    possible values are: [0].
> >
> > Then I made a different intepretation and tried:
> >
> >    uhd::usrp::subdev_spec_t e("0");
> >
> >    for (uint32_t i1=0;i1<no_ant;i1++) {
> >        d_mdev->set_rx_subdev_spec(e, i1);
> >        d_mdev->set_tx_subdev_spec(e, i1);
> >    }
> >
> > However, the results are still in error.
> >
> > ??
> >
> > BR/
> > Per
> > _______________________________________________
> > Discuss-gnuradio mailing list
> > address@hidden
> > http://lists.gnu.org/mailman/listinfo/discuss-gnuradio
> 
> _______________________________________________
> 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]