f4exb / libmirisdr-4

Support of Mirics MSi001 + MSi2500 SDR devices
GNU General Public License v2.0
76 stars 37 forks source link

RSP1A support #2

Open f4exb opened 6 years ago

f4exb commented 6 years ago

Everything is in the title. If someone could help ...

gvanem commented 6 years ago

I have a RSP1A. But miri_sdr fails. With some extra LIBUSB_DEBUG, I get:

winusb_open] unsupported API call for 'open' (unrecognized device driver)

Some parameter error to libusb_open()?

Edit: on second thought, I think supporting SDRPlay (any version) via libusb, is just a dead-end project. I have built SoapySDR with SDRPlay support. That works fine using the mir_sdr_api.dll and API provided by the folks who created SDRPlay. The above libusb error (-12), I think is due to an access denied or an incompatibility with the existing Mirics driver. Correct me if I'm wrong.

So my idea was do as SoapySDR does; load mir_sdr_api.dll dynamically and just create some wrappers. E.g. if mirisdr_open() fails, call (*mir_sdr_Init_t)(...) instead.