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

expanding the bandwidth #2

Open
anonymouscommitter opened this issue Mar 28, 2013 · 1 comment
Open

expanding the bandwidth #2

anonymouscommitter opened this issue Mar 28, 2013 · 1 comment

Comments

@anonymouscommitter
Copy link
Contributor

Hello,
As the dongle supports a sample rate up to 2.8Mhz, I tried to modify the sample rate found in SAMP_RATE but it would still spit out a 'Difference between maximum and minimum freqencies exceed sampled spectrum' error. I tracked that to 'if(max-min > 1000000)' in fm_multimix.c which I modified for 'if(max-min > (SAMP_RATE - 14300))', after this it stopped spitting out the error but the sample rate of the demoulated output seems to be off (too low). Any clues as to what else needs to be modified to allow a higher sample rate?

@hpdvanwyk
Copy link
Owner

Hi.
A few things come to mind:

  1. In the arguments given to rtl-fm in demod_proc.c there is a -i 46, this controls the decimation/interpolation between the input and output of rtl-fm. For 46 this gives an input of 22050*46 = 1014300 Hz. This would need to be changed to use another sampling rate.
  2. The shape in the spectrum being looked for assumes a certain FFT resolution. Changing the sampling rate will change the resolution. For the shape to match the bandwidth of NBFM either the FFT window must be changed (FFT_LEN) so that the resolution matches that at the default sample rate or the values of double convol [] need to be changed to match the shape of a NBFM transmission at whatever resolution the system is currently running.
    I was too lazy to calculate the theoretical spectrum of FM so I used GNU Radio with its NFMB block, modulated some noise with it and fed that to fft_conv_gen.c . This gives reasonable values for double convol [].

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