Communication protocol configuration file update method and system

Through the automated communication protocol configuration file update method, the inefficiency of manual verification and modification in communication protocol version updates is solved, and development efficiency is improved.

WO2025209197A1PCT designated stage Publication Date: 2025-10-09YINWANG INTELLIGENT TECHNOLOGIES CO LTD
View PDF 5 Cites 0 Cited by

Patent Information

Application Number
PCT/CN2025/083825
Authority / Receiving Office
WO · WO
Patent Type
Applications
Current Assignee / Owner
Priority Date
2024-03-30
Filing Date
2025-03-20
Publication Date
2025-10-09

AI Technical Summary

Technical Problem

In the prior art, when a communication protocol version is updated, a large amount of information needs to be manually checked and modified to ensure the consistency of the previous and next versions, resulting in low development efficiency.

Method used

A configuration file update method for a communication protocol is provided, which automatically compares and identifies difference information through the device, generates a corresponding configuration file, and reduces manual intervention.

Benefits of technology

It realizes the automatic update of communication protocol version, improves development efficiency and reduces labor costs.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN2025083825_09102025_PF_FP_ABST
    Figure CN2025083825_09102025_PF_FP_ABST
Patent Text Reader

Abstract

The present application relates to the technical field of communications. Disclosed are a communication protocol configuration file update method and a system, which can automatically and correspondingly modify information of communication protocols of new versions to generate corresponding configuration files, so as to meet special requirements corresponding to service demands or other demands. In this solution, the method comprises: comparing information of a first communication protocol with information of a second communication protocol to obtain difference information, the second communication protocol and the first communication protocol being different versions of the same communication protocol; identifying a first configuration file corresponding to the information of the first communication protocol to obtain target information, the target information being used for indicating a modification made for converting the information of the first communication protocol into the first configuration file; on the basis of the target information, making a modification corresponding to the target information for the difference information; and, on the basis of the first configuration file and the modified difference information, generating a second configuration file corresponding to the information of the second communication protocol.
Need to check novelty before this filing date? Find Prior Art

Description

A method and system for updating configuration files of a communication protocol

[0001] This application claims priority to the Chinese patent application filed with the State Intellectual Property Office on March 30, 2024, with application number 202410394841.9 and application name “A method and system for updating configuration files of a communication protocol”, the entire contents of which are incorporated by reference into this application. Technical Field

[0002] The present application relates to the field of communication technology, and in particular to a method and system for updating a configuration file of a communication protocol. Background Art

[0003] Currently, devices in a communication network typically communicate with each other based on agreed-upon communication protocols to accomplish data communication and information transmission and reception. These protocols define basic message information, such as message name, message identifier, signal name, and transmitting and receiving nodes. This information in the communication protocol typically needs to be converted into computer-readable content using relevant software engineering tools. For example, this information is generated into interfaces and structures within a computer program (i.e., generated code), which is then deployed and executed on the corresponding devices to enable parsing of communication data within the network. However, before this information in the communication protocol is converted into computer-readable content, some of it may require special processing to meet business needs or the specific requirements of software engineering tools. For example, multiple signals within a message can be combined to form one or more signal groups (SGs). When converted into interfaces and structures within a computer program, each SG can generate a single interface and structure.

[0004] Because the information defined in communication protocols often changes with evolving requirements, such as the addition or deletion of messages or signals within them, the new version of the communication protocol must be re-converted into computer-readable content using relevant software engineering tools. Before this conversion, some of the new version of the communication protocol still requires special processing to meet business needs or the specific requirements of software engineering tools.

[0005] However, to ensure development continuity, manual processing of the relevant information in the new version of the communication protocol is often required to ensure that the converted information is consistent and computer-readable between the previous and next versions. For example, the name of the SG must be the same between the previous and next versions to ensure the generated interface name remains unchanged. This results in a significant amount of time spent on verification and reconciliation, significantly impacting development efficiency. Summary of the Invention

[0006] This application provides a method and system for updating a communication protocol configuration file, which can automatically modify the information of the new version of the communication protocol and generate a corresponding configuration file to meet business needs or other special requirements, reducing labor costs and improving development efficiency.

[0007] To achieve the above objectives, this application adopts the following technical solutions:

[0008] In a first aspect, a method for updating a configuration file of a communication protocol is provided, which is applied to a device, and the method includes: comparing information of a first communication protocol and information of a second communication protocol to obtain difference information, where the second communication protocol and the first communication protocol are different versions of the same communication protocol; identifying a first configuration file corresponding to the information of the first communication protocol to obtain target information, where the target information is used to indicate modifications made when the information of the first communication protocol is converted into the first configuration file; modifying the difference information corresponding to the target information; and generating a second configuration file corresponding to the information of the second communication protocol based on the first configuration file and the modified difference information.

[0009] The information of the first communication protocol may be the first version of a communication protocol (e.g., the Controller Area Network (CAN) communication protocol), and the information of the second communication protocol may be the second version of the communication protocol. Optionally, the first version may be earlier than the second version, e.g., the information of the first communication protocol may be version 1.0 (an older version) of the CAN communication protocol, and the information of the second communication protocol may be version 2.0 (a newer version) of the CAN communication protocol.

[0010] It is understandable that each version of the communication protocol defines the basic information of the message and signal, but there are differences in the message information and signal information defined in each version, such as the addition or deletion of message information or the addition or deletion of signal information under the message.

[0011] The first configuration file is a file that reflects modifications made to the information of the first communication protocol. These modifications may include special processing of certain fields within the information of the first communication protocol, such as signal grouping (SG), network name modification, and node name modification, based on specific requirements corresponding to business needs or other needs. It will be understood that the first configuration file includes basic information about the messages and signals defined in the information of the first communication protocol, and also reflects specific requirements corresponding to business needs or other needs.

[0012] Optionally, the first configuration file may be a database file modified based on the information of the first communication protocol. The first configuration file may also be a code file corresponding to the modified database file.

[0013] The target information is information in the first configuration file that is of interest to the developer and reflects special requirements. This information can reflect special modifications made by the developer to the information of the first communication protocol based on these special requirements. Alternatively, the target information is SG information in the first configuration file. This SG information can reflect the SG grouping of signal information under a particular message based on business needs.

[0014] The second configuration file reflects modifications to the second communication protocol information. It contains basic information about the messages and signals defined in the second communication protocol information, as well as specific requirements corresponding to business needs or other requirements. It can be understood that in this solution, the device makes the corresponding modifications to the second communication protocol information, eliminating the need for developers to manually modify the information based on specific business needs or other requirements.

[0015] In the solution provided by the first aspect above, when the information of the first communication protocol already corresponds to the first configuration file, the device can identify the target information related to the above special requirements in the first configuration file, that is, the device can infer from the first configuration file what modifications have been made to the information of the first communication protocol. In this way, when the device obtains the information of the second communication protocol with a different version, compared with the information of the first communication protocol, the device can automatically identify the difference information in the information of the second communication protocol (that is, information equivalent to the version update), and automatically complete the corresponding modification of the difference information based on the target information related to the above special requirements inferred by the aforementioned device. Thus, the device can generate a second configuration file corresponding to the information of the second communication protocol based on the first configuration file and the corresponding modified difference information. Thereby, there is no need for developers to manually complete the corresponding modifications to the information of the second communication protocol one by one according to the special requirements corresponding to business needs or other needs, which reduces manual work and improves network development efficiency.

[0016] In one possible implementation, the difference information includes newly added first signal information under the first message information, the target information includes the signal group SG information defined under the first message information, and the SG information is generated based on multiple signal information under the first message information defined by the first communication protocol information; the above-mentioned modification of the difference information corresponding to the target information includes: under the first message information, SG grouping the first signal information.

[0017] That is, when a specific requirement is to combine multiple signal information items under a certain message information to generate one or more signal group (SG) information, if, compared to the information of the first communication protocol, a message information in the second communication protocol contains newly added signal information under a certain message information, the device can identify the signal group (SG) information defined under the message information in the first configuration file and, based on the SG information, group the newly added signal information into an SG group. In this way, the device can implement SG grouping of the newly added signal information to meet the specific requirements of SG grouping.

[0018] In one possible embodiment, SG grouping is performed on the first signal information, including: displaying a first interface, the first interface including the first signal information; in response to an operation on the first signal information, displaying a first control, the first control being used for SG grouping; in response to the operation on the first control, SG grouping is performed on the first signal information under the first message information.

[0019] The first interface is used to confirm the SG grouping of newly added signal information. Developers can selectively group newly added signal information into an SG group on this first interface. The first interface displays the newly added signal information. Optionally, the first interface may also display the message information to which the newly added signal information belongs. For example, the first interface may be the signal processing interface shown in Figure 12, where the first message information may be information about message Abc, and the first signal information may be information about signal Abc-g.

[0020] The first control is used to trigger the SG grouping of newly added signal information. When the developer selects to operate this first control, the device can confirm that the newly added signal information is grouped into the SG group. If the developer does not operate this first control, the device can confirm that the newly added signal information is not grouped into the SG group. In other words, the newly added signal information can be treated as independent signal information and does not need to be included in the SG.

[0021] In this way, the device can display the newly added signal information under a certain message information. When the developer selects a newly added signal information, the corresponding processing control is displayed, allowing the developer to choose whether to perform SG processing on the newly added signal information. The device can then automatically complete the SG grouping of the newly added signal information when the developer selects SG processing. This allows the developer to not only view changes to the second communication protocol information but also trigger the device to complete the corresponding modification of the second communication protocol information with a simple click.

[0022] In one possible implementation, the first control is used to indicate the addition of existing SG information, such as the first control 1201 shown in Figure 12 , or the first control is used to indicate the creation of new SG information, such as the fourth control 1301 shown in Figure 13 . The existing SG information is identified by the device from the first configuration file. Thus, the device can provide developers with corresponding processing controls, allowing them to choose whether to add the new signal to an existing SG group, create a new SG group, or treat it as an independent signal without joining an SG group.

