Skip to content

serial control tool by Python based on tkinter and pyserial

Notifications You must be signed in to change notification settings

Jake10102016/tkinter-pyserial-tools

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

13 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

tkinter-pyserial-tool

serial control tool by Python based on tkinter and pyserial Watch the video

Project description

This is a Python application,uesd for controlling serial comports

Advantages

It's like secureCRT,but more friendly for python,When connect serial equipments,run tk_serial.py file,choose correct comport and standard command file like the file command.xlsx,it can write the commandline in command.xlsx into the serial comport automatcally. It's useful for automatic test.

overview picture

tkinter-pyserial-tool overview

dependences

python 3.7

tkinter(in windows system can import directly but install it first in linux)

pyserial(click the link below and install first both in windows and linux system) pyserial-3.4-py2.py3-none-any.whl

instructions

1.connect the serial equipment with PC

2.run tk_serial.py (or use pyinstaller to make one exe file)

3.choose correct comport and baudrate

4.click the "连接"(connect)button,if succeed,then com_log_text insert"串口成功打开"

5.click the"选择文件"(choose file)button to choose a command excel to conduct,the conmands will show in the middle list of the tk

6.notice that,the command in the command excel need to be in standard format,and the conmand need to be included in the code_dic.py

7.if you have new command to write in ,you need to add the code context in the code_dic.py,if not,there must be wrong

8.click the "执行"(conduct the conmand)button ,and power your equipment

9.then it will write the command into the serial comports,and the conduct result(ok or failed) will show in the middle list

10.the result will saved in an auroresult.txt file

11.just power off one equipment and power another equipment on ,click the "执行"button ,it will run in loop

on running picture

on running picture

About

serial control tool by Python based on tkinter and pyserial

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Python 100.0%