lei-dataview

Dependencies

Packages

  • package 'python2.7'
  • package 'python-matplotlib'
  • package 'python-serial'
  • package 'python-mock'

Setting up ambient

Install Chef

# apt install chef

Install packages

# chef-apply dependencies.rb

It's ready to go!

Using

Setup Mock Input

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
Stoping Mock Ports

To close the ports, just use1:

./Mock/unlinking.sh 21 22

1: Care! Using it will kill all daemon socat runing.

Running application

With a port ready to be readen, just run the program with:

./main.py

Or

python main.py

Stoping application

The application do not have support to save stop yet. To stop it, you will have to send a signal to kill the process.