[0023] In one possible implementation, the first control is used to indicate that when adding existing SG information, the first signal information is grouped as an SG, including: adding the first signal information to the SG information under the first message information. It is understood that during version updates, to facilitate developers' handling of specific SGs, the SG name needs to remain unchanged. However, the device does not change the SG name by adding the new signal information to the already defined SG information. This not only completes the SG grouping of the new signal information, but also ensures the consistency of the SG name.

[0024] In one possible implementation, when multiple SG information is defined under the first message information, displaying a first control in response to an operation on the first signal information, the first control being used to group SGs, includes: displaying multiple controls corresponding to the multiple SG information in response to the operation on the first signal information, the multiple controls including the first control being used to indicate target SG information to be added to the multiple SG information. In this way, the device can display controls corresponding to each SG information defined under the first message information in the first configuration file, allowing the developer to select an existing SG to which the newly added signal should be added.

[0025] In this case, the SG grouping of the first signal information in response to the operation on the first control includes: adding the first signal information to the target SG information under the first message information in response to the operation on the first control. In this way, when the developer chooses to add a new signal to the target SG, the device can add the new signal information to the already defined SG information without changing the name of the target SG.

[0026] In one possible implementation, when the first control is used to instruct the creation of new SG information, the aforementioned SG grouping of the newly added signal information includes: creating SG information under the first message information based on the newly added signal information, wherein the created SG information includes the first signal information. In this manner, the device may also provide a control for developers to create new SGs, thereby defining SG information not included in the first configuration file. The developer can then choose to add the newly added signal information to the newly created SG.

[0027] In a possible implementation, the difference information includes newly added second message information, which includes at least one signal information. Modifying the difference information corresponding to the target information includes: creating SG information under the second message information based on the at least one signal information.

[0028] That is to say, if there is new message information in the information of the second communication protocol compared with the information of the first communication protocol, when the device recognizes that there are special requirements for SG grouping in the first configuration file, the device can also determine that the new message information may also have corresponding special requirements for SG grouping. Since there is no definition of SG information for the new message information, the device can complete the definition of creating SG information under the new message information.

[0029] In a possible embodiment, the above-mentioned creation of SG information under the second message information based on at least one signal information includes: displaying a second interface, the second interface including at least one signal information, and the at least one signal information including second signal information; in response to the operation on the second signal information, displaying a second control, the second control is used to create SG information; in response to the operation on the second control, creating SG information under the second message information, and displaying a third control corresponding to the created SG information on the second interface, the third control is used to indicate the addition of the created SG information; in response to the operation on the third control, adding the second signal information to the created SG information under the second message information.

[0030] The second interface is an interface for confirming the SG grouping of the signal information under the newly added message information. The developer can selectively perform SG grouping on a certain signal information under the newly added message information on the second interface. Among them, the second interface displays all the signal information under the newly added message information. Optionally, the second interface can also display the message information to which each signal information belongs. For example, the second interface can be the signal processing interface shown in Figure 13, the newly added second message information can be the new message yyy, the second signal information under the second message information can be the new signal y1, the new signal y2, and the second signal information can be the new signal y1.

[0031] Optionally, the second control is a processing control for triggering the creation of a definition for SG information, such as fourth control 1301 shown in FIG13 . When the developer selects to operate this second control, the device can confirm the creation of a definition for SG information under the newly added second message information. This definition can include a name for the SG, which is entered by the developer, such as yyy-SG entered by the developer in the input box in FIG13 . If the developer does not operate this second control, the device can confirm that the signal information under the newly added message information will not be grouped into SGs, that is, the signal information under the newly added message information can be treated as independent signal information.

[0032] In this way, when the developer clicks on a signal under the newly added message information, the device can provide a corresponding control for creating a new SG, allowing the developer to customize the SG information. After the developer defines the SG information, the device can update and display a control for adding the SG, allowing the developer to choose to add the signal to the SG.

[0033] In one possible implementation, creating SG information under the second message information based on at least one signal information includes: displaying a second interface, the second interface including the second message information and at least one signal information, the at least one signal information including the second signal information; displaying a second control for creating the SG information in response to an operation on the second message information; creating the SG information under the second message information in response to the operation on the second control; displaying a third control corresponding to the created SG information in response to the operation on the second signal information, the third control for indicating that the created SG information should be added; and adding the second signal information to the created SG information under the second message information in response to the operation on the third control. Thus, when a developer clicks on the newly added message information, the device may also provide a control for creating a new SG, allowing the developer to customize the SG information. After the developer has defined the SG information, when the developer clicks on a signal information under the newly added message information, the device may update and display a control for adding the SG information, allowing the developer to select to add the signal information to the SG.

[0034] In one possible implementation, after identifying the first configuration file corresponding to the information of the first communication protocol to obtain target information, the method further includes: displaying an information directory corresponding to the target information, the information directory including message information, SG information under the message, signal information not grouped by SG, and signal information under the SG information. In this manner, after the device identifies the target information related to SG grouping in the first configuration file, i.e., the SG information, it can display it, as shown in FIG8 .

[0035] In one possible embodiment, the target information also includes a network name and / or a node name of the network, and the difference information is modified corresponding to the target information, including: displaying a third interface, the third interface includes a fourth control, and the fourth control is used to modify the network name and / or the node name of the network; in response to the user's operation on the fourth control, the network name and / or the node name of the network defined by the second communication protocol is modified.

[0036] The third interface may be a modification interface for modifying the network name and / or the node name of the network, so as to modify the network name and node name into a network name and a node name that can be recognized and processed by the corresponding tool.

[0037] Optionally, the device provides a network name and node name modification interface for developers to manually modify, as shown in FIG10 .

[0038] Optionally, when the device recognizes that the first configuration file contains a special requirement for modifying the network name and / or network node name, the device may also determine that the second communication protocol information may also have the same special requirement for modifying the network name and / or network node name. Therefore, the device may modify the network name and / or network node name defined in the second communication protocol with reference to the modification of the network name and / or network node name in the first configuration file.

[0039] In one possible embodiment, the first configuration file includes a first database file and a first code file, the first database file is used to generate a first code file, identify the first configuration file corresponding to the information of the first communication protocol to obtain target information, including: identifying the first database file to obtain first key information; identifying the first code file to obtain second key information; when the first key information is consistent with the second key information, determining the first key information as the target information; when the first key information is inconsistent with the second key information, determining the second key information as the target information.

[0040] In this solution, the device can infer the second key information related to the special requirements based on the first code file corresponding to the information of the first communication protocol. In other words, the device can infer the modifications made to the information of the first communication protocol from the first code file. The device can also identify the first key information related to the special requirements based on the first database file corresponding to the information of the first communication protocol. In other words, the device can infer the modifications made to the information of the first communication protocol from the first database file. By comparing the first key information and the second key information, the device can obtain accurate target information.

[0041] It is understandable that since the first code file is installed on the corresponding device, there will be no problem. If the first key information is inconsistent with the second key information, it may be that the developer made modifications directly to the code but did not synchronize the modifications to the database file, resulting in a mismatch between the code and the database file. Therefore, the second key information identified by the first code file needs to be used as the target information.

[0042] In one possible implementation, when the first key information and the second key information are inconsistent, a prompt is displayed, indicating that the first database file is incorrect. Thus, when the device identifies different key information related to special requirements from the first code file and the first database file, it can prompt the developer that the code corresponding to the first communication protocol information does not match the database file, thereby facilitating the developer to modify the database file to maintain an accurate database file.

[0043] In one possible implementation, comparing the information of the first communication protocol and the information of the second communication protocol to obtain difference information includes: obtaining a first database file and / or a first code file corresponding to the information of the first communication protocol, the first database file being modified based on the information of the first communication protocol; obtaining an original database file corresponding to the information of the second communication protocol, the original database file being not modified based on the information of the second communication protocol. The first database file and / or the first code file are compared with the original database file to obtain difference information, the difference information including information related to the modification. In this way, the device can compare the first database file and / or the first code file containing special modified content with the original database file corresponding to the information of the second communication protocol, so that the obtained difference information not only includes additions, deletions, and modifications to the message information and signal information, but also includes special modified content related to these message information and signal information, such as the SG information involved in the deleted signal information.

[0044] In one possible implementation, generating a second configuration file corresponding to information of the second communication protocol based on the first configuration file and the modified difference information includes: comparing the information of the first communication protocol and the information of the second communication protocol to obtain the same information; performing the same processing on the same information in the second communication protocol according to the modifications made to the same information in the first configuration file; and generating the second configuration file corresponding to the information of the second communication protocol based on the same information after the same processing and the modified difference information.

[0045] In this way, after completing the modification of the difference information (equivalent to generating a part of the configuration file), for the message and signal information in the information of the second communication protocol that has not changed, the device can automatically process it according to the structure of the message information and signal information in the first configuration file (equivalent to generating another part of the configuration file), so that the second configuration file corresponding to the information of the second communication protocol can be obtained (equivalent to synthesizing the two parts of the configuration file into the second configuration file). In other words, for the same part of the information of the two versions of the communication protocol, the same processing can be performed according to the first configuration file, and for the different parts of the information of the two versions of the communication protocol, after determining that modification is required, the device can also automatically complete the modification of the different parts. In this way, the second configuration file corresponding to the information of the second communication protocol obtained not only describes the basic information of the message and signal defined in the second communication protocol, but also is consistent with the special requirements corresponding to the business needs or other needs required in the first configuration file, thereby achieving a refresh based on the first configuration file.

[0046] In one possible implementation, the difference information includes third signal information deleted from the first message information, the target information includes signal group SG information defined under the first message information, the SG information is generated based on multiple signal information under the first message information defined by the first communication protocol information, the multiple signal information includes the third signal information, and a second configuration file corresponding to the information of the second communication protocol is generated based on the first configuration file and the modified difference information, including: deleting the third signal information from the SG information under the first message information; and generating the second configuration file corresponding to the second communication protocol information based on the first configuration file, the SG information after deleting the third signal information, and the modified difference information. In this way, if, compared with the information of the first communication protocol, there is deleted signal information under a certain message information in the information of the second communication protocol, and the signal information belongs to a certain SG information, the device can automatically delete the signal information from the SG information.

[0047] Optionally, if compared with the information of the first communication protocol, the information of the second communication protocol contains deleted message information, the device may delete the SG information under the message information.

[0048] In one possible implementation, the method further includes displaying a configuration comparison result, where the configuration comparison result is obtained by comparing the first configuration file and the second configuration file, and the configuration comparison result includes a comparison result of the target information. In this manner, after generating the second configuration file, the device can display the comparison result of the first and second configuration files to the developer, allowing the developer to view changes to the SG information of interest related to special requirements, such as additions, deletions, and modifications to signal information under the SG information, as well as additions and deletions to SG information.

[0049] In one possible implementation, the first configuration file is a first database file, which is used to generate a first code file. When the first database file defines signal group SG information, the first code file includes interfaces and structures generated based on the SG information. The method further includes: when a change in SG information transmission is determined based on the configuration comparison result, displaying the corresponding code change, the code change including a change in the mapping relationship between the interface and the structure. In this way, after generating the second configuration file, the device can display the interface and structure changes corresponding to the SG information change to the developer, allowing the developer to determine whether they meet expectations.

[0050] In a possible implementation, the communication protocol is a controller area network (CAN), and the configuration file is a CAN database (DBC) file.

[0051] In a second aspect, a configuration file update system for a communication protocol is provided, which is applied to an electronic device and includes: a comparison module, an identification module, a processing module, and a generation module. The comparison module is configured to compare information of a first communication protocol with information of a second communication protocol to obtain difference information, where the second communication protocol and the first communication protocol are different versions of the same communication protocol; the identification module is configured to identify a first configuration file corresponding to the information of the first communication protocol to obtain target information, where the target information indicates modifications made when the information of the first communication protocol is converted to the first configuration file; the processing module is configured to modify the difference information corresponding to the target information; and the generation module is configured to generate a second configuration file corresponding to the information of the second communication protocol based on the first configuration file and the modified difference information.

[0052] In a possible implementation, the configuration file update system of the communication protocol is applied to the automotive open system architecture AUTOSAR.

[0053] In a third aspect, an electronic device is provided, comprising a memory and one or more processors; the memory is coupled to the processor; computer program code is stored in the memory, and the computer program code includes computer instructions. When the computer instructions are executed by the processor, the electronic device executes a configuration file update method for a communication protocol as described in any one of the first aspects above.

[0054] Optionally, the electronic device may be equipped with a configuration file updating system of the communication protocol provided in the second aspect.

[0055] In a fourth aspect, a computer-readable storage medium is provided, comprising computer instructions. When the computer instructions are executed on a computer, the computer executes the configuration file updating method of the communication protocol provided in the first aspect.

[0056] In a fifth aspect, a computer program product is provided, comprising program instructions. When the program instructions are executed on a computer, the computer executes the configuration file updating method of the communication protocol provided in the first aspect.

[0057] In a sixth aspect, an embodiment of the present application provides a chip, the chip including a processor, the processor being used to call a computer program in a memory to execute a configuration file update method of a communication protocol as in the first aspect.

[0058] It can be understood that the beneficial effects that can be achieved by the system described in the second aspect, the electronic device described in the third aspect, the computer-readable storage medium described in the fourth aspect, the computer program product described in the fifth aspect, and the chip described in the sixth aspect provided above can refer to the beneficial effects in the first aspect and any possible design method thereof, and will not be repeated here. BRIEF DESCRIPTION OF THE DRAWINGS

[0059] FIG1 is a schematic diagram of the structure of a message and signal provided in an embodiment of the present application;

[0060] FIG2 is a schematic diagram of a communication matrix provided in an embodiment of the present application;

[0061] FIG3 is a schematic diagram of a system flow chart for updating a configuration file according to an embodiment of the present application;

[0062] FIG4 is a flow chart of a method for updating a configuration file of a communication protocol provided in an embodiment of the present application;

[0063] FIG5 is a first schematic diagram of an interface provided in an embodiment of the present application;

[0064] FIG6 is a second schematic diagram of an interface provided in an embodiment of the present application;

[0065] FIG7 is a third schematic diagram of an interface provided in an embodiment of the present application;

[0066] FIG8 is a fourth schematic diagram of an interface provided in an embodiment of the present application;

[0067] FIG9 is a fifth schematic diagram of an interface provided in an embodiment of the present application;

[0068] FIG10 is a sixth schematic diagram of an interface provided in an embodiment of the present application;

[0069] FIG11 is a seventh schematic diagram of an interface provided in an embodiment of the present application;

[0070] FIG12 is a schematic diagram of an interface provided in an embodiment of the present application;

[0071] FIG13 is a ninth interface diagram provided in an embodiment of the present application;

[0072] FIG14 is a schematic diagram of an interface provided in an embodiment of the present application;

[0073] FIG15 is a software block diagram of a configuration file updating system or device for a communication protocol provided in an embodiment of the present application. DETAILED DESCRIPTION

[0074] In the description of this application, unless otherwise specified, " / " indicates that the objects associated before and after are in an "or" relationship, for example, A / B can represent A or B; "and / or" in this application is merely a description of the association relationship of associated objects, indicating that three relationships may exist, for example, A and / or B can represent: A exists alone, A and B exist at the same time, and B exists alone, where A and B can be singular or plural.

[0075] In the description of this application, unless otherwise specified, "plurality" refers to two or more than two. "At least one of" or similar expressions refers to any combination of these objects. For example, at least one of a, b, or c can mean: a, b, c, a and b, a and c, b and c, a, b, and c, where a, b, and c can be single or multiple.

[0076] In addition, to facilitate the clear description of the technical solutions of the embodiments of the present application, in the embodiments of the present application, the words "first" and "second" are used to distinguish between identical or similar items with substantially the same functions and effects. Those skilled in the art will understand that the words "first" and "second" do not limit the quantity or execution order, and the words "first" and "second" do not necessarily mean different.

[0077] In the embodiments of this application, words such as "exemplarily" or "for example" are used to indicate examples, illustrations, or explanations. Any embodiment or design described as "exemplarily" or "for example" in the embodiments of this application should not be construed as being preferred or advantageous over other embodiments or designs. Rather, the use of words such as "exemplarily" or "for example" is intended to present the relevant concepts in a concrete manner to facilitate understanding.

[0078] The features, structures, or characteristics of this application may be combined in any suitable manner in one or more embodiments. In the various embodiments of this application, the order of the sequence numbers of the processes does not necessarily indicate the order of execution. The order of execution of the processes should be determined by their functions and inherent logic, and should not constitute any limitation on the implementation of the embodiments of this application.

[0079] Some optional features in the embodiments of the present application can be implemented independently in certain scenarios without relying on other features to solve corresponding technical problems and achieve corresponding effects. They can also be combined with other features in certain scenarios as needed.

[0080] In this application, unless otherwise specified, the same or similar parts between the various embodiments can be referenced to each other. In the various embodiments of this application, unless otherwise specified and there is no logical conflict, the terms and / or descriptions between different embodiments are consistent and can be referenced to each other. The technical features in different embodiments can be combined to form new embodiments based on their inherent logical relationships. The implementation methods of this application do not constitute a limitation on the scope of protection of this application.

[0081] Currently, devices in a communication network typically communicate with each other based on agreed-upon communication protocols to accomplish data communication and information transmission and reception. These protocols define basic information about messages and signals, such as message names, message identifiers, signal names, and transmitting and receiving nodes.

[0082] Taking the controller area network (CAN), widely used for internal vehicle communications and other industrial scenarios, as an example, a CAN communication system can include a CAN bus and at least two electronic control units (ECUs) or microcontroller units (MCUs) connected to the CAN bus. In other words, each ECU / MCU can be connected to the CAN bus and become a CAN node. Each CAN node can communicate data via the CAN bus based on the CAN communication protocol.

[0083] Currently, the CAN communication protocol is described using a CAN database (DBC) file. A DBC file is a database file used to describe the CAN communication protocol, recording basic information about CAN messages and signals. This information generally needs to be converted into computer-readable content. Currently, this information is typically combined using the Automotive Open System Architecture (AUTOSAR) software engineering tools to generate interfaces and structures in computer programs. This process is also referred to as code generation in this application.

[0084] However, during the code generation process, different AUTOSAR software engineering tools may have special requirements for certain fields in the DBC file. Alternatively, users may have specific requirements for the generated interface type, format, and naming based on business needs, requiring modifications to certain fields in the DBC file. Different car models and car manufacturers may also have different specific requirements. In other words, before the information in the DBC file is converted into computer-readable content, some fields in the DBC file may require special modifications to meet business needs or the specific requirements of the software engineering tool.

[0085] For example, signal groups (SGs) are a special requirement. A message can include one or more signals. When a message includes multiple signals, these signals may exist as separate signals or be grouped into one or more SGs. Each SG may contain one or more signals, and there will be no duplicate signals between SGs.

[0086] As an example, as shown in (a) in Figure 1, there are multiple signals under message Abc. A part of the multiple signals is divided into two different SGs, namely signal group Abc-SG-aa and signal group Abc-SG-bb. Taking signal group Abc-SG-aa as an example, as shown in (b) in Figure 1, signal Abc-c, signal Abc-d and signal Abc-e under message Abc are divided into a group, which is called signal group Abc-SG-aa. Similarly, another part of the signals under message Abc is divided into a group, called signal group Abc-SG-bb. In addition, another part of the signals under message Abc can be used as independent signals and exist separately outside the SG, namely signal Abc-a and signal Abc-b.

