Verification method and device of state management configuration, electronic equipment and storage medium

By simulated configuration of the immediate arbitration and delayed arbitration configuration rules in the vehicle state management configuration file, configuration information is generated and verified, the problem of configuration logic errors in vehicle state management is solved, and the reliability of configuration is improved.

CN120045436APending Publication Date: 2025-05-27GUANGZHOU AUTOMOBILE GROUP CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202510021908.9
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2025-01-06
Publication Date
2025-05-27

AI Technical Summary

Technical Problem

The prior art directly configures ports according to configuration files in vehicle status management, which can easily lead to configuration logic errors, which will affect the operation of the vehicle's status management function.

Method used

By obtaining the configuration files corresponding to the configuration port used for vehicle status management, the immediate arbitration configuration rules and delayed arbitration configuration rules are obtained, and the configuration is simulated, the first and second configuration information are generated, and the configuration port is verified to obtain the verification result.

Benefits of technology

Logical verification is performed before configuring the configuration port, which avoids configuration logic errors and state management function operation errors, and improves the reliability of vehicle state management.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN120045436A_ABST
    Figure CN120045436A_ABST
Patent Text Reader

Abstract

The invention provides a state management configuration verification method and device, electronic equipment and a storage medium, and the method comprises the steps: obtaining a configuration file corresponding to a configuration port used for carrying out the state management of a vehicle, carrying out the disassembly of the configuration file, and obtaining a plurality of configuration rules corresponding to the configuration file, the plurality of configuration rules comprise a plurality of immediate arbitration configuration rules and a plurality of delayed arbitration configuration rules; performing immediate arbitration configuration simulation according to the plurality of immediate arbitration configuration rules to obtain first configuration information; performing delayed arbitration configuration simulation according to the plurality of delayed arbitration configuration rules to obtain second configuration information; and verifying the configuration port according to the first configuration information and the second configuration information to obtain a verification result. According to the method, logic verification can be carried out before the configuration port is configured according to the configuration file, and configuration logic errors and operation errors of a state management function corresponding to the vehicle due to the fact that the port in the vehicle is directly configured according to the configuration file are avoided.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This application relates to the field of electronic technologies, and more specifically, to a method, apparatus, electronic device, and storage medium for verifying state management configurations. Background Art

[0002] As the various functions of vehicles increase, the software capable of implementing corresponding functions on vehicles also increases. As the client carriers for implementing different software functions, they are also increasing rapidly. To manage the vehicle status through the start-stop coordination between different clients, configuration management needs to be carried out as expected. Currently, directly configuring the ports in the vehicle according to the configuration file may lead to operation errors caused by incorrect configuration logic. Therefore, how to perform configuration verification for state management before configuration has become an urgent problem to be solved. Summary of the Invention

[0003] In view of this, embodiments of this application propose a method, apparatus, electronic device, and storage medium for verifying state management configurations to improve the above problems.

[0004] According to the first aspect of the embodiments of this application, a method for verifying state management configurations is provided. The method includes: obtaining a configuration file corresponding to a configuration port for managing the vehicle status, and disassembling the configuration file to obtain a plurality of configuration rules corresponding to the configuration file, where the plurality of configuration rules include a plurality of immediate arbitration configuration rules and a plurality of delayed arbitration configuration rules; performing an immediate arbitration configuration simulation according to the plurality of immediate arbitration configuration rules to obtain first configuration information; performing a delayed arbitration configuration simulation according to the plurality of delayed arbitration configuration rules to obtain second configuration information; and verifying the configuration port according to the first configuration information and the second configuration information to obtain a verification result.

[0005] According to the second aspect of the embodiments of this application, a device for verifying state management configurations is provided. The device includes: a configuration rule determination module, configured to obtain a configuration file corresponding to a configuration port for managing the vehicle status, and disassemble the configuration file to obtain a plurality of configuration rules corresponding to the configuration file, where the plurality of configuration rules include a plurality of immediate arbitration configuration rules and a plurality of delayed arbitration configuration rules; a first configuration simulation module, configured to perform an immediate arbitration configuration simulation according to the plurality of immediate arbitration configuration rules to obtain first configuration information; a second configuration simulation module, configured to perform a delayed arbitration configuration simulation according to the plurality of delayed arbitration configuration rules to obtain second configuration information; and a verification module, configured to verify the configuration port according to the first configuration information and the second configuration information to obtain a verification result.

[0006] According to the third aspect of the embodiments of the present application, an electronic device is provided, including: a processor; a memory, on which computer-readable instructions are stored, and when the computer-readable instructions are executed by the processor, the verification method for the status management configuration as described above is implemented.

[0007] According to the fourth aspect of the embodiments of the present application, a computer-readable storage medium is provided, on which computer-readable instructions are stored, and when the computer-readable instructions are executed by a processor, the verification method for the status management configuration as described above is implemented.

[0008] In the solution of the present application, first, the configuration file corresponding to the configuration port for vehicle status management obtained is disassembled to obtain a plurality of immediate arbitration configuration rules and a plurality of delayed arbitration configuration rules, then the immediate arbitration configuration simulation is respectively performed on the plurality of immediate arbitration configuration rules to obtain the first configuration information, the delayed arbitration configuration simulation is performed on the plurality of delayed arbitration configuration rules to obtain the second configuration information, and then the configuration port is verified according to the first configuration information and the second configuration information, so as to obtain the verification result of the configuration port, thereby realizing the logical verification before configuring the configuration port according to the configuration file, and avoiding the configuration logic error and the operation error of the status management function corresponding to the vehicle caused by directly configuring the port in the vehicle according to the configuration file.

[0009] It should be understood that the above general description and the following detailed description are only exemplary and explanatory, and cannot limit the present invention. BRIEF DESCRIPTION OF THE DRAWINGS

[0010] The drawings here are incorporated into the specification and constitute a part of this specification, showing the embodiments in line with the present application, and are used together with the specification to explain the principles of the present application. Obviously, the drawings in the following description are only some embodiments of the present application, and those of ordinary skill in the art can also obtain other drawings based on these drawings without creative efforts.

[0011] Figure 1 It is a flowchart showing the verification method for the status management configuration according to an embodiment of the present application.

[0012] Figure 2 It is a flowchart showing the verification method for the status management configuration according to another embodiment of the present application.

[0013] Figure 3 It is a flowchart showing the specific step process after step 230 according to another embodiment of the present application.

[0014] Figure 4 It is a flowchart showing the verification method for the status management configuration according to yet another embodiment of the present application.

[0015] Figure 5 It is a schematic flowchart of a method for verifying a status management configuration shown in still another embodiment of the present application.

[0016] Figure 6 It is a schematic flowchart of a method for verifying a status management configuration shown in yet another embodiment of the present application.

[0017] Figure 7 It is a block diagram of a verification device for a status management configuration shown in an embodiment of the present application.

[0018] Figure 8 It is a hardware structure diagram of an electronic device shown in an embodiment of the present application.

[0019] Through the above-mentioned drawings, specific embodiments of the present invention have been shown, and there will be more detailed descriptions hereinafter. These drawings and textual descriptions are not intended to limit the scope of the inventive concept in any way, but to illustrate the concept of the present invention to those skilled in the art through specific embodiments. Specific Embodiments

[0020] Now, example embodiments will be described more fully with reference to the accompanying drawings. However, the example embodiments can be implemented in various forms and should not be construed as limited to the examples set forth herein; rather, these embodiments are provided so that this application will be more complete and comprehensive, and will fully convey the concept of the example embodiments to those skilled in the art.

[0021] It should be noted that the terms "first", "second", etc. in the specification and claims of the present invention 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 such used data can be interchanged under appropriate circumstances so that the embodiments of the present invention described herein can be implemented in an order different from those illustrated or described herein. In addition, the terms "comprising" and "having" and any variations thereof are intended to cover non-exclusive inclusion. For example, a process, method, system, product, or device that includes a series of steps or units does not necessarily have to be limited to those steps or units clearly listed, but may include other steps or units not clearly listed or inherent to these processes, methods, products, or devices.

[0022] Please refer to Figure 1 , Figure 1 which shows a method for verifying a status management configuration provided in an embodiment of the present application. In a specific embodiment, the method for verifying the status management configuration can be applied to a verification device 600 for a status management configuration as shown in Figure 7 and an electronic device 700 configured with the verification device 600 for a status management configuration ( Figure 8). The specific process of this embodiment will be described below. Of course, it can be understood that this method can be executed by an in-vehicle terminal with computing and processing capabilities. The following will be directed to Figure 1 The process shown is elaborated in detail. The method for verifying the status management configuration may specifically include the following steps: Step 110, obtain the configuration file corresponding to the configuration port for vehicle status management, and disassemble the configuration file to obtain multiple configuration rules corresponding to the configuration file, where the multiple configuration rules include multiple immediate arbitration configuration rules and multiple delayed arbitration configuration rules.

[0023] Step 110, obtain the configuration file corresponding to the configuration port for vehicle status management, and disassemble the configuration file to obtain multiple configuration rules corresponding to the configuration file, where the multiple configuration rules include multiple immediate arbitration configuration rules and multiple delayed arbitration configuration rules.

[0024] As a way, as there are more and more functions in vehicles, and thus more and more software that can implement corresponding functions on vehicles. To enable the functions corresponding to the software to be used normally on the vehicle, before the software implements the corresponding functions, the basic software status management of the vehicle's Classic Platform (CP) can be configured in advance, thus avoiding problems caused by state switching conflicts after vehicle power-on due to incorrect configuration logic of the basic software status management. Therefore, the verification of the status management configuration of the basic software can be performed before the vehicle executes the corresponding functions.

[0025] Optionally, vehicle status management can be performed by disassembling the configuration file corresponding to its corresponding configuration port, thereby obtaining multiple configuration rules of the configuration file, and then being able to determine the verification result of the vehicle's status management configuration based on logical verification of the multiple configuration rules. Optionally, after the vehicle status management instruction triggered by the user, the configuration file corresponding to the configuration port can be obtained based on this status management instruction, where the configuration file is the file corresponding to the software function for vehicle status management indicated in the status management instruction, and different software functions correspond to different files. When the user triggers the function that can configure the vehicle's status management in the same or different software, a corresponding status management instruction is generated, and the status management instruction includes the identifier of the function that can configure the vehicle's status management. Based on this identifier, the corresponding configuration file is obtained in the cloud server or local database.

[0026] Optionally, disassembly rules corresponding to different functions capable of configuring the vehicle's status management can be set in advance, so that the configuration file can be disassembled based on the disassembly rules. Optionally, the disassembly rules can be keyword disassembly rules or other disassembly rules.

[0027] Optionally, in order to smoothly and orderly perform logical verification on multiple configuration rules corresponding to the configuration file, the multiple configuration rules can be divided into two types: immediate arbitration configuration rules and delayed arbitration configuration rules, so that logical verification can be performed in sequence according to the priorities of different types of rules, avoiding the low verification efficiency caused by simultaneous logical verification of different types of configuration rules. Optionally, the priority of the immediate arbitration configuration rules is higher than that of the delayed arbitration configuration rules.

[0028] Step 120, perform an immediate arbitration configuration simulation according to the multiple immediate arbitration configuration rules to obtain first configuration information.

[0029] As a method, after determining the multiple immediate arbitration configuration rules, the immediate arbitration configuration simulation can be sequentially performed on the multiple immediate arbitration configuration rules to obtain first configuration information, so as to perform logical verification based on the first configuration information.

[0030] Optionally, performing an immediate arbitration configuration simulation on the multiple immediate arbitration configuration rules can be randomly selecting an unconfigured rule from the multiple immediate arbitration configuration rules for configuration simulation, and accumulating the index value after the simulation is completed, so as to determine whether all the immediate arbitration configuration rules have been simulated based on the accumulated index value.

[0031] Optionally, when performing an immediate arbitration configuration simulation on the multiple immediate arbitration configuration rules, each time a simulation is performed, the ports, logical expressions, and execution behaviors corresponding to the currently simulated rule can be determined first, so that during the simulation, the execution behavior corresponding to the rule can be implemented by simulating the logical expression corresponding to the rule based on the corresponding referenced ports, so that sub-configuration information can be obtained after the execution is completed. Then, after all the immediate arbitration configuration rules have been simulated, the first configuration information can be obtained based on the sub-configuration information corresponding to all the immediate arbitration configuration rules. Optionally, the first configuration information can be the total configuration information corresponding to the vehicle's status management after the multiple immediate arbitration configuration rules are completed.

[0032] Optionally, during the immediate arbitration configuration simulation of multiple immediate arbitration configuration rules, the status value corresponding to the configuration port can be obtained, and based on the status value corresponding to the configuration port, it can be determined whether the corresponding execution behavior after simulating the corresponding immediate arbitration configuration rule has an impact on the subsequent simulation. Thus, when it is determined that there is an impact, the immediate arbitration configuration simulation of the subsequent immediate arbitration configuration rules that have not been simulated is performed based on the current status value.

[0033] Step 130: Perform a delay arbitration configuration simulation according to the multiple delay arbitration configuration rules to obtain second configuration information.

[0034] As a method, after determining multiple delay arbitration configuration rules, the delay arbitration configuration simulation can be sequentially performed on the multiple delay arbitration configuration rules to obtain second configuration information, and thus logical verification can be performed based on the second configuration information.

[0035] Optionally, when performing the delay arbitration configuration simulation, after each simulation is completed, a count is accumulated to obtain an accumulated value, and based on the accumulated value, it is determined whether the simulation of the multiple delay arbitration configuration rules is completed. Thus, after determining that the configuration simulation is completed, the second configuration information is obtained based on the results of each configuration simulation. Optionally, after each simulation is completed, the sub-simulation result corresponding to the execution behavior of the delay arbitration configuration rule executed by the corresponding port during each simulation can be obtained. Furthermore, after all the sub-simulation results of all the delay arbitration configuration rules can be obtained, all the sub-simulation results are integrated to obtain the second configuration information. Optionally, the second configuration information may include the status configuration information when the vehicle performs status management. For example, the communication connection method of the vehicle, the working status after the vehicle is powered on, etc.

[0036] Step 140: Verify the configuration port according to the first configuration information and the second configuration information to obtain a verification result.

