Vehicle detection method and device, electronic equipment and storage medium
By receiving the first identifier of the detection request in the automotive electronic system and calling the corresponding execution function interface, the diagnosis failure caused by the user's error selection classification during the detection process is solved, the detection efficiency is improved and the successful execution of the target function is achieved and Fault detection.
Patent Information
- Application Number
- CN202411406981.X
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-10-10
- Publication Date
- 2025-02-07
AI Technical Summary
In automotive electronic systems, users need to select the correct classification from multiple models, configurations and suppliers when performing functional testing. Incorrect selection often leads to diagnosis failure, thereby reducing vehicle detection efficiency.
By receiving the first identifier in the detection request, the corresponding execution function interface is called to execute the target function. If the target function execution fails, the second identifier with the highest similarity is determined based on the first identifier, and the corresponding second execution function interface is called to execute the target function.
This method improves the efficiency of vehicle detection, reduces the need for users to check marking errors and professional intervention, and ensures the successful execution of target functions and fault detection.
Smart Images

Figure CN119396716A_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the technical field of detection of new energy vehicles, and in particular to a vehicle detection method, device, electronic equipment and storage medium. Background Art
[0002] With the continuous development of automotive electronics, more and more car models and configurations are released by various car manufacturers, and the various functions of cars are also gradually increasing. Various functions in cars are realized through different programs. For the same function, the implementation method of the function will be different based on the different models or configurations of the vehicles described; for the same function of the same model, if the hardware that realizes the function is provided by multiple different suppliers, the implementation method of the function may also be different.
[0003] For the above reasons, when users test a certain function, they need to select the correct category from a large number of vehicle models, configurations, suppliers, and vehicle functions to test the function. In this process, users are likely to select the wrong category, resulting in diagnosis failure. In the prior art, it is usually necessary to reselect the category or contact relevant professionals to assist in handling such problems, which leads to low vehicle detection efficiency. Summary of the invention
[0004] In response to the above problems, the example of the present application provides a vehicle detection method, device, electronic device and storage medium. The use of the solution of the present application is conducive to improving vehicle detection efficiency.
[0005] In a first aspect, an embodiment of the present application provides a vehicle detection method, the method comprising: receiving a detection request, the detection request including a first identifier, the detection request being used to request detection of a target function corresponding to the first identifier, the target function being one of multiple functions corresponding to multiple body control modules of the target vehicle; calling a first execution function interface according to the first identifier to execute the target function, the first identifier and the first execution function interface having a corresponding relationship; if the execution of the target function fails, determining a second identifier according to the first identifier, the second identifier being an identifier with the highest similarity to the first identifier among multiple identifiers; calling a second execution function interface according to the second identifier to execute the target function; and if the target function is successfully executed, performing fault detection on the target function.
[0006] It can be seen that in the embodiment of the present application, in the process of detecting the target function, after the execution of the target function through the first execution function interface fails, the second identifier is matched according to the first identifier, and then the target function is executed according to the second execution function interface corresponding to the second identifier. The user does not need to check whether the first identifier is accurate, nor does it require relevant professionals to intervene, thereby improving the detection efficiency of the vehicle.
[0007] In combination with the first aspect, in a possible embodiment, there is a correspondence between the first identifier and the first execution function interface, including: there is a correspondence between the first execution function interface and the value in the target key-value pair, the target key-value pair includes at least one key, and the at least one key is determined based on the first identifier.
[0008] It can be seen that in the embodiment of the present application, the storage space of the device for executing the vehicle detection method is saved by recording the correspondence between the key-value pair identifier and the execution function interface which occupies a smaller storage space.
[0009] In combination with the first aspect, in a possible embodiment, the smaller the absolute value of the feature label difference of the features between the identifiers, the higher the similarity of the features between the identifiers; determining the second identifier based on the first identifier includes: obtaining multiple first candidate identifiers, the first candidate identifier is an identifier other than the first identifier stored locally; respectively calculating the absolute values of the feature label differences between the multiple first candidate identifiers and the first identifier, the absolute values of the feature label differences include at least one of the absolute values of the vehicle model label difference, the absolute values of the sub-vehicle model label difference, the absolute values of the configuration label difference, the absolute values of the supplier label difference and the functional type label difference; obtaining a preset weight for each absolute value of the feature label difference; respectively calculating the adaptation scores of the multiple first candidate identifiers based on the absolute values of the feature label differences of the multiple first candidate identifiers and the preset weights of the absolute values of each feature label difference; and determining the first candidate identifier with the highest adaptation score as the second identifier.
[0010] It can be seen that in the embodiment of the present application, the adaptation score of the first identifier and the first alternative identifier is calculated by using the absolute value of the feature number difference and the preset weight, thereby improving the accuracy of the adaptation score, thereby improving the similarity between the second identifier and the first identifier determined according to the adaptation score, and improving the success rate of the second execution function interface corresponding to the second identifier in executing the target function, thereby improving the detection efficiency.
[0011] In combination with the first aspect, in a possible embodiment, obtaining multiple first alternative identifiers includes: obtaining multiple second alternative identifiers, the multiple second alternative identifiers are identifiers stored locally other than the first identifier, and the function type label of the second alternative identifier is equal to the function type label of the first identifier; determining multiple first alternative identifiers from the multiple second alternative identifiers, the multiple first alternative identifiers corresponding to multiple different execution function interfaces.
[0012] It can be seen that in the embodiment of the present application, in the process of obtaining the first alternative identifier, multiple second alternative identifiers with the same functional type are first obtained, and multiple first alternative identifiers corresponding to different execution function interfaces are determined from the multiple second alternative identifiers, thereby reducing the number of first alternative identifiers that need to calculate the adaptation score, thereby improving the vehicle detection efficiency.
[0013] In combination with the first aspect, in a possible embodiment, if the execution of the target function fails; after calling the second execution function interface according to the second identifier to execute the target function, the method also includes: determining the first alternative identifier with the second highest adaptation score as the third identifier; and calling the third execution function interface according to the third identifier to execute the target function.
[0014] It can be seen that in the embodiment of the present application, by trying the execution function interfaces corresponding to multiple first candidate identifiers in sequence according to the adaptation scores of the first candidate identifiers in descending order to execute the target function, the detection success rate of the target function is improved.
[0015] In combination with the first aspect, in a possible embodiment, the first execution function interface corresponding to the first identifier in the execution function interface library includes a preferred execution function interface and multiple alternative execution function interfaces; if the target function is executed successfully, after calling the second execution function interface according to the second identifier to execute the target function, the method also includes: determining the second execution function interface as the alternative execution function interface corresponding to the first identifier.
[0016] In combination with the first aspect, in a possible embodiment, calling the first execution function interface to execute the target function includes: calling the preferred execution function interface to execute the target function; if calling the preferred execution function interface to execute the target function fails, calling multiple alternative execution function interfaces to execute the target function respectively; if calling multiple alternative execution function interfaces to execute the target function fails respectively, determining that the target function execution has failed.
[0017] It can be seen that in an embodiment of the present application, after the target function is successfully executed, by determining the second execution function interface as the alternative execution function interface corresponding to the first identifier, the next time the target function is executed through the first execution function interface corresponding to the first identifier, the second execution function interface can be directly tried to execute the target function without having to determine the second identifier again, thereby improving the efficiency of vehicle detection.
[0018] In a second aspect, an embodiment of the present application provides a vehicle detection device for executing a vehicle detection method, the vehicle detection device comprising:
[0019] A receiving unit: used for receiving a detection request, the detection request includes a first identifier, the detection request is used for requesting to detect a target function corresponding to the first identifier, and the target function is one of multiple functions corresponding to multiple body control modules of a target vehicle;
[0020] A calling unit: used for calling a first execution function interface according to a first identifier to execute a target function, and a corresponding relationship exists between the first identifier and the first execution function interface;
[0021] A determination unit: used to determine a second identifier according to the first identifier if the target function fails to be executed, the second identifier being the identifier with the highest similarity to the first identifier among the multiple identifiers;
[0022] The calling unit is further configured to call the second execution function interface according to the second identifier to execute the target function;
[0023] Detection unit: used to perform fault detection on the target function when the target function is successfully executed.
[0024] In a third aspect, an embodiment of the present application provides an electronic device comprising a processor, a memory, a communication interface, and one or more programs, wherein the one or more programs are stored in the memory and configured to be executed by the processor, and one or more instructions are suitable for being loaded by the processor and executing part or all of the method of the first aspect.
[0025] In a fourth aspect, an embodiment of the present application provides a computer-readable storage medium storing a computer program for electronic data exchange, wherein the computer program enables a computer to execute part or all of the method of the first aspect.
[0026] In a fifth aspect, the present application provides a computer program product. When a computer reads and executes the computer program product, the computer executes the method in any possible design of the first to second aspects above.
[0027] It can be understood that the beneficial effects of the embodiments described in the second to fifth aspects can refer to the beneficial effects of the methods described in the first to second aspects, and will not be repeated here. BRIEF DESCRIPTION OF THE DRAWINGS
[0028] In order to more clearly illustrate the embodiments of the present application 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 application. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying creative work.
[0029] Figure 1 A schematic diagram of an application scenario of a vehicle detection method provided in an embodiment of the present application;
[0030] Figure 2 A schematic diagram of a vehicle detection method provided in an embodiment of the present application;
[0031] Figure 3 A schematic diagram of generating a detection request provided in an embodiment of the present application;
[0032] Figure 4AA schematic diagram of an execution function interface library provided in an embodiment of the present application;
[0033] Figure 4B A schematic diagram of another execution function interface library provided in an embodiment of the present application;
[0034] Figure 5 A schematic diagram of a flow chart of another vehicle detection method provided in an embodiment of the present application;
[0035] Figure 6 A schematic diagram of the structure of a vehicle detection device provided in an embodiment of the present application;
[0036] Figure 7 A schematic diagram of the structure of an electronic device provided in an embodiment of the present application. DETAILED DESCRIPTION
[0037] In order to enable those skilled in the art to better understand the solution of the present application, the technical solution in the embodiments of the present application will be clearly and completely described below in conjunction with the drawings in the embodiments of the present application. Obviously, the described embodiments are only part of the embodiments of the present application, not all of the embodiments. Based on the embodiments in the present application, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of this application.
[0038] The terms "first", "second", etc. in the specification and claims of this application and the above-mentioned drawings are used to distinguish different objects, rather than to describe a specific order. In addition, the terms "including" and "having" and any variations thereof are intended to cover non-exclusive inclusions. For example, a process, method, system, product or device that includes a series of steps or units is not limited to the listed steps or units, but optionally includes steps or units that are not listed, or optionally includes other steps or units inherent to these processes, methods, products or devices.
[0039] Reference to "embodiments" herein means that a particular feature, structure, or characteristic described in conjunction with the embodiments may be included in at least one embodiment of the present application. The appearance of the phrase in various locations in the specification does not necessarily refer to the same embodiment, nor is it an independent or alternative embodiment that is mutually exclusive with other embodiments. It is explicitly and implicitly understood by those skilled in the art that the embodiments described herein may be combined with other embodiments.
[0040] The embodiments of the present application are described below in conjunction with the accompanying drawings.
[0041] See also Figure 1 , Figure 1A schematic diagram of an application scenario of a vehicle detection method provided in an embodiment of the present application, wherein the application scenario 100 includes a vehicle detection device 101 and a target vehicle 102.
[0042] The vehicle detection device 101 here can specifically be a diagnostic instrument dedicated to a car, a terminal with a car diagnostic function, a mobile terminal or other devices.
[0043] The target vehicle 102 here specifically refers to vehicles of the type of sedan, multi-purpose vehicle, off-road vehicle, pickup truck, van, bus, truck, etc. The target vehicle 102 includes one or more body control modules, each of which is used to implement discrete control functions and control various devices in the target vehicle 102 such as lamps, wipers, door locks, electric windows, sunroofs, etc.
[0044] When the user detects the target vehicle 102 through the vehicle detection device 101, the vehicle detection device 101 is connected to the target vehicle 102, and the user's instructions select the corresponding target function to be detected. The vehicle detection device 101 controls the electronic control unit in the body control module corresponding to the target function by calling the first execution function interface, thereby executing the target function, and then detecting the target function through various data generated in the process of executing the target function.
[0045] In the embodiment of the present application, the vehicle detection device 101 receives a detection request, the detection request includes a first identifier, and the detection request is used to request detection of a target function corresponding to the first identifier, and the target function is one of multiple functions corresponding to multiple body control modules of the target vehicle 102. The detection request here is specifically input by the user to the vehicle detection device 101 through a button or a virtual button of the vehicle detection device 101. The first identifier here corresponds to the target function, and the target function is one of multiple functions corresponding to multiple body control modules of the target vehicle 102.
[0046] Exemplarily, the user determines the target function of the target vehicle 102 by selecting the model, sub-model and configuration of the target vehicle 102, as well as the supplier and function type of the target function on the vehicle detection device. The supplier here specifically refers to the supplier of the hardware that implements the target function.
[0047] The vehicle detection device 101 calls the first execution function interface according to the first identifier to execute the target function, and there is a corresponding relationship between the first identifier and the first execution function interface. For different target functions, the vehicle detection device 101 needs to call different execution function interfaces to normally implement the target function. There is a corresponding relationship between the first identifier and the first execution function interface. The corresponding relationship here can be a mapping relationship between the identifier and the execution function interface stored in advance, and can be recorded in a database, a key-value pair, or the like.
[0048] If the target function fails to execute, the vehicle detection device 101 determines the second identifier based on the first identifier, and the second identifier is the identifier with the highest similarity to the first identifier among the multiple identifiers. If the first identifier generated by the vehicle detection device 101 through the detection request is inconsistent with the identifier that the user actually detects the target function through the vehicle detection device 101, it means that the user may have selected the wrong vehicle model, sub-model, configuration, supplier and function type. As a result, an erroneous first identifier is generated, and the execution function interface called by the vehicle detection device 101 cannot execute the target function normally.
[0049] The vehicle detection device 101 calls the second execution function interface according to the second identifier to execute the target function. Here, the second identifier is determined by the first identifier to call a new second execution function interface to try to execute the target function.
[0050] When the target function is successfully executed, the vehicle detection device 101 performs a fault detection on the target function. After the target function is successfully executed, the vehicle detection device 101 further detects the target function according to various data and parameters generated.
[0051] It can be seen that in the embodiment of the present application, in the process of detecting the target function, after the execution of the target function through the first execution function interface fails, the second identifier is matched according to the first identifier, and then the target function is executed according to the second execution function interface corresponding to the second identifier. The user does not need to check whether the first identifier is accurate, nor does it require relevant professionals to intervene, thereby improving the detection efficiency of the vehicle.
[0052] See also Figure 2 , Figure 2 A flow chart of a vehicle detection method provided in an embodiment of the present application can be based on Figure 1 The application scenario shown is implemented as follows Figure 2 As shown, steps S201-S205 are included:
[0053] S201: A vehicle detection device receives a detection request, the detection request includes a first identifier, and the detection request is used to request detection of a target function corresponding to the first identifier, where the target function is one of multiple functions corresponding to multiple body control modules of a target vehicle.
[0054] Specifically, the detection request here is specifically input by the user to the vehicle detection device when detecting a target function of the target vehicle. The vehicle detection device determines the target function of the corresponding body control module in the vehicle according to the first identifier in the detection request.
[0055] For example, see Figure 3 , Figure 3A schematic diagram of generating a detection request provided in an embodiment of the present application, wherein the user selects the correct feature information from a variety of vehicle models, sub-models, configurations, function types and suppliers displayed on the display screen of the vehicle detection device through hardware such as a touch screen and physical buttons, so as to generate a first identifier corresponding to the vehicle model, sub-model, configuration, function type and supplier. Figure 3 The user is specifying the supplier type of the target function. The user can select the supplier type through the touch screen, physical buttons and other hardware. Figure 3 One of the suppliers A, B, and C shown is selected to generate a first identifier of a target function, and then a detection request for the target function is sent to a vehicle detection device.
[0056] S202: The vehicle detection device calls a first execution function interface according to the first identifier to execute a target function, and there is a corresponding relationship between the first identifier and the first execution function interface.
[0057] Specifically, after determining the target function to be detected, the vehicle detection device controls the electronic control unit of the body controller corresponding to the target function through the execution function interface corresponding to the target function, and then executes the target function to obtain various data to detect the target function.
[0058] In a possible embodiment, there is a correspondence between the first identifier and the first execution function interface, including: there is a correspondence between the first execution function interface and the value in the target key-value pair, the target key-value pair includes at least one key, and the at least one key is determined based on the first identifier.
[0059] Specifically, the correspondence between the identifier and the execution function interface can be recorded through a function relationship, a mapping, a key-value pair, etc. In the embodiment of the present application, the correspondence between the first identifier and the first execution function interface is reflected through a key-value pair.
[0060] If the first identifier is used to characterize the five features of the target function, namely, vehicle model, sub-vehicle model, configuration, supplier and function type, the first representation corresponding key is generated according to the corresponding feature number of each feature. For example, the target function is the function of function type A on a vehicle of vehicle model A, sub-vehicle model B, and configuration C, and its supplier is B. The feature numbers corresponding to the above five features are 01, 02, 03, 01, and 02, respectively. The generated key is: 0102030102. The value corresponding to the key "0102030102" is recorded as "FuncA" in the local execution function interface library. The corresponding execution function interface is further determined based on "FuncA". The feature number of each feature can be a decimal number, a hexadecimal number, etc., which is not limited here.
[0061] See also Figure 4A , Figure 4AA schematic diagram of an execution function interface library provided for an embodiment of the present application, wherein multiple keys correspond to an identifier respectively, each identifier corresponds to a different target function, and each of the multiple keys corresponds to one or more values. It can be seen that the multiple keys in the execution function interface library are different, each key corresponds to one or more values, and multiple values may be the same. That is to say, different functions can be executed through one or more execution function interfaces, and multiple different functions can also be executed through the same execution function interface.
[0062] It can be seen that in the embodiment of the present application, the storage space of the device for executing the vehicle detection method is saved by recording the correspondence between the key-value pair identifier and the execution function interface which occupies a smaller storage space.
[0063] S203: If the target function fails to be executed, the vehicle detection device determines a second identifier based on the first identifier, where the second identifier is the identifier with the highest similarity to the first identifier among the multiple identifiers.
[0064] Specifically, the failure to execute the target function is usually due to the user selecting the wrong feature when selecting the feature of the target function, causing the detection device to call the wrong execution function interface. For example, the hardware supplier of the target function is supplier A, but the user mistakenly selects supplier B when generating the first identifier, causing the detection device to fail to execute the target function.
[0065] Combined with the above-mentioned rules for generating the identifier, it can be seen that the first identifier at this time has little difference with the identifier that actually corresponds to the target function (usually only a single feature number in the identifier is different). Therefore, the second identifier with the highest similarity to the first identifier is determined here.
[0066] In a possible embodiment, the smaller the absolute value of the feature label difference of the features between the identifiers, the higher the similarity of the features between the identifiers; determining the second identifier based on the first identifier includes: obtaining multiple first candidate identifiers, the first candidate identifier is an identifier other than the first identifier stored locally; calculating the absolute values of the feature label differences between the multiple first candidate identifiers and the first identifier respectively, the absolute values of the feature label differences include at least one of the absolute values of the vehicle model label difference, the absolute values of the sub-vehicle model label difference, the absolute values of the configuration label difference, the absolute values of the supplier label difference and the function type label difference; obtaining a preset weight for each absolute value of the feature label difference; calculating the adaptation scores of the multiple first candidate identifiers based on the absolute values of the feature label differences of the multiple first candidate identifiers and the preset weights of the absolute values of each feature label difference; and determining the first candidate identifier with the highest adaptation score as the second identifier.
[0067] Specifically, when comparing the similarity between two identifiers, it can be determined by the absolute value of the difference in feature labels, which is the absolute value of the difference in labels of the same feature of the two identifiers, such as the absolute value of the difference in vehicle model labels, the absolute value of the difference in supplier labels, etc.
[0068] For example, the identifier "01010101" and the identifier "01010102" differ only in the last identifier, that is, the absolute value of the difference between "01" and "02" is "1". The identifier "01010101" and the identifier "01131102" have multiple identifiers that differ. The identifier "01010101" and the identifier "01010102" have a high similarity, and the identifier "01010101" and the identifier "01131102" have a low similarity.
[0069] Furthermore, when comparing the difference between the two logos, the adaptation score between the two logos is calculated by the absolute value of the difference between each feature label between the two logos. The higher the adaptation score, the higher the similarity between the two logos. It can be understood that between the two logos, the absolute value of the vehicle model label of 1 has a greater impact on the overall similarity of the two logos than the absolute value of the sub-vehicle model label of 1. Therefore, when calculating the adaptation score of the two logos, it is also necessary to consider the impact of different features on the overall similarity, which is specifically achieved through preset weights.
[0070] It can be seen that in the embodiment of the present application, the adaptation score of the first identifier and the first alternative identifier is calculated by using the absolute value of the feature number difference and the preset weight, thereby improving the accuracy of the adaptation score, thereby improving the similarity between the second identifier and the first identifier determined according to the adaptation score, and improving the success rate of the second execution function interface corresponding to the second identifier in executing the target function, thereby improving the detection efficiency.
[0071] In a possible embodiment, the adaptation scores of the multiple first candidate identifiers are calculated according to the preset weight of the absolute value of the difference between each feature label and the absolute value of the difference between the multiple first candidate identifiers and the first identifier feature label, and the calculated adaptation scores satisfy the following formula (1):
[0072]
[0073] Where X i is the absolute value of the label difference of the ith feature. When labeling different features, the vehicle detection device will pre-set the labels of different features. For similar features, their labels are also close (such as 01 and 02), and for features with large differences, their labels are farther apart (such as 01 and 48). iThe preset weight is the absolute value of the difference between the feature labels of the i-th feature. The preset weight is determined based on the influence of the corresponding feature on the similarity. The higher the influence, the greater the preset weight. Here, 100 is the full score, which can be replaced by 10, 1000, etc.
[0074] For example, see Figure 4B A schematic diagram of another execution function interface library provided in an embodiment of the present application, Figure 4B The execution function interface library shown includes three first candidate identifiers corresponding to the first identifier, and the values corresponding to the three first identifiers. The three first candidate identifiers shown in the figure are selected from more identifiers. It can be seen from the figure that the last feature number of the first candidate identifier is the same as the last feature number of the first identifier, which is "01", which indicates that the function types corresponding to the multiple first candidate identifiers are the same as the function type corresponding to the first identifier.
[0075] After determining multiple first candidate identifiers, the vehicle detection device further calculates the adaptation score of each first candidate identifier based on the preset weights of the absolute values of the difference between the multiple feature labels and the absolute value of the difference between each first candidate identifier and the first identifier feature label. If the key corresponding to the first identifier is "0X0101020101", the calculation process of the adaptation scores corresponding to the three first identifiers is as shown in the following formulas (2), (3), and (4):
[0076] S1=(100-|2-1|)×0.6+(100-|5-2|)×0.2+(100-|1-1|)×0.1+(100-
[0077] |5-1|)×0.1=98.4(2)
[0078] S2=(100-|2-1|)×0.6+(100-|4-2|)×0.2+(100-|2-1|)×0.1+(100-
[0079] |5-1|)×0.1=98.9(3)
[0080] S3=(100-|3-1|)×0.6+(100-|6-2|)×0.2+(100-|2-1|)×0.1+(100-
[0081] |7-1|)×0.1=97.2(4)
[0082] Among them, S1 is the adaptation score of the first candidate identifier with serial number 1, S2 is the adaptation score of the first candidate identifier with serial number 2, and S3 is the adaptation score of the first candidate identifier with serial number 3. It can be seen that the first candidate identifier with serial number 2 has the highest adaptation score and the highest degree of similarity with the first identifier, so the first candidate identifier with the key "0X0102040201" here is the second identifier determined by the vehicle detection device.
[0083] In a possible embodiment, obtaining multiple first alternative identifiers includes: obtaining multiple second alternative identifiers, the multiple second alternative identifiers are identifiers stored locally other than the first identifier, and the function type label of the second alternative identifier is equal to the function type label of the first identifier; determining multiple first alternative identifiers from the multiple second alternative identifiers, and the multiple first alternative identifiers correspond to multiple different execution function interfaces.
[0084] Specifically, among the multiple identifiers recorded by the vehicle detection device, there may be a situation where multiple identifiers correspond to the same execution function interface. This is because the same electronic control unit may execute different functions in different body control modules.
[0085] Therefore, in the embodiment of the present application, when determining the first candidate identifier, first obtain multiple second candidate identifiers, where the second candidate identifier is an identifier of the same functional type as the first identifier. After determining multiple second candidate identifiers, determine the first candidate identifier from the multiple second candidate identifiers, in order to filter out the multiple second candidate identifiers corresponding to the same execution function interface, so that each of the final first candidate identifiers corresponds to a different execution function interface.
[0086] Further, determining multiple first candidate identifiers from multiple second candidate identifiers includes: dividing multiple second candidate identifier groups into multiple candidate identifier groups, the candidate identifier groups including one or more corresponding second candidate identifiers with the same execution function interface; and determining the second candidate identifier with the smallest absolute value of the target feature number difference in each candidate identifier group as the first feature representation. The absolute value of the target feature number difference here specifically refers to the absolute value of the feature number difference with the largest preset weight.
[0087] It can be seen that in the embodiment of the present application, in the process of obtaining the first alternative identifier, multiple second alternative identifiers with the same functional type are first obtained, and multiple second alternative identifiers corresponding to different execution function interfaces are determined from the multiple second alternative identifiers, thereby reducing the number of first alternative identifiers that need to calculate the adaptation score, thereby improving the vehicle detection efficiency.
[0088] S204: The vehicle detection device calls the second execution function interface according to the second identifier to execute the target function.
[0089] Specifically, there is a corresponding relationship between the second execution function interface and the second identifier.
[0090] S205: When the target function is successfully executed, the vehicle detection device performs fault detection on the target function.
[0091] Specifically, after the target function is successfully executed, it means that the target function can operate normally, and the vehicle detection device can further perform fault detection on the target function.
[0092] In a possible embodiment, the first execution function interface corresponding to the first identifier in the execution function interface library includes a preferred execution function interface and multiple alternative execution function interfaces; if the target function is executed successfully, after calling the second execution function interface according to the second identifier to execute the target function, the method also includes: determining the second execution function interface as the alternative execution function interface corresponding to the first identifier.
[0093] Specifically, as described above, the execution function interface library records the correspondence between identifiers and execution function interfaces, and one identifier may correspond to one or more execution function interfaces.
[0094] In an embodiment of the present application, the first execution function interface may include one or more execution function interfaces, including a preferred execution function interface and multiple alternative execution function interfaces. The alternative execution function interface here is specifically a second identifier directly determined after calling the second execution function interface according to the second identifier to execute the target function, or the target function can be executed through different execution function interfaces, so a preferred execution function interface and one or more alternative execution function interfaces can be determined in advance from multiple execution function interfaces that can execute the target function.
[0095] In a possible embodiment, calling the first execution function interface to execute the target function includes: calling the preferred execution function interface to execute the target function; if calling the preferred execution function interface to execute the target function fails, calling multiple alternative execution function interfaces to execute the target function respectively; if calling multiple alternative execution function interfaces to execute the target function fails respectively, determining that the target function execution has failed.
[0096] Specifically, since the first identifier may correspond to one or more execution function interfaces at the same time, when executing the target function through the first execution function interface corresponding to the first identifier, the target function is first executed by calling the preferred execution function interface with the highest probability of successful execution. After the first execution fails, multiple alternative execution function interfaces are tried in sequence to execute the target function until all execution function interfaces corresponding to the first execution function interface fail to execute the target function, and then it is determined that the execution of the target function has failed.
[0097] It can be seen that in an embodiment of the present application, after the target function is successfully executed, by determining the second execution function interface as the alternative execution function interface corresponding to the first identifier, the next time the target function is executed through the first execution function interface corresponding to the first identifier, the second execution function interface can be directly tried to execute the target function without having to determine the second identifier again, thereby improving the efficiency of vehicle detection.
[0098] The above-mentioned application embodiment provides a detection method for executing a target function through a second execution function interface corresponding to a second identifier that is most similar to the first identifier. In the case where the second execution function interface still fails to execute the target function, the present application embodiment also provides another vehicle detection method, see Figure 5 , Figure 5 A flow chart of another vehicle detection method provided in an embodiment of the present application includes steps S501-S505:
[0099] S501: A vehicle detection device receives a detection request, the detection request includes a first identifier, and the detection request is used to request detection of a target function corresponding to the first identifier, where the target function is one of multiple functions corresponding to multiple body control modules of a target vehicle.
[0100] S502: The vehicle detection device calls a first execution function interface according to a first identifier to execute a target function, and there is a corresponding relationship between the first identifier and the first execution function interface.
[0101] S503: If the target function fails to be executed, the vehicle detection device determines a second identifier based on the first identifier, where the second identifier is the identifier with the highest similarity to the first identifier among the multiple identifiers.
[0102] The second identifier here is the first candidate identifier with the highest adaptation score among multiple first candidate identifiers.
[0103] S504: The vehicle detection device calls the second execution function interface according to the second identifier to execute the target function.
[0104] For other detailed descriptions of steps S501-S504, please refer to steps S201-S204 and related descriptions, which will not be repeated here.
[0105] S505: If the target function fails to be executed, the vehicle detection device determines the first candidate identifier with the second highest adaptation score as the third identifier; and calls the third execution function interface according to the third identifier to execute the target function.
[0106] If the target function still fails to execute, the first candidate identifier with the second highest adaptation score is determined as the third identifier, and the third execution function interface is called according to the third identifier to execute the target function. That is to say, the vehicle detection device will try to execute the target function by executing the execution function interfaces corresponding to multiple first candidate identifiers in descending order according to the adaptation scores of the first candidate identifiers until the target function is successfully executed.
[0107] It can be seen that in the embodiment of the present application, by trying multiple execution function interfaces corresponding to the first alternative identifiers in order from high to low according to the adaptation scores of the first alternative identifiers to execute the target function, the probability of successful execution of the target function is improved.
[0108] By implementing the method in the above application embodiment, it can be seen that executing the target function through the second execution function interface corresponding to the second identifier improves the vehicle detection efficiency. The corresponding relationship between the identifier and the execution function interface is recorded by key-value pairs, which saves the storage space of the device that executes the vehicle detection method. The adaptation score of the first identifier and the first candidate identifier is calculated by the absolute value of the difference between the feature numbers and the preset weights, and multiple first candidate identifiers corresponding to different execution function interfaces are determined from multiple second candidate identifiers to further improve the detection efficiency.
[0109] Based on the description of the above configuration method embodiment, the present application also provides a vehicle detection device 600, which can be operated on Figure 1 The vehicle detection device 101 shown is used to perform Figure 2 and / or Figure 5 See the method shown in Figure 6 , Figure 6 A schematic diagram of the structure of a vehicle detection device provided in an embodiment of the present application, the vehicle detection device 600 includes:
[0110] Receiving unit 601: used to receive a detection request, the detection request includes a first identifier, the detection request is used to request detection of a target function corresponding to the first identifier, and the target function is one of multiple functions corresponding to multiple body control modules of a target vehicle;
[0111] Calling unit 602: used to call a first execution function interface according to a first identifier to execute a target function, and there is a corresponding relationship between the first identifier and the first execution function interface;
[0112] Determining unit 603: used to determine a second identifier according to the first identifier if the target function fails to be executed, the second identifier being the identifier with the highest similarity to the first identifier among the multiple identifiers;
[0113] The calling unit 602 is also used to call the second execution function interface according to the second identifier to execute the target function;
[0114] The detection unit 604 is used to perform fault detection on the target function when the target function is successfully executed.
[0115] In a possible embodiment, in terms of the correspondence between the first identifier and the first execution function interface, the determination unit 603 is also specifically used to: there is a correspondence between the first execution function interface and the value in the target key-value pair, the target key-value pair includes at least one key, and the at least one key is determined based on the first identifier.
[0116] In a possible embodiment, the smaller the absolute value of the feature label difference of the features between the identifiers, the higher the similarity of the features between the identifiers; in terms of determining the second identifier based on the first identifier, the receiving unit 601 is also specifically used to: obtain multiple first candidate identifiers, the first candidate identifier is an identifier other than the first identifier stored locally; respectively calculate the absolute values of the feature label differences between the multiple first candidate identifiers and the first identifier, the absolute values of the feature label differences include at least one of the absolute values of the vehicle model label difference, the absolute values of the sub-vehicle model label difference, the absolute values of the configuration label difference, the absolute values of the supplier label difference and the function type label difference; obtain a preset weight for each absolute value of the feature label difference; respectively calculate the adaptation scores of the multiple first candidate identifiers based on the absolute values of the feature label differences of the multiple first candidate identifiers and the preset weights of the absolute values of each feature label difference; and determine the first candidate identifier with the highest adaptation score as the second identifier.
[0117] In a possible embodiment, in terms of obtaining multiple first alternative identifiers, the receiving unit 601 is also specifically used to: obtain multiple second alternative identifiers, the multiple second alternative identifiers are identifiers stored locally other than the first identifier, and the function type label of the second alternative identifier is equal to the function type label of the first identifier; determine multiple first alternative identifiers from the multiple second alternative identifiers, and the multiple first alternative identifiers correspond to multiple different execution function interfaces.
[0118] In a possible embodiment, if the execution of the target function fails; after calling the second execution function interface according to the second identifier to execute the target function, the determination unit 603 is also specifically used to: determine the first alternative identifier with the second highest adaptation score as the third identifier; and call the third execution function interface according to the third identifier to execute the target function.
[0119] In a possible embodiment, the first execution function interface corresponding to the first identifier in the execution function interface library includes a preferred execution function interface and multiple alternative execution function interfaces; if the target function is executed successfully, after calling the second execution function interface according to the second identifier to execute the target function, the determination unit 603 is also specifically used to: determine the second execution function interface as the alternative execution function interface corresponding to the first identifier.
[0120] In a possible embodiment, in terms of calling the first execution function interface to execute the target function, the calling unit 602 is also specifically used to: call the preferred execution function interface to execute the target function; if calling the preferred execution function interface to execute the target function fails, then respectively calling multiple alternative execution function interfaces to execute the target function; if calling multiple alternative execution function interfaces to execute the target function fails, then determining that the execution of the target function has failed.
[0121] Based on the description of the above method embodiment and device embodiment, please refer to Figure 7 , Figure 7 A schematic diagram of the structure of an electronic device provided in an embodiment of the present application. Figure 7 The electronic device 700 shown (the electronic device 700 may be a computer device, Figure 1 The vehicle detection device 101 shown in the figure includes a memory 701, a processor 702, a communication interface 703 and a bus 704. The memory 701, the processor 702 and the communication interface 703 are connected to each other through the bus 704.
[0122] The memory 701 may be a read-only memory (ROM), a static storage device, a dynamic storage device or a random access memory (RAM).
[0123] The memory 701 can store programs. When the program stored in the memory 701 is executed by the processor 702, the processor 702 and the communication interface 703 are used to execute the various steps of the vehicle detection method of the embodiment of the present application.
[0124] The processor 702 can adopt a general-purpose central processing unit (CPU), a microprocessor, an application-specific integrated circuit (ASIC), a graphics processing unit (GPU) or one or more integrated circuits to execute relevant programs to implement the functions required to be performed by the units in the electronic device 700 of the embodiment of the present application, or to execute the vehicle detection method of the method embodiment of the present application.
[0125] The processor 702 may also be an integrated circuit chip with signal processing capabilities. In the implementation process, each step of the vehicle detection method of the present application may be completed by an integrated logic circuit of hardware or software instructions in the processor 702. The above-mentioned processor 702 may also be a general-purpose processor, a digital signal processor (Digital Signal Processing, DSP), an application-specific integrated circuit (ASIC), a field programmable gate array (Field Programmable Gate Array, FPGA) or other programmable logic devices, discrete gates or transistor logic devices, discrete hardware components. The methods, steps and logic block diagrams disclosed in the embodiments of the present application may be implemented or executed. The general-purpose processor may be a microprocessor or the processor may also be any conventional processor, etc. The steps of the method disclosed in conjunction with the embodiments of the present application may be directly embodied as being executed by a hardware decoding processor, or may be executed by a combination of hardware and software modules in a decoding processor. The software module may be located in a mature storage medium in the art such as a random access memory, a flash memory, a read-only memory, a programmable read-only memory or an electrically erasable programmable memory, a register, etc. The storage medium is located in the memory 701, and the processor 702 reads the information in the memory 701, and combines its hardware to complete the functions required to be performed by the units included in the electronic device 700 of the embodiment of the present application, or executes the vehicle detection method of the method embodiment of the present application.
[0126] The communication interface 703 uses a transceiver such as, but not limited to, a transceiver to implement communication between the electronic device 700 and other devices or a communication network. For example, data can be acquired through the communication interface 703 .
[0127] The bus 704 may include a path for transmitting information between various components of the electronic device 700 (eg, the memory 701 , the processor 702 , and the communication interface 703 ).
[0128] It should be noted that although Figure 7 The electronic device 700 shown only shows a memory, a processor, and a communication interface, but in the specific implementation process, those skilled in the art should understand that the electronic device 700 also includes other devices necessary for normal operation. At the same time, according to specific needs, those skilled in the art should understand that the electronic device 700 may also include hardware devices for implementing other additional functions. In addition, those skilled in the art should understand that the electronic device 700 may also only include the devices necessary to implement the embodiments of the present application, and does not necessarily include Figure 7 All devices shown in .
[0129] An embodiment of the present application further provides a chip, which includes a processor and a data interface. The processor reads instructions stored in a memory through the data interface to implement the vehicle detection method.
[0130] Optionally, as an implementation method, the chip may further include a memory, in which instructions are stored, and the processor is used to execute the instructions stored in the memory. When the instructions are executed, the processor is used to execute the vehicle detection method.
[0131] An embodiment of the present application also provides a computer-readable storage medium, which stores instructions. When the computer-readable storage medium is executed on a computer or a processor, the computer or the processor executes one or more steps in any of the above methods.
[0132] The embodiment of the present application further provides a computer program product including instructions. When the computer program product is executed on a computer or a processor, the computer or the processor executes one or more steps in any of the above methods.
[0133] Those skilled in the art will appreciate that the functions described in conjunction with the various illustrative logic blocks, modules, and algorithm steps disclosed herein can be implemented in hardware, software, firmware, or any combination thereof. If implemented in software, the functions described in the various illustrative logic blocks, modules, and steps can be stored or transmitted as one or more instructions or codes on a computer-readable medium and executed by a hardware-based processing unit. Computer-readable media may include computer-readable storage media, which corresponds to tangible media, such as data storage media, or includes any media (e.g., based on a communication protocol) that facilitates the transfer of a computer program from one place to another. In this manner, computer-readable media may generally correspond to (1) non-temporary tangible computer-readable storage media, or (2) communication media, such as signals or carrier waves. Data storage media may be any available media that can be accessed by one or more computers or one or more processors to retrieve instructions, codes, and / or data structures for implementing the techniques described in this application. A computer program product may include computer-readable media.
[0134] As an example and not limitation, such computer-readable storage media may include RAM, ROM, EEPROM, CD-ROM or other optical disk storage, magnetic disk storage or other magnetic storage, flash memory, or any other medium that can be used to store the desired program code in the form of instructions or data structures and can be accessed by a computer. Also, any connection is properly referred to as a computer-readable medium. For example, if instructions are transmitted from a website, server or other remote source using a coaxial cable, fiber optic cable, twisted pair, digital subscriber line (DSL), or wireless technologies such as infrared, radio and microwave, then the coaxial cable, fiber optic cable, twisted pair, DSL, or wireless technologies such as infrared, radio and microwave are included in the definition of media. However, it should be understood that the computer-readable storage media and data storage media do not include connections, carrier waves, signals or other temporary media, but are actually directed to non-temporary tangible storage media. As used herein, disks and optical disks include compact disks (CDs), laser optical disks, optical optical disks, digital versatile disks (DVDs), and Blu-ray disks, where disks typically reproduce data magnetically, while optical disks reproduce data optically using lasers. Combinations of the above should also be included within the scope of computer-readable media.
[0135] Instructions may be executed by one or more processors, such as one or more digital signal processors (DSPs), general purpose microprocessors, application specific integrated circuits (ASICs), field programmable logic arrays (FPGAs), or other equivalent integrated or discrete logic circuits. Thus, the term "processor" as used herein may refer to any of the aforementioned structures or any other structures suitable for implementing the techniques described herein. Additionally, in some aspects, the functions described by the various illustrative logic blocks, modules, and steps described herein may be provided within dedicated hardware and / or software modules configured for encoding and decoding, or incorporated in a combined codec. Moreover, the techniques may be fully implemented in one or more circuits or logic elements.
[0136] The techniques of the present application may be implemented in a variety of devices or apparatuses, including a wireless handset, an integrated circuit (IC), or a set of ICs (e.g., a chipset). Various components, modules, or units are described in this application to emphasize functional aspects of devices for performing the disclosed techniques, but do not necessarily need to be implemented by different hardware units. In fact, as described above, the various units may be combined in an encoded hardware unit in conjunction with appropriate software and / or firmware, or provided by interoperating hardware units (including one or more processors as described above).
[0137] Those skilled in the art can clearly understand that, for the convenience and brevity of description, the specific working processes of the systems, devices and units described above can refer to the specific descriptions of the corresponding steps in the aforementioned method embodiments, and will not be repeated here.
[0138] It should be understood that in the description of the present application, unless otherwise specified, " / " indicates that the objects associated before and after are in an "or" relationship, for example, A / B can represent A or B; wherein A and B can be singular or plural. Also, in the description of the present application, unless otherwise specified, "multiple" refers to two or more than two. "At least one of the following" or similar expressions refers to any combination of these items, including any combination of single items or plural items. For example, at least one of a, b, or c can represent: a, b, c, ab, ac, bc, or abc, wherein a, b, c can be single or multiple. In addition, in order to facilitate the clear description of the technical solutions of the embodiments of the present application, in the embodiments of the present application, the words "first", "second", etc. are used to distinguish the same items or similar items with substantially the same functions and effects. Those skilled in the art can understand that the words "first", "second", etc. do not limit the quantity and execution order, and the words "first", "second", etc. do not limit them to be necessarily different. Meanwhile, in the embodiments of the present application, words such as "exemplary" or "for example" are used to indicate examples, illustrations or descriptions. Any embodiment or design described as "exemplary" or "for example" in the embodiments of the present application should not be interpreted as being more preferred or more advantageous than other embodiments or designs. Specifically, the use of words such as "exemplary" or "for example" is intended to present related concepts in a concrete manner for ease of understanding.
[0139] In the several embodiments provided in the present application, it should be understood that the disclosed systems, devices and methods can be implemented in other ways. For example, the division of the unit is only a logical function division, and there may be other division methods in actual implementation, for example, multiple units or components can be combined or integrated into another system, or some features can be ignored or not executed. The mutual coupling, direct coupling, or communication connection shown or discussed can be through some interfaces, indirect coupling or communication connection of devices or units, which can be electrical, mechanical or other forms.
[0140] The units described as separate components may or may not be physically separated, and the components shown as units may or may not be physical units, that is, they may be located in one place or distributed on multiple network units. Some or all of the units may be selected according to actual needs to achieve the purpose of the solution of this embodiment.
[0141] In the above embodiments, it can be implemented in whole or in part by software, hardware, firmware or any combination thereof. When implemented using software, it can be implemented in whole or in part in the form of a computer program product. The computer program product includes one or more computer instructions. When the computer program instructions are loaded and executed on a computer, the process or function according to the embodiment of the present application is generated in whole or in part. The computer can be a general-purpose computer, a special-purpose computer, a computer network, or other programmable devices. The computer instructions can be stored in a computer-readable storage medium or transmitted through the computer-readable storage medium. The computer instructions can be transmitted from a website site, computer, server or data center to another website site, computer, server or data center by wired (e.g., coaxial cable, optical fiber, digital subscriber line (digital subscriber line, DSL)) or wireless (e.g., infrared, wireless, microwave, etc.) mode. The computer-readable storage medium can be any available medium that a computer can access or a data storage device such as a server or data center that contains one or more available media integrations. The available medium may be a read-only memory (ROM), or a random access memory (RAM), or a magnetic medium, such as a floppy disk, a hard disk, a tape, a disk, or an optical medium, such as a digital versatile disc (DVD), or a semiconductor medium, such as a solid state disk (SSD), etc.
[0142] The above is only a specific implementation of the embodiment of the present application, but the protection scope of the embodiment of the present application is not limited thereto, and any changes or replacements within the technical scope disclosed in the embodiment of the present application should be included in the protection scope of the embodiment of the present application. Therefore, the protection scope of the embodiment of the present application should be based on the protection scope of the claims.
[0143] The device embodiments described above are merely illustrative, wherein the units and modules described as separate components may or may not be physically separated. In addition, some or all of the units and modules may be selected according to actual needs to achieve the purpose of the present embodiment. Those of ordinary skill in the art may understand and implement the present invention without creative effort.
[0144] The above is only a specific implementation of the present application. It should be pointed out that for ordinary technicians in this technical field, several improvements and modifications can be made without departing from the principles of the present application. These improvements and modifications should also be regarded as the scope of protection of the present application.
Claims
1. A vehicle detection method, characterized in that: The method comprises: receiving a detection request, the detection request including a first identifier, the detection request being used to request detection of a target function corresponding to the first identifier, the target function being one of a plurality of functions corresponding to a plurality of body control modules of a target vehicle; Calling a first execution function interface according to the first identifier to execute the target function, wherein the first identifier corresponds to the first execution function interface; If the target function fails to be executed, determining a second identifier according to the first identifier, wherein the second identifier is an identifier with the highest similarity to the first identifier among the multiple identifiers; Calling a second execution function interface according to the second identifier to execute the target function; In the case that the target function is successfully executed, a fault detection is performed on the target function.
2. The method according to claim 1, characterized in that The first identifier and the first execution function interface have a corresponding relationship, including: There is a corresponding relationship between the first execution function interface and the value in the target key-value pair, and the target key-value pair includes at least one key, and the at least one key is determined according to the first identifier.
3. The method according to claim 2, characterized in that The smaller the absolute value of the difference between the feature numbers of the features between the identifiers, the higher the similarity of the features between the identifiers; The determining the second identifier according to the first identifier includes: Acquire multiple first candidate identifiers, where the first candidate identifiers are identifiers other than the first identifier stored locally; Calculating respectively the absolute values of the characteristic label differences between the plurality of first candidate identifiers and the first identifier, the characteristic label difference absolute values comprising at least one of the vehicle model label difference absolute value, sub-vehicle model label difference absolute value, configuration label difference absolute value, supplier label difference absolute value and function type label difference absolute value; Obtaining a preset weight of the absolute value of each feature label difference; Calculating the adaptation scores of the plurality of first candidate identifiers according to the absolute values of the feature number differences of the plurality of first candidate identifiers and the preset weights of the absolute values of the feature number differences of each of the plurality of first candidate identifiers; The first candidate identifier with the highest adaptation score is determined as the second identifier.
4. The method according to claim 3, characterized in that The step of obtaining a plurality of first candidate identifiers includes: Acquire multiple second candidate identifiers, where the multiple second candidate identifiers are identifiers stored locally except the first identifier, and the function type label of the second candidate identifier is equal to the function type label of the first identifier; A plurality of first candidate identifiers are determined from the plurality of second candidate identifiers, wherein the plurality of first candidate identifiers correspond to a plurality of different execution function interfaces.
5. The method according to any one of claims 1 to 4, characterized in that: If the target function fails to execute; after calling the second execution function interface according to the second identifier to execute the target function, the method further includes: then determining the first candidate identifier with the second highest adaptation score as the third identifier; A third execution function interface is called according to the third identifier to execute the target function.
6. The method according to any one of claims 1 to 5, characterized in that: The first execution function interface corresponding to the first identifier in the execution function interface library includes a preferred execution function interface and a plurality of alternative execution function interfaces; If the target function is executed successfully, after calling the second execution function interface according to the second identifier to execute the target function, the method further includes: The second execution function interface is determined as the candidate execution function interface corresponding to the first identifier.
7. The method according to claim 6, characterized in that The calling of the first execution function interface to execute the target function includes: Calling the preferred execution function interface to execute the target function; If calling the primary execution function interface to execute the target function fails, calling the multiple alternative execution function interfaces respectively to execute the target function; If calling the multiple candidate execution function interfaces to execute the target function fails respectively, it is determined that the execution of the target function fails.
8. A vehicle detection device, characterized in that: The vehicle detection device is used to perform a vehicle detection method, and the vehicle detection device comprises: A receiving unit: used for receiving a detection request, wherein the detection request includes a first identifier, and the detection request is used for requesting to detect a target function corresponding to the first identifier, wherein the target function is one of multiple functions corresponding to multiple body control modules of a target vehicle; A calling unit: configured to call a first execution function interface according to the first identifier to execute the target function, wherein the first identifier corresponds to the first execution function interface; A determination unit: configured to determine a second identifier according to the first identifier if the target function fails to be executed, wherein the second identifier is an identifier having the highest similarity with the first identifier among multiple identifiers; The calling unit is further configured to call a second execution function interface according to the second identifier to execute the target function; Detection unit: used to perform fault detection on the target function when the target function is successfully executed.
9. An electronic device, characterized in that: The method comprises a processor, a memory, a communication interface, and one or more programs, wherein the one or more programs are stored in the memory and configured to be executed by the processor, and the programs include instructions for executing the steps in the method according to any one of claims 1 to 7.
10. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores a computer program for electronic data exchange, wherein the computer program enables a computer to execute the method according to any one of claims 1 to 7.