Data mapping method and device, electronic equipment and storage medium

By automatically comparing and recording the signal information of electronic system ports and vehicle buses, the cumbersome problem of manually determining the data mapping relationship in AUTOSAR development is solved, and fast and accurate data mapping is achieved, which improves development efficiency and data processing reliability.

CN119225990APending Publication Date: 2024-12-31BEIJING CO WHEELS TECH CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202310793266.5
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2023-06-30
Publication Date
2024-12-31

AI Technical Summary

Technical Problem

In AUTOSAR development, when updating or exchanging electronic system software, it is necessary to manually determine the mapping relationship between the signal on the on-board bus and the electronic system port, which is cumbersome and prone to errors.

Method used

By obtaining the table of electronic system port information and vehicle-mounted signal information, the mapping relationship between the port and the signal is automatically compared and determined, recorded in the mapping relationship table, and optionally converted to the target code in the preset template format.

Benefits of technology

Improves the efficiency and accuracy of data mapping, avoids manual connection errors, simplifies the development process, and improves the efficiency and reliability of data processing.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119225990A_ABST
    Figure CN119225990A_ABST
Patent Text Reader

Abstract

The invention discloses a data mapping method and device, electronic equipment and a storage medium, and relates to the technical field of data processing, and the main technical scheme comprises the following steps: firstly, obtaining a first information table and a second information table; secondly, comparing whether the target signal information corresponding to the port information in the first information table is consistent with the signal information in the second information table, and obtaining a comparison result; if the comparison result shows that the second information table contains the signal information consistent with the target signal information, determining that the port information and the signal information which have a consistent relationship have a data mapping relationship; and finally, recording the port information and the signal information with the mapping relation in a mapping relation table. Whether the first information and the second information have the data mapping relation or not is automatically determined, and the data mapping relation is established for the two pieces of information with the mapping relation, so that the development efficiency is improved, the problem of manual connection errors is avoided, the data mapping relation can be established quickly and accurately, and data processing is more efficient and reliable.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present disclosure relates to the field of data processing technology, and in particular to a data mapping method and device, an electronic device, and a storage medium. Background Art

[0002] AUTomotive Open System Architecture (AUTOSAR) is a set of standard protocols jointly established by major global automobile manufacturers, parts suppliers and automotive electronic software and hardware companies. It aims to improve the update and exchange of automotive electronic system software, while more conveniently and effectively managing increasingly complex automotive electronic software systems.

[0003] At present, in AUTOSAR development, when updating or exchanging the electronic system software, the signal of the software data to be updated or exchanged is sent to the electronic system through the vehicle bus. In this process, it is necessary to determine the mapping relationship between the signal transmitted on the vehicle bus and the port of each electronic system, that is, to determine which data on the bus is to be transmitted to which electronic system. At present, the establishment of this data mapping is completed manually by professionals, which is a cumbersome and error-prone process. Summary of the invention

[0004] The present disclosure provides a data mapping method, device, electronic device and storage medium, the main purpose of which is to solve the problem that the user needs to manually determine the data mapping relationship when performing data mapping.

[0005] According to a first aspect of the present disclosure, a data mapping method is provided, comprising:

[0006] Acquire a first information table and a second information table; wherein the first information table records the port information of each electronic system and the target signal information received by each port, and the second information table records the signal information transmitted by the vehicle bus;

[0007] Compare whether the target signal information corresponding to each port information in the first information table is consistent with the signal information in the second information table, and obtain a comparison result;

[0008] If the comparison result indicates that the second information table contains signal information consistent with the target signal information, it is determined that the port information and signal information having a consistent relationship have a data mapping relationship;

[0009] The port information and the signal information having a mapping relationship are recorded in a mapping relationship table.

[0010] Optionally, comparing whether target signal information corresponding to each port information in the first information table is consistent with signal information in the second information table, and obtaining a comparison result includes:

[0011] Using one of the port information in the first information table as target port information;

[0012] Compare the target signal information corresponding to the target port information with each of the signal information in the second information table to see whether they are consistent, and determine whether there is target signal information with a data mapping relationship;

[0013] If so, the target port information and the target signal information are saved;

[0014] After excluding the target port information from the first information table, the method returns to the step of using one of the port information in the first information table as the target port information until all the port information in the first information table is traversed.

[0015] Optionally, the target signal information received by the port information includes: port name, port direction, port data type, and the target information of the signal information includes: signal name, signal direction, signal data type;

[0016] The comparing the target signal information corresponding to the target port information with each of the signal information in the second information table to determine whether the target signal information corresponding to the target port information is consistent with each other and whether there is a data mapping relationship between the target signal information includes:

