This Python project provides a graphical user interface for serial communication. It includes features for reading and displaying serial data, running test sequences, and more.
sudo apt update
sudo apt install python3 python3-venv
To emulate serial communication between two ports, install any virtual modem emulator and establish serial communication with 'full handshake' between both selected COM ports. Virtual Null Modem (Trial version) is recommended. In this code, Serial Read is set as 'COM2' and Serial Write is set as 'COM1'. This can be set according to your needs in the code.
git clone https://github.com/angelinath21/STIM300
cd STIM300
python3 -m venv venv
source venv/bin/activate
chmod +x launch.sh
./launch.sh run
The Serial Communication GUI consists of a graphical interface for interacting with serial devices. It includes features such as reading and displaying serial data, running test sequences, and more.
Enter the desired sample frequency (in Hz) in the provided input field. Click the "Enter" button to set the sample frequency.
Click "Test Auto," "Test Normal," or "Test Serial" to add corresponding test sequences to the display. If a wrong test is added, clear test sequence and re-input test sequence.
Click the "Run Test" button to start the serial communication based on the defined sample frequency and test sequences.
Serial data received will be displayed in the "Serial Read Display" section. Click "Start Serial" to initiate serial communication. This will also open an external terminal that sends
The "Status Box" provides information about the system's current status.