[1]李招峰 刘建设 金华标.基于QT/E的串口通信故障及其解决方案[J].计算机技术与发展,2012,(06):254-257.
 LI Zhao-feng,LIU Jian-she,JIN Hua-biao.Serial Communication Failures and Their Solutions Based on QT/E[J].,2012,(06):254-257.
点击复制

基于QT/E的串口通信故障及其解决方案()
分享到:

《计算机技术与发展》[ISSN:1006-6977/CN:61-1281/TN]

卷:
期数:
2012年06期
页码:
254-257
栏目:
应用开发研究
出版日期:
1900-01-01

文章信息/Info

Title:
Serial Communication Failures and Their Solutions Based on QT/E
文章编号:
1673-629X(2012)06-0254-04
作者:
李招峰1 刘建设2 金华标1
[1]武汉理工大学能源与动力工程学院[2]中船重工712研究所
Author(s):
LI Zhao-feng LIU Jian-she JIN Hua-biao
[1]School of Energy and Power Engineering, WHUT[2]Chinese Heavy Industry 712 Institute
关键词:
嵌入式LinuxQT/EPC/104串口通信
Keywords:
embedded Linux QT/E PC/104 serial communication
分类号:
TP368.2
文献标志码:
A
摘要:
为实现基于嵌入式Linux系统的PC/104与上位机或其它设备之间的串口通信,文中以PC/104为硬件基础,利用Linux虚拟机,搭建了嵌入式Linux系统开发平台;分别使用串口终端设备文件和端口寄存器读写的方式实现了串口通信,解决了在基于QT/E的图形化多线程串口应用程序中,数据传输时易出现段错误的问题,并在QT/E图形化多线程程序中实现了诊断仪与监测中心安全、可靠的通信。得出结论,在QT/E的图形化多线程程序中操作串口时,应该避免使用终端文件方式操作串口,可选用文中串口寄存器读写的方法
Abstract:
In order to realize serial data communication between PC/104 and other devices, embedded Linux development platform was build up by using Linux virtual machine as software and PC/104 model as hardware. Serial data communication was achieved by the way of both serial terminal device file and segmentation fault, which led to system crash during QT/E graphical multi-thread program communication with the host computer,was solved. Secure and reliable QT/E graphical multi-thread serial communication application was designed based on the platform. At last, it came to the conclusion that, in order to achieve secure and reliable data transmission, when using serial data communication in QT/E graphical multi-thread program,it is better to use the way port register access other than serial terminal device file

相似文献/References:

[1]任强 彭瑞.嵌入式Linux下MiniGUI的编译、移植与实现[J].计算机技术与发展,2010,(03):13.
 REN Qiang,PENG Rui.Cross - Compiling and Implanting of MiniGUI Based on Embedded Linux[J].,2010,(06):13.
[2]邱鑫 林颖 王保保.基于XML的嵌入式系统日志解决方案[J].计算机技术与发展,2009,(05):52.
 QIU Xin,LIN Ying,WANG Bao-bao.An XML- Based Log Solution in Embedded System[J].,2009,(06):52.
[3]姜珊珊 袁保社.基于嵌入式Linux操作系统的Qtopia本地化[J].计算机技术与发展,2009,(05):59.
 JIANG Shan-shan,YUAN Bao-she.Localization of Qtopia Based on Embedded Linux Operating Systerm[J].,2009,(06):59.
[4]秦瑶 田逢春 李川 韩亮 王姗姗.基于电力载波视频监控系统的软件设计[J].计算机技术与发展,2009,(09):5.
 QIN Yao,TIAN Feng-chun,LI Chuan,et al.Software Design of Video Monitoring System on Power Line[J].,2009,(06):5.
[5]陈立定 杨俊辉 陈伟欣.使用Busybox制作Cramfs根文件系统[J].计算机技术与发展,2009,(04):146.
 CHEN Li-ding,YANG Jun-hui,CHEN Wei-xin.Use Busybox to Make Cramfs Root Filesystem[J].,2009,(06):146.
[6]王艳艳 郅晨 张俊业 房子河.嵌入式Linux的BootLoader在DM6446上的实现[J].计算机技术与发展,2008,(11):194.
 WANG Yan-yan,ZHI Chen,ZHANG Jun-ye,et al.Realization of BootLoader in Embedded Linux Operating System Based on DM6446[J].,2008,(06):194.
[7]潘成源 徐勇 李鑫.嵌入式Linux在车载导航系统中的应用[J].计算机技术与发展,2006,(05):223.
 PAN Cheng-yuan,XU Yong,LI Xin.Embedded Linux and Its Application in Vehicle Navigation System[J].,2006,(06):223.
[8]孟伟君 周利华.嵌入式Linux下基于CGI的文件上传下载的实现[J].计算机技术与发展,2006,(05):226.
 MENG Wei-jun,ZHOU Li-hua.Implementation of File Upload and Download Based on CGI Under Embedded Linux[J].,2006,(06):226.
[9]张方辉 王建群.Qt/Embedded在嵌入式Linux上的移植[J].计算机技术与发展,2006,(07):64.
 ZHANG Fang-hui,WANG Jian-qun.Transplantation of Qt/Embedded in Embedded Linux[J].,2006,(06):64.
[10]王鑫 陈晓竹 孔德峰.嵌入式镜片磨边机镜框采集处理系统[J].计算机技术与发展,2006,(08):192.
 WANG Xin,CHEN Xiao-zhu,KONG De-feng.Spectacles Frame Collecting and Disposing System of Embedded Lens Edger[J].,2006,(06):192.

备注/Memo

备注/Memo:
武汉理工大学自主创新研究基金(2011-IV-020)李招峰(1986-),男,江西人,硕士研究生,研究方向为柴油机监测诊断与电子控制
更新日期/Last Update: 1900-01-01