[0017] Using a signal information in the second information table as target signal information;

[0018] determining whether the signal name of the target signal information is the same as the port information of the target port information, and

[0019] determining whether the signal direction of the target signal information is the same as the port direction of the target port information, and

[0020] Determine whether the signal data type of the target signal information is the same as the port data type of the target port information;

[0021] When the signal name is the same as the port information, the signal direction is the same as the port direction, and the signal data type is the same as the port data type, it is determined that a mapping relationship exists between the target port information and the target signal information.

[0022] Optionally, after recording the port information and the signal information having a mapping relationship in a mapping relationship table, the method further includes:

[0023] According to a preset template format, the target data mapping table is converted into a target code in the preset template format.

[0024] According to a second aspect of the present disclosure, there is provided a data mapping device, comprising:

[0025] An acquisition unit, used to acquire a first information table and a second information table; wherein the first information table records the port information of each electronic system and the target signal information received by each port, and the second information table records the signal information transmitted by the vehicle bus;

[0026] a comparing unit, configured to compare whether target signal information corresponding to each port information in the first information table is consistent with signal information in the second information table, and obtain a comparison result;

[0027] a determining unit, configured to determine that the port information and the signal information having a consistent relationship have a data mapping relationship if the comparison result indicates that the second information table contains signal information consistent with the target signal information;

[0028] The recording unit is used to record the port information and the signal information having a mapping relationship in a mapping relationship table.

[0029] Optionally, the comparison unit includes:

[0030] A first determining module, configured to use one of the port information in the first information table as target port information;

[0031] A second determination module is used to compare the target signal information corresponding to the target port information with each of the signal information in the second information table to determine whether there is target signal information with a data mapping relationship;

[0032] A saving module, used for saving the target port information and the target signal information when there is target signal information of a data mapping relationship;

[0033] An execution module is used to exclude the target port information from the first information table and then return to the step of using one of the port information in the first information table as the target port information until all the port information in the first information table is traversed.

[0034] Optionally, the port information includes: port name, port direction, port data type, and the signal information includes: signal name, signal direction, signal data type;

[0035] The second determining module is used for:

[0036] Determine target signal information according to the arrangement order of each signal information in the second information table;

[0037] determining whether the signal name of the target signal information is the same as the port information of the target port information, and

[0038] determining whether the signal direction of the target signal information is the same as the port direction of the target port information, and

[0039] Determine whether the signal data type of the target signal information is the same as the port data type of the target port information;

[0040] When the signal name is the same as the port information, the signal direction is the same as the port direction, and the signal data type is the same as the port data type, it is determined that a mapping relationship exists between the target port information and the target signal information.

[0041] Optionally, the device further comprises:

[0042] The generating unit is used for converting the target data mapping table into the target code of the preset template format according to the preset template format after the recording unit records the port information and the signal information having the mapping relationship in the mapping relationship table.

[0043] According to a third aspect of the present disclosure, a vehicle is provided, wherein the vehicle comprises the data mapping device as described in the second aspect.

[0044] According to a fourth aspect of the present disclosure, there is provided an electronic device, including:

[0045] at least one processor; and

[0046] a memory communicatively connected to the at least one processor; wherein,

[0047] The memory stores instructions that can be executed by the at least one processor, and the instructions are executed by the at least one processor to enable the at least one processor to perform the method described in the first aspect.

[0048] According to a fifth aspect of the present disclosure, a non-transitory computer-readable storage medium storing computer instructions is provided, wherein the computer instructions are used to enable the computer to execute the method described in the first aspect.

[0049] According to a sixth aspect of the present disclosure, a computer program product is provided, comprising a computer program, wherein when the computer program is executed by a processor, the method described in the first aspect is implemented.

[0050] The data mapping method, device, electronic device and storage medium provided by the present disclosure have the following main technical solutions: first, obtain a first information table and a second information table; wherein the first information table records the port information of each electronic system and the target signal information received by each port, and the second information table records the signal information transmitted by the vehicle bus; secondly, compare whether the target signal information corresponding to each port information in the first information table is consistent with the signal information in the second information table, and obtain the comparison result; if the comparison result indicates that the second information table contains signal information consistent with the target signal information, it is determined that the port information and signal information with a consistent relationship have a data mapping relationship; finally, the port information and signal information with a mapping relationship are recorded in a mapping relationship table. Compared with the related art, the embodiment of the present application improves the development efficiency by automatically determining whether there is a data mapping relationship between the first information and the second information, and establishing a data mapping relationship between the two information with a mapping relationship, avoiding the problem of manual connection errors, and being able to quickly and accurately establish a data mapping relationship, making data processing more efficient and reliable.

