Easy SDR Experimentation with GNU Radio

Similar documents
Amplitude Modulation Chapter 2. Modulation process

AM Limitations. Amplitude Modulation II. DSB-SC Modulation. AM Modifications

Amplitude Modulation II

ELEC3242 Communications Engineering Laboratory Amplitude Modulation (AM)

Code No: R Set No. 1


Laboratory Assignment 5 Amplitude Modulation

6 Sampling. Sampling. The principles of sampling, especially the benefits of coherent sampling

Amplitude Modulated Systems

Problems from the 3 rd edition

Real and Complex Modulation

(b) What are the differences between FM and PM? (c) What are the differences between NBFM and WBFM? [9+4+3]

Amplitude Modulation. Ahmad Bilal

Amplitude Modulation, II

Charan Langton, Editor

Weaver SSB Modulation/Demodulation - A Tutorial

Master Degree in Electronic Engineering

B.Tech II Year II Semester (R13) Supplementary Examinations May/June 2017 ANALOG COMMUNICATION SYSTEMS (Electronics and Communication Engineering)

cosω t Y AD 532 Analog Multiplier Board EE18.xx Fig. 1 Amplitude modulation of a sine wave message signal

S.R.M. Institute of Science & Technology School of Electronics & Communication Engineering

Introduction to Amplitude Modulation

Software Defined Radio in Ham Radio Dennis Silage K3DS TS EPA Section ARRL

Outline. Communications Engineering 1

UNIT-I AMPLITUDE MODULATION (2 Marks Questions and Answers)

EE470 Electronic Communication Theory Exam II

SAMPLING THEORY. Representing continuous signals with discrete numbers

PLC2 FPGA Days Software Defined Radio

S.R.M Institute of Science and Technology (Deemed University) Department of Electronics & Communication Engineering

ANALOG COMMUNICATION

TSEK02: Radio Electronics Lecture 2: Modulation (I) Ted Johansson, EKS, ISY

Radio Receiver Architectures and Analysis

Communication Engineering Prof. Surendra Prasad Department of Electrical Engineering Indian Institute of Technology, Delhi

Modulation. Digital Data Transmission. COMP476 Networked Computer Systems. Analog and Digital Signals. Analog and Digital Examples.

TSEK02: Radio Electronics Lecture 2: Modulation (I) Ted Johansson, EKS, ISY

for amateur radio applications and beyond...

CMPT 368: Lecture 4 Amplitude Modulation (AM) Synthesis

Amplitude Modulation. Amplitude Modulation. Amplitude Modulation. Amplitude Modulation. A. Introduction. A. Introduction

Modulation is the process of impressing a low-frequency information signal (baseband signal) onto a higher frequency carrier signal

DEVELOPMENT OF SOFTWARE RADIO PROTOTYPE

Chapter 3. Amplitude Modulation Fundamentals

Signals A Preliminary Discussion EE442 Analog & Digital Communication Systems Lecture 2

Analog-Digital Interface

Communication Channels

Amplitude Modulation Fundamentals

Speech, music, images, and video are examples of analog signals. Each of these signals is characterized by its bandwidth, dynamic range, and the

Part I - Amplitude Modulation

YEDITEPE UNIVERSITY ENGINEERING FACULTY COMMUNICATION SYSTEMS LABORATORY EE 354 COMMUNICATION SYSTEMS

General Class License Theory II. Dick Grote K6PBF

Agilent Vector Signal Analysis Basics. Application Note

Amplitude Modulation Early Radio EE 442 Spring Semester Lecture 6

Chapter 3: Analog Modulation Cengage Learning Engineering. All Rights Reserved.


AM, PM and FM mo m dula l ti t o i n

Direct Digital Synthesis Primer

Digital Receiver Experiment or Reality. Harry Schultz AOC Aardvark Roost Conference Pretoria 13 November 2008

Analog and Telecommunication Electronics

