期刊文献+

状态机技术在数据通讯协议栈中的编程应用 被引量:11

FSM Methodology and Its Application in Communication Protocol Stack
下载PDF
导出
摘要 在数据通讯软件中,上位机(PC机)数据通讯协议栈的编写工作通常由Switch/Case分支语句来完成。分支语句是一种简单初级的逻辑表达式,因此不易做到模块化,扩充性能和可移植性能都不理想,因而引入了状态机技术。通过将通讯协议栈抽象为有序的不同状态和行为,再嵌入到C++类中,可模拟状态机实现此通讯处理,在Visual C++6.0平台上运行可靠,稳定性好,并且状态行为具有可继承性。 Switch/Case syntax is the traditional method to program the communication protocol stack in the software of data communication. However,Switch/Case syntax as a simple logical expression neither have expansibility and transplantable performance nor can be modularization. A new method based on FSM rrfethodology is introduced in this paper. Dividing communication protocol stack into a lot of states and actions,which is embedded into the C++ class and can be inherited by other classes,making the software work reliably and stability on visual c++ platform.
作者 张腊明 佟宇
出处 《现代电子技术》 2008年第3期146-148,共3页 Modern Electronics Technique
关键词 FSM 数据采集 协议栈 分支语句 FSM data acquisition protocol stack syntax
  • 相关文献

参考文献2

共引文献12

同被引文献51

引证文献11

二级引证文献18

相关作者

内容加载中请稍等...

相关机构

内容加载中请稍等...

相关主题

内容加载中请稍等...

浏览历史

内容加载中请稍等...
;
使用帮助 返回顶部