摘 要:本文实现了一种通过采集CAN 总线物理层通信波形,不需要复杂的CAN 通信协议解码过程,分析CAN 总线故障和使用率的侦测系统,并输出相关故障预警信息。通过采样、识别和分析总线数据帧信息,测量总线使用率并进行一系列比较,输出总线故障预警信号,实时监测CAN 总线的工作状态和故障侦测。具体内容包含系统实现原理和方案,并详细讨论CAN 总线数据帧提取、使用率测量和异常监测方法。实际运行效果表明:该系统结构合理、性能稳定、准确性高,具有广阔的应用前景。
关键词:CAN 总线;总线使用率(负载率);通信故障检测
中图分类号:TP27 文献标识码:A 文章编号:2096-4706(2019)15-0042-04
CAN Bus Utilization and Fault Detection System
YANG Jiong,DING Changkun,ZHENG Yanpu
(Guangzhou Zhiyuan Electronics Co.,Ltd.,Guangzhou 510660,China)
Abstract:In this paper,a detection system for CAN bus faults and usage rate is realized by collecting communication waveforms in physical layer of CAN bus,which does not need complicated decoding process of CAN communication protocol,and outputs relevant fault warning information. By sampling,identifying and analyzing the bus data frame information,the bus utilization rate is measured and a series of comparisons are made. The bus fault warning signal is output,and the working state and fault detection of CAN bus are monitored in real time. The specific content includes the principle and scheme of the system,and discusses in detail the methods of CAN bus data frame extraction,usage measurement and anomaly monitoring. The actual operation results show that the system has reasonable structure,stable performance and high accuracy,and has broad application prospects.
Keywords:CAN bus;bus utilization (load rate);communication fault detection
参考文献:
[1] 代寿刚,干莽,宋占伟. 基于FPGA 的CAN 总线故障分析仪 [J]. 吉林大学学报(信息科学版),2012,30(5):503-509.
[2] 韩建,田博文,王春龙. 基于FPGA 的CAN 总线网络故障检测修复系统研究 [J]. 化工自动化及仪表,2014,41(9):1040-1042+1068.
[3] 袁卫波. 基于CAN 总线的车辆在线故障诊断系统 [D]. 西安:长安大学,2012.
作者简介:杨炯(1991.04-),男,汉族,广东揭阳人,本科,FPGA 工程师,研究方向:测量仪器。