节点文献

基于UNIX System V流机制的串行口通信程序的设计与实现

The Design and Implementation of Serial Port Communication Program Based on Stream in Unix System

  • 推荐 CAJ下载
  • PDF下载
  • 不支持迅雷等下载工具,请取消加速工具后下载。

【作者】 温明华顾其威石式太

【Author】 Wes Minghua; Gu Qiwei (Department of Computer Science and Engineering, NUAA Naming, 210016)Shi Wutai (No 17 Institute of Ministry of Astronautics of China Beijing, 100000)

【机构】 南京航空航天大学计算机科学与工程系

【摘要】 流(STREAMS)机制,是UNIX系统中用户进程到设备(伪设备)之间的一条全双工数据通路,它为字符处理、网络服务和数据通信等驱动程序的设计提供模块化手段。本文概要介绍了流机制的组成及原理,着重讨论了用流机制实现UNIX设备驱动程序的方法,在SCOSystemVUNIX系统中设计并实现了基于流机制的带modem控制的串行口驱动程序,最后讨论了串行口通信的数据传输控制及串行口通信程序的应用。

【Abstract】 STREAM is a full duplex data path from user process to device or pseudo-device in UNIX system. It provides a modular mechanism for developing programs of character device driver, network serviCe and data communication. In this paper, we first present briefly the architecture and principle of the STREAM, then present in detail the method to implenent the UNIX device driver using STREAM mechanism. Based on this method, we implemented a serial port driver with modem control in SCO System V UNIX system. The driver employs hardware interruption to prevent character leaxape. Applications of the driver to develop Email Remote User Agent and point to point data transfer through serial port using telephone system is also described.

【关键词】 通信程序设计模块消息驱动程序
【Key words】 communicationprogrammingstreamsmodulemessasedriver
  • 【文献出处】 南京航空航天大学学报 ,TRANSACTIONS OF NANJING UNIVERSITY OF AERONAUTICS & ASTRONAUTICS , 编辑部邮箱 ,1995年06期
  • 【分类号】TP311.11
  • 【被引频次】2
  • 【下载频次】20
节点文献中: 

本文链接的文献网络图示:

本文的引文网络