redes_trab1's Introduction
INSTRUCTIONS FOR SERIAL PORT PROTOCOL ===================================== This folder contains the base code of the serial port protocol. Project Structure ----------------- - 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. Instructions to Run the Project ------------------------------- 1. Edit the source code in the src/ directory. 2. Compile the application and the virtual cable program using the provided Makefile. 3. Run the virtual cable program (either by running the executable manually or using the Makefile target): $ sudo ./bin/cable_app $ sudo make run_cable 4. Test the protocol without cable disconnections and noise 4.1 Run the receiver (either by running the executable manually or using the Makefile target): $ ./bin/main /dev/ttyS11 rx penguin-received.gif $ make run_rx 4.2 Run the transmitter (either by running the executable manually or using the Makefile target): $ ./bin/main /dev/ttyS10 tx penguin.gif $ make run_tx 4.3 Check if the file received matches the file sent, using the diff Linux command or using the Makefile target: $ diff -s penguin.gif penguin-received.gif $ make check_files 5. Test the protocol with cable disconnections and noise 5.1. Run receiver and transmitter again 5.2. Quickly move to the cable program console and press 0 for unplugging the cable, 2 to add noise, and 1 to normal 5.3. Check if the file received matches the file sent, even with cable disconnections or with noise
redes_trab1's People
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. ๐๐๐
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google โค๏ธ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.