[0087] An SG can be understood as a collection of signals with similar information. Therefore, during code generation, a single SG can generate a separate structure and software interface. This way, if a signal under that SG needs to be processed, the user can directly implement it through the interface and structure corresponding to that SG without paying attention to other signals in the message.

[0088] For example, if a CAN node message contains multiple signals, including three signals: the left turn signal, the right turn signal, and the brake light signal, these three signals can form a SG called the headlight SG. Therefore, when using this message, if the developer only needs to process the headlights, they can ignore the other signals in the message and simply use the corresponding interface and structure of the headlight SG, making it easier for developers to process specific needs.

[0089] To maintain development continuity, the SG name cannot be changed, otherwise the interface name will change. Adding or deleting signals under the SG also requires developer confirmation, as the structure will change. Because these are critical factors that affect code logic, special modifications to certain fields in the DBC file are currently performed manually.

[0090] DBC files are typically generated using the CAN communication protocol's communication matrix. The communication matrix is ​​typically a two-dimensional Excel spreadsheet, as shown in Figure 2. The communication matrix defines not only basic information about various CAN messages, such as message name, message identifier, and message type, but also basic information about the signals contained within each CAN message, such as signal name, signal length, and data type. As shown in Figure 2, the communication matrix defines the basic information for message Abc, as well as signals Abc-a, Abc-b, Abc-c, Abc-d, and Abc-e contained within message Abc.

[0091] The CAN communication protocol's communication matrix is ​​frequently updated as requirements change, for example, due to the addition or deletion of message information or signal information within a message. As shown in Figure 3, any changes to the communication matrix will also affect the generated DBC file. A new DBC file must be generated using the AUTOSAR software engineering tool to refresh the code configuration. However, before code generation, some fields in the new DBC file still require specific modifications to ensure that they meet business needs or the specific requirements of the software engineering tool.

[0092] However, for development continuity, code consistency is essential. Therefore, specific modifications to the DBC files must be identical between the previous and next versions, such as the SG names. This means that every change to the CAN communication protocol's communication matrix requires specific modifications and verification.

[0093] Since the communication matrix of the CAN communication protocol describes the basic information of messages and signals, the above-mentioned special requirements usually do not exist. In addition, the same communication matrix may be provided to many different components, each of which has different special requirements. Therefore, it is impossible to directly normalize and carry the above-mentioned special requirements in the communication matrix. The communication matrix can only carry the most basic information. Correspondingly, the DBC file generated based on the communication matrix will only carry basic information. Therefore, after obtaining the DBC file, the developer needs to manually check the fields with special requirements according to the needs and modify these fields to the content the developer wants. However, as the iteration speed of vehicles increases, the changes in the communication matrix of the CAN communication protocol will also accelerate, which causes developers to spend a lot of time modifying the DBC file, seriously affecting the development efficiency of the CAN network.

[0094] Based on the above problems, the present application provides a configuration file update method for a communication protocol, which can realize automatic modification of the new version of DBC file to meet business needs or special requirements of software engineering tools and improve network development efficiency.

[0095] It should be noted that, in addition to the aforementioned SG grouping, special modifications to the DBC file can also include modifications to network names, node names, and the data structure of signals within the message. For example, the original node name ADC in the DBC file can be modified to a new node name MCU that can be recognized and processed by AUTOSAR software engineering tools. This embodiment of the present application does not limit special modifications.

[0096] The configuration file updating method of the communication protocol provided in this application can be applied to a device with the ability to process database files. The device can implement the configuration file updating method of the communication protocol provided in this application embodiment through the components (including hardware and software) it contains. For example, a configuration file updating system of the communication protocol can be installed on the device, and the configuration file updating system can realize automatic transformation of the DBC file of the new version. The configuration file updating method of the communication protocol provided in this application can be applicable to any communication system in the field of vehicle network, such as CAN communication system, local interconnect network (LIN) system, etc. The embodiment of this application takes the CAN communication system as an example, and the configuration file updating system of the communication protocol can be a newly added functional module in the existing AUTOSAR software engineering tool, so that the AUTOSAR software engineering tool can generate code from the DBC file after special modification. Wherein, the type of AUTOSAR software engineering tool is not limited and can be any one of the related technologies.

[0097] The technical solutions provided in the embodiments of the present application will be described in detail below with reference to the accompanying drawings.

[0098] Please refer to Figure 4, which shows a flow chart of a method for updating a configuration file of a communication protocol provided in an embodiment of the present application. The method includes:

[0099] S410: The device compares information of the first communication protocol and information of the second communication protocol to obtain difference information. The second communication protocol and the first communication protocol are different versions of the same communication protocol.

[0100] It's understandable that to enable data communication between different devices in a communication network, the agreed-upon communication protocol information needs to be converted into a corresponding configuration file based on business needs or other requirements to facilitate parsing and managing communication data. This configuration file not only describes the basic information about the messages and signals defined in the communication protocol but also reflects the specific requirements corresponding to business needs or other needs. The information in the communication protocol is iteratively updated as requirements change. Therefore, when new versions of the communication protocol information are obtained, the configuration file needs to be updated accordingly.

[0101] When the device obtains information about a new version of the communication protocol (defined as information about the second communication protocol), it can compare the information about the second communication protocol with the information about the old version of the communication protocol (defined as information about the first communication protocol) to automatically identify the difference between the information about the new and old versions of the communication protocol, that is, the changed information.

[0102] The second communication protocol and the first communication protocol may not be limited to the communication protocol version, and may be different versions of the same communication protocol. For example, the first communication protocol information is version 1.0 of a communication protocol, and the second communication protocol information is version 2.0 of the communication protocol.

[0103] The communication protocol information may refer to basic message and signal information defined in the communication protocol, such as message name, signal name, and transceiver node. In some embodiments, the communication protocol information can be obtained via a communication matrix. The communication matrix is ​​typically a two-dimensional Excel spreadsheet, as shown in Figure 2. The communication matrix defines not only basic information such as message name, message identifier, message type, and transceiver node for various messages, but also basic information such as signal name, signal length, and data type for the signals contained in each message.

[0104] Optionally, the device compares information about the first communication protocol with information about the second communication protocol by comparing a first communication matrix corresponding to the information about the first communication protocol with a second communication matrix corresponding to the information about the second communication protocol to obtain difference information. The first communication matrix and the second communication matrix may be stored locally on the device or obtained from other devices. There is no specific order for obtaining the second communication matrix; for example, the device may obtain the second communication matrix after obtaining the first communication matrix.

[0105] In other embodiments, the communication protocol information may also be obtained through a database file. The database file may be a database file generated based on the communication matrix, which is equivalent to the file format of the communication matrix. For example, the database file of the CAN communication matrix is ​​a DBC file.

[0106] The database file corresponding to the information of the first communication protocol may be an original database file, such as the original DBC file of version 1.0 of the CAN communication protocol. The original database file describes the basic information of the messages and signals defined in the communication protocol information, and does not perform special modifications (such as SG grouping) corresponding to business requirements or other needs.

[0107] The database file corresponding to the information of the first communication protocol can also be a modified database file obtained by making special modifications (such as SG grouping) to the original database file based on special requirements corresponding to business needs or other needs, such as the modified DBC file of version 1.0 of the CAN communication protocol. This modified database file not only describes the basic information of the messages and signals defined in the communication protocol, but also reflects the special requirements corresponding to business needs or other needs. In other words, the above-mentioned configuration file can refer to the modified database file.

[0108] It can be understood that the database file corresponding to the information of the second communication protocol is the original database file because it has not been specially modified (such as SG grouping) according to special requirements corresponding to business needs or other needs.

[0109] Optionally, the device compares the information of the first communication protocol and the information of the second communication protocol by comparing a modified database file corresponding to the information of the first communication protocol with an original database file corresponding to the information of the second communication protocol to obtain difference information. The modified database file corresponding to the information of the first communication protocol and the original database file corresponding to the information of the second communication protocol may be stored locally on the device or obtained from another device.

[0110] In some other embodiments, since the communication protocol is configured on the corresponding device, the modified database file corresponding to the information of the communication protocol needs to be converted into computer-recognizable content (or called a code file). Therefore, the information of the communication protocol can also be deduced by identifying the code file. In the embodiment of the present application, the device can also deduced the content in the modified database file by identifying the code file, such as the basic information of the defined message and signal, and SG information. Optionally, the device can obtain difference information by comparing the content in the deduced modified database file with the original database file corresponding to the information of the second communication protocol. The above-mentioned code file can be stored locally on the device, or it can be obtained from other devices.

[0111] Optionally, the device may identify and compare existing message information and signal information in the information of the first communication protocol and the information of the second communication protocol to obtain difference information. The difference information may include at least one of the following: deleted signal information, deleted message information, newly added signal information, newly added message information, etc.

[0112] After obtaining the difference information, the device may record the difference information. Optionally, the device may also display the difference information.

[0113] As shown in Figure 5, for example, if the difference information includes the addition of information about a signal under message Abc, the device may display the prompt information: Update event CHANGE message Abc; Added ADD + signal Abc-g; Added ADD + signal Abc-h. For another example, if the difference information includes the deletion of information under message Efg, the device may display the prompt information: Delete DEL - message Efg.

[0114] In a possible implementation, the difference information may further include information related to the above-mentioned special modification.

[0115] Taking the example of a special modification to SG grouping, the difference information can also include defined SG information. For example, if signal information is newly added to message Abc, a prompt message can be displayed: Update event CHANGE message Abc SG name group member: Signal group Abc-SG-aa, Signal group Abc-SG-bb; Added signal Abc-g; Added signal Abc-h. This provides information about all SGs associated with the message where the signal change occurred.

