pothosware / SoapyRTLSDR

SoapySDR RTL-SDR Support Module
https://github.com/pothosware/SoapyRTLSDR/wiki
MIT License
134 stars 31 forks source link

Samplerate error #59

Closed computer-wizard closed 2 years ago

computer-wizard commented 2 years ago

Sample rate is set to 2.28571M (2285710) in the Soapy RTLSDR Source block (GNU Radio 3.9.4). This causes the following error,

self.soapy_rtlsdr_source_0.set_sample_rate(0, samp_rate) ValueError: source: Unsupported sample rate (2285710.000000). Rate must be in the range 250000.000000, 1024000.000000, 1536000.000000, 1792000.000000, 1920000.000000, 2048000.000000, 2160000.000000, 2560000.000000, 2880000.000000, 3200000.000000 Reattached kernel driver

ncorgan commented 2 years ago

This check was added to the GNU Radio block itself. It looks like a bug, so definitely open an issue there.

zuckschwerdt commented 2 years ago

They likely now want to depend on SoapyRTLSDR::getSampleRateRange(), introduced with #54, which replaces listSampleRates(). But it's in the master branch only, not a tagged release for now.

computer-wizard commented 2 years ago

OK, if it is fixed in Release candidate 3.10.0.0-rc1. Thanks for info.