Ec3501-Wireless Communication-Wc Lab Manual
Ec3501-Wireless Communication-Wc Lab Manual
V SEMESTER - R 2021
LABORATORY MANUAL
Name : _______________________________________
Register No : _______________________________________
Section : _______________________________________
Committed to produce highly disciplined, conscientious, and enterprising professionals through value-
based quality education, and research excellence
MISSION
To provide competent technical manpower capable of meeting the global industrial requirements through
excellence in education
To establish the Center of Excellence on the cutting-edge technologies that initiate new ideas leading to the
emergence of innovators, leaders, and entrepreneurs
To instill the highest level of self-confidence, professionalism, academic excellence, and engineering ethics
VISION
To impart professional education with human values and shape globally competent technocrats capable of
deploying technology for the service of humanity
MISSION
To develop highly competent and globally employable engineers in the field of Electronics and
Communication Engineering by imparting quality education to meet industrial and societal needs
To inspire students to become responsible citizens with critical thinking, ethical practices, and capable of
working in a collaborative environment
To provide a learning ambience that imparts excellence in innovation, research, and leadership
To facilitate the students to work with recent tools and technologies
To motivate and guide students to take up higher studies and establish entrepreneurial ventures
2. Core Competence
To train the students to meet the needs of core industry with an attitude of learning new technologies.
3. Breadth
To provide relevant training and experience to bridge the gap between theory and practice which enable
them to find solutions to problems in industry and research that contributes to the overall development of
society.
4. Professionalism
To inculcate professional and effective communication skills to the students to make them lead a team
and stand as a good decision maker to manage any constraint environment with good professional ethics at
all strategies.
5. Lifelong Learning/Ethics
To practice ethical and professional responsibilities in the organization and society with commitment and
lifelong learning needed for successful professional career.
PROGRAM OUTCOMES (POs)
b. Graduates will be able to identify, formulate and solve electrical engineering problems.
c. Graduates will be able to design and conduct experiments, analyze and interpret data.
d. Graduates will be able to design a system, component or process as per needs and specifications.
e. Graduates will demonstrate to visualize and work on laboratory and multidisciplinary tasks.
f. Graduates will demonstrate skills to use modern engineering tools, software and equipment to analyze
problems.
h. Graduates will be able to communicate effectively by both verbal and written form.
i. Graduates will show the understanding of impact of engineering solutions on the society and also will be
aware of contemporary issues.
j. Graduates will develop confidence for self-education and ability for lifelong learning.
SYLLABUS
1. Modeling of wireless communication systems using Matlab (Two ray channel and
Okumura – Hata model)
3. Design, analyze and test Wireless standards and evaluate the performance measurements
such as BER, PER, BLER, throughput, capacity, ACLR, EVM for 4G and 5G using
Matlab
6. Modeling and simulation of TDMA, FDMA and CDMA for wireless communication
COURSE OUTCOMES
● To study and Understand Mobile Radio Propagation and Various Digital Modulation Techniques.
AIM: To design a model of wireless communication systems using Matlab (Two ray channel and
Okumura –Hata model)
CODING:
RESULT: Thus designing a model of wireless communication systems using Matlab (Two
ray channel and Okumura –Hata model) is achieved
VIVA QUESTIONS:
CODING:
% Simulation parameters
numSamples = 1000; % Number of samples
numPaths = 3; % Number of multipath paths
fadePower = 0.5; % Fading power
% Generate Rayleigh fading channel coefficients
h = sqrt(fadePower/2)*(randn(numPaths, numSamples) + 1i*randn(numPaths, numSamples));
% Generate transmitted signal
txSignal = randn(1, numSamples) + 1i*randn(1, numSamples);
% Simulate multipath fading channel
rxSignal = zeros(1, numSamples); for
path = 1:numPaths
rxSignal = rxSignal + h(path, :) .* txSignal;
end
% Plot the transmitted and received signals t =
1:numSamples;
figure;
subplot(2,1,1);
plot(t, real(txSignal), 'b', t, imag(txSignal), 'r');
title('Transmitted Signal');
legend('In-phase', 'Quadrature');
xlabel('Time');
ylabel('Amplitude');
subplot(2,1,2);
plot(t, real(rxSignal), 'b', t, imag(rxSignal), 'r');
title('Received Signal');
legend('In-phase', 'Quadrature');
xlabel('Time');
ylabel('Amplitude');
OUTPUT :
RESULT:
Thus the designing of a Model and simulation of Multipath fading channel has been achieved
VIVA QUESTIONS:
AIM : Design, analyze and test Wireless standards and evaluate the performance measurements
such as BER, PER, BLER, throughput, capacity, ACLR, EVM for 4G and 5G using
Matlab.
CODING:
EbNo = 10^(EbNo_dB/10);
noiseVar = 1 / (2 * EbNo);
= rayleighchan(1/1000, 30);
= numErrors / numBits;
% Display results
RESULT:
Thus designing, analyzing and testing Wireless standards and evaluating the performance
measurements such as BER, PER, BLER, throughput, capacity, ACLR, EVM for 4G and 5G using
Matlab has been achieved
VIVA QUESTIONS:
CODING:
% Parameters
spreadingFactor = length(spreadingCode);
% DSSS Modulation
modulatedSignal = [];
for i = 1:length(data)
end
% DSSS Demodulation
demodulatedSignal = [];
for i = 1:length(modulatedSignal)/spreadingFactor
chips = modulatedSignal((i-1)*spreadingFactor+1:i*spreadingFactor);
chipSum = sum(chips);
if chipSum>= spreadingFactor/2
else
end
end
% Display Results
disp('Original Data:');
disp(data);
disp('Demodulated Data:');
disp(demodulatedSignal);
OUTPUT:
Original Data:
1 0 1 0 1 1 0 0
Demodulated Data:
1 0 1 0 1 1 0 0
RESULT: Thus designing modulation: Spread Spectrum – DSSS Modulation & Demodulation has been
achieved
VIVA QUESTIONS:
1. Why do we need spread spectrum?
2. What is spread spectrum modulation?
3. What are the types of spread spectrum?
4. What is the spread spectrum technique?
5. What is the formula for spectral spread?
6. What is the full form of DSSS?
7. What is the spreading factor of a spread spectrum?
8. What are the advantages of DSSS?
EXPERIMENT 5:
AIM: To design a wireless Channel equalization: Zero-Forcing Equalizer (ZFE), MMS Equalizer
CODING :
% Zero-Forcing Equalizer
length(h);
for n = 1:N
received_symbols = received_signal(n:n+L-1);
% Perform zero-forcing equalization equalized_symbols(n) =
equalizer_taps * received_symbols';
end
disp('Original Symbols:');
disp(symbols);
disp('Equalized Symbols:');
disp(equalized_symbols);
OUTPUT:
Original Symbols:
Columns 1 through 19
1 1 0 1 1 0 0 1 1 1 0 1 1 0 1 0 0 1 1
Columns 20 through 38
1 1 0 1 1 1 1 1 0 1 0 1 0 0 0 0 1 1 0
Columns 39 through 57
1 0 0 0 1 1 0 0 0 1 1 1 0 1 1 0 0 0 1
Columns 58 through 76
0 1 0 1 0 1 1 1 1 1 0 0 0 1 0 1 0 1 0
Columns 77 through 95
0 0 1 0 0 1 1 1 1 0 1 1 0 1 0 0 1 1 1
0 1 0 0 0
Equalized Symbols:
Columns 1 through 11
1.0034
Columns 12 through 22
0.3164 0.8987 0.7162 -0.0194 0.8262 0.2108 0.3684 1.3409 0.6328 0.5942
0.7986
Columns 23 through 33
0.3903 1.3034 0.9963 0.6816 0.6242 0.6419 0.1078 0.9584 -0.0282 0.4643 -
0.0959
Columns 34 through 44
0.3857 0.3709 0.1746 1.1529 0.6859 -0.3254 0.6316 -0.1321 0.2851 0.6131
0.9881
Columns 45 through 55
0.1328 -0.3112 0.5753 0.4748 1.4226 0.8176 0.5202 0.2300 0.9991 0.4921 -
0.2495
Columns 56 through 66
0.2145 0.5610 1.0497 -0.3251 1.0165 -0.0410 1.1669 0.3767 1.3984 0.8522
0.7683
Columns 67 through 77
0.6932 0.4118 -0.0997 0.1789 0.1747 1.2491 0.0166 1.0660 -0.0451 0.5827 -
0.1786
Columns 78 through 88
0.2406 0.4407 0.5875 -0.0514 0.5994 1.4474 0.8587 0.6711 0.4184 0.5040
1.2422
Columns 89 through 99
0.4668 -0.0972 0.6936 -0.1060 0.7651 1.3313 0.6154 0.7091 0.0191 0.5241 -
0.1900
Column 100
0.0171
2. MMSE CODE
% Parameters
% Modulation
% Add noise
SNR = 10^(SNRdB/10);
noiseVar = 1/(2*SNR);
receivedSignal(pilotIndices);
estimatedChannel = estimatedChannel(end-length(channel)+1:end);
% MMSE equalization
% Demodulation
bitErrorRate = bitErrors / N;
ADE:
% Parameters
modulated_symbols = 2 * data_symbols - 1;
equalizer_length = channel_length; % Set the equalizer length to match the channel length
received_window = received_symbols_noisy(i:-1:i-equalizer_length+1);
equalizer * received_window.';
OUTPUT:
RESULT: Thus designing a wireless Channel equalization: Zero-Forcing Equalizer (ZFE), MMS
been achieved
VIVA QUESTIONS:
AIM: To model and simulate TDMA, FDMA and CDMA for wireless communication
CODING:
1. TDMA
numUsers = 4;
10;
channelGain = 0.8;
slot = 1:totalTimeSlots
if userSlots(slot) == user
end
end
% Step 6: Evaluate Performance Metrics (e.g., BER)
figure;
subplot(2, 1, 1);
stem(timeSlots, userData');
title('User Traffic');
xlabel('Time (s)');
ylabel('Data');
receivedData'); title('Received
ylabel('Data');
OUTPUT:
% System parameters
5; % Number of users
% Time parameters
time = 0:1/samplingFrequency:timeDuration;
i = 1:numUsers
userSignals(i, :) = sin(2*pi*userFrequency*time);
end
% Create the FDMA signal fdmaSignal
= sum(userSignals, 1);
i = 1:numUsers
end
figure;
subplot(numUsers+1, 1, 1);
plot(time, fdmaSignal);
title('FDMA Signal');
xlabel('Time (s)');
ylabel('Amplitude');
1, i+1); plot(time,
demodulatedSignals(i, :));
xlabel('Time (s)');
ylabel('Amplitude');
end
% BPSK Modulation
user2Symbols = 2 * user2Bits - 1;
chipSequence = [1, -1, 1, 1, -1, 1, -1, -1]; % Chip sequence for spreading
user2FilteredSymbols(1:length(user2Symbols)) > 0;
% Display results
Output:
Result: Thus modeling and simulation of TDMA, FDMA and CDMA for
wireless communication has been achieved.
Viva Questions:
1. What is the basic principle of TDMA?
2. What is TDMA used for?
3. Why GSM is called TDMA?
4. What is the basic principle of FDMA?
5. What is the frequency range of FDMA?
6. What are the applications of FDMA?
7. What is the principle of CDMA?
8. What technology is used in CDMA?
9. What is the noise power of a CDMA system?