CS434/534: Topics in Networked (Networking) Systems Wireless Foundation: Modulation and Demodulation Yang (Richard) Yang Computer Science Department.

Slides:



Advertisements
Similar presentations
Physical Layer: Signals, Capacity, and Coding
Advertisements

What is a signal ? A function of one or more independent variables which contain some information. Voltage, Current ,temperature are all different signals.
Analog Communications
Wireless Transmission Fundamentals (Physical Layer) Professor Honggang Wang
3.1 Chapter 3 Data and Signals Copyright © The McGraw-Hill Companies, Inc. Permission required for reproduction or display.
Chi-Cheng Lin, Winona State University CS412 Introduction to Computer Networking & Telecommunication Theoretical Basis of Data Communication.
CMP206 – Introduction to Data Communication & Networks Lecture 2 – Signals.
Note To be transmitted, data must be transformed to electromagnetic signals.
ECE 8443 – Pattern Recognition EE 3512 – Signals: Continuous and Discrete Objectives: Generalized Fourier Transform Analog Modulation Amplitude Modulation.
Chapter 5 Analog Transmission.
EE302 Lesson 21: Transmission of Binary Data in Communication Systems
How is information sent and received without wires.
1 A first course in Telecommunications: a top-down approach Peter Driessen Faculty of Engineering University of Victoria.
Lecture 3 Data Encoding and Signal Modulation
Copyright © 2003, Dr. Dharma P. Agrawal and Dr. Qing-An Zeng. All rights reserved. 1 Chapter 7 Multiple Division Techniques.
DSP for Software Radio Waveform Processing – Single Carrier Systems Dr. Jamil Ahmad.
CELLULAR COMMUNICATIONS DSP Intro. Signals: quantization and sampling.
Mobile Communications Systems Janaka Harambearachchi.
Lecture 3-1: Coding and Error Control
Prof. Brian L. Evans Dept. of Electrical and Computer Engineering The University of Texas at Austin EE345S Real-Time Digital Signal Processing Lab Spring.
Prof. Brian L. Evans Dept. of Electrical and Computer Engineering The University of Texas at Austin EE345S Real-Time Digital Signal Processing Lab Fall.
Wireless PHY: Modulation and Channels Y. Richard Yang 09/6/2012.
Prof. Brian L. Evans Dept. of Electrical and Computer Engineering The University of Texas at Austin EE445S Real-Time Digital Signal Processing Lab Fall.
Wireless PHY: Modulation and Demodulation Y. Richard Yang 09/6/2012.
EE 6331, Spring, 2009 Advanced Telecommunication Zhu Han Department of Electrical and Computer Engineering Class 11 Feb. 24 th, 2009.
Physical Layer (2). Goal Physical layer design goal: send out bits as fast as possible with acceptable low error ratio Goal of this lecture – Review some.
Wireless Communications
Wireless PHY: Modulation and Demodulation Y. Richard Yang 09/11/2012.
The GNU in RADIO Shravan Rayanchu. SDR Getting the code close to the antenna –Software defines the waveform –Replace analog signal processing with Digital.
Wireless PHY: Modulation and Demodulation Y. Richard Yang 09/6/2012.
Signals and Systems Prof. Brian L. Evans Dept. of Electrical and Computer Engineering The University of Texas at Austin EE 382C-9 Embedded Software Systems.
Lecture 1B (01/07) Signal Modulation
CS434/534: Mobile Computing and Wireless Networks Y. Richard Yang 08/30/2012.
Wireless PHY: Modulation and Demodulation Y. Richard Yang 09/6/2012.
Prof. Nizamettin AYDIN Advanced Digital Signal Processing 1.
Wireless Communications Outline Introduction History System Overview Signals and Propagation Noise and Fading Modulation Multiple Access Design of Cellular.
Analog Communication Systems Amplitude Modulation By Dr. Eng. Omar Abdel-Gaber M. Aly Assistant Professor Electrical Engineering Department.
CHAPTER 4. OUTLINES 1. Digital Modulation Introduction Information capacity, Bits, Bit Rate, Baud, M- ary encoding ASK, FSK, PSK, QPSK, QAM 2. Digital.
CS434/534: Topics in Networked (Networking) Systems Network OS Abstraction: From Data to Function Store; Wireless Foundation: Frequency-Domain Analysis.
CS434/534: Topics in Networked (Networking) Systems Wireless Foundation: LPF; Digital Modulation and Demodulation; Wireless Channel Yang (Richard)
Analog and Digital Modulation Techniques
CS434/534: Topics in Networked (Networking) Systems Wireless Foundation: Inter-Symbol Interference (ISI): Wave Shaping, Equalization, OFDM Yang (Richard)
KOMUNIKASI DATA Materi Pertemuan 10.
디지털통신 Bandpass Modulation 1 임 민 중 동국대학교 정보통신공학과.
Communications Engineering 1
Wireless Communications
Modulation Techniques
CHAPTER 3 DATA AND SIGNAL
Generating Sinusoidal Signals
Amplitude Modulation.
Klaus Witrisal Signal Processing and Speech Communication Lab
Signals and Systems Networks and Communication Department Chapter (1)
Wireless PHY: Frequency-Domain Analysis
Fourier Transform Analysis of Signals and Systems
ANALOG COMMUNICATION SYSTEMS
Signal and Systems Chapter 8: Modulation
Wireless Channels Y. Richard Yang 01/12/2011.
Wireless PHY: Modulation and Demodulation
Introduction to Communications
Chapter 10. Digital Signals
The Beauty of Mathematics in
Lecture 5: DSB-SC AM Modulation 1st semester
LECTURE 12: SIGNAL MODULATION AND DEMODULATION
Mobile Communications Systems ECE IV Year I Sem
Digital Signal Processing
Amplitude Shift Keying (ASK)
Amplitude Modulation By Dr. Vaibhav Jain Associate Professor, Dept. of Physics, D.A.V (PG) College, Bulandshahr, U.P., India.
Digital-to-Analog Conversion
From AM Radio to Digital I/Q Modulation
3.1 Chapter 3 Data and Signals Copyright © The McGraw-Hill Companies, Inc. Permission required for reproduction or display.
Presentation transcript:

