Self-adaptive multi-vehicle CAN data automatic analysis method and system

The invention provides a self-adaptive multi-vehicle CAN data automatic analysis method. The method comprises the following steps: defining a template file used for analyzing CAN data; obtaining a DBC file in which a required CAN message and a filtering rule are defined; the method comprises the fol...

Ausführliche Beschreibung

Gespeichert in:
Bibliographische Detailangaben
Hauptverfasser: LI KUN, YOU SHENGKUN, XU ZIDING, OUYANG CHAO
Format: Patent
Sprache:chi ; eng
Schlagworte:
Online-Zugang:Volltext bestellen
Tags: Tag hinzufügen
Keine Tags, Fügen Sie den ersten Tag hinzu!
Beschreibung
Zusammenfassung:The invention provides a self-adaptive multi-vehicle CAN data automatic analysis method. The method comprises the following steps: defining a template file used for analyzing CAN data; obtaining a DBC file in which a required CAN message and a filtering rule are defined; the method comprises the following steps: analyzing a DBC file to obtain a first C code; rendering the first C code based on the template file to obtain a second C code; and injecting a CAN message received from the CAN bus into the second C code, automatically analyzing the CAN message by the second C code, and writing the analyzed CAN signal into the shared memory. According to the method and the device, the DBC file can be processed by utilizing the Python script, the C function code for automatically analyzing the CAN message is generated, and finally the analyzed CAN signal is written into the shared memory, so that the working efficiency of analyzing the CAN data can be improved, and the error rate can be reduced. 本发明提供一种自适应多车型CAN数据自动解析