Intelligent driving simulation signal automatic matching method and device and electronic medium

By processing virtual domain controller signals and simulation signals as key-value pairs, and using the uniqueness of dictionary keys to match one by one, the problems of inefficiency, duration of use, and high matching error rate in the prior art are solved, and efficient and accurate signal matching is achieved.

CN119622355APending Publication Date: 2025-03-14吉咖智能机器人有限公司
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202411690106.9
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-11-25
Publication Date
2025-03-14

AI Technical Summary

Technical Problem

In the prior art, matching input simulation signals have problems such as inefficiency, duration of use and high matching error rate, which seriously affects the efficiency and accuracy of simulation verification.

Method used

By obtaining the virtual domain controller signal data and simulation signal data, character data is processed in the form of key-value pairs, and by matching one by one, the uniqueness of the dictionary key is used to achieve fast and efficient matching of the virtual domain controller signal and the simulation signal.

Benefits of technology

The accuracy and efficiency of virtual domain controller signals during matching are realized, and the error simulation signals are avoided, and the efficiency and accuracy of simulation verification are significantly improved.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119622355A_ABST
    Figure CN119622355A_ABST
Patent Text Reader

Abstract

The invention discloses an intelligent driving simulation signal automatic matching method and device and an electronic medium. The method comprises the following steps: acquiring virtual domain controller signal data and simulation signal data; processing the virtual domain controller signal data to obtain virtual domain controller character data in a key value pair form; processing the simulation signal data to obtain simulation character data in a key value pair form; and matching the keys of the virtual domain controller character data with the keys of the simulation character data one by one. According to the intelligent driving simulation signal automatic matching method provided by the invention, each virtual domain controller signal and each simulation signal have a unique key as a label during matching by utilizing the uniqueness characteristic of dictionary keys, so that wrong simulation signals cannot be matched during matching of the virtual domain controller signals; and the virtual domain controller signal and the simulation signal can be matched quickly and efficiently.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention belongs to the technical field of simulation testing, and in particular relates to a method, a device and an electronic medium for automatic matching of intelligent driving simulation signals. Background Art

[0002] Intelligent driving uses artificial intelligence to assist or replace human driving, which can make up for the defects of human drivers. The development of intelligent driving technology relies on a large number of tests and verifications to ensure the quality of software development. At present, the industry uses simulation tests combined with real car tests. Simulation tests have the advantages of fast, accurate, and low cost, which increasingly highlight their important position in the development of intelligent driving. It can also quickly build extreme scenarios that cannot be verified by real cars or are extremely risky and complete the corresponding test verification.

[0003] In the related technology, the scene is built, and the perception signal and vehicle bus signal are connected to the simulation software through the simulation model. After calculation, the intelligent driving controller outputs the relevant signal to the simulation model to form a signal closed loop, and judges whether the software function is realized according to the relevant input and output rules to complete the simulation verification of the software. However, the number of simulated signal interactions is tens of thousands, which is very large, resulting in inefficiency, long time and high matching error rate in matching input simulation signals, which seriously affects the efficiency and accuracy of simulation verification. Summary of the invention

[0004] The purpose of the present invention is to propose an automatic matching method, device and electronic medium for intelligent driving simulation signals, so as to solve the problems in the prior art of low efficiency, long time consumption and high matching error rate in matching input simulation signals.

[0005] To this end, in a first aspect, the present invention provides an automatic matching method for intelligent driving simulation signals, comprising the following steps: acquiring virtual domain controller signal data and simulation signal data;

[0006] Processing the virtual domain controller signal data to obtain virtual domain controller character data in the form of key-value pairs; processing the simulation signal data to obtain simulation character data in the form of key-value pairs;

[0007] The keys of the virtual domain controller character data are matched one by one with the keys of the simulation character data.

[0008] Optionally, the acquiring of virtual domain controller signal data and simulation signal data includes:

[0009] The acquired virtual domain controller signal data is stored in a virtual domain controller signal list in the form of a list, and the acquired simulation signal data is stored in a simulation signal list in the form of a list, wherein the virtual domain controller signal data includes a plurality of virtual domain controller signals, and each row or column in the virtual domain controller signal list represents identification information of one of the virtual domain controller signals, wherein the identification information of the virtual domain controller signal includes at least a signal address; the simulation signal data includes a plurality of simulation signals, and each row or column in the simulation signal list represents identification information of one of the simulation signals, wherein the identification information of the simulation signal includes at least a signal address.

[0010] Optionally, the step of processing the virtual domain controller signal data to obtain virtual domain controller character data in the form of key-value pairs includes:

[0011] Define at least one class; assign signal identification information in the virtual domain controller signal list to objects of a class in turn, split and concatenate the signal address of the virtual domain controller signal as the key of the virtual domain controller signal, and use the object of the class as the value of the virtual domain controller signal.

[0012] Optionally, at least one dictionary A is defined, and a key-value pair obtained by processing each virtual domain controller signal is put into dictionary A.

[0013] Optionally, the step of segmenting and splicing the signal address of the virtual domain controller signal as the key of the virtual domain controller signal includes:

[0014] The same characters contained in the signal addresses of all virtual domain controller signals are cut off, and after the cutting off, the remaining characters are concatenated into a character string as the key of the virtual domain controller signal.

[0015] Optionally, the step of processing the simulation signal data to obtain simulation character data in the form of key-value pairs includes:

[0016] Define at least one class; assign signal identification information in the simulation signal list to objects of a class in turn, segment and concatenate the signal addresses of the simulation signals as the keys of the simulation signals, and use the objects of the class as the values ​​of the simulation signals.

[0017] Optionally, at least one dictionary B is defined, and each key-value pair obtained by processing a simulation signal is put into dictionary B.

[0018] Optionally, the step of dividing and splicing the signal address of the simulation signal as the key of the simulation signal includes:

[0019] The same characters contained in the signal addresses of all simulation signals are cut off, and after the cutting off, the remaining characters are concatenated into a character string as the key of the simulation signal.

[0020] Optionally, the keys of the dictionary B obtained by segmenting and concatenating the signal addresses of the simulation signals are consistent with the keys of the dictionary A obtained by segmenting and concatenating the signal addresses.

[0021] Optionally, the step of matching the virtual domain controller character data with the simulation character data one by one includes:

[0022] The keys in the virtual domain controller character data are matched one by one with the keys in the simulation character data. If the keys in the virtual domain controller character data are the same as the keys in the simulation character data, the match is determined to be successful; if the keys in the virtual domain controller character data are not the same as the keys in the simulation character data, the match is determined to have failed.

[0023] In the second aspect, a simulation signal automatic matching device is provided, comprising a signal acquisition module, a simulation signal module and a signal matching module, wherein the signal matching module is electrically connected to the signal acquisition module and the simulation signal module, the signal acquisition module is used to collect virtual domain controller signals, the simulation signal module is used to generate simulation signals, and the signal matching module uses the intelligent driving simulation signal automatic matching method to match the virtual domain controller signal with the simulation signal.

[0024] In a third aspect, an electronic medium is provided, characterized in that the electronic medium includes a controller and a storage device, the controller is electrically connected to the storage device, the storage device stores a computer program that can be executed by the controller, and the computer program is executed by the controller to realize the automatic matching method of intelligent driving simulation signals.

[0025] Beneficial effects:

[0026] The present invention provides an automatic matching method for intelligent driving simulation signals, which utilizes the uniqueness of dictionary keys to ensure that each virtual domain controller signal and each simulation signal have a unique key as a label when matching, and at the same time, the keys after cutting and splicing are shorter and more accurate, so that the virtual domain controller signal will not match the wrong simulation signal when matching, and the virtual domain controller signal and the simulation signal can be matched quickly and efficiently.

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

[0028] In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings required for use in the embodiments or the description of the prior art will be briefly introduced below. Obviously, the drawings described below are only some embodiments of the present invention. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying creative work.

[0029] Figure 1 A method flow chart of an embodiment of an automatic matching method for intelligent driving simulation signals in the present invention;

[0030] Figure 2 The figure is a schematic diagram of the structure of an embodiment of a simulation signal automatic matching device in the present invention.

[0031] Figure 3 The present invention is a flowchart of an embodiment of a simulation signal automatic matching device. DETAILED DESCRIPTION

