-
Notifications
You must be signed in to change notification settings - Fork 24
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add libusb check for known ADALM-Pluto VID:PID #50
Conversation
With newer libiio (version 0.24+, unreleased currently) this likely isn't needed and we add the desired VID/PID to the usb backend scan. |
c6263e8
to
043bcfe
Compare
043bcfe
to
ff23165
Compare
To anyone able reproduce the discovery bug #24: this PR needs community testing, and some feedack, please ;) |
I'll pulled and did a git checkout of this PR. This is on 20.04 and I am using the latest libad9361 and libiio pulled last night. It would appear my results are the same as master. Here's what iio_info shows with no PlutoSDR plugged in using #50. dragon@dragon-ROCK-Pi-X:/usr/src/SoapyPlutoSDR/build$ iio_info Here's SoapySDRUtil --find still seeing as though a Pluto is plugged in. `dragon@dragon-ROCK-Pi-X:/usr/src/SoapyPlutoSDR/build$ SoapySDRUtil --find Soapy SDR -- the SDR abstraction library###################################################### [INFO] [UHD] linux; GNU C++ version 9.2.1 20200304; Boost_107100; UHD_3.15.0.0-2build5 |
The suggestion mentioned in the other ticket about recompiling libiiio with cmake -DWITH_LOCAL_BACKEND=NO -DWITH_IIOD=NO ../) worked, SoapySDRUtil no longer sees the onboard sensor as a Pluto. That doesn't really relate to this ticket, but it works for now. I would be happy to test more suggestions or changes to this pull request, or try out different versions of libad9361 and libiio. |
Thanks for the detailed feedback. We'll need both PRs then. I'll update and merge #42 soon. |
Would it help if I tested #42? |
I think #42 doesn't fit in the current source. I'll need to rewrite. |
This was added to libiio as analogdevicesinc/libiio#791 |
Thanks, yes, I assume we are using that feature if available: https://github.com/pothosware/SoapyPlutoSDR/blob/master/PlutoSDR_Registration.cpp#L23-L24 |
Some filtering and delay before letting IIO scan a USB context so we don't interfere with other drivers USB enumeration.
This should close #24.