class: title, smokescreen, shelf, bottom, no-footer background-image: url(images/tesla-tower.jpeg) # 181U Spring 2020 ## Wireless Communications (Background) <style> h1 { border-bottom: 8px solid rgb(32,67,143); border-radius: 2px; width: 90%; } .smokescreen h1 { border-bottom: none; } .small.remark-slide-content.compact {font-size:1.4rem} .smaller.remark-slide-content.compact {font-size:1.1rem} .small-code.remark-slide-content.compact code {font-size:1.0rem} .very-small-code.remark-slide-content.compact code {font-size:0.9rem} .line-numbers{ /* Set "line-numbers-counter" to 0 */ counter-reset: line-numbers-counter; } .line-numbers .remark-code-line::before { /* Increment "line-numbers-counter" by 1 */ counter-increment: line-numbers-counter; content: counter(line-numbers-counter); text-align: right; width: 20px; border-right: 1px solid #aaa; display: inline-block; margin-right: 10px; padding: 0 5px; } </style> --- layout: true .footer[ - 181U - See acknowledgements ] --- class: compact # Agenda <audio controls> <source src="audio/wireless_2.mp3" type="audio/mpeg"> Your browser does not support the audio element. </audio> * A little radio physics * decibels and power * link budget * introduction to radio standards for IoT --- class: compact # Electromagnetic Waves <audio controls> <source src="audio/wireless_3.mp3" type="audio/mpeg"> Your browser does not support the audio element. </audio> * Characterized by: wavelength, frequency, and amplitude * Examples: Light, x-rays, and radio waves $$\lambda = c/f, \ c = speed\ of\ light$$   --- class: compact,small # Electromagnetic Spectrum <audio controls> <source src="audio/wireless_4.mp3" type="audio/mpeg"> Your browser does not support the audio element. </audio>   Note: antenna length depends upon wavelength (typical: 1/4 wavelength) --- class: compact # Wavelength <audio controls> <source src="audio/wireless_5.mp3" type="audio/mpeg"> Your browser does not support the audio element. </audio>   --- class: compact # Free Space Loss (FSL) <audio controls> <source src="audio/wireless_6.mp3" type="audio/mpeg"> Your browser does not support the audio element. </audio> As the wave propagate from the source it spreads over an ever increasing area, so an antenna of a given size would be able to capture a fraction of the wavefront that decreases with the square of the distance.   --- class: compact # Introduction to DB <audio controls> <source src="audio/wireless_7.mp3" type="audio/mpeg"> Your browser does not support the audio element. </audio>  The **decibel (dB)** is 10 times the decimal logarithm of the ratio between two values. Admits easy comparison across large scales $$ L = 10log_{10}(\frac{P_2}{P_1})$$ $$\frac{P_2}{P_1} = 10^L$$ --- class: compact # Review of logarithms <audio controls> <source src="audio/wireless_8.mp3" type="audio/mpeg"> Your browser does not support the audio element. </audio>  $$if\ x = 10^y, then\ y = log_{10}(x)$$ Logarithms reduce multiplication to addition: $$log(a \times b) = log(a) + log(b)$$ --- class: compact,col-2 # Using dB <audio controls> <source src="audio/wireless_9.mp3" type="audio/mpeg"> Your browser does not support the audio element. </audio> * Commonly used dB values $$+10\ dB = \text{10 times the power}$$ $$-10\ dB = \text{one tenth the power}$$ $$+3\ dB = \text{twice the power}$$ $$-3\ dB = \text{half the power}$$ * For Example $$\text{some power} + 10\ dB = \text{10 times the power}$$ $$\text{some power}-10\ dB = \text{one tenth the power}$$ $$\text{some power}+3\ dB = \text{twice the power}$$ $$\text{some power}-3\ dB = \text{half the power}$$ --- class: compact # Free Space Loss versus Distance at Different Frequencies <audio controls> <source src="audio/wireless_10.mp3" type="audio/mpeg"> Your browser does not support the audio element. </audio>   --- class: compact # dBm and mW <audio controls> <source src="audio/wireless_11.mp3" type="audio/mpeg"> Your browser does not support the audio element. </audio> * What if we want to measure an absolute power with dB ? - We *have to define a reference* * The reference point that relates logarithmic dB scale to the linear watt scale is: $$ 1 mW = 0 dBm$$ * The new **m** in dBm refers that the reference is one **m**W and therefore a **dBm** measurement is a measurement of absolute power with reference to 1 mW. * We can measure transission/received power in **dBm** and model loss/gain in in **dB**. This allows us to relate energy (in transmission) with signal strength. --- class: compact,col-2 # Using **dB** and **dBm** together <audio controls> <source src="audio/wireless_12.mp3" type="audio/mpeg"> Your browser does not support the audio element. </audio> Remember: $$\text{some power} + 10\ dB = \text{10 times the power}$$ $$\text{some power}-10\ dB = \text{one tenth the power}$$ $$\text{some power}+3\ dB = \text{twice the power}$$ $$\text{some power}-3\ dB = \text{half the power}$$ So: $$10 mW + 10 dB \text{(of gain)} = 100 mW = 20dBm$$ $$100 mW - 10 dB \text{(of loss)} = 10 mW = 10dBm$$ $$50 mW + 3 dB \text{(of gain)} = 100 mW = 20dBm$$ --- class: compact # milliwatts and dBm <audio controls> <source src="audio/wireless_13.mp3" type="audio/mpeg"> Your browser does not support the audio element. </audio>   --- class: compact # Behavior of Radio Waves <audio controls> <source src="audio/wireless_14.mp3" type="audio/mpeg"> Your browser does not support the audio element. </audio> * The *longer* (lower frequency) the wavelength, the **further** it goes * The *longer* the wavelength, the **better** it travels through and around things * The *shorter* the wavelength, the more data it can potentially transport --- class: compact # Traveling Radio Waves <audio controls> <source src="audio/wireless_15.mp3" type="audio/mpeg"> Your browser does not support the audio element. </audio> Radio waves do not move in a strictly straight line On their way from "point A" to "point B", waves may be subject to: * Absorption * Reflection * Refraction * Defraction * Scattering --- class: compact # Wireless Link <audio controls> <source src="audio/wireless_16.mp3" type="audio/mpeg"> Your browser does not support the audio element. </audio>   --- class: compact # Power in a wireless system <audio controls> <source src="audio/wireless_17.mp3" type="audio/mpeg"> Your browser does not support the audio element. </audio>   --- class: compact # Link Budget <audio controls> <source src="audio/wireless_18.mp3" type="audio/mpeg"> Your browser does not support the audio element. </audio> **Link budget** is a way of quantifying performance of a radio link * The received power in a wireless link is determined by - (+) transmitter power - (+) transmitter antenna gain - (-) tranmission path loss + (+) receiver antenna gain * *If* the received power is greater than the **sensitivity** of the receiving radio, then communication is **feasible**. --- class: compact # Example Link Budget <audio controls> <source src="audio/wireless_19.mp3" type="audio/mpeg"> Your browser does not support the audio element. </audio>   --- class: compact # Link budget <audio controls> <source src="audio/wireless_20.mp3" type="audio/mpeg"> Your browser does not support the audio element. </audio> * The **transmitter power** is limited by regulation * In the 2.4 GHz unlicensed band (wifi, bluetooth) maximum power is 20 dBm in Europe and 30 dBm in the US * Typical Receiver sensitivity -- nrf52840 BLE -- -96dBm sensitivity -- WF200 WiFi == -96.7dBm sensitivity, 17dBm transmitter * Link budget also affected by coding of data -- LoRa/SigFox use spread spectrum codes to acheive greater effective sensitivity at cost of data rate. --- class: compact # Link Budget isn't the whole story <audio controls> <source src="audio/wireless_21.mp3" type="audio/mpeg"> Your browser does not support the audio element. </audio> * The maximum range is determined by the *energy per bit received* - Transmitted power - Sensitivity - **and** data rate. --- class: compact # Comparing Existing Technologies <audio controls> <source src="audio/wireless_22.mp3" type="audio/mpeg"> Your browser does not support the audio element. </audio>   --- class: compact,small # Some Solutions <audio controls> <source src="audio/wireless_23.mp3" type="audio/mpeg"> Your browser does not support the audio element. </audio> * RFID * WiFi * Bluetooth and BLE * Personal area networks - ZigBee,Thread * Cellular --- class: compact # RFID <audio controls> <source src="audio/wireless_24.mp3" type="audio/mpeg"> Your browser does not support the audio element. </audio>  * RFID very widely used * Short distance (0.1-10 meters) * Object (RFID tag) is applied to *thing* to be tracked * RFID tag is read (written) by a device such as a cell phone * Technology behind contactless payment, library book tracking, inventory systems --- class: compact # RFID Frequencies of operation <audio controls> <source src="audio/wireless_25.mp3" type="audio/mpeg"> Your browser does not support the audio element. </audio>   --- class: compact # IEEE 802.11 (WIFI) standards <audio controls> <source src="audio/wireless_26.mp3" type="audio/mpeg"> Your browser does not support the audio element. </audio>   --- class: compact # Bluetooth  <audio controls> <source src="audio/wireless_27.mp3" type="audio/mpeg"> Your browser does not support the audio element. </audio> * IEEE 802.15.1 standard * Smart Mesh * 79 channels 1Mhz wide + frequency hopping * 2.4 GHz band * Used mainly for speakers, health monitors, other short range applications --- class: compact # Bluetooth Architecture <audio controls> <source src="audio/wireless_28.mp3" type="audio/mpeg"> Your browser does not support the audio element. </audio>  * **Master** node controls up to 7 active **slave** nodes and up to 255 inactive nodes. * Slaves must communicate with the master * Relatively restrictive configurations of slaves based upon standard *profiles* --- class: compact # Bluetooth Low Energy (BLE) <audio controls> <source src="audio/wireless_29.mp3" type="audio/mpeg"> Your browser does not support the audio element. </audio> * Based on IEEE 802.15.1 * Subset of Bluetooth 4.0 * Smart Mesh * Wide OS support * Used in smartphones, tablets, smart watches, ... --- class: compact # IEEE 802.15.4 <audio controls> <source src="audio/wireless30.mp3" type="audio/mpeg"> Your browser does not support the audio element. </audio> Standard for low-rate wireless personal area networks * Minimal infrastructure, low poer * Defines the physical (PHY) and medium access control (MAC) sublayer * Targets small, power-efficient, inexpensive solutions * Used by many upper layer protocols --- class: compact # IEEE 802.15.4 Topology <audio controls> <source src="audio/wireless_31.mp3" type="audio/mpeg"> Your browser does not support the audio element. </audio>   --- class: compact # Mesh Networks based upon IEEE 802.15.4 <audio controls> <source src="audio/wireless_32.mp3" type="audio/mpeg"> Your browser does not support the audio element. </audio> * 2.4 Ghz or 915 (868 europe) Mhz * Mesh topology * Zigbee * Thread (emerging) --- class: compact # Emerging Standards <audio controls> <source src="audio/wireless_33.mp3" type="audio/mpeg"> Your browser does not support the audio element. </audio>   --- class: compact # Summary * Acknowledgements -- Slide Material drawn from: - "Wireless standards for IoT" by Ermanno Pietrosemoli: http://wireless.ictp.it/school_2019/slides/WirelessstandardsforIoT.pdf - "Radio Physics for IoT" by Ermanno Pietrosemoli: http://wireless.ictp.it/school_2019/slides/Radio_Physics_for_IoT.pdf