Closed vsonnier closed 4 years ago
Hi @SDRplay, I managed to compile, run, and test successfully with CubicSDR both win32 and win64 versions of the module compiled with VS2019 16.5.4, provided all the following fixes were applied :
FindLibSDRPlay.cmake
: for WIN32, the definition still references mir_sdr.h / mir_sdr_api.lib instead of the sdrplay_api.h / sdrplay_api.lib, so I changed it.sdrplay_api.h
: Added missing definition of HANDLE
(a real Windows handle on Windows), taken from the Linux package no less,sdrplay_api.h
: Added missing sdrplay_api_DbgLvl_t
definition, also taken from the Linux version.Settings.cpp
: non-portable usage of strcasecmp
which is POSIX only. Make it a macro on Windows platforms, mapping on _stricmp
I attached the 3 fixes to this issue.
API_v3.06_fixes_for_windows.zip
I'll report the eventual issues there, but so far all the settings seem to work for the RSP2. Congrats to @fventuri and @SDRplay for acheiving this !
@vsonnier thanks for this. @fventuri are you able to pull Vincent's changes into the master branch?
Thanks Vincent for your changes. I just pushed the changes for 'FindLibSDRplay.cmake' and 'Settings.cpp' to the master branch.
As per the changes to the include file 'sdrplay_api.h', it is probably up to Andy and SDRplay to review them, and address the issues with that include file.
Franco
Sorry guys, I missed the changes you noted for sdrplay_api.h! With the release of SDRuno 1.4 we are preparing to release API 3.07, you can already get a version of that here: https://www.sdrplay.com/software/SDRplay_RSP_API-Windows-3.07.exe which should address the issues raised.
Hi @SDRplay thanks for API v3.07, it works for me on Windows, using the module master
including @fventuri latest commits.
Thanks Andy and Vincent. If I don't hear from you about this issue in the next few days, I'll go ahead and close it.
Franco
If I don't hear from you about this issue in the next few days, I'll go ahead and close it.
I'm fine with this, so far it seems to work well.
One minor issue I noticed while browsing Settings.cpp
: apparently RSPDx management is missing in std::string SoapySDRPlay::getAntenna(const int direction, const size_t channel) const
.
Good catch Vincent. I just created another issue - Missing RSPdx entries in getAntenna() (https://github.com/SDRplay/SoapySDRPlay/issues/2) to track this problem.
It should be fixed in master now.
Franco
Closing as done.
Hi @SDRplay ! I finally have (some) time to test the SoapySDRplay3 module under Windows10 x64.
I installed the API/DRIVER 3.06 package for Windows, side by side to the existing 2.13 package.
Unfortunatly, I quickly stumbled under the following errors:
WIN32
, the definition still referencesmir_sdr.h
/mir_sdr_api.lib
instead of thesdrplay_api.h
/sdrplay_api.lib
. No big deal, I changed that.HANDLE
was unknown. Indeed, its definition appeared nowhere in the include files.My renewed interest for SDR is because I bought a Youloop from rtl-sdr.com :) I live in appartment, in a urban environnement, and it is the first time I can finally use my RSP2 on the HF band !
I plugged it in Port A. I also tried a horrible hack job to plug it in the Hi-Z port trying to follow the plug-your-coax-in-Hi-z method of the guide with no success but I'm terrible at that kind of things.
I got decodable LSB/USB signals eventually on the 40 m and 80 m band using port A. Since it is a passive loop, I'm forced to use it on RF ctrl = 0/1/2 and AGC on to be able to pick up signals, but the noise level was indeed much lower than when I used a simple wire on the Hi-Z.
Stopping the digression I wondered if the Soapy3 version put some better internal settings, given all the discussion we had with @fventuri and I wanted to test it.