Software Defined Radio PDF
Software Defined Radio PDF
Software Defined Radio PDF
III
Preface
The mission of this paper was to describe the installations of the software and the
hardware in Windows 10 and to find all the libraries needed. Generally, it was
hard to find radio stations because of changing reception conditions.
I would like to thank Linnaeus University and Mr. Sven-Erik Sandström for
providing the RTL-SDR dongle. Plus, I would like to thank Mr. Sven-Erik
Sandström for his supervision. Moreover, I would like to thank my teachers for
teaching me during my studies in Linnaeus University, Sven-Erik Sandström and
Ellie Cijvat. I learned valuable new material from you.
In addition, I would like to thank my family and my fiancé Rami for supporting
and being around me. I appreciate your support.
IV
Table of Contents
ABSTRACT....................................................................................................... III
PREFACE.......................................................................................................... IV
1 INTRODUCTION ...................................................................................... 1
1.1. BACKGROUND........................................................................................ 1
1.2. PURPOSE AND OBJECTIVES ..................................................................... 1
1.3. LIMITATIONS.......................................................................................... 1
2 THEORY ..................................................................................................... 2
2.1 SPECIFICATIONS OF SDR RECEIVER ........................................................... 2
2.2 SUPPORTED SOFTWARE.............................................................................. 3
2.3 COMMERCIAL PRODUCT ............................................................................. 4
2.4 APPLICATIONS ........................................................................................... 4
3 METHOD .................................................................................................... 6
3.1 EQUIPMENT................................................................................................ 6
3.2 SUPPORTED SOFTWARE.............................................................................. 6
3.3 INSTALLATION ........................................................................................... 6
3.3.1 SDR_sharp ........................................................................................ 6
3.3.2 RTL-SDR hardware (Zadig) ............................................................. 7
3.4 STARTING UP SDR_SHARP ......................................................................... 7
3.5 USER GUIDE SDR_SHARP SOFTWARE ........................................................ 7
4 IMPLEMENTATION AND RESULTS ................................................... 9
4.1 LISTEN TO WFM ........................................................................................ 9
4.2 CHANGE THE RF GAIN ............................................................................. 11
4.3 FREQUENCY CORRECTION ....................................................................... 11
4.4 LISTENING TO DIFFERENT RADIO STATIONS ............................................. 12
4.4.1 National Stations............................................................................. 12
4.4.2 Regional Stations ............................................................................ 12
4.4.3 Community Radio Station ............................................................... 13
4.4.4 Commercial Radio Station .............................................................. 13
4.4.5 Private Radio Station ...................................................................... 13
4.4.6 Other Radio Station ........................................................................ 13
4.5 TABLES .................................................................................................... 14
5 ANALYSIS, DISCUSSION, AND CONCLUSION ............................... 15
5.1 ANALYSIS ................................................................................................ 15
5.2 DISCUSSION ............................................................................................. 15
5.3 CONCLUSION ........................................................................................... 15
REFERENCES.................................................................................................. 17
APPENDICES ................................................................................................... 19
V
5.4 APPENDIX 1: SUPPORTED SOFTWARE.................................................... 20
5.5 APPENDIX 2: RECEIVED STATIONS ........................................................ 22
VI
1 Introduction
Software Defined Radio (SDR) is used to receive and transmit radio signals [1].
Radio signals can be received with the SDR_sharp software. It can be downloaded
to a personal computer and combined with the RTL-SDR dongle hardware that is
connected to the computer [2].
1.1. Background
The RF signal can be digitalised so that a computer can process the signals in
software. With an antenna connected to the input to the RTL-SDR, the hardware
digitalises the signal with an analog to digital converter and the data is transferred
over a USB port into a computer. Once the signal is processed by the software, we
are able to listen to the radio program [1,2].
The aim of this report is to show how to install the SDR_sharp software and the
hardware Zadig and to describe how the signals can be obtained. In addition, this
report gives a brief overview of the SDR receiver, the supported software and
some applications that can be realised with SDR.
1.3. Limitations
Only wideband FM (WFM) will be received. RTL-SDR dongles are used since
they are cheap and easy to get for everyone.
1
2 Theory
Software defined radio provides a practical alternative for wireless
communication. This technology enables the use of one device with many
different communication networks. Software defined radio also facilitates updates
of the device without any changes in the hardware [2].
Traditional radio is received with an SDR dongle but this dongle has broader uses
and can receive FM, cellular and GPS over a wider band. SDR can also be used
for transmission if more expensive hardware is used. The limitations are the
sampling rate of the computer, the frequency range and the bandwidth of the SDR
receiver [2].
In order to study the SDR receiver easier, it can be divided in to three parts,
processor, front-end, and antenna.
1. Processor:
SDR has a general processor. The general processor can be for example
Central Processing Unit (CPU) or Field Programmable Gate Array
(FPGA). The advantage of FPGA and CPU is programmability. CPU exists
mostly in all computers and smart phones. Another processor is Graphical
Signal Processor (GPU) which it optimized in a way to process the
graphics. FPGA and Digital Signal Processor (DSP) operate sequential to
improve the speed of Fast Fourier Transform (FFT) and Finite Impulse
Response Filter (FIR Filter). This technique is used for MAC and in some
applications such SDR has both FPGA and DSP [7, 10].
2. Front-End:
2
1. The frequency range is 70 MHz to 6 GHz. This range covers WiFi, 3G,
FM, and GSM.
3. Antenna:
Many software’s to perform a specific function. Since there are wide range of
SDRs in the market, some support a particular programme rather than other. These
softwares are more or less specialised. A brief overview is given for the following
programmes SDR-Sharp, GQRX, and GNURADIO [14].
2. GNU RADIO: This software comes with frame work and tools to build
a software radio. One can build his/her own radio receiver or
transmitter. It is one of the most common researchers used. The signal
processing blocks connected together to perform the radio signal. This
programme is free to download and works in Mac and Linux devices.
It uses to transmit and receive a radio signal [15].
3. GQRX: It runs and works in Mac and Linux devices. GQRX has the
same concept as SDR_sharp. GQRX demodulates AM, FM-N, FM-W,
SSB. GQRX powered by GNU radio. GQRX has the functionality to
do spectrum analyser mode in addition FFT and Waterfall. One has the
flexibility to correct the I/Q balance [16].
3
2.3 Commercial product
There are many products in the market that are used to transmit and receive a radio
signal, for example RTL-SDR dongle is used to receive signal, HackRF One and
USRP are used to receive and transmit; However, each device has its own benefits
and uses.
2.4 Applications
There are many applications that can be performed with SDR, some of them are
listed below [3]:
2. GSM analysis, receive GSM network and be displayed using the RTL-
SDR dongle. It is required to install GR-GSM or SDR_sharp [8].
3. Receive AM, USRP used and connected to the computer for decoding
using MATLAB [11].
4
4. Radio Astronomy, one need RTL-SDR dongle plus LNA, satellite dish
and GNURADIO [12].
An antenna is connected to the input of the RTL-SDR dongle to receive signals. Then the
RTL-SDR hardware digitalises the signal with an analog to digital converter and the data is
transferred over a USB port into a computer. Once the signal is received in the software,
then one will listen to a radio station [1, 2].
5
3 Method
FM radio is received experimentally.
3.1 Equipment
3.3 Installation
This section shows the installations of the SDR_sharp software and the RTL-SDR
hardware.
3.3.1 SDR_sharp
First, Search for the website http://airspy.com/download/ and under the Core tools
heading download sdrsharp-x86.zip. The zipped folder can be found in the
downloads directory of the personal computer.
Download the hackrf-tools.zip then extract it to the same directory where sdrsharp-
x86 located. The zip folder can be downloaded from the flowing website:
http://the.midnightchannel.net/sdr/SDRSharp_Plugins/zefie/?plugin=HackRF.Ze
fieMod.
6
Third, within the extracted file double click on install-rtlsdr.bat to download all
required drivers that make SDR_sharp works probably with dongles. Install-
rtlsdr.bat will close after few seconds once the installation of other files added.
After the installation of the SDR_sharp completed, now it is the time to setup the
hardware but some steps required and are followed below.
Plug in RTL-SDR dongle. Within the extracted file of sdrsharp-x86 and right click
on zadig.exe then select “Run as administrator”. In some cases, unsigned driver
issues, then install the latest version of Zadig from
http://zadig.akeo.ie/downloads/zadig.exe .
In the new window opened recently of zadig.exe set the options and check all
options also check List All Devices option. Then select RTL2832UHIDIR from the
drop down list and click Reinstall driver, Install driver, or Replace driver. Please
note sometimes this steps required to be redone whenever the driver plugged in.
The installation of dongle is completed.
Once the installation of SDR_sharp and Zadig set up completed, in the same folder
of sdrsharp-x86 find SDRSharp.exe and double click on this file. For the first time
SDRSharp.exe, may open new warning window just click on more info and then
run anyway. Now SDR_sharp should be working probably.
7
7. Change the RF gain: to change the RF gain, click the configure button
which it locates upward the source and next to the play button. A new
window opened to adjust the RF gain. The RF gain is in dB unit.
8. Correct frequency error: click on configure source button, at the bottom of
the new windows try to increase or decrease the Frequency correction
(ppm) till the tuner centred at the middle of the signal.
8
4 Implementation and results
Open the SDR_sharp folder where it should be downloaded and double click on
SDRSharp. Select the source RTL-SDR (USB) under the Source heading, as it
shown in Figure 1 [4].
Select the radio to WFM, and click on the play button, then it starts receiving
signals. To tune in a station, click at the peak of a signal at the FFT spectrum
screen.
The top display called RF FFT Spectrum, where the spectrum shown in the graph
is in real. The bottom display called Waterfall display, which it shows the same
data as RF FFT Spectrum but over the time and has a delay after it has been
recorded. The yellow colour indicates the weak signal and the red colour indicates
strong signal as it shown. in Figure 2.
9
Fig. 2. Select a signal.
Figure 2 shows an active signal with peak, while the red waterfall downwards is
the old information of the same signal selected. The same Figure 2 the dB range
of this tuner over the y-axis is from -60 dB to -110 dB, it is better to decrease the
range to make it easier to analyse the signals. As the dB range level decreased, the
waterfall colour is darker all the weak signals disappeared and the brighter colour
is the active signals as it shown in Figure 3.
Figure 3 above almost without noise when the range level decreased. The signals
are clearer and the active radio stations are easier to choose.
10
4.2 Change the RF Gain
In the SDR_sharp software, one has the ability to change the gain. The RF gain is
set to 0 dB. A guide to set a good level of RF gain is depending on the location of
the receiver. If the receiver is receiving strong signals, then it is good to choose a
low RF gain and if the receiver is receiving weak signals, then it is good to choose
a higher RF gain. The best RF gain selection level as high as possible in a way the
signals are not mixing with each other. If the gain is increased, the signals level
goes up as it shown in Figure 4 below.
In Figure 4, when the gain increased then the received signal is stronger. The gain
is not very high to avoid the signals from mixing with each other. As it shown in
Figure 4 the new signals appear but they are not new FM radio stations, they are
the same signals mixing with each other. So if the transmitter is far away from the
receiver then it is good to increase the gain, and if the transmitter is close and the
receiver is receiving strong signals then it is not necessary to increase the gain.
One of the important features, is to correct for inaccuracy in the oscillator in RTL-
SDR frequency. The standard oscillator for the RTL-SDR dongle is 28.8 MHz.
The latest version of R820T2 RTL-SDR dongle its oscillator replaced with a 0.3
ppm temperature controlled oscillator (TCXO) [5]. Frequency error can be
corrected by entering a ppm (parts per million). SDR allows the user to correct the
frequency, for example if the receiver would like to tune to a very fine-tune then
the user has the option to check the oscillatory by zoom in to that signal from the
11
Zoom bar. If the selected signal is not centred in the middle, then the oscillator is
not running at the exact speed. If the signal is not running at the same speed then
one has the option to correct the frequency error, from the configure source button,
and at the bottom of the new windows try to adjust the number of Frequency
correction (ppm) to increase ppm or decrease ppm till the tuner centred at the
middle of the signal. After fixing the frequency correction (ppm), then the receiver
should run at the exact oscillator.
One can listen to different radio stations. Here is some different type of radio
stations in Sweden with Växjö city receiver:
There are some of radio stations received by the RTL-SDR dongle and they are
mentioned in table 1. Sveriges Radio P1 is News, current affairs and culture format
channel. It has a centre frequency about (92.000 - 93.850) MHz, it is possible to
hear clearly without noise when the RF gain set at least 36.4 dB. In addition, the
SNR for SR P1 is approximately around 39.0 dB, and the bandwidth is 168.27
kHz.
The second national radio station is Sveriges Radio P2 which it is classical music,
jazz and folk music format channel plus it has various programmes in different
languages. SR P2 E402 has a centre frequency of (91.000 – 97.350) MHz and RF
gain 28 dB. The SNR of this channel is about 25.4 dB also the bandwidth is
156.600 kHz.
One more national radio station received by the RTL-SDR dongle is Sveriges
Radio P3, it is a contemporary radio. SR P3 E203 has a centre frequency range of
(93.550 – 95.650) MHz. This radio station does not need a very high RF gain; it is
fine with 20.7 dB gain. Moreover, the SNR of SR P3 E203 is about 39.0 dB and
the bandwidth is 168.27 kHz.
Also the SDR-RTL dongle is able to receive Sveriges Radio P4, which it is local
radio, and sport channel. It is named in the SDR_sharp as SR P4 E724 with centre
frequency range of (100.400 – 101.800) MHz. The RF gain is 42.1 dB. Plus, the
SNR is 31.9 dB and the bandwidth is 109.920 kHz.
12
middle RF gain 32.8 dB. The SNR of this station is about 30 dB, and the bandwidth
is 141.050 MHz.
One of the Community Radio station is Gold FM. Gold FM received by the RTL-
SDR dongle under the name Gold FM EBB8. Gold FM has a centre frequency
range of (101.750 – 102.400) MHz in Växjö transmitter. Gold FM has a good
range of RF gain 25.4 dB, this gain is good enough to listen to this station without
noise. The SNR is 18.4 dB and the bandwidth is 234.430 kHz.
MEGAPOL MIX station is a private Swedish radio station. The RTL-SDR dongle
received this channel as MEGAPOL-E243-MIX, with centre frequency range of
(105.500 – 105.800) MHz. The RF gain is 14.4 dB; this gain is quit fine not high.
The SNR is 49.5 dB and the bandwidth is 250 kHz.
There are other radio stations received by the dongle such as b9, but there is no
information about this station. The centre frequency is 89.600 MHz and the RF
gain is 38.6 dB. The SNR of this channel b9 is 30.5 dB, and the bandwidth is
102.140 kHz.
Some other radio stations received by the SDR_sharp software are listed in table
3 in appendix 2.
13
4.5 Tables
Table 1. List of some national radio stations in Sweden
Radio Station SDR_sharp Station Centre Frequency (MHz)
Name
Sveriges Radio P1 SR P1 E201 92.000 - 93.850
Table 1 above shows four nationals radio stations in Sweden. The signals received
in Växjö city.
14
5 Analysis, discussion, and conclusion
5.1 Analysis
As it has mentioned in chapter 2, there are many benefits for SDR. First of the all,
SDR can receive and transmit radio signal. The RTL-SDR dongle is used only to
receive radio signal but if one uses more expensive hardware then can transmit as
well. The drawbacks of the SDR are the sampling rate of the computer, the
frequency range is limited and the bandwidth of the SDR receiver.
5.2 Discussion
I managed to install the SDR_sharp software and the hardware, it was hard to
follow the instructions that are uploaded online to install the software and the
hardware. My computer is Windows 10, the processor is 2.2 GHz and 64-bit
operating system. I tried many ways to have the libraries and the sources and have
them all connected with each other to receive radio signal in my computer. The
steps are mentioned in installation subsection.
Once the SDR_sharp software starts up, then I was able to search for a specific
radio frequency channel that I know, even though listen to WFM station that I do
not know. In SDR_sharp has the waterfall colour which helps to find the active
channel, darker colour shows the weak signals and the bright colour shows the
active channels. In addition, I had the possibility to listen to the weak signals by
adjusting the RF gain. Moreover, I had the chance to listen to the narrow channel
by adjusting its frequency correction. In addition, one can find more information
about the stations found in appendix 2.
The limitation that I have is to receive only WFM channel. I tried to listen to
another radio station other than FM, but I could not because I was not able to find
such AM radio signals to listen to them using the RTL-SDR dongle in Växjö city.
I tried to install HackRF in Windows but it was not possible. However, it can be
possible for another person to receive wider range of frequency using for example
HackRF, if one can successes to install HackRF in Mac or Linux systems so one
can also build a system to transmit as well.
5.3 Conclusion
In a conclusion this report achieved the aim. The installation of the SDR_sharp
software and the dongle hardware installations installed probably. I am able to
obtain and receive many radio stations, FM radio received on my computer.
Moreover, an overview of the SDR receiver specification was given, such as the
processor, front-end and the antenna. In addition, a brief overview of the supported
15
software and some commercial product given. I listed some applications that can
be performed with SDR, for example: NOAA channel, GSM network, AM, and
radio astronomy.
16
References
[1] Michael Ossmann. (2016, February 5). Software defined radio with hackrf.
[Online]. Available: https://greatscottgadgets.com/sdr/
[3] Rtl-sdr.com blog. (2016, February 5). About rtl-sdr. [Online]. Available:
http://www.rtl-sdr.com/about-rtl-sdr/
[4] Rtl-sdr.com blog. (2016, February 18). Quick start guide. [Online]. Available:
http://www.rtl-sdr.com/rtl-sdr-quick-start-guide/
[5] Rtl-sdr.com blog. (2016, February 18). Review of the usa tcxo modified rtl-sdr
dongle. [Online]. Available: http://www.rtl-sdr.com/tag/oscillator/
[6] Michael Ossmann. (2016, February 19). HackRF One. [Online]. Available:
https://greatscottgadgets.com/hackrf/
[8] Rtl-sdr.com blog. (2016, February 22). Rtl-sdr tutorial: analyzing gsm with
airprobe/gr-gsm and wireshark. [Online]. Available: http://www.rtl-sdr.com/rtl-
sdr-tutorial-analyzing-gsm-with-airprobe-and-wireshark/
[9] Rtl-sdr.com blog. (2016, February 22). Rtl-sdr tutorial: receiving noaa
weather satellite images. [Online]. Available: http://www.rtl-sdr.com/rtl-sdr-
tutorial-receiving-noaa-weather-satellite-images/
[10] A national instruments company. (2016, February 24). USRP b200/b210 Bus
Series. [Online]. Available: https://www.ettus.com/content/files/kb/b200-
b210_spec_sheet.pdf
[12] Rtl-sdr.com blog. (2016, February 24). Rtl-sdr for budget radio astronomy.
[Online]. Available: http://www.rtl-sdr.com/rtl-sdr-for-budget-radio-astronomy/
[13] Analog Devices, INC. (2016, February 25). software-defined radio solutions
from analog devices. [Online]. Available:
17
http://www.analog.com/media/en/news-marketing-collateral/solutions-bulletins-
brochures/Software-Defined-Radio-Solutions-From-ADI.pdf
[14] Rtl-sdr.com blog. (2016, March 2). The big list of rtl-sdr supported software.
[Online]. Available: http://www.rtl-sdr.com/big-list-rtl-sdr-supported-software/
[15] The free & open software radio ecosystem. (2016, March 2). Welcome to gnu
radio. [Online]. Available: http://gnuradio.org/redmine/projects/gnuradio/wiki
[17] Amazon. (2016, May 11). ‘‘Nooelec nesdr mini usb rtl-sdr & ads-b receiver
set, rtl2832u & r820t tuner, mcx input. low-cost software defined radio compatible
with many sdr software packages. r820t tuner & esd-safe antenna input’’.
[Online]. Available: http://www.amazon.com/dp/B009U7WZCA?psc=1
18
Appendices
Appendix 1: Supported software.
19
5.4 APPENDIX 1: Supported software.
20
As it shown in table 2 above, there are many supported software and some they
perform in Windows while other in Mac or Linux. This range of software makes
it easier for the user to choose which software to download according to the user
needs. Plus, some of them are free to download and some are paid [14].
21
5.5 APPENDIX 2: Received stations
Other radio stations are received by the SDR-RTL dongle and they are listed
below:
The above stations are received in Växjö city. There is no other information than
the above about these stations such as the station name. They are tested and they
are different radio stations.
22
23
XXIV