[0032] In order to make the purpose, technical solutions and advantages of this application clearer, the technical solutions in this application will be clearly and completely described below in conjunction with the drawings in this application. Obviously, the described embodiments are part of the embodiments of this application, not all of the embodiments. Based on the embodiments in this application, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of this application.

[0033] The terms "first", "second", "third", "fourth", etc. in the specification and claims of this application and the above-mentioned drawings are used to distinguish similar objects, and are not necessarily used to describe a specific order or sequence. It should be understood that the data used in this way can be interchangeable under appropriate circumstances. For example, without departing from the scope of this document, the first information can also be referred to as the second information, and similarly, the second information can also be referred to as the first information.

[0034] The word "if" as used herein may be interpreted as "when" or "when" or "in response to determining," depending on the context.

[0035] Furthermore, as used herein, the singular forms “a”, “an” and “the” are intended to include the plural forms as well, unless the context indicates otherwise.

[0036] It should be further understood that the terms “comprises” and “includes” indicate the existence of features, steps, operations, elements, components, items, types, and / or groups, but do not exclude the existence, occurrence, or addition of one or more other features, steps, operations, elements, components, items, types, and / or groups.

[0037] The terms "or" and "and / or" used herein are interpreted as inclusive, or mean any one or any combination. Thus, "A, B or C" or "A, B and / or C" means "any of the following: A; B; C; A and B; A and C; B and C; A, B and C". An exception to this definition will only occur when a combination of elements, functions, steps or operations are inherently mutually exclusive in some manner.

[0038] At present, intelligent driving adopts the method of building scenes when conducting simulation. The simulation model simulates the perception signal and vehicle bus signal to access the simulation software. After calculation, the intelligent driving controller outputs the relevant signal to the simulation model to form a signal closed loop, and judges whether the software function is realized according to the relevant input and output rules to complete the simulation verification of the software. However, the number of simulated signal interactions is tens of thousands, which is extremely large, resulting in inefficiency, long time and high matching error rate in matching input simulation signals, which seriously affects the efficiency and accuracy of simulation verification.

[0039] In a first aspect, the present invention provides Figure 1 The method for automatically matching intelligent driving simulation signals shown in the figure comprises the following steps:

[0040] S1, obtaining virtual domain controller signal data and simulation signal data;

[0041] The acquired virtual domain controller signal data is stored in a virtual domain controller signal list in the form of a list, and the acquired simulation signal data is stored in a simulation signal list in the form of a list, wherein the virtual domain controller signal data includes a plurality of virtual domain controller signals, and each row or column in the virtual domain controller signal list represents identification information of one of the virtual domain controller signals, wherein the identification information of the virtual domain controller signal includes at least a signal address; the simulation signal data includes a plurality of simulation signals, and each row or column in the simulation signal list represents identification information of one of the simulation signals, wherein the identification information of the simulation signal includes at least a signal address.

[0042] In one embodiment, the virtual domain controller signal data includes several virtual domain controller signals, each row in the virtual domain controller signal list represents one of the virtual domain controller signals, and each column in the virtual domain controller signal list represents identification information of the virtual domain controller signal, wherein the identification information of the virtual domain controller signal includes at least a signal address; the simulation signal data includes several simulation signals, each row in the simulation signal list represents one of the simulation signals, and each column in the simulation signal list represents identification information of a simulation signal, wherein the identification information of the simulation signal includes at least a signal address.

[0043] The virtual domain controller signal has at least one identification information. Specifically, the identification information of the virtual domain controller signal may be a signal name and a signal address, or the identification information of the virtual domain controller signal may be a signal address and a serial port name, or the identification information of the virtual domain controller signal may be a signal name, a signal address and a serial port name.

[0044] In one embodiment, the identification information of the virtual domain controller signal includes a signal name, a signal address, and a serial port name. The number of specific identification information of the virtual domain controller signal can be defined according to actual conditions, and the identification information of the virtual domain controller signal is stored in the form of a string. The identification information of the simulation signal includes a signal name, a signal address, and a serial port name. The number of specific identification information of the simulation signal can be defined according to actual conditions, and the identification information of the simulation signal is stored in the form of a string.