[0037] As a method, after obtaining the first configuration information and the second configuration information, the verification value of other ports that jointly configure the vehicle with the configuration port in the vehicle can be determined according to the first configuration information and the second configuration information, and then the logical verification result of the configuration port for the vehicle status management based on this configuration file can be determined according to the verification value of other ports that jointly configure the vehicle with the configuration port.

[0038] Optionally, the verification result can be of two types: correct logical verification of the configuration port and incorrect logical verification of the configuration port. Among them, when the verification result is correct logical verification of the configuration port, it can be determined that there is no logical problem in configuring the vehicle status management based on the configuration file. Therefore, the vehicle status management configuration can be performed based on the configuration file after the vehicle is powered on or started. When the verification result is incorrect logical verification of the configuration port, it can be determined that there is a logical problem in configuring the vehicle status management based on the configuration file. Therefore, the vehicle status management configuration is not performed after the vehicle is powered on or started, so as to avoid conflicts in vehicle status switching after power-on due to incorrect management configuration logic, and further improve the use safety of the vehicle.

[0039] Optionally, if the verification result is incorrect logical verification of the configuration port, an alarm message is generated to prompt the user based on the alarm message. Then, the user can reset or configure the vehicle status management based on the alarm message, and upload the alarm message to the cloud server so that developers can modify or update the configuration file based on the alarm message.

[0040] In the embodiment of the present application, the configuration file corresponding to the configuration port for vehicle status management obtained is disassembled to obtain a plurality of immediate arbitration configuration rules and a plurality of delayed arbitration configuration rules. Then, the immediate arbitration configuration simulation is performed on the plurality of immediate arbitration configuration rules to obtain the first configuration information, and the delayed arbitration configuration simulation is performed on the plurality of delayed arbitration configuration rules to obtain the second configuration information. Then, the configuration port is verified according to the first configuration information and the second configuration information to obtain the verification result of the configuration port, thereby realizing logical verification before configuring the configuration port according to the configuration file, and avoiding configuration logic errors and incorrect operation of the vehicle status management function corresponding to the vehicle caused by directly configuring the ports in the vehicle according to the configuration file.

[0041] Please refer to Figure 2 , Figure 2 which shows the verification method for status management configuration provided by an embodiment of the present application. The following will elaborate in detail on the Figure 2 process shown. The verification method for status management configuration may specifically include the following steps:

[0042] Step 210, obtain the configuration file corresponding to the configuration port for vehicle status management, and disassemble the configuration file to obtain a plurality of configuration rules corresponding to the configuration file, where the plurality of configuration rules include a plurality of immediate arbitration configuration rules and a plurality of delayed arbitration configuration rules.

[0043] Step 220: Determine the reference index value corresponding to the reference immediate arbitration configuration rule for the current configuration simulation among the multiple immediate arbitration configuration rules, and determine the first target index value corresponding to the last immediate arbitration configuration rule among the multiple immediate arbitration configuration rules.

[0044] As a method, during the process of configuring and simulating multiple immediate arbitration configuration rules, for each simulated immediate arbitration configuration rule, the reference index value corresponding to the immediately simulated arbitration configuration rule and the first target index value corresponding to the last immediate arbitration configuration rule among the multiple immediate arbitration configuration rules are obtained. In this way, it is possible to determine whether the reference immediate arbitration configuration rule for the current configuration simulation is the last configuration rule among the multiple immediate arbitration configuration rules based on the reference index value and the first target age print.

[0045] Optionally, when determining the multiple immediate arbitration configuration rules, the simulation priorities corresponding to the multiple immediate arbitration configuration rules can also be determined, and the multiple immediate arbitration configuration rules are sorted and index values are assigned according to the simulation priorities corresponding to the multiple immediate arbitration configuration rules, so as to determine the reference index value and the first target index value. Optionally, when performing configuration simulation on the multiple immediate arbitration configuration rules, the configuration simulation can be performed in sequence based on the priorities of the multiple immediate arbitration configuration rules, so that the reference index value and the first target index value can be directly obtained.

[0046] Optionally, it can also be that after determining the multiple immediate arbitration configuration rules, the multiple immediate arbitration configuration rules are counted to determine the number of the multiple immediate arbitration configuration rules. Furthermore, this number is used as the first target index value, and during the process of performing configuration simulation, the index value is incremented by 1 for each configuration simulation, so as to determine the reference index value corresponding to the reference immediate arbitration configuration rule for the current configuration simulation by means of accumulation.

[0047] Step 230: Determine whether the reference immediate arbitration configuration rule is the last immediate arbitration configuration rule according to the reference index value and the first target index value.

[0048] As a method, after determining the reference index value and the first target index value, determine whether the reference index value is equal to the first target index value. In this way, when it is determined that the reference index value is equal to the first target index value, it is determined that the reference immediate arbitration configuration rule is the last immediate arbitration configuration rule. On the contrary, when it is determined that the reference index value is not equal to the first target index value, it is determined that the reference immediate arbitration configuration rule is not the last immediate arbitration configuration rule.

[0049] In some embodiments, after the step 230, as Figure 3 shown, the method further includes:

[0050] Step 310, if it is determined that the reference immediate arbitration configuration rule is not the last immediate arbitration configuration rule, obtain the current status value of the configuration port.

[0051] As a way, when it is determined that the reference immediate arbitration configuration rule is not the last immediate arbitration configuration rule among multiple immediate arbitration configuration rules, it can be determined that immediate arbitration configuration simulation needs to be performed based on the remaining immediate arbitration configuration rules. And since during the subsequent immediate arbitration configuration simulation process, configuring the port based on a certain immediate arbitration configuration rule may cause the status value of the configuration port to change, which will in turn cause the configuration information of the configuration port to change finally. Therefore, it can be determined by obtaining the status value of the configuration port.

[0052] Optionally, each time the configuration port performs configuration simulation based on the immediate arbitration configuration rule, the status value of the configuration port can be modified based on the simulation times of the immediate arbitration configuration rule. For example, when the simulation times of the immediate arbitration configuration rule are equal to or greater than the number of multiple immediate arbitration configuration rules, update the current status value of the configuration port. If the simulation times of the immediate arbitration configuration rule are less than the number of multiple immediate arbitration configuration rules, do not update the current status value of the configuration port. Optionally, before performing the configuration simulation, the status value of the configuration port can be assigned in advance.

[0053] Step 320, if it is determined according to the current status value that the arbitration result of the multiple immediate arbitration configuration rules has changed, determine the rule information corresponding to the multiple immediate arbitration configuration rules, and re-perform rule arbitration according to the rule information to obtain the arbitration result.

[0054] As a way, when multiple immediate arbitration configuration rules perform immediate arbitration configuration simulation, the configuration actions executed each time after simulating an immediate arbitration configuration rule will have a certain impact on the subsequent configuration simulation, which will in turn cause the status value of the configuration port to also change when performing configuration simulation based on the immediate arbitration configuration rules that have not been configured. Thus, the arbitration result of the immediate arbitration configuration rules that have not been configured changes. Therefore, it can be determined whether the arbitration result of the multiple immediate arbitration configuration rules has changed by based on the current status value of the configuration port.

