Hello, dear friend, you can consult us at any time if you have any questions, add WeChat: daixieit

EE5576: Wireless Communication Systems: Homework Assignment 3

Submission Instructions:

Submit your Matlab les (.m) and your assignment in electronic format (.pdf) directly on Canvas

Dr. Elena Bernal Mor

Assistant Teaching Professor

Department of Electrical and Computer Engineering

Northeastern University

e-mail : [email protected]

Consider a QPSK system with symbol duration Ts  = 2 ns and carrier frequency fc  = 1 GHz. The transmitter uses the in-phase, I , and the quadrature, Q, components to generate the corresponding symbols, where I = 1, _1 and Q = 1, _1. For the transmitter pulse, consider square pulses with amplitude 1 and duration Ts . Gray encoding is used to define the bits carried by each symbol in the following way:

In this assignment we will consider three different channels. After the propagation delay of the shortest path, the first copy of the signal arrives to the receiver. Ignore this initial delay and consider relative delays to the first copy of the signal, τ , in seconds. Consider that all 3 channels are time invariant, so the impulse response of channel n is given by hn (t, τ ) = hn (τ ). The impulse response of these channels are given by:

A random sequence of symbols is sent from the transmitter to the receiver through one of these channels. Consider AWGN at the input of the receiver that results in a SNR=10 dB at the input of the receiver.

At the receiver, the received corrupted symbols are demodulated by using two parallel matched lters (one for the in-phase and the other for the quadrature components) and then the Maximum Likelihood (ML) detector will be used to determine the transmitted bits. For the matched lter we consider the cosine (or sine), the transmitter pulse and a scale factor given that the cosine (sine) do not have unity energy.

Together with this document, you will nd 3 Matlab les in the assignment:

● tx QPSK .m: implements the transmitter with all the specifications described above.

●  channel and noise .m: implements the signal transmission through a channel with impulse response specified as an input parameter and adds the AWGN noise.

● rx QPSK .m: implements the receiver with all the specifications described above.

Moreover, you will also nd a Matlab le (linfilt .m) that obtains the output signal for a linear lter given the impulse response and the input signal. This function is called by the previous Matlab functions.

In Matlab, the signals must be discrete in time. Consider that the sampling frequency (signal samples per second) is given by fs  = 50 GHz. Consider also that for the Matlab code, frequencies are in MHz, symbol rates are in Mbauds and time is expressed in microseconds .

Read carefully and understand the functions tx QPSK, channel and noise, rx QPSK and linfilt in the les attached together with the assignment. All the specifications for the system explained previously are already implemented in these functions. Your rst goal is to understand their implementation and understand how to use them. If you are not familiar with some of the Matlab functions called in these functions, use the Matlab help tool. For example, to add AWGN to a signal the function awgn is used. For more information type in Matlab help  awgn.

Considering all the previous system information, complete the following tasks:

1.  (20 points) Create a M-file for the complete system considering either h1 (τ ), or h2 (τ ), or h3 (τ ) as the impulse response of the channel. For the time (τ ) vector used to generate the impulse responses, use a time vector that starts in time 0 and has a longer duration than the impulse response. For example, you can use the same time vector associated to the transmitted signal. Use this le for the next sections.

2.  Generate 8 random bits of data.

(a)  (10 points) Plot the transmitted signal. Comment the results.

(b)  (20 points) Consider the channel impulse responses given previously. Generate 8 bits of data and

plot the received signals corrupted with noise for the three different channels (plot the signals for each channel in a different gure). Comment the results.

3.  Generate 100 bits of data.

(a)  (20 points) Plot the receiver constellation for the values of I and Q at the output of the demodu-

lator for the three possible channels (plot the constellation for each channel in a different gure). Comment the results.

(b)  (20 points) Compare the data sent and the data received for the three cases by obtaining the bit

error probability Which is the worst case? Why do you think this happens?

4.  (10 points) How would you improve your receiver to reduce the bit error probability? No need to implement your solution, just provide a possible solution and justify your answer.

IMPORTANT: Submit a .pdf document with the answers for each section including gures for each section and comments when requested. For all the gures, generate appropriate labels for the  and the y coordinates. Submit also the M-file you used to obtain your solution.