EE250Unit5 PHY
EE250Unit5 PHY
EE 250 Unit 5
Physical (PHY) Layer
© 2024 by Mark Redekopp. This content is protected and may not be shared, uploaded, or distributed.
EE 250 | Layer 1 - PHY Layer | Unit 5 | 2
IoT Architecture
https://www.quicsolv.com/internet-of-things/how-iot-works/
© 2024 by Mark Redekopp. This content is protected and may not be shared, uploaded, or distributed.
EE 250 | Layer 1 - PHY Layer | Unit 5 | 3
SENSORS
ACTUATORS
LAYER 1 OVERVIEW
© 2024 by Mark Redekopp. This content is protected and may not be shared, uploaded, or distributed.
EE 250 | Layer 1 - PHY Layer | Unit 5 | 5
110100010
© 2024 by Mark Redekopp. This content is protected and may not be shared, uploaded, or distributed.
EE 250 | Layer 1 - PHY Layer | Unit 5 | 6
Wireless Signals
• Radio Frequency (RF) signaling (EM
waves) using antenna and modulators
▪ These waves are governed by Maxwell's
equations
o Maxwell's equations essentially unified, related,
and augmented other known laws of physics like
Gauss' law, Faraday's law, etc.
o http://www.maxwells-equations.com/
Sinusoidal Signals
• A sinusoid is described by:
▪ Frequency (or inverse of period, i.e., 1/T,)
denoted by f, is the signal's rate of change
and is measured in Hertz or cycles per
second
▪ Peak amplitude, A, is the maximum strength
of a signal and is measured in volts or amps
▪ Phase, 𝜙, describes the position of the
waveform relative to time 0
• Example: Sine wave representation:
A sin(2𝜋𝑓𝑡 + 𝜙)
https://www.nist.gov/sites/default/files/styles/960_x_960_limit/public/images/2016/09/15/period_1.gif?itok=iLypB1r5
© 2024 by Mark Redekopp. This content is protected and may not be shared, uploaded, or distributed.
EE 250 | Layer 1 - PHY Layer | Unit 5 | 10
0.8
0.6
0.4
0.2
-0.2
-0.4
-0.6
-0.8
-1
0 0.01 0.02 0.03 0.04 0.05 0.06 0.07 0.08 0.09 0.1
© 2024 by Mark Redekopp. This content is protected and may not be shared, uploaded, or distributed.
EE 250 | Layer 1 - PHY Layer | Unit 5 | 11
Composite Signals
• A composite signal is the sum of many sinusoids with various
amplitude, frequencies, and phases
▪ Useful signals are generally composite signals
0.8 0.8
0.6 0.6
0.4 0.4
0.2 0.2
0 0
-0.2 -0.2
-0.4 -0.4
-0.6 -0.6
-0.8 -0.8
-1 -1
0 0.01 0.02 0.03 0.04 0.05 0.06 0.07 0.08 0.09 0.1 0 0.01 0.02 0.03 0.04 0.05 0.06 0.07 0.08 0.09 0.1
© 2024 by Mark Redekopp. This content is protected and may not be shared, uploaded, or distributed.
EE 250 | Layer 1 - PHY Layer | Unit 5 | 12
Fourier Coefficient
0.2
0.6
0 5*f Component
0.5
-0.2
0.4 7*f Component
-0.4
0.3
-0.6 9*f Component
0.2
-0.8
0.1
-1
0 0.01 0.02 0.03 0.04 0.05 0.06 0.07 0.08 0.09 0.1 0
0 500 1000 1500 2000 2500 3000 3500 4000
Hz
© 2024 by Mark Redekopp. This content is protected and may not be shared, uploaded, or distributed.
https://i1.wp.com/play.fallows.ca/wp/wp-content/uploads/sites/4/2017/01/Signal-Analysis.jpg
EE 250 | Layer 1 - PHY Layer | Unit 5 | 13
0.8
0.03
0.6
0.4 0.025
Fourier Coefficient
0.2
Amplitude
0.02
0 Note: A sinusoid in one domain is
0.015 an impulse in the other.
-0.2
-0.4
0.01
-0.6
0.005
-0.8
-1 0
0 0.5 1 1.5 2 2.5 3 3.5 4 0 500 1000 1500 2000 2500 3000 3500 4000
Time Domain seconds or distributed.
© 2024 by Mark Redekopp. This content is protected and may not be shared, uploaded, Frequency Domain Hz
EE 250 | Layer 1 - PHY Layer | Unit 5 | 14
Bandwidth
• Bandwidth (BW) is the range of A
Fourier Coefficient
0.02
0.01
0.005
0
0 500 1000 1500 2000 2500 3000 3500 4000
Hz
Product of Sinusoids
• Recall, the various trigonometric product-to-sum and sum-to-
product identities
1
▪ cos 𝛼 ∙ cos 𝛽 = ∙ cos 𝛼 − 𝛽 + cos 𝛼 + 𝛽
2
1
▪ sin 𝛼 ∙ sin 𝛽 = ∙ cos 𝛼 − 𝛽 − cos 𝛼 + 𝛽
2
1 0.03
0.025
Fourier Coefficient
0.02
2
0.015
0.01
𝑖=𝑓𝑙𝑜 𝑖=𝑓𝑙𝑜
0.005
0
0 500 1000 1500 2000 2500 3000 3500 4000
Hz
© 2024 by Mark Redekopp. This content is protected and may not be shared, uploaded, or distributed.
EE 250 | Layer 1 - PHY Layer | Unit 5 | 16
0.03
0.025
Fourier Series of Sound
Fourier Coefficient
0.02
•
0.015
0.01
0
0 500 1000 1500 2000
Hz
2500 3000 3500 4000
© 2024 by Mark Redekopp. This content is protected and may not be shared, uploaded, or distributed. Broadband Transmission
EE 250 | Layer 1 - PHY Layer | Unit 5 | 17
Filtering
• Filtering is the process of removing undesired
frequency components from a composite signal
• Low-pass filter (LPF)
▪ Allows low frequencies to pass but removes high
frequencies
Ideal Low-Pass Filter (LPF)
▪ Ideal LPF transfer function for some cutoff Response
frequency, fc
1, 𝑓 ≤ 𝑓𝑐
o 𝐻 𝑓 =
𝑆𝑜𝑢𝑡
𝑆𝑖𝑛
=ቊ
0, 𝑓 > 𝑓𝑐
▪ Hard to achieve ideal
• Band-pass filter
▪ Allows frequencies in some range to pass but
attenuates others
• More on this in a future unit…
Real LPF Response
https://i.stack.imgur.com/nLwKi.png
https://www.mathworks.com/help/signal/examples/practical-introduction-to-digital-filter-design.html
© 2024 by Mark Redekopp. This content is protected and may not be shared, uploaded, or distributed.
EE 250 | Layer 1 - PHY Layer | Unit 5 | 18
© 2024 by Mark Redekopp. This content is protected and may not be shared, uploaded, or distributed.
EE 250 | Layer 1 - PHY Layer | Unit 5 | 19
▪ Sources of Noise
S
• Often need to compute the
ratio of:
Pt Pr
▪ Receive Power (Pr) to
Transmit Power (Pt)
▪ Signal Power (S) to
Noise Power (N)
© 2024 by Mark Redekopp. This content is protected and may not be shared, uploaded, or distributed.
EE 250 | Layer 1 - PHY Layer | Unit 5 | 20
From: https://i.stack.imgur.com/Yec8x.png
© 2024 by Mark Redekopp. This content is protected and may not be shared, uploaded, or distributed.
EE 250 | Layer 1 - PHY Layer | Unit 5 | 21
© 2024 by Mark Redekopp. This content is protected and may not be shared, uploaded, or distributed.
EE 250 | Layer 1 - PHY Layer | Unit 5 | 22
From Fuhr, Peter & Manges, Wayne & Schweitzer, Patrick & Kagan, Hesh. (2010). Wireless Technologies
Implications for Power Systems.
https://www.researchgate.net/publication/254994580_Wireless_Technologies_Implications_for_Power_Systems
© 2024 by Mark Redekopp. This content is protected and may not be shared, uploaded, or distributed.
EE 250 | Layer 1 - PHY Layer | Unit 5 | 23
© 2024 by Mark Redekopp. This content is protected and may not be shared, uploaded, or distributed.
EE 250 | Layer 1 - PHY Layer | Unit 5 | 24
© 2024 by Mark Redekopp. This content is protected and may not be shared, uploaded, or distributed.
EE 250 | Layer 1 - PHY Layer | Unit 5 | 26
https://eyesaas.com/wi-fi-signal-strength/
© 2024 by Mark Redekopp. This content is protected and may not be shared, uploaded, or distributed. https://www.rvwithtito.com/articles/stay-connected-4g-signal-booster
EE 250 | Layer 1 - PHY Layer | Unit 5 | 27
PHY TASKS
© 2024 by Mark Redekopp. This content is protected and may not be shared, uploaded, or distributed.
EE 250 | Layer 1 - PHY Layer | Unit 5 | 28
https://www.springer.com/cda/content/document/cda_downloaddocument/9781461413769-c2.pdf?SGWID=0-0-45-1335410-p174190785
© 2024 by Mark Redekopp. This content is protected and may not be shared, uploaded, or distributed.
EE 250 | Layer 1 - PHY Layer | Unit 5 | 29
1101000101001 Channel
Modulator Tx Front End
Encoder
Data Bits
Channel
1101000101001 Demodulator Rx Front End
Decoder
Data Bits
Chips to Voltages to Amplifier,
Bits Chips Filtering, etc.
© 2024 by Mark Redekopp. This content is protected and may not be shared, uploaded, or distributed.
EE 250 | Layer 1 - PHY Layer | Unit 5 | 30
MODULATION
© 2024 by Mark Redekopp. This content is protected and may not be shared, uploaded, or distributed.
EE 250 | Layer 1 - PHY Layer | Unit 5 | 31
Modulation Overview
• Modulation is the process of
altering the characteristics of one
signal based on another
• Usually we take the original
message (or baseband) signal and
use it to alter a carrier
signals/frequency
• Here we show an analog signal
modulating a higher frequency
carrier
https://upload.wikimedia.org/wikipedia/commons/a/a4/Amfm3-en-de.gif
© 2024 by Mark Redekopp. This content is protected and may not be shared, uploaded, or distributed. https://qph.fs.quoracdn.net/main-qimg-a187fa629ad758ceb796511a43c89680
EE 250 | Layer 1 - PHY Layer | Unit 5 | 32
Amplitude Modulation/Demodulation
• From Waltenegus, Fundamentals of Wireless Sensor Networks
© 2024 by Mark Redekopp. This content is protected and may not be shared, uploaded, or distributed.
EE 250 | Layer 1 - PHY Layer | Unit 5 | 33
Amplitude Modulation
𝛽 𝛼
• Message = 𝑆𝑀 cos(2𝜋𝑓𝑚 𝑡 + 𝜙𝑚 ) and 𝐶𝑎𝑟𝑟𝑖𝑒𝑟 = 𝑆𝑐 cos(2𝜋𝑓𝑐 𝑡 + 𝜙𝑐 )
• To modulate the signal we just multiply the carrier signal by the message signal (for ease of
analysis, assume the phase is 0)
▪ 𝑠𝑚𝑜𝑑 𝑡 = 𝑆𝑀 cos 2𝜋𝑓𝑚 𝑡 𝑆𝑐 cos 2𝜋𝑓𝑐 𝑡 (use product of cos identity)
𝑆𝑀 𝑆𝑐
𝑠𝑚𝑜𝑑 𝑡 = ∙ cos 2𝜋 𝑓𝑐 + 𝑓𝑀 𝑡 + cos 2𝜋 𝑓𝑐 − 𝑓𝑀 𝑡
2
𝛼 𝛽 𝛼 𝛽
Spectrum of
modulated
signal.
Fundamentals of
WSNs, Fig 5.14
© 2024 by Mark Redekopp. This content is protected and may not be shared, uploaded, or distributed.
EE 250 | Layer 1 - PHY Layer | Unit 5 | 34
Amplitude DeModulation
• Message = 𝑆𝑀 cos(2𝜋𝑓𝑚 𝑡 + 𝜙𝑚 ) and 𝐶𝑎𝑟𝑟𝑖𝑒𝑟 = 𝑆𝑐 cos(2𝜋𝑓𝑐 𝑡 + 𝜙𝑐 )
• Modulated signal:
𝑆𝑀 𝑆𝑐
𝑠𝑚𝑜𝑑 𝑡 = ∙ cos 2𝜋 𝑓𝑐 + 𝑓𝑀 𝑡 + cos 2𝜋 𝑓𝑐 − 𝑓𝑀 𝑡
2
• To demodulate an AM signal we just multiply the received signal by the carrier frequency again
𝐾𝑆𝑀 𝑆𝑐
▪ 𝑠𝑑𝑒𝑚𝑜𝑑 𝑡 = 𝑆𝑐 cos 2𝜋𝑓𝑐 𝑡 ∙ ∙ cos 2𝜋 𝑓𝑐 + 𝑓𝑀 𝑡 + cos 2𝜋 𝑓𝑐 − 𝑓𝑀 𝑡
2
𝛼 𝛽1 𝛽2
𝛼 + 𝛽1 𝛼 + 𝛽2
𝐾𝑆𝑀 𝑆𝑐 2 𝛼 − 𝛽1
▪ 𝑠𝑑𝑒𝑚𝑜𝑑 𝑡 = ∙ cos 2𝜋 2𝑓𝑐 + 𝑓𝑀 𝑡 + cos 2𝜋 2𝑓𝑐 − 𝑓𝑀 𝑡 + 𝟐 ∙ cos(2𝜋𝑓𝑚 𝑡)
2 𝛼 − 𝛽2
▪ Notice that the demodulated signal as two components at 2𝑓𝑐 and one at 𝑓𝑀
▪ We can use a Low-Pass Filter to remove the high frequency carrier wave and recover and amplify the
message signal
Low Pass
Filter
© 2024 by Mark Redekopp. This content is protected and may not be shared, uploaded, or distributed.
EE 250 | Layer 1 - PHY Layer | Unit 5 | 35
Digital Modulation
• Modulation is the process of varying one or more of the key
parameters (amplitude, frequency, phase) of a carrier signal in
relation to the information signal
© 2024 by Mark Redekopp. This content is protected and may not be shared, uploaded, or distributed. 35
EE 250 | Layer 1 - PHY Layer | Unit 5 | 36
Digital Modulation
• Modulating digital signals
means we only need to
signal 0s and 1s
▪ Often called keying rather
than modulation
• Can use amplitude (ASK),
frequency (FSK), or phase
(PSK) to modulate our bits
https://commons.wikimedia.org/wiki/File:Datos_digitales_-_Se%C3%B1ales_analogicas.png
© 2024 by Mark Redekopp. This content is protected and may not be shared, uploaded, or distributed.
EE 250 | Layer 1 - PHY Layer | Unit 5 | 37
© 2024 by Mark Redekopp. This content is protected and may not be shared, uploaded, or distributed. 37
EE 250 | Layer 1 - PHY Layer | Unit 5 | 38
We assume the
cosine and sine waves of that same frequency is a known
constant.
frequency with amplitudes A and B
© 2024 by Mark Redekopp. This content is protected and may not be shared, uploaded, or distributed.
EE 250 | Layer 1 - PHY Layer | Unit 5 | 39
• The point is that we can modulate the x (real / 1.73 ∙ cos 2𝜋𝑓𝑡 + 1 ∙ sin 2𝜋𝑓𝑡
© 2024 by Mark Redekopp. This content is protected and may not be shared, uploaded, or distributed.
EE 250 | Layer 1 - PHY Layer | Unit 5 | 40
QPSK Modulation
• The bits from the incoming bitstream at rate, R, are alternately distributed to
the I and Q stream
• The I (in-phase) stream modulates the cos wave using BPSK and the Q
(quadrature-phase) stream does the same with the sin wave
• The two signals are then added and transmitted => QPSK
-1 +1 +1 +1
1 0 0 1 0 1 1 1
+1 -1 -1 +1
http://www.rfwireless-
world.com/Terminology/QPSK-vs-
© 2024 by Mark Redekopp. This content is protected and may not be shared, uploaded, or distributed. QPSK Modulation OQPSK-vs-pi-4QPSK.html
EE 250 | Layer 1 - PHY Layer | Unit 5 | 42
QPSK Demodulation
• The incoming signal is multiplied by a cos and sin wave
▪ Recall our discussion of AM and how this yields a component at twice the carrier frequency and a
component at the message frequency
• The low pass filter removes the carrier frequency
• A 1 or 0 will have a constant (aka DC) positive or negative offset and can be detected with a
threshold detection
(Integrator)
+1 +1 +1 -1
QPSK Demodulation
1 1 0 1 0 1 1 0
+1 -1 -1 +1
(Integrator)
https://www.researchgate.net/profile/Rj_Green/publication/224611110/figure/fig3/AS:302813562327043@1449207
787770/Schematic-diagram-of-a-quadrature-phase-shift-keying-QPSK-demodulator.png
© 2024 by Mark Redekopp. This content is protected and may not be shared, uploaded, or distributed.
EE 250 | Layer 1 - PHY Layer | Unit 5 | 43
© 2024 by Mark Redekopp. This content is protected and may not be shared, uploaded, or distributed.
EE 250 | Layer 1 - PHY Layer | Unit 5 | 44
10 11
45⁰
• Allows…
135⁰
https://www.labvolt.com/downloads/39865_F0.pdf
https://www.electronicdesign.com/sites/electronicdesign.com/files/uploads/2013/10/1107_
EE_evm_F4.gif
© 2024 by Mark Redekopp. This content is protected and may not be shared, uploaded, or distributed.
EE 250 | Layer 1 - PHY Layer | Unit 5 | 45
© 2024 by Mark Redekopp. This content is protected and may not be shared, uploaded, or distributed. 45
EE 250 | Layer 1 - PHY Layer | Unit 5 | 46
QAM
• Using Quadrature Amplitude Modulation (QAM) we can transfer
more bits per symbol
▪ N-QAM can send log2(N) bits per sinusoid using different magnitude/phase
combinations
▪ Requires better SNR to avoid errors
▪ Later 802.11 WiFi standards can switch from BPSK to 1024 QAM based on
signal quality
16 QAM 64 QAM
Constellation Constellation
© 2024 by Mark Redekopp. This content is protected and may not be shared, uploaded, or distributed. https://www.headendinfo.com/32qam-64qam-128qam-256qam/
EE 250 | Layer 1 - PHY Layer | Unit 5 |47
Helpful Resources
• https://www.allaboutcircuits.com/textbook/radio-frequency-analysis-design/
© 2024 by Mark Redekopp. This content is protected and may not be shared, uploaded, or distributed.
EE 250 | Layer 1 - PHY Layer | Unit 5 | 48
© 2024 by Mark Redekopp. This content is protected and may not be shared, uploaded, or distributed.
EE 250 | Layer 1 - PHY Layer | Unit 5 | 49
1101000100101 Tx Front
Coder Modulator
End
Data Bits
• For more robust communications, data bits are coded to longer sequences of
bits (aka chips).
▪ Say, every 4 data bits are translated to 8 chips.
• Now consider a modulation scheme that specified 16 distinct amplitude/phases
(i.e. 16 QAM), or symbols
▪ Thus, 16 unique symbols correspond to 4-bits of information
• Thus if we have a data bit stream at 10 kbps…
▪ It is converted to 20 kChips/s which is then transmitted at 5 kSym/s
• The rate of transmitted symbols is known as the baud rate
© 2024 by Mark Redekopp. This content is protected and may not be shared, uploaded, or distributed.
EE 250 | Layer 1 - PHY Layer | Unit 5 | 50
https://cdn.rohde-
schwarz.com/pws/dl_downloads/dl_appli
cation/application_notes/1gp105/1GP10
5_1E_Generation_of_IEEE_802154_Sig
nals.pdf
1111
© 2024 by Mark Redekopp. This content is protected and may not be shared, uploaded, or distributed.
EE 250 | Layer 1 - PHY Layer | Unit 5 | 51
Cross-Correlation: DS0: 11 01 10 01 11 00 00 11 01 01 00 10 00 10 11 10
C(DS0,DS1)=0 DS1: 11 10 11 01 10 01 11 00 00 11 01 01 00 10 00 10
Recall:
• digital 1 = +1 and
• digital 0 = -1
© 2024 by Mark Redekopp. This content is protected and may not be shared, uploaded, or distributed.
EE 250 | Layer 1 - PHY Layer | Unit 5 | 52
Auto-Correlation
• Auto-correlation (shifted version of self):
𝐶 = 𝑠 𝑖 ∙ 𝑠 𝑖 − 𝜏 , 1≤𝜏<𝐿
𝑖
110110011100001101010010001011100
011011001110000110101001000101110
Auto-correlation: C(DS0,DS0+1) = -3
1101100111000011010100100010111000
0011011001110000110101001000101110
Auto-correlation: C(DS0,DS0+2) = -6
© 2024 by Mark Redekopp. This content is protected and may not be shared, uploaded, or distributed.
https://ntnuopen.ntnu.no/ntnu-xmlui/bitstream/handle/11250/2369531/349061_FULLTEXT01.pdf?sequence=1
EE 250 | Layer 1 - PHY Layer | Unit 5 | 53
DS0: 11 01 10 01 11 00 00 11 01 01 00 10 00 10 11 10
Correlation
x Σ to 0000 seq.
…
PN sequence for 0000
Incoming Max
signal
... 01 00 10 00 10 11 10 Correlation
x Σ to 1111 seq.
© 2024 by Mark Redekopp. This content is protected and may not be shared, uploaded, or distributed.
EE 250 | Layer 1 - PHY Layer | Unit 5 | 55
Spreading Spreading
Spreading PN sequence
Despreading PN sequence
Despreading
© 2024 by Mark Redekopp. This content is protected and may not be shared, uploaded, or distributed.
https://www.allaboutcircuits.com/textbook/radio-frequency-analysis-design/selected-topics/understanding-spread-spectrum-rf-communication/
EE 250 | Layer 1 - PHY Layer | Unit 5 | 56
Benefits of DSSS
• Tolerant of noise and interference in portions of the
used spectrum
• Resilient to multipath effects
© 2024 by Mark Redekopp. This content is protected and may not be shared, uploaded, or distributed.
EE 250 | Layer 1 - PHY Layer | Unit 5 | 57
802.11 Modulation
• Channels can choose an appropriate modulation scheme
based on link conditions and other environmental
variables
▪ Subcarriers can adaptively choose
BPSK, QPSK, 16-, 64-, 256-, or 1024-QAM
© 2024 by Mark Redekopp. This content is protected and may not be shared, uploaded, or distributed.
EE 250 | Layer 1 - PHY Layer | Unit 5 | 59
MIMO
• Multiple-In, Multiple-Out
▪ Several antenna all transmitting at the same time
(even potentially over the same channel)
• Can trade data rate for reliability
• Advantages
▪ Spatial multiplexing: Multiple independent data
streams over the same channel
o Can use multipath to our advantage so that the different
streams are received at different times (different paths)
o Use of orthogonal codes for each stream
▪ Reliability / Beamforming: Use of multiple
transmitters to strengthen one stream at the receiver
© 2024 by Mark Redekopp. This content is protected and may not be shared, uploaded, or distributed. This Photo by Unknown Author is licensed under CC BY-SA
EE 250 | Layer 1 - PHY Layer | Unit 5 | 60
LORA PHY
© 2024 by Mark Redekopp. This content is protected and may not be shared, uploaded, or distributed.
EE 250 | Layer 1 - PHY Layer | Unit 5 | 61
LoRa PHY
• Operating at 13 frequency channels around 915 MHz in USA, 868
MHz in Europe
• Low data rate but very long range (few miles outdoors)
• PHY uses Chirp-spread spectrum (CSS) signaling
▪ Can tune Tx power, bandwidth, and spreading factor to achieve data-rate vs.
power requirements
o Higher Tx Power (Better Range, Less battery life)
o Higher Spreading Factor (Better Noise Immunity/Range,
Lower data rate)
© 2024 by Mark Redekopp. This content is protected and may not be shared, uploaded, or distributed.
EE 250 | Layer 1 - PHY Layer | Unit 5 | 62
S(f)
f
B
http://www.ieee802.org/802_tutorials/03-November/15-03-0460-00-0040-IEEE-802-CSS-Tutorial-part1.ppt
© 2024 by Mark Redekopp. This content is protected and may not be shared, uploaded, or distributed.
EE 250 | Layer 1 - PHY Layer | Unit 5 | 63
LORA Modulation
• Jumps in frequency correspond to data values being modulated
• Data is decoded by looking at the frequency transitions and use
the constant slope to infer the initial frequency, f0, of each chirp.
Time
https://www.mdpi.com/1424-8220/16/9/1466/htm
© 2024 by Mark Redekopp. This content is protected and may not be shared, uploaded, or distributed.
EE 250 | Layer 1 - PHY Layer | Unit 5 | 64
© 2024 by Mark Redekopp. This content is protected and may not be shared, uploaded, or distributed.
https://www.sghoslya.com/p/lora-is-chirp-spread-spectrum.html
EE 250 | Layer 1 - PHY Layer | Unit 5 | 65
© 2024 by Mark Redekopp. This content is protected and may not be shared, uploaded, or distributed.
EE 250 | Layer 1 - PHY Layer | Unit 5 | 66
RF wave propagation
• As an ideal spherical EM wave radiates outwards
in vacuum, the received power decreases with
distance per an inverse-squared law, i.e.
inversely with the square of distance: 𝑃𝑟 ∝
1Τ𝑑 2
▪ See http://hyperphysics.phy-
astr.gsu.edu/hbase/Forces/isq.html
• In practice, due to reflection, scattering and
absorption effects the propagation is not so
simple. A more general model is used: 𝑃𝑟 ∝
1Τ𝑑 𝜂 , From: https://i.stack.imgur.com/Yec8x.png
© 2024 by Mark Redekopp. This content is protected and may not be shared, uploaded, or distributed.
EE 250 | Layer 1 - PHY Layer | Unit 5 | 67
https://www.datarespons.com/drones-wireless-video/
http://www.tranzeo.com/allowed/Tranzeo_Link_Budget_Whitepaper.pdf
© 2024 by Mark Redekopp. This content is protected and may not be shared, uploaded, or distributed.
EE 250 | Layer 1 - PHY Layer | Unit 5 | 68
Received reflection
Φ
Delay to multipath
http://www.wirelesscommunication.nl/reference/chaptr03/pathloss.htm
© 2024 by Mark Redekopp. This content is protected and may not be shared, uploaded, or distributed.
EE 250 | Layer 1 - PHY Layer | Unit 5 | 69
Auto-Correlation
• 802.15.4 codes have beneficial auto-correlation properties
• Auto-correlation (shifted version of self):
𝐶 = 𝑠 𝑖 ∙ 𝑠 𝑖 − 𝜏 , 1≤𝜏<𝐿
𝑖
110110011100001101010010001011100
011011001110000110101001000101110
Auto-correlation: C(DS0,DS0+1) = -3
1101100111000011010100100010111011
1011011001110000110101001000101110
Auto-correlation: C(DS0,DS0+2) = -6
© 2024 by Mark Redekopp. This content is protected and may not be shared, uploaded, or distributed.
https://ntnuopen.ntnu.no/ntnu-xmlui/bitstream/handle/11250/2369531/349061_FULLTEXT01.pdf?sequence=1
EE 250 | Layer 1 - PHY Layer | Unit 5 | 70
𝑷𝒕𝒎𝒘 𝒅
𝑷𝒓𝒎𝒘 𝒅 = 𝑷𝒓𝒅𝑩𝒎 𝒅 = 𝑷𝒕𝒅𝑩𝒎 − 𝑲𝒅𝑩 − 𝜼 ∙ 𝟏𝟎 ∙ 𝒍𝒐𝒈𝟏𝟎
𝒅 𝜼 𝒅𝟎
𝑲𝒓𝒆𝒇 ∙
𝒅𝟎
In dBm units
In milli-watt units
d0
Parameters
• d is distance
• d0 is a reference distance (say 1m or 100m)
Pt K=(Pt/Pr(d0)) Pr
• Pt is the transmitted power
• Pr is the received power
• K is the unitless path loss at the reference distance d
• η is the path loss exponent
© 2024 by Mark Redekopp. This content is protected and may not be shared, uploaded, or distributed.
EE 250 | Layer 1 - PHY Layer | Unit 5 | 71
Slope = 𝜼
𝒅
𝑷𝒓𝒅𝑩𝒎 𝒅 = 𝑷𝒕𝒅𝑩𝒎 − 𝑲𝒅𝑩 − 𝜼 ∙ 𝟏𝟎 ∙ 𝒍𝒐𝒈𝟏𝟎
𝒅𝟎
log10(d/d0)
https://www.csie.ntu.edu.tw/~hsinmu/courses/_media/wn_17fall/pathloss.pdf
© 2024 by Mark Redekopp. This content is protected and may not be shared, uploaded, or distributed.
EE 250 | Layer 1 - PHY Layer | Unit 5 | 73
Received reflection
Φ
Delay to multipath
© 2024 by Mark Redekopp. This content is protected and may not be shared, uploaded, or distributed.
EE 250 | Layer 1 - PHY Layer | Unit 5 | 74
Log-Normal Fading
Can model the vertical
“noisy/random” distribution of
received power values (in dBm)
around the “mean” path loss line
(with respect to log (distance))
as a Gaussian Random
Variable, characterized by a
standard deviation 𝝈. 𝝈2 is
referred to as the fading
variance.
© 2024 by Mark Redekopp. This content is protected and may not be shared, uploaded, or distributed.
EE 250 | Layer 1 - PHY Layer | Unit 5 | 75
Real Received Power
(Received Signal Strength - RSS) Measurements
From P. Tarrio, A. M. Bernardos, J. R. Casar, "Weighted Least Squares Techniques for Improved Received Signal
Strength Based Localization," Sensors 11(9), 2011. http://www.mdpi.com/1424-8220/11/9/8569/htm
© 2024 by Mark Redekopp. This content is protected and may not be shared, uploaded, or distributed.
EE 250 | Layer 1 - PHY Layer | Unit 5 | 76
Communication Range
• The minimum received power at which the radio can demodulate a message is
called radio sensitivity threshold affects the communication range
▪ If the threshold is smaller, the range will be larger.
• If we transmit at 0 dBm, KdB = 20dBm, d0 = 1m, and η = 3, and the radio
sensitivity threshold is -80dBm, what is the communication range of the radio?
▪ Does the range get bigger/smaller if the transmit power increases? Bigger
▪ Does the range get bigger/smaller if the path loss exponent η increases? Smaller
𝒅
𝑷𝒓𝒅𝑩𝒎 𝒅 = 𝑷𝒕𝒅𝑩𝒎 − 𝑲𝒅𝑩𝒎 − 𝜼 ∙ 𝟏𝟎 ∙ 𝒍𝒐𝒈𝟏𝟎
𝒅𝟎
−𝟖𝟎 = 𝟎 − 𝟐𝟎 − 𝟑𝟎 ∙ 𝒍𝒐𝒈𝟏𝟎 𝒅
−𝟔𝟎 = −𝟑𝟎 ∙ 𝒍𝒐𝒈𝟏𝟎 𝒅
𝟐 = 𝒍𝒐𝒈𝟏𝟎 𝒅
𝟏𝟎𝟐 = 𝒅 = 𝟏𝟎𝟎𝒎
© 2024 by Mark Redekopp. This content is protected and may not be shared, uploaded, or distributed.
EE 250 | Layer 1 - PHY Layer | Unit 5 | 77
TutorNet Testbed
© 2024 by Mark Redekopp. This content is protected and may not be shared, uploaded, or distributed.
EE 250 | Layer 1 - PHY Layer | Unit 5 | 78
© 2024 by Mark Redekopp. This content is protected and may not be shared, uploaded, or distributed.
EE 250 | Layer 1 - PHY Layer | Unit 5 | 79
© 2024 by Mark Redekopp. This content is protected and may not be shared, uploaded, or distributed.
EE 250 | Layer 1 - PHY Layer | Unit 5 | 80
© 2024 by Mark Redekopp. This content is protected and may not be shared, uploaded, or distributed.
EE 250 | Layer 1 - PHY Layer | Unit 5 | 81
From https://people.eecs.berkeley.edu/~prabal/teaching/cs294-11-f05/slides/day21.pdf
© 2024 by Mark Redekopp. This content is protected and may not be shared, uploaded, or distributed.
EE 250 | Layer 1 - PHY Layer | Unit 5 | 82
© 2024 by Mark Redekopp. This content is protected and may not be shared, uploaded, or distributed.
EE 250 | Layer 1 - PHY Layer | Unit 5 | 83
• Standard
▪ http://ecee.colorado.edu/~liue/teaching/comm_standards/2015S_zigbee/8
02.15.4-2011.pdf
• Sample parts/datasheets
▪ http://www.ti.com/lit/ds/symlink/cc2538.pdf
▪ https://www.mouser.com/ds/2/268/70005023C-1218178.pdf
© 2024 by Mark Redekopp. This content is protected and may not be shared, uploaded, or distributed.
EE 250 | Layer 1 - PHY Layer | Unit 5 | 84
Frames/Packets/Segments
• Application sends 1 KB = 1024 byte message
▪ TCP adds 24 byte header
▪ IP adds 24 byte header
▪ 802.11 adds 16 byte header
• Suppose the following, how many 802.11 frames are sent?
▪ TCP has max transfer unit of 2048 bytes
▪ IP has max transfer unit of 1536 bytes
▪ 802.11 has max transfer unit of 272 bytes
• Suppose the following, how many 802.11 frames are sent?
▪ TCP has max transfer unit of 576 bytes
▪ IP has max transfer unit of 320 bytes
▪ 802.11 has max transfer unit of 272 bytes
© 2024 by Mark Redekopp. This content is protected and may not be shared, uploaded, or distributed.