仪表技术与传感器2024,Issue(6) :115-120.

多通道串行通信数据存储算法研究与应用

Study and Application of Data Storage Algorithm for Multi-channel Serial Communication

陈冬方 王恺
仪表技术与传感器2024,Issue(6) :115-120.

多通道串行通信数据存储算法研究与应用

Study and Application of Data Storage Algorithm for Multi-channel Serial Communication

陈冬方 1王恺2
扫码查看

作者信息

  • 1. 北京天玛智控科技股份有限公司;北京信息科技大学自动化学院
  • 2. 北京天玛智控科技股份有限公司
  • 折叠

摘要

针对多通道串行通信数据中数据丢失和通信波特率自识别的问题,研究了一种多数据流多缓冲乒乓算法存储串行通信数据,解决了帧间隔时间不确定、长度不定长的多通道串行通信数据接收和存储难题.利用微处理器的DMA和串口中断技术,设计了一款多串行通信数据记录器.实验测试表明:应用多串口存储算法的数据记录器能够有效解决串行数据丢失与波特率自识别问题,数据记录器可应用于大容量数据存储.

Abstract

Aiming at the problems of data loss and baud rate identification in multi-channel serial communication data,a multi-stream and multi-buffered Ping-Pong algorithm was proposed to store serial communication data,which solved the problem of receiving and storing multi-channel serial communication data with uncertain frame interval time and variable length.A multi-channel serial communication data storage algorithm was studied,in order to solve the problems of data loss and difficult baud-rate identification for serial communication data.Using DMA(direct memory access)and serial communication interrupting technology of microprocessors,a multi-serial communication data recorder was designed.Tests show that using data recorders with multi-serial storage algorithm can effectively solve the issues of serial data loss and self-identification baud-rate,and the data recorder is suit-able for the application of large capacity.

关键词

串行通信数据存储/乒乓算法/自适应波特率/数据记录器

Key words

serial communication data storage/Ping-Pong algorithm/adaptive baud-rate/data recorder

引用本文复制引用

基金项目

国家重点研发计划项目(2020YFB1708200)

出版年

2024
仪表技术与传感器
沈阳仪表科学研究院

仪表技术与传感器

CSTPCDCSCD北大核心
影响因子:0.585
ISSN:1002-1841
参考文献量10
段落导航相关论文