-
Notifications
You must be signed in to change notification settings - Fork 31
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
SoapySDRDevice_getSampleRateRange weird behaviour #26
Comments
Thats just each discrete point being turned into a range of 0. This is basically intentional, or its not a bug, its just the current state of the sample rate reporting. What should it be? This is an easy fix. Would a simple single range of 1 MHz to 10 MHz make sense? Current API comments on libhackrf.h
|
The HackRF wiki recommends some values:
I would suggest that the SoapyAPI suggested the preferred sample rates in zero-range elements, plus the whole range. My suggestion would be to return like (in pseudocode):
This way users would be presented with both the recommended sample rates (which is not what the Soapy API currently does, since it returns all integer values, and the continuous range, for the sake of completeness and user control. Again, I noticed other devices do this, should I ask the same on the respective repos? |
We no longer prefer any particular sample rates for HackRF. Any rate from 2 Msps to 20 Msps is supported. |
I'm using the SoapySDR C API.
Since
SoapySDRDevice_listSampleRates
is market as deprecated, and the HackRF has a continuously tunable sample rate, I went and usedSoapySDRDevice_getSampleRateRange
. However, the return value is weird. This is a formatted output:I was expecting a single range, or only the recommended sample rates. This behaviour is very weird...
I'm using PhotosSDR latest, on Windows.
The text was updated successfully, but these errors were encountered: