Communication matrix comparison method and device, equipment, storage medium and program product

By sorting and comparing the communication matrix using a pre-organized public index set, the problems of low efficiency and error-prone human comparison of communication matrix are solved, and automated comparison and result display are realized, which improves comparison efficiency and reduces errors.

CN119622176AInactive Publication Date: 2025-03-14SHANGHAI ECAR TECHNOLOGY CO LTD

Patent Information

Application Number
CN202510135376.1
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2025-02-07
Publication Date
2025-03-14
Estimated Expiration
Not applicable · inactive patent

AI Technical Summary

Technical Problem

Manual comparison communication matrix processing is inefficient and error-prone, especially in the analysis of differences between different versions or projects.

Method used

By generating communication matrix comparison instructions, the target communication matrix is ​​sorted using a pre-organized public index set, the structure format is unified, and the differences between different versions or projects are differentiated in the comparison result display page.

Benefits of technology

The automated comparison and result display of communication matrix are realized, which improves the comparison efficiency, reduces human errors, and supports users to quickly identify and analyze communication matrix differences between different versions or projects.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119622176A_ABST
    Figure CN119622176A_ABST
Patent Text Reader

Abstract

The embodiment of the invention provides a communication matrix comparison method and device, equipment, a storage medium and a program product. The method comprises the steps of generating a communication matrix comparison instruction in response to a communication matrix comparison operation of a user; based on the communication matrix comparison instruction, sorting the target communication matrix indicating comparison according to a pre-sorted public index set to obtain a sorted target communication matrix; and displaying the sorted target communication matrix in different areas of a comparison result display page. The method is used for achieving the effects of improving the communication matrix comparison efficiency and reducing manual comparison errors.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the field of data processing technology, and in particular to a communication matrix comparison method, device, equipment, storage medium and program product. Background Art

[0002] The CAN (Controller Area Network) communication matrix is ​​a core component of the CAN network. It defines the message information that each node in the vehicle network needs to receive and send. These message information includes signals, messages, and the relationship between network nodes, which is the basis for ensuring the effective interaction and sharing of information between nodes in the network. The content of the CAN communication matrix is ​​usually displayed in a table.

[0003] During project development, the communication matrix may be modified many times, which brings the need for comparison. Manual comparison of communication matrices is not only inefficient but also prone to errors. Summary of the invention

[0004] The embodiments of the present application provide a communication matrix comparison method, apparatus, device, storage medium and program product to improve the efficiency of communication matrix comparison and reduce human comparison errors.

[0005] In a first aspect, an embodiment of the present application provides a communication matrix comparison method, comprising:

[0006] In response to a communication matrix comparison operation by a user, generating a communication matrix comparison instruction;

[0007] Based on the communication matrix comparison instruction, the target communication matrix for indicating comparison is sorted according to a pre-sorted public index set to obtain a sorted target communication matrix;

[0008] The sorted target communication matrix is ​​displayed in different areas of the comparison result display page.

[0009] In a possible implementation manner, the step of sorting the target communication matrix indicating comparison according to the pre-sorted public index set to obtain the sorted target communication matrix includes:

[0010] Matching several public indexes in the public index set with the communication rule records in the target communication matrix to obtain a target public index, wherein the target public index is a public index among the several public indexes that matches the communication rule records in the target communication matrix;

[0011] The target communication matrix is ​​sorted based on the target common index to obtain a sorted target communication matrix.

[0012] In a possible implementation manner, the target communication matrix is ​​stored in a spreadsheet format, and the target communication matrix is ​​sorted based on the target common index to obtain a sorted target communication matrix, including:

[0013] Creating an empty table using the target public index as a first identifier and the header content of the target communication matrix as a second identifier;

[0014] The table data of the target communication matrix is ​​filled into the empty table to obtain the sorted target communication matrix.

[0015] In a possible implementation, the target communication matrix includes a first communication matrix and a second communication matrix, and the method further includes:

[0016] comparing the sorted first communication matrix and the sorted second communication matrix;

[0017] If the second table data in the sorted second communication matrix is ​​different from the first table data at the corresponding position in the sorted first communication matrix, the first table data and the second table data are displayed differentially.

[0018] In a possible implementation manner, the public index set is obtained by sorting in the following manner:

[0019] Get the communication matrix for each project or version;

[0020] Extracting signal feature information from the communication rule records in the communication matrix;

[0021] Generate a message retrieval index and a signal retrieval index based on the extracted signal feature information, wherein the message retrieval index is used to locate and retrieve messages, and the signal retrieval index is used to locate and retrieve signals;

[0022] The message retrieval indexes and signal retrieval indexes respectively corresponding to the communication matrices are summarized to obtain the public index set.

[0023] In a possible implementation manner, generating a message retrieval index and a signal retrieval index based on the extracted signal feature information includes:

[0024] Based on the message identifier, signal start bit and signal length extracted from the signal characteristic information, a message retrieval index and a signal retrieval index are generated.

[0025] In a possible implementation manner, the target communication matrix is ​​stored in a database file format.

[0026] In a second aspect, an embodiment of the present application provides a communication matrix comparison device, including:

[0027] A generating module, used for generating a communication matrix comparison instruction in response to a communication matrix comparison operation of a user;

[0028] A sorting module is used to sort the target communication matrix indicated for comparison according to a pre-sorted public index set based on the communication matrix comparison instruction to obtain a sorted target communication matrix;

[0029] The display module is used to display the sorted target communication matrix in different areas of the comparison result display page.

[0030] In a possible implementation manner, the collating module is specifically used for:

[0031] Matching several public indexes in the public index set with the communication rule records in the target communication matrix to obtain a target public index, wherein the target public index is a public index among the several public indexes that matches the communication rule records in the target communication matrix;

[0032] The target communication matrix is ​​sorted based on the target common index to obtain a sorted target communication matrix.

[0033] In a possible implementation, the target communication matrix is ​​stored in a spreadsheet format, and the sorting module is specifically used to:

[0034] Creating an empty table using the target public index as a first identifier and the header content of the target communication matrix as a second identifier;

[0035] The table data of the target communication matrix is ​​filled into the empty table to obtain the sorted target communication matrix.

[0036] In a possible implementation manner, the target communication matrix includes a first communication matrix and a second communication matrix, and the communication matrix comparison device is further configured to:

[0037] comparing the sorted first communication matrix and the sorted second communication matrix;

[0038] If the second table data in the sorted second communication matrix is ​​different from the first table data at the corresponding position in the sorted first communication matrix, the first table data and the second table data are displayed differentially.

[0039] In a possible implementation manner, the communication matrix comparison device is further specifically used for:

[0040] Get the communication matrix for each project or version;

[0041] Extracting signal feature information from the communication rule records in the communication matrix;

[0042] Generate a message retrieval index and a signal retrieval index based on the extracted signal feature information, wherein the message retrieval index is used to locate and retrieve messages, and the signal retrieval index is used to locate and retrieve signals;

[0043] The message retrieval indexes and signal retrieval indexes respectively corresponding to the communication matrices are summarized to obtain the public index set.

[0044] In a possible implementation manner, the communication matrix comparison device is further specifically used for:

[0045] Based on the message identifier, signal start bit and signal length extracted from the signal characteristic information, a message retrieval index and a signal retrieval index are generated.

[0046] In a possible implementation manner, the target communication matrix is ​​stored in a database file format.

[0047] In a third aspect, an embodiment of the present application provides a communication matrix comparison device, including: a memory, a processor;

[0048] The memory stores computer-executable instructions;

[0049] The processor executes the computer-executable instructions stored in the memory, so that the processor executes the above first aspect and / or various possible implementations of the first aspect.

[0050] In a fourth aspect, an embodiment of the present application provides a computer-readable storage medium, in which computer-executable instructions are stored. When the computer-executable instructions are executed by a processor, they are used to implement the first aspect above and / or various possible implementations of the first aspect.

[0051] In a fifth aspect, an embodiment of the present application provides a computer program product, including a computer program, which, when executed by a processor, implements the above first aspect and / or various possible implementation methods of the first aspect.

[0052] The communication matrix comparison method, apparatus, device, storage medium and program product provided in the embodiments of the present application generate a communication matrix comparison instruction in response to the user's communication matrix comparison operation, and the communication matrix comparison instruction is used to indicate the target communication matrix to be compared, and use a pre-sorted public index set to sort the target communication matrix. The public index set includes a message retrieval index and a signal retrieval index. By sorting the information in the target communication matrix, the structural format of the target communication matrix is ​​unified, and the sorted target communication matrix is ​​displayed in different areas of the comparison result display page. Through the above steps, the automated comparison and result display of the communication matrix can be effectively realized, and users can be supported to quickly identify and analyze the differences in the communication matrices between different versions or projects, so as to improve the efficiency of communication matrix comparison and reduce human comparison errors. BRIEF DESCRIPTION OF THE DRAWINGS

[0053] The accompanying drawings, which are incorporated in and constitute a part of this specification, illustrate embodiments consistent with the present application and, together with the description, serve to explain the principles of the present application.

[0054] Figure 1 A schematic diagram of the communication matrix provided for this application;

[0055] Figure 2 A schematic diagram of a scenario of the communication matrix comparison method provided in this application;

[0056] Figure 3 Schematic diagram of two communication matrices provided for this application;

[0057] Figure 4 Schematic diagram of the communication matrix comparison method provided in this application Figure 1 ;

[0058] Figure 5 Schematic diagram of the communication matrix comparison method provided in this application Figure 2 ;

[0059] Figure 6 A schematic diagram of aggregating the index sets corresponding to the communication matrices provided in the present application to form a unified public index set;

[0060] Figure 7 A schematic diagram of the comparison result display page provided for this application;

[0061] Figure 8 A schematic diagram of the structure of the communication matrix comparison device provided in this application;

[0062] Fig. 9 A schematic diagram of the structure of the communication matrix comparison device provided in this application.

[0063] The above drawings have shown clear embodiments of the present application, which will be described in more detail later. These drawings and text descriptions are not intended to limit the scope of the present application in any way, but to illustrate the concept of the present application to those skilled in the art by referring to specific embodiments. DETAILED DESCRIPTION

[0064] Exemplary embodiments will be described in detail herein, examples of which are shown in the accompanying drawings. When the following description refers to the drawings, the same numbers in different drawings represent the same or similar elements unless otherwise indicated. The implementations described in the following exemplary embodiments do not represent all implementations consistent with the present application. Instead, they are merely examples of devices and methods consistent with some aspects of the present application as detailed in the appended claims.

[0065] The CAN communication matrix is ​​a table or database that describes the communication relationship between different nodes in the network. It defines the message information that each node in the vehicle network needs to receive and send. These message information contains the specific rules and content of communication between nodes, including the following aspects:

[0066] Network node: A communication entity in a network, which can be an ECU (Electronic Control Unit) or other controller, responsible for sending and receiving messages.

[0067] Message: A network node will send multiple frames of messages, each of which is called a message. The message contains multiple signals.

[0068] Signal: A signal is the basic unit of a message. Usually, a message can contain multiple signals. The definition of a signal includes the signal name, signal start bit, signal length, signal accuracy, signal offset, signal range, and signal value description.

[0069] Reference Figure 1 As shown, it is a schematic diagram of the communication matrix provided by the present application, which confirms and solidifies the message and signal attributes in the message involved in the CAN communication in a tabular form, including the message name, message ID, message period, etc., as well as the signal name, signal start bit, signal length, signal accuracy, signal offset, signal minimum value, signal maximum value, signal value description, etc. in the message. Further, a communication matrix database file, such as a DBC file, can be automatically generated based on the communication matrix table for further application. The communication matrix table and the communication matrix database file are two forms of expression of the CAN communication matrix, providing a structured way to describe signals and messages in the CAN network.

[0070] Figure 2 A schematic diagram of a communication matrix comparison method provided in this application, such as Figure 2As shown, the application scenario of the present application is specifically a scenario in which multiple communication matrices are compared in a terminal device. The terminal device can be a desktop computer, a laptop computer, a tablet computer, a smart phone, etc. The multiple communication matrices can correspond to different projects or different versions of the same project. Different projects may involve different vehicle platforms or systems, and each project may have its own unique CAN communication requirements. Therefore, each project may have its own communication matrix, defining messages and signals specific to the project. In the same project, as the development progresses and the requirements change, the communication matrix may go through multiple versions of iterations. Each version may introduce new messages and signals, or modify existing definitions to adapt to new functional requirements or optimize system performance.

[0071] In view of the above scenario, in the prior art, manual comparison of communication matrices is used to identify differences between different versions or projects. However, different communication matrices have different formats and structures, the same message or the same signal may be in different positions of the communication matrix, and the message contains a variety of signals and signal attributes. Manual comparison may become very complicated and time-consuming. Figure 3 As shown, it is a schematic diagram of two communication matrices provided by the present application. The contents of the left and right communication matrix tables are actually the same, but the arrangement order is different. Manual comparison of communication matrices is not only inefficient, but also prone to errors.

[0072] The communication matrix comparison method provided in the present application generates a communication matrix comparison instruction in response to a user's communication matrix comparison operation. The communication matrix comparison instruction is used to indicate the target communication matrix to be compared, and to use a pre-sorted public index set to sort the target communication matrix. The public index set includes a message retrieval index and a signal retrieval index. By sorting the information in the target communication matrix, the structural format of the target communication matrix is ​​unified, and the sorted target communication matrix is ​​displayed in different areas of the comparison result display page. Through the above steps, the automated comparison and result display of the communication matrix can be effectively realized, and users are supported to quickly identify and analyze the differences in the communication matrices between different versions or projects, solving the technical problem that manual comparison of communication matrices is not only inefficient but also prone to errors.

[0073] The technical solution of the present application and how the technical solution of the present application solves the above-mentioned technical problems are described in detail below with specific embodiments. The following specific embodiments can be combined with each other, and the same or similar concepts or processes may not be repeated in some embodiments. The embodiments of the present application will be described below in conjunction with the accompanying drawings.

[0074] Figure 4 Schematic diagram of the communication matrix comparison method provided in this application Figure 1 ,like Figure 4As shown, the method includes:

[0075] S401. In response to a communication matrix comparison operation of a user, generate a communication matrix comparison instruction.

[0076] In an embodiment of the present application, multiple communication matrices may be provided on a user interface, and each communication matrix entry may include information such as a communication matrix name, a project name, a version number, and a date. A user may select a target communication matrix to be compared from multiple communication matrices through a check box or other selection controls, and click a "Compare" button to generate a communication matrix comparison instruction based on the communication matrix comparison operation. The communication matrix comparison instruction includes a matrix identifier to be compared and other related information.

[0077] S402 , based on the communication matrix comparison instruction, sorting the target communication matrix for comparison according to a pre-sorted public index set to obtain a sorted target communication matrix.

[0078] In the embodiment of the present application, a public index set may be predefined to standardize communication matrices of different formats. The organized target communication matrix is ​​generated based on the standardized data in the public index set, and the target communication matrix is ​​presented in a unified format for subsequent comparison.

[0079] S403: Display the sorted target communication matrix in different areas of the comparison result display page.

[0080] In different areas of the comparison result display page, the organized target communication matrix is ​​displayed. For example, different target communication matrices can be displayed side by side for intuitive comparison by the user. The communication matrix comparison command can effectively guide accurate and efficient comparison operations, helping users to identify and analyze the differences in communication matrices between different versions or projects.

[0081] The communication matrix comparison method provided in the embodiment of the present application generates a communication matrix comparison instruction in response to the user's communication matrix comparison operation, and the communication matrix comparison instruction is used to indicate the target communication matrix to be compared, and uses a pre-sorted public index set to sort the target communication matrix. The public index set includes a message retrieval index and a signal retrieval index. By sorting the information in the target communication matrix, the structural format of the target communication matrix is ​​unified, and the sorted target communication matrix is ​​displayed in different areas of the comparison result display page. Through the above steps, the automated comparison and result display of the communication matrix can be effectively realized, and users can be supported to quickly identify and analyze the differences in the communication matrices between different versions or projects, so as to improve the efficiency of communication matrix comparison and reduce human comparison errors.

[0082] Figure 5 Schematic diagram of the communication matrix comparison method provided in this application Figure 2 ,like Figure 5 As shown, in this embodiment Figure 4 Based on the embodiment, a communication matrix comparison method is described in detail, and the method includes:

[0083] S501. In response to a communication matrix comparison operation of a user, generate a communication matrix comparison instruction.

[0084] S502, based on the communication matrix comparison instruction, matching several public indexes in the public index set with the communication rule records in the target communication matrix to obtain a target public index, where the target public index is a public index among the several public indexes that matches the communication rule records in the target communication matrix.

[0085] Each communication rule record in the communication matrix is ​​used to describe relevant information of a message or a signal. For example, each communication rule record in the communication matrix table is key information for describing in detail the transmission characteristics and behavior of a message or a signal in a communication network.

[0086] The target communication matrix contains multiple communication rule records, each of which describes the properties of a message or signal in detail. For each communication rule record in the target communication matrix, check whether it matches the public index in the public index set. If the field content in the communication rule record matches a public index in the public index set, the public index is regarded as the target public index.

[0087] In a possible implementation, the public index set is obtained by sorting in the following manner:

[0088] Get the communication matrix for each project or version;

[0089] Extract signal feature information based on the communication rule records in the communication matrix;

[0090] Based on the extracted signal feature information, a message retrieval index and a signal retrieval index are generated, wherein the message retrieval index is used to locate and retrieve messages, and the signal retrieval index is used to locate and retrieve signals;

[0091] The message retrieval index and signal retrieval index corresponding to each communication matrix are summarized to obtain a public index set.

[0092] The public indexes in the public index set include message retrieval indexes and signal retrieval indexes.

[0093] In this embodiment, communication matrices of different projects or communication matrices of different versions may be obtained, and these communication matrices contain communication rule records defined in different projects or different versions. For the communication rule records in each communication matrix, signal feature information is extracted. The signal feature information is extracted to identify the unique attributes of each message or signal. Based on the extracted signal feature information, a message retrieval index and a signal retrieval index are generated. The message retrieval index and signal retrieval index corresponding to each communication matrix are aggregated to form a unified public index set. Figure 6 As shown, it is a schematic diagram of aggregating the index sets corresponding to each communication matrix to form a unified public index set provided by the present application. After aggregating the indexes from different communication matrices, these indexes can also be merged, deduplicated and sorted.

[0094] In a possible implementation, generating a message retrieval index and a signal retrieval index based on the extracted signal feature information may specifically include:

[0095] Based on the message identifier, signal start bit and signal length in the extracted signal feature information, a message retrieval index and a signal retrieval index are generated.

[0096] In this embodiment, a method for generating a message retrieval index and a signal retrieval index based on extracted signal characteristic information is provided. Specifically, the extracted signal characteristic information may include a message identifier, a signal start bit, and a signal length. These three types of information may be filled into a specified data structure to obtain a signal retrieval index. For the message retrieval index, only the message identifier may be filled into the specified data structure, and the signal start bit and signal length may be set to 0. Thus, each message and each signal may obtain their own unique retrieval index, for example: ID_0x111_StartBit_12_DataLenth_4, ID_0x111_StartBit_00_DataLenth_00.

[0097] S503: sorting the target communication matrix based on the target common index to obtain a sorted target communication matrix.

[0098] In a possible implementation, the target communication matrix is ​​stored in a spreadsheet format, and the target communication matrix is ​​sorted based on the target common index to obtain the sorted target communication matrix, which may specifically include:

[0099] Creating an empty table using the target public index as a first identifier and the header content of the target communication matrix as a second identifier;

[0100] The table data of the target communication matrix is ​​filled into the empty table to obtain the sorted target communication matrix.

[0101] In this embodiment, the matched target public index can be used as the first identifier, for example, as a row identifier, and the original header content of the target communication matrix can be used as the second identifier, for example, as a column identifier. An empty table is created, wherein the number of rows of the empty table is determined according to the number of first identifiers, and the number of columns and column headers of the table are determined according to the number of second identifiers. The first identifier can be filled in the specified column of the empty table, and the second identifier can be filled in the specified row of the empty table. The table data of the target communication matrix is ​​read, and the table data of the target communication matrix is ​​filled into the cells corresponding to the newly created empty table to obtain the sorted target communication matrix.

[0102] S504: Display the sorted target communication matrix in different areas of the comparison result display page.

[0103] In a possible implementation, the target communication matrix includes a first communication matrix and a second communication matrix, and the communication matrix comparison method of the present application may further include:

[0104] comparing the sorted first communication matrix and the sorted second communication matrix;

[0105] If the second table data in the sorted second communication matrix is ​​different from the first table data at the corresponding position in the sorted first communication matrix, the first table data and the second table data are displayed differentially.

[0106] The sorted first communication matrix and the sorted second communication matrix have the same row and column structure. Check whether the data in the sorted second communication matrix is ​​the same as the data at the corresponding position in the sorted first communication matrix. If not, differential display can be performed.

[0107] In a possible implementation, differentially displaying the first table data and the second table data includes:

[0108] Fill the corresponding position of the second table data with the specified color.

[0109] Reference Figure 7 As shown, it is a schematic diagram of the comparison result display page provided by the present application. When the data at the corresponding positions of the communication matrix 1 and the communication matrix 2 are different, the corresponding positions are filled with a specified color.

[0110] Furthermore, when multiple communication matrices need to be compared, the order of comparison can be defined, and the differentiated display method can be defined. For example, it can be specified that communication matrix 2 is first compared with communication matrix 1, and the differences are filled with the first color, and then communication matrix 2 is compared with communication matrix 3, and the differences are filled with the second color.

[0111] In a possible implementation, the target communication matrix is ​​stored in a database file format.

[0112] The above method is mainly explained in spreadsheet format, but the same logic and steps are also applicable to the communication matrix in database file format.

[0113] The communication matrix comparison method provided in the embodiment of the present application generates a communication matrix comparison instruction in response to the user's communication matrix comparison operation, and the communication matrix comparison instruction is used to indicate the target communication matrix to be compared, and uses a pre-sorted public index set to sort the target communication matrix. The public index set includes a message retrieval index and a signal retrieval index. By sorting the information in the target communication matrix, the structural format of the target communication matrix is ​​unified, and the sorted target communication matrix is ​​displayed in different areas of the comparison result display page. Through the above steps, the automated comparison and result display of the communication matrix can be effectively realized, and users can be supported to quickly identify and analyze the differences in the communication matrices between different versions or projects, so as to improve the efficiency of communication matrix comparison and reduce human comparison errors.

[0114] The communication matrix comparison method of the embodiment of the present application combs the communication matrix according to a unified rule, can intuitively compare the differences of the communication matrix, facilitate the inspection and update, and timely discover abnormal modifications, and effectively solve the problem of low efficiency and high error rate of manual comparison of communication matrices. This technical solution can intuitively reflect the similarities and differences between multiple communication matrices, and facilitate the version management and difference analysis of communication matrices.

[0115] Figure 8 A schematic diagram of the structure of the communication matrix comparison device provided in this application, such as Figure 8 As shown, the communication matrix comparison device 80 provided in this embodiment includes:

[0116] A generating module 801 is used to generate a communication matrix comparison instruction in response to a user's communication matrix comparison operation;

[0117] The sorting module 802 is used to sort the target communication matrix indicated for comparison according to the pre-sorted public index set based on the communication matrix comparison instruction to obtain a sorted target communication matrix;

[0118] The display module 803 is used to display the sorted target communication matrix in different areas of the comparison result display page.

[0119] In a possible implementation, the sorting module is specifically used to:

[0120] Matching several public indexes in the public index set with the communication rule records in the target communication matrix to obtain a target public index, where the target public index is a public index in the several public indexes that matches the communication rule records in the target communication matrix;

[0121] The target communication matrix is ​​sorted based on the target common index to obtain a sorted target communication matrix.

[0122] In a possible implementation, the target communication matrix is ​​stored in a spreadsheet format, and the sorting module is specifically used to:

[0123] Creating an empty table using the target public index as a first identifier and the header content of the target communication matrix as a second identifier;

[0124] The table data of the target communication matrix is ​​filled into the empty table to obtain the sorted target communication matrix.

[0125] In a possible implementation manner, the target communication matrix includes a first communication matrix and a second communication matrix, and the communication matrix comparison device is further used to:

[0126] comparing the sorted first communication matrix and the sorted second communication matrix;

[0127] If the second table data in the sorted second communication matrix is ​​different from the first table data at the corresponding position in the sorted first communication matrix, the first table data and the second table data are displayed differentially.

[0128] In a possible implementation, the communication matrix comparison device is further used to:

[0129] Get the communication matrix for each project or version;

[0130] Extract signal feature information based on the communication rule records in the communication matrix;

[0131] Based on the extracted signal feature information, a message retrieval index and a signal retrieval index are generated, wherein the message retrieval index is used to locate and retrieve messages, and the signal retrieval index is used to locate and retrieve signals;

[0132] The message retrieval index and signal retrieval index corresponding to each communication matrix are summarized to obtain a public index set.

[0133] In a possible implementation, the communication matrix comparison device is further used to:

[0134] Based on the message identifier, signal start bit and signal length in the extracted signal feature information, a message retrieval index and a signal retrieval index are generated.

[0135] In a possible implementation, the target communication matrix is ​​stored in a database file format.

[0136] The communication matrix comparison device provided in this embodiment can execute the method provided in the above method embodiment. Its implementation principle and technical effect are similar, and this embodiment will not be described in detail here.

[0137] Fig. 9 This is a schematic diagram of the structure of the communication matrix comparison device provided in this application. Fig. 9 As shown, the communication matrix comparison device 90 provided in this embodiment includes: at least one processor 901 and a memory 902. Optionally, the device 90 also includes a communication component 903. The processor 901, the memory 902 and the communication component 903 are connected via a bus.

[0138] In a specific implementation process, at least one processor 901 executes the computer execution instructions stored in the memory 902, so that at least one processor 901 executes the above method.

[0139] The specific implementation process of the processor 901 can be found in the above method embodiment, and its implementation principle and technical effect are similar, so this embodiment will not be repeated here.

[0140] In the above embodiments, it should be understood that the processor can be a central processing unit (CPU), or other general-purpose processors, digital signal processors (DSP), application-specific integrated circuits (ASIC), etc. A general-purpose processor can be a microprocessor or any conventional processor. The steps of the method disclosed in the invention can be directly implemented as a hardware processor, or can be implemented by a combination of hardware and software modules in the processor.

[0141] The memory may include a high-speed memory (Random Access Memory, RAM), and may also include a non-volatile memory (NVM), such as at least one disk storage.

[0142] The bus can be an Industry Standard Architecture (ISA) bus, a Peripheral Component Interconnect (PCI) bus, or an Extended Industry Standard Architecture (EISA) bus, etc. The bus can be divided into an address bus, a data bus, a control bus, etc. For ease of representation, the bus in the drawings of this application is not limited to only one bus or one type of bus.

[0143] The present application also provides a computer program product, including a computer program, which implements the above method when executed by a processor.

[0144] The present application also provides a computer-readable storage medium, in which computer-executable instructions are stored. When a processor executes the computer-executable instructions, the above method is implemented.

[0145] The above-mentioned readable storage medium can be implemented by any type of volatile or non-volatile storage device or a combination thereof, such as static random access memory (SRAM), electrically erasable programmable read-only memory (EEPROM), erasable programmable read-only memory (EPROM), programmable read-only memory (PROM), read-only memory (ROM), magnetic memory, flash memory, magnetic disk or optical disk. The readable storage medium can be any available medium that can be accessed by a general or special-purpose computer.

[0146] An exemplary readable storage medium is coupled to a processor so that the processor can read information from the readable storage medium and write information to the readable storage medium. Of course, the readable storage medium can also be a component of the processor. The processor and the readable storage medium can be located in an application specific integrated circuit (Application Specific Integrated Circuits, referred to as: ASIC). Of course, the processor and the readable storage medium can also exist in the device as discrete components.

[0147] The division of units is only a logical function division, and there may be other divisions in actual implementation, such as multiple units or components can be combined or integrated into another system, 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 an indirect coupling or communication connection through some interface, device or unit, which can be electrical, mechanical or other forms.

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

[0149] In addition, each functional unit in each embodiment of the present invention may be integrated into one processing unit, or each unit may exist physically separately, or two or more units may be integrated into one unit.

[0150] If the function is implemented in the form of a software functional unit and sold or used as an independent product, it can be stored in a computer-readable storage medium. Based on this understanding, the technical solution of the present invention, or the part that contributes to the prior art, or the part of the technical solution, can be embodied in the form of a software product. The computer software product is stored in a storage medium, including several instructions for a computer device (which can be a personal computer, server, or network device, etc.) to perform all or part of the steps of the methods of each embodiment of the present invention. The aforementioned storage medium includes: U disk, mobile hard disk, read-only memory (ROM, Read-Only Memory), random access memory (RAM, Random Access Memory), disk or optical disk, etc. Various media that can store program codes.

[0151] Those skilled in the art can understand that all or part of the steps of implementing the above-mentioned method embodiments can be completed by hardware related to program instructions. The aforementioned program can be stored in a computer-readable storage medium. When the program is executed, the steps of the above-mentioned method embodiments are executed; and the aforementioned storage medium includes: ROM, RAM, disk or optical disk and other media that can store program codes.

