[关键词]
[摘要]
在实际应用系统中,有些设备没有封装TCP/IP协议,从而它们与计算机通讯只能采用RS-232串口进行.在讨论Mscomrm32.ocx控件的主要属性和主要事件基础上,通过一个实际通讯工程--市话停开系统(PSTN)为例子,阐明了在Delphi环境下如何利用微软的Mscomm32.ocx控件来设计进行通信程序的具体方法,同时还给出了实现此串口通信功能的整体程序设计框架和关键程序代码,最后还讨论了在设计通信控制程序中应考虑的问题.
[Key word]
[Abstract]
RS-232 serial communication has to be adopted in the communication between computers and some equipments without TCP/IP enclosed. First, the main properties and events of MSCOMM32.ocx component are discussed in this paper. And then we expatiate on the method of using the MSCOMM32.ocx component to obtain serial communication under Delphi environment via a real application example of Telecommunication industry. In the mean time the designing framework implementing the serial communication is presented. At last we discuss the problems that should be considered in the communication control program.
[中图分类号]
TP273
[基金项目]