Automobile CAN acquisition method and system
The invention provides an automobile CAN acquisition method. The automobile CAN acquisition method comprises the following steps: S1, conducting initializing; S2, loading an SD card configuration file; S3, reading CAN bus data; S4, judging whether the SD card has enough free space or not, if not, de...
Gespeichert in:
Hauptverfasser: | , , , , |
---|---|
Format: | Patent |
Sprache: | chi ; eng |
Schlagworte: | |
Online-Zugang: | Volltext bestellen |
Tags: |
Tag hinzufügen
Keine Tags, Fügen Sie den ersten Tag hinzu!
|
Zusammenfassung: | The invention provides an automobile CAN acquisition method. The automobile CAN acquisition method comprises the following steps: S1, conducting initializing; S2, loading an SD card configuration file; S3, reading CAN bus data; S4, judging whether the SD card has enough free space or not, if not, deleting the unlocked record file with the earliest time and entering the step S5, and if yes, entering the step S5; and S5, storing the CAN message in the SD card. The invention also provides an automobile CAN acquisition system. The method has the advantages that CAN bus messages can be circularly recorded in real time, messages before and after an event can be intelligently locked according to the configuration event, and recurrence analysis and problem solving of accidental faults are facilitated.
本发明提供了一种汽车CAN采集方法,包括以下步骤:S1、初始化;S2、加载SD卡配置文件;S3、读取CAN总线数据;S4、判断SD卡是否有足够的空闲空间,如果没有,则删除时间最早的未锁定的记录文件并进入步骤S5,如果有,则进入步骤S5;S5、将CAN报文存入SD卡中。本发明还提供了一种汽车CAN采集系统。本发明的有益效果是:可以实时循环记录CAN总线报文,并且能够根据配置事件智能锁定事件发生时的前后报文,有利于偶发故障的复现分析及问题 |
---|