首页 | 本学科首页   官方微博 | 高级检索  
     检索      

基于UNIX System V流机制的串行口通信程序的设计与实现
引用本文:温明华,石武太.基于UNIX System V流机制的串行口通信程序的设计与实现[J].南京航空航天大学学报,1995,27(6):810-816.
作者姓名:温明华  石武太
作者单位:南京航空航天大学计算机科学与工程系
摘    要:流(STREAMS)机制,是UNIX系统中用户进程到设备(伪设备)之间的一条全双工数据通路,它为字符处理、网络服务和数据通信等驱动程序的设计提供模块化手段。本文概要介绍了流机制的组成及原理,着重讨论了用流机制实现UNIX设备驱动程序的方法,在SCOSystemVUNIX系统中设计并实现了基于流机制的带modem控制的串行口驱动程序,最后讨论了串行口通信的数据传输控制及串行口通信程序的应用。

关 键 词:通信  程序设计  模块  UNIX  流机制  数字通信

The Design and Implementation of Serial Port Communication Program Based on Stream in Unix System
Wes Minghua, Gu Qiwei.The Design and Implementation of Serial Port Communication Program Based on Stream in Unix System[J].Journal of Nanjing University of Aeronautics & Astronautics,1995,27(6):810-816.
Authors:Wes Minghua  Gu Qiwei
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.
Keywords:communication  programming  streams  module  messase  driver  
本文献已被 CNKI 维普 等数据库收录!
设为首页 | 免责声明 | 关于勤云 | 加入收藏

Copyright©北京勤云科技发展有限公司  京ICP备09084417号