wireless phy: modulation and demodulation

42
Wireless PHY: Modulation and Demodulation Y. Richard Yang 09/6/2012

Upload: bart

Post on 15-Jan-2016

38 views

Category:

Documents


0 download

DESCRIPTION

Wireless PHY: Modulation and Demodulation. Y. Richard Yang 09 /6/2012. Outline. Admin and recap Frequency domain examples Basic concepts of modulation Amplitude modulation Amplitude demodulation frequency shifting. Admin. First assignment to be posted by this weekend - PowerPoint PPT Presentation

TRANSCRIPT

Page 1: Wireless PHY:  Modulation and Demodulation

Wireless PHY: Modulation and Demodulation

Y. Richard Yang

09/6/2012

Page 2: Wireless PHY:  Modulation and Demodulation

2

Outline

Admin and recap Frequency domain examples Basic concepts of modulation Amplitude modulation Amplitude demodulation

frequency shifting

Page 3: Wireless PHY:  Modulation and Demodulation

3

Admin

First assignment to be posted by this weekend

Any feedback on pace and coverage

Page 4: Wireless PHY:  Modulation and Demodulation

4

Recap: Fourier Series of Periodic Function

A periodic function g(t) with period T on [a, a+T] can be decomposed as:

For periodic function with period 1 on [0, 1]

Page 5: Wireless PHY:  Modulation and Demodulation

5

Fourier Transform

For those who are curious, we do not need it formally

Problem: Fourier series for periodic function g(t), what if g(t) is not periodical?

Approach: Truncate g(t) beyond [-L/2, L/2] (i.e., set =

0) and then repeat to define gL(t)

Page 6: Wireless PHY:  Modulation and Demodulation

6

Fourier Transform

Define

Let L grow to infinity, we derive Fourier Transform:

Page 7: Wireless PHY:  Modulation and Demodulation

Fourier Series vs Fourier Transform Fourier series

For periodical functions, e.g., [0, 1]

Fourier transform For non periodical

functions

7http://www.differencebetween.com/difference-between-fourier-series-and-vs-fourier-transform/

Page 8: Wireless PHY:  Modulation and Demodulation

Recap: Discrete Domain Analysis

FFT: Transforming a sequence of numbers x0, x1, …, xN-1 to another sequence of numbers X0, X1, …, XN-1

Note

8

Page 9: Wireless PHY:  Modulation and Demodulation

Recap: Discrete Domain Analysis

FFT: Transforming a sequence of numbers x0, x1, …, xN-1 to another sequence of numbers X0, X1, …, XN-1

Interpretation: consider x0, x1, …, xN-1 as sampled values of a periodical function defined on [0, 1]

Xk is the coefficient (scaled by N) for k Hz harmonics if the FFT N samples span one sec

9

Page 10: Wireless PHY:  Modulation and Demodulation

10

FFT Analysis vs Sample Rate

X1

Nfft=Nsample

X2 XNfft/2

1Hz 2Hz Nfft/2 Hz

The freq. analysis resolution:

Page 11: Wireless PHY:  Modulation and Demodulation

11

Frequency Domain Analysis Examples Using GNURadio

spectrum_2sin_plus Audio FFT Sink Scope Sink Noise

Page 12: Wireless PHY:  Modulation and Demodulation

12

Frequency Domain Analysis Examples Using GNURadio

spectrum_1sin_rawfft Raw FFT

Page 13: Wireless PHY:  Modulation and Demodulation

13

Frequency Domain Analysis Examples Using GNURadio

spectrum_2sin_multiply_complex Multiplication of a sine first by

• a real sine and then by • a complex sine

to observe spectrum

Page 14: Wireless PHY:  Modulation and Demodulation

14

Takeaway from the Example

Advantages of I/Q representation

Page 15: Wireless PHY:  Modulation and Demodulation

15

I/Q Multiplication Also Called Quadrature Mixing

spectrum of complexsignal x(t)

spectrum of complexsignal x(t)ej2f0t

spectrum of complexsignal x(t)e-j2f0t

Page 16: Wireless PHY:  Modulation and Demodulation

16

Basic Question: Why Not Send Digital Signal in Wireless Communications?

Signals at undesirable frequencies suppose digital frame repeat every T

seconds, then according to Fourier series decomposition, signal decomposes into frequencies at 1/T, 2/T, 3/T, …

let T = 1 ms, generates radio waves at frequencies of 1 KHz, 2 KHz, 3 KHz, …

1

0

digital signal

t

Page 17: Wireless PHY:  Modulation and Demodulation

17

Frequencies are Assigned and Regulated

Europe USA Japan

Cellular Phones

GSM 450 - 457, 479 -486/460 - 467,489 -496, 890 - 915/935 -960, 1710 - 1785/1805 -1880 UMTS (FDD) 1920 -1980, 2110 - 2190 UMTS (TDD) 1900 -1920, 2020 - 2025

AMPS , TDMA , CDMA 824 - 849, 869 -894 TDMA , CDMA , GSM 1850 - 1910, 1930 - 1990

PDC 810- 826, 940-956, 1429 - 1465, 1477 - 1513

Cordless Phones

CT1+ 885 - 887, 930 -932 CT2 864-868 DECT 1880 - 1900

PACS 1850 - 1910, 1930 -1990 PACS -UB 1910 - 1930

PHS 1895 - 1918 JCT 254-380

Wireless LANs

