Advertisement

利用QT5.9 serialport串口通信模块编写上位机程序串口调试助手

阅读量:

功能实现:
支持串口以字符串或十六进制格式进行数据收发,并具备定时发送功能。

在这里插入图片描述
在这里插入图片描述
复制代码
    #include "serialport.h"
    #include "ui_serialport.h"
    #include<QSerialPortInfo>
    #include<QDebug>
    #include<QButtonGroup>
    #include<QTextCodec>
    #include<QMessageBox>
    
    void SerialPort::serialport_init()
    {
    foreach(const QSerialPortInfo info,QSerialPortInfo::availablePorts())//可以不使用
    {
        ui->comb

全部评论 (0)

还没有任何评论哟~