摘要
该文借鉴I/O完成端口模型(IOCP)的核心思想,建立了一个适用于协议性串口通讯的新模型。该模型提出了一个协议性串口通讯的最小单位——"通讯元",将"通讯元"提交到事件队列线程中自动处理,简化了处理过程并提高了运行效率。同时,该文基于该模型设计出了一个协议性串口通讯模块,以封装通讯底层的细节,从而提供方便的通讯接口。将该模块应用于工业造气炉监控组态软件设计中,实际运行表明:该模型具有简单的接口和稳定、高效的运行机制。
In this paper, the core idea of I/O Completion Port Model is borrowed to build a new model, which is suitable for the serial communication based on protocol. A minimum unit called 'communication unit' is put forward in this model. The 'com- munication unit' is submitted to an event-queue-thread and is dealt automatically. It will help to simplify the process and in- crease operational efficiency. Meanwhile, in this paper, a serial communication module based on the model is designed to offer a convenient communication interface. The module is applied in the snoopware of industrial gasifier. It's proved that this model has a simple interface and efficient operation mechanism.
作者
陈耿
CHEN Geng (College of Information Science & Technology, Xiamen University, Xiamen 361005, China)
出处
《电脑知识与技术》
2013年第2期689-692,706,共5页
Computer Knowledge and Technology
关键词
IOCP
串口通讯
通讯元
IOCP
serial communication
communication unit