IEEE 802.11 2400 - 2483 HIPERLAN 2 5150 - 5350, 5470 -5725

902-928 I EEE 802.11 2400 - 2483 5150 - 5350, 5725 - 5825

IEEE 802.11 2471 - 2497 5150 - 5250

Others RF- Control 27, 128, 418, 433,

868

RF- Control 315, 915

RF- Control 426, 868

US operator: http://wireless.fcc.gov/uls

Page 18: Wireless PHY:  Modulation and Demodulation

18

Spectrum and Bandwidth: Shannon Channel Capacity The maximum number of bits that can be

transmitted per second by a physical channel is:

where W is the frequency range of the channel, and S/N is the signal noise ratio, assuming Gaussian noise

)1(log2 NSW

Page 19: Wireless PHY:  Modulation and Demodulation

19

Frequencies for Communications

VLF = Very Low Frequency UHF = Ultra High FrequencyLF = Low Frequency SHF = Super High FrequencyMF = Medium Frequency EHF = Extra High Frequency

HF = High Frequency UV = Ultraviolet LightVHF = Very High Frequency

Frequency and wave length:

= c/f

wave length , speed of light c 3x108m/s, frequency f

1 Mm300 Hz

10 km30 kHz

100 m3 MHz

1 m300 MHz

10 mm30 GHz

100 m3 THz

1 m300 THz

visible lightVLF LF MF HF VHF UHF SHF EHF infrared UV

optical transmissioncoax cabletwisted pair

Page 20: Wireless PHY:  Modulation and Demodulation

20

Why Not Send Digital Signal in Wireless Communications?

voice Transmitter

20-20KHzAntenna:

size ~ wavelength

At 3 KHz,

Antenna too large!Use modulation to transfer

to higher frequency

Page 21: Wireless PHY:  Modulation and Demodulation

21

Outline

Recap Frequency domain examples Basic concepts of modulation

Page 22: Wireless PHY:  Modulation and Demodulation

22

The information source Typically a low frequency signal Referred to as baseband signal

Carrier A higher frequency sinusoid Example cos(2π10000t)

Modulated signal Some parameter of the carrier (amplitude, frequency,

phase) is varied in accordance with the baseband signal

Basic Concepts of Modulation

Page 23: Wireless PHY:  Modulation and Demodulation

23

Types of Modulation

Analog modulation Amplitude modulation (AM) Frequency modulation (FM) Double and signal sideband: DSB, SSB

Digital modulation Amplitude shift keying (ASK) Frequency shift keying: FSK Phase shift keying: BPSK, QPSK, MSK Quadrature amplitude modulation (QAM)

Page 24: Wireless PHY:  Modulation and Demodulation

24

Outline

Recap Frequency domain examples Basic concepts of modulation Amplitude modulation

Page 25: Wireless PHY:  Modulation and Demodulation

25

Example: Amplitude Modulation (AM)

Block diagram

Time domain

Frequency domain

Page 26: Wireless PHY:  Modulation and Demodulation

26

Example: am_modulation Example

Setting Audio source (sample 32K) Signal source (300K, sample 800K) Multiply

Two Scopes

FFT Sink

Page 27: Wireless PHY:  Modulation and Demodulation

27

Example AM Frequency Domain

Note: There is always the negative freq. in the freq. domain.

Page 28: Wireless PHY:  Modulation and Demodulation

28

Problem: How to Demodulate AM Signal?

Page 29: Wireless PHY:  Modulation and Demodulation

29

Outline

Admin and recap Frequency domain examples Basic concepts of modulation Amplitude modulation Amplitude demodulation

frequency shifting

Page 30: Wireless PHY:  Modulation and Demodulation

30

Design Option 1

Step 1: Multiply signal by e-j2πfct

Implication: Need to do complex multiple multiplication

Page 31: Wireless PHY:  Modulation and Demodulation

31

Design Option 1 (After Step 1)

-2fc

Page 32: Wireless PHY:  Modulation and Demodulation

32

Design Option 1 (Step 2)

Apply a Low Pass Filter to remove the extra frequencies at -2fc

-2fc

Page 33: Wireless PHY:  Modulation and Demodulation

33

Design Option 1 (Step 1 Analysis)

How many complex multiplications do we need for Step 1 (Multiply by e-j2πfct)?

Page 34: Wireless PHY:  Modulation and Demodulation

34

Design Option 2: Quadrature Sampling

Page 35: Wireless PHY:  Modulation and Demodulation

35

Quadrature Sampling: Upper Path (cos)

Page 36: Wireless PHY:  Modulation and Demodulation

36

Quadrature Sampling: Upper Path (cos)

Page 37: Wireless PHY:  Modulation and Demodulation

37

Quadrature Sampling: Upper Path (cos)

Page 38: Wireless PHY:  Modulation and Demodulation

38

Quadrature Sampling: Lower Path (sin)

Page 39: Wireless PHY:  Modulation and Demodulation

39

Quadrature Sampling: Lower Path (sin)

Page 40: Wireless PHY:  Modulation and Demodulation

40

Quadrature Sampling: Lower Path (sin)

Page 41: Wireless PHY:  Modulation and Demodulation

41

Quarature Sampling: Putting Together

Page 42: Wireless PHY:  Modulation and Demodulation

42

Exercise: SpyWork

Setting: a scanner scans 128KHz blocks of AM radio and saves each block to a file.

SpyWork: Scan the block in a saved file to find radio stations and tune to each station (each AM station has 10 KHz)