CN117785267A - DBC file repairing method and device and electronic equipment - Google Patents

DBC file repairing method and device and electronic equipment Download PDF

Info

Publication number
CN117785267A
CN117785267A CN202311815777.9A CN202311815777A CN117785267A CN 117785267 A CN117785267 A CN 117785267A CN 202311815777 A CN202311815777 A CN 202311815777A CN 117785267 A CN117785267 A CN 117785267A
Authority
CN
China
Prior art keywords
dbc
files
file
repair
repairing
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.)
Pending
Application number
CN202311815777.9A
Other languages
Chinese (zh)
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.)
GAC Aion New Energy Automobile Co Ltd
Original Assignee
GAC Aion New Energy Automobile 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 GAC Aion New Energy Automobile Co Ltd filed Critical GAC Aion New Energy Automobile Co Ltd
Priority to CN202311815777.9A priority Critical patent/CN117785267A/en
Publication of CN117785267A publication Critical patent/CN117785267A/en
Pending legal-status Critical Current

Links

Landscapes

  • Information Retrieval, Db Structures And Fs Structures Therefor (AREA)

Abstract

The embodiment of the application provides a method, a device, electronic equipment and a storage medium for repairing a DBC file, wherein the method comprises the following steps: acquiring a plurality of initial DBC files of different versions; performing attribute detection on the plurality of initial DBC files to obtain a plurality of version difference data; performing primary repair on the version difference data to obtain a plurality of primary repair DBC files; integrating the plurality of primary repairing DBC files to obtain a DBC file to be repaired; and generating a target DBC file according to the DBC file to be repaired. By implementing the embodiment of the application, the errors in the DBC file can be timely found and repaired without manually detecting the messages and signals in the DBC file one by one, so that the detection efficiency and the repair efficiency of the DBC file can be improved, errors are not easy to occur, the repair time of the DBC file can be effectively shortened, and the cost is reduced.

Description