[0116] S420: The device identifies a first configuration file corresponding to the information of the first communication protocol to obtain target information, where the target information is used to indicate modifications made when the information of the first communication protocol is converted into the first configuration file.

[0117] The first configuration file is a file that can reflect special modifications to the information of the first communication protocol. It contains basic information of messages and signals defined in the information of the first communication protocol, and also reflects special requirements corresponding to business needs or other needs.

[0118] The target information is information that reflects special requirements that the developer is concerned about, and can instruct the developer to make special modifications to the information of the first communication protocol according to the special requirements. The special modifications can be SG grouping, network name modification, node name modification, etc.

[0119] In a possible implementation, the first configuration file is a modified database file corresponding to the information of the first communication protocol. Taking the CAN communication protocol as an example, the first configuration file may be a DBC file corresponding to the information of the old version of the CAN communication protocol.

[0120] Optionally, the device may identify the target information from the first configuration file based on the key field, such as identifying the target information from a DBC file corresponding to information of an old version of the CAN communication protocol.

[0121] As an example, the key fields can be the message name field, the signal name field, the SG identifier (or SG name) field, so that the device can identify all existing message information, all signal information under the message, and the corresponding SG information and other target information from the DBC file corresponding to the information of the old version of the CAN communication protocol.

[0122] After obtaining the target information, the device can record it. Optionally, the device can also display it. As a method, the device can store all the message information defined in the first configuration file in a data table organized into three levels: message, signal group SG, and signal, and support query functionality.

[0123] As shown in FIG6 , the device can display the information of all defined messages, all signals under the messages, and the SG information to which they belong in the DBC file corresponding to the information of the old version of the CAN communication protocol.

[0124] As another example, the key field may also be a network name field (such as a CAN channel number), a node name field, a signal data type field, etc. Thus, the device can identify information such as the CAN channel, node information, and the data structure of the signal under the message from the DBC file corresponding to the information of the old version of the CAN communication protocol.

[0125] In one possible implementation, the first configuration file is a code file generated from a modified database file corresponding to information of the first communication protocol. Taking the CAN communication protocol as an example, the first configuration file may be a DBC file corresponding to information of an older version of the CAN communication protocol, generated using AUTOSAR software engineering tools.

[0126] Optionally, the device can infer all defined message information, all signal information under the message, and the corresponding SG information and other target information from the code file corresponding to the information of the old version of the CAN communication protocol based on the interface name and structure.

[0127] As an example, as shown in Figure 7, based on the code content, the device can scan the Rte_Write_AA_Body_SG_MDC_1F3_SG_BODY_SG_MDC_1F3_SG_BODY interface name. Based on this interface name, the device can recognize that there is an MDC_1F3 message information, and the SG information MDC_1F3_SG_BODY is contained within the message information. In this interface, the device can also identify the structure that describes the signals of the SG information MDC_1F3_SG_BODY. The content of the structure is the signal information of the SG.

[0128] To maintain the continuity of business logic between version iterations, the Rte interface name is kept as unchanged as possible. This means that the above information can be clearly derived from the Rte interface name. SG_MDC_1F3_SG_BODY_Type, as shown in Figure 7, is a structure composed of all signal information under the corresponding SG, MDC_1F3_SG_BODY. The device can recognize that MDC_1F3_SG_BODY contains four signal information, and their names correspond to the variable names in the structure. The inferred content structure of the corresponding DBC file is shown in Figure 8.

[0129] Based on the DBC file contents inferred from the code, the device can display the message information defined in the file in a data table organized into three levels: message, signal group SG, and signal. As shown in Figure 8, message MDC_1F3 includes signal group MDC_1F3_SG_BODY, signal group xxxxxxx, and signal value yyyyyyy. Signal group MDC_1F3_SG_BODY includes signals xxx11, xxx22, xxx33, and xxx44.

[0130] In this way, the device can infer key information such as the message information defined in the communication protocol information, all signal information under the message, and the SG information to which it belongs based on the code file.

[0131] Optionally, the device may also identify both the modified database file corresponding to the information of the first communication protocol and the code file corresponding to the information of the first communication protocol to obtain accurate target information.

[0132] In one possible implementation, the device may also identify the first key information based on a modified database file corresponding to the information of the first communication protocol, and identify the second key information based on a code file corresponding to the information of the first communication protocol. The device then compares the first and second key information to see if they are consistent. If they are, it indicates that the database file and the code file are identical and the database file is correct. At this point, the first or second key information can be determined as usable target information and recorded.

[0133] It is understood that if there is an inconsistency, it indicates an error in the database file. Since the code file corresponding to the information of the old version of the communication protocol is already in actual use and there is no problem, it is possible that the developer made changes directly to the code but did not synchronize the changes to the database file, resulting in a mismatch between the code and the database file. Therefore, in the event of an inconsistency between the first key information and the second key information, the key information identified in the code file shall prevail, that is, the second key information shall be determined as the usable target information and recorded.

[0134] Optionally, as shown in FIG9 , the device may also compare and display the first key information with the second key information, and display a prompt indicating whether the comparison results are consistent.

[0135] Optionally, when the comparison results are inconsistent, i.e., when there are differences, the device can also automatically improve the database file based on the second key information identified in the code file to ensure that the code is consistent with the database file.

[0136] S430: The device modifies the difference information according to the target information based on the target information.

[0137] In an embodiment of the present application, the device can automatically complete the modification of the information of the new version of the communication protocol based on the special modifications made to the configuration file corresponding to the information of the old version of the communication protocol to obtain the configuration file corresponding to the information of the new version of the communication protocol.

[0138] Optionally, the device may display a processing control corresponding to the special modification made to the target information for the difference information. Thus, based on the user's operation on the processing control, the device may determine whether to make special modifications to the difference information. If a user clicks on the processing control, the device may determine that special modifications are to be made to the difference information, and the device may automatically complete the corresponding special modification processing. If a user click on the processing control is not detected, the device may determine that no special modification is required to the difference information.

[0139] Optionally, the device can also identify the degree of relevance between the difference information and the target information to determine whether there is signal information in the difference information that is similar to the signal information in the target information. This allows the device to automatically perform similar special modification processing on the signal information in the difference information that is similar to the signal information in the target information.

[0140] In one possible implementation, the special modification involves SG grouping, where the target information includes SG information. When the difference information involves newly added signal information, the device can determine whether to perform SG grouping on the newly added signal information based on the identified SG information. Whether to perform SG grouping can include whether to add the newly added signal information to an existing SG group or whether to create a new SG group.

[0141] Optionally, the device may display the newly added signal information and display corresponding processing controls for the user to select whether to add the newly added signal to an existing SG group, create a new SG group, or treat the newly added signal as an independent signal without joining an SG group. The existing SG group is obtained based on the target information.

[0142] Optionally, the device can also identify the degree of correlation between the difference information and the target information to determine whether the difference information contains signal information similar to the signal information in the target information. This allows the device to automatically perform similar special modification processing on signal information in the difference information that is similar to the signal information in the target information. In this way, based on the correlation between the newly added signal information and the signal information in the target information, the newly added signal information can be automatically added to the SG group to which the strongly correlated signal information belongs.

[0143] Optionally, when the difference information involves newly added message information, the device can provide an SG creation button for the user to select whether to create an SG group for the newly added message information. Once the user has created the desired SG group, they can determine whether to join the SG group based on the signal information associated with the newly added message information.

[0144] S440: The device generates a second configuration file corresponding to the information of the second communication protocol based on the first configuration file and the modified difference information.

[0145] In an embodiment of the present application, when it is confirmed that special modifications need to be made to the difference information, the device can automatically complete the transformation of the information of the new version of the communication protocol based on the special modifications made to the configuration file corresponding to the information of the old version of the communication protocol, so as to obtain the configuration file corresponding to the information of the new version of the communication protocol, that is, the second configuration file.

[0146] Optionally, the second configuration file is a modified database file corresponding to the information of the second communication protocol. In this way, after receiving the information of the second communication protocol or the original database file corresponding to the information of the second communication protocol, the device can automatically modify the information of the second communication protocol or the original database file corresponding to the information of the second communication protocol based on the above process to obtain the modified database file corresponding to the information of the second communication protocol.

[0147] Optionally, the second configuration file may also be a code file corresponding to the information of the second communication protocol. In this way, after receiving the information of the second communication protocol or the original database file corresponding to the information of the second communication protocol, the device can not only automatically complete the modification of the information of the second communication protocol or the original database file corresponding to the information of the second communication protocol based on the above process, but also automatically generate a code file based on the modified database file.

[0148] It should be noted that the second configuration file may also be a file in other formats that can reflect the above-mentioned special modification. This embodiment of the present application does not limit this.

[0149] In a possible implementation, the special modification is SG grouping. When the difference information involves the addition of signal information, when the user confirms that the newly added signal information needs to be added to the target SG group, the device can bind the newly added signal information with the identifier of the target SG group.

[0150] When the difference information involves the addition of message information, when the user confirms the need to create an SG group in the newly added message information and chooses to add one or more signal information under the newly added message information to the created SG group, the device can bind the one or more signal information under the newly added message information to the identifier of the created SG group.

[0151] It can be understood that after completing the SG grouping of all newly added message information and signal information, the device can group all signal information bound to the same SG group identifier into a single group based on the SG group identifier recorded for each signal information. This group is called an SG group, and the SG group identifier is the bound SG group identifier. In other words, the device does not actually create an SG group at the outset. Instead, it first determines which SG group each signal belongs to, thereby classifying the signals belonging to the same SG group and completing the creation of the SG group.