[0045] The identification information of the simulation signal is at least one. Specifically, the identification information of the simulation signal can be a signal name and a signal address, or the identification information of the simulation signal can be a signal address and a serial port name, or the identification information of the simulation signal can be a signal name, a signal address and a serial port name.

[0046] S2, processing the virtual domain controller signal data to obtain virtual domain controller character data in the form of key-value pairs; processing the simulation signal data to obtain simulation character data in the form of key-value pairs;

[0047] The virtual domain controller character data in the form of key-value pairs obtained by processing the virtual domain controller signal data includes:

[0048] Define at least one class; sequentially assign the signal identification information in the virtual domain controller signal list to an object of a class, segment and splice the signal address of the virtual domain controller signal as the key of the virtual domain controller signal, and use the object of the class as the value of the virtual domain controller signal. In one embodiment, sequentially represents one by one according to the arrangement order of the virtual domain controller signal list, and assigns each identification information of the virtual domain controller signal to an object of a class. The number of objects of a class is greater than or equal to the number of identification information of a virtual domain controller signal. In one embodiment, the number of objects of a class is 3, the number of identification information of the virtual domain controller signal is 3, and the 3 identification information of the virtual domain controller signal is assigned to the 3 objects of the class. In another embodiment, the number of objects of a class is 4, the number of identification information of the virtual domain controller signal is 3, and the 3 identification information of the sensor signal is assigned to the first 3 objects of the class, and the 4th object of the class is empty and not assigned.

[0049] Define several dictionaries A, and put a key-value pair obtained by processing each virtual domain controller signal into dictionary A.

[0050] The class in this embodiment is a template for creating an object, which defines a set of properties and methods. A dictionary is a data type, and each element in the dictionary is a key-value pair, that is, a set of corresponding keys and values, where the key must be unique and is used as a retrieval tag, and the value is used to store information. Although the class in this embodiment is based on object-oriented programming languages, such as python, C++, etc., the functions similar to the class in this embodiment can also be realized by programming based on process-oriented programming languages ​​such as C language, and the present disclosure does not specifically limit the programming language. The present disclosure uses the uniqueness of the key to assign each identification information in the virtual domain controller signal to an object of the class, and divides and splices the virtual domain controller address in the identification information. The virtual domain controller address is a string, in which the virtual domain controller address of each virtual domain controller signal contains the same characters, removes these same characters and splices the remaining characters into a string as a key, and the remaining class objects are used as corresponding values. Each virtual domain controller signal in the virtual domain controller signal list is converted into a key-value pair in the dictionary and stored in dictionary A in turn.

[0051] The steps of converting the simulated signal data into simulated character data in the form of key-value pairs after segmentation and splicing include:

[0052] Define at least one class; assign the signal identification information in the simulation signal list to an object of a class in sequence, segment and concatenate the signal address of the simulation signal as the key of the simulation signal, and use the object of the class as the value of the simulation signal. In one embodiment, sequentially represents one by one according to the arrangement order of the simulation signal list, and assigns each identification information of the simulation signal to an object of a class. The number of objects of a class is greater than or equal to the number of identification information of a simulation signal. In one embodiment, the number of objects of a class is 3, the number of identification information of the simulation signal is 3, and the 3 identification information of the simulation signal is assigned to the 3 objects of the class. In another embodiment, the number of objects of a class is 4, the number of identification information of the simulation signal is 3, and the 3 identification information of the sensor signal is assigned to the first 3 objects of the class, and the 4th object of the class is empty and not assigned.

[0053] At least one dictionary B is defined, and the key and value of the simulation signal are stored in the dictionary B as a key-value pair.

[0054] The present disclosure uses the uniqueness of the key to assign each identification information in the simulation signal to an object of the class, and divides and splices the simulation address in the identification information. The simulation address is a string, which has the same characters contained in the simulation address of each simulation signal. These same characters are removed and the remaining characters are spliced ​​into a string as the key, and the remaining class objects are used as corresponding values. Each simulation signal in the simulation signal list is converted into a key-value pair in the dictionary and stored in the dictionary B in turn.

[0055] S3. Match the virtual domain controller character data with the simulation character data one by one to obtain a matching list and a prompt list.

[0056] The steps of matching the virtual domain controller character data with the simulation character data one by one include:

[0057] The keys in the virtual domain controller character data are matched one by one with the keys in the simulation character data. If the keys in the virtual domain controller character data are the same as the keys in the simulation character data, the match is determined to be successful; if the keys in the virtual domain controller character data are not the same as the keys in the simulation character data, the match is determined to have failed.

[0058] In one embodiment, the keys in the virtual domain controller character data are looped in sequence and the same keys are searched in the simulation character data. If there is the same key in the simulation character data as in the virtual domain controller character data, the match is determined to be successful; if there is no same key in the simulation character data as in the virtual domain controller character data, the match is determined to be unsuccessful. If the match is determined to be successful, the values ​​corresponding to the key in the virtual domain controller character data and the simulation character data are placed in the same row in the match list; if the match is determined to be unsuccessful, the value corresponding to the key in the virtual domain controller character data is placed in the prompt list; finally, the value corresponding to the key in the simulation character data that has not been successfully matched is placed in the prompt list. Among them, looping in sequence represents that the arrangement order of the keys in the virtual domain controller character data is performed one by one.

[0059] In another embodiment, the keys in the simulation character data are looped in sequence and the same keys are searched in the virtual domain controller character data. If there is the same key in the virtual domain controller character data as in the simulation character data, the match is determined to be successful; if there is no same key in the virtual domain controller character data as in the simulation character data, the match is determined to be unsuccessful. If the match is determined to be successful, the values ​​corresponding to the key in the simulation character data and the virtual domain controller character data are placed in the same row in the matching list; if the match is determined to be unsuccessful, the values ​​corresponding to the key in the simulation character data are placed in the prompt list; finally, the values ​​corresponding to the keys that have not been successfully matched in the virtual domain controller character data are placed in the prompt list. Among them, looping in sequence represents the arrangement order of the keys in the virtual domain controller character data one by one. By utilizing the uniqueness of the keys in the virtual domain controller character data and the simulation character data, and the keys after cutting and splicing are shorter and more accurate, the virtual domain controller signal will not match the wrong simulation signal during matching, and the virtual domain controller signal and the simulation signal can complete the matching quickly and efficiently.

[0060] Second, as Figure 2 As shown, the present invention provides a simulation signal automatic matching device, including a signal acquisition module, a simulation signal module and a signal matching module, wherein the signal matching module is electrically connected to the signal acquisition module and the simulation signal module, the signal acquisition module is used to acquire virtual domain controller signals, the simulation signal module is used to generate simulation signals, and the signal matching module uses the described intelligent driving simulation signal automatic matching method to match the virtual domain controller signal with the simulation signal. In this embodiment, the signal acquisition module is used to acquire virtual domain controller signals of the automobile intelligent driving system, and the simulation signal module simulates the signals to be simulated according to the signal level and attribute requirements through MATLAB Simulink. The signal flows of the signal acquisition module and the simulation signal module are mutual, the signal acquisition module has a virtual domain controller signal flowing to the simulation signal module to obtain a simulation signal, and the simulation signal module also has a virtual domain controller signal flowing to the signal acquisition module to obtain a simulation signal. When the signal matching module matches the virtual domain controller signal collected by the signal acquisition module with the simulation signal generated by the simulation signal module, the key of the virtual domain controller character data obtained by the virtual domain controller signal as virtual domain controller signal data is consistent with the key of the virtual domain controller character data obtained by the simulation signal as virtual domain controller signal data; similarly, the key of the simulation character data obtained by the virtual domain controller signal as simulation signal data is consistent with the key of the simulation character data obtained by the simulation signal as simulation signal data.

[0061] The signal acquisition module converts the collected virtual domain controller signals into ARXML files, and the simulation signal module compiles the simulation signals into sic files. ARXML files are a common file format for automotive electronic systems and are easy to convert into lists. Sic files contain the implementation data of Simulink models, which can be used on computers without MATLAB and Simulink, and are easy to convert into lists.

[0062] Specifically, Figure 3 The following usage examples are provided in this embodiment:

