ET23BTEC022 - Lab - CRC
ET23BTEC022 - Lab - CRC
Show your computation for the following. Lab Notebook / Lab file.(Hand written hardcopy)
Calculate CRC, Transmit message T(x). Receive message R(x). R(x) can be as it is transmitted
or may be with error. Show the result with error and without error at the receiver.
(1)Take a message polynomial and divisor of your choice. - 1 points
(2)Take message polynomial - m(x) = 101100011101, Divisor g(x) - 10110 - 1 points
(3)Take a message polynomial of 4 digit - 7yz6 where yz are the last two digits of your
enrolment number. Convert these digits into binary (4bits per digit) and consider that as a
message. Consider divisor - x4+x2+1 - 3 points
If your enrollment number is 40 then m(x) = 0111 0100 0000 0110
Show Code here.(1 points)
clc;
clear all;
close all;
Gx = input('Enter Gx : ');
Mx = input ('Enter Message Mx : ');
n = length(Gx)-1;
zero = zeros(1,n);
appendMx = [Mx zero] ;
[quot,remd] = gfdeconv(fliplr(appendMx),fliplr(Gx))
Tx = [Mx,fliplr(remd)]
% RECIEVER SIDE
rx = input('Enter the receive: ');
[qourx,remrx] = gfdeconv(fliplr(rx),fliplr(Gx))
if remrx == 0
display('no error')
else
display('error')
end
Take a message polynomial and divisor of your choice. - 1 points
( without error )
Take a message polynomial and divisor of your choice. - 1 points
( with error )
Take message polynomial- m(x) = 101100011101, Divisor g(x) - 10110 - 1 points
( Without Error )
Take message polynomial- m(x) = 101100011101, Divisor g(x) - 10110 - 1 points
( with Error )
Take a message polynomial of 4 digit - 7yz6 where yz are the last two digits of
your enrolment number. Convert these digits into binary (4bits per digit) and
consider that as a message. Consider divisor - x4+x2+1 - 3 points
En No : ET23BTEC022
Gx : 10101
Mx : 0111 0010 0010 0110
( WITHOUT ERROR )
( WITH ERROR )
Show results here for two polynomial and divisor pairs (Generated CRC, Received message with
error and corrected message. (6 points)
Questions - 4 points