Movatterモバイル変換


[0]ホーム

URL:


CN114780519A - DBC file generation method, device, equipment and medium based on CAN communication - Google Patents

DBC file generation method, device, equipment and medium based on CAN communication
Download PDF

Info

Publication number
CN114780519A
CN114780519ACN202210478013.4ACN202210478013ACN114780519ACN 114780519 ACN114780519 ACN 114780519ACN 202210478013 ACN202210478013 ACN 202210478013ACN 114780519 ACN114780519 ACN 114780519A
Authority
CN
China
Prior art keywords
communication
file
dbc
dbc file
definitions
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Granted
Application number
CN202210478013.4A
Other languages
Chinese (zh)
Other versions
CN114780519B (en
Inventor
高瑶瑶
魏笑非
杨国超
杨龙
丁芃
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Dongfeng Off Road Vehicle Co Ltd
Original Assignee
Dongfeng Off Road Vehicle Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Dongfeng Off Road Vehicle Co LtdfiledCriticalDongfeng Off Road Vehicle Co Ltd
Priority to CN202210478013.4ApriorityCriticalpatent/CN114780519B/en
Publication of CN114780519ApublicationCriticalpatent/CN114780519A/en
Application grantedgrantedCritical
Publication of CN114780519BpublicationCriticalpatent/CN114780519B/en
Activelegal-statusCriticalCurrent
Anticipated expirationlegal-statusCritical

Links

Images

Classifications

Landscapes

Abstract

Translated fromChinese

本发明提供了一种基于CAN通讯的DBC文件生成方法、装置、设备及介质,其方法包括:获取CAN数据库文件,并对所述CAN数据库文件进行解析,获得多种关键要素;获取通信矩阵,并根据所述通信矩阵生成通信数据表,所述通信数据表中包括多条通信数据;根据所述关键要素逐条解析所述通信数据,获得多个通信字符串;合并所述多个通信字符串,获得DBC文件;基于预设的CAN软件验证所述DBC文件的完整性,并获得目标DBC文件。本发明可提高基于CAN通讯的DBC文件生成方法的适用性以及生成的目标DBC文件的可靠性。

Figure 202210478013

The invention provides a method, device, equipment and medium for generating a DBC file based on CAN communication. The method includes: obtaining a CAN database file, analyzing the CAN database file, and obtaining a variety of key elements; obtaining a communication matrix, and generate a communication data table according to the communication matrix, the communication data table includes multiple pieces of communication data; analyze the communication data one by one according to the key elements to obtain multiple communication strings; combine the multiple communication strings , obtain the DBC file; verify the integrity of the DBC file based on the preset CAN software, and obtain the target DBC file. The invention can improve the applicability of the DBC file generation method based on CAN communication and the reliability of the generated target DBC file.

Figure 202210478013

Description

Translated fromChinese
基于CAN通讯的DBC文件生成方法、装置、设备及介质Method, device, device and medium for generating DBC file based on CAN communication

技术领域technical field

本发明涉及车载控制器开发软件技术领域,具体涉及一种基于CAN通讯的DBC文件生成方法、装置、设备及介质。The invention relates to the technical field of vehicle-mounted controller development software, in particular to a method, device, device and medium for generating a DBC file based on CAN communication.

背景技术Background technique

随着汽车网络中CAN节点不断增加,网络中数据也越来越庞大,因此,为了便于整车的设计和维护,现有技术中提出采用DBC文件对汽车CAN数据进行解析和管理技术方案。形成DBC文件的传统实现方法包括以下三种:1、通过系统建模软件新建DBC,根据通信设计文档,按照DBC格式要求形成当前车辆或零部件专有的DBC文件。2、购买能实现对汽车的DBC数据库文件进行解析的设备读取CAN文件。现有技术存在以下技术问题:技术方案1通过CAN通讯协议在上位机软件中逐一进行报文详细解析,随着通信数据量增大,需在系统建模中进行大量重复工作,开发效率低,出错率提高。技术方案2购买能实现对汽车的DBC数据库文件进行解析的设备实现对汽车的DBC数据库文件进行编制,价格较高,配置要求较通用,若要实现定制化开发,仍然会产生大量的费用。With the continuous increase of CAN nodes in the automotive network, the data in the network is also becoming larger and larger. Therefore, in order to facilitate the design and maintenance of the entire vehicle, the prior art proposes a technical solution to analyze and manage the automotive CAN data using DBC files. The traditional implementation methods for forming DBC files include the following three: 1. Create a new DBC through system modeling software, and form a current vehicle or component-specific DBC file according to the communication design document and DBC format requirements. 2. Purchase a device that can parse the DBC database file of the car to read the CAN file. The prior art has the following technical problems: technical solution 1 carries out detailed analysis of the messages one by one in the host computer software through the CAN communication protocol. Error rate increased. Technical solution 2 Buying equipment that can parse the DBC database file of the car to compile the DBC database file of the car is expensive, and the configuration requirements are more general. If the customized development is to be realized, a lot of expenses will still be incurred.

为了解决上述技术问题,现有技术中提出了自主软件开发设计,例如:公开号为CN107132832A的中国发明专利申请《一种基于CAN通讯的DBC文件解析及其程序》,提出了通过设置CAN通讯参数配置、创建DBC文件报文、编写DBC文件解析程序、动态创建DBC所含信息(如:帧名称、ID、信号名称、信号值定义等)、将每一帧报文实现收发功能。但其仅支持标准帧和<8字节扩展帧定义,无法实现J1939协议多包传输的编制及解析,导致其适用性不高。且未对生成的DBC文件进行验证,导致生成的DBC文件不可靠。In order to solve the above-mentioned technical problems, independent software development and design are proposed in the prior art. For example, the Chinese invention patent application with publication number CN107132832A "A kind of DBC file analysis based on CAN communication and its program" proposes to set CAN communication parameters by setting CAN communication parameters. Configure, create DBC file message, write DBC file parsing program, dynamically create information contained in DBC (such as: frame name, ID, signal name, signal value definition, etc.), and realize the sending and receiving function of each frame message. However, it only supports the definition of standard frames and <8-byte extended frames, and cannot realize the compilation and analysis of J1939 protocol multi-packet transmission, resulting in its low applicability. And the generated DBC files are not verified, resulting in unreliable DBC files.

因此,现在亟需一种基于CAN通讯的DBC文件生成方法、装置、设备及介质来解决现有技术中存在的生成的DBC文件的适用性和可靠性较低的技术问题。Therefore, there is an urgent need for a method, apparatus, device and medium for generating a DBC file based on CAN communication to solve the technical problems of low applicability and reliability of the generated DBC file in the prior art.

发明内容SUMMARY OF THE INVENTION

有鉴于此,有必要提供一种基于CAN通讯的DBC文件生成方法、装置、设备及介质,用以解决现有技术中存在的生成的DBC文件的适用性和可靠性较低的技术问题。In view of this, it is necessary to provide a method, device, device and medium for generating a DBC file based on CAN communication, so as to solve the technical problems of low applicability and reliability of the generated DBC file in the prior art.

一方面,本发明提供了一种基于CAN通讯的DBC文件生成方法,包括:On the one hand, the invention provides a kind of DBC file generation method based on CAN communication, comprising:

获取CAN数据库文件,并对所述CAN数据库文件进行解析,获得多种关键要素;Obtain the CAN database file, and analyze the CAN database file to obtain a variety of key elements;

获取通信矩阵,并根据所述通信矩阵生成通信数据表,所述通信数据表中包括多条通信数据;acquiring a communication matrix, and generating a communication data table according to the communication matrix, where the communication data table includes multiple pieces of communication data;

根据所述关键要素逐条解析所述通信数据,获得多个通信字符串;Parse the communication data one by one according to the key elements to obtain multiple communication strings;

合并所述多个通信字符串,获得DBC文件;Merging the plurality of communication strings to obtain a DBC file;

基于预设的CAN软件验证所述DBC文件的完整性,并获得目标DBC文件。The integrity of the DBC file is verified based on the preset CAN software, and the target DBC file is obtained.

在一些可能的实现方式中,所述CAN数据库文件包括标准帧数据库文件以及拓展帧J1939数据库文件。In some possible implementations, the CAN database file includes a standard frame database file and an extended frame J1939 database file.

在一些可能的实现方式中,所述多种关键要素包括版本与新字符定义、波特率定义、网络节点定义、报文帧定义、信号定义、注解定义、属性定义、数值表定义以及J1939协议专有定义。In some possible implementations, the various key elements include version and new character definitions, baud rate definitions, network node definitions, message frame definitions, signal definitions, annotation definitions, attribute definitions, value table definitions, and J1939 protocols Proprietary Definition.

在一些可能的实现方式中,所述根据所述关键要素逐条解析所述通信数据,获得多个通信字符串,包括:In some possible implementations, the communication data is parsed one by one according to the key elements to obtain multiple communication strings, including:

建立一个可变长的初始字符串;Create a variable-length initial string;

根据所述关键要素解析所述通信数据,获取所述通信数据中的版本与新字符定义、波特率定义、网络节点定义、报文帧定义、信号定义、注解定义、属性定义、数值表定义以及J1939协议专有定义;Parse the communication data according to the key elements, and obtain the version and new character definition, baud rate definition, network node definition, message frame definition, signal definition, annotation definition, attribute definition, and value table definition in the communication data and the proprietary definition of the J1939 protocol;

将所述通信数据中的版本与新字符定义、波特率定义、网络节点定义、报文帧定义、信号定义、注解定义、属性定义、数值表定义以及J1939协议专有定义写入至所述初始字符串,获得所述通信字符串。Write the version and new character definition, baud rate definition, network node definition, message frame definition, signal definition, annotation definition, attribute definition, value table definition and J1939 protocol-specific definition in the communication data to the The initial string, the communication string is obtained.

在一些可能的实现方式中,所述合并所述多个通信字符串,获得DBC文件,包括:In some possible implementations, the combination of the multiple communication strings to obtain the DBC file includes:

构建DBC空文件;Build DBC empty file;

将所述多个通信字符串写入至所述DBC空文件并合并,获得所述DBC文件。The multiple communication strings are written to the DBC empty file and merged to obtain the DBC file.

在一些可能的实现方式中,所述基于预设的CAN软件验证所述DBC文件的完整性,并获得目标DBC文件,包括:In some possible implementations, the preset CAN software verifies the integrity of the DBC file, and obtains the target DBC file, including:

基于预设的CAN软件加载所述DBC文件,并判断加载是否成功;Load the DBC file based on the preset CAN software, and determine whether the loading is successful;

若加载成功,则所述DBC文件完整,所述DBC文件为所述目标DBC文件;If the loading is successful, the DBC file is complete, and the DBC file is the target DBC file;

若加载不成功,则修正所述通信矩阵,获得修正通信矩阵,并基于所述修正通信矩阵获得所述目标DBC文件。If the loading is unsuccessful, the communication matrix is revised to obtain a revised communication matrix, and the target DBC file is obtained based on the revised communication matrix.

在一些可能的实现方式中,所述基于CAN通讯的DBC文件生成方法,还包括:In some possible implementations, the method for generating a DBC file based on CAN communication further includes:

建立CAN网络仿真界面,并基于所述CAN网络仿真界面加载所述目标DBC文件,进行网络仿真,生成网络仿真结果和/或仿真报文;establishing a CAN network simulation interface, and loading the target DBC file based on the CAN network simulation interface, performing network simulation, and generating network simulation results and/or simulation messages;

根据所述仿真报文和所述通信矩阵确定所述目标DBC文件的完整性;Determine the integrity of the target DBC file according to the simulation message and the communication matrix;

根据所述网络仿真结果验证CAN网络的网络性能。The network performance of the CAN network is verified according to the network simulation results.

另一方面,本发明还提供了一种基于CAN通讯的DBC文件生成装置,包括:On the other hand, the present invention also provides a DBC file generation device based on CAN communication, comprising:

数据库文件解析单元,用于获取CAN数据库文件,并对所述CAN数据库文件进行解析,获得多种关键要素;The database file parsing unit is used to obtain the CAN database file, and analyze the CAN database file to obtain a variety of key elements;

通信矩阵处理单元,用于获取通信矩阵,并根据所述通信矩阵生成通信数据表,所述通信数据表中包括多条通信数据;a communication matrix processing unit, configured to acquire a communication matrix, and generate a communication data table according to the communication matrix, wherein the communication data table includes a plurality of pieces of communication data;

通信数据解析单元,用于根据所述关键要素逐条解析所述通信数据,获得多个通信字符串;A communication data parsing unit, configured to parse the communication data one by one according to the key elements to obtain a plurality of communication strings;

DBC文件生成单元,用于合并所述多个通信字符串,获得DBC文件;DBC file generation unit, for merging the plurality of communication strings to obtain a DBC file;

完整性验证单元,用于基于预设的CAN软件验证所述DBC文件的完整性,并获得目标DBC文件。The integrity verification unit is used to verify the integrity of the DBC file based on the preset CAN software, and obtain the target DBC file.

另一方面,本发明还提供了一种电子设备,包括存储器和处理器,其中,In another aspect, the present invention also provides an electronic device including a memory and a processor, wherein,

所述存储器,用于存储程序;the memory for storing programs;

所述处理器,与所述存储器耦合,用于执行所述存储器中存储的所述程序,以实现上述任意一种实现方式中所述的基于CAN通讯的DBC文件生成方法中的步骤。The processor, coupled with the memory, is configured to execute the program stored in the memory, so as to implement the steps in the method for generating a DBC file based on CAN communication described in any one of the above implementation manners.

另一方面,本发明还提供了一种计算机可读存储介质,用于存储计算机可读取的程序或指令,所述程序或指令被处理器执行时能够实现上述任意一种实现方式中所述的基于CAN通讯的DBC文件生成方法中的步骤。On the other hand, the present invention also provides a computer-readable storage medium for storing computer-readable programs or instructions, which, when executed by a processor, can implement any one of the foregoing implementation manners. The steps in the method of generating a DBC file based on CAN communication.

采用上述实施例的有益效果是:本发明提供的基于CAN通讯的DBC文件生成方法,通过获取CAN数据库文件,并对CAN数据库文件进行解析,获得多种关键要素,然后根据关键要素逐条解析由通信矩阵生成的通信数据,获得多个通信字符串,再合并多个通信字符串,获得DBC文件。由于对CAN数据库文件进行解析,获得多种关键要素,可实现对不同模板格式的CAN数据库进行解析,从而可实现对拓展帧和标准帧数据库结构建立DBC文件,提高基于CAN通讯的DBC文件生成方法的适用性。The beneficial effect of adopting the above-mentioned embodiment is: the method for generating a DBC file based on CAN communication provided by the present invention obtains a variety of key elements by acquiring the CAN database file and analyzing the CAN database file, and then analyzes the key elements one by one by the communication The communication data generated by the matrix can obtain multiple communication strings, and then combine the multiple communication strings to obtain the DBC file. Due to the analysis of the CAN database file, a variety of key elements can be obtained, which can realize the analysis of the CAN database in different template formats, thereby realizing the establishment of DBC files for the extended frame and standard frame database structures, and improving the method of generating DBC files based on CAN communication. applicability.

进一步地,本发明通过设置基于预设的CAN软件验证DBC文件的完整性,并获得目标DBC文件,可确保目标DBC文件的可靠性,进而可提高后续对整车网络的开发效率。Further, the present invention can ensure the reliability of the target DBC file by setting the preset CAN software to verify the integrity of the DBC file and obtain the target DBC file, thereby improving the subsequent development efficiency of the entire vehicle network.

附图说明Description of drawings

为了更清楚地说明本发明实施例中的技术方案,下面将对实施例描述中所需要使用的附图作简单地介绍,显而易见地,下面描述中的附图仅仅是本发明的一些实施例,对于本领域技术人员来讲,在不付出创造性劳动的前提下,还可以根据这些附图获得其他的附图。In order to illustrate the technical solutions in the embodiments of the present invention more clearly, the following briefly introduces the accompanying drawings used in the description of the embodiments. Obviously, the accompanying drawings in the following description are only some embodiments of the present invention. For those skilled in the art, other drawings can also be obtained from these drawings without creative effort.

图1为本发明提供的基于CAN通讯的DBC文件生成方法的一个实施例流程示意图;1 is a schematic flow chart of an embodiment of a method for generating a DBC file based on CAN communication provided by the present invention;

图2为本发明图1中S103的一个实施例流程示意图;FIG. 2 is a schematic flowchart of an embodiment of S103 in FIG. 1 of the present invention;

图3为本发明图1中S104的一个实施例流程示意图;FIG. 3 is a schematic flowchart of an embodiment of S104 in FIG. 1 of the present invention;

图4为本发明图1中S105的一个实施例流程示意图;FIG. 4 is a schematic flowchart of an embodiment of S105 in FIG. 1 of the present invention;

图5为本发明提供的对目标DBC文件进行仿真验证的一个实施例流程示意图;5 is a schematic flowchart of an embodiment of performing simulation verification on a target DBC file provided by the present invention;

图6为本发明提供的基于CAN通讯的DBC文件生成装置的一个实施例结构示意图;6 is a schematic structural diagram of an embodiment of a device for generating a DBC file based on CAN communication provided by the present invention;

图7为本发明提供的电子设备的一个实施例结构示意图。FIG. 7 is a schematic structural diagram of an embodiment of the electronic device provided by the present invention.

具体实施方式Detailed ways

下面将结合本发明实施例中的附图,对本发明实施例中的技术方案进行清楚、完整地描述。显然,所描述的实施例仅仅是本发明一部分实施例,而不是全部的实施例。基于本发明中的实施例,本领域技术人员在没有做出创造性劳动前提下所获得的所有其他实施例,都属于本发明保护的范围。The technical solutions in the embodiments of the present invention will be clearly and completely described below with reference to the accompanying drawings in the embodiments of the present invention. Obviously, the described embodiments are only some, but not all, embodiments of the present invention. Based on the embodiments of the present invention, all other embodiments obtained by those skilled in the art without creative efforts shall fall within the protection scope of the present invention.

应当理解,示意性的附图并未按实物比例绘制。本发明中使用的流程图示出了根据本发明的一些实施例实现的操作。应当理解,流程图的操作可以不按顺序实现,没有逻辑的上下文关系的步骤可以反转顺序或者同时实施。此外,本领域技术人员在本发明内容的指引下,可以向流程图添加一个或多个其他操作,也可以从流程图中移除一个或多个操作。It should be understood that the schematic drawings are not drawn to scale. The flowcharts used in the present invention illustrate operations implemented in accordance with some embodiments of the present invention. It should be understood that the operations of the flowcharts may be performed out of order and that steps without logical context may be performed in reverse order or concurrently. In addition, those skilled in the art can add one or more other operations to the flowchart, and can also remove one or more operations from the flowchart under the guidance of the present disclosure.

在本发明实施例的描述中,“和/或”,描述关联对象的关联关系,表示可以存在三种关系,例如:A和/或B,可以表示:单独存在A,同时存在A和B,单独存在B这三种情况。In the description of the embodiments of the present invention, "and/or" describes the association relationship of the associated objects, indicating that there may be three kinds of relationships, for example: A and/or B, it may indicate that A exists alone, and A and B exist simultaneously, There are three cases of B alone.

附图中所示的一些方框图是功能实体,不一定必须与物理或逻辑上独立的实体相对应。可以采用软件形式来实现这些功能实体,或在一个或多个硬件模块或集成电路中实现这些功能实体,或在不同网络和/或处理器系统和/或微控制器系统中实现这些功能实体。Some of the block diagrams shown in the figures are functional entities that do not necessarily necessarily correspond to physically or logically separate entities. These functional entities may be implemented in software, or in one or more hardware modules or integrated circuits, or in different networks and/or processor systems and/or microcontroller systems.

在本文中提及“实施例”意味着,结合实施例描述的特定特征、结构或特性可以包含在本发明的至少一个实施例中。在说明书中的各个位置出现该短语并不一定均是指相同的实施例,也不是与其它实施例互斥的独立的或备选的实施例。本领域技术人员显式地和隐式地理解的是,本文所描述的实施例可以与其它实施例相结合。Reference herein to an "embodiment" means that a particular feature, structure, or characteristic described in connection with the embodiment can be included in at least one embodiment of the present invention. The appearances of the phrase in various places in the specification are not necessarily all referring to the same embodiment, nor a separate or alternative embodiment that is mutually exclusive of other embodiments. It is explicitly and implicitly understood by those skilled in the art that the embodiments described herein may be combined with other embodiments.

本发明实施例提供了一种基于CAN通讯的DBC文件生成方法、装置、设备及介质,在对实施例进行展开描述之前,先对CAN通讯和DBC文件进行解释。Embodiments of the present invention provide a method, apparatus, device, and medium for generating a DBC file based on CAN communication. Before describing the embodiment, the CAN communication and the DBC file are explained.

CAN通讯是指基于控制器局域网络(Controller Area Network,CAN)进行通讯的技术。CAN是ISO国际标准化的一种串行通信协议,由于它具有极好的抗干扰能力、极强的差错检测和处理能力,在汽车电子等领域得到了日益广泛的应用。CAN communication refers to a communication technology based on a Controller Area Network (CAN). CAN is a serial communication protocol standardized by ISO. Because of its excellent anti-interference ability, strong error detection and processing ability, it has been widely used in automotive electronics and other fields.

DBC(Database CAN)文件指的是CAN的数据库文件。DBC (Database CAN) file refers to the CAN database file.

图1为本发明提供的基于CAN通讯的DBC文件生成方法的一个实施例流程示意图,如图1所示,基于CAN通讯的DBC文件生成方法包括:Fig. 1 is a schematic flow chart of an embodiment of a method for generating a DBC file based on CAN communication provided by the present invention. As shown in Fig. 1, the method for generating a DBC file based on CAN communication includes:

S101、获取CAN数据库文件,并对CAN数据库文件进行解析,获得多种关键要素;S101. Obtain a CAN database file, and analyze the CAN database file to obtain a variety of key elements;

S102、获取通信矩阵,并根据通信矩阵生成通信数据表(DataTable),通信数据表中包括多条通信数据;S102, obtaining a communication matrix, and generating a communication data table (DataTable) according to the communication matrix, and the communication data table includes multiple pieces of communication data;

S103、根据关键要素逐条解析通信数据,获得多个通信字符串;S103, analyze the communication data one by one according to the key elements, and obtain a plurality of communication strings;

S104、合并多个通信字符串,获得DBC文件;S104, merging multiple communication strings to obtain a DBC file;

S105、基于预设的CAN软件验证DBC文件的完整性,并获得目标DBC文件。S105 , verify the integrity of the DBC file based on the preset CAN software, and obtain the target DBC file.

与现有技术相比,本发明实施例提供的基于CAN通讯的DBC文件生成方法,通过获取CAN数据库文件,并对CAN数据库文件进行解析,获得多种关键要素,然后根据关键要素逐条解析由通信矩阵生成的通信数据,获得多个通信字符串,再合并多个通信字符串,获得DBC文件。由于对CAN数据库文件进行解析,获得多种关键要素,可实现对不同模板格式的CAN数据库进行解析,从而可实现对拓展帧和标准帧数据库结构建立DBC文件,提高基于CAN通讯的DBC文件生成方法的适用性。Compared with the prior art, the method for generating a DBC file based on CAN communication provided by the embodiment of the present invention obtains a variety of key elements by obtaining the CAN database file and analyzing the CAN database file, and then analyzes the key elements one by one according to the communication. The communication data generated by the matrix can obtain multiple communication strings, and then combine the multiple communication strings to obtain the DBC file. Due to the analysis of the CAN database file, a variety of key elements can be obtained, which can realize the analysis of the CAN database in different template formats, thereby realizing the establishment of DBC files for the extended frame and standard frame database structures, and improving the method of generating DBC files based on CAN communication. applicability.

进一步地,本发明实施例通过设置基于预设的CAN软件验证DBC文件的完整性,并获得目标DBC文件,可确保目标DBC文件的可靠性,进而可提高后续对整车网络的开发效率。Further, the embodiment of the present invention can ensure the reliability of the target DBC file by setting the preset CAN software to verify the integrity of the DBC file and obtain the target DBC file, thereby improving the subsequent development efficiency of the vehicle network.

在本发明的具体实施例中,步骤S101中的CAN数据库文件包括但不限于标准帧数据库文件以及拓展帧J1939数据库文件。In a specific embodiment of the present invention, the CAN database files in step S101 include but are not limited to standard frame database files and extended frame J1939 database files.

本发明实施例通过设置CAN数据库文件包括标准帧数据库文件以及拓展帧J1939数据库文件,可生成商用车的J1939数据库文件对应的DBC文件,提高基于CAN通讯的DBC文件生成方法的适用性。In the embodiment of the present invention, by setting the CAN database file to include the standard frame database file and the extended frame J1939 database file, the DBC file corresponding to the J1939 database file of the commercial vehicle can be generated, and the applicability of the method for generating the DBC file based on CAN communication is improved.

其中,J1939数据库文件指的是符合J1939多包通信协议的数据库文件。Among them, the J1939 database file refers to the database file conforming to the J1939 multi-packet communication protocol.

应当理解的是:CAN数据库文件还可包括除标准帧数据库文件以及拓展帧J1939数据库文件的其他数据库文件,例如:由CANoe软件的DBediter自定义生成的数据库文件等。It should be understood that the CAN database file may also include other database files other than the standard frame database file and the extended frame J1939 database file, for example, the database file custom-generated by the DBediter of the CANoe software.

在本发明的具体实施例中,步骤S101中的多种关键要素包括版本与新字符定义、波特率定义、网络节点定义、报文帧定义、信号定义、注解定义、属性定义、数值表定义以及J1939协议专有定义。具体地:In a specific embodiment of the present invention, various key elements in step S101 include version and new character definition, baud rate definition, network node definition, message frame definition, signal definition, annotation definition, attribute definition, and value table definition And the J1939 protocol proprietary definition. specifically:

1、版本与新字符定义1. Version and new character definition

版本的格式如下:version“”,version“”可以为空,也可以由用户自己定义;The format of the version is as follows: version"", version"" can be empty or defined by the user;

新字符的格式如下:NS_,这个信息在生成DBC文件过程中会自动生成,默认即可。The format of the new character is as follows: NS_, this information will be automatically generated in the process of generating the DBC file, the default is OK.

2、波特率定义2. Definition of baud rate

格式如下:BS_:[baudrate:BTR1,BTR2];The format is as follows: BS_:[baudrate: BTR1, BTR2];

其中BS_为关键字,用于定义CAN网络的波特率;[]内容表示为可选部分,可以省略。Among them, BS_ is a keyword, which is used to define the baud rate of the CAN network; the content of [] is indicated as an optional part, which can be omitted.

3、网络节点定义3. Definition of network nodes

格式如下:BU_:Nodename1 Nodename2 Nodename3……;The format is as follows: BU_: Nodename1 Nodename2 Nodename3...;

其中BU_为关键字,表示网络节点,格式中的Nodename1、Nodename2表示定义的网络节点名字,由用户自己定义。Among them, BU_ is a keyword, which indicates a network node. Nodename1 and Nodename2 in the format indicate the name of the defined network node, which is defined by the user.

4、报文帧定义4. Message frame definition

格式如下:BO_MessageId(10进制数表示)MessageName:MessageSizeTransmitter;The format is as follows: BO_MessageId (decimal number representation) MessageName:MessageSizeTransmitter;

分别表示:关键字_报文ID、报文的名字、报文数据域字节数、报文数据域字节数、报文的网络节点。Respectively represent: keyword_message ID, name of the message, the number of bytes in the data field of the message, the number of bytes in the data field of the message, and the network node of the message.

5、信号定义5. Signal Definition

格式如下:SG_SignalName:StartBit|SignalSize@ByteOrderValueType(Factor,Offset)[Min|Max]Unit Receiver;The format is as follows: SG_SignalName: StartBit|SignalSize@ByteOrderValueType(Factor, Offset)[Min|Max]Unit Receiver;

分别表示:关键字_信号的名字、起始位、信号长度@字节顺序、数值类型、偏移量、最小值和最大值、信号的单位、接收节点;Respectively represent: keyword_signal name, start bit, signal length@byte order, value type, offset, minimum and maximum value, signal unit, receiving node;

如一个信号为:SG_HUD_BrightnessLv:15|4@0+(1,0)[0|15]“lv”ACU,AVNT表示定义了一个命名为HUD_BrightnessLv的信号,其起始位是第15位,信号长度4个位;信号是Motorola格式,数值类型为无符号类型数;因子为1,偏移量为0;信号取值范围为0到15;信号单位为字符串“lv”;该信号接收节点为ACU、AVNT这两个节点。For example, a signal is: SG_HUD_BrightnessLv:15|4@0+(1,0)[0|15] "lv" ACU, AVNT means that a signal named HUD_BrightnessLv is defined, and its start bit is the 15th bit, the signal length 4 bits; the signal is in Motorola format, the value type is an unsigned number; the factor is 1, the offset is 0; the signal value range is 0 to 15; the signal unit is the string "lv"; the signal receiving node is The two nodes of ACU and AVNT.

6、注解定义6. Annotation Definition

格式如下:CM_Object MessageId/NodeName“Comment”;The format is as follows: CM_Object MessageId/NodeName "Comment";

分别表示:关键字_注解的对象类型、进行注解的对象、进行注解的文本信息。Respectively represent: keyword_annotated object type, annotated object, and annotated text information.

7、属性定义7. Attribute Definition

包括两个格式,分别为第一格式和第二格式;Including two formats, namely the first format and the second format;

第一格式如下:BA_DEF_Object AttributeNameValueType Min Max;The first format is as follows: BA_DEF_Object AttributeNameValueType Min Max;

分别表示:关键字_属性定义的对象类型、进行定义的属性名字、属性值的类型、属性值的上下最值;Respectively represent: the object type defined by the keyword_attribute, the attribute name to be defined, the type of attribute value, and the upper and lower values of the attribute value;

第二格式如下:BA_DEF_DEF_AttributeNameDefaultValue;The second format is as follows: BA_DEF_DEF_AttributeNameDefaultValue;

分别表示:关键字_属性的初始值。Respectively: the initial value of the keyword_attribute.

8、数值表定义8. Definition of numerical table

格式如下:VAL_MessageIdSignalName N“DefineN”……0“Define0”;The format is as follows: VAL_MessageIdSignalName N "DefineN"...0 "Define0";

分别表示:关键字_数值表定义、信号所属的报文ID、信号名、数值表内容。Respectively represent: keyword_value table definition, message ID to which the signal belongs, signal name, and value table content.

9、J1939协议专有定义9. Exclusive definition of J1939 protocol

格式如下:BA_DEF_SG_、BA_DEF_BO_、BA_DEF_BU_、BA_DEF_、BA_DEF_DEF_The format is as follows: BA_DEF_SG_, BA_DEF_BO_, BA_DEF_BU_, BA_DEF_, BA_DEF_DEF_

分别表示:信号属性、报文帧属性、网络节点属性、第一格式属性以及第二格式属性。Respectively represent: signal attribute, message frame attribute, network node attribute, first format attribute and second format attribute.

在本发明的一些实施例中,通信矩阵为Excel格式,步骤S102具体为:使用编程工具Visual Studio建立C#工程,导入通信矩阵,生成通信数据表(DataTable)。In some embodiments of the present invention, the communication matrix is in Excel format, and step S102 specifically includes: using the programming tool Visual Studio to create a C# project, importing the communication matrix, and generating a communication data table (DataTable).

其中,通信数据表表示内存中数据的一个表,DataTable中包括多个数据行(DataRow)、数据列(DataColumn),可通过DataRow、DataColumn来查看、操作其中的数据。The communication data table represents a table of data in the memory, and the DataTable includes a plurality of data rows (DataRow) and data columns (DataColumn), and the data in it can be viewed and manipulated through the DataRow and DataColumn.

在本发明的一些实施例中,每条通信数据包括多行,步骤S103具体为:对每条通信数据的每一行进行解析。In some embodiments of the present invention, each piece of communication data includes multiple lines, and step S103 is specifically: parsing each line of each piece of communication data.

在本发明的一些实施例中,如图2所示,步骤S103包括:In some embodiments of the present invention, as shown in FIG. 2 , step S103 includes:

S201、建立一个可变长的初始字符串;S201, establishing a variable-length initial string;

S202、根据关键要素解析通信数据,获取通信数据中的版本与新字符定义、波特率定义、网络节点定义、报文帧定义、信号定义、注解定义、属性定义、数值表定义以及J1939协议专有定义;S202, parse the communication data according to the key elements, and obtain the version and new character definition, baud rate definition, network node definition, message frame definition, signal definition, annotation definition, attribute definition, value table definition and J1939 protocol definition in the communication data defined;

S203、将通信数据中的版本与新字符定义、波特率定义、网络节点定义、报文帧定义、信号定义、注解定义、属性定义、数值表定义以及J1939协议专有定义写入至初始字符串,获得通信字符串。S203, write the version and new character definition, baud rate definition, network node definition, message frame definition, signal definition, annotation definition, attribute definition, value table definition and J1939 protocol-specific definition in the communication data into the initial character string to get the communication string.

在本发明的一些实施例中,如图3所示,步骤S104包括:In some embodiments of the present invention, as shown in FIG. 3 , step S104 includes:

S301、构建DBC空文件;S301. Build a DBC empty file;

S302、将多个通信字符串写入至DBC空文件并合并,获得DBC文件。S302, write multiple communication strings into the DBC empty file and combine them to obtain a DBC file.

由于生成的目标DBC文件需要满足CAN软件可读,为了避免CAN软件无法读取生成的目标DBC文件,导致目标DBC文件不可用的技术问题,在本发明的一些实施例中,如图4所示,步骤S105包括:Since the generated target DBC file needs to be readable by the CAN software, in order to avoid the technical problem that the generated target DBC file cannot be read by the CAN software, resulting in the unavailability of the target DBC file, in some embodiments of the present invention, as shown in FIG. 4 , step S105 includes:

S401、基于预设的CAN软件加载DBC文件,并判断加载是否成功;S401. Load the DBC file based on the preset CAN software, and determine whether the loading is successful;

S402、若加载成功,则DBC文件完整,DBC文件为目标DBC文件;S402. If the loading is successful, the DBC file is complete, and the DBC file is the target DBC file;

S403、若加载不成功,则修正通信矩阵,获得修正通信矩阵,并基于修正通信矩阵获得目标DBC文件。S403. If the loading is unsuccessful, modify the communication matrix to obtain the modified communication matrix, and obtain the target DBC file based on the modified communication matrix.

本发明实施例通过基于预设的CAN软件加载DBC文件,当可以加载成功时,DBC文件才为目标DBC文件,当加载不成功时,修正通信矩阵,重新获得目标DBC文件,确保了生成的DBC文件的可靠性。In the embodiment of the present invention, the DBC file is loaded based on the preset CAN software. When the loading is successful, the DBC file is the target DBC file. When the loading is unsuccessful, the communication matrix is corrected to obtain the target DBC file again, so as to ensure the generated DBC file. Document reliability.

其中,步骤S401中的CAN软件可为现有技术中的任意一种CAN软件,在此不做具体限定。Wherein, the CAN software in step S401 may be any kind of CAN software in the prior art, which is not specifically limited herein.

步骤S403中的基于修正通信矩阵获得目标DBC文件具体可为:将修正通信矩阵作为通信矩阵,并重复步骤S102-S105。The obtaining of the target DBC file based on the corrected communication matrix in step S403 may specifically be: taking the corrected communication matrix as the communication matrix, and repeating steps S102-S105.

进一步地,步骤S101-S105实现了目标DBC文件的生成,在实际网络开发过程中,还需要确认生成的目标DBC文件是否支持网络仿真功能,并且还需通过网络仿真进一步验证目标DBC文件的完整性,因此,在本发明的一些实施例中,如图5所示,基于CAN通讯的DBC文件生成方法,还包括:Further, steps S101-S105 realize the generation of the target DBC file. In the actual network development process, it is also necessary to confirm whether the generated target DBC file supports the network simulation function, and the integrity of the target DBC file needs to be further verified through network simulation. , therefore, in some embodiments of the present invention, as shown in FIG. 5 , the method for generating a DBC file based on CAN communication further includes:

S501、建立CAN网络仿真界面,并基于CAN网络仿真界面加载目标DBC文件,进行网络仿真,生成网络仿真结果和/或仿真报文;S501, establishing a CAN network simulation interface, and loading a target DBC file based on the CAN network simulation interface, performing network simulation, and generating network simulation results and/or simulation messages;

S502、根据仿真报文和通信矩阵确定目标DBC文件的完整性;S502, determine the integrity of the target DBC file according to the simulation message and the communication matrix;

S503、根据网络仿真结果验证CAN网络的网络性能。S503, verify the network performance of the CAN network according to the network simulation result.

本发明实施例通过根据仿真报文和通信矩阵确定目标DBC文件的完整性,可进一步确保目标DBC文件的完整性和可靠性。本发明实施例通过根据网络仿真结果验证CAN网络的网络性能,可实现对CAN网络的方正,提高后续整车网络开发效率。The embodiment of the present invention can further ensure the integrity and reliability of the target DBC file by determining the integrity of the target DBC file according to the simulation message and the communication matrix. In the embodiment of the present invention, by verifying the network performance of the CAN network according to the network simulation result, the squareness of the CAN network can be realized, and the subsequent development efficiency of the entire vehicle network can be improved.

具体地,步骤S501具体为:建立CAN网络仿真界面,加载当前生成的目标DBC文件进行网络仿真,在CAN网络仿真界面同步目标DBC文件定义的网段上所有节点数据内容,同时在目标DBC文件属性中,协议类型加载仿真.dll文档。配置完成后,在加载J1939配置的CAN软件可直接点击仿真运行,软件可按照J1939协议将多包报文合并为一包进行解析,CAN网络仿真界面会根据目标DBC文件定义的内容生成网络仿真结果和/或仿真报文。Specifically, step S501 is specifically as follows: establishing a CAN network simulation interface, loading the currently generated target DBC file for network simulation, synchronizing all node data contents on the network segment defined by the target DBC file on the CAN network simulation interface, and at the same time in the target DBC file attribute , the protocol type loads the emulation .dll document. After the configuration is completed, you can directly click the simulation to run the CAN software configured by J1939. The software can combine multiple packets into one packet for analysis according to the J1939 protocol. The CAN network simulation interface will generate network simulation results according to the content defined by the target DBC file. and/or emulated messages.

具体地,步骤S502为:将仿真报文与通信矩阵放在一个excel界面,通过预设的比对算法进行对比,识别通信矩阵及仿真报文的差异,通过差异验证目标DBC文件的完整性。Specifically, step S502 is: put the simulation message and the communication matrix on an excel interface, compare through a preset comparison algorithm, identify the difference between the communication matrix and the simulation message, and verify the integrity of the target DBC file through the difference.

具体地,网络仿真结果包括但不限于CAN网络的负载率、周期偏差等,通过CAN网络的负载率、周期偏差可获得CAN网络的网络性能。Specifically, the network simulation results include, but are not limited to, the load rate and period deviation of the CAN network, and the network performance of the CAN network can be obtained through the load rate and period deviation of the CAN network.

为了更好实施本发明实施例中的基于CAN通讯的DBC文件生成方法,在基于CAN通讯的DBC文件生成方法基础之上,对应的,如图6所示,本发明实施例还提供了一种基于CAN通讯的DBC文件生成装置,基于CAN通讯的DBC文件生成装置600包括:In order to better implement the method for generating a DBC file based on CAN communication in the embodiment of the present invention, on the basis of the method for generating a DBC file based on CAN communication, correspondingly, as shown in FIG. 6 , the embodiment of the present invention further provides a The DBC file generation device based on CAN communication, the DBCfile generation device 600 based on CAN communication includes:

数据库文件解析单元601,用于获取CAN数据库文件,并对CAN数据库文件进行解析,获得多种关键要素;The databasefile parsing unit 601 is used to obtain the CAN database file, and analyze the CAN database file to obtain a variety of key elements;

通信矩阵处理单元602,用于获取通信矩阵,并根据通信矩阵生成通信数据表,通信数据表中包括多条通信数据;A communicationmatrix processing unit 602, configured to acquire a communication matrix, and generate a communication data table according to the communication matrix, and the communication data table includes a plurality of pieces of communication data;

通信数据解析单元603,用于根据关键要素逐条解析通信数据,获得多个通信字符串;A communicationdata analysis unit 603, configured to analyze the communication data one by one according to the key elements, and obtain a plurality of communication strings;

DBC文件生成单元604,用于合并多个通信字符串,获得DBC文件;DBCfile generation unit 604, for merging a plurality of communication strings to obtain a DBC file;

完整性验证单元605,用于基于预设的CAN软件验证DBC文件的完整性,并获得目标DBC文件。Theintegrity verification unit 605 is configured to verify the integrity of the DBC file based on the preset CAN software, and obtain the target DBC file.

上述实施例提供的基于CAN通讯的DBC文件生成装置600可实现上述自基于CAN通讯的DBC文件生成方法实施例中描述的技术方案,上述各模块或单元具体实现的原理可参见上述基于CAN通讯的DBC文件生成方法实施例中的相应内容,此处不再赘述。The CAN communication-based DBCfile generation device 600 provided by the above-mentioned embodiments can realize the technical solutions described in the above-mentioned self-CAN communication-based DBC file generation method embodiments, and the specific implementation principles of the above-mentioned modules or units can be referred to above. Corresponding content in the embodiment of the DBC file generation method will not be repeated here.

如图7所示,本发明还相应提供了一种电子设备700。该电子设备700包括处理器701、存储器702及显示器703。图7仅示出了电子设备700的部分组件,但是应理解的是,并不要求实施所有示出的组件,可以替代的实施更多或者更少的组件。As shown in FIG. 7 , the present invention also provides anelectronic device 700 correspondingly. Theelectronic device 700 includes aprocessor 701 , amemory 702 and adisplay 703 . FIG. 7 shows only some of the components of theelectronic device 700, but it should be understood that implementation of all of the illustrated components is not required, and more or fewer components may be implemented instead.

处理器701在一些实施例中可以是一中央处理器(Central Processing Unit,CPU),微处理器或其他数据处理芯片,用于运行存储器702中存储的程序代码或处理数据,例如本发明中的基于CAN通讯的DBC文件生成方法。In some embodiments, theprocessor 701 may be a central processing unit (Central Processing Unit, CPU), a microprocessor or other data processing chips, and is used for running program codes or processing data stored in thememory 702, such as in the present invention DBC file generation method based on CAN communication.

在一些实施例中,处理器701可以是单个服务器或服务器组。服务器组可为集中式或分布式的。在一些实施例中,处理器701可为本地的或远程的。在一些实施例中,处理器701可实施于云平台。在本发明的一些实施例中,云平台可包括私有云、公共云、混合云、社区云、分布式云、多重云等,或以上的任意组合。In some embodiments, theprocessor 701 may be a single server or a group of servers. Server groups can be centralized or distributed. In some embodiments, theprocessor 701 may be local or remote. In some embodiments, theprocessor 701 may be implemented on a cloud platform. In some embodiments of the present invention, the cloud platform may include a private cloud, a public cloud, a hybrid cloud, a community cloud, a distributed cloud, multiple clouds, etc., or any combination thereof.

存储器702在一些实施例中可以是电子设备700的内部存储单元,例如电子设备700的硬盘或内存。存储器702在另一些实施例中也可以是电子设备700的外部存储设备,例如电子设备700上配备的插接式硬盘,智能存储卡(Smart Media Card,SMC),安全数字(Secure Digital,SD)卡,闪存卡(Flash Card)等。Thememory 702 may in some embodiments be an internal storage unit of theelectronic device 700 , such as a hard disk or memory of theelectronic device 700 . In other embodiments, thememory 702 may also be an external storage device of theelectronic device 700, such as a pluggable hard disk, a smart memory card (Smart Media Card, SMC), a secure digital (Secure Digital, SD) equipped on theelectronic device 700 card, flash card (Flash Card) and so on.

进一步地,存储器702还可既包括电子设备700的内部储存单元也包括外部存储设备。存储器702用于存储安装电子设备700的应用软件及各类数据。Further, thememory 702 may also include both an internal storage unit of theelectronic device 700 and an external storage device. Thememory 702 is used to store application software and various types of data installed in theelectronic device 700 .

显示器703在一些实施例中可以是LED显示器、液晶显示器、触控式液晶显示器以及OLED(Organic Light-Emitting Diode,有机发光二极管)触摸器等。显示器703用于显示在电子设备700的信息以及用于显示可视化的用户界面。电子设备700的部件701-703通过系统总线相互通信。In some embodiments, thedisplay 703 may be an LED display, a liquid crystal display, a touch-sensitive liquid crystal display, an OLED (Organic Light-Emitting Diode, organic light-emitting diode) touch device, and the like.Display 703 is used to display information onelectronic device 700 and to display a visual user interface. The components 701-703 of theelectronic device 700 communicate with each other through a system bus.

在本发明的一些实施例中,当处理器701执行存储器702中的基于CAN通讯的DBC文件生成程序时,可实现以下步骤:In some embodiments of the present invention, when theprocessor 701 executes the CAN communication-based DBC file generation program in thememory 702, the following steps can be implemented:

获取CAN数据库文件,并对CAN数据库文件进行解析,获得多种关键要素;Obtain the CAN database file, parse the CAN database file, and obtain a variety of key elements;

获取通信矩阵,并根据通信矩阵生成通信数据表,通信数据表中包括多条通信数据;Obtain a communication matrix, and generate a communication data table according to the communication matrix, and the communication data table includes multiple pieces of communication data;

根据关键要素逐条解析通信数据,获得多个通信字符串;Analyze the communication data one by one according to the key elements to obtain multiple communication strings;

合并多个通信字符串,获得DBC文件;Merge multiple communication strings to obtain DBC files;

基于预设的CAN软件验证DBC文件的完整性,并获得目标DBC文件。Verify the integrity of the DBC file based on the preset CAN software and obtain the target DBC file.

应当理解的是:处理器701在执行存储器702中的基于CAN通讯的DBC文件生成程序时,除了上面的功能之外,还可实现其它功能,具体可参见前面相应方法实施例的描述。It should be understood that when theprocessor 701 executes the DBC file generation program based on CAN communication in thememory 702, in addition to the above functions, other functions can also be implemented. For details, please refer to the description of the corresponding method embodiments above.

进一步地,本发明实施例对提及的电子设备700的类型不做具体限定,电子设备700可以为手机、平板电脑、个人数字助理(personal digitalassistant,PDA)、可穿戴设备、膝上型计算机(laptop)等便携式电子设备。便携式电子设备的示例性实施例包括但不限于搭载IOS、android、microsoft或者其他操作系统的便携式电子设备。上述便携式电子设备也可以是其他便携式电子设备,诸如具有触敏表面(例如触控面板)的膝上型计算机(laptop)等。还应当理解的是,在本发明其他一些实施例中,电子设备700也可以不是便携式电子设备,而是具有触敏表面(例如触控面板)的台式计算机。Further, the embodiment of the present invention does not specifically limit the type of theelectronic device 700 mentioned, and theelectronic device 700 may be a mobile phone, a tablet computer, a personal digital assistant (PDA), a wearable device, a laptop computer ( laptop) and other portable electronic devices. Exemplary embodiments of portable electronic devices include, but are not limited to, portable electronic devices powered by IOS, android, microsoft, or other operating systems. The portable electronic device described above may also be other portable electronic devices, such as a laptop or the like having a touch-sensitive surface (eg, a touch panel). It should also be understood that, in some other embodiments of the present invention, theelectronic device 700 may not be a portable electronic device, but a desktop computer having a touch-sensitive surface (eg, a touch panel).

相应地,本申请实施例还提供一种计算机可读存储介质,计算机可读存储介质用于存储计算机可读取的程序或指令,程序或指令被处理器执行时,能够实现上述各方法实施例提供的基于CAN通讯的DBC文件生成方法中的步骤或功能。Correspondingly, the embodiments of the present application further provide a computer-readable storage medium, where the computer-readable storage medium is used to store computer-readable programs or instructions, and when the programs or instructions are executed by a processor, the foregoing method embodiments can be implemented Steps or functions in the provided method for generating a DBC file based on CAN communication.

本领域技术人员可以理解,实现上述实施例方法的全部或部分流程,可以通过计算机程序来指令相关的硬件(如处理器,控制器等)来完成,计算机程序可存储于计算机可读存储介质中。其中,计算机可读存储介质为磁盘、光盘、只读存储记忆体或随机存储记忆体等。Those skilled in the art can understand that all or part of the process of implementing the method in the above embodiments can be completed by instructing relevant hardware (such as a processor, a controller, etc.) through a computer program, and the computer program can be stored in a computer-readable storage medium . Wherein, the computer-readable storage medium is a magnetic disk, an optical disk, a read-only storage memory or a random storage memory, and the like.

以上对本发明所提供的基于CAN通讯的DBC文件生成方法、装置、设备及介质进行了详细介绍,本文中应用了具体个例对本发明的原理及实施方式进行了阐述,以上实施例的说明只是用于帮助理解本发明的方法及其核心思想;同时,对于本领域的技术人员,依据本发明的思想,在具体实施方式及应用范围上均会有改变之处,综上所述,本说明书内容不应理解为对本发明的限制。The method, device, device and medium for generating a DBC file based on CAN communication provided by the present invention have been described in detail above. In this paper, specific examples are used to illustrate the principles and implementations of the present invention. The description of the above embodiments is only used for In order to help understand the method of the present invention and its core idea; at the same time, for those skilled in the art, according to the idea of the present invention, there will be changes in the specific implementation and application scope. In summary, the content of this specification It should not be construed as a limitation of the present invention.

Claims (10)

CN202210478013.4A2022-04-272022-04-27 DBC file generation method, device, equipment and medium based on CAN communicationActiveCN114780519B (en)

Priority Applications (1)

Application NumberPriority DateFiling DateTitle
CN202210478013.4ACN114780519B (en)2022-04-272022-04-27 DBC file generation method, device, equipment and medium based on CAN communication

Applications Claiming Priority (1)

Application NumberPriority DateFiling DateTitle
CN202210478013.4ACN114780519B (en)2022-04-272022-04-27 DBC file generation method, device, equipment and medium based on CAN communication

Publications (2)

Publication NumberPublication Date
CN114780519Atrue CN114780519A (en)2022-07-22
CN114780519B CN114780519B (en)2025-03-18

Family

ID=82435838

Family Applications (1)

Application NumberTitlePriority DateFiling Date
CN202210478013.4AActiveCN114780519B (en)2022-04-272022-04-27 DBC file generation method, device, equipment and medium based on CAN communication

Country Status (1)

CountryLink
CN (1)CN114780519B (en)

Cited By (5)

* Cited by examiner, † Cited by third party
Publication numberPriority datePublication dateAssigneeTitle
CN115470214A (en)*2022-10-102022-12-13东软睿驰汽车技术(沈阳)有限公司DBC file generation method and device and electronic equipment
CN115542882A (en)*2022-09-302022-12-30东风汽车股份有限公司Controller interface configuration method and device
CN116320048A (en)*2023-02-172023-06-23德力新能源汽车有限公司Method and device for automatically generating DBC
CN116756104A (en)*2023-06-212023-09-15北斗星通智联科技有限责任公司 DBC file update and comparison method, device, electronic equipment and storage medium
CN117201304A (en)*2023-08-302023-12-08赛力斯汽车有限公司Communication matrix updating method, device, computer equipment and medium

Citations (11)

* Cited by examiner, † Cited by third party
Publication numberPriority datePublication dateAssigneeTitle
CN103984580A (en)*2014-05-302014-08-13天津力神电池股份有限公司DBP configuration file, monitoring device configuring method and monitoring device
CN106850372A (en)*2017-02-222017-06-13重庆长安汽车股份有限公司A kind of method of testing and system of controller CAN signal
KR101797005B1 (en)*2017-03-092017-12-13슈어소프트테크주식회사Method for producing test case by vehicle type
CN108829647A (en)*2018-05-042018-11-16天津大学A kind of data transfer device and device
CN109033338A (en)*2018-07-232018-12-18北京新能源汽车股份有限公司Method and system for generating database file of automobile communication protocol
KR20190102427A (en)*2018-02-262019-09-04주식회사 베스티언Fuzzing system for verifying security/quality of can device and fuzzing method thereof
CN112378420A (en)*2020-10-302021-02-19北斗星通智联科技有限责任公司Signal simulation method and system for automobile navigation test and electronic equipment
CN112804186A (en)*2020-07-312021-05-14东风商用车有限公司CAN general message database generation method
CN112799321A (en)*2020-12-142021-05-14东风汽车集团有限公司 A Quick Creation Method of DBC File Following CAN Bus Communication Protocol
CN113094029A (en)*2020-01-082021-07-09广州汽车集团股份有限公司Automatic CAPL code generation method and system and automobile
CN113542086A (en)*2021-06-282021-10-22合肥国轩高科动力能源有限公司 CAN signal starting position calculation method, DBC file generation method

Patent Citations (11)

* Cited by examiner, † Cited by third party
Publication numberPriority datePublication dateAssigneeTitle
CN103984580A (en)*2014-05-302014-08-13天津力神电池股份有限公司DBP configuration file, monitoring device configuring method and monitoring device
CN106850372A (en)*2017-02-222017-06-13重庆长安汽车股份有限公司A kind of method of testing and system of controller CAN signal
KR101797005B1 (en)*2017-03-092017-12-13슈어소프트테크주식회사Method for producing test case by vehicle type
KR20190102427A (en)*2018-02-262019-09-04주식회사 베스티언Fuzzing system for verifying security/quality of can device and fuzzing method thereof
CN108829647A (en)*2018-05-042018-11-16天津大学A kind of data transfer device and device
CN109033338A (en)*2018-07-232018-12-18北京新能源汽车股份有限公司Method and system for generating database file of automobile communication protocol
CN113094029A (en)*2020-01-082021-07-09广州汽车集团股份有限公司Automatic CAPL code generation method and system and automobile
CN112804186A (en)*2020-07-312021-05-14东风商用车有限公司CAN general message database generation method
CN112378420A (en)*2020-10-302021-02-19北斗星通智联科技有限责任公司Signal simulation method and system for automobile navigation test and electronic equipment
CN112799321A (en)*2020-12-142021-05-14东风汽车集团有限公司 A Quick Creation Method of DBC File Following CAN Bus Communication Protocol
CN113542086A (en)*2021-06-282021-10-22合肥国轩高科动力能源有限公司 CAN signal starting position calculation method, DBC file generation method

Cited By (6)

* Cited by examiner, † Cited by third party
Publication numberPriority datePublication dateAssigneeTitle
CN115542882A (en)*2022-09-302022-12-30东风汽车股份有限公司Controller interface configuration method and device
CN115542882B (en)*2022-09-302024-02-27东风汽车股份有限公司Controller interface configuration method and device
CN115470214A (en)*2022-10-102022-12-13东软睿驰汽车技术(沈阳)有限公司DBC file generation method and device and electronic equipment
CN116320048A (en)*2023-02-172023-06-23德力新能源汽车有限公司Method and device for automatically generating DBC
CN116756104A (en)*2023-06-212023-09-15北斗星通智联科技有限责任公司 DBC file update and comparison method, device, electronic equipment and storage medium
CN117201304A (en)*2023-08-302023-12-08赛力斯汽车有限公司Communication matrix updating method, device, computer equipment and medium

Also Published As

Publication numberPublication date
CN114780519B (en)2025-03-18

Similar Documents

PublicationPublication DateTitle
CN114780519A (en)DBC file generation method, device, equipment and medium based on CAN communication
WO2022143540A1 (en)Block chain index storage method and apparatus, computer device and medium
CN111414407A (en) Data query method, device, computer equipment and storage medium for database
CN111428462A (en)Communication protocol template construction method and terminal equipment
CN110191021B (en)Protocol testing method and device, electronic equipment and storage medium
CN110875850A (en)Firmware upgrading method and system, readable storage medium and terminal equipment
CN114528044B (en)Interface calling method, device, equipment and medium
CN113791792B (en) Methods, devices and storage media for obtaining application call information
CN114866533A (en)File uploading method and device and electronic equipment
CN116708591A (en)Protocol conversion method, device, electronic equipment and storage medium
CN116339780A (en)Firmware upgrading method and electronic equipment
CN114615325A (en) Message push method, device, computer equipment and storage medium
CN110046161A (en)Method for writing data and device, storage medium, electronic equipment
CN114328447A (en)Data migration method and device, computer equipment and storage medium
CN113824755B (en)Method, system and related device for processing block chain data
CN112416981A (en)Data processing method and device based on block chain, electronic equipment and storage medium
CN116341481B (en)Clock file confirmation method and device, electronic equipment and storage medium
CN111459819A (en)Software testing method and device, electronic equipment and computer readable medium
CN111475468A (en)Log access method, device, equipment and storage medium of newly added system
CN116243949A (en) A software upgrade method, device, embedded device and storage medium
CN116466986A (en)Equipment software upgrading method and device of energy storage system, communication module and medium
CN115470197A (en) Timing data migration method, device, equipment and storage medium
CN115865797A (en)Method and system for unified routing of APP (application) cross-end pages
CN115328764A (en) Test code optimization method and related equipment based on automated test
CN114968939A (en) A file merging method, device and computer-readable storage medium

Legal Events

DateCodeTitleDescription
PB01Publication
PB01Publication
SE01Entry into force of request for substantive examination
SE01Entry into force of request for substantive examination
GR01Patent grant
GR01Patent grant

[8]ページ先頭

©2009-2025 Movatter.jp