rxseger / rx_tools

rx_fm, rx_power, and rx_sdr tools for receiving data from SDRs, based on rtl_fm, rtl_power, and rtl_sdr from librtlsdr, but using the SoapySDR vendor-neutral SDR support library instead, intended to support a wider range of devices than RTL-SDR
GNU General Public License v2.0
345 stars 67 forks source link

`Failed to activate stream` when connecting to remote soapysdr server #97

Open hcooper opened 2 years ago

hcooper commented 2 years ago

I'm trying to use rx_sdr to fetch a stream from a remote soapysdr server (with the aim of passing it onto 1090dump). rx_sdr seems to connect fine, and identify the channel, but then fails as soon as it tried to start reading.

The same soapysdr server works from CubicSDR fine.

Any suggestions of what the problem might be?

This is the simplest reproduction I have:

root@raspberrypi:~# rx_sdr -F CS16 -d driver=remote,remote=tcp://10.10.2.148:55132 -f 1090000000  -
Using device Audio: device_id=0 origin=https://github.com/pothosware/SoapyAudio remote:version=0.5.2-unknown
Found 1 channel(s) :
Channel 0 :
  Found 1 antenna(s): RX
  Found 0 gain(s):
  Found 1 frequencies: RF
  Found 7 sample rates: 8000 16000 22050 32000 44100 48000 96000
  Found 0 bandwidths:
Using output format: CS16 (input format CS16, 4 bytes per element)
Sampling at 2048000 S/s.
Tuned to 1090000000 Hz.
[INFO] SoapyRemote::setupRxStream(remoteFormat=CS16, localFormat=CS16, scaleFactor=65536, mtu=1500, window=44040192)
[INFO] Client side stream bound to 10.10.2.148:33480
[INFO] Client side status bound to 10.10.2.148:46711
[INFO] Using format CS16.
[INFO] Server side stream bound to [::ffff:10.10.2.148]:53002
[INFO] Server side stream connected to [::ffff:10.10.2.148]:33480
[INFO] Server side status connected to [::ffff:10.10.2.148]:46711
[WARNING] StreamEndpoint resize socket buffer: set 43008 KiB, got 176 KiB
[INFO] Configured sender endpoint: dgram=1452 bytes, 357 elements @ 4 bytes, window=176 KiB
[INFO] Client side stream connected to 10.10.2.148:53002
[WARNING] StreamEndpoint resize socket buffer: set 43008 KiB, got 176 KiB
[INFO] Configured receiver endpoint: dgram=1452 bytes, 357 elements @ 4 bytes, window=176 KiB
Reading samples in sync mode...
Failed to activate stream
guruofquality commented 2 years ago

Surprising. You may need to debug prints to investigate, the activate stream on soapy audio doesnt really have any error conditions.