DBC file repairing method and device and electronic equipment
Technical Field
The present invention relates to the field of data analysis technologies, and in particular, to a method, an apparatus, an electronic device, and a storage medium for repairing a DBC file.
Background
The new energy automobile has short project development period, and often has application of new technology and new strategies, so that the controller area network bus (CAN, controller Area Network) needs to be frequently changed in the project development process, and the Database (DBC) file of the corresponding CAN is also frequently changed. However, since the number of messages and signals related to the new energy motor controller is large, each message and signal has many attributes, so that many problems may exist in the newly issued DBC files of the whole vehicle and the system, the various message and signal attributes need to be checked manually, the efficiency is low, mistakes are easy to occur, and the automation of detecting and repairing the errors in the DBC files cannot be realized, if the wrong DBC files are released to a software engineer, the software may not meet the design requirements or bug exists.
Disclosure of Invention
An object of the embodiments of the present application is to provide a method, an apparatus, an electronic device, and a storage medium for repairing a DBC file, which can discover an error in the DBC file in time and repair the DBC file without manually detecting a message and a signal in the DBC file one by one, so that the detection efficiency and the repair efficiency of the DBC file can be improved, errors are not easy to occur, the repair time of the DBC file can be effectively shortened, and the cost is reduced.
In a first aspect, an embodiment of the present application provides a method for repairing a DBC file, where the method includes:
acquiring a plurality of initial DBC files of different versions;
performing attribute detection on the plurality of initial DBC files to obtain a plurality of version difference data;
performing primary repair on the version difference data to obtain a plurality of primary repair DBC files;
integrating the plurality of primary repairing DBC files to obtain a DBC file to be repaired;
and generating a target DBC file according to the DBC file to be repaired.
In the implementation process, the attribute detection is carried out on the initial DBC files of different versions, faults and errors in the files are found timely and repaired timely, the manual one-to-one detection of messages and signals in the DBC files is not needed, the detection efficiency and the repair efficiency of the DBC files can be improved, errors are not easy to occur, the repair time of the DBC files can be effectively shortened, and the cost is reduced.
Further, the step of performing attribute detection on the plurality of initial DBC files to obtain a plurality of version difference data includes:
acquiring attribute information of the plurality of initial DBC files;
comparing version serial numbers of the plurality of initial DBC files according to the attribute information to obtain a plurality of difference results;
and performing attribute detection on the plurality of difference results to obtain the plurality of version difference data.
In the implementation process, the attribute information of the initial DBC files of different versions is compared, so that the change of the attribute information can be obtained quickly, the difference of the attribute information can be found in time, the time for detecting the attribute is saved, and the efficiency is improved.
Further, the step of performing attribute detection on the plurality of difference results to obtain the plurality of version difference data includes:
extracting message information and signal information in the multiple difference results;
configuring a detection item and a repair item according to a DBC protocol standard;
and carrying out attribute detection on the message information and the signal information according to the detection item to obtain the version difference data.
In the implementation process, the message information and the signal information in the multiple difference results are extracted, and the attribute detection is carried out on the message information and the signal information according to the detection items, so that the obtained version difference data is more accurate.
Further, the step of performing attribute detection on the message information and the signal information according to the detection item to obtain the plurality of version difference data includes:
performing attribute detection on the message information and the signal information according to the detection item to obtain configuration attributes which do not meet the item requirements;
positioning the message names and the node information in the plurality of difference results according to the configuration attribute;
and obtaining the version difference data according to the message name and the node information.
In the implementation process, the message name and the node information can be accurately positioned according to the configuration attribute, so that the place with the fault can be conveniently and rapidly found and repaired, and each error in the message information and the signal information can be accurately detected.
Further, the step of integrating the plurality of primary repair DBC files to obtain a DBC file to be repaired includes:
constructing a DBC tool template;
cutting the plurality of primary repair DBC files according to the DBC tool template to obtain a plurality of cut primary repair DBC files;
and integrating the plurality of cut primary repair DBC files to obtain the DBC files to be repaired.
In the implementation process, the primary repair DBC file is cut according to the DBC tool template, so that the formats of the primary repair DBC files of each version are identical, and the subsequent integration of the primary repair DBC files is facilitated, and errors are not easy to occur.
Further, the step of clipping the plurality of preliminary repair DBC files according to the DBC tool template to obtain a plurality of clipped preliminary repair DBC files includes:
acquiring project requirements;
selecting effective signals in the plurality of primary repair DBC files according to the project requirements;
and cutting signals except the effective signals and attributes thereof in the plurality of primary repair DBC files according to the DBC tool template to obtain a plurality of cut primary repair DBC files.
In the implementation process, signals except the effective signals and the attributes thereof are cut, so that the obtained cut primary repair DBC file occupies less space, the data redundancy can be effectively reduced, and the operation efficiency is improved.
Further, the step of generating the DBC file according to the DBC file to be repaired includes:
and converting the DBC file to be repaired to obtain a formatted file containing the standard definition of the controller area network bus, and determining the formatted file containing the standard definition of the controller area network bus as the target DBC file.
In the implementation process, the DBC file to be repaired is converted, so that the obtained DBC file can be stored in various forms, and is convenient to review and apply.
In a second aspect, an embodiment of the present application further provides a repairing device for a DBC file, where the device includes:
the acquisition module is used for acquiring a plurality of initial DBC files of different versions;
the attribute detection module is used for carrying out attribute detection on the plurality of initial DBC files to obtain a plurality of version difference data;
the primary repair module is used for carrying out primary repair on the version difference data to obtain a plurality of primary repair DBC files;
the integration processing module is used for integrating the plurality of primary repair DBC files to obtain a DBC file to be repaired;
and the generating module is used for generating a target DBC file according to the DBC file to be repaired.
In the implementation process, the attribute detection is carried out on the initial DBC files containing different versions, faults and errors in the files are found in time and repaired in time, the manual one-to-one detection of messages and signals in the DBC files is not needed, the detection efficiency and the repair efficiency of the DBC files can be improved, errors are not easy to occur, the repair time of the DBC files can be effectively shortened, and the cost is reduced.
In a third aspect, an electronic device provided in an embodiment of the present application includes: a memory, a processor and a computer program stored in the memory and executable on the processor, the processor implementing the steps of the method according to any one of the first aspects when the computer program is executed.
In a fourth aspect, embodiments of the present application provide a computer-readable storage medium having stored thereon instructions that, when executed on a computer, cause the computer to perform the method according to any of the first aspects.
In a fifth aspect, embodiments of the present application provide a computer program product, which when run on a computer, causes the computer to perform the method according to any one of the first aspects.
Additional features and advantages of the disclosure will be set forth in the description which follows, or in part will be obvious from the description, or may be learned by practice of the techniques of the disclosure.
And may be practiced in accordance with the disclosure as hereinafter described in detail with reference to the preferred embodiments of the present application.
Drawings
In order to more clearly illustrate the technical solutions of the embodiments of the present application, the drawings that are needed in the embodiments of the present application will be briefly described below, it should be understood that the following drawings only illustrate some embodiments of the present application and should not be considered as limiting the scope values, and other related drawings may be obtained according to these drawings without inventive effort for a person of ordinary skill in the art.
Fig. 1 is a flow chart of a method for repairing a DBC file according to an embodiment of the present application;
fig. 2 is a schematic structural diagram of a repairing device for DBC files according to an embodiment of the present application;
fig. 3 is a schematic structural diagram of an electronic device according to an embodiment of the present application.
Detailed Description
The technical solutions in the embodiments of the present application will be described below with reference to the drawings in the embodiments of the present application.
It should be noted that: like reference numerals and letters denote like items in the following figures, and thus once an item is defined in one figure, no further definition or explanation thereof is necessary in the following figures. Meanwhile, in the description of the present application, the terms "first", "second", and the like are used only to distinguish the description, and are not to be construed as indicating or implying relative importance.
The detailed description of the present application is further described in detail below with reference to the drawings and examples. The following examples are illustrative of the present application but are not intended to limit the scope of the values of the present application.
Example 1
Fig. 1 is a flow chart of a method for repairing a DBC file according to an embodiment of the present application, as shown in fig. 1, where the method includes:
s1, acquiring a plurality of initial DBC files of different versions;
s2, performing attribute detection on a plurality of initial DBC files to obtain a plurality of version difference data;
s3, performing primary repair on the difference data of the multiple versions to obtain multiple primary repair DBC files;
s4, integrating the plurality of primary repair DBC files to obtain a DBC file to be repaired;
s5, generating a target DBC file according to the DBC file to be repaired.
In the implementation process, the attribute detection is carried out on the initial DBC files of different versions, faults and errors in the files are found timely and repaired timely, the manual one-to-one detection of messages and signals in the DBC files is not needed, the detection efficiency and the repair efficiency of the DBC files can be improved, errors are not easy to occur, the repair time of the DBC files can be effectively shortened, and the cost is reduced.
The DBC file is a text file, has higher definition freedom, can provide a larger custom space for users, and therefore, the same bus information and text content have larger difference, and the conventional text comparison tool cannot repair the DBC file. The method of the embodiment of the application can be applied to a DBC tool to repair DBC files.
Further, S2 includes:
acquiring attribute information of a plurality of initial DBC files;
comparing version serial numbers of a plurality of initial DBC files according to the attribute information to obtain a plurality of difference results;
and performing attribute detection on the multiple difference results to obtain multiple versions of difference data.
In the implementation process, the attribute information of the initial DBC files of different versions is compared, so that the change of the attribute information can be obtained quickly, the difference of the attribute information can be found in time, the time for detecting the attribute is saved, and the efficiency is improved.
The attribute information comprises a message name, a message ID, a message sending mode and period, a signal name, a signal length and a signal starting position in the message. The two versions of attribute information are compared and shown in the following table:
table 1 comparison table of attribute information of two versions
According to the embodiment of the application, the engineers can concentrate attention on the difference points by analyzing the difference points of the two DBC files, so that the efficiency of software development and testing is improved.
Further, the step of detecting the attribute of the difference result to obtain version difference data includes:
extracting message information and signal information in a plurality of difference results;
configuring a detection item and a repair item according to a DBC protocol standard;
and carrying out attribute detection on the message information and the signal information according to the detection items to obtain a plurality of version difference data.
In the implementation process, the message information and the signal information in the difference result are extracted, and the attribute detection is carried out on the message information and the signal information according to the detection items, so that the obtained version difference data is more accurate.
Alternatively, if the engineering project is concerned about some attributes, the application may automatically generate codes or models according to the project requirements, and if there is a problem with these attribute information, the codes or models will have bug, so attribute detection is required before use.
According to the embodiment of the application, the detection items and the repair items are set according to the DBC protocol standard and the enterprise standard, and the configuration attributes which do not meet the requirements of the items can be checked in a targeted mode.
Further, the step of performing attribute detection on the message information and the signal information according to the detection item to obtain version difference data includes:
performing attribute detection on the message information and the signal information according to the detection items to obtain configuration attributes which do not meet the requirements of the items;
positioning message names and node information in a plurality of difference results according to the configuration attribute;
and obtaining a plurality of version difference data according to the message name and the node information.
In the implementation process, the message name and the node information can be accurately positioned according to the configuration attribute, so that the place with the fault can be conveniently and rapidly found and repaired, and each error in the message information and the signal information can be accurately detected.
Optionally, the detecting content for detecting the attribute of the message information and the signal information includes: whether the message sending node is defined in the initial DBC file, whether the receiving or sending node is the controller node, whether the maximum and minimum values of the signals are within the allowed range defined by the data length, the precision, the offset and the like, and whether the initial values of the signals are within the allowed range.
After knowing the specific message name and node information, specific version difference data can be obtained, for example, the sending node of the A message is illegal, the receiving node of the B message is illegal, the C message is irrelevant to the controller node, the definition range of the A signal of the D message is unreasonable, and the initial value of the B signal of the E message is out of range.
When detecting the initial DBC file, prompting that the Max value of the VCU_NMDataField2 signal of the message with the ID of 0x5E3 exceeds the maximum range allowed by theory; the following message of 0x179 is illegal.
By using the automatic repair function, the problem that the 0x179 message receiving node is incorrect is selectively repaired, the repaired DBC is checked again, and the problem that the signal receiving node below the 0x179 message is illegal is solved.
In S3, according to the errors of the identified messages and signals, the messages and signals can be prompted to be confirmed and then modified, the DBC processing tool can be used for automatic repair, the DBC processing tool is used for checking again after the repair is finished, and the messages and signals of the DBC are ensured to be free of problems through repeated iteration.
Further, S4 includes:
constructing a DBC tool template;
cutting the plurality of primary repair DBC files according to the DBC tool template to obtain a plurality of cut primary repair DBC files;
and integrating the plurality of cut primary repair DBC files to obtain the DBC file to be repaired.
In the implementation process, the primary repair DBC file is cut according to the DBC tool template, so that the formats of the primary repair DBC files of each version are identical, and the subsequent integration of the primary repair DBC files is facilitated, and errors are not easy to occur.
The template defined in the DBC tool of the embodiment of the application cuts the primary repair DBC file.
Optionally, in order to facilitate analysis or data collection of the experiment bench, the DBC files of different controller nodes need to be combined into a file, so that loading of an upper computer of the bench is facilitated, the integration processing is not simple physical integration, when an incompatible condition of attribute definition is met, the DBC files cannot be simply combined together, the difference between the primarily repaired DBC files needs to be identified, the two versions of the primarily repaired DBC files are fused to obtain a total DBC file, all messages, signals and attributes of the white willow are fused, and the incompatible attributes are fused into a universal form.
Further, the step of clipping the preliminary repair DBC file according to the DBC tool template to obtain a clipped preliminary repair DBC file includes:
acquiring project requirements;
selecting effective signals in a plurality of primary repair DBC files according to project requirements;
and cutting signals except for effective signals and attributes thereof in the plurality of primary repair DBC files according to the DBC tool template to obtain a plurality of cut primary repair DBC files.
In the implementation process, signals except the effective signals and the attributes thereof are cut, so that the obtained cut primary repair DBC file occupies less space, the data redundancy can be effectively reduced, and the operation efficiency is improved.
According to project requirements (for example, a third party organization needs to be subjected to outsourcing test), useful signals (effective signals) need to be reserved in the clipping process, the reserved messages and the attributes of the signals cannot be lost, and all the messages and the signals except the effective signals and the attributes thereof are clipped.
Further, S5 includes:
and converting the DBC file to be repaired to obtain a formatted file containing the standard definition of the controller area network bus, and determining the formatted file containing the standard definition of the controller area network bus as a target DBC file.
In the implementation process, the DBC file to be repaired is converted, so that the obtained DBC file can be stored in various forms, and is convenient to review and apply.
In order to facilitate checking the DBC file in time, the embodiment of the application provides a controller area network bus CAN matrix of an Excel version to convert the DBC file to be repaired, generate a file which is convenient to read and modify, does not need to install a DBC analysis tool interface to be checked, is widely used, defines an Excel formatted file when the function of converting the Excel file into the DBC file or converting the DBC file into the Excel file is needed in actual engineering development, completely converts and defines all the attributes of all messages and signals in the DBC file into the Excel file, and simultaneously has the function of converting the Excel file defined by standards into the DBC file without modifying and losing the attributes.
The embodiment of the application CAN be used for a processing tool of a controller area network communication protocol file (CAN bus DBC file) developed based on Matlab script language, and the tool is composed of a foreground interface and background codes, so that the processing tool is convenient and efficient to operate.
Example two
In order to implement a corresponding method of the above embodiment to achieve the responsive function and technical effect, a repairing device for DBC files is provided below, as shown in fig. 2, the device includes:
the acquisition module 1 is used for acquiring a plurality of initial DBC files of different versions;
the attribute detection module 2 is used for carrying out attribute detection on a plurality of initial DBC files to obtain a plurality of version difference data;
the primary repair module 3 is used for carrying out primary repair on the multiple versions of difference data to obtain multiple primary repair DBC files;
the integration processing module 4 is used for performing integration processing on the plurality of primary repairing DBC files to obtain a DBC file to be repaired;
and the generating module 5 is used for generating a target DBC file according to the DBC file to be repaired.
In the implementation process, the attribute detection is carried out on the initial DBC files containing different versions, faults and errors in the files are found in time and repaired in time, the manual one-to-one detection of messages and signals in the DBC files is not needed, the detection efficiency and the repair efficiency of the DBC files can be improved, errors are not easy to occur, the repair time of the DBC files can be effectively shortened, and the cost is reduced.
Further, the attribute detection module 2 is further configured to:
acquiring attribute information of a plurality of initial DBC files;
comparing version serial numbers of a plurality of initial DBC files according to the attribute information to obtain a plurality of difference results;
and performing attribute detection on the multiple difference results to obtain multiple versions of difference data.
In the implementation process, the attribute information of the initial DBC files of different versions is compared, so that the change of the attribute information can be obtained quickly, the difference of the attribute information can be found in time, the time for detecting the attribute is saved, and the efficiency is improved.
Further, the attribute detection module 2 is further configured to:
extracting message information and signal information in a plurality of difference results;
configuring a detection item and a repair item according to a DBC protocol standard;
and carrying out attribute detection on the message information and the signal information according to the detection items to obtain a plurality of version difference data.
In the implementation process, the message information and the signal information in the difference result are extracted, and the attribute detection is carried out on the message information and the signal information according to the detection items, so that the obtained version difference data is more accurate.
Further, the attribute detection module 2 is further configured to:
performing attribute detection on the message information and the signal information according to the detection items to obtain configuration attributes which do not meet the requirements of the items;
positioning message names and node information in a plurality of difference results according to the configuration attribute;
and obtaining a plurality of version difference data according to the message name and the node information.
In the implementation process, the message name and the node information can be accurately positioned according to the configuration attribute, so that the place with the fault can be conveniently and rapidly found and repaired, and each error in the message information and the signal information can be accurately detected.
Further, the integrated processing module 4 is further configured to:
constructing a DBC tool template;
cutting the plurality of primary repair DBC files according to the DBC tool template to obtain a plurality of cut primary repair DBC files;
and integrating the plurality of cut primary repair DBC files to obtain the DBC file to be repaired.
In the implementation process, the primary repair DBC file is cut according to the DBC tool template, so that the formats of the primary repair DBC files of each version are identical, and the subsequent integration of the primary repair DBC files is facilitated, and errors are not easy to occur.
Further, the integrated processing module 4 is further configured to:
acquiring project requirements;
selecting effective signals in a plurality of primary repair DBC files according to project requirements;
and cutting signals except for effective signals and attributes thereof in the plurality of primary repair DBC files according to the DBC tool template to obtain a plurality of cut primary repair DBC files.
In the implementation process, signals except the effective signals and the attributes thereof are cut, so that the obtained cut primary repair DBC file occupies less space, the data redundancy can be effectively reduced, and the operation efficiency is improved.
Further, the generating module 5 is further configured to:
and converting the DBC file to be repaired to obtain a formatted file containing the standard definition of the controller area network bus, and determining the formatted file containing the standard definition of the controller area network bus as a target DBC file.
In the implementation process, the DBC file to be repaired is converted, so that the obtained DBC file can be stored in various forms, and is convenient to review and apply.
The repairing device of the DBC file may implement the method of the first embodiment. The options in the first embodiment described above also apply to this embodiment, and are not described in detail here.
The rest of the embodiments of the present application may refer to the content of the first embodiment, and in this embodiment, no further description is given.
Example III
The embodiment of the application provides an electronic device, which comprises a memory and a processor, wherein the memory is used for storing a computer program, and the processor runs the computer program to enable the electronic device to execute the repairing method of the DBC file in the embodiment I.
Alternatively, the electronic device may be a server.
Referring to fig. 3, fig. 3 is a schematic structural diagram of an electronic device according to an embodiment of the present application. The electronic device may include a processor 31, a communication interface 32, a memory 33, and at least one communication bus 34. Wherein the communication bus 34 is used to enable direct connection communication of these components. The communication interface 32 of the device in the embodiment of the present application is used for performing signaling or data communication with other node devices. The processor 31 may be an integrated circuit chip with signal processing capabilities.
The processor 31 may be a general-purpose processor, including a central processing unit (Central Processing Unit, CPU), a network processor (Network Processor, NP), etc.; but may also be a Digital Signal Processor (DSP), application Specific Integrated Circuit (ASIC), an off-the-shelf programmable gate array (FPGA) or other programmable logic device, discrete gate or transistor logic device, discrete hardware components. The disclosed methods, steps, and logic blocks in the embodiments of the present application may be implemented or performed. The general purpose processor may be a microprocessor or the processor 31 may be any conventional processor or the like.
The Memory 33 may be, but is not limited to, random access Memory (Random Access Memory, RAM), read Only Memory (ROM), programmable Read Only Memory (Programmable Read-Only Memory, PROM), erasable Read Only Memory (Erasable Programmable Read-Only Memory, EPROM), electrically erasable Read Only Memory (Electric Erasable Programmable Read-Only Memory, EEPROM), etc. The memory 33 has stored therein computer readable instructions which, when executed by the processor 31, enable the apparatus to perform the various steps described above in relation to the embodiment of the method of fig. 1.
Optionally, the electronic device may further include a storage controller, an input-output unit. The memory 33, the memory controller, the processor 31, the peripheral interface, and the input/output unit are electrically connected directly or indirectly to each other, so as to realize data transmission or interaction. For example, the components may be electrically coupled to each other via one or more communication buses 34. The processor 31 is arranged to execute executable modules stored in the memory 33, such as software functional modules or computer programs comprised by the device.
The input-output unit is used for providing the user with the creation task and creating the starting selectable period or the preset execution time for the task so as to realize the interaction between the user and the server. The input/output unit may be, but is not limited to, a mouse, a keyboard, and the like.
It will be appreciated that the configuration shown in fig. 3 is merely illustrative, and that the electronic device may also include more or fewer components than shown in fig. 3, or have a different configuration than shown in fig. 3. The components shown in fig. 3 may be implemented in hardware, software, or a combination thereof.
In addition, the embodiment of the present application further provides a computer readable storage medium storing a computer program, where the computer program when executed by a processor implements the method for repairing a DBC file according to the first embodiment.
The present application also provides a computer program product which, when run on a computer, causes the computer to perform the method described in the method embodiments.
In the several embodiments provided in this application, it should be understood that the disclosed apparatus and method may be implemented in other manners as well. The apparatus embodiments described above are merely illustrative, for example, flow diagrams and block diagrams in the figures illustrate the architecture, functionality, and operation of possible implementations of apparatus, methods and computer program products according to various embodiments of the present application. In this regard, each block in the flowchart or block diagrams may represent a module, segment, or portion of code, which comprises one or more executable instructions for implementing the specified logical function(s). It should also be noted that in some alternative implementations, the functions noted in the block may occur out of the order noted in the figures. For example, two blocks shown in succession may, in fact, be executed substantially concurrently, or the blocks may sometimes be executed in the reverse order, depending upon the functionality involved. It will also be noted that each block of the block diagrams and/or flowchart illustration, and combinations of blocks in the block diagrams and/or flowchart illustration, can be implemented by special purpose hardware-based devices which perform the specified functions or acts, or combinations of special purpose hardware and computer instructions.
In addition, the functional modules in the embodiments of the present application may be integrated together to form a single part, or each module may exist alone, or two or more modules may be integrated to form a single part.
The functions, if implemented in the form of software functional modules and sold or used as a stand-alone product, may be stored in a computer-readable storage medium. Based on such understanding, the technical solution of the present application may be embodied essentially or in a part contributing to the prior art or in a part of the technical solution, in the form of a software product stored in a storage medium, including several instructions for causing a computer device (which may be a personal computer, a server, or a network device, etc.) to perform all or part of the steps of the methods described in the embodiments of the present application. And the aforementioned storage medium includes: a usb disk, a removable hard disk, a ROM, a RAM, a magnetic disk, or an optical disk, etc.
The foregoing is merely exemplary embodiments of the present application and is not intended to limit the scope of the present application, and various modifications and variations may be suggested to one skilled in the art. Any modifications, equivalent substitutions, improvements, etc. made within the spirit and principles of the present application are intended to be included within the scope of the present application. It should be noted that: like reference numerals and letters denote like items in the following figures, and thus once an item is defined in one figure, no further definition or explanation thereof is necessary in the following figures.
The foregoing is merely specific embodiments of the present application, but the scope of the present application is not limited thereto, and any person skilled in the art can easily think about changes or substitutions within the scope of the present application, and the changes or substitutions are intended to be covered by the scope of the present application. Therefore, the protection scope of the present application shall be defined by the protection scope of the claims.
It is noted that relational terms such as first and second, and the like are used solely to distinguish one entity or action from another entity or action without necessarily requiring or implying any actual such relationship or order between such entities or actions. Moreover, the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, article, or apparatus. Without further limitation, an element defined by the phrase "comprising one … …" does not exclude the presence of other like elements in a process, method, article, or apparatus that comprises the element.

