- package 'python2.7'
- package 'python-matplotlib'
- package 'python-serial'
- package 'python-mock'
Install Chef
# apt install chef
Install packages
# chef-apply dependencies.rb
It's ready to go!
First of all you need a data comming from a serial port to use the aplication. If you don't have a device to help you on it, you can use socat to mock up a serial port to you.
To create two virtual ports, run the script ./Mock/run.sh
./Mock/run.sh 21 22
This will create the ports /dev/ttyUSB21 and /dev/ttyUSB22 who are linked to each other by echo. Now if you you want to send some message to port /dev/ttyUSB21 you just need to do:
echo "Hello World" > /dev/ttyUSB22
To close the ports, just use1:
./Mock/unlinking.sh 21 22
1: Care! Using it will kill all daemon socat runing.
With a port ready to be readen, just run the program with:
./main.py
Or
python main.py
The application do not have support to save stop yet. To stop it, you will have to send a signal to kill the process.