面向仪用总线的实时Sunday数据帧提取算法设计
DOI:
CSTR:
作者:
作者单位:

中北大学仪器与电子学院 太原 030000

作者简介:

通讯作者:

中图分类号:

TH701

基金项目:

山西省高等学校科技创新项目(2019L0539)资助


Design of real-time Sunday data frame extraction algorithm for instrument bus
Author:
Affiliation:

College of Instrument and Electronics,North University of China,Taiyuan 030000, China

Fund Project:

  • 摘要
  • |
  • 图/表
  • |
  • 访问统计
  • |
  • 参考文献
  • |
  • 相似文献
  • |
  • 引证文献
  • |
  • 资源附件
  • |
  • 文章评论
    摘要:

    在各类仪用总线网络通信过程中,系统往往需要在应用层上对接收的高速数据流进行实时处理。而如何对连续的数据流进行数据帧数据提取是讨论的主要问题。对此,分析了常见仪用总线的协议处理方法,并设计了一套帧提取算法,算法包含帧提取状态机、改进的Sunday帧头匹配算法以及帧内子域查找算法。然后本文采用直接发送、经由TCP网络发送两种环境对算法进行测试,实验证明本算法性能优于Netty框架下的帧长度域解码。最后,本文为了实际测试和应用算法,使用该算法对64通道,100 kS/s模拟量采集卡进行数据帧的实时提取和存储,并对采集的模拟量进行波形显示。本算法可用于仪用总线应用层的数据分隔、帧头识别、帧数据提取工作。

    Abstract:

    In the communication process of various types of instrumentation bus networks, the system often needs to process the received high-speed data stream in real time on the application layer. And how to extract data frame data from continuous data stream is the main problem discussed. In this regard, analyzes the protocol processing methods of common instrument buses, and designs a set of frame extraction algorithms, including frame extraction state machine, improved Sunday frame header matching algorithm and intra-frame subdomain search algorithm. Then this paper tests the algorithm in two environments: direct sending and sending via TCP network. Experiments show that the performance of the algorithm is better than the frame length domain decoding under the Netty framework. Finally, in order to actually test and apply the algorithm, this paper uses the algorithm to extract and store the data frame in real time for the 64-channel, 100 kS/s analog acquisition card, and display the waveform of the acquired analog quantity. This algorithm can be used for data separation, frame header identification and frame data extraction at the application layer of the instrument bus.

    参考文献
    相似文献
    引证文献
引用本文

范正吉,党立志,遆玉玉,洪应平,张会新,储成群.面向仪用总线的实时Sunday数据帧提取算法设计[J].电子测量技术,2023,46(2):111-120

复制
分享
文章指标
  • 点击次数:
  • 下载次数:
  • HTML阅读次数:
  • 引用次数:
历史
  • 收稿日期:
  • 最后修改日期:
  • 录用日期:
  • 在线发布日期: 2024-03-11
  • 出版日期:
文章二维码