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

Allow lower sample rates (in ExtIO towards HDSDR) #139

Open
hayguen opened this issue Jan 7, 2021 · 4 comments
Open

Allow lower sample rates (in ExtIO towards HDSDR) #139

hayguen opened this issue Jan 7, 2021 · 4 comments

Comments

@hayguen
Copy link
Collaborator

hayguen commented Jan 7, 2021

selecting lower samplerates in VHF should automatically reduce the R820T-tuners' IF bandwidth - to avoid oversteering of ADC

@howard0su
Copy link
Collaborator

The current code doesn't handle dynamic ADC sampling rate very well. Is there any benefit to the signal quality by doing so? Saving cpu is not a big problem as the machine with USB3.0 are reasonable powerful.

@ik1xpv
Copy link
Owner

ik1xpv commented Jan 7, 2021

The use of a high sampling rate allows to gain in S/N in decimation, although I believe in the case the noise figure is determined by the R820T2 tuner.
Using a lower sample rate in the ADC would require a low pass filter at the ADC input from R820T2 to eliminate aliasing. Now it's made by software IF filtering.
The ability to vary the frequency of the ADC may in the future facilitate the use and adjustment of fixed crystal references for the ADC in other types of hardware similar to HF103.

@hayguen
Copy link
Collaborator Author

hayguen commented Jan 7, 2021

probably i wasn't clear enough?:
i am suggesting to add higher decimation factors (into r2c) leading to more and lower samplerates in HDSDR,
e.g. 250 kSps, 500 kSps, 1 MSps, .. in addition to the 2, 4, 8, 16, 32 and 64 MSps.

probably, in addition, do not allow to select samplerates >= 32 MSps in VHF? but, not sure about this.

for 2 reasons:

  • have less noise in the unzoomed RF spectrum visible. this also leads to bad background color because the noise level estimation gets wrong - you see when using 32 MHz bandwidth when VHF does only have approx. 10 MHz "usable" band.
  • automatically program smaller IF bandwidth in R820T2-tuner to improve dynamic range (or avoid gross signal effects)

reducing the ADC samplerate in VHF, e.g. from 64 MSps to 32 MSps is another totally independent topic. this might be interesting on some slower computers.

@howard0su
Copy link
Collaborator

howard0su commented Jan 14, 2021

only able to down to 500k. I may need your help to debug what's wrong when have even lower sample rate. Check PR #156

When I only use the fixed EXTIO_LEN, i got audio lag.
If I uses EXTIO_LEN < 512, i got frozen UI.

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

3 participants