Closed gvimlag closed 1 year ago
Firstly SoaupySDR should be considered as a last resort. You have many other options to get I/Q stream from a remote RTL-SDR device:
rtl_tcp
on the Pi or the Remote TCP sink if running SDRangel on the PiI have hesitated to remove SoapySDR support completely because of the many shortcomings of SoapySDR but finally resorted to making it optional (with the --soapy
parameter) as effectively a last resort if nothing else would be available which I think should happen in very rare cases if any. In the particular case of Soapy Remote in its Wiki it pretends to support devices "transparently over the network" but immediately after "However, users will need to specify an additional device argument to engage the remote support module". Sorry guys this is not what I call "transparent" and we are in this case here. At most what you would need to specify is the remote server address (as with the Pluto in remote mode).
The log you posted seems to show that opening the device does not throw any exception nor returns nullptr
for the device if anything went wrong. The "[INFO]" messages come from Soapy and could not be there if something wrong was detected at the opening. However presently the boolean returned from the opening device routine is not checked: https://github.com/f4exb/sdrangel/blob/master/plugins/samplesource/soapysdrinput/soapysdrinput.cpp#L50 this can be fixed resulting in the device refusing to start and not crashing but I doubt it will work.
In any case I will not apply what you suggest because firstly what happens if the remote device is not a RTL-SDR and then if the RTL-SDR serial is not 00000001. At best this deserves a note in the Wiki since you made the effort to check the right parameters to give to Soapy Remote.
PROBLEM: SDRangel crashes if the user attempts to add a Soapy device which is missing a soapy device string.
This problem is similar to: "SoapySDR: RtApiPulse::probeDeviceOpen: error connecting input to PulseAudio server #731" https://github.com/f4exb/sdrangel/issues/731 This issue was automatically closed on Sep. 2, 2021 without resolution. Since it is closed, I'm unable to post there. Hence, I'm posting here.
EXAMPLE:
CRASH TEXT:
SOLUTION: Manually add an Args string for the remote Soapy device.
RECOMMENDATIONS: Since this crash happens when accessing a commonly used hardware combination: RTL-SDR dongle and Raspberry Pi soapy server; I'd recommend adding a check to SDRangel for a device missing a soapy string. If a missing string is detected, then do the following:
SYSTEM: