Wireless PHY: Digital Demodulation and Wireless Channels Y. Richard Yang 09/13/2012.

62
Wireless PHY: Digital Demodulation and Wireless Channels Y. Richard Yang 09/13/2012

Transcript of Wireless PHY: Digital Demodulation and Wireless Channels Y. Richard Yang 09/13/2012.

Page 1: Wireless PHY: Digital Demodulation and Wireless Channels Y. Richard Yang 09/13/2012.

Wireless PHY: Digital Demodulation and

Wireless Channels

Y. Richard Yang

09/13/2012

Page 2: Wireless PHY: Digital Demodulation and Wireless Channels Y. Richard Yang 09/13/2012.

2

Outline

Admin and recap Digital demodulation Wireless channels

Page 3: Wireless PHY: Digital Demodulation and Wireless Channels Y. Richard Yang 09/13/2012.

3

Admin

Assignment 1 posted

Page 4: Wireless PHY: Digital Demodulation and Wireless Channels Y. Richard Yang 09/13/2012.

4

Demodulation Low pass filter and FIR Convolution Theorem

Digital modulation/demodulation ASK, FSK, PSK General representation

Recap

Page 5: Wireless PHY: Digital Demodulation and Wireless Channels Y. Richard Yang 09/13/2012.

Recap: gi() for BPSK

5

1: g1(t) = cos(2πfct) t in [0, T]

0: g0(t) = -cos(2πfct) t in [0, T]

Note: g1(t) = -g0(t)

cos(2πfct)[0, T]1-1

g1(t)g0(t)

Page 6: Wireless PHY: Digital Demodulation and Wireless Channels Y. Richard Yang 09/13/2012.

Recap: Signaling Functions gi() for QPSK

6

11: cos(2πfct + π/4) t in [0, T]

10: cos(2πfct + 3π/4) t in [0, T]

00: cos(2πfct - 3π/4) t in [0, T]

01: cos(2πfct - π/4) t in [0, T]

Q

I

11

01

10

00

Page 7: Wireless PHY: Digital Demodulation and Wireless Channels Y. Richard Yang 09/13/2012.

Recap: QPSK Signaling Functions as Sum of cos(2πfct), sin(2πfct)

7

11: cos(π/4 + 2πfct) t in [0, T]-> cos(π/4) cos(2πfct) +

-sin(π/4) sin(2πfct)

10: cos(3π/4 + 2πfct) t in [0, T]-> cos(3π/4) cos(2πfct) +

-sin(3π/4) sin(2πfct)

00: cos(- 3π/4 + 2πfct) t in [0, T]-> cos(3π/4) cos(2πfct) +

sin(3π/4) sin(2πfct)

01: cos(- π/4 + 2πfct) t in [0, T]-> cos(π/4) cos(2πfct) +

sin(π/4) sin(2πfct)

sin(2πfct)

11

00

10

cos(2πfct)

[cos(π/4), sin(π/4)]

01

[cos(3π/4), sin(3π/4)]

[cos(3π/4), -sin(3π/4)]

[-sin(π/4), cos(π/4)]

We call sin(2πfct) and cos(2πfct) the bases.

Page 8: Wireless PHY: Digital Demodulation and Wireless Channels Y. Richard Yang 09/13/2012.

Recap: Demodulation/Decoding

8

Considered a simple on-off setting: sender uses a single signaling function g(), and can have two actions send g() or nothing (send 0)

How does receiver use the received sequence x(t) in [0, T] to detect if sends g() or nothing?

Page 9: Wireless PHY: Digital Demodulation and Wireless Channels Y. Richard Yang 09/13/2012.

Recap: Design

9

Streaming algorithm: use all data points in [0, T] As each sample xi comes in, multiply it by a factor hT-i-

1 and accumulate to a sum y

At time T, makes a decision based on the accumulated sum at time T: y[T]

xTx2x1x0

h0h1h2hT

****

Page 10: Wireless PHY: Digital Demodulation and Wireless Channels Y. Richard Yang 09/13/2012.

Determining the Best h

10

where w is noise,

Design objective: maximize peak pulse signal-to-noise ratio

Page 11: Wireless PHY: Digital Demodulation and Wireless Channels Y. Richard Yang 09/13/2012.

Determining the Best h

11

Assume Gaussian noise, one can derive

Using Fourier Transform and Convolution Theorem:

Page 12: Wireless PHY: Digital Demodulation and Wireless Channels Y. Richard Yang 09/13/2012.

Determining the Best h

12

Apply Schwartz inequality

By considering

Page 13: Wireless PHY: Digital Demodulation and Wireless Channels Y. Richard Yang 09/13/2012.

Determining the Best h

13

Page 14: Wireless PHY: Digital Demodulation and Wireless Channels Y. Richard Yang 09/13/2012.

Determining Best h to Use

14

xTx2x1x0

gTg2g1g0

****

xTx2x1x0

h0h1h2hT

****

Page 15: Wireless PHY: Digital Demodulation and Wireless Channels Y. Richard Yang 09/13/2012.

Matched Filter Decision

is called Matched filter.Example

15

decision time

Page 16: Wireless PHY: Digital Demodulation and Wireless Channels Y. Richard Yang 09/13/2012.

Summary of Progress

16

After this “complex” math, the implementation/interpretation is actually the following quite simple alg: precompute auto correlation: <g, g>

compute the correlation between received x and signaling function g, denoted as <x, g>

if <x, g> is closer to <g, g> • output sends g

else• output sends nothing

Page 17: Wireless PHY: Digital Demodulation and Wireless Channels Y. Richard Yang 09/13/2012.

Applying Scheme to BPSK

17

Consider g1 alone, compute <x, g1>, check if close to <g1, g1>: |<x, g1> - <g1, g1>|

Consider g0 alone, compute <x, g0>, check if close to <g0, g0>: |<x, g0> - <g0, g0>|

Pick closer if |<x, g1> - <g1, g1>| < |<x, g0> - <g0, g0>|

• pick 1 else

• pick 0

cos(2πfct)[0, T]1-1

g1(t)g0(t)

Page 18: Wireless PHY: Digital Demodulation and Wireless Channels Y. Richard Yang 09/13/2012.

Applying Scheme to BPSK

18

since g0 = -g1 <x, g0> = - <x, g1>

<g0, g0> = - <g0, g1>

rewrite as if |<x, g1> - <g1, g1>| < |<x, g1> - <g0, g1>|

• pick 1 else

• pick 0

cos(2πfct)[0, T]1-1

g1(t)g0(t)

Page 19: Wireless PHY: Digital Demodulation and Wireless Channels Y. Richard Yang 09/13/2012.

Interpretation

19

For any signal s, <s, g1> computes the coordinate (projection) of s when using g1 as a base cleaner if g1 is normalized (i.e., scale g1 by

sqrt of <g1, g1>), but we do not worry about it yet

g1=cos(2πfct)[0, T]

<g1(t), g1(t)><g0(t), g1(t)>

=-<g1(t), g1(t)>

<x, g1(t)>

Page 20: Wireless PHY: Digital Demodulation and Wireless Channels Y. Richard Yang 09/13/2012.

Applying Scheme to QPSK: Attempt 1

20

Consider g00 alone, compute <x, g00> …

Consider g01 alone, compute <x, g01> …

Consider g10 alone, compute <x, g10> …

Consider g11 alone, compute <x, g11> … Issues

Complexity:• need to compute M correlation, where M is number of

signaling functions• Think of 64-QAM

Objective• the previous scheme is defined for a single signaling

function, does it work for M?

Page 21: Wireless PHY: Digital Demodulation and Wireless Channels Y. Richard Yang 09/13/2012.

Decoding for QPSK using bases

21

4 signaling functions g00(), g01(), g10(), g11() For each signaling function, computes

correlation with the bases (cos(), sin()), e.g., g00: [a00, b00]

Q: Where did we see a similar computation format for computing a00, b00?

For received signal x, computes ax=<x, cos> and bx=<x, sin> (how many correlations do we do now?)

Page 22: Wireless PHY: Digital Demodulation and Wireless Channels Y. Richard Yang 09/13/2012.

QPSK Demodulation/Decoding

22

