This program emulates errors occurred in data transmission at the random bit level and corrects the errors that occurred. It uses the Hamming code to encode and decode the data, ensuring reliable data transfer. Hamming code is a set of error-correction codes designed to detect and correct single-bit errors during data transmission.
-
Save the data to be encoded in the
send.txtfile. -
Open the terminal or command prompt.
-
Navigate to the project directory.
-
Run the program using the following command:
java ECED.java
-
After the application starts running, you can enter commands in the console to perform different operations:
-
To encode the data, type
encodeand press Enter. The Hamming encoded file will be created asencoded.txt. -
To emulate bit-level errors, type
sendand press Enter. It will use the previously createdencoded.txtfile, emulate errors, and save it asreceived.txt. -
To decode the corrupted file, type
decodeand press Enter. It will create a file nameddecoded.txtby using the previously createdreceived.txtfile.
-
- Java 17
The source code for this project is available on GitHub at Error-Correcting-Encoder-Decoder-Java.
This project was developed by PANKAJ AMBEKAR.
- Email: ambekarpankaj@outlook.com