Tải bản đầy đủ (.pdf) (47 trang)

2023 1 embedded systems chapter 5

Bạn đang xem bản rút gọn của tài liệu. Xem và tải ngay bản đầy đủ của tài liệu tại đây (2.11 MB, 47 trang )

<span class="text_page_counter">Trang 3</span><div class="page_container" data-page="3">

<small>➢ 1894, Oliver Lodge was the first to publicly demonstrate the transmission and detection of electromagnetic radiation</small>

<small>➢ 1895, Marconi first heard of wireless and He was fascinated➢ 1897, He formed theWireless Telegraph and Signal Co. Ltd, </small>

<small>the first commercial development in the world</small>

</div><span class="text_page_counter">Trang 4</span><div class="page_container" data-page="4">

Wireless communication

▪ First Wireless Communication System

<b><small>Marconi’s Radio Transmitter System</small></b>

<small> class="text_page_counter">Trang 5</span><div class="page_container" data-page="5">

Wireless communication

<b>▪ RF – Radio Frequency (few kHz to 300GHz)</b>

</div><span class="text_page_counter">Trang 7</span><div class="page_container" data-page="7">

Wireless communication

<b>▪ Half-Duplex RF System</b>

▪ Operation mode of a radio

communication system in which each end can transmit and

<b>receive, but not simultaneously.</b>

▪ The communication is bi-directional over the same

frequency, but uni-directional for the duration of a message. The devices need to be transceivers.

</div><span class="text_page_counter">Trang 8</span><div class="page_container" data-page="8">

Wireless communication

<b>▪ Full-Duplex RF System</b>

<b>▪ Radio system which each end can transmit and receive simultaneously.</b>

▪ Typically use two frequencies as channel. Each channel is used solely for transmitting (or receiving).

▪ Example: Cell phone, satellite communication,…

</div><span class="text_page_counter">Trang 9</span><div class="page_container" data-page="9">

<b>▪ Frequency Shift Keying (FSK)</b>

▪ Less susceptible to noise ▪ Require larger bandwidth

<b>▪ Phase Shift Keying (PSK)</b>

▪ Less susceptible to noise, bandwidth efficient

▪ Require synchronization in phase and frequency

</div><span class="text_page_counter">Trang 10</span><div class="page_container" data-page="10">

Wireless communication

</div><span class="text_page_counter">Trang 11</span><div class="page_container" data-page="11">

<b>Basis Elements of Wireless Communication System</b>

</div><span class="text_page_counter">Trang 12</span><div class="page_container" data-page="12">

Wireless communication

<b>Avoiding Interference in ISM Band </b>

▪ Spread Spectrum Technique: intentionally spread over a wide frequency range

▪ Resistant to noise and interference thus increasing the probability that the signal will be received correctly

▪ Unlikely to interfere with other signals even if they are transmitted on the same frequency

▪ Types of Spread Spectrum common in ISM bands : ▪ Direct Sequence Spread Spectrum ( DSSS )

▪ Frequency Hopping Spread Spectrum ( FHSS )

▪ Orthogonal Frequency Division Multiplexing ( OFDM )

</div><span class="text_page_counter">Trang 13</span><div class="page_container" data-page="13">

Wireless communication

<b>Direct Sequence Spread Spectrum </b>

</div><span class="text_page_counter">Trang 14</span><div class="page_container" data-page="14">

Wireless communication

<b>Direct Sequence Spread Spectrum </b>

▪ Advantage of DSSS: ▪ More bandwidth ▪ Data are encoded

▪ Low power density, noise-like signal

</div><span class="text_page_counter">Trang 15</span><div class="page_container" data-page="15">

Wireless communication

<b>Frequency Hopping Spread Spectrum </b>

</div><span class="text_page_counter">Trang 16</span><div class="page_container" data-page="16">

Wireless communication

<b>Orthogonal Frequency Division Multiplexing </b>

</div><span class="text_page_counter">Trang 17</span><div class="page_container" data-page="17">

Wireless communication

<b>Orthogonal Frequency Division Multiplexing </b>

</div><span class="text_page_counter">Trang 18</span><div class="page_container" data-page="18">

Wireless communication

<b>ISM band – 2.4 GHz </b>

▪ ISM: Industrial, scientific and Medical ▪ ISM band: 2.4GHz-2.483GHz

▪ Getting more crowed day by day

▪ Why use this band?

</div><span class="text_page_counter">Trang 19</span><div class="page_container" data-page="19">

<b>BLUETOOTH </b>

▪ Initiated by Ericsson Mobile in 1989

▪ Named as a king of Denmark in 900s, Harald Bluetooth ▪ Frequency band 2.402 GHz - 2.480 GHz

▪ Connection between devices, point to point/ multipoint

</div><span class="text_page_counter">Trang 20</span><div class="page_container" data-page="20">

<b>BLUETOOTH Addresses and Name</b>

<b>▪ Every Bluetooth device has a unique 48-bit address – MAC </b>

address (Medium Access Control)

▪ Bluetooth devices can also have user-friendly names (presented to user to identify devices)

</div><span class="text_page_counter">Trang 21</span><div class="page_container" data-page="21">

<b>BLUETOOTH </b>

▪ Version

</div><span class="text_page_counter">Trang 22</span><div class="page_container" data-page="22">

<b>BLUETOOTH </b>

▪ Version

