【创龙TL570x-EVM】测评08 - QT网络通讯-TCP-UDP
<p align="justify" style="text-align:justify"><span style="font-size:10.5pt"><span style="text-justify:inter-ideograph"><span style="font-family:Calibri"><span style="font-size:18.0000pt"><span style="font-family:黑体"><font face="黑体">【创龙</font><font face="黑体">TL570x-EVM】测评0</font></span></span><span style="font-size:18.0000pt"><span style="font-family:黑体"><font face="黑体">8</font></span></span><span style="font-size:18.0000pt"><span style="font-family:黑体"> <font face="黑体">- </font></span></span><span style="font-size:18.0000pt"><span style="font-family:黑体"><font face="黑体">QT网络通讯-TCP-UDP</font></span></span></span></span></span></p><p style="text-align:justify"><span style="font-size:10.5pt"><span style="text-justify:inter-ideograph"><span style="font-family:Calibri"><span style="font-size:18.0000pt"><span style="font-family:黑体"><font face="黑体">一、QT软件来源</font></span></span></span></span></span></p>
<p align="justify" style="margin-left:12px; text-indent:20.9000pt; text-align:justify"><span style="font-size:10.5pt"><span style="text-justify:inter-ideograph"><span style="font-family:Calibri"><span style="font-size:18.0000pt"><span style="font-family:黑体"><font face="黑体">此功能验证和使用的软件代码来源于《</font><font face="黑体">QT5.9C++开发指南》书籍,附赠软件代码。 此书籍写的挺好,QT内的功能模组都有讲解,如果不会QT的可以看看。</font></span></span></span></span></span></p>
<p style="text-align:justify"><span style="font-size:10.5pt"><span style="text-justify:inter-ideograph"><span style="font-family:Calibri"><span style="font-size:18.0000pt"><span style="font-family:黑体"><font face="黑体">二、TCPServer </font></span></span></span></span></span></p>
<p align="justify" style="margin-left:12px; text-align:justify"><span style="font-size:10.5pt"><span style="text-justify:inter-ideograph"><span style="font-family:Calibri"><span style="font-size:18.0000pt"><span style="font-family:黑体"><font face="黑体">在之前的总结,有提到过</font><font face="黑体">QT软件安装,QT启动命令的步骤。</font></span></span></span></span></span></p>
<p align="justify" style="margin-left:12px; text-align:justify"> </p>
<p align="justify" style="margin-left:12px; text-align:justify"><span style="font-size:10.5pt"><span style="text-justify:inter-ideograph"><span style="font-family:Calibri"><span style="font-size:18.0000pt"><span style="font-family:黑体"><font face="黑体">2.1 QT人机界面</font></span></span></span></span></span></p>
<p align="justify" style="text-align:justify"><span style="font-size:10.5pt"><span style="text-justify:inter-ideograph"><span style="font-family:Calibri"><span style="font-size:18.0000pt"><span style="font-family:黑体"><font face="黑体">TCPServer在应用层软件的开发当中比较简单,需要以下几个框就可以实现TCP协议的内容收发。具体此工程软件代码,在最下面有分享。</font></span></span></span></span></span></p>
<p align="justify" style="text-align:justify"> </p>
<p align="justify" style="text-align:justify"><span style="font-size:10.5pt"><span style="text-justify:inter-ideograph"><span style="font-family:Calibri"><span style="font-size:18.0000pt"><span style="font-family:黑体"><font face="黑体">2.2 部分软件代码</font></span></span></span></span></span></p>
<p align="justify" style="text-align:justify"><span style="font-size:10.5pt"><span style="text-justify:inter-ideograph"><span style="font-family:Calibri"><span style="font-size:18.0000pt"><span style="font-family:黑体"><font face="黑体">经过</font><font face="黑体">QT软件编译,如红框蓝色内容所示,即代表编译成功。编译完成后将编译后的工程复制到评估板当中。</font></span></span></span></span></span></p>
<p align="justify" style="text-align:justify"> </p>
<p align="justify" style="text-align:justify"><span style="font-size:10.5pt"><span style="text-justify:inter-ideograph"><span style="font-family:Calibri"><span style="font-size:18.0000pt"><span style="font-family:黑体"><font face="黑体">2.3 软件运行</font></span></span></span></span></span></p>
<p align="justify" style="text-indent:21.0000pt; text-align:justify"><span style="font-size:10.5pt"><span style="text-justify:inter-ideograph"><span style="font-family:Calibri"><span style="font-size:18.0000pt"><span style="font-family:黑体"><font face="黑体">使用</font><font face="黑体">SecureCRT工具控制评估板或者使用OpenSSH 登录到评估板,两种方法效果相同。</font></span></span></span></span></span></p>
<p align="justify" style="text-indent:21.0000pt; text-align:justify"><span style="font-size:10.5pt"><span style="text-justify:inter-ideograph"><span style="font-family:Calibri"><span style="font-size:18.0000pt"><span style="font-family:黑体"><font face="黑体">使用命令行找到文件路径,然后运行软件如图所示。</font></span></span></span></span></span></p>
<p align="justify" style="text-indent:21.0000pt; text-align:justify"> </p>
<p align="justify" style="text-align:justify"> </p>
<p align="justify" style="text-align:justify"><span style="font-size:10.5pt"><span style="text-justify:inter-ideograph"><span style="font-family:Calibri"><span style="font-size:18.0000pt"><span style="font-family:黑体"><font face="黑体">2.4实测</font></span></span></span></span></span></p>
<p align="justify" style="text-align:justify"><span style="font-size:10.5pt"><span style="text-justify:inter-ideograph"><span style="font-family:Calibri"><span style="font-size:18.0000pt"><span style="font-family:黑体"><font face="黑体">启动</font><font face="黑体">TCPServer工程后,就可使用网口调试工具进行测试。(目前字库有问题,评估板运行软件时汉字显示不出来)</font></span></span></span></span></span></p>
<p align="justify" style="text-align:justify"> </p>
<p align="justify" style="text-align:justify"> </p>
<p style="text-align:justify"><span style="font-size:10.5pt"><span style="text-justify:inter-ideograph"><span style="font-family:Calibri"><span style="font-size:18.0000pt"><span style="font-family:黑体"><font face="黑体">三、UDP测试</font></span></span></span></span></span></p>
<p align="justify" style="margin-left:12px; text-align:justify"><span style="font-size:10.5pt"><span style="text-justify:inter-ideograph"><span style="font-family:Calibri"><span style="font-size:18.0000pt"><span style="font-family:黑体"><font face="黑体">3.1 人机界面效果</font></span></span></span></span></span></p>
<p align="justify" style="margin-left:12px; text-align:justify"> </p>
<p align="justify" style="margin-left:12px; text-align:justify"> </p>
<p align="justify" style="margin-left:12px; text-align:justify"><span style="font-size:10.5pt"><span style="text-justify:inter-ideograph"><span style="font-family:Calibri"><span style="font-size:18.0000pt"><span style="font-family:黑体"><font face="黑体">3.2 运行软件</font></span></span></span></span></span></p>
<p align="justify" style="margin-left:12px; text-align:justify"> </p>
<p align="justify" style="margin-left:12px; text-align:justify"><span style="font-size:10.5pt"><span style="text-justify:inter-ideograph"><span style="font-family:Calibri"><span style="font-size:18.0000pt"><span style="font-family:黑体"><font face="黑体">3.3 实测效果</font></span></span></span></span></span></p>
<p align="justify" style="margin-left:12px; text-align:justify"> </p>
<ul>
<li align="justify" style="text-align:justify"><span style="font-size:10.5pt"><span style="text-justify:inter-ideograph"><span style="font-family:Calibri"><span style="font-size:18.0000pt"><span style="font-family:黑体"><font face="黑体">工程代码</font></span></span></span></span></span></li>
</ul>
<p align="justify" style="margin-left:12px; text-align:justify"> </p>
<p align="justify" style="text-align:justify"></p>
支持pyside6吗?是否支持Pyqt,或者是pyside2之类的,我之前用python库,好象都说要自己编译源码,我一时半会又找不到相关的资料。
页:
[1]