摘要
提出一种设备无关的控制软件设计理念.用文本文件格式保存各种外设的通信协议格式以及端口地址定义,通过工作空间和命令转换器,为计算机控制程序提供统一的通信接口.使用标准XML映射的方法实现物理地址与逻辑地址的匹配.外设的通信协议格式变化或者端口改变,无需修改控制软件,只要修改相应的外设文本文件,进行命令转换和地址映射即可完成数据通信,实现设备无关性.
A device independent programming method is proposed. Communication protocol definitions and device port addresses are stored in control units as text files. A standard communication interface is established by means of the working space and the command interpreter. The physical and logical addresses for devices in communication are associated by means of XML mapping. Therefore,the changes of peripheral communication protocol and port address have no effect on application software. Moreover,the communication command conversion and data communication are implemented device independence.
出处
《东华大学学报(自然科学版)》
CAS
CSCD
北大核心
2010年第3期263-266,323,共5页
Journal of Donghua University(Natural Science)