作者投稿和查稿 主编审稿 专家审稿 编委审稿 远程编辑

计算机工程 ›› 2011, Vol. 37 ›› Issue (5): 282-284,287. doi: 10.3969/j.issn.1000-3428.2011.05.096

• 开发研究与设计技术 • 上一篇    下一篇

基于特征关键字的多协议数据流转换方法

林 霞1,蔡声镇2,吴允平1,卢 宇1,关 健1,吴 燕1,陈锦凯1   

  1. (1. 福建师范大学物理与光电信息科技学院,福州 350007;2. 福建师范大学软件学院,福州 350108)
  • 出版日期:2011-03-05 发布日期:2012-10-31
  • 作者简介:林 霞(1987-),女,硕士研究生,主研方向:测控技术与智能系统;蔡声镇,教授;吴允平,副教授、博士;卢 宇, 副教授;关 键、吴 燕、陈锦凯,硕士研究生
  • 基金资助:
    福建省自然科学基金资助项目“激光在线检测六氟化硫的若干关键问题研究”(2010J01326);福建省科技厅基金资助重点项目“嵌入式航标遥测监控终端系统的研制”(2008H0022);福建省科技厅基金资助重点项目“高性能的变电站GIS及其环境安全监测系统的研制”(2009H0018);福建省教育厅基金资助项目“基于位置服务的行业多协议数据流处理系统”(JB09074)

Multi-protocol Data Stream Conversion Method Based on Characteristic Keyword

LIN Xia    1, CAI Sheng-zhen  2, WU Yun-ping  1, LU Yu  1, GUAN Jian  1, WU Yan  1, CHEN Jin-kai  1   

  1. (1. School of Physics and Opto Electronics Technology, Fujian Normal University, Fuzhou 350007, China; 2. Faculty of Software, Fujian Normal University, Fuzhou 350108, China)
  • Online:2011-03-05 Published:2012-10-31

摘要: 提出一种基于特征关键字的多协议数据流转换方法,分析基于特征关键字的数据帧格式描述方法,通过将通信协议数据帧格式的描述与数据流的解析转换代码相分离,实现与协议无关的数据流解析和转换。该方法用稳定的程序处理不稳定的数据流,避免不同通信协议之间的数据流转换均要编写专用解析转换程序的缺陷,具有较好的灵活性和普适性。

关键词: 特征关键字, 通信协议, 数据帧格式, 协议描述, 数据流转换

Abstract: This paper introduces a multi-protocol data stream conversion method based on characteristic keyword, in which the data-frame format is described by characteristic keywords, and the data stream parse and conversion program are independent of the communication protocol by separating the description of communication protocol data frame format from the parse and conversion program. This method uses the stable procedure to process the unstable data streams. It can avoid writing special parse and conversion program for different communication protocol, and make the program more flexible and more adaptable.

Key words: characteristic keyword, communication protocol, data-frame format, protocol description, data stream conversion

中图分类号: