This project is a Python-based COM port data logger with a GUI for selecting COM port settings. The application can read data from a specified COM port and save the data to a text file. The application supports options for displaying data as either hexadecimal or string format.
- Automatically search and list available COM ports.
- Allow selection of COM port settings (baud rate, data bits, parity, stop bits).
- Display incoming data in hexadecimal or string format.
- Save received data to a text file.
- Gracefully handle Ctrl-C to stop logging and save the file.
- Python 3.x
pyserial
packagetkinter
package (comes with standard Python installation)
To install the required packages on Linux, run:
$ sudo apt-get update
$ sudo apt-get install python3-tk
$ pip install pyserial
To install the required packages on macOS, run:
$ brew install python-tk
$ pip install pyserial
To install the required packages on Windows, you need to download and install Python from the official website if it is not already installed. Use the following link:
Down load Python 3.12.3
Install Guide
After installing Python, install the required packages:
pip install pyserial
The Makefile provided includes commands to help with setting up the environment, installing dependencies, running the script, and packaging it as an executable.
To install the required Python packages and tkinter, run:
$ make install
To check and install Python if it is not already installed, run:
$ make env
To run the application, use:
$ make run
To package the application into an executable, use:
$ make package
This will create an executable in the dist/ directory.