[0055] Optionally, the arbitration result of the immediate arbitration configuration rule is used to indicate whether the configuration of the configuration port is completed or whether there is a conflict with the previously completed configuration after the configuration simulation is performed based on the immediate arbitration configuration rule. Optionally, an initial state value can be set for the configuration port in advance, and the initial state value of the configuration port is modified according to the arbitration result after each simulation. For example, when the simulation is completed, if the arbitration result indicates that the configuration behavior executed after the configuration port simulates the current immediate arbitration configuration rule conflicts with the current configuration behavior, the initial state value of the configuration port is modified to obtain the current state value; if the arbitration result indicates that the configuration behavior executed after the configuration port simulates the current immediate arbitration configuration rule does not conflict with the current configuration behavior after the simulation is completed, the initial state value of the configuration port remains unchanged. In this way, it can be determined whether the arbitration results of multiple immediate arbitration configuration rules have changed through the current state value.

[0056] As another method, before performing the immediate arbitration configuration simulation on multiple immediate arbitration configuration rules, the status value of the configuration port can be assigned first to set the initial value of the status value of the configuration port. This initial value of the status value indicates that the current configuration port is in the traversal process, that is, it indicates that the configuration port is in the state of configuration simulation. During the process of performing the immediate arbitration configuration simulation, as the simulation of each immediate arbitration configuration rule is completed, the status value of the configuration port is assigned accordingly. When the assigned status value of the configuration port is equal to the preset value, it can be determined that the configuration port is in the traversal completion state, that is, it indicates that the configuration port has completed the configuration simulation based on multiple immediate arbitration configuration rules. In this way, it can be determined whether the arbitration results of multiple immediate arbitration configuration rules have changed based on the current state value of the configuration port.

[0057] Optionally, if it is determined that the arbitration results of multiple immediate arbitration configuration rules have changed, it can be determined that the configuration simulation of the current immediate arbitration configuration rule will affect the configuration simulation of subsequent other immediate arbitration configuration rules. Therefore, the rule information corresponding to multiple immediate arbitration configuration rules can be determined, and based on this, the rule arbitration can be performed again to obtain the arbitration result.

[0058] Optionally, each immediate arbitration configuration rule includes its corresponding rule information. This rule information can be rule information such as the execution steps and execution objects represented by the respective strings of each immediate arbitration configuration rule. After determining the rule information corresponding to multiple immediate arbitration configuration rules, the reference ports, logical expressions, and configuration behaviors used in the vehicle corresponding to the rule information can be determined, and based on the reference ports, logical expressions, and configuration behaviors used in the vehicle corresponding to the rule information, the current immediate arbitration configuration rule and subsequent immediate arbitration configuration rules are re-arbitrated to obtain the corresponding updated arbitration result.

[0059] In some embodiments, after the step 320, the method further includes: if it is determined according to the current status value that the arbitration results of the multiple immediate arbitration configuration rules have not changed, then accumulating the reference index value to obtain a first accumulated index value; when it is determined that the first accumulated index value is equal to the target index value, determining the reference immediate arbitration configuration rule as the last immediate arbitration configuration rule.

[0060] As a way, if it is determined according to the current status value that the arbitration results of the multiple immediate arbitration configuration rules have not changed, it can be determined that the configuration actions performed after simulating the current immediate arbitration configuration rules by the configuration port do not conflict with the current configuration actions, and the configuration simulation of the subsequent immediate arbitration configuration rules that have not completed the configuration simulation can continue. During the configuration simulation process, the reference index value corresponding to the currently simulated immediate arbitration configuration rule is accumulated each time to obtain a first accumulated index value. Optionally, the first accumulated index value can be the accumulated value obtained by adding the index values corresponding to all the immediate arbitration configuration rules that have completed the configuration simulation, or it can also be the accumulated value based on the number of simulation times.

[0061] Optionally, the target index value can be determined in advance by accumulating the index values corresponding to each immediate arbitration configuration rule to determine the index values corresponding to all the immediate arbitration configuration rules respectively, or according to the number corresponding to the multiple immediate arbitration configuration rules, and determining this number as the target index value. Optionally, when it is determined that the first accumulated index value is equal to the target index value, it can be determined that all the immediate arbitration configuration rules have completed the configuration simulation, and thus the reference immediate arbitration configuration rule can be determined as the last immediate arbitration configuration rule among the multiple immediate arbitration configuration rules.

[0062] Step 330, execute the configuration actions corresponding to the multiple immediate arbitration configuration rules according to the arbitration results, and after executing the configuration actions, execute the step of obtaining the current status value of the configuration port again until it is indicated according to the current status value that the arbitration results of the multiple immediate arbitration configuration rules have not changed.

[0063] As a way, after obtaining the arbitration result, the configuration actions corresponding to multiple immediate arbitration configuration rules can be executed based on the arbitration result, so that after the simulation of the immediate arbitration configuration rules currently being configured is completed, the simulation of the immediate arbitration configuration rules that have not been configured can continue, thereby completing the simulation of multiple immediate arbitration configuration rules. Optionally, the arbitration result can indicate whether there is a conflict in the configuration logic corresponding to the immediate arbitration configuration rule. Among them, when it is determined that the arbitration result indicates that there is a conflict in the configuration logic corresponding to the immediate arbitration configuration rule, the step of performing the immediate arbitration configuration simulation on multiple immediate arbitration configuration rules is re-executed; if it is determined that the arbitration result indicates that there is no conflict in the configuration logic corresponding to the immediate arbitration configuration rule, the configuration actions corresponding to multiple immediate arbitration configuration rules are executed, and after the configuration actions are executed, the current status value of the configuration port is obtained again, and the step of determining that the arbitration result of multiple immediate arbitration configuration rules has changed according to the current status value is repeated until it is indicated according to the current status value that the arbitration result of multiple immediate arbitration configuration rules has not changed, thereby completing the simulation of multiple immediate arbitration configuration rules.

[0064] Please continue to refer to Figure 2 , step 240, if it is determined that the reference immediate arbitration configuration rule is the last immediate arbitration configuration rule, then determine the first configuration information.

[0065] As a way, when it is determined that the reference immediate arbitration configuration rule is the last immediate arbitration configuration rule, it can be determined that all immediate arbitration configuration rules have completed the configuration simulation. At this time, it can be determined that after all immediate arbitration simulations, the configuration information corresponding to the configuration port after configuring for multiple immediate arbitration configuration rules can be determined according to the simulation of all immediate arbitration configuration results of the configuration port, thereby obtaining the first configuration information. Optionally, the first configuration information can be determined by integrating the arbitration results after the configuration simulation according to multiple immediate arbitration configuration rules.

[0066] Step 250, perform delayed arbitration configuration simulation according to the multiple delayed arbitration configuration rules to obtain the second configuration information.

[0067] Step 260, verify the configuration port according to the first configuration information and the second configuration information to obtain a verification result.

[0068] Among them, the specific step descriptions of step 210 and steps 250 - 260 can refer to steps 110 and steps 130 - 140, which will not be elaborated here.