[0152] Finally, it should be noted that those skilled in the art will readily conceive of other embodiments of the present invention after considering the specification and practicing the invention disclosed herein. The present invention is intended to cover any variations, uses or adaptations of the present invention, which follow the general principles of the present invention and include common knowledge or customary technical means in the art not disclosed by the present invention, are not limited to the precise structure described above and shown in the drawings, and may be modified and changed in various ways without departing from the scope thereof. The scope of the present invention is limited only by the appended claims.

Claims

1. A communication matrix comparison method, characterized in that: include: In response to a communication matrix comparison operation by a user, generating a communication matrix comparison instruction; Based on the communication matrix comparison instruction, the target communication matrix for indicating comparison is sorted according to a pre-sorted public index set to obtain a sorted target communication matrix; The sorted target communication matrix is ​​displayed in different areas of the comparison result display page.

2. The method according to claim 1, characterized in that The step of sorting the target communication matrix indicating the comparison according to the pre-sorted public index set to obtain the sorted target communication matrix includes: Matching several public indexes in the public index set with the communication rule records in the target communication matrix to obtain a target public index, wherein the target public index is a public index among the several public indexes that matches the communication rule records in the target communication matrix; The target communication matrix is ​​sorted based on the target common index to obtain a sorted target communication matrix.

3. The method according to claim 2, characterized in that The target communication matrix is ​​stored in a spreadsheet format, and the target communication matrix is ​​sorted based on the target common index to obtain a sorted target communication matrix, including: Creating an empty table using the target public index as a first identifier and the header content of the target communication matrix as a second identifier; The table data of the target communication matrix is ​​filled into the empty table to obtain the sorted target communication matrix.

4. The method according to any one of claims 1 to 3, characterized in that: The target communication matrix includes a first communication matrix and a second communication matrix, and the method further includes: comparing the sorted first communication matrix and the sorted second communication matrix; If the second table data in the sorted second communication matrix is ​​different from the first table data at the corresponding position in the sorted first communication matrix, the first table data and the second table data are displayed differentially.

5. The method according to any one of claims 1 to 3, characterized in that: The public index set is obtained by sorting in the following way: Get the communication matrix for each project or version; Extracting signal feature information from the communication rule records in the communication matrix; Generate a message retrieval index and a signal retrieval index based on the extracted signal feature information, wherein the message retrieval index is used to locate and retrieve messages, and the signal retrieval index is used to locate and retrieve signals; The message retrieval indexes and signal retrieval indexes respectively corresponding to the communication matrices are summarized to obtain the public index set.

6. The method according to claim 5, characterized in that The step of generating a message retrieval index and a signal retrieval index based on the extracted signal feature information comprises: Based on the message identifier, signal start bit and signal length extracted from the signal characteristic information, a message retrieval index and a signal retrieval index are generated.

7. The method according to claim 1, characterized in that The target communication matrix is ​​stored in a database file format.

8. A communication matrix comparison device, characterized in that: include: A generating module, used for generating a communication matrix comparison instruction in response to a communication matrix comparison operation of a user; A sorting module is used to sort the target communication matrix indicated for comparison according to a pre-sorted public index set based on the communication matrix comparison instruction to obtain a sorted target communication matrix; The display module is used to display the sorted target communication matrix in different areas of the comparison result display page.

9. A communication matrix comparison device, characterized in that: include: Memory, processor; The memory stores computer-executable instructions; The processor executes the computer-executable instructions stored in the memory, so that the processor performs the method according to any one of claims 1 to 7.

10. A computer-readable storage medium or a computer program product, characterized in that: The computer-readable storage medium stores computer-executable instructions, which are used to implement the method according to any one of claims 1 to 7 when executed by a processor; or, The computer program product comprises a computer program, which implements the method according to any one of claims 1 to 7 when executed by a processor.

Citation Information

Patent Citations

  • Signal changing method and device for communication matrix platform library

    CN113364601A

  • CAN communication matrix error correction method

    CN115333893A

  • Automatic testing method and device, electronic equipment and storage medium

    CN115757483A

  • Update record generation method and device of communication matrix, electronic equipment and vehicle

    CN116910068A

  • Method and system for converting CAN communication matrix and DBC file

    CN117082042A

Cited By

  • Communication matrix change identification method and device, equipment and medium

    CN121501753A