[0051] It should be understood that the content described in this section is not intended to identify the key or important features of the embodiments of the present application, nor is it intended to limit the scope of the present application. Other features of the present application will become easily understood through the following description. BRIEF DESCRIPTION OF THE DRAWINGS

[0052] The accompanying drawings are used to better understand the present solution and do not constitute a limitation of the present disclosure.

[0053] Figure 1 A flowchart of a data mapping method provided by an embodiment of the present disclosure;

[0054] Figure 2 A flowchart of another data mapping method provided by an embodiment of the present disclosure;

[0055] Figure 3 A schematic diagram of the structure of a data mapping device provided in an embodiment of the present disclosure;

[0056] Figure 4 A schematic diagram of the structure of another data mapping device provided by an embodiment of the present disclosure;

[0057] Figure 5 A schematic block diagram of an exemplary electronic device provided for an embodiment of the present disclosure. DETAILED DESCRIPTION

[0058] The following is a description of exemplary embodiments of the present disclosure in conjunction with the accompanying drawings, including various details of the embodiments of the present disclosure to facilitate understanding, which should be considered as merely exemplary. Therefore, it should be recognized by those of ordinary skill in the art that various changes and modifications may be made to the embodiments described herein without departing from the scope and spirit of the present disclosure. Similarly, for the sake of clarity and conciseness, descriptions of well-known functions and structures are omitted in the following description.

[0059] The data mapping method, device, electronic device, and storage medium according to the embodiments of the present disclosure are described below with reference to the accompanying drawings.

[0060] Figure 1 A flowchart of a data mapping method provided by an embodiment of the present disclosure is provided.

[0061] like Figure 1 As shown, the method comprises the following steps:

[0062] Step 101, obtaining a first information table and a second information table; wherein the first information table records the port information of each electronic system and the target signal information received by each port, and the second information table records the signal information transmitted by the vehicle bus.

[0063] The port information table refers to a table that records the information of each port in a computer or network device. In one possible implementation of the embodiment of the present application, the port information table can be obtained by parsing the AUTOSAR standard file through a preset file parser; the port information table includes information such as the name, port direction, and data type of each port.

[0064] Step 102: Compare the target signal information corresponding to each port information in the first information table with the signal information in the second information table to see whether they are consistent, and obtain a comparison result.

[0065] In one possible implementation of the present application, the consistency of port information and signal information means that their names, IDs, lengths, data types and other information are completely consistent. If a port information is consistent with a signal information, then it can be determined that they have a data mapping relationship. It should be noted that this narrative method is only an exemplary description and is not a specific limitation on the specific information content. The present application embodiment does not limit the specific information content. By determining the data mapping relationship between port information and signal information, the data flow and communication process in the CAN bus system can be better understood.

[0066] Step 103: If the comparison result indicates that the second information table contains signal information consistent with the target signal information, it is determined that the port information and signal information having a consistent relationship have a data mapping relationship.

[0067] Signal information will be connected to the corresponding ports through data mapping to achieve data transmission and exchange; the determination of the mapping relationship can help developers configure and connect data flows between different components more quickly, simplify the development process, and improve development efficiency.

[0068] Step 104: Record the port information and the signal information having a mapping relationship in a mapping relationship table.

[0069] The mapping relationship table is used to record the mapping relationship between each port information and signal information. By generating a mapping relationship table, you can better understand the relationship between each port and signal, so as to better design, debug and optimize the system. At the same time, the mapping relationship table can also be used as part of the system documentation to facilitate subsequent maintenance and management.

[0070] The data mapping method provided by the present disclosure has a main technical solution including: first, obtaining a first information table and a second information table; wherein the first information table records the port information of each electronic system and the target signal information received by each port, and the second information table records the signal information transmitted by the vehicle bus; secondly, comparing whether the target signal information corresponding to each port information in the first information table is consistent with the signal information in the second information table, and obtaining a comparison result; if the comparison result indicates that the second information table contains signal information consistent with the target signal information, then it is determined that the port information and signal information with a consistent relationship have a data mapping relationship; finally, the port information and signal information with a mapping relationship are recorded in a mapping relationship table. Compared with the related art, the embodiment of the present application improves development efficiency by automatically determining whether there is a data mapping relationship between the first information and the second information, and establishing a data mapping relationship between the two information with a mapping relationship, avoiding the problem of manual connection errors, and being able to quickly and accurately establish a data mapping relationship, making data processing more efficient and reliable.

