Ya-Wen Jeng
    • Create new note
    • Create a note from template
      • Sharing URL Link copied
      • /edit
      • View mode
        • Edit mode
        • View mode
        • Book mode
        • Slide mode
        Edit mode View mode Book mode Slide mode
      • Customize slides
      • Note Permission
      • Read
        • Only me
        • Signed-in users
        • Everyone
        Only me Signed-in users Everyone
      • Write
        • Only me
        • Signed-in users
        • Everyone
        Only me Signed-in users Everyone
      • Engagement control Commenting, Suggest edit, Emoji Reply
    • Invite by email
      Invitee
    • Publish Note

      Share your work with the world Congratulations! 🎉 Your note is out in the world Publish Note

      Your note will be visible on your profile and discoverable by anyone.
      Your note is now live.
      This note is visible on your profile and discoverable online.
      Everyone on the web can find and read all notes of this public team.
      See published notes
      Unpublish note
      Please check the box to agree to the Community Guidelines.
      View profile
    • Commenting
      Permission
      Disabled Forbidden Owners Signed-in users Everyone
    • Enable
    • Permission
      • Forbidden
      • Owners
      • Signed-in users
      • Everyone
    • Suggest edit
      Permission
      Disabled Forbidden Owners Signed-in users Everyone
    • Enable
    • Permission
      • Forbidden
      • Owners
      • Signed-in users
    • Emoji Reply
    • Enable
    • Versions and GitHub Sync
    • Note settings
    • Engagement control
    • Transfer ownership
    • Delete this note
    • Save as template
    • Insert from template
    • Import from
      • Dropbox
      • Google Drive
      • Gist
      • Clipboard
    • Export to
      • Dropbox
      • Google Drive
      • Gist
    • Download
      • Markdown
      • HTML
      • Raw HTML
Menu Note settings Versions and GitHub Sync Sharing URL Create Help
Create Create new note Create a note from template
Menu
Options
Engagement control Transfer ownership Delete this note
Import from
Dropbox Google Drive Gist Clipboard
Export to
Dropbox Google Drive Gist
Download
Markdown HTML Raw HTML
Back
Sharing URL Link copied
/edit
View mode
  • Edit mode
  • View mode
  • Book mode
  • Slide mode
Edit mode View mode Book mode Slide mode
Customize slides
Note Permission
Read
Only me
  • Only me
  • Signed-in users
  • Everyone
Only me Signed-in users Everyone
Write
Only me
  • Only me
  • Signed-in users
  • Everyone
