[USRP-users] Configuring USRP with two WBX daughterboards

Nemanja Savic vlasinac at gmail.com
Tue Apr 7 09:39:32 EDT 2015


Solved, if anybody needs this in the future, the problem was in subdev
specification string. It should be "A:0 B:0"
so self.uhd_usrp_source_0_0_1.set_subdev_spec("B:0 A:0", 0) needs to be
added.

IN my post the problem is with get_subdev_spec, cause I misinterpreted that
chanel argument is provided but it is actually motherboard.

On Tue, Apr 7, 2015 at 1:41 PM, Nemanja Savic <vlasinac at gmail.com> wrote:

> Hi all guys,
>
> I have recently added second WBX into my USRP1 in order to receive signal
> in both polarization planes. However I have a problem with configuring
> device.
> One or more years ago I managed to make receiver with LFRX and WBX but
> this time the same principle doesn't work.
>
> So I first declared USRp source as:
>
>         self.uhd_usrp_source_0_0_1 = uhd.usrp_source(
>             device_addr="fpga=usrp1_fpga_4rx.rbf",
>             stream_args=uhd.stream_args(
>                 cpu_format="fc32",
>                 channels=range(2),
>             ),
>         )
>
> The code won't change anything for channel 1. As you can see these two
> lines, the first one pass and the second rises an error.
>
>         print self.uhd_usrp_source_0_0_1.get_subdev_spec(0)
>         print self.uhd_usrp_source_0_0_1.get_subdev_spec(1)
>
> Error:
> B:0
> Traceback (most recent call last):
>   File "./TPMS_WBX_WBX_rec.py", line 440, in <module>
>     tb = top_block(options.det1_name, options.det2_name, options.host,
> options.port, options.db_name, options.db_user, options.db_pass,
> options.det_sens_tbl, options.detectors_table)
>   File "./TPMS_WBX_WBX_rec.py", line 282, in __init__
>     print self.uhd_usrp_source_0_0_1.get_subdev_spec(1)
>   File
> "/usr/local/lib64/python2.6/site-packages/gnuradio/uhd/uhd_swig.py", line
> 1839, in get_subdev_spec
>     return _uhd_swig.uhd_usrp_source_sptr_get_subdev_spec(self, mboard)
> RuntimeError: vector::_M_range_check
>
> Could anybody help me with using USRP1 in this configuration.
>
> Many thanx,
>
> --
> Nemanja Savić
>



-- 
Nemanja Savić
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.ettus.com/pipermail/usrp-users_lists.ettus.com/attachments/20150407/3362f44d/attachment-0002.html>


More information about the USRP-users mailing list