</div><span class="text_page_counter">Trang 23</span><div class="page_container" data-page="23">

<b>BLUETOOTH Low Energy (BLE) </b>

▪ BLE aims to operate at very low power ▪ BLE compromises in data rate

▪ 1Mbps (theory) – 0.27Mbps (practical) ▪ BLE devices switch between sleeping and

working state to save energy

▪ BLE requires rapid connection, small package

</div><span class="text_page_counter">Trang 24</span><div class="page_container" data-page="24">

<b>BLE Direction Finding </b>

▪ Direction Finding is feature of BLE 5.1 ▪ Enable positioning solution

▪ Old BLE rely on RSSI (Receive Signal Strength Indicator) ▪ New BLE knows the actual direction of signal

</div><span class="text_page_counter">Trang 25</span><div class="page_container" data-page="25">

<b>BLE MCU </b>

</div><span class="text_page_counter">Trang 26</span><div class="page_container" data-page="26">

▪ “Wireless Fidelity”

▪ Exchange data wirelessly in Wireless ▪ IEEE 802.11

▪ links two or more devices using some wireless distribution method, and provides a connection through an access point to the wider internet.

▪ High Speed , wide range ( 50m indoor , 100m out door )

▪ Power consumption : chipsets 0.5-1w; wifi device 1-2w , router 4-5w ,

</div><span class="text_page_counter">Trang 28</span><div class="page_container" data-page="28">

<b>WIFI star network</b>

• Same role devices • All connect to Hub

• Security

• Limited access

• Access IP (192.168.xxx)

</div><span class="text_page_counter">Trang 30</span><div class="page_container" data-page="30">

<b>▪ Consume very low power: 2.5-3 times more efficient than Bluetooth. </b>

▪ "optimized for the unique needs of remote monitoring and control

</div><span class="text_page_counter">Trang 31</span><div class="page_container" data-page="31">

<b>Zigbee Mesh Network</b>

▪ Message can be transferred from any source to any destination.

▪ Every FDD (full function device) or Router can connect to its neighbors ▪ High reliability achieved through

multiple paths

</div><span class="text_page_counter">Trang 32</span><div class="page_container" data-page="32">

<b>Zigbee Mesh Network</b>

</div><span class="text_page_counter">Trang 33</span><div class="page_container" data-page="33">

<b>Zigbee Architecture</b>

</div><span class="text_page_counter">Trang 34</span><div class="page_container" data-page="34">

<b>Comparison </b>

</div><span class="text_page_counter">Trang 35</span><div class="page_container" data-page="35">

<b>WEB SERVER</b>

<b>System Diagram </b>

<small>•Directly control system</small>

<small>•Make use of the hardware capability</small>

<small>•Limited by hardware and OS•Can’t remote control</small>

<small>•</small> <sub>Difficult to access online database</sub>

</div><span class="text_page_counter">Trang 36</span><div class="page_container" data-page="36">

<b>WEB SERVER</b>

<b>System Diagram </b>

<small>•</small> <sub>Not depend on OS</sub>

<small>•</small> <sub>Control/monitor system from anywhere</sub> <small>•Use resource available on the internet</small>

<small>•</small> <sub>Depend on wifi/internet</sub> <small>•</small> <sub>Can’t be very complex</sub>

<small>•Show data, plot graph</small>

<small>•Simple algorithms/calculation</small>

</div><span class="text_page_counter">Trang 37</span><div class="page_container" data-page="37">

<b>WEB SERVER</b>

• What is the web server and its functions? • How to create a web server?

• How to communicate/transfer data between web server and devices • Why do we need an embedded system?

</div><span class="text_page_counter">Trang 38</span><div class="page_container" data-page="38">

<b>WEB SERVER</b>

• Web server hosts a web site and provides reliable services for any requesting client.

• Web server communicate with clients via different protocols: TCP, UDP,…

</div><span class="text_page_counter">Trang 40</span><div class="page_container" data-page="40">

<b>WEB SERVER</b>

<small> class="text_page_counter">Trang 41</span><div class="page_container" data-page="41">

<b>HyperText Transfer Protocol (HTTP)</b>

<i><b>• HTTP is an asymmetric request-response client-server</b></i>

• HTTP is a stateless protocol

</div><span class="text_page_counter">Trang 42</span><div class="page_container" data-page="42">

<b>HyperText Transfer Protocol (HTTP)</b>

</div><span class="text_page_counter">Trang 43</span><div class="page_container" data-page="43">

<b>• HTTP client and server communicate by sending text messages• An HTTP message consist of a message header and an optional </b>

<b>message body, separated by a blank line</b>

</div><span class="text_page_counter">Trang 44</span><div class="page_container" data-page="44">

<b>HTTP request message </b>

• The request message syntax:

• Request-method-name: GET, POST, HEAD, OPTIONS • Request-Url: specify the resource requested

• HTTP version: HTTP/1.0 &HTTP/1.1

</div><span class="text_page_counter">Trang 45</span><div class="page_container" data-page="45">

<b>HTTP request message </b>

• The request header syntax:

• request-header-name: request-header-value1, request-header-value2 • The request header syntax:

• name1=value1& name2=value2&…

</div><span class="text_page_counter">Trang 46</span><div class="page_container" data-page="46">

<b>HTTP response message</b>

• Status line: HTTP ver status-code reason-phrase

</div>

×