[0152] In an embodiment of the present application, after completing the special modification of the difference information (equivalent to generating a part of the configuration file), for the message information and signal information that have not changed in the information of the new version of the communication protocol, the device can automatically process the message information and signal information in accordance with the structure of the first configuration file (equivalent to generating another part of the configuration file), so that the second configuration file corresponding to the information of the new version of the communication protocol can be obtained (equivalent to synthesizing the two parts of the configuration file into the second configuration file). In other words, for the same part of the information of the new and old versions of the communication protocol, the same processing can be performed according to the first configuration file, and for the difference part of the information of the new and old versions of the communication protocol, after determining that special modification is required, the device can also automatically complete the transformation of the difference part. So that the configuration file corresponding to the information of the new version of the communication protocol not only describes the basic information of the message and signal defined in the new version of the communication protocol, but also is consistent with the special requirements corresponding to the business needs or other needs required in the configuration file of the old version. Refreshing to the new version based on the old version of the configuration file is achieved.

[0153] Optionally, the second configuration file is a modified database file corresponding to the information of the second communication protocol. Taking the CAN communication protocol as an example, the second configuration file can be a DBC file corresponding to the new version of the CAN communication protocol.

[0154] Optionally, the second configuration file is a code file generated from a modified database file corresponding to the information of the second communication protocol. Taking the CAN communication protocol as an example, the second configuration file can be a DBC file corresponding to the new version of the CAN communication protocol, generated into a code file using AUTOSAR software engineering tools. That is, after the device completes the DBC file modification, it automatically converts it into a code file.

[0155] The configuration file updating method for a communication protocol provided in the embodiment of the present application enables a device to update the configuration file corresponding to the information of the new version of the communication protocol based on the configuration file corresponding to the information of the old version of the communication protocol when obtaining the information of the new version of the communication protocol, thereby improving network development efficiency.

[0156] As an exemplary scenario, taking the above-mentioned special modification to SG configuration as an example, if the manufacturer provides the v2.0 communication matrix and original DBC file, then the device needs to refresh the modified DBC file corresponding to the v1.0 version of the communication matrix in the AUTOSAR software engineering to the v2.0 version, that is, corresponding to the v2.0 communication matrix.

[0157] (1) First, the device compares the DBC files. The device identifies and records the existing message / signal information in the modified DBC file of version v1.0. It then compares the original DBC file of version v2.0 with the modified DBC file of version v1.0, identifying and recording any deleted or added message / signal information. If one or more message information is added, one or more signal information is added under the xx message information.

[0158] Optionally, the device may also directly compare the communication matrix of version v2.0 with the communication matrix of version v1.0 to identify and record deleted or added message / signal information.

[0159] (2) The device then identifies and records the SG group information to which the message belongs. The device identifies and records the SG group information to which the signals under these messages belong based on the existing message information in the modified DBC file of version v1.0. As shown in Figure 6, the device can store all existing message information in a data table at the three levels of message, SG group, and signal, and supports query functions.

[0160] (3) Then, the device modifies the original DBC file of version v2.0, i.e., creates an SG group, to ensure that the SG name is consistent with that in the modified DBC file of version v1.0.

[0161] Optionally, these special modifications can also include modifying network and node names to ones that AUTOSAR software engineering tools can recognize and process. As shown in Figure 10, the device displays a network and node name modification interface for developers to manually modify. For example, the original network name yyy can be changed to Can00, and the node name ADC can be changed to MCU. After these modifications, the original DBC file for version 2.0 can be transformed from the structure shown in Figure 11 (a) to the structure shown in Figure 11 (b).

[0162] (4) The device can then read the code file corresponding to the communication matrix of version v1.0 in the AUTOSAR software engineering to identify the existing message / signal information and the SG group information to which the signal belongs based on the interface name and structure content. Optionally, the device can store all the identified existing message information in a data table according to the three levels of message-SG group-signal, and support query functions.

[0163] (5) Then, the device can compare and analyze the existing message information and SG group information of the signal under the message identified and recorded by the modified DBC file of version v1.0 in (2) with the existing message information and SG information of the signal under the message identified and recorded by the code file in AUTOSAR in (4). If the two are inconsistent, the device can pop up a message to remind the developer that there may be an error in the modified DBC file of version v1.0. At this time, the device shall take the existing message information and SG information of the signal under the message identified and recorded by the code file as the standard. If the two are consistent, the device can pop up a message to remind the developer that there is no difference between the code file and the modified DBC file.

[0164] (6) The device may then display the newly added signal information recorded in (1), confirm the signal information, and select whether to add it to an existing SG in the message or leave it as an independent one. Optionally, when the user clicks on different signal information, the device may display different SG options corresponding to the message to the right of the signal information.

[0165] For example, if information about signal Abc-g and signal Abc-h is added to message Abc, the device can display the signal processing interface shown in Figure 12. The left side of this interface can display the newly added signal information. The device can also specifically indicate the message in which the newly added signal is located. As shown in Figure 12, when the user clicks the newly added signal Abc-g information under message Abc, the right side of the signal processing interface displays controls for performing operations on the signal.

[0166] The number of operation controls can be determined based on the SG groups that have been divided under the message Abc. For example, when the information of the message Abc includes two SG group information, signal group Abc-SG-aa and signal group Abc-SG-bb, as shown in Figure 12, the right side of the signal processing interface can display the first control 1201 for adding signal group Abc-SG-aa, the second control 1202 for adding signal group Abc-SG-bb, and the third control 1203 for not adding any SG group as an independent signal. Developer users can choose to operate on the newly added signal Abc-g information as needed. For example, developer users can click on the first control 1201 to confirm that the information of signal Abc-g is added to the signal group Abc-SG-aa.

[0167] Optionally, after completing the processing of the signal Abc-g, the developer user may continue to perform similar processing on the next newly added signal information until all signal processing is completed.

[0168] (7) The device can also display the newly added message information recorded in (1) and provide the developer user with the option to create an SG group. The developer user can then perform the operation (6) on the signal information under the newly added message.

[0169] For example, if a new message yyy is added, and the new message yyy includes new signal y1 and new signal y2, the device can display the signal processing interface shown in Figure 13. The left side of this interface can display the newly added message information. The device can specifically display the signal information under the newly added message. As shown in Figure 13, when the user clicks the new signal y1 under the new message yyy, the right side of the signal processing interface displays controls for performing operations on the signal.

[0170] The operation controls may include an input box, a fourth control 1301 for creating a signal group SG, and a fifth control 1302 for removing the signal from the SG group and treating it as an independent signal. Developers can select actions for the new signal y1 information based on their needs. For example, a developer can enter the desired SG name, such as yyy-SG, in the input box and then click fourth control 1301. The device will then create signal group yyy-SG. As shown in Figure 14, the device will then display a sixth control 1303 on the right side for adding the signal to the newly created signal group yyy-SG.

[0171] Optionally, after creating signal group yyy-SG, the developer user can continue to create a new signal group, so that new signal y1 and new signal y2 can choose to join any of the new signal groups.

[0172] Optionally, the developer user can select an operation for the new signal y1 information based on their needs. For example, the developer user can click the sixth control 1303 to confirm that the new signal y1 information is added to the newly created signal group yyy-SG. After completing the processing of the new signal y1 information, the developer user can continue to perform similar processing on the next new signal y2 information, until all signals are processed.

[0173] Optionally, for the newly added signal information under the existing message in (6), a new signal group can also be created under the existing message information, so that the newly added signal information is added to the new signal group instead of being added to the existing signal group.

[0174] (8) After completing the SG configuration, the device directly deletes the deleted message information or signal information recorded in (1).

[0175] (9) Then, the device refreshes the unchanged message information and signal information in the original DBC file of version v2.0 according to the message-SG-signal structure of the AUTOSAR project identified in (4).

[0176] Optionally, if (5) determines that the two are consistent, the device may also update the unchanged message information and signal information in the original DBC file of version v2.0 according to the message-SG-signal structure in the modified DBC file of version v1.0. This ensures that the SG names in versions v2.0 and v1.0 are unchanged.

[0177] (10) The device then processes all newly added message information and signal information. After processing, the developer user can refresh the original DBC file of version v2.0 to the desired format and content with one click. The device can then input the modified DBC file of version v1.0 and compare it with the modified DBC file of version v2.0. The comparative analysis results may include the addition, deletion, and modification of SG information and the addition, deletion, and modification of signal information under SG, as well as the addition, deletion, and modification of message information.

[0178] Optionally, since each SG corresponds to a structure in the code file, the device can also output changes to the correspondence between the structure and the RTe interface. For example, if Signal 1 information is deleted from the SG information, the change in the correspondence between the output structure and the RTe interface can mean that the data structure corresponding to Signal 1 information is deleted from the structure corresponding to the RTe interface. If the SG information is deleted, the change in the correspondence between the output structure and the RTe interface can mean that the RTe interface and structure corresponding to the SG information are deleted.

[0179] It can be understood that the solution provided by this application allows the device to scan interface names and structures based on AUTOSAR projects and infer strongly related content in DBC. This allows accurate identification of business-related content without the need for experience or documentation, reduces development difficulty and error probability, and avoids the problem of incorrect DBC files due to omissions in the DBC transmission process. Because when the DBC file is significantly different from the AUTOSAR project, the user will be proactively asked to confirm. At the same time, the device can also automatically transform the DBC file to meet the requirements of the AUTOSAR engineering software and inherit the special business requirements and format, without the need for manual clicking and dragging, only the necessary confirmation process. Currently, developer users can only analyze and identify changes in the Rte interface, structure changes, etc. after the AUTOSAR tool generates the code. This application allows developer users to quickly know these changes after completing the DBC transformation to identify whether they meet expectations.

[0180] It should be noted that this application uses SG configuration in DBC modification as an example. In actual applications, modifications to other aspects of DBC modification, such as CAN channels, node information, and the data structure of signals under messages, will be reflected in the AUTOSAR engineering software. This means that this information can be deduced by scanning the AUTOSAR engineering code. Therefore, similar methods can be used for automated modification.

