We used a script "port.sh" that can virtual emulate a connection through a serial port, you can execute that script by running:
sh port.sh
It's recomended to install socat to use this script.
Install socat Under:
- Debian / Ubuntu Linux:
sudo apt-get update && sudo apt-get install socat
- Fedora:
sudo dnf update && sudo dnf install socat
Open three terminals.
-
On the first run the script:
sh port.sh -
On the second run the
makecommand to compile the project and thensudo ./app 0for the sender. -
On the third run
sudo ./app 1for the receiver.
Ok.