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::Device::readStream timeout! Rsp1 #426

Open
kevtheskin opened this issue Dec 19, 2023 · 1 comment
Open

SoapySDR::Device::readStream timeout! Rsp1 #426

kevtheskin opened this issue Dec 19, 2023 · 1 comment
Assignees

Comments

@kevtheskin
Copy link

Morning, I am running Openwebrx + and getting a lot of SoapySDR::Device::readStream timeout! and failing to start. I can see my device using
radio@openwebrxplus:~ $ SoapySDRUtil --probe="driver=sdrplay"
######################################################

Soapy SDR -- the SDR abstraction library

######################################################

Probe device driver=sdrplay
[INFO] devIdx: 0
[INFO] SerNo: B0001P0001
[INFO] hwVer: 1
[INFO] rspDuoMode: 0
[INFO] tuner: 1
[INFO] rspDuoSampleFreq: 0.000000


-- Device identification

driver=SDRplay
hardware=RSP1
sdrplay_api_api_version=3.070000
sdrplay_api_hw_version=1


-- Peripheral summary

Channels: 1 Rx, 0 Tx
Timestamps: NO
Other Settings:
* RF Gain Select - RF Gain Select
[key=rfgain_sel, default=1, type=string, options=(0, 1, 2, 3)]
* IQ Correction - IQ Correction Control
[key=iqcorr_ctrl, default=true, type=bool]
* AGC Setpoint - AGC Setpoint (dBfs)
[key=agc_setpoint, default=-30, type=int, range=[-60, 0]]


-- RX Channel 0

Full-duplex: YES
Supports AGC: YES
Stream formats: CS16, CF32
Native format: CS16 [full-scale=32767]
Antennas: RX
Corrections: DC removal
Full gain range: [20, 59] dB
IFGR gain range: [20, 59] dB
RFGR gain range: [0, 3] dB
Full freq range: [0.01, 2000] MHz
RF freq range: [0.01, 2000] MHz
CORR freq range: MHz
Sample rates: 0.0625, 0.096, 0.125, 0.192, 0.25, ..., 6, 7, 8, 9, 10 MSps
Filter bandwidths: 0.2, 0.3, 0.6, 1.536, 5, 6, 7, 8 MHz

But fails to start in browser. Any suggestions how to fix please. Cheers Kev

@fventuri
Copy link

@kevtheskin - you may want to try to run SoapySDRUtil in stream test mode to see if SoapySDR is able to read the sample stream from your RSP1.

The command to do that is:

SoapySDRUtil --args="driver=sdrplay" --rate=2e6 --direction=RX

The output from that command should look more or less like this:

Stream format: CS16
Num channels: 1
Element size: 4 bytes
Begin RX rate test at 2 Msps
Starting stream loop, press Ctrl+C to exit...
1.8881 Msps	7.55242 MBps
1.94578 Msps	7.78311 MBps
1.96186 Msps	7.84745 MBps
1.972 Msps	7.88801 MBps
1.97806 Msps	7.91223 MBps

If you see timeout errors or the sample rates are very different from what I see here, then we probably need to troubleshoot what's going on with your RSP1.
On the other hand if this test is successful, then we should take a look at the SDR client application you are running there to see where the problem might be.

Franco

@fventuri fventuri self-assigned this Dec 19, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants