discuss-gnuradio
[Top][All Lists]
Advanced

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

Re: UHD function to determine USB version?


From: Martin Braun
Subject: Re: UHD function to determine USB version?
Date: Tue, 14 Sep 2021 10:40:42 +0200

Mike,

this is available since UHD 4.0, so maybe that's the issue. You can dump the tree with uhd_usrp_probe --tree, and see what nodes you have.

--M

On Thu, Sep 9, 2021 at 8:43 PM Mike <mike.nelson@rdss.com> wrote:

Hi Martin,

Thanks for your response.  I tried the command you provided but received this:

Error: LookupError: Path not found in tree: /mboards/0/usb_version


I see the trace statement

[INFO][B200] Operating over USB 3.

but was hoping for a UHD API call rather than using the system() function, but if I can get the tree location correct it should work.


Thanks again.



On 9/9/2021 3:34 AM, Martin Braun wrote:
(log statements removed)

$ uhd_usrp_probe --args type=b200 --int /mboards/0/usb_version
3

--M

On Fri, Aug 27, 2021 at 8:51 PM Mike <mike.nelson@rdss.com> wrote:
Hello,

I apologize if I missed it in the documentation, but is there a UHD
function that will return the USB version (e.g. USB 2 or USB 3) that the
USRP is using?

I'm using a B200 in a custom C++ program and would like to
programmatically verify the USB connection speed before attempting high
rate sampling.


Thanks!




reply via email to

[Prev in Thread] Current Thread [Next in Thread]