[0063] The signal acquisition module collects the virtual domain controller signals in the intelligent driving system and converts them into ARXML files. The simulation signal module simulates the signals to be simulated according to the signal level and attribute requirements, compiles them into sic files in Simulink, and transfers the ARXML files and sic files to the signal matching module.

[0064] The signal matching module extracts the virtual domain controller signal in the ARXML file and the simulation signal in the sic file, and organizes and classifies them into a virtual domain controller signal list and a simulation signal list. Among them, the virtual domain controller signal data includes a number of virtual domain controller signals, each row in the virtual domain controller signal list represents a virtual domain controller signal, each column in the virtual domain controller signal list represents the identification information of the virtual domain controller signal, and the identification information of the virtual domain controller signal in this embodiment includes the signal name, signal address and serial port name, and the identification information of the virtual domain controller signal is stored in the form of a string; the simulation signal data includes a number of simulation signals, each row in the simulation signal list represents a simulation signal, each column in the simulation signal list represents the identification information of a simulation signal, and the identification information of the simulation signal in this embodiment includes the signal name, signal address and serial port name, and the identification information of the simulation signal is stored in the form of a string.

[0065] The virtual domain controller signal list is shown in the following table:

[0066]

[0067] The simulation signal list is shown in the following table:

[0068] Signal name Signal Address Serial port name ASM_Traffc / ASM_Traffc / SIL_interface / In_OFM / R_FCU_FmtSideRdrLeObj1 / R_FCU_FmrntSideRdLeObj1 RdrObjChks ASM_Traffc / ASM_Traffc / SIL_interface / In_OFM / R_FCU_FmtSideRdrLeObj1 / R_FCU_FmrntSideRdLeObg2 RdrObjChks

[0069] When the signal flows from the simulation signal module to the signal acquisition module, the simulation signal flows to the virtual domain controller signal.

[0070] First define a class SimulinkPort,

[0071] class SimulinkPort():

[0072] SimulinkName="

[0073] SimulinkPortPath="

[0074] SimulinkPortName="

[0075] Among them, SimulinkName, SimulinkPortPath and SimulinkPortName are objects of the SimulinkPort class, representing the signal name, signal address and serial port name respectively.

[0076] Define the dictionary SimulinkportsDiscP and the dictionary ArxmlportsDiscR to store the simulation character data and the virtual domain controller character data respectively.

[0077] Assign the identification information of each column in each row of the virtual domain controller signal list to the object of the SimulinkPort class.

[0078] VecuRport=SimulinkPort()

[0079] VecuRport.SimulinkName=table_rd_VEcu.cell_value(row,0)

[0080] VecuRport.SimulinkPortPath=table_rd_VEcu.cell_value(row,1)

[0081] VecuRport.SimulinkPortName=table_rd_VEcu.cell_value(row,2)

[0082] The signal address VecuRport.SimulinkPortPath of the virtual domain controller signal is split and spliced ​​to obtain the key of the virtual domain controller signal, and the object of the class SimulinkPort is used as the value to form a key-value pair and assign it to the dictionary ArxmlportsDiscR.

[0083] key=VecuRport.SimulinkPortName.replace('_InputService',”)

