Skip to content

Latest commit

 

History

History
32 lines (31 loc) · 1.27 KB

File metadata and controls

32 lines (31 loc) · 1.27 KB

pyserial_plot

This project is implementation of Eli Bendersky’s pyserial live data monitor with python 3 for Linux.

Dependencies

  • pyserial
  • python 3 qwt (new version with pure python implementation)

Linux virtual serial port

  • install socat
    sudo apt install socat
        

    For this project socat used for estalishing two virtual serial port: writer and reader

  • start virtual ports
    socat -d -d pty,raw,echo=0 pty,raw,echo=0
        

    It will will start two virtual ports: in my case

    /dev/pts/2
    for writing serial(Hardcode into sender_sim.py)
    /dev/pts/4
    for reading serial(Enter from GUI)

Start project

After starting virtual serial ports

  • run from new terminal
    python3 sender_sim.py
        
  • strat from another terminal GUI applicatoin
    python3 plotting_data_monitor.py
        

Read more about serial communication.