Skip to content

Files

Latest commit

e3ad4ab · Mar 12, 2019

History

History
This branch is 205 commits behind PyQt5/PyQt:master.

QSerialPort

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
Dec 28, 2018
Dec 28, 2018
Dec 28, 2018
Dec 28, 2018
Mar 12, 2019
Dec 28, 2018

QSerialPort

1、串口调试小助手

运行 SerialDebugAssistant.py

QSerialPort写了个类似串口调试小助手的工具, 这个类的官方资料: http://doc.qt.io/qt-5/qserialport.html

  1. 通过QSerialPortInfo.availablePorts() 获取所有可用的串口
  2. QSerialPort.setPortName 设置串口名
  3. QSerialPort.setBaudRate 设置波特率
  4. QSerialPort.setParity 设置校验位
  5. QSerialPort.setDataBits 设置数据位
  6. QSerialPort.setStopBits 设置停止位
  7. QSerialPort.setFlowControl 设置流控制

SerialDebugAssistant