CS434/534: Topics in Networked (Networking) Systems Wireless Foundation: Modulation and Demodulation Yang (Richard) Yang Computer Science Department Yale University 208A Watson Email: yry@cs.yale.edu http://zoo.cs.yale.edu/classes/cs434/

Outline Admin and recap Wireless background Frequency domain Basic concepts of modulation Amplitude modulation Amplitude demodulation

Admin PS1 deferred to Tuesday Feel free to stop by Chris Leet office at any time to discuss PS1

Recap: Fourier Series of Periodic Function A periodic function g(t) with period T on [a, a+T] can be decomposed as: For periodic function with period 1 on [0, 1] http://en.wikipedia.org/wiki/Fourier_series

Signals at undesirable frequencies Basic Question: Why Not Send Digital Signal in Wireless Communications? Signals at undesirable frequencies suppose digital frame repeat every T seconds, then according to Fourier series decomposition, signal decomposes into frequencies at 1/T, 2/T, 3/T, … let T = 1 ms, generates radio waves at frequencies of 1 KHz, 2 KHz, 3 KHz, … 1 digital signal t

Frequencies are Assigned and Regulated Europe USA Japan Cellular Phones GSM 450 - 457, 479 486/460 467,489 496, 890 915/935 960, 1710 1785/1805 1880 UMTS (FDD) 1920 1980, 2110 2190 (TDD) 1900 1920, 2020 2025 AMPS , TDMA CDMA 824 849, 869 894 1850 1910, 1930 1990 PDC 810 826, 940 956, 1429 1465, 1477 1513 Cordless CT1+ 885 887, 930 932 CT2 864 868 DECT 1900 PACS 1910, 1930 UB 1910 PHS 1895 1918 JCT 254 380 Wireless LANs IEEE 802.11 2400 2483 HIPERLAN 2 5150 5350, 5470 5725 902 928 I EEE 802.11 5350, 5725 5825 2471 2497 5250 Others RF Control 27, 128, 418, 433, 315, 915 426, 868 $22 billion: Amount operators paid the U.S. government over the past ten years for spectrum. Source Burton Group. US operator: http://wireless.fcc.gov/uls

