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

FSM Methodology and Its Application in Communication Protocol Stack

在线阅读下载全文

作  者:张腊明[1] 佟宇[1] 

机构地区:[1]大连理工大学机械工程学院,辽宁大连116024

出  处:《现代电子技术》2008年第3期146-148,共3页Modern Electronics Technique

摘  要:在数据通讯软件中,上位机(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.

关 键 词:FSM 数据采集 协议栈 分支语句 

分 类 号:TP311.52[自动化与计算机技术—计算机软件与理论]

 

参考文献:

正在载入数据...

 

二级参考文献:

正在载入数据...

 

耦合文献:

正在载入数据...

 

引证文献:

正在载入数据...

 

二级引证文献:

正在载入数据...

 

同被引文献:

正在载入数据...

 

相关期刊文献:

正在载入数据...

相关的主题
相关的作者对象
相关的机构对象