[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: UHD function to determine USB version?
From: |
Marcus Müller |
Subject: |
Re: UHD function to determine USB version? |
Date: |
Mon, 30 Aug 2021 09:12:13 +0200 |
User-agent: |
Mozilla/5.0 (X11; Linux x86_64; rv:78.0) Gecko/20100101 Thunderbird/78.11.0 |
There's a property tree property that you can query, I keep forgetting which it
is; I
think it can be derived from .../mboard0/max_link_rate. However, note, that the
PT is
certainly not a UHD API.
Best regards,
Marcus M
On 27.08.21 23:46, Marcus D. Leech wrote:
> On 2021-08-27 5:39 p.m., Jeff Long wrote:
>> uhd_usrp_probe reports it doesn't it?
> Only as a side-effect of the driver opening the device. It doesn't do
> anything explicit
> that I can see.
>
>
>>
>> On Fri, Aug 27, 2021, 17:35 Marcus D. Leech <patchvonbraun@gmail.com
>> <mailto: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
>>
>> <https://github.com/EttusResearch/uhd/blob/master/host/lib/usrp/b200/b200_impl.cpp>
>>
>> Calls a get_usb_speed() function.
>>
>>
>>
>