[0069] In this embodiment, during the process of simulating the configuration of multiple immediate arbitration configuration rules, according to the reference index value corresponding to the reference immediate arbitration configuration rule simulated by the determined current configuration and the first target index value corresponding to the last immediate arbitration configuration rule among the multiple immediate arbitration configuration rules, it is determined whether the reference immediate arbitration configuration rule is the last immediate arbitration configuration rule. When the reference immediate arbitration configuration rule is the last immediate arbitration configuration rule, the configuration simulation of the multiple immediate arbitration configuration rules is ended, and the first configuration information is determined, thereby avoiding the waste of resources caused by repeatedly simulating the configuration of the multiple immediate arbitration configuration rules and improving the efficiency of logical verification of the configuration file.

[0070] Please refer to Figure 4 , Figure 4 which shows the verification method for status management configuration provided by an embodiment of the present application. The following will elaborate in detail on the Figure 4 process shown. The verification method for the status management configuration may specifically include the following steps:

[0071] Step 410: Obtain the configuration file corresponding to the configuration port for vehicle status management, and disassemble the configuration file to obtain multiple configuration rules corresponding to the configuration file, where the multiple configuration rules include multiple immediate arbitration configuration rules and multiple delayed arbitration configuration rules.

[0072] Step 420: Perform immediate arbitration configuration simulation according to the multiple immediate arbitration configuration rules to obtain the first configuration information.

[0073] Step 430: Accumulate the index values corresponding to the multiple delayed arbitration configuration rules according to the simulation order of the multiple delayed arbitration configuration rules to obtain the second accumulated index value.

[0074] As a way, after completing the configuration simulation of the multiple immediate arbitration configuration rules, perform delayed arbitration configuration simulation on the multiple delayed arbitration configuration rules with lower priority. Optionally, before performing the delayed arbitration configuration simulation on the multiple delayed arbitration configuration rules, the respective priorities of the multiple delayed arbitration configuration rules can be obtained first, and they can be sorted from high to low or from low to high based on the respective priorities of the multiple delayed arbitration configuration rules, so as to determine the simulation order of the multiple delayed arbitration configuration rules, and then the index values corresponding to the multiple delayed arbitration configuration rules can be accumulated during the process of performing the delayed arbitration configuration simulation to obtain the second cumulative index value.

[0075] Optionally, during the process of simulating the delay arbitration configuration for multiple delay arbitration configuration rules, as long as a delay arbitration configuration rule is simulated once, the corresponding index value can be incremented. This can be done based on the pre-set index value corresponding to each delay arbitration configuration rule, or based on the number of simulations of the delay arbitration configuration rule. That is, for each simulation of a delay arbitration configuration rule, the index value is incremented by 1, and the initial index value is set to 0. The index value is incremented by 1 in sequence according to the simulation order to obtain the second cumulative index value.

[0076] Optionally, during the process of simulating the delay arbitration configuration for multiple delay arbitration configuration rules, regardless of whether the result of the previous simulation affects the configuration result of the configuration port, the configuration simulation of multiple delay arbitration configuration rules is still performed according to the simulation order of multiple delay arbitration configuration rules, so as to complete the delay arbitration configuration simulation of multiple delay arbitration configuration rules.

[0077] Step 440, when the second cumulative index value is equal to the second target index value, determine that the current delay arbitration configuration rule for which the delay arbitration configuration simulation is performed is the last delay arbitration configuration rule, and obtain the second configuration information.

[0078] As a method, after each delay configuration simulation and determination of the second cumulative index value, the second index cumulative value is compared with the second target index value. In this way, after determining that the second cumulative index value is equal to the second target index value, it can be determined that the current delay arbitration configuration rule for which the delay arbitration configuration simulation is performed is the last delay arbitration configuration rule, thereby ending the delay arbitration configuration simulation, and then determining the second configuration information when the delay arbitration configuration simulation ends.

[0079] Optionally, when determining multiple delay arbitration configuration rules, the simulation priorities corresponding to multiple delay arbitration configuration rules can also be determined, and multiple delay arbitration configuration rules are sorted and index values are assigned according to the simulation priorities corresponding to multiple immediate arbitration configuration rules, so as to be able to determine the second target index value.

[0080] Optionally, it can also be that after determining multiple delay arbitration configuration rules, multiple immediate arbitration configuration rules are counted to determine the number of multiple delay arbitration configuration rules. Furthermore, this number is used as the second target index value, and during the process of performing the configuration simulation, the index value is incremented by 1 for each configuration simulation. In this way, the second cumulative index value is determined by the method of accumulation, and the second cumulative index value and the second target index value can be compared.

[0081] Optionally, the second configuration information may be configuration information determined based on integration of the configuration results corresponding to each delay arbitration configuration rule after delay arbitration configuration simulation is performed on all delay arbitration configuration rules. The second configuration information may include configuration information of a configuration port measured after configuration simulation is performed based on multiple delay arbitration configuration rules and other ports associated with the configuration port of the vehicle.

[0082] Step 450: Verify the configuration port according to the first configuration information and the second configuration information to obtain a verification result.

[0083] Specific step descriptions of steps 410 - 420 and step 450 may refer to steps 110 - 120 and step 140, and will not be elaborated here.

[0084] In this embodiment, during the process of simulating and configuring multiple delay arbitration configuration rules, the index values corresponding to the multiple delay arbitration configuration rules are accumulated according to the simulation order of the multiple delay arbitration configuration rules to obtain a second accumulated index value. Based on this, according to the second accumulated index value and the second target index value corresponding to the last delay arbitration configuration rule among the multiple delay arbitration configuration rules, it is determined whether the current delay arbitration configuration rule for which delay arbitration configuration simulation is performed is the last delay arbitration configuration rule. When it is determined that the current delay arbitration configuration rule for which delay arbitration configuration simulation is performed is the last delay arbitration configuration rule, the configuration simulation of the multiple delay arbitration configuration rules is ended, and the second configuration information is determined, thereby avoiding waste of resources caused by repeatedly performing configuration simulation on multiple delay arbitration configuration rules and improving the efficiency of logical verification of the configuration file.

[0085] Please refer to Figure 5 , Figure 5 which shows a verification method for status management configuration provided by an embodiment of the present application. The following will elaborate in detail on the Figure 5 flow shown. The verification method for the status management configuration may specifically include the following steps:

[0086] Step 510: Obtain a configuration file corresponding to a configuration port for performing status management on a vehicle, and disassemble the configuration file to obtain multiple configuration rules corresponding to the configuration file, where the multiple configuration rules include multiple immediate arbitration configuration rules and multiple delay arbitration configuration rules.

[0087] Step 520: Perform immediate arbitration configuration simulation according to the multiple immediate arbitration configuration rules to obtain first configuration information.

[0088] Step 530: Perform delay arbitration configuration simulation according to the multiple delay arbitration configuration rules to obtain second configuration information.

[0089] Among them, for the specific step descriptions of steps 510 - 530, reference can be made to steps 110 - 130, and no further elaboration will be provided here.

[0090] Step 540: Determine the respective check values corresponding to multiple ports according to the first configuration information and the second configuration information, where the multiple ports are different types of ports connected to the configuration port when configuring the configuration port.

[0091] As a way, after determining the first configuration information and the second configuration information, first determine other multiple ports related to the configuration port for vehicle status management according to the corresponding port identifiers in the first configuration information and the second configuration information. Then, after determining the other multiple ports, obtain the respective check values corresponding to the other multiple ports after configuration simulation based on the first configuration information and the second configuration information.

[0092] Optionally, the multiple ports may include system - type ports associated with the configuration port, network management - type ports associated with the configuration port, and communication - type ports associated with the configuration port, etc. Among them, the system - type ports are used to configure the corresponding systems involved in vehicle status management according to the first configuration information and the second configuration information. For example, entertainment systems, lighting systems, and air - conditioning systems, etc.; the network management - type ports are used to configure the ports corresponding to the network connections involved in vehicle status management according to the first configuration information and the second configuration information. For example, WIFI ports, ZigBee network ports, and Bluetooth ports, etc. involved in wireless network connections; the communication - type ports are used to configure the ports corresponding to the communication nodes or communication networks for vehicle status management according to the first configuration information and the second configuration information. For example, configure the ports corresponding to the CAN network communication inside the vehicle or the ports corresponding to the communication between the vehicle and other electronic devices.

[0093] Step 550: Perform a bit - and calculation on the respective check values corresponding to the multiple ports to obtain a target check value.

[0094] As a way, after determining the respective check values corresponding to the multiple ports, a bit - and calculation can be performed on the respective check values corresponding to the multiple ports. For example, if a bit - and calculation of the binary values of the respective check values corresponding to the multiple ports is performed, only when the binary values of two numbers are both 1, the result is 1, otherwise it is 0. In this way, the target check value after the bit - and calculation of the respective check values corresponding to the multiple ports is obtained. Optionally, the target check value can be 1 or 0.

[0095] Step 560: If the target check value is a non - preset check value, determine a first check result.

[0096] As a way, the preset verification value can represent the verification values corresponding to the ports that do not conform to the configuration information among multiple ports. For example, it can be the verification value representing the existence of "negation" in logical operations. Therefore, when it is determined that the target verification value is not the preset verification value, it can be determined that there is no logical conflict in the configuration simulation for managing the vehicle status according to the first configuration information and the second configuration information. Then, after the vehicle is powered on, the vehicle can be configured directly based on the configuration file, thereby avoiding conflicts in the state switching of the basic software module of the vehicle caused by problems in the configuration logic and ensuring the use safety of the vehicle.

[0097] In some embodiments, the method further includes: if the target verification value is the preset verification value, determining the port status value of the configuration port; determining whether the multiple configuration rules of the configuration port are in a traversal completion state according to the port status value; if it is determined to be the traversal completion state, determining the second verification result.

[0098] As a way, when it is determined that the target verification value is the preset verification value, it can be determined that there is a logical conflict in the configuration simulation for managing the vehicle status according to the first configuration information and the second configuration information. At this time, the port status value of the configuration port can be determined to determine whether the configuration port has completed the configuration simulation for multiple configuration rules.

[0099] Optionally, before performing the configuration simulation according to multiple configuration rules, the port status value can be assigned to indicate that the configuration port is in traversal. When the configuration simulation of multiple delay arbitration configuration rules is completed, the port status value can be updated according to the second target index value to indicate that the configuration port has completed the configuration simulation for multiple configuration rules. Therefore, it can be determined whether the multiple configuration rules of the configuration port are in a traversal completion state through the port status value.

[0100] Optionally, when it is determined through the port status value that the multiple configuration rules of the configuration port are in a traversal completion state, it can be determined that there is a logical conflict in configuring the configuration port according to the first configuration information and the second configuration information. Therefore, it can be determined that the verification result is a verification failure, that is, the second verification result can be output. Thus, the vehicle status management configuration can be performed based on the second verification result instead of the configuration file. Optionally, the second verification result can also be uploaded to the cloud server so that the cloud server can analyze the configuration process according to the second verification result.

[0101] Optionally, when it is determined through the port status value that the multiple configuration rules of the configuration port are in traversal, it can be determined that the multiple configuration rules have not completed the configuration simulation. Furthermore, the steps of step 520 - step 550 can be repeated until the first verification result or the second verification result is output.

[0102] In this embodiment, the check values corresponding to multiple ports are determined according to the first configuration information and the second configuration information, and then the target check value is obtained through bitwise AND calculation of the check values corresponding to the multiple ports. Furthermore, according to whether the target check value is a preset check value, the check result of the logical check on the configuration file is determined, ensuring the accuracy of the logical check on the configuration file.

[0103] Figure 6 It is a schematic flowchart of a software measurement method shown in an embodiment of the present application. As Figure 6 shown, first, obtain the configuration file corresponding to the configuration port for vehicle status management, and then input the configuration file into the configuration disassembling subsystem. In this way, the configuration file is disassembled by the configuration disassembling subsystem to obtain multiple immediate arbitration configuration rules, an immediate arbitration rule area, multiple delayed arbitration configuration rules, and a delayed arbitration rule area. Moreover, the information of multiple immediate arbitration configuration rules in the immediate arbitration rule area is sorted out respectively to obtain the first unit information, and the information of multiple delayed arbitration configuration rules in the delayed arbitration rule area is sorted out respectively to obtain the second unit information. Then, according to the first unit information and the second unit information, the initial value of the vehicle's configuration port is set, and the current check status of the configuration port is recorded as traversing according to this initial value. Then, the configuration simulation of multiple immediate arbitration configuration rules is carried out in the immediate arbitration rule area, and the first rule index value of the current configured immediate arbitration configuration rule is obtained. According to the first rule index value, it is judged whether the current configured immediate arbitration configuration rule is the last configuration rule among the multiple immediate arbitration configuration rules. If it is not the last configuration rule among the multiple immediate arbitration configuration rules, then the reference port, logical expression, and configuration behavior corresponding to the current configured immediate arbitration configuration rule are determined in the first unit information. Then, according to the reference port, logical expression corresponding to the current configured immediate arbitration configuration rule, and the current status value of the configuration port, rule arbitration is carried out to obtain the rule arbitration result. Then, according to the rule arbitration result, the corresponding configuration behavior is executed. After the configuration behavior is executed, it is determined whether the status value of the configuration port has changed. If it is determined that it has changed, it is determined whether the change in the status value of the configuration port will cause a change in the rule arbitration result. In the case where it is determined that it will cause a change in the rule arbitration result, the step of carrying out rule arbitration according to the reference port, logical expression corresponding to the current configured immediate arbitration configuration rule, and the current status value of the configuration port is repeated; in the case where it is determined that it will not cause a change in the rule arbitration result, the first rule index value of the immediate arbitration rule area is incremented until it is judged according to the first rule index value that the current configured immediate arbitration configuration rule is the last configuration rule among the multiple immediate arbitration configuration rules, and the configuration simulation of the immediate arbitration rule area ends.