Only me Signed-in users Everyone
Engagement control Commenting, Suggest edit, Emoji Reply
  • Invite by email
    Invitee
  • Publish Note

    Share your work with the world Congratulations! 🎉 Your note is out in the world Publish Note

    Your note will be visible on your profile and discoverable by anyone.
    Your note is now live.
    This note is visible on your profile and discoverable online.
    Everyone on the web can find and read all notes of this public team.
    See published notes
    Unpublish note
    Please check the box to agree to the Community Guidelines.
    View profile
    Engagement control
    Commenting
    Permission
    Disabled Forbidden Owners Signed-in users Everyone
    Enable
    Permission
    • Forbidden
    • Owners
    • Signed-in users
    • Everyone
    Suggest edit
    Permission
    Disabled Forbidden Owners Signed-in users Everyone
    Enable
    Permission
    • Forbidden
    • Owners
    • Signed-in users
    Emoji Reply
    Enable
    Import from Dropbox Google Drive Gist Clipboard
       owned this note    owned this note      
    Published Linked with GitHub
    Subscribed
    • Any changes
      Be notified of any changes
    • Mention me
      Be notified of mention me
    • Unsubscribe
    Subscribe
    # MIT1: Physical Layer - Radio waves $$s(t)=A\cdot\sin(2\cdot\pi ft+\varphi)$$ $A:$ Amplitude $f:$ frequency $t:$ time $\varphi:$ phase - wave length $\lambda=c/f,c=$ speed of light - Frequency allocation - ISM band (Industrial, scientific, medical) ## Modulation - Analog modulation: set parameters to an **arbitary** value - Digital modulation (Digital keying): set parameters from a **finite** set of values ### Amplitude Shift Keying (ASK) - Encode data with different amplitude - needs not much **bandwidth** - susceptible against distortion > Fourier Transform > Each periodic siganls can be represented by a composition of harmonic signals > $$g(t)=\frac{1}{2}c+\sum_{n=1}^\infty a_n\sin (2\pi n f t)+\sum_{n=1}^\infty b_n\cos (2\pi n f t)$$ > Digital modulation $\Rightarrow$ Analog signal$=$ periodic signal > Analog signal has **infinite bandwidth** > **bandwidth:** width of frequency band needed to represent a signal > wireless communication: **restricted bandwidth** - Relationship between bandwidth and signal rate $$S_{max}[\text{Hz,baud}]=2\cdot B[\text{Hz}]$$ $S:$ signal rate $B:$ bandwidth - **Nyquist Theorem** relationship between signal rate and data rate $$R_{max}[\text{bit/s}]=2\cdot B[\text{Hz}]\cdot Id(n)[\text{bit}]$$ $R:$ data rate $Id(n):$ $n$ parameters to represent $m=Id(n)$ bits $$\text{Data rate}\Leftrightarrow \text{Bandwidth}$$ ### 1. Digital modulation - analog baseband signal - low-pass filtering ### 2. Analog modulation - Shift the baseband signal to a given frequency band with **carrier frequency $f_c$** ### Frequency Shift Keying (FSK) - encode data with different frequency - needed **higher bandwidth** than ASK - bandwidth depends on $f_1,f_2$ ### Advanced FSK- MSK (Minimum Shift Keying) - encode **bit transitions** instead of bits - make the transition more smooth |||||| |---|---|---|---|---|---| |even|0|1|0|1| |odd|0|0|1|1| |siganl|h|l|l|h| |value|-|-|+|+| h: high frequency l: low frequency -: inverted signal +: original signal ### Advanced FSK-GMSK - Gaussian MSK - cut away high frequency side-band ### Phase Shift Keying (PSK) - more robust against distortion than ASK ### Advanced PSK- BPSK (Binary) - bit 0: sine wave bit 1: inverted sine wave - robust - low spectral efficiency - spectral efficiency: relationship between data rate and bandwidth ### Advanced PSK-QPSK (Quaternary) - Two bits coded per signal - higher spectral efficiency than BPSK - susceptible to distortion than BPSK - **DQPSK:** Different QPSK ### Quadrature Amplitude Modulation (QAM) - Amplitude and phase modulation - code $m$ bits per siganl, $m=2:$ QPSK - $m$ increases $\Rightarrow$ bit error rate increase - **error rate less than PSK** - Example: 16-QAM (4 bits = 1 symbol) ### Signal-to-Noise ratio - $SNR=S/N$ - $$\text{dezibel[dB]:}SNR_{max}=10\cdot\log_{10}(S/N)$$ ### Shannon Theorem - Noise level has influence on achievable data rate $$R_{max}[\text{bit/s}]=B[\text{Hz}]\cdot Id(1+S/N)\text{[bit]}$$ > Minimum of Shannon theorem and Nyquist theorem gives maximum achievable data rate ### Hierarchical modulation to deal with noise - **DVB-T** high priority stream in low priority stream - poor reception: high priority stream (10) good reception: low priority stream (1001) ## Demodulation - Receiver decode signal to $0/1$ - Problem caused by **channel imperfections** - Carrier synchronization - Bit (signal) synchronization - Frame synchronization - (most) interference ## Antannas - electronic siganl $\Leftrightarrow$ electromagnetic waves - Ideal **isotropic** antanna: radiation pattern = circle/sphere - Real antanna: size $\propto$ wavelength - best reception with wavelength $\lambda$: - dipole of size $\lambda/2$ ### Antanna gain - Maximum power in direction of main lobe (葉) compare to isotropic radiator $$g[\text{dB}]=10\cdot\log_{10} (P_{antanna}/P_{isotropic})$$ - Whole input power is radiated - the smaller radiation area, the higher the signal power - Directed antanna - Sectorized antanna ### Antanna Diversity - two or more antannas - **to get receiver antanna gain** - **Diversity combining:** 1. increase strength 2. construct directed antannas - but **interference** ### Beamforming - connecting antannas with cables of different length - to avoid **interference** $\Rightarrow$ **Transmit** signals with different **delays** causing different **phases**. (Through a transmitter) ## Signal Propagation ### Receiver Power - in vacuum $$P_r=P_t\cdot(\frac{\lambda}{4\pi d})^2\cdot G_r\cdot G_t$$ $P_i:$ power $G_i:$ antanna gain $d:$ distance $r:$ receiver $t:$ transmitter - In reality $$P_r\propto (1/d)^\alpha$$ $\alpha$ depends on the material - Received power influenced by - attenuation (衰減) - shadowing - reflection (反射) - refraction (折射) - scattering - disfraction (散射) at edges ### Multipath propagation - Signals may be directed on several paths to receiver - Effects: - receiver has different signal strength - **Time dispersion:** signal is dispersed (分散) over time - constructive or destructive interference - **inner-system interference (ISI)** ### Mobility - Quick change $\Rightarrow$ *short term fading* slow change $\Rightarrow$ *long term fading* - Conclusion |reason|effect|Cause| |---|---|---| |Multipath</br>Propagation|fast fading|fast fluctuation </br>position| |Multipath</br>Propagation|Time dispersion</br>Delay spread|Signal consists of several components </br>$\Rightarrow$ ISI| |Movement|Doppler Effect </br> Frequency Dispersion|distance change| |Attenuation|Path loss|especially rain and fog| |Shading|slow fading|slow fluctuation| ### Solution to interference, ISI, movement effects - *Antanna diversity* - *Signal spreading:* increase bandwidth of a signal - *Orthogonal Frequency Division Multiplexing (OFDM):* reduce the signal rate but send on several channels simultaneously - *Synchronization sequence:* allow receiver to calculate signal distortion ## Multiplexing - Subdivide given spectrum for simultaneous use ### Frequency Multiplex - Seperation of spectrum into smaller frequency bands - **Advantages:** 1. No dynamic coordination 2. Works also for analog signals - **Disadvantages:** 1. Waste of bandwidth 2. Inflexible 3. Guard spaces - Frequency divistion duplex - Used for **duplex communication**: uplink / downlink ### Time Multiplex - **Advantages:** 1. Only one carrier in a medium at any time 2. Throughput even high for many users - **Disadvantages:** 1. Precise synchronization 2. Guard time (waste transmission capacity) > RTT: round-trip time - Time division duplex - one frequency carrier - uplink / downlink at different time - **Flexible**: adjust time slots ### Time and frequency multiplex - **Advantages:** - protect against *tapping* - protect againt frequency selective interference - data rate > code multiplex - **Disadvantages:** - precise coordination ### Code division multiplex (CDM) - each channel (transmitter) has a unique code - **Advantages:** - protect against tapping and interference - bandwidth effeciently used - **Disadvantages:** - complex signal regeneration, coordination, synchronization - to avoid noise: **orthogonal codes** $$S\cdot T=0\\ S\cdot\bar{T}=0\\ S\cdot S=1$$ ## Spread spectrum - Application of CMD priciples for **robust transmission** $$\text{narrowband signal}\xRightarrow[]{CMD}\text{broadband signal}$$ 1. Original signal of sender 2. **spreading to braodband** $\Rightarrow$ signal power is distributed 3. $+$ broadband interference $+$ narrowband interference 4. **Receiver** reconstruct the signal $\Rightarrow$ **narrowband interference** is spread 5. Use **band pass filter** $\Rightarrow$ remove interference ### Directed Sequence Spread Spectrum (DSSS) - $$\text{User data }\oplus \text{ Chipping sequence (random) = resulting signal}$$ - **Advantages:** - Reduces **frequency selective fading** - Base station can use the **same frequency band** $\Rightarrow$ **soft handover** - **Disadvantages:** - precise **power control** > *Near-far problem* > signal near base band can wipe out signal far from base band > $\Rightarrow$ base band has to measure and adjust transmit power ### Frequency Hopping Spread Spectrum (FHSS) - Discrete changes of carrier frequency - *Fast hopping:* channels/bit *Slow hopping:* bits/channel - **Advantages:** - **frequency selective fading** limited to short period - Simple implementation - Use only small portion of spectrum at any time - **Disadvantages:** - robust < DSSS - simpler to *tap* ### Orthogonal Frequency Division Multiplexing (OFDM) - Varient of FDM: sub-channels are orthogonal $f_n$ maximum power = $f_{n-1},f_{n+1}$ minimum power - still only one channel (merged before) - **Advantages:** - Robust against narrowband co-channel interference - Robust against ISI - High spectral efficiency > FDM - Use Fast Fourier Transform (FFT) - Low sensitivity to time synchronization errors - Sub-channel can be adapted to dynamic channel conditions ### Space Multiplexing - Limited by transmit power - **Advantage:** - No coordination - **Disadvantages:** - No mobility - Only useful with other multiplexing - **Cell structure** - **Advantages:** - Frequency re-use - Less transmission power - Robust, decentralize - **Disadvantages:** - Handover - Interference between cells - **Clusters** - maximum distance $D$ between 2 cells - $$D=R\cdot\sqrt{3k}$$ $R:$ cell radius $k:$ cells per cluster ## Coding - BER: Bit Error Rate - Packet error probability $$P_p=1-(1-\text{BER})^n$$ $n:$ bit length - *How to deal with high BER?* - **Error detecting code** - CRC - **Error correction code** - Block error correction: - Hamming code - BCH code - Reed-solomon code - Convolutional code - Trellis code - Turbo code ### Block code - process blocks of data **independently** - $(n,k)$ protect $k$ bits data with $(n-k)$ FEC-bits - ex. $(255,247)$ - **Disadvantage:** - large $k$ causes expensive calculations periodically - convolutional code: generate redundant bits continuously ### Convolutional code - Dispere (分散) each bit over time - $(n,k,K)$ $K:$ constraint factor ("memory") $n=f(k,K)$ $n$ bits output depends on $k$ and $K-1$ input bits - Example - $V_{n1}=u_{n-2}\oplus u_{n-1}\oplus u_{n}$ $V_{n2}=u_{n-2}\oplus u_{n}$ $V_i:$ output bits $u_i:$ input bits (state) ### Trellis Diagram - Hamming distance $$d\geq2\cdot t+1$$ code can correct $t$ errors - Search trellis for possible paths ### Viterbi Algorithm - Check if received string gives a valid path through trellis - Calculate hamming distance, choose the shortest path - High complexity ### Turbo codes - Faster decoding > Viterbi Algorithm - *RSC codes: recursively systematic convolutional codes* - systematic: input bit taken over as output bit - take interleaved bit sequence - guess missing check bit (or set to 0)

    Import from clipboard

    Paste your markdown or webpage here...

    Advanced permission required

    Your current role can only read. Ask the system administrator to acquire write and comment permission.

    This team is disabled

    Sorry, this team is disabled. You can't edit this note.

    This note is locked

    Sorry, only owner can edit this note.

    Reach the limit

    Sorry, you've reached the max length this note can be.
    Please reduce the content or divide it to more notes, thank you!

    Import from Gist

    Import from Snippet

    or

    Export to Snippet

    Are you sure?

    Do you really want to delete this note?
    All users will lose their connection.

    Create a note from template

    Create a note from template

    Oops...
    This template has been removed or transferred.
    Upgrade
    All
    • All
    • Team
    No template.

    Create a template

    Upgrade

    Delete template

    Do you really want to delete this template?
    Turn this template into a regular note and keep its content, versions, and comments.

    This page need refresh

    You have an incompatible client version.
    Refresh to update.
    New version available!
    See releases notes here
    Refresh to enjoy new features.
    Your user state has changed.
    Refresh to load new user state.

    Sign in

    Forgot password

    or

    By clicking below, you agree to our terms of service.

    Sign in via Facebook Sign in via Twitter Sign in via GitHub Sign in via Dropbox Sign in with Wallet
    Wallet ( )
    Connect another wallet

    New to HackMD? Sign up

    Help

    • English
    • 中文
    • Français
    • Deutsch
    • 日本語
    • Español
    • Català
    • Ελληνικά
    • Português
    • italiano
    • Türkçe
    • Русский
    • Nederlands
    • hrvatski jezik
    • język polski
    • Українська
    • हिन्दी
    • svenska
    • Esperanto
    • dansk

    Documents

    Help & Tutorial

    How to use Book mode

    Slide Example

    API Docs

    Edit in VSCode

    Install browser extension

    Contacts

    Feedback

    Discord

    Send us email

    Resources

    Releases

    Pricing

    Blog

    Policy

    Terms

    Privacy

    Cheatsheet

    Syntax Example Reference
    # Header Header 基本排版
    - Unordered List
    • Unordered List
    1. Ordered List
    1. Ordered List
    - [ ] Todo List
    • Todo List
    > Blockquote
    Blockquote
    **Bold font** Bold font
    *Italics font* Italics font
    ~~Strikethrough~~ Strikethrough
    19^th^ 19th
    H~2~O H2O
    ++Inserted text++ Inserted text
    ==Marked text== Marked text
    [link text](https:// "title") Link
    ![image alt](https:// "title") Image
    `Code` Code 在筆記中貼入程式碼
    ```javascript
    var i = 0;
    ```
    var i = 0;
    :smile: :smile: Emoji list
    {%youtube youtube_id %} Externals
    $L^aT_eX$ LaTeX
    :::info
    This is a alert area.
    :::

    This is a alert area.

    Versions and GitHub Sync
    Get Full History Access

    • Edit version name
    • Delete

    revision author avatar     named on  

    More Less

    Note content is identical to the latest version.
    Compare
      Choose a version
      No search result
      Version not found
    Sign in to link this note to GitHub
    Learn more
    This note is not linked with GitHub
     

    Feedback

    Submission failed, please try again

    Thanks for your support.

    On a scale of 0-10, how likely is it that you would recommend HackMD to your friends, family or business associates?

    Please give us some advice and help us improve HackMD.

     

    Thanks for your feedback

    Remove version name

    Do you want to remove this version name and description?

    Transfer ownership

    Transfer to
      Warning: is a public team. If you transfer note to this team, everyone on the web can find and read this note.

        Link with GitHub

        Please authorize HackMD on GitHub
        • Please sign in to GitHub and install the HackMD app on your GitHub repo.
        • HackMD links with GitHub through a GitHub App. You can choose which repo to install our App.
        Learn more  Sign in to GitHub

        Push the note to GitHub Push to GitHub Pull a file from GitHub

          Authorize again
         

        Choose which file to push to

        Select repo
        Refresh Authorize more repos
        Select branch
        Select file
        Select branch
        Choose version(s) to push
        • Save a new version and push
        • Choose from existing versions
        Include title and tags
        Available push count

        Pull from GitHub

         
        File from GitHub
        File from HackMD

        GitHub Link Settings

        File linked

        Linked by
        File path
        Last synced branch
        Available push count

        Danger Zone

        Unlink
        You will no longer receive notification when GitHub file changes after unlink.

        Syncing

        Push failed

        Push successfully