Abstract:
In process industry, there are many communication protocols, but they have many differences in structure. In order to develop up-layer application, it needs to parse and process these protocols. This paper discusses the protocol in which parsing and processing program can be implemented when the protocol is described with the formalize-description, and the program based on formalize-description is independent of the protocol. This implementation can avoid coding parse and processing program for different protocols separately, and makes the program more flexible and adaptable.
Key words:
protocol analysis,
data-frame,
compiling technology
摘要: 在过程工业的控制中存在着大量的通信协议,这些协议的结构差别很大。要进行上层应用开发,必须对这些协议进行解析和处理。该文讨论了用形式化描述的方法对协议进行描述,实现了与协议无关的协议解析和处理,从而避免了针对不同通信协议均要编写相应的解析和处理程序,使协议的解析和处理具有更好的灵活性和普适性。
关键词:
协议分析,
数据帧,
编译技术
CLC Number:
DONG Li; ZHAO Heng-yong. Protocol Parsing Method Based on Compiling Technology[J]. Computer Engineering, 2007, 33(21): 66-68.
董 立;赵恒永. 基于编译技术的协议解析方法[J]. 计算机工程, 2007, 33(21): 66-68.