Tagged: zadig

Quick Start Guide

This page is a guide aimed at helping anyone set up a cheap radio scanner based on the RTL-SDR software defined radio as fast as possible on a Windows system.

Equipment Guide

Currently, the most common RTL-SDR dongle is the R820T which can be purchased here. See the Buy RTL-SDR dongles page for more information.

To get the most enjoyment out of RTL-SDR you will need a decent antenna. The stock antenna that is shipped with the dongle is okay for testing and will pick up a number of signals, but is generally considered as poor for any serious radio scanning. For beginners, a bunny ears antenna like those you get for TVs should already work much better than the stock antenna. The most recommended antenna for general scanning is a scantenna or discone due to their wide band receiving properties.

SDR# Set Up Guide (Tested on Windows Vista/7 + XP)

  1. Purchase an RTL-SDR dongle. The cheapest and best for most applications is the R820T dongle, which can be purchased here from Nooelec.
  1. SDRSharp is the easiest and most commonly used software defined radio software receiver for the RTL-SDR. Go to sdrsharp.com and scroll to the bottom of the page to find the download button. Click the download button to download sdr_install.zip.
  1. Note that you must have the Microsoft .NET redistributable installed to use SDRSharp. Most modern Windows PCs should already have this installed by default, but older PCs running XP may need this to be installed.
  1. Extract sdr_install.zip to a folder.
  1. Double click on install.bat from within the extracted folder. This will start a command prompt that will download SDRSharp and all the files required to make SDRSharp work with RTL-SDR. Everything will be placed into a new folder within the sdr-install folder called “sdrsharp”. The command prompt will automatically close when it is done.

installbat

  1. Plug in your dongle and do not install any of the software that it came with, but ensure you let plug and play finish trying to install it. If you’ve already installed the software drivers it came with previously, uninstall them first.
  1. Open the newly created sdrsharp folder. Find the file zadig.exe. Right click this file and select “Run as administrator” if using Windows Vista/7/8. If you are using Windows XP, download the XP version from this page.
  1. In Zadig, go to Options->List All Devices and make sure this option is checked.
  1. Select “Bulk-In, Interface (Interface 0)” from the drop down list. Ensure that WinUSB is selected in the box next to where it says Driver. (Note on some PCs you may see something like RTL2832UHIDIR instead of the bulk in interface. This is also a valid selection).

Zadig Screen

  1. Click Install Driver. You might get a warning that the publisher cannot be verified, but just accept it by clicking on Install this driver software anyway. This will install the drivers necessary to run the dongle as a software defined radio. Note that you may need to run zadig.exe again if you move the dongle to another USB port, or want to use two or more dongles together.

zadig_warning

  1. Open SDRSharp.exe. Set the drop down box at the top next to the Play button to ‘RTLSDR / USB’. Press Play. Your rtl-sdr software radio should now be set up and ready to use! If everything has worked you should be able to start tuning to frequencies. Be sure to also adjust the RF gain settings by pressing the Configure button up the top near the Play button. By default the RF gain is set at zero.

Device Selection

