Skip to content
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

SoapySDR remote server not supported? #603

Open
Akito01 opened this issue Nov 5, 2020 · 5 comments
Open

SoapySDR remote server not supported? #603

Akito01 opened this issue Nov 5, 2020 · 5 comments

Comments

@Akito01
Copy link

Akito01 commented Nov 5, 2020

I've been trying to get welle.io 2.2 for Windows to work with SoapySDR but I came to realize that there's no remote setting.
I'm running SoapySDRServer on a remote computer with an Airspy. Will it be possible to use this in Windows soon remotely? Just like rtl-tcp, but instead SoapySDRServer.

@gvanem
Copy link
Contributor

gvanem commented Nov 5, 2020

Have you tried connecting to it using SoapySDRUtil.exe --make=driver=remote ...? Not sure about the address syntax for this.
But if this works, it should work in Welle-IO too.

@Akito01
Copy link
Author

Akito01 commented Nov 5, 2020

I hadn't tried that, but now I have... though Welle-IO throws: Error while opening device.
I have SoapySDRServer running like: SoapySDRServer --bind="0.0.0.0:1234" on my remote Linux machine.

On my Windows machine running: soapysdrutil --find="remote=tcp://192.168.2.2:1234"
I see this:

Found device 4
  driver = remote
  label = AirSpy One [myserial]
  remote = tcp://192.168.2.2:1234
  remote:driver = airspy
  serial = myserial

And SoapySDRServer shows an accept and close for the connection.
So there is connectivity.
In Welle-IO I have chosen SoapySDR and a driver setting like: driver=remote,remote=tcp://192.168.2.2:1234

Running GQRX that came with the Pothos package on Windows it immediatly finds the SoapySDRServer remotely and runs fine.

@AlbrechtL
Copy link
Owner

Honestly, I never tested SoapySDR remote and I never tested SoapySDR under Windows at all. Generally, it should work because SoapySDR tries to be generic. But I know from the Soapy support from other hardware that peoples submitted patches to get it work.

@Abdull
Copy link

Abdull commented Feb 10, 2025

also see #588. I don't understand how to make welle.io work with a remotely operated SDR.

  • I cannot find any dialog in the GUI to select an SDR device.
  • on stdout/stderr, there is the following informational output: Info: SoapySDR: No usable SDR device found.
  • https://www.welle.io/devices/soapysdr says "Run welle.io with the -d soapysdr option.", but doing so (either with Debian 12's welle-io -d soapysdr or with flatpak's flatpak run io.welle.welle_io -d soapysdr) reports welle.io: Unknown option 'd'. and has the application immediatly exit with exit status 1.

Image

@astro
Copy link

astro commented Feb 10, 2025

I really wanted to try this but our SDR is already installed on the roof so I put the parameters verbatim into the source code. Perhaps that will help anyone in a similar situation:

diff --git src/input/soapy_sdr.cpp src/input/soapy_sdr.cpp
index cef8c787..366a1524 100644
--- src/input/soapy_sdr.cpp
+++ src/input/soapy_sdr.cpp
@@ -49,7 +49,7 @@ CSoapySdr::CSoapySdr(RadioControllerInterface& radioController) :
 {
     //enumerate devices
     const std::string args ="";
-    const auto foundDevices = SoapySDR::Device::enumerate("");
+    const auto foundDevices = SoapySDR::Device::enumerate("remote:driver=hackrf,remote=tcp://172.20.73.57:55132");

     int nonAudioDeviceCount = 0;
     for(auto found: foundDevices)
@@ -99,7 +99,7 @@ bool CSoapySdr::restart()
     m_spectrumSampleBuffer.FlushRingBuffer();

     try {
-        m_device = SoapySDR::Device::make(m_driver_args);
+        m_device = SoapySDR::Device::make("driver=remote,remote:driver=hackrf,remote=tcp://172.20.73.57:55132");
     }
     catch (std::exception& e) {
         std::clog << "Exception caught in SoapySDR::Device::make with \"" << m_driver_args << "\" :\n" <<

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

5 participants