首页 > 技术知识 > 正文

本文来源电子发烧友社区,作者:李先生, 帖子地址:https://bbs.elecfans.com/jishu_2308805_1_1.html

前言
比较常见且简单的通讯方式就是串口,本次通过Qt实现一个串口调试助手,在此基础上可以进行串口通讯的测试验证,以及应用的开发。
过程
git clonehttps://github.com/qinyunti/SerialPort.git
cd SerialPort/SerialPort/
.pro文件中添加
QT += widgets
main.cpp中
#include
改为
#include
mainwindow.cpp中toAscii改为toLatin1
qmake
make
导入生成的程序到windows
sudo cp SerialPort /mnt/hgfs/share
再通过串口rz导入到开发板
chmod +x SerialPort
运行
./SerialPort
【EASY EAI Nano开源套件试用体验】串口调试助手实现-iar串口调试助手
总结
布局没有适配竖屏,需要调整下。

猜你喜欢