Spectrum and Bandwidth: Shannon Channel Capacity The maximum number of bits that can be transmitted per second by a physical channel is: where W is the frequency range of the channel, and S/N is the signal noise ratio, assuming Gaussian noise

Why Not Send Digital Signal in Wireless Communications? Transmitter voice Antenna: size ~ wavelength 20-20KHz At 3 KHz, Antenna too large! Use modulation to transfer to higher frequency

Recap: Discrete Domain Analysis FFT: Transforming a sequence of numbers x0, x1, …, xN-1 to another sequence of numbers X0, X1, …, XN-1 Interpretation: consider x0, x1, …, xN-1 as sampled values of a periodical function defined on [0, 1] Xk is the coefficient (scaled by N) for k Hz harmonics if the FFT N samples span one sec Draw on blackboard [Nfft, Nfft, …] = Ns (defined for 1 sec)

FFT Analysis vs Sample Rate X1 X2 XNfft/2 Nfft=Nsample 1Hz 2Hz Nfft/2 Hz Relationship between FFT size N, and sample rate Ns. FFT Xk is for frequency at k * frequency of the N samples N/Ns. The freq. analysis resolution:

Frequency Domain Analysis Examples Using GNURadio spectrum_1_realsin_rawfft 1K real cosine wave 1024 FFT 32000 sample rate Prediction: Where is the peak of FFT? Commands ./plot/raw2numf signal.dat signal.show 0 1024 ./plot/raw2numfc fft.dat fft.show 0 1024 Relationship between FFT size N, and sample rate Ns. FFT Xk is for frequency at k * frequency of the N samples N/Ns.

Frequency Domain Analysis Examples Using GNURadio spectrum_2_realsin_plus.grc Two signal sources (350 + 440) Audio sink Scope Sink FFT Sink (1024 FFT) Prediction: What is a good sample rate to see the result? Relationship between FFT size N, and sample rate Ns. FFT Xk is for frequency at k * frequency of the N samples N/Ns.

Frequency Domain Analysis Examples Using GNURadio spectrum_2_realsin_multiply Multiplication of previous signal by another sine wave Relationship between FFT size N, and sample rate Ns. FFT Xk is for frequency at k * frequency of the N samples N/Ns.

Advantage of I/Q representation Advantages of I/Q representation Relationship between FFT size N, and sample rate Ns. FFT Xk is for frequency at k * frequency of the N samples N/Ns.

I/Q Multiplication Also Called Quadrature Mixing Relationship between FFT size N, and sample rate Ns. FFT Xk is for frequency at k * frequency of the N samples N/Ns. spectrum of complex signal x(t) spectrum of complex signal x(t)ej2f0t spectrum of complex signal x(t)e-j2f0t

Outline Recap Wireless background Frequency domain Modulation and demodulation

Basic Concepts of Modulation The information source Typically a low frequency signal Referred to as baseband signal Carrier A higher frequency sinusoid Example cos(2π10000t) Modulated signal Some parameter of the carrier is varied in accordance with the baseband signal

Types of Modulation Analog modulation Digital modulation Amplitude modulation (AM) Frequency modulation (FM) Double and signal sideband: DSB, SSB Digital modulation Amplitude shift keying (ASK) Frequency shift keying: FSK Phase shift keying: BPSK, QPSK, MSK Quadrature amplitude modulation (QAM)

Outline Recap Wireless background Frequency domain Modulation and demodulation Basic concepts Amplitude modulation

