f4exb / sdrangel

SDR Rx/Tx software for Airspy, Airspy HF+, BladeRF, HackRF, LimeSDR, PlutoSDR, RTL-SDR, SDRplay and FunCube
GNU General Public License v3.0
2.87k stars 435 forks source link

how to enable SoapySDR support #249

Closed sgoudelis closed 5 years ago

sgoudelis commented 5 years ago

Hello,

I just saw that SoapySDR support was added. I am trying to enable support by compiling pretty much everything I can find. SoapyRemote, SoapyRTL etc and the very recent sdrangel repos (commit bc7ad10f9d9a7694320e8ecebab65eb8b9c1b5e7). I setup soapysdrremote on two different boxes over the network.

I cant seem to find the options to configure inputs and outputs for SoapySDR on SDRangel. Can you guys point me to the right direction ?

f4exb commented 5 years ago

If the installation is done right the various SoapySDR controlled devices should appear in the list of "sampling devices" that pops up when you press the change sampling device button: https://github.com/f4exb/sdrangel/blob/master/sdrgui/readme.md#32-open-sampling-device-change-dialog

This SoapySDR support is very new. I plan to write Wiki page(s) to describe how to compile and install the software right including SoapySDR which is a little bit special.

sgoudelis commented 5 years ago

Yeap. It works. I recompiled everything and the devices show up. I 've got another issue. I see all devices twice. Please see attached image. menu_007

Any idea ?

f4exb commented 5 years ago

First check how many "SoapySDR ..." plugins are listed when you open the "Help -> Loaded plugins" dialog. There should be only one pair of plugins: Input and Output.

Then the log shows where the plugins are looked for in the line that looks like: 2018-11-25 18:10:53.373 (D) PluginManager::loadPlugins: /opt/build/sdrangel/build.24/../lib/plugins , /opt/build/sdrangel/build.24/plugins

Then:

2018-11-25 18:10:53.463 (D) PluginManager::loadPluginsDir: fileName:  liboutputsoapysdr.so
2018-11-25 18:10:53.463 (I) PluginManager::loadPluginsDir: loaded plugin liboutputsoapysdr.so
...
2018-11-25 18:10:53.473 (D) PluginManager::loadPluginsDir: fileName:  libinputsoapysdr.so
2018-11-25 18:10:53.474 (I) PluginManager::loadPluginsDir: loaded plugin libinputsoapysdr.so
...
2018-11-25 18:10:53.475 (D) PluginManager::registerSampleSource  SoapySDR Input  with source name  sdrangel.samplesource.soapysdrinput
2018-11-25 18:10:53.475 (D) PluginManager::registerSampleSink  SoapySDR Output  with sink name  sdrangel.samplesink.soapysdroutput
...
2018-11-25 18:10:54.941 (D) SoapySDRInputPlugin::enumSampleSources: 3 SoapySDR devices. Enumerate these with Rx channel(s):
2018-11-25 18:10:54.941 (D) SoapySDRInputPlugin::enumSampleSources: device #0 (PulseAudio) serial audio-0 channel 0
2018-11-25 18:10:54.941 (D) SoapySDRInputPlugin::enumSampleSources: device #1 (HackRF One #0 453c64c8214d178f) serial hackrf-0 channel 0
2018-11-25 18:10:54.941 (D) SoapySDRInputPlugin::enumSampleSources: device #2 (LimeSDR Mini [USB 3.0] 1D3AC6E32E7C66) serial lime-0 channel 0
...
2018-11-25 18:10:55.540 (D) SoapySDROutputPlugin::enumSampleSinks: 3 SoapySDR devices. Enumerate these with Tx channel(s):
2018-11-25 18:10:55.540 (D) SoapySDROutputPlugin::enumSampleSinks: device #1 (HackRF One #0 453c64c8214d178f) serial hackrf-0 channel 0
2018-11-25 18:10:55.540 (D) SoapySDROutputPlugin::enumSampleSinks: device #2 (LimeSDR Mini [USB 3.0] 1D3AC6E32E7C66) serial lime-0 channel 0
f4exb commented 5 years ago

Wiki page here: https://github.com/f4exb/sdrangel/wiki/Compile-from-source-(Linux)

sgoudelis commented 5 years ago

Indeed there are two pairs of plugins loaded. Thats the cause.

f4exb commented 5 years ago

This can happen if you try to start SDRangel from the build directory. Apparently in some cases the .so libraries for the plugins are produced in two different places under the plugin structure. It you start from the installation directory you will not have this problem.