[0104] Optionally, when it is determined according to the rule index value that the current configured simulation of the immediate arbitration configuration rule is the last configuration rule among multiple immediate arbitration configuration rules, enter the delayed arbitration rule area to perform configuration simulation on multiple delayed arbitration configuration rules, obtain the second rule index value of the delayed arbitration rule area, and determine whether the currently configured simulation of the delayed arbitration configuration rule is the last configuration rule among multiple delayed arbitration configuration rules based on the second rule index value. In this way, when it is determined that the currently configured simulation of the delayed arbitration configuration rule is not the last configuration rule among multiple delayed arbitration configuration rules, continue to perform configuration simulation on the remaining delayed arbitration configuration rules and accumulate the second rule index value until it is determined based on the second rule index value that the currently configured simulation of the delayed arbitration configuration rule is the last configuration rule among multiple delayed arbitration configuration rules, and end the configuration simulation of the delayed arbitration rule area to obtain the configuration information.

[0105] Then, respectively determine the first check value of the system class port associated with the configuration port, the second check value of the network management class port associated with the configuration port, and the third check value of the communication class port associated with the configuration port according to the configuration information, and then perform a bitwise AND operation on the first check value, the second check value, and the third check value to determine the target check value. In this way, when it is determined that the target check value is 1, determine whether the check status of the configuration port has been traversed. In this way, when it is determined that the check status of the configuration port has been traversed, output the first check result indicating correct check; if it is determined that the check status of the configuration port has not been traversed, assign a value to the configuration port to indicate that the configuration port has not completed the configuration simulation of the configuration rule, and re-enter the immediate arbitration rule area to perform configuration simulation on multiple immediate arbitration configuration rules. Optionally, when it is determined that the target check value is 0, output the second check result indicating incorrect check.

[0106] Figure 7 is a block diagram of a verification device for status management configuration shown according to an embodiment of the present application, as Figure 7 shown. The verification device 600 for status management configuration includes a configuration rule determination module 610, a first configuration simulation module 620, a second configuration simulation module 630, and a verification module 640.

[0107] A configuration rule determination module 610, configured to obtain a configuration file corresponding to a configuration port for vehicle status management, and disassemble the configuration file to obtain a plurality of configuration rules corresponding to the configuration file, where the plurality of configuration rules include a plurality of immediate arbitration configuration rules and a plurality of delayed arbitration configuration rules; a first configuration simulation module 620, configured to perform an immediate arbitration configuration simulation according to the plurality of immediate arbitration configuration rules to obtain first configuration information; a second configuration simulation module 630, configured to perform a delayed arbitration configuration simulation according to the plurality of delayed arbitration configuration rules to obtain second configuration information; a verification module 640, configured to verify the configuration port according to the first configuration information and the second configuration information to obtain a verification result.

[0108] In some embodiments, the first configuration simulation module 620 includes: a first target index value determination unit, configured to determine a reference index value corresponding to a reference immediate arbitration configuration rule for the current configuration simulation among the plurality of immediate arbitration configuration rules, and determine a first target index value corresponding to the last immediate arbitration configuration rule among the plurality of immediate arbitration configuration rules; a first determination unit, configured to determine whether the reference immediate arbitration configuration rule is the last immediate arbitration configuration rule according to the reference index value and the first target index value; a first configuration information determination unit, configured to determine the first configuration information if it is determined that the reference immediate arbitration configuration rule is the last immediate arbitration configuration rule.

[0109] In some embodiments, the first configuration simulation module 620 further includes: a current status value acquisition unit, configured to acquire the current status value of the configuration port if it is determined that the reference immediate arbitration configuration rule is not the last immediate arbitration configuration rule; an arbitration result determination unit, configured to determine rule information corresponding to the plurality of immediate arbitration configuration rules and re-perform rule arbitration according to the rule information to obtain an arbitration result if it is determined that the arbitration result of the plurality of immediate arbitration configuration rules changes according to the current status value; an execution unit, configured to execute a configuration behavior corresponding to the plurality of immediate arbitration configuration rules according to the arbitration result, and after executing the configuration behavior, re-execute the step of acquiring the current status value of the configuration port until it is indicated by the current status value that the arbitration result of the plurality of immediate arbitration configuration rules does not change.

[0110] In some other embodiments, the first configuration simulation module 620 further includes: a first cumulative index value determination unit, configured to accumulate the reference index value to obtain a first cumulative index value if it is determined according to the current state value that the arbitration results of the multiple immediate arbitration configuration rules have not changed; a second determination unit, configured to determine that the reference immediate arbitration configuration rule is the last immediate arbitration configuration rule when it is determined that the first cumulative index value is equal to the target index value.

[0111] In some embodiments, the second configuration simulation module 630 includes: a second cumulative index value determination unit, configured to accumulate the index values corresponding to the multiple delay arbitration configuration rules according to the simulation order of the multiple delay arbitration configuration rules to obtain a second cumulative index value; a second configuration information determination unit, configured to determine that the current delay arbitration configuration rule for performing the delay arbitration configuration simulation is the last delay arbitration configuration rule and obtain the second configuration information when the second cumulative index value is equal to the second target index value.

[0112] In some embodiments, the verification module 640 includes: a verification value determination unit, configured to determine the verification values corresponding to the multiple ports respectively according to the first configuration information and the second configuration information, where the multiple ports are different types of ports connected to the configuration port when the configuration port is configured; a target verification value determination unit, configured to perform a bitwise AND operation on the verification values corresponding to the multiple ports respectively to obtain a target verification value; a first verification result determination unit, configured to determine a first verification result if the target verification value is a non-preset verification value.

[0113] In some other embodiments, the verification module 640 further includes: a port status value determination unit, configured to determine the port status value of the configuration port if the target verification value is a preset verification value; a second determination unit, configured to determine whether the multiple configuration rules of the configuration port are in a traversal completion state according to the port status value; a second verification result determination unit, configured to determine a second verification result if it is determined to be in the traversal completion state.

[0114] According to one aspect of the embodiments of the present application, an electronic device is further provided, as Figure 8 shown. The electronic device 700 includes a processor 710 and one or more memories 720. The one or more memories 720 are used to store program instructions executed by the processor 710. When the processor 710 executes the program instructions, the verification method for state management configuration described above is implemented.

[0115] Further, the processor 710 may include one or more processing cores. The processor 710 runs or executes instructions, programs, code sets, or instruction sets stored in the memory 720, and calls data stored in the memory 720. Optionally, the processor 710 may be implemented in at least one hardware form of digital signal processing (DSP), field-programmable gate array (FPGA), or programmable logic array (PLA). The processor 710 may integrate one or a combination of several of a central processing unit (CPU), a graphics processing unit (GPU), and a modem. Among them, the CPU mainly processes the operating system, user interface, application programs, etc.; the GPU is responsible for rendering and drawing display content; the modem is used to process wireless communications. It can be understood that the above modem may not be integrated into the processor and may be implemented separately by a communication chip.

[0116] According to one aspect of the present application, the present application further provides a computer-readable storage medium. The computer-readable medium may be included in the electronic device described in the above embodiments; or may exist separately without being assembled into the electronic device. The above computer-readable storage medium carries computer-readable instructions, and when the computer-readable storage instructions are executed by a processor, the method in any of the above embodiments is implemented.

