摘要
可寻址管理系统由一台PC主机和多台解扰器从机组成。主机RXD/TXD端分别与从机TXD/RXD端连接,采用自定义协议通信。在VB6.0环境,PC与多台解扰器的串口通信控制是在用户应用程序中嵌入ActiveX控件MSComm,直接在VBToolBox中加入窗体Form;并通过设置解扰器串口、加解扰控制通信函数、串口接收字符并激活OnComm()事件,在消息处理函数中加入处理代码以读取ZSW和HIW的状态字参数来实现。
The addressable management system is composed of a PC and multiple KY-Decryption equipments. The RXD/TXD port of host-computer is respectively linked with the TXD/RXD ports of decryption equipments, and the communication protocol defined by user is used. In VB6.0, the serial port communication control of a PC with multiple Decryption Equipments was that the MSComm Active control was embedded to application of user. The VB form was added into in VB ToolBox, the serial port of communication and serial incept character was set, the function of en-/decryption control communication was written and the OnComm() event was activated, and the code in the OnComm() function to read the state character of ZSW and HIW was written to implement the multidrop communication control.
出处
《兵工自动化》
2003年第6期56-57,共2页
Ordnance Industry Automation
基金
MMDS/CATV可寻址加解扰收费管理系统(00C26225100413)