myriadrf / LimeSuite

Driver and GUI for LMS7002M-based SDR platforms
https://myriadrf.org/projects/lime-suite/
Apache License 2.0
468 stars 184 forks source link

LimeSDR-Mini doesn't work with latest libusb on macOS #253

Closed juribeparada closed 5 years ago

juribeparada commented 5 years ago

If I compile latest libusb source code from GitHub on macOS, LimeSDR-Mini loses communication just when the application opens the USB. This doesn't happen with current libusb release (1.0.22), but might be an issue for future libusb releases. The problem is related with this commit: https://github.com/libusb/libusb/pull/456, see this issue: https://github.com/libusb/libusb/issues/455

Then, libusb_reset_device in macOS performs a reenumeration. If I remove these lines, I solve my problem: https://github.com/myriadrf/LimeSuite/blob/a58636db44fa6b87ea097e73043d61fba5a70ceb/src/ConnectionFTDI/ConnectionFT601.cpp#L212-L213

I wonder if removing those lines is a correct fix or not. I also see that ConnectionFX3.cpp doesn't call libusb_reset_device.

juribeparada commented 5 years ago

I close this issue, now it is fixed on libusb: https://github.com/libusb/libusb/commit/a0b5d27fa7f2bba11965e2b70533f925a5772808