+ All Categories
Home > Documents > Tom Rondeau Cost Terra

Tom Rondeau Cost Terra

Date post: 01-Dec-2015
Category:
Upload: felipe-andrade
View: 108 times
Download: 10 times
Share this document with a friend
Popular Tags:
36
Digital Modulation Primer using GNU Radio Tom Rondeau [email protected] GNU Radio Maintainer July 3, 2012 Tom Rondeau [email protected] GNU Radio July 3, 2012 1 / 35
Transcript
Page 1: Tom Rondeau Cost Terra

Digital Modulation Primer using GNU Radio

Tom [email protected]

GNU Radio Maintainer

July 3, 2012

Tom Rondeau [email protected] GNU Radio July 3, 2012 1 / 35

Page 2: Tom Rondeau Cost Terra

Introduction

Download Materials

http://www.trondeau.com/gr-tutorial

Presentation PDF

Case Study materials

GNU Radio apps to run examples.Links to source code for analysis.Data file for first case study.Images of expected output.Exercises.

Tom Rondeau [email protected] GNU Radio July 3, 2012 2 / 35

Page 3: Tom Rondeau Cost Terra

Introduction

“The fundamental problem of communication is that ofreproducing at one point either exactly or approximatelya message selected at another point.”

- Claude Shannon, “A Mathematical Theory of Communication”

Tom Rondeau [email protected] GNU Radio July 3, 2012 3 / 35

Page 4: Tom Rondeau Cost Terra

Introduction

GNU Radio is a Development Platform for

Communications

Building Blocks

1 Rapid prototyping of PHY layer systems.

2 Analysis and development of signals.

3 Educational material to teach the workings of various comms.

4 Expose engineering techniques and tricks.

Tom Rondeau [email protected] GNU Radio July 3, 2012 4 / 35

Page 5: Tom Rondeau Cost Terra

GNU Radio Information

Information Sources for GNU Radio

Tools and Manuals

Project website: gnuradio.org

Download source:gnuradio.org/redmine/projects/gnuradio/wiki/Download

Online C++ Manual: gnuradio.org/doc/doxygen/

Online Python Manual: gnuradio.org/doc/sphinx/

My website for news and analysis: www.trondeau.com

Tom Rondeau [email protected] GNU Radio July 3, 2012 5 / 35

Page 6: Tom Rondeau Cost Terra

GNU Radio Information

Community

Active developer community producing examples.

Large participation on our mailing list.

The Complimentary GNU Radio Archive Network (CGRAN).

Growing list of projects on github.

GNU Radio Conference:www.trondeau.com/gnu-radio-conference-2012

Tom Rondeau [email protected] GNU Radio July 3, 2012 6 / 35

Page 7: Tom Rondeau Cost Terra

GNU Radio Information

Available Components (as of v3.7)

Fundamentals

gr-analog

gr-block

gr-digital

gr-fec

gr-fft

gr-filter

gr-runtime

gr-trellis

gr-vocoder

gr-wavelet

Graphical Interfaces

gr-qtgui

gr-wxgui

Hardware Interfaces

gr-audio

gr-comedi

gr-fcd

gr-shd

gr-uhd

Tom Rondeau [email protected] GNU Radio July 3, 2012 7 / 35

Page 8: Tom Rondeau Cost Terra

Exploring

Filtering

“The need for filters intrudes on any thought experiment

about the wonders of abundant information.”

- James Gleik, The Information

Tom Rondeau [email protected] GNU Radio July 3, 2012 8 / 35

Page 9: Tom Rondeau Cost Terra

Exploring

GNU Radio’s gr filter design Tool

Tom Rondeau [email protected] GNU Radio July 3, 2012 9 / 35

Page 10: Tom Rondeau Cost Terra

Exploring

Filtering Noise

filtering.grc

Example of using a filter to shape noise.

Tom Rondeau [email protected] GNU Radio July 3, 2012 10 / 35

Page 11: Tom Rondeau Cost Terra

Exploring

Filtering Noise

With a simple low-pass filter, we can adjust the bandwidth of the filter toadjust the shape of the noise.

Tom Rondeau [email protected] GNU Radio July 3, 2012 11 / 35

Page 12: Tom Rondeau Cost Terra

Exploring

Sources and Sinks

sources and sinks.grc

Demonstration of using multiple sources to create a noisy sine wave andmultiple sinks to view it in different domains.

Tom Rondeau [email protected] GNU Radio July 3, 2012 12 / 35

Page 13: Tom Rondeau Cost Terra

Exploring

Sources and Sinks

Showing both the frequency and time domain of the noisy signal.

Tom Rondeau [email protected] GNU Radio July 3, 2012 13 / 35

Page 14: Tom Rondeau Cost Terra

Digital Modulation Study

Information Representation

bits representation.grc

We can visualize bits as a series of 1’s and 0’s that are translated into 1’sand −1′’s.

Tom Rondeau [email protected] GNU Radio July 3, 2012 14 / 35

Page 15: Tom Rondeau Cost Terra

Digital Modulation Study

Information Representation

bits representation.grc

We can do the same for another stream of bits and work actually combinethem into a single signal.

Tom Rondeau [email protected] GNU Radio July 3, 2012 15 / 35

Page 16: Tom Rondeau Cost Terra

Digital Modulation Study

Information Representation

bits representation.grc

We combine these by using complex numbers as an orthogonal basis.

Tom Rondeau [email protected] GNU Radio July 3, 2012 16 / 35

Page 17: Tom Rondeau Cost Terra