[0071] In one possible implementation of the embodiment of the present application, when executing step 102, it is necessary to compare each port information with each signal information one by one; see Figure 2 , Figure 2 A flow chart of a data mapping method provided in an embodiment of the present disclosure includes:

[0072] Step 201: Use one of the port information in the first information table as target port information.

[0073] In an implementable manner of the embodiment of the present application, when determining the target port information, there are the following two methods: First, determine in sequence according to the arrangement order of the port information in the first information table; Second, randomly determine the target port information in the first information table, and delete the determined target port information from the first information list to prevent duplicate port information from being determined during subsequent random determination; The embodiment of the present application takes the first determination method (sequential determination) as an example for illustration. However, it should be noted that this narrative method is only an exemplary illustration and is not a specific limitation on the specific determination method. The embodiment of the present application does not limit the determination method.

[0074] Step 202: Compare whether the target signal information corresponding to the target port information is the same as each of the signal information in the second information table to determine whether there is target signal information with a data mapping relationship.

[0075] In an implementable manner of the embodiment of the present application, the port information includes: port name, port direction, port data type, and the signal information includes: signal name, signal direction, signal data type.

[0076] In an implementable manner of the embodiment of the present application, since there may be the same signals in different information in the second information table, to ensure uniqueness during matching, the signal name can be composed of <DBC_Signal_Name>_<DBC_Message_Name>_<DBC_Network_Name> (<DBC signal name>_<DBC message name>_<DBC network name>) for distinguishing different signal information; It should be noted that this naming method is only an exemplary illustration and is not a limitation on the specific naming method.

[0077] When performing step 202, the following sub-steps can be referred to:

[0078] Take one of the signal information in the second information table as the target signal information; In an implementable manner of the embodiment of the present application, when determining the target signal information, the following two methods can be used: First, determine the target signal information according to the arrangement order of each signal information in the second information table; Second, randomly determine the target signal information; Specifically, the embodiment of the present application does not limit the determination method.

[0079] When determining whether the target signal information and the target port information have a data mapping relationship, the following three aspects also need to be considered:

[0080] Determine whether the signal name of the target signal information is the same as the port information of the target port information, and

[0081] determining whether the signal direction of the target signal information is the same as the port direction of the target port information, and

[0082] It is determined whether the signal data type of the target signal information is the same as the port data type of the target port information.

[0083] In one possible implementation of the embodiment of the present application, when determining whether the target signal information and the target port information have a data mapping relationship, it is necessary to comprehensively consider factors such as the signal name, signal direction, and signal data type to ensure the correctness and accuracy of data transmission. It should be noted that this narrative method is not a limitation on the specific comparison order, and the embodiment of the present application does not limit the comparison order.

[0084] When the signal name is the same as the port information, the signal direction is the same as the port direction, and the signal data type is the same as the port data type, it is determined that a mapping relationship exists between the target port information and the target signal information.

[0085] In the case where the signal name, signal direction, signal data type, etc. are the same, it can be determined that there is a data mapping relationship between the target signal information and the target port information.

[0086] Step 203: If it exists, save the target port information and the target signal information.

[0087] After determining that there is a data mapping relationship between the target signal information and the target port information, they need to be saved and sorted according to the arrangement order of the port information. This can facilitate subsequent data processing and analysis. Specifically, the target port information and the target signal information can be saved in a data structure, such as an array or a dictionary. When saving, the port information can be used as the key and the signal information as the value, which can be easily searched and accessed.

[0088] Step 204: After excluding the target port information from the first information table, return to the step of using one of the port information in the first information table as the target port information until all the port information in the first information table is traversed.

[0089] After the data mapping relationship is determined, the target port information is re-determined in the first information table, the target signal information is determined in the second information table, and the determination of the data mapping relationship is continued until all the port information is determined.

[0090] When determining whether there is a data mapping relationship between the target signal information and the target port information, if not, it is necessary to continue to determine the data mapping relationship according to the arrangement order of the port information until all the port information in the first information table is determined. Specifically, each port information in the first information table can be traversed to determine whether there is a target signal information that matches it. If it does, the target port information and the target signal information are saved, and the matching of the next port information is continued. If it does not exist, the next target signal information is continued to be matched until the matching signal information is found or all the signal information is traversed. After determining that all the port information is completed, the determination of the data mapping relationship can be ended, and the result can be saved in a data structure, such as a two-dimensional array or a matrix. This can facilitate subsequent data processing and analysis, such as data visualization or data mining operations.

