Friday, August 27, 2021

Re: UHD function to determine USB version?

uhd_usrp_probe reports it doesn't it?

On Fri, Aug 27, 2021, 17:35 Marcus D. Leech <patchvonbraun@gmail.com> wrote:
On 2021-08-27 2:49 p.m., Mike 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!
>
>
>
I don't think it's exposed in the API, but the driver code here:

https://github.com/EttusResearch/uhd/blob/master/host/lib/usrp/b200/b200_impl.cpp

Calls a get_usb_speed() function.



No comments:

Post a Comment