sin(2πfct)

cos(2πfct)

[a01,b01]

[a10,b10]

[a00,b00]

[a11,b11]

[ax,bx]

Q: how to decode?

Page 23: Wireless PHY: Digital Demodulation and Wireless Channels Y. Richard Yang 09/13/2012.

Look into Noise

23

Assume sender sends gm(t) [0, T] Receiver receives x(t) [0, T]

Consider one sample

where w[i] is noise Assume white noise, i.e., prob w[i] = z is

2

2

2

2

1)(

z

ezf

Page 24: Wireless PHY: Digital Demodulation and Wireless Channels Y. Richard Yang 09/13/2012.

24

Likelihood

What is the likelihood (prob.) of observing x[i]? it is the prob. of noise being w[i] = x[i] – g[i]

What is the likelihood (prob.) of observing the whole sequence x? the product of the probabilities

Page 25: Wireless PHY: Digital Demodulation and Wireless Channels Y. Richard Yang 09/13/2012.

Likelihood Detection

25

Suppose we know

Maximum likelihood detection picks the m with the highest P{x|gm}.

From the expression

We pick m with the lowest ||x-gm||2

Page 26: Wireless PHY: Digital Demodulation and Wireless Channels Y. Richard Yang 09/13/2012.

Back to QPSK

26

Page 27: Wireless PHY: Digital Demodulation and Wireless Channels Y. Richard Yang 09/13/2012.

QPSK Demodulation/Decoding

27

sin(2πfct)

cos(2πfct)

[a01,b01]

[a10,b10]

[a00,b00]

[a11,b11]

[ax,bx]

Q: what does maximum likelihood det pick?

Page 28: Wireless PHY: Digital Demodulation and Wireless Channels Y. Richard Yang 09/13/2012.

General Matched Filter Detection: Implementation for Multiple Sig Func.

28

Basic idea consider each gm[0,T] as a point (with

coordinates) in a space

compute the coordinate of the received signal x[0,T]

check the distance between gm[0,T] and the received signal x[0,T]

pick m* that gives the lowest distance value

Page 29: Wireless PHY: Digital Demodulation and Wireless Channels Y. Richard Yang 09/13/2012.

Computing Coordinates

29

Pick orthogonal bases {f1(t), f2(t), …, fN(t)} for {g1(t), g2(t), …, gM(t)}

Compute the coordinate of gm[0,T] as cm = [cm1, cm2, …, cmN], where

Compute the coordinate of the received signal x[0,T] as x = [x1, x2, …, xN]

Compute the distance between r and cm every cm and pick m* that gives the lowest distance value

Page 30: Wireless PHY: Digital Demodulation and Wireless Channels Y. Richard Yang 09/13/2012.

Example: Matched Filter => Correlation Detector

30

receivedsignal x

Page 31: Wireless PHY: Digital Demodulation and Wireless Channels Y. Richard Yang 09/13/2012.

31

BPSK vs QPSK

BPSK

QPSK

fc: carrier freq.Rb: freq. of data10dB = 10; 20dB =100

11 10 00 01

A

t

Page 32: Wireless PHY: Digital Demodulation and Wireless Channels Y. Richard Yang 09/13/2012.

BPSK vs QPSK

A major metric of modulation performance is spectral density (SD)

Q: what is the SD of BPSK vs that of QPSK? Q: Why would any one use BPSK, given

higher QAM?32

Spectral Density =

bit rate-------------------

width of spectrum used

Page 33: Wireless PHY: Digital Demodulation and Wireless Channels Y. Richard Yang 09/13/2012.

Context

Previous demodulation considers only additive noise, and does not consider wireless channel’s effects Wireless channels more than add some

noise to a signaling function g(t)

We next study its effects

33

Page 34: Wireless PHY: Digital Demodulation and Wireless Channels Y. Richard Yang 09/13/2012.

34

Outline

Admin and recap Digital demodulation Wireless channels

Page 35: Wireless PHY: Digital Demodulation and Wireless Channels Y. Richard Yang 09/13/2012.

Signal Propagation

Page 36: Wireless PHY: Digital Demodulation and Wireless Channels Y. Richard Yang 09/13/2012.

36

Isotropic radiator: a single point equal radiation in all directions (three dimensional) only a theoretical reference antenna

Radiation pattern: measurement of radiation around an antenna

zy

x

z

y x idealisotropicradiator

Antennas: Isotropic Radiator

Q: how does power level decrease as a function of d, the distancefrom the transmitter to the receiver?

Page 37: Wireless PHY: Digital Demodulation and Wireless Channels Y. Richard Yang 09/13/2012.

37

Free-Space Isotropic Signal Propagation

In free space, receiving power proportional to 1/d² (d = distance between transmitter and receiver)

Suppose transmitted signal is cos(2ft), the received signal is

Pr: received power

Pt: transmitted power

Gr, Gt: receiver and transmitter antenna gain

(=c/f): wave length

Sometime we write path loss in log scale: Lp = 10 log(Pt) – 10log(Pr)

d

cdtftfEd

)]/(2cos[),(

Page 38: Wireless PHY: Digital Demodulation and Wireless Channels Y. Richard Yang 09/13/2012.

38

Log Scale for Large SpandB = 10 log(times)

Slim/Gates

~100B

Obama

~10M

~10K

1000 times

40 dB

10,000 times

30 dB

10,000 x 1,000

40 + 30 = 70 dB

Page 39: Wireless PHY: Digital Demodulation and Wireless Channels Y. Richard Yang 09/13/2012.

39

Path Loss in dBdB = 10 log(times)

source

10 W

d1

1 mW

1 uW

1000 times

40 dB

10,000 times

30 dB

10,000 x 1,000

40 + 30 = 70 dBpower

d2

Page 40: Wireless PHY: Digital Demodulation and Wireless Channels Y. Richard Yang 09/13/2012.

40

dBm (Absolute Measure of Power)dBm = 10 log (P/1mW)

source

10 W

d1

1 mW

1 uW

1000 times

40 dB

10,000 times

30 dB

10,000 x 1,000

40 + 30 = 70 dBpower

d2

40 dBm

-30 dBm

Page 41: Wireless PHY: Digital Demodulation and Wireless Channels Y. Richard Yang 09/13/2012.

41

Number in Perspective (Typical #)

Page 42: Wireless PHY: Digital Demodulation and Wireless Channels Y. Richard Yang 09/13/2012.

42

Exercise: 915MHz WLAN (free space) Transmit power (Pt) = 24.5 dBm Receive sensitivity = -64.5 dBm

Receiving distance (Pr) =

Gt=Gr=1

Page 43: Wireless PHY: Digital Demodulation and Wireless Channels Y. Richard Yang 09/13/2012.

43

Two-ray Ground Reflection Model

Single line-of-sight is not typical. Two paths (direct and reflect) cancel each other and reduce signal strength

Pr: received power

Pt: transmitted power

Gr, Gt: receiver and transmitter antenna gain

hr, ht: receiver and transmitter height

Page 44: Wireless PHY: Digital Demodulation and Wireless Channels Y. Richard Yang 09/13/2012.

44

Exercise: 915MHz WLAN (Two-ray ground reflect) Transmit power (Pt) = 24.5 dBm Receive sensitivity = -64.5 dBm

Receiving distance (Pr) =

Gt=Gr=hr=ht=1

Page 45: Wireless PHY: Digital Demodulation and Wireless Channels Y. Richard Yang 09/13/2012.

45

Real Antennas

Real antennas are not isotropic radiators Some simple antennas: quarter wave /4 on car roofs or

half wave dipole /2 size of antenna proportional to wavelength for better transmission/receiving

/4/2

Q: Assume frequency 1 Ghz, = ?

Page 46: Wireless PHY: Digital Demodulation and Wireless Channels Y. Richard Yang 09/13/2012.

46

Figure for Thought: Real Measurements

Page 47: Wireless PHY: Digital Demodulation and Wireless Channels Y. Richard Yang 09/13/2012.

47

Receiving power additionally influenced by shadowing (e.g., through a wall or a door) refraction depending on the density of a medium reflection at large obstacles scattering at small obstacles diffraction at edges

reflection

scattering

diffraction

shadow fadingrefraction

Signal Propagation: Complexity

Page 48: Wireless PHY: Digital Demodulation and Wireless Channels Y. Richard Yang 09/13/2012.

48

Signal Propagation: Complexity

Details of signal propagation are very complicated

We want to understand the key characteristics that are important to our understanding

Page 49: Wireless PHY: Digital Demodulation and Wireless Channels Y. Richard Yang 09/13/2012.

49

Outline

Admin and recap Digital demodulation Wireless channels

Intro shadowing

Page 50: Wireless PHY: Digital Demodulation and Wireless Channels Y. Richard Yang 09/13/2012.

50

Shadowing

Signal strength loss after passing through obstacles

Same distance, but different levels of shadowing: It is a random, large-scale effect depending on the environment

Page 51: Wireless PHY: Digital Demodulation and Wireless Channels Y. Richard Yang 09/13/2012.

Example Shadowing Effects

51

i.e. reduces to ¼ of signal10 log(1/4) = -6.02

Page 52: Wireless PHY: Digital Demodulation and Wireless Channels Y. Richard Yang 09/13/2012.

Example Shadowing Effects

52

i.e. reduces to ¼ of signal10 log(1/4) = -6.02

Page 53: Wireless PHY: Digital Demodulation and Wireless Channels Y. Richard Yang 09/13/2012.

53

JTC Indoor Model for PCS: Path Loss

)(10 nLdBLogAL fA: an environment dependent fixed loss factor

(dB)B: the distance dependent loss coefficient,d : separation distance between the base station

and mobile terminal, in metersLf : a floor penetration loss factor (dB)

n: the number of floors between base station and mobile terminal

Shadowing path loss follows a log-normal distribution (i.e. L is normal distribution) with mean:

Page 54: Wireless PHY: Digital Demodulation and Wireless Channels Y. Richard Yang 09/13/2012.

54

JTC Model at 1.8 GHz

)(10 nLdBLogAL f

Page 55: Wireless PHY: Digital Demodulation and Wireless Channels Y. Richard Yang 09/13/2012.

55

Outline

Admin and recap Digital demodulation Wireless channels

Intro Shadowing Multipath

Page 56: Wireless PHY: Digital Demodulation and Wireless Channels Y. Richard Yang 09/13/2012.

56

Signal can take many different paths between sender and receiver due to reflection, scattering, diffraction

Multipath

Page 57: Wireless PHY: Digital Demodulation and Wireless Channels Y. Richard Yang 09/13/2012.

57

Example: reflection from the ground or building

Multipath Example: Outdoor

ground

Page 58: Wireless PHY: Digital Demodulation and Wireless Channels Y. Richard Yang 09/13/2012.

58

Multipath Effect (A Simple Example)

d1d2

1

11 ][2cos

d

tfcd

ft2cos

2121 22)(2 21dd

c

ddfff c

dcd

2

22 ][2cos

d

tfcd

phase difference:

Assume transmitter sends out signal cos(2 fc t)

Page 59: Wireless PHY: Digital Demodulation and Wireless Channels Y. Richard Yang 09/13/2012.

Multipath Effect (A Simple Example)

Where do the two waves totally destruct?

Where do the two waves totally construct?

59

integer2121

dd

c

ddf

Page 60: Wireless PHY: Digital Demodulation and Wireless Channels Y. Richard Yang 09/13/2012.

Sensitivity: Change Location If receiver moves to the right by /4:

d1’ = d1 + /4; d2’ = d2 - /4;

->

60

21

21

21

2

)4/(4/22

''2

dd

dd

dd

Implication: By moving a quarter of wavelength, destructive turns into constructive.Assume f = 1G, how far do we move?

Page 61: Wireless PHY: Digital Demodulation and Wireless Channels Y. Richard Yang 09/13/2012.

Backup Slides

61

Page 62: Wireless PHY: Digital Demodulation and Wireless Channels Y. Richard Yang 09/13/2012.

62

Dipole: Radiation Pattern of a Dipole

http://www.tpub.com/content/neets/14182/index.htmhttp://en.wikipedia.org/wiki/Dipole_antenna