[0091] When determining whether there is a data mapping relationship between the target signal information and the target port information, it is necessary to perform one-to-one matching according to the arrangement order of the port information to ensure the accuracy and reliability of data processing and analysis.

[0092] In one possible implementation of the embodiment of the present application, after obtaining the first information table and the second information table, the method further includes:

[0093] respectively determining whether the first information table and the second information table are empty;

[0094] In one possible implementation of the embodiment of the present application, there may be a situation where a file is lost, resulting in data loss in the first information table or the second information table. Specifically, it can be determined in the following manner:

[0095] 1. It can be judged by checking whether the number of rows and columns of the first information table is zero. If both the number of rows and the number of columns are zero, it can be considered that the first information table is empty.

[0096] 2. If the first information table is not empty, it is necessary to further check whether it contains valid port information and signal information. This can be determined by checking whether there are non-empty cells in the table.

[0097] 3. It can be judged by checking whether the number of rows and columns of the second information table is zero. If both the number of rows and the number of columns are zero, it can be considered that the second information table is empty.

[0098] 4. If the second information table is not empty, it is necessary to further check whether it contains valid port information and signal information. This can be determined by checking whether there are non-empty cells in the table.

[0099] When both the first information table and the second information table are not empty, it is determined whether the port information and the signal information in the first information table and the second information table have a data mapping relationship according to whether the port information in the first information table is consistent with the signal information in the second information table. Please refer to steps 201 to 204 for the specific implementation process, which will not be described one by one in the embodiment of the present application.

[0100] In one implementable method of the embodiment of the present application, the mapping relationship table finally output may be an empty list, and there are the following two situations: first, when at least one list in the first information table or the second information table is empty, an empty list will be output when the mapping relationship table is output; second, when all the port information in the first information table has no corresponding signal information with a mapping relationship in the second information table, an empty list will be output when the mapping relationship table is output.

[0101] In an implementable manner of an embodiment of the present application, after determining the data mapping relationship between the port information and the signal information, the method further includes: converting the target data mapping table into a target code in the preset template format according to a preset template format. In an implementable manner of an embodiment of the present application, an RTE code that complies with the AUTOSAR interface standard is generated. According to the Data Mapping list obtained by automatic Data Mapping, each member in the list is a pair of DataMappings, including information such as Signal Name, Direction, Data Type, SWC Name, Port Name, etc. The RTE code generation module converts the list into a format that complies with the Jinja2 code template. The final dynamic RTE code is obtained through the Jinja2 template engine.

[0102] Corresponding to the above data mapping method, the present invention further provides a data mapping device. Since the device embodiment of the present invention corresponds to the above method embodiment, details not disclosed in the device embodiment can be referred to the above method embodiment, and will not be described in detail in the present invention.

[0103] Figure 3 A structural diagram of a data mapping device provided in an embodiment of the present disclosure is shown in FIG. Figure 3 As shown, including:

[0104] The acquisition unit 31 is used to acquire a first information table and a second information table; wherein the first information table records the port information of each electronic system and the target signal information received by each port, and the second information table records the signal information transmitted by the vehicle bus;

[0105] A comparison unit 32, configured to compare whether the target signal information corresponding to each port information in the first information table is consistent with the signal information in the second information table, and obtain a comparison result;

[0106] A determining unit 33, configured to determine that the port information and the signal information having a consistent relationship have a data mapping relationship if the comparison result indicates that the second information table contains signal information consistent with the target signal information;

[0107] The recording unit 34 is used to record the port information and the signal information having a mapping relationship in a mapping relationship table.

[0108] The data mapping device provided by the present disclosure has a main technical solution including: first, obtaining a first information table and a second information table; wherein the first information table records the port information of each electronic system and the target signal information received by each port, and the second information table records the signal information transmitted by the vehicle bus; secondly, comparing whether the target signal information corresponding to each port information in the first information table is consistent with the signal information in the second information table, and obtaining a comparison result; if the comparison result indicates that the second information table contains signal information consistent with the target signal information, it is determined that the port information and signal information with a consistent relationship have a data mapping relationship; finally, the port information and signal information with a mapping relationship are recorded in a mapping relationship table. Compared with the related art, the embodiment of the present application improves development efficiency by automatically determining whether there is a data mapping relationship between the first information and the second information, and establishing a data mapping relationship between the two information with a mapping relationship, avoiding the problem of manual connection errors, and being able to quickly and accurately establish a data mapping relationship, making data processing more efficient and reliable.

