期刊文献+

基于无锁FIFO队列的CAN总线数据采集系统

CAN bus data acquisition system based on lockless FIFO queue
下载PDF
导出
摘要 针对在CAN总线数据量大的应用场景下,CAN总线记录仪实车数据采集数据丢帧的问题及人工操作PC搭配CAN分析仪采集实车数据流程繁琐的问题,基于无锁FIFO队列算法设计了以STM32为核心控制器的CAN总线数据采集系统。系统分为软件和硬件两个部分:软件部分运用无锁FIFO队列算法,可根据CAN总线数据量的大小自适应调整队列缓冲区的大小,优化后可避免数据帧丢失;硬件部分以STM32为平台,搭载Micro SD卡模块,实现了无需人工操作使总线实车数据的采集脱离PC设备。经验证表明,该系统方案避免了CAN总线实车数据采集过程中数据丢帧问题,简化了实车数据采集流程,提高了实车数据采集效率。 Aiming at the problem of frame loss in real vehicle data acquisition of CAN bus recorder in the application scenario of large amount of CAN bus data and the cumbersome process of collecting real vehicle data by manual operation PC and can analyzer,a CAN bus data acquisition system with STM32 as the core controller is designed based on the unlocked FIFO queue algorithm.The system is divided into software and hardware parts:the software part uses the lockless FIFO queue algorithm,which can adaptively adjust the size of the queue buffer according to the amount of CAN bus data,and can avoid the loss of data frames after optimization;The hardware part takes STM32 as the platform and is equipped with Micro SD card module to realize the purpose of separating the acquisition of real vehicle data from PC equipment without manual operation.The verification shows that the system scheme avoids the problem of data frame loss in the process of real vehicle data acquisition based on CAN bus,simplifies the process of real vehicle data acquisition,and improves the efficiency of real vehicle data acquisition.
作者 郭健忠 田潇寒 谢斌 杜新宝 胡文龙 GUO Jianzhong;TIAN Xiaohan;XIE Bin;DU Xinbao;HU Wenlong(School of Automobile and Traffic Engineering,Wuhan University of Science and Technology,Wuhan 430065,China;Wuhan Baohua Display Technology Co.,Ltd.,Wuhan 430082,China)
出处 《电子设计工程》 2023年第1期184-188,193,共6页 Electronic Design Engineering
关键词 CAN总线 数据采集 无锁FIFO队列 实车数据 CAN bus data acquisition lockless FIFO queue real vehicle data
  • 相关文献

参考文献14

二级参考文献75

共引文献61

相关作者

内容加载中请稍等...

相关机构

内容加载中请稍等...

相关主题

内容加载中请稍等...

浏览历史

内容加载中请稍等...
;
使用帮助 返回顶部