[0084] key=key.replace('input',")

[0085] key=key.replace('Rp_',")

[0086] ArxmlportsDiscR[key]=SimulinkRport

[0087] Assign the identification information of each column in each row of the simulation signal list to the object of the SimulinkPort class.

[0088] AsmPport = SimulinkPort()

[0089] AsmPport.SimulinkName=table_rd_Asm.cell_value(row,0)

[0090] AsmPport.SimulinkPortPath=table_rd_Asm.cell_value(row,1)

[0091] AsmPport.SimulinkPortName=table_rd_Asm.cell_value(row,2)

[0092] SimulinkportsDiscP[key]=AsmPport

[0093] The signal address AsmPport.SimulinkPortPath of the simulation signal is split and concatenated to obtain the key of the simulation signal, and the object of the class SimulinkPort is assigned as a value to the dictionary SimulinkportsDiscP. The key of the simulation signal is consistent with the key of the virtual domain controller signal.

[0094] The signal matching module matches the dictionary of the virtual domain controller signal and the dictionary of the simulation signal, and searches the dictionary of the simulation signal for the same key as that in the dictionary of the virtual domain controller signal. If there are identical keys, the corresponding values ​​are placed in the same row in the matching list; if there are no identical keys, their values ​​are placed in the prompt list.

[0095] When the signal flows from the signal acquisition module to the simulation signal module, the virtual domain controller signal flows to the simulation signal.

[0096] First define a class SimulinkPort,

[0097] class SimulinkPort():

[0098] SimulinkName="

[0099] SimulinkPortPath="

[0100] SimulinkPortName="

[0101] Among them, SimulinkName, SimulinkPortPath and SimulinkPortName are objects of the SimulinkPort class, representing the signal name, signal address and serial port name respectively.

[0102] Define the dictionary SimulinkportsDiscP and the dictionary ArxmlportsDiscR to store the simulation character data and the virtual domain controller character data respectively.

[0103] Assign the identification information of each column in each row of the virtual domain controller signal list to the object of the SimulinkPort class.

[0104] VecuRport=SimulinkPort()

[0105] VecuRport.SimulinkName=table_rd_VEcu.cell_value(row,0)

[0106] VecuRport.SimulinkPortPath=table_rd_VEcu.cell_value(row,1)

[0107] VecuRport.SimulinkPortName=table_rd_VEcu.cell_value(row,2)

[0108] The signal address VecuRport.SimulinkPortPath of the virtual domain controller signal is split and spliced ​​to obtain the key of the virtual domain controller signal, and the object of the class SimulinkPort is used as the value to form a key-value pair and assign it to the dictionary ArxmlportsDiscR.

[0109] key=VecuPport.SimulinkPortName.replace('Pp_OSM_',")

[0110] key=key.replace('_OutputService_output',”)

[0111] ArxmlportsDiscP[key]=VecuPport

[0112] Assign the identification information of each column in each row of the simulation signal list to the object of the SimulinkPort class.

[0113] AsmPport = SimulinkPort()

[0114] AsmPport.SimulinkName=table_rd_Asm.cell_value(row,0)

[0115] AsmPport.SimulinkPortPath=table_rd_Asm.cell_value(row,1)

[0116] AsmPport.SimulinkPortName=table_rd_Asm.cell_value(row,2)

[0117] SimulinkportsDiscP[key]=AsmPport

[0118] The signal address AsmPport.SimulinkPortPath of the simulation signal is split and concatenated to obtain the key of the simulation signal, and the object of the class SimulinkPort is assigned as a value to the dictionary SimulinkportsDiscP. The key of the simulation signal is consistent with the key of the virtual domain controller signal.

[0119] The signal matching module matches the dictionary of the virtual domain controller signal and the dictionary of the simulation signal, and searches the dictionary of the simulation signal for the same key as that in the dictionary of the virtual domain controller signal. If there are identical keys, the corresponding values ​​are placed in the same row in the matching list; if there are no identical keys, their values ​​are placed in the prompt list.

[0120] In a third aspect, the present invention provides an electronic medium, which includes a controller and a storage device, wherein the controller is electrically connected to the storage device, and the storage device stores a computer program that can be executed by the controller. The computer program is executed by the controller to implement the above-mentioned method for automatic matching of intelligent driving simulation signals.

[0121] It should be understood that, although the various steps in the flowcharts in the above-described embodiments are sequentially displayed according to the indications of the arrows, these steps are not necessarily executed sequentially in the order indicated by the arrows. Unless there is a clear description in this article, the execution of these steps is not strictly limited in order, and they can be executed in other orders. Moreover, at least a portion of the steps in the figure may include a plurality of sub-steps or a plurality of stages, and these sub-steps or stages are not necessarily executed at the same time, but can be executed at different times, and their execution order is not necessarily to be carried out sequentially, but can be executed in turn or alternately with other steps or at least a portion of the sub-steps or stages of other steps.

[0122] Finally, it should be noted that the above embodiments are only used to illustrate the technical solutions of the present application, rather than to limit them. Although the present application has been described in detail with reference to the above embodiments, a person of ordinary skill in the art should understand that the technical solutions described in the above embodiments can still be modified, or some or all of the technical features can be replaced by equivalents. However, these modifications or replacements do not deviate the essence of the corresponding technical solutions from the scope of the technical solutions of the embodiments of the present application.

Claims

1. An automatic matching method for intelligent driving simulation signals, characterized in that: The following steps are involved: Acquire virtual domain controller signal data and simulation signal data; Processing the virtual domain controller signal data to obtain virtual domain controller character data in the form of key-value pairs; Processing the simulation signal data to obtain simulation character data in the form of key-value pairs; The keys of the virtual domain controller character data are matched one by one with the keys of the simulation character data.

2. The method for automatic matching of intelligent driving simulation signals according to claim 1, characterized in that: Acquiring virtual domain controller signal data and simulation signal data, including: The acquired virtual domain controller signal data is stored in a virtual domain controller signal list in the form of a list, and the acquired simulation signal data is stored in a simulation signal list in the form of a list, wherein the virtual domain controller signal data includes a plurality of virtual domain controller signals, and each row or column in the virtual domain controller signal list represents identification information of one of the virtual domain controller signals, wherein the identification information of the virtual domain controller signal includes at least a signal address; the simulation signal data includes a plurality of simulation signals, and each row or column in the simulation signal list represents identification information of one of the simulation signals, wherein the identification information of the simulation signal includes at least a signal address.

3. The method for automatic matching of intelligent driving simulation signals according to claim 2, characterized in that: The virtual domain controller character data in the form of key-value pairs obtained by processing the virtual domain controller signal data includes: Define at least one class; assign the signal identification information in the virtual domain controller signal list to an object of a class in turn, split and concatenate the signal address of the virtual domain controller signal as the key of the virtual domain controller signal, and use the object of the class as the value of the virtual domain controller signal.

4. The method for automatic matching of intelligent driving simulation signals according to claim 3, characterized in that: The step of segmenting and splicing the signal address of the virtual domain controller signal as the key of the virtual domain controller signal includes: The same characters contained in the signal addresses of all virtual domain controller signals are cut off, and after the cutting off, the remaining characters are concatenated into a character string as the key of the virtual domain controller signal.

5. The method for automatic matching of intelligent driving simulation signals according to claim 3, characterized in that: The processing of the simulation signal data to obtain the simulation character data in the form of key-value pairs includes: Define at least one class; assign signal identification information in the simulation signal list to objects of a class in turn, segment and concatenate the signal addresses of the simulation signals as the keys of the simulation signals, and use the objects of the class as the values ​​of the simulation signals.

6. The method for automatic matching of intelligent driving simulation signals according to claim 5, characterized in that: The step of dividing and splicing the signal address of the simulation signal as the key of the simulation signal comprises: The same characters contained in the signal addresses of all simulation signals are cut off, and after the cutting off, the remaining characters are concatenated into a character string as the key of the simulation signal.

7. The method for automatic matching of intelligent driving simulation signals according to claim 6, characterized in that: The key obtained by segmenting and splicing the signal address of the simulation signal is consistent with the key obtained by segmenting and splicing the signal address.

8. The method for automatic matching of intelligent driving simulation signals according to claim 1, characterized in that: The step of matching the virtual domain controller character data with the simulation character data one by one comprises: The keys in the virtual domain controller character data are matched one by one with the keys in the simulation character data. If the keys in the virtual domain controller character data are the same as the keys in the simulation character data, the match is determined to be successful; if the keys in the virtual domain controller character data are not the same as the keys in the simulation character data, the match is determined to have failed.

9. A simulation signal automatic matching device, characterized in that: It includes a signal acquisition module, a simulation signal module and a signal matching module, the signal matching module is electrically connected to the signal acquisition module and the simulation signal module, the signal acquisition module is used to acquire a virtual domain controller signal, the simulation signal module is used to generate a simulation signal, and the signal matching module uses an intelligent driving simulation signal automatic matching method according to any one of claims 1 to 8 to match the virtual domain controller signal with the simulation signal.

10. An electronic medium, characterized in that: The electronic medium includes a controller and a storage device, the controller is electrically connected to the storage device, and the storage device stores a computer program that can be executed by the controller. The computer program is executed by the controller to implement an automatic matching method for intelligent driving simulation signals as described in any one of claims 1 to 8.