[0109] Furthermore, in a possible implementation of this embodiment, as Figure 4 As shown, the comparison unit 32 includes:

[0110] A first determining module 321, configured to use one of the port information in the first information table as target port information;

[0111] A second determination module 322 is used to compare the target signal information corresponding to the target port information with each of the signal information in the second information table to determine whether there is target signal information with a data mapping relationship;

[0112] A saving module 323, configured to save the target port information and the target signal information when there is target signal information of a data mapping relationship;

[0113] The execution module 324 is used to exclude the target port information from the first information table and then return to the step of using one of the port information in the first information table as the target port information until all the port information in the first information table is traversed.

[0114] Further, in a possible implementation of this embodiment, the port information includes: port name, port direction, port data type, and the signal information includes: signal name, signal direction, signal data type;

[0115] The second determining module 322 is used for:

[0116] Determine target signal information according to the arrangement order of each signal information in the second information table;

[0117] determining whether the signal name of the target signal information is the same as the port information of the target port information, and

[0118] determining whether the signal direction of the target signal information is the same as the port direction of the target port information, and

[0119] Determine whether the signal data type of the target signal information is the same as the port data type of the target port information;

[0120] When the signal name is the same as the port information, the signal direction is the same as the port direction, and the signal data type is the same as the port data type, it is determined that a mapping relationship exists between the target port information and the target signal information.

[0121] Furthermore, in a possible implementation of this embodiment, as Figure 4 As shown, the device also includes:

[0122] The generating unit 35 is used for converting the target data mapping table into a target code in the preset template format according to the preset template format after the recording unit 34 records the port information and the signal information having a mapping relationship in the mapping relationship table.

[0123] It should be noted that the above explanation of the method embodiment is also applicable to the device of this embodiment, and the principle is the same, which is not limited in this embodiment.

[0124] According to an embodiment of the present disclosure, the present disclosure also provides an electronic device, a readable storage medium and a computer program product.

[0125] Figure 5A schematic block diagram of an example electronic device 400 that can be used to implement an embodiment of the present disclosure is shown. The electronic device is intended to represent various forms of digital computers, such as laptop computers, desktop computers, workstations, personal digital assistants, servers, blade servers, mainframe computers, and other suitable computers. The electronic device can also represent various forms of mobile devices, such as personal digital processing, cellular phones, smart phones, wearable devices, and other similar computing devices. The components shown herein, their connections and relationships, and their functions are merely examples and are not intended to limit the implementation of the present disclosure described and / or required herein.

[0126] like Figure 5 As shown, the device 400 includes a computing unit 401, which can perform various appropriate actions and processes according to a computer program stored in a ROM (Read-Only Memory) 402 or a computer program loaded from a storage unit 408 to a RAM (Random Access Memory) 403. In the RAM 403, various programs and data required for the operation of the device 400 can also be stored. The computing unit 401, the ROM 402, and the RAM 403 are connected to each other via a bus 404. An I / O (Input / Output) interface 405 is also connected to the bus 404.

[0127] A number of components in the device 400 are connected to the I / O interface 405, including: an input unit 406, such as a keyboard, a mouse, etc.; an output unit 407, such as various types of displays, speakers, etc.; a storage unit 408, such as a disk, an optical disk, etc.; and a communication unit 409, such as a network card, a modem, a wireless communication transceiver, etc. The communication unit 409 allows the device 400 to exchange information / data with other devices through a computer network such as the Internet and / or various telecommunication networks.

[0128] The computing unit 401 may be a variety of general and / or special processing components with processing and computing capabilities. Some examples of the computing unit 401 include, but are not limited to, a CPU (Central Processing Unit), a GPU (Graphic Processing Units), various dedicated AI (Artificial Intelligence) computing chips, various computing units running machine learning model algorithms, a DSP (Digital Signal Processor), and any appropriate processor, controller, microcontroller, etc. The computing unit 401 performs the various methods and processes described above, such as a data mapping method. For example, in some embodiments, the data mapping method may be implemented as a computer software program, which is tangibly contained in a machine-readable medium, such as a storage unit 408. In some embodiments, part or all of the computer program may be loaded and / or installed on the device 400 via the ROM 402 and / or the communication unit 409. When the computer program is loaded into the RAM 403 and executed by the computing unit 401, one or more steps of the method described above may be performed. Alternatively, in other embodiments, the computing unit 401 may be configured to execute the aforementioned data mapping method in any other appropriate manner (for example, by means of firmware).

