# Do RTL based devices need some sort of calibration?

**URL:** <https://www.ruby-forum.com/t/do-rtl-based-devices-need-some-sort-of-calibration/221846>\
**Category:** GNU Radio\
**Created:** [August 1, 2012, 10:09pm UTC](https://www.ruby-forum.com/t/do-rtl-based-devices-need-some-sort-of-calibration/221846 "2012-08-01T22:09:00Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![aris](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/a/258eb7/32.png) [@aris](https://www.ruby-forum.com/u/aris)\
**Post date:** [August 1, 2012, 10:09pm UTC](https://www.ruby-forum.com/t/do-rtl-based-devices-need-some-sort-of-calibration/221846/1 "2012-08-01T22:09:00Z")

</div>

Hi all,

I’ve been using a FCD for a couple of weeks now and I decided to get a  
go with a rtl-sdr compatible dongle. I bought one from osmocom and I’m  
having trouble to get useful data out of it.

Based on the USB IDs, this is a “Generic RTL2832U (e.g. hama nano)”.

Basically my problem is that the frequencies are wrong, first there’s a  
big offset (that can be fixed using the freq. corr. ppm), but i have as  
well a scaling issue. When I’m looking at AIS signal i should see 2  
blobs 25Khz apart of the center frequency (162MHz), but when i’m using  
the RTL source the 2 blobs are separated by ca. 20KHz, instead of 50KHz.

As a quick test, i set up 2 osmosdr sources (one with dev set to fcd=0  
and the other rtl=0, they have the same freq and rate settings) and I  
plotted their FFT. The FCD is working as expected, but for the RTL, the  
2 blobs are way closer the the central frequency.

So my question is does this device need some extra special settings? Is  
there any documentation about all the settings i can use? Should I  
calibrate it using some special technique, or does that simply mean that  
this particular device is just non functional?

Thanks,  
Chris

–  
Christian G.,  
Embedded systems engineer.  
Techworks Marine  
1 Harbour road  
Dun Laoghaire  
Co. Dublin  
Ireland  
Tel: + 353 (0) 1 236 5990  
Web: [http://www.techworks.ie/](http://www.techworks.ie/)

---

<div class="post-metadata">

**Author:** ![christiang](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/c/77aa72/32.png) [@christiang](https://www.ruby-forum.com/u/christiang)\
**Post date:** [August 1, 2012, 10:33pm UTC](https://www.ruby-forum.com/t/do-rtl-based-devices-need-some-sort-of-calibration/221846/2 "2012-08-01T22:33:32Z")

</div>

On 08/01/2012 04:07 PM, Christian G. wrote:

> as well a scaling issue. When I’m looking at AIS signal i should see 2  
> calibrate it using some special technique, or does that simply mean  
> that this particular device is just non functional?
> 
> Thanks,  
> Chris

Are you perhaps trying to run your RTL device at some weird sample  
rate? The device really only supports sample rates from 1Msps to about  
2.8Msps, and only a few of those rates have actually been verified to  
work correctly.

My suspicion is that you’re trying to run it at a rate it doesn’t really  
support. Try 1.0Msps or 1.024Msps and see if that clears up your  
frequencies-aren’t-right issue.

–  
Marcus L.  
Principal Investigator  
Shirleys Bay Radio Astronomy Consortium

> **[Live Draw HK Tercepat | Result HK | HK Pools | Live HK | HK Prize Hari Ini](https://www.sbrac.org/)**
>
> Temukan live draw hk tercepat melalui halaman hk pools yang resmi dan dapatkan result hk prize melalui live hk secara langsung di situs kami.

---

<div class="post-metadata">

**Author:** ![christiang](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/c/77aa72/32.png) [@christiang](https://www.ruby-forum.com/u/christiang)\
**Post date:** [August 2, 2012, 2:32am UTC](https://www.ruby-forum.com/t/do-rtl-based-devices-need-some-sort-of-calibration/221846/3 "2012-08-02T02:32:04Z")

</div>

On Wed, Aug 1, 2012 at 4:07 PM, Christian G. [removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid)  
wrote:

> scaling issue. When I’m looking at AIS signal i should see 2 blobs 25Khz  
> it using some special technique, or does that simply mean that this  
> particular device is just non functional?
> 
> Thanks,  
> Chris

Chris,  
I’ve only done very simple things with my RTL-SDR device, but it  
looked fine to me. My first thought is to check to make sure you are  
actually using the sampling rate that you think you are using. Can you  
pull in a signal of a known bandwidth to make sure it’s showing up as  
the bandwidth you actually expect?

Tom

---

<div class="post-metadata">

**Author:** ![christiang](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/c/77aa72/32.png) [@christiang](https://www.ruby-forum.com/u/christiang)\
**Post date:** [August 2, 2012, 5:44pm UTC](https://www.ruby-forum.com/t/do-rtl-based-devices-need-some-sort-of-calibration/221846/4 "2012-08-02T17:44:46Z")

</div>

Thanks all for sharing your thoughts.  
Indeed the RTL doesn’t support arbitrary sampling rate (I was using  
96KHz!).  
I finally start reading the chips datasheet and the rtl-sdr source code,  
it’s full of interesting information! 😉  
There’s some formula for settings the sampling rate, for what i  
understood, if u want the real sampling rate to be what you ask for then  
u have to have (Fosc\*10^22/rate) % 8 = 0  
I couldn’t find any information about minimum frequency.

So with 1.024MHz, frequencies are now in range.

Thanks again for your messages.

Chris

On 01/08/12 21:07, Christian G. wrote:

> well a scaling issue. When I’m looking at AIS signal i should see 2  
> calibrate it using some special technique, or does that simply mean that  
> this particular device is just non functional?
> 
> Thanks,  
> Chris

–  
Christian G.,  
Embedded systems engineer.  
Techworks Marine  
1 Harbour road  
Dun Laoghaire  
Co. Dublin  
Ireland  
Tel: + 353 (0) 1 236 5990  
Web: [http://www.techworks.ie/](http://www.techworks.ie/)
