58 Star 94 Fork 57

jakey.chen / Serial Tool

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
克隆/下载
贡献代码
同步代码
取消
提示: 由于 Git 不支持空文件夾,创建文件夹后会生成空的 .keep 文件
Loading...
README
MIT

Serial Tool

master分支使用Python2.7

用python(2.7)、Tkinter、pyserial(3.3)模块开发的串口调试工具

串口工具和USB整合在一起地址:

python3版本分支地址:

安装使用

需要安装的模块:

在Windows下:

默认是有安装Tkinter的,因此只需要安装pyserial

可以通过pip来安装:

pip install pyserial

python setup.py install

pip install wheel

pip install pyserial-3.4-py2.py3-none-any.whl

在Ubuntu下:

默认是没有安装Tkinter的,需要先进行必要模块的安装

使用apt-get安装tk

sudo apt-get install python-tk

pyserial可以通过pip来安装:

sudo apt-get install python-pip

pip install pyserial

python setup.py install

pip install wheel

pip install pyserial-3.4-py2.py3-none-any.whl

执行python main.py即可开始使用(ubuntu下需要使用root权限 sudo python main.py)

python main.py

sudo python main.py

确认通讯是否正常

将连接串口RX TX短接,如果是常见的USB转串口线,将2和3短接(上排5下排4,上排第2和3)。这样串口会原样返回发送的命令。

使用技巧

在左侧列表框,可以显示出当前连接的串口设备。

可以通过双击打开设备(或者点击下面的Open打开设备)

状态栏会有相应的提示信息

点击Clear可以清除计数和接收的数据

New Line默认添加 "\r\n",判断结束标记也为 "\r\n",默认阈值为 1,请按自己需求更改

其他待定,暂使用良好,暂未发现Bug和需要改进的地方,若需新功能请自行按需添加修改。

MIT License Copyright (c) 2021 jakey.chen Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.

简介

串口调试工具 python版本2.7和3.6 展开 收起
Python
MIT
取消

发行版

暂无发行版

贡献者

全部

近期动态

加载更多
不能加载更多了
Python
1
https://gitee.com/jakey.chen/Serial-Tool.git
git@gitee.com:jakey.chen/Serial-Tool.git
jakey.chen
Serial-Tool
Serial Tool
master

搜索帮助