Example: Amplitude Modulation (AM) Block diagram Time domain Frequency domain

Example: am_modulation Example Setting Audio source (sample 32K) Signal source (300K, sample 800K) Multiply Two Scopes FFT Sink

Example AM Frequency Domain Note: There is always the negative freq. in the freq. domain.

Outline Recap Wireless background Frequency domain Modulation and demodulation Basic concepts Amplitude modulation Amplitude demodulation

Problem: How to Demodulate AM Signal?

Design Option 1 Step 1: Multiply signal by e-j2πfct Implication: Need to do complex multiple multiplication

Design Option 1 (After Step 1) -2fc

Design Option 1 (Step 2) Apply a Low Pass Filter to remove the extra frequencies at -2fc -2fc

Design Option 2: Quadrature Sampling

Quadrature Sampling: Upper Path (cos)

Quadrature Sampling: Upper Path (cos)

Quadrature Sampling: Upper Path (cos)

Quadrature Sampling: Lower Path (sin)

Quadrature Sampling: Lower Path (sin)

Quadrature Sampling: Lower Path (sin)

Quarature Sampling: Putting Together Relationship between FFT size N, and sample rate Ns. FFT Xk is for frequency at k * frequency of the N samples N/Ns.

Summary: Demod of AM Design option 1: multiply modulated signal by e-jfct, and then LPF Design option 2: quadrature sampling

Remaining Hole: How to Design LPF Frequency domain view freq B -B freq B -B

Design Option 1 compute freq zeroing out outband freq compute lower-pass time signal freq B -B This is essentially how image compression works. Problem(s) of Design Option 1?

Design Option 2: Impulse Response Filters GNU software radio implements filtering using Finite Impulse Response (FIR) filters Infinite Impulse Response (IIR) Filters FIR filters are more commonly used FIR/IIR is essentially online, streaming algorithms They are used in networks/communications/vision/robotics…

FIR Filter An N-th order FIR filter h is defined by an array of N+1 numbers: They are often stored backward (flipped) Assume input data stream is x0, x1, …, … hN h2 h1 h0

xn-3 xn-2 xn-1 xn xn+1 * * * * h3 h2 h1 h0 FIR Filter compute y[n]: 3rd-Order Filter h3 h2 h1 h0 compute y[n]:

FIR Filter xn-3 xn-2 xn-1 xn xn+1 * * * * h3 h2 h1 h0 compute y[n+1]

FIR Filter is also called convolution between x (as a vector) and h (as a vector), denoted as

Key Question Using h to Implement LPF How to determine h? Approach: Understand the effects of y=g*h in the frequency domain

Backup Slides

GNURadio: Design Objective A software development toolkit that provides signal processing blocks to implement software-defined radio systems.

GNURadio Hardware Arch Hardware Frontend Host Computer RF Frontend (Daugtherboard) ADC/DAC and Digital Frontend (USRP) GNU Radio Software http://mobiledevices.kom.aau.dk/fileadmin/mobiledevices/teaching/software_testing/Gnu_radio_lecture.pdf

Basic Software Concepts Block Flow graph

Basic Software Concepts http://gnuradio.org/doc/doxygen/classgr__block.html gr_basic_block (name, in/out signature, msg queue) gr_block (Leaf block; key functions forecast/general_work) Example: http://www.gnu.org/software/gnuradio/doc/howto-write-a-block.html gr_hier_block2 (container block; key functions: connect/disconnect/lock/unlock) gr_top_block (flow graph; start/stop/wait)

Software/Execution Model Software model Python Application management (e.g., GUI) Flow graph construction Non-streaming code (e.g., MAC-layer) C++ Signal processing blocks Certain routines also coded in assembly Execution model Python thread for each top_block Python Application development Flow graph construction C++ Signal processing blocks Discussion: benefits/issues of the hybrid software structure?

Summary: GNURadio Interesting/key software design techniques you learned from GNURadio?