Internal Examination I Answer Key DEPARTMENT OF CSE & IT. Semester: III Max.Marks: 100

END-OF-YEAR EXAMINATIONS ELEC321 Communication Systems (D2) Tuesday, 22 November 2005, 9:20 a.m. Three hours plus 10 minutes reading time.

Spectral Monitoring/ SigInt

Chapter 7 Single-Sideband Modulation (SSB) and Frequency Translation

Frequency Shift Keying Scheme to Implement SDR using Hackrf one

Recap of Last 2 Classes

EE390 Final Exam Fall Term 2002 Friday, December 13, 2002

Radio Technology and Architectures. 1 ENGN4521/ENGN6521: Embedded Wireless L#1

Notes on Fourier transforms

Theoretical 1 Bit A/D Converter

An Interactive Multimedia Introduction to Signal Processing

Intercepting, modifying, and generating wireless signals with SDR

UNIT I AMPLITUDE MODULATION

Satellite Communications: Part 4 Signal Distortions & Errors and their Relation to Communication Channel Specifications. Howard Hausman April 1, 2010

Coming to Grips with the Frequency Domain

Technician License Course Chapter 2. Lesson Plan Module 3 Modulation and Bandwidth

Session 3. CMOS RF IC Design Principles

Technician License Course Chapter 2. Lesson Plan Module 2 Radio Signals and Waves

Spectrum. Additive Synthesis. Additive Synthesis Caveat. Music 270a: Modulation

Digital Communication System

ECE 6560 Multirate Signal Processing Chapter 13

! Amplitude of carrier wave varies a mean value in step with the baseband signal m(t)

CHAPTER 2! AMPLITUDE MODULATION (AM)

Fourier Transform Analysis of Signals and Systems

Analogue & Digital Telecommunications

Software Defined Radio! Primer + Project! Gordie Neff, N9FF! Columbia Amateur Radio Club! March 2016!

CHAPTER 6 Radio Circuits and Systems

Lab 9 Fourier Synthesis and Analysis

EE4512 Analog and Digital Communications Chapter 6. Chapter 6 Analog Modulation and Demodulation

Wireless Communication Systems: Implementation perspective

and RTL-SDR Wireless Systems

Implementation of Digital Signal Processing: Some Background on GFSK Modulation

Experiment No. 2 Pre-Lab Signal Mixing and Amplitude Modulation

Implementation of basic analog and digital modulation schemes using a SDR platform

I-Q transmission. Lecture 17

Emona Telecoms-Trainer ETT-101

Music 171: Amplitude Modulation

UNIVERSITY OF NORTH CAROLINA AT CHARLOTTE Department of Electrical and Computer Engineering

Music 270a: Modulation

Lab 1: Analog Modulations

Pre-distortion. General Principles & Implementation in Xilinx FPGAs

Spectrum. The basic idea of measurement. Instrumentation for spectral measurements Ján Šaliga 2017

Features Listening to FM Radio in Software, Step by Step

QAM Digital Communications

Transcription:

Easy SDR Experimentation with GNU Radio

Introduction to DSP (and some GNU Radio)

About Me EE, Independent Consultant Hardware, Software, Security Cellular, FPGA, GNSS,... DAGR Denver Area GNU Radio meet-up

Purpose Get you into SDR! Cover the basics of SDR to get you started Not Comprehensive coverage Not How To Do X Some examples to make it real

Audience Well, you... duh! Radio fundamentals Algebra, Trigonometry (just a little!)

Software Defined Radio (SDR) What is it? Software? Implies generalized hardware, reconfigurable for a specific purpose E.g. Computer / Software But really Digital Convert an analog signal to digital data Process in the digital realm, rather than analog Digital Signal Processing (DSP)

Analog Receiver Evolution Detector Frequency Selectivity

Analog Receiver Evolution Gain!

Analog Receiver Evolution Frequency Conversion

Analog Receiver Evolution

Digital Conversion ADC DSP DSP DAC

