Setup:RTLSDR Windows - 2020-UQ-Communication-Systems/public GitHub Wiki

(This guide is based on this page from rtlsdr.org. If there are any ambiguities, please check the original source)

Steps to install

  1. Download the Windows SDR Software Package from AirSpy's site. This will get you a ZIP file called sdrsharp-x86.zip.
  2. Run install-rtlsdr.bat after extracting.
  3. After plugging in the USB tuner, open "zadig" to configure the USB tuner. Make sure that the "List all devices" option is enabled under the Options tab.

Screenshot: RTLSDR Driver Windows

Now, to get the command line utilities you can get the "pre-built" windows RTL-SDR files

  1. Get prebuilt binaries: here.
  2. Extract the files and open it in the command line (Start > Run > CMD).

The files inside the x32/x64 directories are as follows:

libusb-1.0.dll
pthreadVC2-w64.dll
rtl_adsb.exe
rtl_eeprom.exe
rtl_fm.exe
rtl_sdr.exe
rtl_tcp.exe
rtl_test.exe
rtlsdr.dll
rtlsdr.lib
rtlsdr_static.lib

Testing the RTL-SDR Device

  1. Test the tuner with the following command:

rtl_test -t

Found 1 device(s):   0:  ezcap USB 2.0 DVB-T/DAB/FM dongle
Using device 0: ezcap USB 2.0 DVB-T/DAB/FM dongle Found Rafael Micro R820T tuner
Supported gain values (29): 0.0 0.9 1.4 2.7 3.7 7.7 8.7 12.5 14.4 15.7 16.6 19.7 20.7 22.9  25.4 28.0 29.7 32.8 33.8 36.4 37.2 38.6 40.2 42.1 43.4 43.9 44.5 48.0 49.6
No E4000 tuner found, aborting.

Capturing Data (Standalone)

  1. Capture some samples (to a file): rtl_sdr -s 2e6 -f 110.9e6 -n 2e6 dump.bin
  2. Selected examples will capture 2 million samples (-n = number), at a sample rate of 2 megasamples/second (-s) and with a center frequency of 110.9 MHz (-f). Samples will be captured into dump.bin

Capturing and Displaying Data

Before capturing data for your assignment, it is a good idea to have some real-time information about the signal. This is where the tool SDRSharp comes in (which you installed when getting the driver above) - it can show the spectrum in two ways - a spectral density as well as a waterfall map.

In SDRSharp there are two main ways to connect to your tuner stick, via a "Spectrum Server" (aka RTL-SDR TCP), or directly - RTL-SDR USB. If you want to use the spectrum server, in the command line run rtl_tcp, and then connect to the spectrum server in SDRSharp. Otherwise just use the USB version.

Next to listen / decode data use the "Play" button in the top left hand corner of the screen. The spectrum and water-fall plot will begin changing. If all of the spectrum is flat, you might need to increase the gain of the device (otherwise you are just receiving noise!).

FM radio is known as "wide band FM", other forms of frequency modulation may be for walkie-talkies etc, which will be "narrow band FM".

After you have identified a signal in SDRSharp, you can then "stop" SDRSharp and record this using rtl_sdr- as shown in the previous section. Substitute the appropriate centre frequency and sampling rate (which depends on the bandwidth). The RTL-SDR device will adjust its filter bandwidth relative to the sampling rate (to some degree).

References

  1. rtlsdr.org/softwarewindows.
  2. sdr.osmocom.org/trac/wiki/rtl-sdr

Troubleshooting

  • If you are using Windows 7/8 and having issues, check out more information here

  • For Windows 7 the Zadig software (which installs the USB Driver - WinUSB) needs to be run as "Administrator".

  • For Windows 8 it seems running it as Non-Administrator works better (try both if one fails!)

  • If the device seems to fail, it often helps to get Windows to not "auto-load" the driver for this device. If hard to do, then in ZADIG do a 'show all devices'.

  • If you are getting no signals in SDRSharp (also known as you only see noise no mater what frequency you tune in to), adjust the gain (even use auto gain - AGC - automatic gain control).

  • If you are getting bad signals, you may need to adjust the antenna. It is good to put the magnet of that antenna on a large metal object, and generally closer to a window/outside will give you better signals. (Some parts of the lab in 50-S202 and 78-212 have very poor signal quality).

  • If one of the rtl_* programs needs to be stopped you can stop it with Ctrl-C

  • Getting an error message like "usb_open error -3, Fix the device permissions" usually means that you already have one program using RTL-SDR. You need to close the other program (or at least 'stop' it if it is something like SDRSharp).

  • Some anti-virus software doesn't like the idea of having alternative drivers for USB devices. So check that your anti-virus isn't deleting any files such as libusb-1.0.dll

  • If your virus scanner is breaking zadig, you can get it directly from the source: here

  • Windows Powershell says it cannot load the file in current directory. Use .\rtl_sdr etc

The term 'rtl_sdr' is not recognized as the name of a cmdlet, function, script file, or operable program. Check the spelling of the name, or if a path was included, verify that the path is correct and try again.
At line:1 char:8
+ rtl_sdr <<<<
    + CategoryInfo          : ObjectNotFound: (rtl_sdr:String) [], CommandNotFoundException
    + FullyQualifiedErrorId : CommandNotFoundException


Suggestion [3,General]: The command rtl_sdr was not found, but does exist in the current location. Windows PowerShell doesn't load commands from the current location by default. If you trust this command, instead type ".\rtl_sdr". See "get-help about_Command_Precedence" for more details.
⚠️ **GitHub.com Fallback** ⚠️