rx_tools
rx_tools copied to clipboard
`Failed to activate stream` when connecting to remote soapysdr server
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
Surprising. You may need to debug prints to investigate, the activate stream on soapy audio doesnt really have any error conditions.
- calling activate: https://github.com/rxseger/rx_tools/blob/master/src/rtl_sdr.c#L313
- activate implementation: https://github.com/pothosware/SoapyAudio/blob/master/Streaming.cpp#L220