PC机与单片机串口通信模型的设计与实现  被引量:10

The Design and Implementation of a Serial Port Communication Modal for Monitoring SCM with PCs

在线阅读下载全文

作  者:王文中[1] 郭楠[1] 葛庆平[1] 

机构地区:[1]首都师范大学信息工程学院,北京100037

出  处:《首都师范大学学报(自然科学版)》2004年第S1期1-3,共3页Journal of Capital Normal University:Natural Science Edition

摘  要:运用面向对象方法和多线程技术 ,设计了一个在Windows平台上通过PC机串口与单片机通信、实现对单片机进行监控的通信模型 .该模型把通信过程从业务处理中分离出来 ,形成一个单独的通信层 ,做很小的修改就能够很方便的移植到不同的应用系统中 ,具有很好的扩展性 .同时 ,模型中利用多线程技术设计了一个串口监视的线程 ,能实时的监视串口状态和数据 ,因此具有很好的实时性 .该模型已经成功地应用在“加油站管理系统”等实际应用系统中 .A communication model for monitoring and controlling SCM via serial port is discussed in the paper.The model is developed with OOP and multithread technology.The modal separate communication process form the transaction logic and is convenient to be reused in different applications.This feature makes the modal well extensible.A monitoring thread is include in this modal,it provides Real-Time monitoring on the serial port.This modal is successfully applied in Gas Station Management System.

关 键 词:串行通信 多线程 面向对象编程 

分 类 号:TP368[自动化与计算机技术—计算机系统结构]

 

参考文献:

正在载入数据...

 

二级参考文献:

正在载入数据...

 

耦合文献:

正在载入数据...

 

引证文献:

正在载入数据...

 

二级引证文献:

正在载入数据...

 

同被引文献:

正在载入数据...

 

相关期刊文献:

正在载入数据...

相关的主题
相关的作者对象
相关的机构对象