Claims (10)

1. A method for repairing a DBC file, the method comprising:
acquiring a plurality of initial DBC files of different versions;
performing attribute detection on the plurality of initial DBC files to obtain a plurality of version difference data;
performing primary repair on the version difference data to obtain a plurality of primary repair DBC files;
integrating the plurality of primary repairing DBC files to obtain a DBC file to be repaired;
and generating a target DBC file according to the DBC file to be repaired.
2. The method for repairing DBC files according to claim 1, wherein the step of performing attribute detection on the plurality of initial DBC files to obtain a plurality of version difference data includes:
acquiring attribute information of the plurality of initial DBC files;
comparing version serial numbers of the plurality of initial DBC files according to the attribute information to obtain a plurality of difference results;
and performing attribute detection on the plurality of difference results to obtain the plurality of version difference data.
3. The method for repairing a DBC file according to claim 2, wherein the step of performing attribute detection on the plurality of difference results to obtain the plurality of version difference data includes:
extracting message information and signal information in the multiple difference results;
configuring a detection item and a repair item according to a DBC protocol standard;
and carrying out attribute detection on the message information and the signal information according to the detection item to obtain the version difference data.
4. The method for repairing a DBC file according to claim 3, wherein the step of performing attribute detection on the message information and the signal information according to the detection item to obtain the plurality of version difference data includes:
performing attribute detection on the message information and the signal information according to the detection item to obtain configuration attributes which do not meet the item requirements;
positioning the message names and the node information in the plurality of difference results according to the configuration attribute;
and obtaining the version difference data according to the message name and the node information.
5. The method for repairing DBC files according to claim 1, wherein the step of integrating the plurality of primary repairing DBC files to obtain the DBC file to be repaired includes:
constructing a DBC tool template;
cutting the plurality of primary repair DBC files according to the DBC tool template to obtain a plurality of cut primary repair DBC files;
and integrating the plurality of cut primary repair DBC files to obtain the DBC files to be repaired.
6. The method of repairing DBC files according to claim 5, wherein the step of clipping the plurality of preliminary repair DBC files according to the DBC tool template to obtain a plurality of clipped preliminary repair DBC files includes:
acquiring project requirements;
selecting effective signals in the plurality of primary repair DBC files according to the project requirements;
and cutting signals except the effective signals and attributes thereof in the plurality of primary repair DBC files according to the DBC tool template to obtain a plurality of cut primary repair DBC files.
7. The method of repairing a DBC file according to claim 1, wherein the step of generating the DBC file from the DBC file to be repaired includes:
and converting the DBC file to be repaired to obtain a formatted file containing the standard definition of the controller area network bus, and determining the formatted file containing the standard definition of the controller area network bus as the target DBC file.
8. A repair device for a DBC file, the device comprising:
the acquisition module is used for acquiring a plurality of initial DBC files of different versions;
the attribute detection module is used for carrying out attribute detection on the plurality of initial DBC files to obtain a plurality of version difference data;
the primary repair module is used for carrying out primary repair on the version difference data to obtain a plurality of primary repair DBC files;
the integration processing module is used for integrating the plurality of primary repair DBC files to obtain a DBC file to be repaired;
and the generating module is used for generating a target DBC file according to the DBC file to be repaired.
9. An electronic device comprising a memory for storing a computer program and a processor that runs the computer program to cause the electronic device to perform the method of repairing a DBC file according to any one of claims 1 to 7.
10. A storage medium storing a computer program which, when executed by a processor, implements a method of repairing a DBC file according to any one of claims 1 to 7.
CN202311815777.9A 2023-12-26 2023-12-26 DBC file repairing method and device and electronic equipment Pending CN117785267A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202311815777.9A CN117785267A (en) 2023-12-26 2023-12-26 DBC file repairing method and device and electronic equipment

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202311815777.9A CN117785267A (en) 2023-12-26 2023-12-26 DBC file repairing method and device and electronic equipment