[0181] It is understood that in addition to inferring the key content of DBC transformation by scanning the interfaces and structures in the AUTOSAR engineering code to complete the DBC transformation, it is also possible to scan other non-interface or structure features to identify the key content of DBC transformation and complete the DBC transformation. This embodiment of the present application is not limited thereto.

[0182] It is understandable that, in order to implement the above functions, the device includes hardware and / or software modules that perform the corresponding functions. In combination with the algorithm steps of each example described in the embodiments disclosed herein, the present application can be implemented in the form of hardware or a combination of hardware and computer software. Whether a function is executed in the form of hardware or computer software driving hardware depends on the specific application and design constraints of the technical solution. Those skilled in the art can use different methods to implement the described functions for each specific application in combination with the embodiments, but such implementation should not be considered to be beyond the scope of this application.

[0183] In this embodiment, the device can be divided into functional modules according to the above-mentioned method examples. For example, each functional module can be divided according to its function, or two or more functions can be integrated into a single processing module. The above-mentioned integrated modules can be implemented in the form of hardware. It should be noted that the module division in this embodiment is illustrative and only represents a logical functional division. In actual implementation, other division methods may be used.

[0184] The present application also provides a device or system for updating a configuration file of a communication protocol, which can be applied to the above-mentioned device and is used to perform the functions or steps performed by the device in the above-mentioned method embodiment.

[0185] Figure 15 shows a possible composition diagram of the configuration file updating device or system of the communication protocol involved in the above embodiments. As shown in Figure 15, the configuration file updating device or system of the communication protocol may include: a comparison module 1501, an identification module 1502, a processing module 1503 and a generation module 1504.

[0186] The comparison module 1501 is configured to compare information of the first communication protocol and information of the second communication protocol to obtain difference information. The second communication protocol and the first communication protocol are different versions of the same communication protocol.

[0187] The identification module 1502 is configured to identify a first configuration file corresponding to the information of the first communication protocol to obtain target information, where the target information is used to indicate modifications made when the information of the first communication protocol is converted into the first configuration file.

[0188] The processing module 1503 is configured to modify the difference information corresponding to the target information based on the target information.

[0189] The generating module 1504 is configured to generate a second configuration file corresponding to the information of the second communication protocol based on the first configuration file and the modified difference information.

[0190] Optionally, the difference information includes the newly added first signal information under the first message information, the target information includes the signal group SG information defined under the first message information, and when the SG information is generated based on multiple signal information under the first message information defined by the first communication protocol information, the processing module 1503 is used to perform SG grouping on the first signal information under the first message information.

[0191] Optionally, the processing module 1503 is specifically used to: display a first interface, the first interface including first signal information; in response to an operation on the first signal information, display a first control, the first control is used for SG grouping; in response to an operation on the first control, perform SG grouping on the first signal information under the first message information.

[0192] Optionally, when the first control is used to indicate adding existing SG information, the processing module 1503 is used to add the first signal information to the SG information under the first message information.

[0193] Optionally, when there are multiple SG information defined under the first message information, the processing module 1503 is specifically used to: in response to the operation on the first signal information, display multiple controls corresponding to the multiple SG information, the multiple controls include a first control, and the first control is used to indicate the target SG information added to the multiple SG information; in response to the operation on the first control, add the first signal information to the target SG information under the first message information.

[0194] Optionally, when the first control is used to instruct creation of new SG information, the processing module 1503 is used to: create SG information under the first message information based on the newly added signal information, wherein the created SG information includes the first signal information.

[0195] Optionally, the difference information includes newly added second message information, and the second message information includes at least one signal information. The processing module 1503 is configured to create SG information under the second message information based on the at least one signal information.

[0196] Optionally, the processing module 1503 is specifically used to: display a second interface, the second interface includes at least one signal information, and the at least one signal information includes second signal information; in response to an operation on the second signal information, display a second control, and the second control is used to create SG information; in response to an operation on the second control, create SG information under the second message information, and display a third control corresponding to the created SG information on the second interface, and the third control is used to indicate the addition of the created SG information; in response to an operation on the third control, add the second signal information to the created SG information under the second message information.

[0197] Optionally, the processing module 1503 is specifically used to: display a second interface, the second interface includes second message information and at least one signal information, the at least one signal information includes second signal information; in response to an operation on the second message information, display a second control, the second control is used to create SG information; in response to an operation on the second control, create SG information under the second message information; in response to an operation on the second signal information, display a third control corresponding to the created SG information, the third control is used to indicate the addition of the created SG information; in response to an operation on the third control, add the second signal information to the created SG information under the second message information.

[0198] Optionally, the processing module 1503 may be configured to: display an information directory corresponding to the target information, the information directory including message information, SG information under the message and signal information not grouped by SG, and signal information under the SG information.

[0199] Optionally, the target information also includes the network name and / or the node name of the network, and the processing module 1503 can be specifically used to: display a third interface, the third interface includes a fourth control, and the fourth control is used to modify the network name and / or the node name of the network; in response to the user's operation on the fourth control, the network name and / or the node name of the network defined by the second communication protocol is modified.

[0200] Optionally, the first configuration file includes a first database file and a first code file, the first database file is used to generate a first code file, and the identification module 1502 can be specifically used to: identify the first database file to obtain first key information; identify the first code file to obtain second key information; when the first key information is consistent with the second key information, determine the first key information as target information; when the first key information is inconsistent with the second key information, determine the second key information as target information.

[0201] Optionally, the identification module 1502 may also be configured to: when the first key information is inconsistent with the second key information, display a prompt message, where the prompt message is used to indicate that the first database file is incorrect.

[0202] Optionally, comparison module 1501 may be specifically configured to: obtain a first database file and / or a first code file corresponding to information of a first communication protocol, where the first database file has been modified based on the information of the first communication protocol; obtain an original database file corresponding to information of a second communication protocol, where the original database file has not been modified based on the information of the second communication protocol; and compare the first database file and / or the first code file with the original database file to obtain difference information, where the difference information includes information related to the modification.

[0203] Optionally, the generation module 1504 can be specifically used to: compare the information of the first communication protocol and the information of the second communication protocol to obtain the same information; perform the same processing on the same information in the second communication protocol according to the modifications made to the same information in the first configuration file; and generate a second configuration file corresponding to the information of the second communication protocol based on the same information after the same processing and the modified difference information.

[0204] Optionally, the difference information includes the third signal information deleted under the first message information, the target information includes the signal group SG information defined under the first message information, the SG information is generated based on multiple signal information under the first message information defined by the first communication protocol information, and when the multiple signal information includes the third signal information, the generation module 1504 can be specifically used to: delete the third signal information from the SG information under the first message information; generate a second configuration file corresponding to the second communication protocol information based on the first configuration file, the SG information after deleting the third signal information, and the modified difference information.

[0205] Optionally, the communication protocol configuration file updating device or system may further include a result comparison module for displaying a configuration comparison result, where the configuration comparison result is obtained by comparing the first configuration file and the second configuration file, and the configuration comparison result includes a comparison result of the target information.

[0206] Optionally, the first configuration file is a first database file, which is used to generate a first code file. When the first database file defines signal group SG information, the first code file includes an interface and a structure generated based on the SG information. The result comparison module can also be used to: when the SG information sending change is determined based on the configuration comparison result, the corresponding code change is displayed, and the code change includes a change in the mapping relationship between the interface and the structure.

[0207] It should be noted that all relevant contents of each step involved in the above method embodiment can be referred to the functional description of the corresponding functional module and will not be repeated here.

[0208] The apparatus or system for updating a configuration file of a communication protocol provided in this embodiment is used to execute the above-mentioned method for updating a configuration file of a communication protocol, and thus can achieve the same effect as the above-mentioned implementation method.

[0209] An embodiment of the present application also provides a device, including a memory, a processor, and a computer program stored in the memory and executable on the processor. When the processor executes the computer program, the device implements the various functions or steps executed by the device in the above-mentioned various method embodiments.

[0210] The present application also provides a chip system comprising at least one processor and at least one interface circuit. The processor and the interface circuit may be interconnected via a circuit. The interface circuit may read instructions stored in a memory and send the instructions to the processor. When the instructions are executed by the processor, the device may perform the functions or steps performed by the device in the above-described method embodiment. Of course, the chip system may also include other discrete components, which are not specifically limited in the present application.

[0211] An embodiment of the present application further provides a computer storage medium, which includes computer instructions. When the computer instructions are executed on the above-mentioned device, the device executes each function or step executed by the device in the above-mentioned method embodiment.

[0212] An embodiment of the present application further provides a computer program product. When the computer program product is run on a device, the device is enabled to perform the functions or steps performed by the device in the above method embodiment.

[0213] Among them, the equipment, devices, computer storage media, computer program products or chips provided in this embodiment are all used to execute the corresponding methods provided above. Therefore, the beneficial effects that can be achieved can refer to the beneficial effects in the corresponding methods provided above, and will not be repeated here.

[0214] Through the description of the above implementation methods, technical personnel in the relevant field can clearly understand that for the convenience and simplicity of description, only the division of the above-mentioned functional modules is used as an example. In actual applications, the above-mentioned functions can be assigned to different functional modules as needed, that is, the internal structure of the device can be divided into different functional modules to complete all or part of the functions described above.

[0215] In the several embodiments provided in this application, it should be understood that the disclosed devices and methods can be implemented in other ways. For example, the device embodiments described above are merely schematic. For example, the division of the modules or units is merely a logical function division. In actual implementation, there may be other division methods, such as multiple units or components can be combined or integrated into another device, or some features can be ignored or not executed. Another point is that the mutual coupling or direct coupling or communication connection shown or discussed can be through some interfaces, indirect coupling or communication connection of devices or units, which can be electrical, mechanical or other forms.

