摘要
提出一种用上位机与电子式电能表或数据采集终端设备进行通信,以及下位机与下位机之间进行通信时,对数据帧进行生成与解析的通用算法。算法通过使用面向对象的方法,以程序与数据分离为原则,将具体协议数据以外部数据源的形式提供,程序仅实现算法。该算法具有通用性强、适用范围广的优点,封装后的对象可用于上位机软件相关通信程序的编写,算法及设计思路也可用于下位机通信相关程序或硬件传输协议的设计。并给出了算法设计过程中的建模过程、关键算法原理流程。
A data frame of creating and analyzing arithmetic in communication between electronic meter and concentrator or between application software and firmware is put forward. Using the face to face method, the arithmetic separates the data and program and supports the protocol detail data by extra data source. So the program can only focus on the arithmetic detail not on the protocol data. This arithmetic can be widely applied and is all-purpose. Encapsulated object can be used in application software and the design theory can be used in fh'mware communication program. It also give the process of module creating and key arithmetic flow in this research.
出处
《湖南工业大学学报》
2008年第1期88-91,共4页
Journal of Hunan University of Technology