Publications (1)

Publication Number Publication Date
CN117785267A true CN117785267A (en) 2024-03-29

Family

ID=90392292

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202311815777.9A Pending CN117785267A (en) 2023-12-26 2023-12-26 DBC file repairing method and device and electronic equipment

Country Status (1)

Country Link
CN (1) CN117785267A (en)

Similar Documents

Publication Publication Date Title
CN114546738B (en) Universal test method, system, terminal and storage medium for server
CN109241026B (en) Data management method, device and system
CN110019067B (en) Log analysis method and system
CN112861501A (en) Report generation method and device, electronic equipment and computer readable storage medium
CN112817843B (en) Project management method and system
CN117785267A (en) DBC file repairing method and device and electronic equipment
CN109508204B (en) Front-end code quality detection method and device
CN116562227A (en) Chip signal connectivity verification method and device
CN111159028A (en) Webpage testing method and device
CN112882707B (en) Rendering method and device, storage medium and electronic equipment
CN114139262A (en) BIM model creation method and system based on BIM model data standard
CN116150020A (en) Test case conversion method and device
CN112948478A (en) Link-based code analysis method and device, electronic equipment and storage medium
CN114064449A (en) Simulation test report generation method and device, electronic equipment and storage medium
CN115567340B (en) CAN bus test engineering generation method, device, equipment and medium
CN117573192A (en) Configuration verification method and device for vehicle parts and electronic equipment
CN114448851B (en) Automatic data testing method and system
CN117149150A (en) Method and device for constructing software component, electronic equipment and storage medium
CN117056238B (en) Method and computing device for verifying correctness of model conversion under deployment framework
CN117056213A (en) Software testing method and device, electronic equipment and storage medium
CN114090424A (en) Troubleshooting method, troubleshooting device, troubleshooting equipment and computer storage medium
CN114881075A (en) Signal processing method, device and equipment based on motor controller and storage medium
CN117111586A (en) Diagnostic test method and device of vehicle-mounted control unit and electronic equipment
CN114943206A (en) Method and device for generating service list, electronic equipment and storage medium
CN114020646A (en) VPN automatic test method, device, electronic equipment and storage medium

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination