首页 | 本学科首页   官方微博 | 高级检索  
     

面向仪用总线的实时Sunday数据帧提取算法设计
引用本文:范正吉,党立志,遆玉玉,洪应平,张会新,储成群.面向仪用总线的实时Sunday数据帧提取算法设计[J].电子测量技术,2023,46(2):111-120.
作者姓名:范正吉  党立志  遆玉玉  洪应平  张会新  储成群
作者单位:中北大学仪器与电子学院
基金项目:山西省高等学校科技创新项目(2019L0539)资助;
摘    要:在各类仪用总线网络通信过程中,系统往往需要在应用层上对接收的高速数据流进行实时处理。而如何对连续的数据流进行数据帧数据提取是讨论的主要问题。对此,分析了常见仪用总线的协议处理方法,并设计了一套帧提取算法,算法包含帧提取状态机、改进的Sunday帧头匹配算法以及帧内子域查找算法。然后本文采用直接发送、经由TCP网络发送两种环境对算法进行测试,实验证明本算法性能优于Netty框架下的帧长度域解码。最后,本文为了实际测试和应用算法,使用该算法对64通道,100 kS/s模拟量采集卡进行数据帧的实时提取和存储,并对采集的模拟量进行波形显示。本算法可用于仪用总线应用层的数据分隔、帧头识别、帧数据提取工作。

关 键 词:Sunday算法  数据帧提取  模式匹配  Netty框架

Design of real-time Sunday data frame extraction algorithm for instrument bus
Fan Zhengji,Dang Lizhi,Ti Yuyu,Hong Yingping,Zhang Huixin,Chu Chengqun.Design of real-time Sunday data frame extraction algorithm for instrument bus[J].Electronic Measurement Technology,2023,46(2):111-120.
Authors:Fan Zhengji  Dang Lizhi  Ti Yuyu  Hong Yingping  Zhang Huixin  Chu Chengqun
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.
Keywords:
点击此处可从《电子测量技术》浏览原始摘要信息
点击此处可从《电子测量技术》下载全文
设为首页 | 免责声明 | 关于勤云 | 加入收藏

Copyright©北京勤云科技发展有限公司  京ICP备09084417号