[USRP-users] Getting the daughterboard installed in a connected USRP through the C++ API
Marcus D. Leech
mleech at ripnet.com
Thu Nov 2 18:00:33 EDT 2017
On 11/02/2017 05:03 AM, Janos Buttgereit via USRP-users wrote:
> for my current project, I’d like to build up a nice GUI leading the
> user step by step to set up a connection to a usrp that should work
> with all setups possible. For this, it would be great to get some
> information about what daughterboards are installed into each
> motherboard slot of a multi_usrp, that was already created before.
> I can’t find an obvious api call for that. I was looking for something
> like std::string multi_usrp::get_dboard_name_in_mboard_slot(size_t
> mboard, std::string slot) that would for an example return something
> like"SBX“ when callingusrp->get_dboard_name_in_mboard_slot(0, "A“) but
> I didn’t find anything similar. However I’m pretty sure that there is
> a way to do this. Could someone give me a hint on how to get that
> information out of the API? By the way, the same applies to the
> possible antenna specs the user can choose between after having
> identified the dboard, however if that’s not possible I could resolve
> this by implementing a lookup table with all Antenna options for all
> dboards under the hood.
> Thank you in advance
My suggestion would be to look at the code of uhd_usrp_probe, which
basically "walks" the properties tree of the device, pretty-printing
what it finds.
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the USRP-users