Skip to content

WangHanChi/Serial-Tool

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Serial-Tool

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.

Features

  • 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.

Requirements

  • Python 3.x
  • pyserial package
  • tkinter package (comes with standard Python installation)

Installation

Linux

To install the required packages on Linux, run:

$ sudo apt-get update
$ sudo apt-get install python3-tk
$ pip install pyserial

macOS

To install the required packages on macOS, run:

$ brew install python-tk
$ pip install pyserial

Windows

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

Makefile Commands

The Makefile provided includes commands to help with setting up the environment, installing dependencies, running the script, and packaging it as an executable.

Install Dependencies

To install the required Python packages and tkinter, run:

$ make install

Setup Environment

To check and install Python if it is not already installed, run:

$ make env

Run the Application

To run the application, use:

$ make run

Package the Application

To package the application into an executable, use:

$ make package

This will create an executable in the dist/ directory.

About

Cross platform Serial/Com tool with python

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published