SDR Evolution DSP Super-Heterodyne Demod filtering, processing Detector/Demodulator Additional final IF filtering

SDR Evolution DSP DSP Sub-sampling Zero-IF / Direct-Conversion I/Q, Quadrature

SDR Evolution DSP DSP DSP Direct Sampling, the final frontier

Why? Flexibility! Avoid analog component imperfections Tolerances, Non-linearity, etc. The math doesn t change Greater performance e.g. very sharp filters Sometimes cost Things you just wouldn t do in analog (OFDM) Moore s Law...

Why for Amateurs? Flexibility Performance Advanced modulations Digital modes Experimentation!

Basic DSP Concepts Signals Time Frequency Domains Filtering Sampling Sample Rate Conversion I/Q, Quadrature, Analytic Signals Frequency Conversion De/modulation

Signal Sinusoids Unit Circle, Trigonometry sin(θ)=opp/hyp, cos(θ)=adj/hyp If r=hyp=1 and adj=x, opp=y y=sin(θ), x=cos(θ) Frequency is speed around circle Hz (cycles/sec) = 2*pi (rad/sec)

Time Frequency Domains Different ways of looking at a signal Transforms, Fourier, DFT/FFT Sine wave spike Square wave Odd harmonics Pulse Sinc... sin(x)/x Negative frequency

Filtering Change frequency response and/or phase Filtering = convolution Convolution and multiplication are time-frequency pairs FIR/IIR

Sampling Sampling Discrete time Quantization Discrete value

Sampling Nyquist frequency (½ fs) Spectral Folding Aliasing Inversion Sub-sampling

Sample Rate Conversion Decimation Interpolation Aliasing / Filtering (Pause before I/Q)

I/Q Sampling In-phase and Quadrature-phase AKA Quadrature, Analytic Signal Complex Numbers VERY common in DSP/SDR Very common area of newcomer confusion

SSB I/Q Single sideband modulation and IQ sampling are very similar Use SSB to understand IQ

What is SSB? A derivative of Amplitude Modulation (AM) To understand SSB, first understand AM Before AM, understand modulation Here we go...

Modulation All about altering the properties of a sinusoid. Carrier Wave

Amplitude

Frequency

Phase

Modulation - Basic Types Carrier & Modulation Signal AM, FM, PM

Modulation - Math The modulation function: s(t )=am (t)cos((f c +f m (t))t + pm (t)) Amplitude Frequency Phase something(t) means it may change with time More concisely: s=a m cos((f c +f m )t + pm )

AM Modulation The universal modulation function: s=a m cos((f c +f m )t + pm ) We are only interested in modulating amplitude, so the frequency and phase components drop out. s am =a m cos(f c t)

AM Waveform

AM - Math Recall the AM function: v am=v m cos(ω c t) The modulation signal vm is in the range 0 to 1, where 0 yields zero signal output, and 1 yields 100% carrier amplitude. We want to test our modulation with a sinusoid input so we need to scale and shift it so it is in the range 0 to 1. 1 v m= (cos (ω m t )+1) 2

AM Math 2 v am=v m cos(ω c t) 1 v m= (cos (ω m t )+1) 2 1 v am= (cos (ω m t )+1) cos (ω c t ) 2 1 1 v am= cos ( ωm t ) cos (ω c t )+ cos( ωc t ) 2 2

AM Math 3 1 1 v am= cos ( ωm ) cos( ωc )+ cos (ω c ) 2 2 Use a trigonometric identity to separate the cosine product: 1 1 cos ( A ) cos ( B)= cos ( A B )+ cos ( A+ B ) 2 2 1 1 1 v am= cos( ωc ωm )+ cos (ω c +ωm )+ cos ( ωc ) 4 4 2 Lower Sideband Upper Sideband Carrier Component

AM - Spectrum Carrier Sidebands

AM Spectrum 2 Increased modulation signal frequency increases distance from carrier.

