Tobias
2014-07-31 08:23:49 UTC
Hi!
I have just started using rtl-sdr in my application, SvxLink:
http://svxlink.org/. Thanks for your work on the RTL code. It opens up
the world of wideband receivers to everyone. The SvxLink RTL code is in
the rtl-branch on GitHub right now if anyone is interested:
https://github.com/sm0svx/svxlink/tree/rtl
I was missing some simple utility to calibrate the frequency error for a
dongle. The simplest way I came up with was to modify the rtl_fm utility
since it is very easy to find out the frequency error of an FM signal.
To get a measure of the frequency error, all that have to be done in the
FM demodulator is:
samp_rate * angle / (2*PI)
The angle is already compensated with PI in the current demodulator so I
only had to do the rest in my added calibration code.
I first filed this patch as a pull request on GitHub
(https://github.com/steve-m/librtlsdr/pull/9) but then saw that
contributions should be mailed to this mailing list.
The rtl_fm utility may now be used to calibrate the frequency error of a
DVB-T dongle using the "-c" command line switch:
| [-c] Do frequency error calibration
Frequency error calibration will only work for FM.
Use a higher sample rate, like -s170k, to handle
large frequency errors. A strong and noise free
signal is needed for good results. For example, use a
broadcast FM station for calibration. Let the
calibration run for some minutes until the values
have stabilized. Rerun with -p option using the
suggested ppm_error. Try this on a couple of stations.
Repeat until the error is stable at about zero.
Example: rtl_fm -f99.3M -s170k -r48k -c - | aplay -r48k -fS16_LE -
|
Regards,
Tobias
I have just started using rtl-sdr in my application, SvxLink:
http://svxlink.org/. Thanks for your work on the RTL code. It opens up
the world of wideband receivers to everyone. The SvxLink RTL code is in
the rtl-branch on GitHub right now if anyone is interested:
https://github.com/sm0svx/svxlink/tree/rtl
I was missing some simple utility to calibrate the frequency error for a
dongle. The simplest way I came up with was to modify the rtl_fm utility
since it is very easy to find out the frequency error of an FM signal.
To get a measure of the frequency error, all that have to be done in the
FM demodulator is:
samp_rate * angle / (2*PI)
The angle is already compensated with PI in the current demodulator so I
only had to do the rest in my added calibration code.
I first filed this patch as a pull request on GitHub
(https://github.com/steve-m/librtlsdr/pull/9) but then saw that
contributions should be mailed to this mailing list.
The rtl_fm utility may now be used to calibrate the frequency error of a
DVB-T dongle using the "-c" command line switch:
| [-c] Do frequency error calibration
Frequency error calibration will only work for FM.
Use a higher sample rate, like -s170k, to handle
large frequency errors. A strong and noise free
signal is needed for good results. For example, use a
broadcast FM station for calibration. Let the
calibration run for some minutes until the values
have stabilized. Rerun with -p option using the
suggested ppm_error. Try this on a couple of stations.
Repeat until the error is stable at about zero.
Example: rtl_fm -f99.3M -s170k -r48k -c - | aplay -r48k -fS16_LE -
|
Regards,
Tobias