Troubleshooting

  • Zadig takes a long time to install the driver, then fails
    You have probably not run zadig in administrator mode. Make sure to right click zadig, and select “Run as Administrator”
  • I don’t see Bulk-In, Interface (Interface 0)
    Ensure Options->List All Devices is checked. Some people report seeing something else other than the bulk in interface. It may also show up as the brand of your dongle or something prefixed with “rtl”. This option should work too.
  • I don’t see RTL-SDR/USB in SDRSharp
    You may have downloaded a version without rtl-sdr support. Check that you followed the instructions in step 3 and downloaded the version under the heading “Important note for RTL-SDR users”.
  • Zadig gives “System policy has been modified to reject unsigned drivers” error in Windows 8
    Windows 8 can cause signed driver issues with zadig. Some users report getting the error “System policy has been modified to reject unsigned drivers”. To solve this download and use the newer Zadig version 2.1 from here. (The newer SDR# install.bat comes with Zadig 2.1 already)
  • Reception in SDR# seems very poor/receiver is insensitive
    Make sure you have increased the gain slider which can be accessed by clicking on the configure button. Also, in poor reception areas using the stock antenna indoors may not be sufficient. In rare cases if you still cannot receive anything and another radio can, then you may have received a broken dongle and should ask for a replacement.
  • SDR# gives error “Application failed to initialize properly (0xc0000135).  Click OK to terminate.”
    This might mean that you do not have the .NET 3.5 Framework installed.
  • I get the error “1 compatible devices have been found but are all busy”
    This sometimes occurs after the computer has been suspended. To fix it simply disconnect and reconnect the dongle. Sometimes it may also be necessary to reinstall the Zadig drivers.

How to set the Gain

The gain can be adjusted in SDR# by clicking on the Configure button which looks like a cog. When tuning the RF gain you are trying to get the signal as strong as possible, whilst keeping the noise floor as low as possible. Start with a low gain setting, and slowly increase the gain slider. Watch in the frequency spectrum as the signal strength increases, but stop just before the point at which the noise floor starts to rise.

The noise floor is the part of the frequency spectrum where there are no signals.

SDRSharp Plugins

A list of SDRSharp plugins can be found here.

SDRSharp Guide

A good guide to learning how to use SDRSharp and what all the options do can be found here. Another great illustrated guide can be found here.

HDSDR Setup Guide

  1. Purchase an RTL-SDR dongle. The cheapest and best for most applications is the R820T dongle, which can be purchased here from Nooelec.
  1. Plug in your dongle and do not install any of the software that it came with, but ensure you let plug and play finish trying to install it. If you’ve already installed the software drivers it came with previously, uninstall them first.
  1. Go to http://zadig.akeo.ie/ and download Zadig.
  1. In Zadig, go to Options->List All Devices and make sure this option is checked.
  1. Select “Bulk-In, Interface (Interface 0)” from the drop down list. Ensure that WinUSB is selected in the box next to where it says Driver. (Note on some PCs you may see something like RTL2832UHIDIR instead of the bulk in interface. This is also a valid selection).

Zadig Screen

  1. Click Install Driver. You might get a warning that the publisher cannot be verified, but just accept it by clicking on Install this driver software anyway. This will install the drivers necessary to run the dongle as a software defined radio. Note that you may need to run zadig.exe again if you move the dongle to another USB port, or want to use two or more dongles together.

zadig_warning

  1. Download HDSDR from http://hdsdr.de/, using the download button at the bottom of the page.
  1. Use the installer you just downloaded to install HDSDR.
  1. Download the ExtIO_RTL2832U.dll dll file from https://app.box.com/s/7tpiy8r6qo2bbhdxtt4k (MIRROR).
  1. Copy the ExtIO_RTL2832U.dll file into the HDSDR install folder which is by default set to C:\Program Files (x86)\HDSDR.
  1. Open HDSDR. You might be asked to select a .dll file. Choose the ExtIO_RTL2832U.dll file you just copied over and then click Open. It is okay if you do not see this screen as long as you have copied the ExtIO_RTL2832U.dll file over properly in the last step.

image017

  1. Choose your output sound card by clicking on the Soundcard button  in the bottom left corner, or alternatively by pressing F5. The only important setting here is the “RX Output (to Speaker)” setting which you should set to your speakers, or desired audio piping software.

image019

  1. Click on the Bandwidth button  or alternatively press F6. Choose an output Sampling Rate of 48000 Hz for general use.

image021

  1. Press Start or alternatively press F2. This will start the SDR.
  1. To set the RTL-SDR sample rate, gain and frequency correction click on the ExtIO button .

image023

  1. To tune to a station, change the Local Oscillator frequency to a frequency near the frequency you are interested in. Then tune to the desired frequency either by clicking in the RF spectrum, or using the Tune numbers.

image024

  1. You can zoom in and out of the spectrum by using the Zoom slider which is to the left of the word zoom.

image025

  1. The mode can be altered by clicking on the mode buttons.

image026

  1. After clicking on the FM mode button, the FM bandwidth can be manually modified with the FM-BW slider.

image027

  1. To listen to a typical wideband broadcast FM station, you will need to change the audio sampling rate to 192000 Hz. Do this by clicking on the Bandwidth button or alternatively by pressing F6 and then selecting the output sampling rate as 192000 Hz.

SDR-RADIO V2 Setup Up Guide

To install SDR-RADIO for the RTL-SDR follow the steps below

  1. Purchase an RTL-SDR dongle. The cheapest and best for most applications is the R820T dongle, which can be purchased here from Nooelec.
  1. Plug in your dongle and do not install any of the software that it came with, but ensure you let plug and play finish trying to install it. If you’ve already installed the software drivers it came with previously, uninstall them first.
  1. Go to http://zadig.akeo.ie/ and download Zadig.
  1. In Zadig, go to Options->List All Devices and make sure this option is checked.
  1. Select “Bulk-In, Interface (Interface 0)” from the drop down list. Ensure that WinUSB is selected in the box next to where it says Driver. (Note on some PCs you may see something like RTL2832UHIDIR instead of the bulk in interface. This is also a valid selection).

Zadig Screen

  1. Click Install Driver. You might get a warning that the publisher cannot be verified, but just accept it by clicking on Install this driver software anyway. This will install the drivers necessary to run the dongle as a software defined radio. Note that you may need to run zadig.exe again if you move the dongle to another USB port, or want to use two or more dongles together.

zadig_warning

  1. Download the SDR-RADIO installer from http://v2.sdr-radio.com/Download.aspx.
  1. Use the installer to install SDR-RADIO.
  1. Either compile yourself using the instructions from http://sdrnuke.wces.net/Support/RTLSDRs/BuildingDlls.aspx, or download from the bottom of http://www.aa5sh.com/?page_id=65 (MIRROR), the SDRSourceRTL2832U.dll, rtlsdr.dll and libusb-1.0.dll dll files. Copy the dlls into either the C:\Program Files\SDR-RADIO-PRO.com (64 bit), or C:\Program Files (x86)\SDR-RADIO-PRO.com (32 bit) folder depending on what version of Windows you have.
  1. Open SDR-RADIO. Upon opening it you will be greeted with the Select Radio screen and a prompt saying “List is empty – add radio definition now?” Click Yes. If this prompt does not display, click the + Definitions button.
  1. In the new window open the Search drop down menu and select RTL SDR (USB). After clicking it the RTL-SDR will be added to the Radio Definitions list. Click OK.

image030

image031

  1. Click on the RTL-SDR click to select it, choose your desired sample rate then click Start.

image032

  1. Click on the Span button and adjust the span to the sample rate bandwidth you chose in the last step. This will let you see the whole spectrum.

image033

  1. To change the receive mode use the left menu under the frequency tab. You can also change the signal bandwidth here. NFM signals are typically around 12 kHz wide and broadcast FM is typically around 192 kHz wide.

image034

  1. To adjust the frequency, use the VFO tuning box on the right side. If you don’t see it you may need to click on the VFO tuning tab. Also if the screen is too small you may need to expand it’s size to show it. You can also click on the waterfall to instantly tune to the clicked frequency.

image035

  1. Be sure to adjust the gain settings using the RF gain button in the top which is under the Home tab. By default it is set to automatic.

sdrconsolegain

  1. Also to adjust the waterfall colors so that signals are more clearly seen go to the Display tab up the top and then click on the Automatic Calibration button on the very top right.

sdrconsoleautocal

Other SDR Windows Software Compatible with RTL-SDR

HDSDR – An advanced version of the WinRad SDR software. A free software defined radio package.

SDR-Radio v2 – A free Windows program for software defined radio.

SDR-J – Free Windows program capable of also decoding DAB signals in software.

See the Software Guide for a big list of other compatible RTL-SDR software.

Getting Started on Linux

A good guide to getting started on Linux and GNU Radio can be found at this blog post here.

Note that if you want to run Linux in a virtual machine it has been reported that performance with VirtualBox is rather poor due to it’s slow USB connection. VMWare Player on the other hand has good performance.

Installing SDR# with Mono in Linux

Note that this tutorial will currently not work as the SDR# developer has removed the source code from SVN. It may or may not be up again in the future.

Install Mono and the Monodevelop environment.

sudo apt-get install mono-complete
sudo apt-get install monodevelop

Install libportaudio for sound

sudo apt-get install libportaudio-dev
sudo apt-get install libportaudio2

Use svn to checkout SDRSharp. If you don’t have svn installed use sudo apt-get install subversion to install subversion.

svn co https://subversion.assembla.com/svn/sdrsharp/trunk sdrsharp
cd sdrsharp

We first need to replace the version string in the SDR# solution file as Monodevelop currently does not recognize solution files created by Visual Studio 2012.

sed -i 's/Format Version 12\.00/Format Version 11\.00/' SDRSharp.sln

Open the solution file with monodevelop

monodevelop SDRSharp.sln

In Monodevelop set the build to Release|x86, then go to Build->Build All

Now we need to first symbolically link libportaudio to the Release folder where SDR# was just built.

cd Release

First we need to find out if you are running a 32-bit (x86/i686) OS or a 64-bit (x64/x86_64) OS. To do this type

uname –m

If you see the result as i686, you are running a 32-bit Linux so type in

ln -s /usr/lib/i386-linux-gnu/libportaudio.so.2 libportaudio.so

If you see the result as x86_64 you are running a 64-bit kernel so type

ln -s /usr/lib/x86_64-linux-gnu/libportaudio.so.2

Add RTL-SDR support to the SDRSharp.exe.config file by opening it with a text editor and finding the line that contains the text SDRSharp.RTLSDR.RtlSdrIO,SDRSharp.RTLSDR. Uncomment that line by removing the surrounding <!– –> characters.

Now you can run SDRSharp by typing

mono SDRSharp.exe