[0117] It should be noted that the computer-readable medium shown in the embodiments of the present application can be a computer-readable signal medium, a computer-readable storage medium, or any combination of the two. A computer-readable storage medium can be, for example, but not limited to, an electrical, magnetic, optical, electromagnetic, infrared, or semiconductor system, apparatus, or device, or any combination of the above. More specific examples of the computer-readable storage medium can include, but are not limited to: an electrical connection with one or more wires, a portable computer disk, a hard disk, a random access memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM), a flash memory, an optical fiber, a portable compact disc read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the above. In the present application, the computer-readable storage medium can be any tangible medium that contains or stores a program, and this program can be used by or in combination with an instruction execution system, apparatus, or device. And in the present application, the computer-readable signal medium can include a data signal propagated in a baseband or as part of a carrier wave, which carries the computer-readable program code. Such a propagated data signal can take various forms, including but not limited to electromagnetic signals, optical signals, or any suitable combination of the above. The computer-readable signal medium can also be any computer-readable medium other than the computer-readable storage medium, and this computer-readable medium can send, propagate, or transmit a program for use by or in combination with an instruction execution system, apparatus, or device. The program code contained on the computer-readable medium can be transmitted by any appropriate medium, including but not limited to: wireless, wired, etc., or any suitable combination of the above.

[0118] The units involved in the embodiments described in the present application can be implemented in software or in hardware, and the described units can also be provided in a processor. Among them, the names of these units do not, in some cases, limit the unit itself.

[0119] The flowcharts and block diagrams in the accompanying drawings illustrate the possible architectures, functions, and operations of systems, methods, and computer program products according to various embodiments of the present application. Among them, each block in the flowchart or block diagram may represent a module, a program segment, or a part of code, and the above-mentioned module, program segment, or part of code contains one or more executable instructions for implementing the specified logical function. It should also be noted that in some alternative implementations, the functions marked in the blocks may occur in a different order from that marked in the accompanying drawings. For example, two consecutive blocks shown may actually be executed substantially in parallel, and they may sometimes be executed in the reverse order, depending on the functions involved. It should also be noted that each block in the block diagram or flowchart, as well as the combination of blocks in the block diagram or flowchart, can be implemented by a dedicated hardware-based system for performing the specified functions or operations, or can be implemented by a combination of dedicated hardware and computer instructions.

[0120] Those skilled in the art will readily conceive of other embodiments of the present application after considering the specification and practicing the embodiments disclosed herein. The present application is intended to cover any variations, uses, or adaptations of the present application, which follow the general principles of the present application and include the common general knowledge or conventional technical means in the technical field not disclosed in the present application.

[0121] It should be understood that the present application is not limited to the exact structures described above and shown in the accompanying drawings, and various modifications and changes can be made without departing from its scope. The scope of the present application is only limited by the appended claims.

Claims

1. A method for verifying state management configuration, characterized in that: The method comprises: Obtaining a configuration file corresponding to a configuration port for state management of a vehicle, and disassembling the configuration file to obtain a plurality of configuration rules corresponding to the configuration file, wherein the plurality of configuration rules include a plurality of immediate arbitration configuration rules and a plurality of delayed arbitration configuration rules; Performing an immediate arbitration configuration simulation according to the multiple immediate arbitration configuration rules to obtain first configuration information; Performing a delayed arbitration configuration simulation according to the multiple delayed arbitration configuration rules to obtain second configuration information; The configuration port is verified according to the first configuration information and the second configuration information to obtain a verification result.

2. The method according to claim 1, characterized in that: The step of performing an immediate arbitration configuration simulation according to the plurality of immediate arbitration configuration rules to obtain first configuration information includes: Determine a reference index value corresponding to a reference immediate arbitration configuration rule simulated by the current configuration among the multiple immediate arbitration configuration rules, and determine a first target index value corresponding to the last immediate arbitration configuration rule among the multiple immediate arbitration configuration rules; Determining, according to the reference index value and the first target index value, whether the reference immediate arbitration configuration rule is the last immediate arbitration configuration rule; If it is determined that the reference immediate arbitration configuration rule is the last immediate arbitration configuration rule, the first configuration information is determined.

3. The method according to claim 2, characterized in that The method further comprises: If it is determined that the reference immediate arbitration configuration rule is not the last immediate arbitration configuration rule, obtaining a current state value of the configuration port; If it is determined according to the current state value that the arbitration results of the multiple immediate arbitration configuration rules have changed, then determining the rule information corresponding to the multiple immediate arbitration configuration rules, and re-arbitrating the rules according to the rule information to obtain the arbitration result; The configuration behaviors corresponding to the multiple immediate arbitration configuration rules are executed according to the arbitration result, and after the configuration behaviors are executed, the step of obtaining the current state value of the configuration port is executed again until the arbitration results of the multiple immediate arbitration configuration rules are indicated to have not changed according to the current state value.

4. The method according to claim 3, characterized in that The method further comprises: If it is determined according to the current state value that the arbitration results of the plurality of immediate arbitration configuration rules have not changed, accumulating the reference index values ​​to obtain a first accumulated index value; When it is determined that the first accumulated index value is equal to the first target index value, the reference immediate arbitration configuration rule is determined to be the last immediate arbitration configuration rule.

5. The method according to claim 1, characterized in that The performing delayed arbitration configuration simulation according to the multiple delayed arbitration configuration rules to obtain second configuration information includes: Accumulating index values ​​corresponding to the multiple delay arbitration configuration rules according to the simulation order of the multiple delay arbitration configuration rules to obtain a second accumulated index value; When the second accumulated index value is equal to the second target index value, it is determined that the current delayed arbitration configuration rule for delayed arbitration configuration simulation is the last delayed arbitration configuration rule, and the second configuration information is obtained.

6. The method according to claim 1, characterized in that The verifying the configuration port according to the first configuration information and the second configuration information to obtain a verification result includes: Determine, according to the first configuration information and the second configuration information, check values ​​corresponding to each of a plurality of ports, wherein the plurality of ports are ports of different types connected to the configuration port when the configuration port is configured; Performing bitwise AND calculation on the check values ​​corresponding to the multiple ports to obtain a target check value; If the target verification value is not a preset verification value, a first verification result is determined.

7. The method according to claim 6, characterized in that The method further comprises: If the target check value is a preset check value, determining the port status value of the configuration port; Determine whether the plurality of configuration rules for configuring the port are in a traversal completion state according to the port status value; If it is determined to be the traversal completion state, a second verification result is determined.

8. A verification device for state management configuration, characterized in that: The device comprises: A configuration rule determination module, used to obtain a configuration file corresponding to a configuration port for state management of a vehicle, and to decompose the configuration file to obtain a plurality of configuration rules corresponding to the configuration file, wherein the plurality of configuration rules include a plurality of immediate arbitration configuration rules and a plurality of delayed arbitration configuration rules; A first configuration simulation module, configured to perform an immediate arbitration configuration simulation according to the plurality of immediate arbitration configuration rules to obtain first configuration information; A second configuration simulation module, configured to perform a delayed arbitration configuration simulation according to the plurality of delayed arbitration configuration rules to obtain second configuration information; A verification module is used to verify the configuration port according to the first configuration information and the second configuration information to obtain a verification result.

9. An electronic device, characterized in that: The electronic device comprises: processor; A memory having computer-readable instructions stored thereon, wherein when the computer-readable instructions are executed by the processor, the method according to any one of claims 1 to 7 is implemented.

10. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores program codes, which can be called by a processor to execute the method according to any one of claims 1 to 7.