Digital Modulation Study

Complex Numbers

z(t) = x(t)cos(2πft + φ(t)) + jy(t)sin(2πft + φ(t))

z(t) = c(t)e−j2πft+φ(t)

Tom Rondeau [email protected] GNU Radio July 3, 2012 17 / 35

Page 18: Tom Rondeau Cost Terra

Digital Modulation Study

Complex Numbers: Polar Plots

45°

90°

135°

180°

225°

270°

315°

0.20.4

0.60.8

1.0

Phase = -3.8096

Phase = 36.0604

Phase = 71.1625Phase = 109.9112

Frequency = 100 HzTime per Sample = 1.0 msRadians per Sample = 36.0

Tom Rondeau [email protected] GNU Radio July 3, 2012 18 / 35

Page 19: Tom Rondeau Cost Terra

Digital Modulation Study

Information as a Complex Number

bit representations.grc

Putting one signal on the real axis and another signal on the imaginaryaxis, we can combine these on two orthogonal planes. The “constellation”plot on the right is just a polar plot.

Tom Rondeau [email protected] GNU Radio July 3, 2012 19 / 35

Page 20: Tom Rondeau Cost Terra

M-PSK Example

Modulating & Transmitting a Signal

mpsk stage1.grc

Using a pre-build PSK modulator block from GNU Radio.

Tom Rondeau [email protected] GNU Radio July 3, 2012 20 / 35

Page 21: Tom Rondeau Cost Terra

M-PSK Example

Modulating & Transmitting a Signal

Tom Rondeau [email protected] GNU Radio July 3, 2012 21 / 35

Page 22: Tom Rondeau Cost Terra

M-PSK Example

The Received Signal

mpsk stage2.grc

We can simulate a channel model with noise, frequency and timing offsets,and multipath.

Tom Rondeau [email protected] GNU Radio July 3, 2012 22 / 35

Page 23: Tom Rondeau Cost Terra

M-PSK Example

The Received Signal

Signal captured using a multipath channel with some AWGN noise andtiming offset. To make the signal recognizable, no frequency offset wasused.

Tom Rondeau [email protected] GNU Radio July 3, 2012 23 / 35

Page 24: Tom Rondeau Cost Terra

M-PSK Example

After Timing Recovery

mpsk stage3.grc

We use a control loop algorithm to find the right sampling time to fixclock mismatches between the transmitter and receiver.

Tom Rondeau [email protected] GNU Radio July 3, 2012 24 / 35

Page 25: Tom Rondeau Cost Terra

M-PSK Example

After Timing Recovery

Showing a no-noise situation to illustrate ISI (self-interference) issues inthe received signal before timing recovery and matched filtering.

Tom Rondeau [email protected] GNU Radio July 3, 2012 25 / 35

Page 26: Tom Rondeau Cost Terra

M-PSK Example

After Timing Recovery - With Noise

Even with noise, we can still recover the proper timing.

Tom Rondeau [email protected] GNU Radio July 3, 2012 26 / 35

Page 27: Tom Rondeau Cost Terra

M-PSK Example

Multipath in Brief

Multipath channels result from a signal bouncing off objects and hittingthe receiver at different times and with different phases.

Tom Rondeau [email protected] GNU Radio July 3, 2012 27 / 35

Page 28: Tom Rondeau Cost Terra

M-PSK Example

Effects of Multipath

mpsk multipath.grc

This simulation allows us to adjust the multipath channel as though weare adjusting a stereo’s equalizer. (See also: multipath sim.grc)

Tom Rondeau [email protected] GNU Radio July 3, 2012 28 / 35

Page 29: Tom Rondeau Cost Terra

M-PSK Example

Equalizing Multipath

Cartoon showing signal corrupted by multipath. Equalizer tries to invertthe multipath so that the combination is a flat frequency response.

Tom Rondeau [email protected] GNU Radio July 3, 2012 29 / 35

Page 30: Tom Rondeau Cost Terra

M-PSK Example

Equalizing Multipath

mpsk stage4.grc

Using the constant modulus algorithm (CMA) blind equalizer is used hereto correct multipath distortion.

Tom Rondeau [email protected] GNU Radio July 3, 2012 30 / 35

Page 31: Tom Rondeau Cost Terra

M-PSK Example

Equalizing Multipath

Note the similarity between the time-synchronized and filtered output withmultipath and the ISI of the signal before the matched filter with nomultipath.

Tom Rondeau [email protected] GNU Radio July 3, 2012 31 / 35

Page 32: Tom Rondeau Cost Terra

M-PSK Example

Equalizing Multipath

Equalization working with noise.

Tom Rondeau [email protected] GNU Radio July 3, 2012 32 / 35

Page 33: Tom Rondeau Cost Terra

M-PSK Example

Phase Offset Correction

mpsk stage5.grc

The transmitter and receiver work off different clocks, so there will be afrequency and phase offset. We need to correct for any small frequencyand phase offsets.

Tom Rondeau [email protected] GNU Radio July 3, 2012 33 / 35

Page 34: Tom Rondeau Cost Terra

M-PSK Example

After Timing Recovery - With Noise

Left figure shows a rotate constellation. The Costas Loop block fixes theoffset.

Tom Rondeau [email protected] GNU Radio July 3, 2012 34 / 35

Page 35: Tom Rondeau Cost Terra

fin.

Tom Rondeau [email protected] GNU Radio July 3, 2012 35 / 35

Page 36: Tom Rondeau Cost Terra

Recommended