[0216] The units described as separate components may or may not be physically separate, and the components shown as units may be one physical unit or multiple physical units, that is, they may be located in one place or distributed in multiple places. Some or all of the units may be selected according to actual needs to achieve the purpose of the solution of this embodiment.

[0217] In addition, the functional units in the various embodiments of the present application may be integrated into a single processing unit, or each unit may exist physically separately, or two or more units may be integrated into a single unit. The aforementioned integrated units may be implemented in the form of hardware or software functional units.

[0218] If the integrated unit is implemented in the form of a software functional unit and sold or used as an independent product, it can be stored in a readable storage medium. Based on this understanding, the technical solution of the embodiment of the present application is essentially or the part that contributes to the prior art or all or part of the technical solution can be embodied in the form of a software product, which is stored in a storage medium and includes several instructions for enabling a device (which can be a single-chip microcomputer, chip, etc.) or a processor (processor) to execute all or part of the steps of the method described in each embodiment of the present application. The aforementioned storage medium includes: various media that can store program codes, such as a USB flash drive, a mobile hard disk, a read-only memory (ROM), a random access memory (RAM), a magnetic disk or an optical disk.

[0219] The above content is only a specific embodiment of this application, but the scope of protection of this application is not limited to this. Any changes or replacements within the technical scope disclosed in this application should be included in the scope of protection of this application. Therefore, the scope of protection of this application should be based on the scope of protection of the claims.

Claims

1. A method for updating a configuration file of a communication protocol, characterized in that: The method comprises: comparing information about the first communication protocol and information about the second communication protocol to obtain difference information, where the second communication protocol and the first communication protocol are different versions of the same communication protocol; Identifying a first configuration file corresponding to the information of the first communication protocol to obtain target information, where the target information is used to indicate modifications made when the information of the first communication protocol is converted into the first configuration file; Based on the target information, modify the difference information corresponding to the target information; A second configuration file corresponding to the information of the second communication protocol is generated based on the first configuration file and the modified difference information.

2. The method according to claim 1, characterized in that The difference information includes first signal information newly added under the first message information, the target information includes signal group SG information defined under the first message information, and the SG information is generated based on multiple signal information under the first message information defined by the first communication protocol information; The modifying the difference information corresponding to the target information includes: Under the first message information, the first signal information is grouped into SG groups.

3. The method according to claim 2, characterized in that The performing SG grouping on the first signal information includes: displaying a first interface, where the first interface includes the first signal information; In response to an operation on the first signal information, displaying a first control, where the first control is used to perform SG grouping; In response to the operation on the first control, the first signal information is SG grouped under the first message information.

4. The method according to claim 3, characterized in that The first control is used to instruct to add existing SG information, or the first control is used to instruct to create new SG information.

5. The method according to claim 4, characterized in that When the first control is used to indicate adding existing SG information, the SG grouping of the first signal information includes: The first signal information is added to the SG information under the first message information.

6. The method according to any one of claims 3 to 5, characterized in that: When there is a plurality of SG information defined under the first message information, in response to the operation on the first signal information, a first control is displayed, where the first control is used to group the SGs, including: In response to an operation on the first signal information, displaying a plurality of controls corresponding to the plurality of SG information, the plurality of controls including a first control for indicating target SG information added to the plurality of SG information; The performing SG grouping on the first signal information in response to the operation on the first control includes: In response to the operation on the first control, the first signal information is added to the target SG information under the first message information.

7. The method according to claim 4, characterized in that The first control is used to instruct, when creating new SG information, that the newly added signal information is grouped into SGs, including: Based on the newly added signal information, SG information is created under the first message information, wherein the created SG information includes the first signal information.

8. The method according to any one of claims 1 to 7, characterized in that The difference information includes newly added second message information, the second message information includes at least one signal information, and the modifying the difference information corresponding to the target information includes: Based on the at least one signal information, SG information is created under the second message information.

9. The method according to claim 8, characterized in that The creating SG information under the second message information based on the at least one signal information includes: displaying a second interface, wherein the second interface includes the at least one signal information, and the at least one signal information includes the second signal information; In response to an operation on the second signal information, displaying a second control, where the second control is used to create SG information; In response to an operation on the second control, SG information is created under the second message information, and a third control corresponding to the created SG information is displayed on the second interface, where the third control is used to indicate joining the created SG information; In response to the operation on the third control, the second signal information is added to the created SG information under the second message information.

10. The method according to claim 8, characterized in that The creating SG information under the second message information based on the at least one signal information includes: Displaying a second interface, the second interface including the second message information and the at least one signal information, the at least one signal information including the second signal information; In response to an operation on the second message information, displaying a second control, where the second control is used to create SG information; In response to an operation on the second control, creating SG information under the second message information; In response to an operation on the second signal information, displaying a third control corresponding to the created SG information, wherein the third control is used to instruct to join the created SG information; In response to the operation on the third control, the second signal information is added to the created SG information under the second message information.

11. The method according to any one of claims 2 to 10, characterized in that: After identifying a first configuration file corresponding to the information of the first communication protocol to obtain target information, the method further includes: An information directory corresponding to the target information is displayed, where the information directory includes message information, SG information under the message and signal information that is not SG-grouped, and signal information under the SG information.

12. The method according to any one of claims 1 to 11, characterized in that The target information further includes a network name and / or a node name of the network, and the modifying the difference information corresponding to the target information includes: Displaying a third interface, the third interface including a fourth control, the fourth control being used to modify a network name and / or a node name of the network; In response to a user operation on the fourth control, the network name and / or the node name of the network defined by the second communication protocol is modified.

13. The method according to any one of claims 1 to 12, characterized in that The first configuration file includes a first database file and a first code file, the first database file is used to generate the first code file, and the identifying the first configuration file corresponding to the information of the first communication protocol to obtain target information includes: Identify the first database file and obtain first key information; Identify the first code file and obtain the second key information; When the first key information is consistent with the second key information, determining the first key information as the target information; When the first key information is inconsistent with the second key information, the second key information is determined as the target information.

14. The method according to claim 13, characterized in that The method further comprises: When the first key information is inconsistent with the second key information, a prompt message is displayed, where the prompt message is used to indicate that the first database file is incorrect.

15. The method according to any one of claims 1 to 14, characterized in that The comparing the information of the first communication protocol and the information of the second communication protocol to obtain difference information includes: Acquire a first database file and / or a first code file corresponding to information of a first communication protocol, wherein the first database file is modified based on the information of the first communication protocol; Acquire an original database file corresponding to the information of the second communication protocol, wherein the original database file is not modified based on the information of the second communication protocol; The first database file and / or the first code file is compared with the original database file to obtain difference information, where the difference information includes information related to the modification.

16. The method according to any one of claims 1 to 15, characterized in that The generating, based on the first configuration file and the modified difference information, a second configuration file corresponding to the information of the second communication protocol includes: comparing the information of the first communication protocol and the information of the second communication protocol to obtain identical information; performing the same processing on the same information in the second communication protocol according to the modification made to the same information in the first configuration file; Based on the identical information after identical processing and the modified difference information, a second configuration file corresponding to the information of the second communication protocol is generated.

17. The method according to any one of claims 1 to 16, characterized in that The difference information includes the third signal information deleted under the first message information, the target information includes the signal group SG information defined under the first message information, the SG information is generated based on multiple signal information under the first message information defined by the first communication protocol information, the multiple signal information includes the third signal information, and generating the second configuration file corresponding to the information of the second communication protocol based on the first configuration file and the modified difference information includes: Deleting the third signal information from the SG information under the first message information; A second configuration file corresponding to the second communication protocol information is generated based on the first configuration file, the SG information after deleting the third signal information, and the modified difference information.

18. The method according to any one of claims 1 to 17, characterized in that The method further comprises: A configuration comparison result is displayed, where the configuration comparison result is obtained by comparing the first configuration file and the second configuration file, and the configuration comparison result includes a comparison result of the target information.

19. The method according to claim 18, characterized in that The first configuration file is a first database file, and the first database file is used to generate a first code file. When the first database file defines signal group SG information, the first code file includes an interface and a structure generated based on the SG information. The method further includes: When the SG information transmission change is determined according to the configuration comparison result, the corresponding code change is displayed, and the code change includes a change in the mapping relationship between the interface and the structure.

20. The method according to any one of claims 1 to 19, characterized in that The communication protocol is a controller area network (CAN), and the configuration file is a CAN database (DBC) file.

21. A configuration file updating system for a communication protocol, characterized in that: include: a comparison module, configured to compare information of a first communication protocol with information of a second communication protocol to obtain difference information, wherein the second communication protocol and the first communication protocol are different versions of the same communication protocol; an identification module, configured to identify a first configuration file corresponding to the information of the first communication protocol to obtain target information, wherein the target information is used to indicate modifications made when the information of the first communication protocol is converted into the first configuration file; a processing module, configured to modify the difference information in accordance with the target information; A generating module is configured to generate a second configuration file corresponding to the information of the second communication protocol based on the first configuration file and the modified difference information.

22. The system according to claim 21, wherein: The system is applied to the automotive open system architecture AUTOSAR.

23. A computer-readable storage medium, characterized in that The method comprises computer instructions, which, when executed on a computer, cause the computer to perform the method according to any one of claims 1 to 20.

24. A computer program product, characterized in that The method comprises program instructions, which, when executed on a computer, cause the computer to execute the method according to any one of claims 1 to 20.

Citation Information

Patent Citations

  • Configuration object updating method and apparatus

    CN107547239A

  • Communication protocol information processing method and device and electronic equipment

    CN109729072A

  • LLCE configuration file updating method and device and electronic equipment

    CN116962168A

  • Scalable controller for hardware vteps

    US20170063608A1

  • Command communication via MPIO driver agnostic of underlying communication protocols

    US20200314218A1