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

in rtl-sdr branch, make rtl signal bandwidth adjustable #110

Open
comparchitect opened this issue Jan 24, 2021 · 1 comment
Open

in rtl-sdr branch, make rtl signal bandwidth adjustable #110

comparchitect opened this issue Jan 24, 2021 · 1 comment

Comments

@comparchitect
Copy link

Thanks for building the rtl-sdr branch.

I noticed that rtl_sdr_fm.cpp has the sample rate hard coded to 48000 which seems to produce a signal with 48000Hz bandwidth.

In my tests it seems to work better with the sample rate hard coded to 8000 or 12000Hz to produce a narrow FM signal and then upscale that to 48000Hz to work with the rest of the dsd code.

This is simple to implement for tests: e.g.,

on line 34: #define DEFAULT_SAMPLE_RATE 12000

and then on line 579+:

o->queue.push(d->result[i]);
o->queue.push(d->result[i]);
o->queue.push(d->result[i]);
o->queue.push(d->result[i]);

I.e., each sample is pushed 4 times to get back to the 48000Hz the rest of the dsd code relies on.

Just putting this thought on the issue tree here. Perhaps implementing a command line option for dsd that allows the user to choose between a few signal bandwidths like 6k, 8k, 12k, 24k, 48k would be simple and useful.

@lwvmobile
Copy link

Wow, I was looking at this the other day, and didn't realize you could do this, I was wanting to implement something similar, but didn't know how to go about it.

I have a fork of the rtl-sdr branch with more things added, if you wanted to give it a try out. I just pushed your suggestion onto my own fork, and would love to hear some feedback on how it works for you. I can also use people making helpful suggestions like this.

In the future, I'm going to try to take some of my own things and make a pull request to the rtl-sdr branch here and also some things to LouisErigHerve fork if I make a lot of good progress.

https://github.com/lwvmobile/dsd-fme

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