[0129] Various embodiments of the systems and techniques described above herein may be implemented in digital electronic circuit systems, integrated circuit systems, FPGAs (Field Programmable Gate Arrays), ASICs (Application-Specific Integrated Circuits), ASSPs (Application Specific Standard Products), SOCs (System On Chips), CPLDs (Complex Programmable Logic Devices), computer hardware, firmware, software, and / or combinations thereof. These various embodiments may include: being implemented in one or more computer programs that may be executed and / or interpreted on a programmable system including at least one programmable processor that may be a dedicated or general-purpose programmable processor that may receive data and instructions from a storage system, at least one input device, and at least one output device, and transmit data and instructions to the storage system, the at least one input device, and the at least one output device.

[0130] The program code for implementing the method of the present disclosure may be written in any combination of one or more programming languages. These program codes may be provided to a processor or controller of a general-purpose computer, a special-purpose computer, or other programmable data processing device, so that the program code, when executed by the processor or controller, enables the functions / operations specified in the flow chart and / or block diagram to be implemented. The program code may be executed entirely on the machine, partially on the machine, partially on the machine and partially on a remote machine as a stand-alone software package, or entirely on a remote machine or server.

[0131] In the context of the present disclosure, a machine-readable medium may be a tangible medium that may contain or store a program for use by or in conjunction with an instruction execution system, device, or equipment. A machine-readable medium may be a machine-readable signal medium or a machine-readable storage medium. A machine-readable medium may include, but is not limited to, an electronic, magnetic, optical, electromagnetic, infrared, or semiconductor system, device, or device, or any suitable combination of the foregoing. More specific examples of machine-readable storage media may include electrical connections based on one or more lines, portable computer disks, hard disks, RAM, ROM, EPROM (Electrically Programmable Read-Only-Memory) or flash memory, optical fiber, CD-ROM (Compact Disc Read-Only Memory), optical storage devices, magnetic storage devices, or any suitable combination of the foregoing.

[0132] To provide interaction with a user, the systems and techniques described herein can be implemented on a computer having: a display device (e.g., a CRT (Cathode-Ray Tube) or LCD (Liquid Crystal Display) monitor) for displaying information to the user; and a keyboard and a pointing device (e.g., a mouse or trackball), through which the user can provide input to the computer. Other types of devices can also be used to provide interaction with the user; for example, the feedback provided to the user can be any form of sensory feedback (e.g., visual feedback, auditory feedback, or tactile feedback); and input from the user can be received in any form (including acoustic input, voice input, or tactile input).

[0133] The systems and techniques described herein may be implemented in a computing system that includes backend components (e.g., as a data server), or a computing system that includes middleware components (e.g., an application server), or a computing system that includes frontend components (e.g., a user computer with a graphical user interface or a web browser through which a user can interact with implementations of the systems and techniques described herein), or a computing system that includes any combination of such backend components, middleware components, or frontend components. The components of the system may be interconnected by any form or medium of digital data communication (e.g., a communication network). Examples of communication networks include: LAN (Local Area Network), WAN (Wide Area Network), the Internet, and blockchain networks.

[0134] A computer system may include a client and a server. The client and the server are generally remote from each other and usually interact through a communication network. The relationship between the client and the server is generated by computer programs running on the corresponding computers and having a client-server relationship with each other. The server may be a cloud server, also known as a cloud computing server or cloud host, which is a host product in the cloud computing service system to solve the defects of difficult management and weak business scalability in traditional physical hosts and VPS services ("Virtual Private Server", or "VPS" for short). The server may also be a server of a distributed system, or a server combined with a blockchain.

[0135] It should be noted that artificial intelligence is a discipline that studies how computers can simulate certain human thought processes and intelligent behaviors (such as learning, reasoning, thinking, planning, etc.), and includes both hardware-level and software-level technologies. Artificial intelligence hardware technologies generally include technologies such as sensors, dedicated artificial intelligence chips, cloud computing, distributed storage, and big data processing; artificial intelligence software technologies mainly include computer vision technology, speech recognition technology, natural language processing technology, as well as machine learning / deep learning, big data processing technology, knowledge graph technology, and other major directions.

[0136] It should be understood that the various forms of processes shown above can be used to reorder, add or delete steps. For example, the steps recorded in this disclosure can be executed in parallel, sequentially or in different orders, as long as the desired results of the technical solutions disclosed in this disclosure can be achieved, and this document does not limit this.

[0137] The above specific implementations do not constitute a limitation on the protection scope of the present disclosure. It should be understood by those skilled in the art that various modifications, combinations, sub-combinations and substitutions can be made according to design requirements and other factors. Any modification, equivalent substitution and improvement made within the spirit and principle of the present disclosure shall be included in the protection scope of the present disclosure.

