摘要
设计了一种基于状态机的电能信息采集终端通信协议数据接收处理方法。在分析电能信息采集终端通信协议的基础上,采用状态机原理,详细说明了状态划分过程,给出了C语言的实现代码。经实际使用验证,该设计稳定可靠,为电能采集终端的设计奠定了基础。
Introduce a new method of electrial energy data acquisition terminal communication protocol based on finite state machine. In the base on energy information colletion terminal communication protocol, using the principle of finite sate ma- chine, It Detailed the process of the state division, at last, It provided the code of C language. Through the actual use and Constant validation, this design is stable and reliable, it lay the foundation for the design of electric energy collection terminal.
出处
《电脑编程技巧与维护》
2012年第18期73-75,共3页
Computer Programming Skills & Maintenance
关键词
状态机
通信协议
电能信息采集终端
Finite State Machine
communication protocol
electrical energy data acquire terminal