Inching Toward SSB AM/SC AM wastes a lot of energy in the carrier component, can we fix that? AM with Suppressed Carrier (SC)

AM/SC - Spectrum That is what it looks like, but how can we make it?

AM/SC - Math Recall the AM function: v am=v m cos(ω c t) For AM, vm was in the range 0 to 1. For SC, make the range +/- 1, just a regular sinusoid. v m= cos( ωm t )

AM/SC Math 2 v am=v m cos(ω c t) v m= cos( ωm t ) v am= cos( ωm t ) cos (ω c t ) 1 1 cos ( A ) cos ( B)= cos ( A B )+ cos ( A+ B ) 2 2 1 1 v am= cos ( ωc ωm )+ cos (ω c + ωm ) 2 2 Lower Sideband Upper Sideband No Carrier Component!

AM/SC breaks AM Wrong envelope! Carrier amplitude inversion!

SC/SSB Electronics Multiplying negative values One, two, and four quadrant Switchers (Mixers) Diode Ring (Balanced Mixer) Transistor Modulators (Multipliers) Logarithmic amplifiers (Gilbert Cell)

Finally... AM/SSB That is what it looks like, but how can we make it?

AM/SSB - Math Remember the cosine product trig identity? 1 1 cos ( A ) cos ( B)= cos ( A B )+ cos ( A+ B ) 2 2 Here is another: 1 1 sin ( A )sin ( B )= cos( A B ) cos ( A+ B ) 2 2 Notice that minus sign? cos ( A ) cos ( B)+ sin ( A ) sin ( B)=cos ( A B ) Just the lower sideband!

SSB Time Domain Just a sine wave?

SSB Time Domain 2 Carrier and SSB signal

AM/SSB Implementation Simple output, but complicated input... cos ( A ) cos ( B)+ sin ( A ) sin ( B)=cos ( A B ) Recall that sin(x) = cos(x - 90 ), so we just need a 90 phase shift of our carrier and modulating signal frequencies.

Electronic SSB Modulator, Filtering

This Might Look Familiar...

Phase Quadrature Quadrature means 90 degrees Latin Quadratura - (making) a square Sine and Cosine are in quadrature

Quadrature So what? Rotate a point around the unit circle Look at either the sine or cosine graph Can you tell rate of rotation (frequency)? Yes. Can you tell the direction of the rotation? No! (But you can if you see both sine and cosine) So quadrature allows frequency and direction E.g. Negative Frequency

Quadrature Sensors http://www.creative-robotics.com/quadrature-intro

Real Signals No difference between positive or negative frequencies. Thus upper and lower sideband mirror images.

IQ Signals Make You Smarter I = In-phase Cosine Real Q = Quadrature Sine Imaginary

Why Complex Numbers? Why not just treat I and Q as two real values? In some ways IQ is like 2x sample rate, some ways not... 2x bandwidth, but still no negative frequency 90 offset is key, 2x would be 180 Complex numbers represent the relationship between I&Q, especially during operations; like multiplication. Beautiful Math... Euler's Formula: ix e =cos x +i sin x Complex Sinusoid

SSB IQ v ssb =v m e i ωc t SSB is just a multiplication in the complex domain! (As is any frequency translation)

Radio Selection Transmit? Full duplex? Frequency Range Sampling Rate / Bandwidth ADC resolution On-board DSP FPGA, CPU Connectivity USB2/3, Ethernet, PCIe,

Some Radios... Realtek Dongles HackRF Ettus Research BladeRF LimeSDR

Application Ideas Basic AM/FM modulation Multi-channel relay Packet Radio Satellite Direction Finding RADAR Atmospheric/propagation monitoring, Ionosphere, etc. HAM IoT

Demos GNU Radio Fosphor Tx spectrogram image Simple AM/SSB/FM radio, CTCSS, trunking A CTCSS multi-channel full duplex relay Digital Modes OFDM Simultaneous Audio, Slow-scan video, data Digital audio