Claims

1. A data mapping method, characterized in that: include: Acquire a first information table and a second information table; wherein the first information table records the port information of each electronic system and the target signal information received by each port, and the second information table records the signal information transmitted by the vehicle bus; Compare whether the target signal information corresponding to each port information in the first information table is consistent with the signal information in the second information table, and obtain a comparison result; If the comparison result indicates that the second information table contains signal information consistent with the target signal information, it is determined that the port information and signal information having a consistent relationship have a data mapping relationship; The port information and the signal information having a mapping relationship are recorded in a mapping relationship table.

2. The method according to claim 1, characterized in that: The comparing whether the target signal information corresponding to each port information in the first information table is consistent with the signal information in the second information table and obtaining the comparison result includes: Using one of the port information in the first information table as target port information; Compare the target signal information corresponding to the target port information with each of the signal information in the second information table to see whether they are consistent, and determine whether there is target signal information with a data mapping relationship; If so, the target port information and the target signal information are saved; After excluding the target port information from the first information table, the method returns to the step of using one of the port information in the first information table as the target port information until all the port information in the first information table is traversed.

3. The method according to claim 2, characterized in that The target signal information received by the port information includes: port name, port direction, port data type, and the target information of the signal information includes: signal name, signal direction, signal data type; The comparing the target signal information corresponding to the target port information with each of the signal information in the second information table to determine whether the target signal information corresponding to the target port information is consistent with each other and whether there is a data mapping relationship between the target signal information includes: Using a signal information in the second information table as target signal information; determining whether the signal name of the target signal information is the same as the port information of the target port information, and determining whether the signal direction of the target signal information is the same as the port direction of the target port information, and Determine whether the signal data type of the target signal information is the same as the port data type of the target port information; When the signal name is the same as the port information, the signal direction is the same as the port direction, and the signal data type is the same as the port data type, it is determined that a mapping relationship exists between the target port information and the target signal information.

4. The method according to any one of claims 1 to 3, characterized in that After recording the port information and the signal information having a mapping relationship in a mapping relationship table, the method further includes: According to a preset template format, the target data mapping table is converted into a target code in the preset template format.

5. A data mapping device, characterized in that: include: An acquisition unit, used to acquire a first information table and a second information table; wherein the first information table records the port information of each electronic system and the target signal information received by each port, and the second information table records the signal information transmitted by the vehicle bus; a comparing unit, configured to compare whether target signal information corresponding to each port information in the first information table is consistent with signal information in the second information table, and obtain a comparison result; a determining unit, configured to determine that the port information and the signal information having a consistent relationship have a data mapping relationship if the comparison result indicates that the second information table contains signal information consistent with the target signal information; The recording unit is used to record the port information and the signal information having a mapping relationship in a mapping relationship table.

6. The device according to claim 5, characterized in that The comparison unit comprises: A first determining module, configured to use one of the port information in the first information table as target port information; A second determination module is used to compare the target signal information corresponding to the target port information with each of the signal information in the second information table to determine whether there is target signal information with a data mapping relationship; A saving module, used for saving the target port information and the target signal information when there is target signal information of a data mapping relationship; An execution module is used to exclude the target port information from the first information table and then return to the step of using one of the port information in the first information table as the target port information until all the port information in the first information table is traversed.

7. The device according to claim 6, characterized in that The target information of the port information includes: port name, port direction, port data type, and the target information of the signal information includes: signal name, signal direction, signal data type; The second determining module is further used for: Using a signal information in the second information table as target signal information; determining whether the signal name of the target signal information is the same as the port information of the target port information, and determining whether the signal direction of the target signal information is the same as the port direction of the target port information, and Determine whether the signal data type of the target signal information is the same as the port data type of the target port information; When the signal name is the same as the port information, the signal direction is the same as the port direction, and the signal data type is the same as the port data type, it is determined that a mapping relationship exists between the target port information and the target signal information.

8. A vehicle, characterized in that: The vehicle comprises a data mapping device as claimed in any one of claims 5-7.

9. An electronic device, characterized in that: include: at least one processor; as well as a memory communicatively connected to the at least one processor; wherein, The memory stores instructions that can be executed by the at least one processor, and the instructions are executed by the at least one processor to enable the at least one processor to perform the method according to any one of claims 1 to 4.

10. A non-transitory computer-readable storage medium storing computer instructions, characterized in that: The computer instructions are used to cause the computer to execute the method according to any one of claims 1-4.