0% found this document useful (0 votes)
161 views

ECE511FL - Activity 7 (Error Control Coding)

This laboratory manual outlines an activity to demonstrate error control coding using Vertical Redundancy Check (VRC), Longitudinal Redundancy Check (LRC), and Cyclic Redundancy Check (CRC). Students will use Scilab functions to encode messages with different error coding schemes and analyze the ability to detect errors in received bit streams. The objectives are to encode messages using VRC, VRC with LRC, and CRC with different generator polynomials, and observe whether errors can be detected when bits in received streams are altered.

Uploaded by

SM Mecreg
Copyright
© © All Rights Reserved
Available Formats
Download as DOC, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
161 views

ECE511FL - Activity 7 (Error Control Coding)

This laboratory manual outlines an activity to demonstrate error control coding using Vertical Redundancy Check (VRC), Longitudinal Redundancy Check (LRC), and Cyclic Redundancy Check (CRC). Students will use Scilab functions to encode messages with different error coding schemes and analyze the ability to detect errors in received bit streams. The objectives are to encode messages using VRC, VRC with LRC, and CRC with different generator polynomials, and observe whether errors can be detected when bits in received streams are altered.

Uploaded by

SM Mecreg
Copyright
© © All Rights Reserved
Available Formats
Download as DOC, PDF, TXT or read online on Scribd
You are on page 1/ 4

Saint Louis University

SCHOOL OF ENGINEERING AND ARCHITECTURE

LABORATORY MANUAL

ACTIVITY NO. 7
ERROR CONTROL CODING

ACTIVITY OBJECTIVE:
At the end of this experiment, the student should be able to demonstrate error control coding
using Vertical Redundancy Check (VRC), Longitudinal Redundancy Check (LRC), and Cyclic
Redundancy Check (CRC).

EQUIPMENT NEEDED:
PC with Scilab

PROBLEM SET:
1. Determine the transmitted bit stream for the message ←Dgc5 if 7-bit ASCII is used for
encoding with odd-parity VRC.

Transmitted bit stream:


 00100011 11100110 11000111 10101101

2. Determine the transmitted bit stream for the message ←Dgc5 if 7-bit ASCII is used for
encoding with odd-parity VRC and even-parity LRC.

Transmitted bit stream:


 00100011 11100110 11000111 10101101 10101110

3. Determine the transmitted bit stream for the message ←X3 if 7-bit ASCII is used for
encoding with CRC in which the generator polynomial is G(x)=x 4+x3+x+1.

Transmitted bit stream:


 000110111001100100

4. Determine the transmitted bit stream for the message ←X3 if 7-bit ASCII is used for
encoding with CRC in which the generator polynomial is G(x)=x 5+x4+x2+1.

Transmitted bit stream:


 0001101110011011010

ELECTRONICS ENGINEERING DEPARTMENT ECE 511FL: DIGITAL COMMUNICATIONS LABORATORY


Saint Louis University
SCHOOL OF ENGINEERING AND ARCHITECTURE

LABORATORY MANUAL

II. Laboratory Work


1. Familiarization with SCILAB functions to be used for Character Coding and Error- Control
Coding.
(a) Open the SCILAB file CharacterCoding_Functions.sce and familiarize with the
SCILAB functions declared in the file. Understand their operation and the syntax
for calling them.
(b) Open the SCILAB file ErrorControl_Functions.sce and familiarize with the
SCILAB functions declared in the file. Understand their operation and the syntax
for calling them.
2. Simulation of Vertical Redundancy Check
Load the character coding functions and error-control functions.
(a) Use the appropriate SCILAB function to encode the message ←Dgc5
ASCII bit stream:
← _____________________________________________________________________

(b) Use the appropriate SCILAB function to generate the transmitted bit stream with
VRC bits.

Transmitted bit stream:


← _____________________________________________________________________
(c) Assuming the transmitted bit stream is received, use the appropriate SCILAB function to
extract the ASCII bit stream from the received bit stream and decode the ASCII message.

Received ASCII bit stream:


← _____________________________________________________________________
Received ASCII message:
← _____________________________________________________________________

Does the function for extracting the ASCII codes detect the presence of error in the
received bit stream? ___

(d) Introduce errors in the received bit stream (by changing some of the bits) and use the
function for extracting the received ASCII codes. Do this 50 times.

ELECTRONICS ENGINEERING DEPARTMENT ECE 511FL: DIGITAL COMMUNICATIONS LABORATORY


Saint Louis University
SCHOOL OF ENGINEERING AND ARCHITECTURE

LABORATORY MANUAL

Does the function for extracting the ASCII codes always detect the presence of error in
the received bit stream? ___
If no, how many times did the function not able to detect the presence of errors? ___

3. Simulation of Vertical Redundancy Check with Longitudinal Redundancy Check


Load the character coding functions and error-control functions.
(a) Use the appropriate SCILAB functions to encode the message ←Dgc5 using ASCII code
and then generate the transmitted bit stream with VRC and LRC bits.

Transmitted bit stream:


← _____________________________________________________________________
(b) Assuming the transmitted bit stream is received, use the appropriate SCILAB function to
extract the ASCII bit stream from the received bit stream and decode the ASCII message.

Received ASCII bit stream:


← _____________________________________________________________________
Received ASCII message:
← _____________________________________________________________________

Does the function for extracting the ASCII codes detect the presence of error in the
received bit stream? ___

(c) Introduce errors in the received bit stream (by changing some of the bits) and use the
function for extracting the received ASCII codes. Do these 50 times.

Does the function for extracting the ASCII codes always detect the presence of error in
the received bit stream? ___
If no, how many times did the function not able to detect the presence of errors? ___

4. Simulation of Cyclic Redundancy Check


Load the character coding functions and error-control functions.

ELECTRONICS ENGINEERING DEPARTMENT ECE 511FL: DIGITAL COMMUNICATIONS LABORATORY


Saint Louis University
SCHOOL OF ENGINEERING AND ARCHITECTURE

LABORATORY MANUAL

(a) Use the appropriate SCILAB functions to encode the message ←X3 using ASCII code
and then generate the transmitted bit stream with CRC bits with the generator polynomial
G(x)= x5+x4+x2+1.

Transmitted bit stream:


← _____________________________________________________________________
(b) Assuming the transmitted bit stream is received, use the appropriate SCILAB function to
extract the ASCII bit stream from the received bit stream and decode the ASCII message.

Received ASCII bit stream:


← _____________________________________________________________________
Received ASCII message:
← _____________________________________________________________________

Does the function for extracting the ASCII codes detect the presence of error in the
received bit stream? ___

(c) Introduce errors in the received bit stream (by changing some of the bits) and use the
function for extracting the received ASCII codes. Do these 50 times.

Does the function for extracting the ASCII codes always detect the presence of error in
the received bit stream? ___
If no, how many times did the function not able to detect the presence of errors? ___

OBSERVATIONS:
_________________________________________________________________________
_________________________________________________________________________

CONCLUSIONS:
__________________________________________________________________________
__________________________________________________________________________

ELECTRONICS ENGINEERING DEPARTMENT ECE 511FL: DIGITAL COMMUNICATIONS LABORATORY

You might also like