More context on the project under /docs.
- bin/: Compiled binaries.
- src/: Source code for the implementation of the link-layer and application layer protocols. Students should edit these files to implement the project.
- include/: Header files of the link-layer and application layer protocols. These files must not be changed.
- cable/: Virtual cable program to help test the serial port. This file must not be changed.
- main.c: Main file. This file must not be changed.
- Makefile: Makefile to build the project and run the application.
- penguin.gif: Example file to be sent through the serial port.
Edit the source code in the src/ directory.
Compile the application and the virtual cable program using the provided Makefile.
You can either run the executable manually or use the Makefile target:
sudo ./bin/cable_appor
sudo make run_cable./bin/main /dev/ttyS11 rx penguin-received.gifor
make run_tx./bin/main /dev/ttyS10 tx penguin.gifor
make run_rxdiff -s penguin.gif penguin-received.gifor
make check_files- Run receiver and transmitter again.
- Quickly move to the cable program console and:
- Press
0to unplug the cable - Press
2to add noise - Press
1to return to normal mode
- Press
- Check if the received file matches the sent file, even with cable disconnections or noise.