CN-122019018-A - Event processing method, device, system, vehicle and computer readable storage medium
Abstract
The invention relates to an event processing method, an event processing device, an event processing system, a vehicle and a computer readable storage medium, wherein the event processing method comprises the steps of responding to target interaction operation of a target interaction component in a graphical user interface, acquiring a target event identifier bound by the target interaction component; generating a standardized event instruction based on target interaction operation and a target event identifier, determining a target script based on instruction content of the logic arrangement instruction under the condition that the standardized event instruction is the logic arrangement instruction, analyzing the target script, determining at least one target function to be executed and an execution trigger condition corresponding to each target function, and calling each bottom function module of the vehicle to sequentially execute each target function based on the execution sequence of each target function if the real-time state of the vehicle meets the execution trigger condition. The scheme can improve the flexibility of the vehicle-mounted system in a scene of rapid service demand change.
Inventors
- LUO CHUNLIN
- ZHANG YU
- WANG CHAO
- HE XING
Assignees
- 重庆长安汽车股份有限公司
Dates
- Publication Date
- 20260512
- Application Date
- 20260416
Claims (20)
- 1. An event processing method, comprising: Responding to target interaction operation of a target interaction component in a graphical user interface, acquiring a target event identifier bound by the target interaction component, wherein the graphical user interface is displayed on a vehicle-mounted display device, and each interaction component in the graphical user interface is bound with a different event identifier; Generating a standardized event instruction based on the target interaction and the target event identifier; Determining a target script based on the instruction content of the logic arrangement instruction under the condition that the standardized event instruction is the logic arrangement instruction; analyzing the target script, and determining at least one target function to be executed and an execution triggering condition corresponding to each target function; and if the real-time state of the vehicle meets the execution triggering condition, calling each bottom layer function module of the vehicle to execute each target function in sequence based on the execution sequence of each target function.
- 2. The method of claim 1, wherein the determining the target script based on the instruction content of the logical orchestration instruction comprises: If the instruction content contains the class programming language fragments, carrying out semantic analysis on the class programming language fragments, and carrying out logic programming based on analysis results to obtain the target script; if the prefabricated arrangement script identification exists in the instruction content, searching is carried out in a logic script library, a script matched with the prefabricated arrangement script identification is obtained, and the target script is determined.
- 3. The method according to claim 1, wherein the parsing the target script to determine at least one target function to be executed and an execution trigger condition corresponding to each target function includes: Converting the target script into an abstract syntax tree; Traversing each condition node and sentences among each condition node in the abstract syntax tree; Determining at least one target function to be executed based on the statement; and determining an execution triggering condition corresponding to the target function based on the condition node.
- 4. The method of claim 1, wherein after generating the normalized event instruction, the method further comprises: And if the standardized event instruction is a simple control instruction, calling a vehicle-mounted service interface of the vehicle based on the simple control instruction to execute a target function corresponding to the simple control instruction.
- 5. The method of claim 1, wherein after generating the normalized event instruction, the method further comprises: Performing instruction verification on the standardized event instruction; If the standardized event instruction passes the instruction verification, the standardized event instruction is added to a priority execution queue so that the standardized event instruction enters a waiting execution state, the priority execution queue comprises at least one instruction, the priorities of the instructions are different, and the priorities are used for representing the instruction execution sequence.
- 6. The method of claim 5, wherein said checking said normalized event instruction comprises at least one of: Performing validity check on the standardized event instruction based on at least one of event type, event code and event parameter of the standardized event instruction; verifying the authorization of the standardized event instruction based on the authorized source of the standardized event instruction; and carrying out authority verification on the standardized event instruction based on the authority information of the user.
- 7. The method of claim 5, wherein adding the standardized event instruction to a priority execution queue comprises: Acquiring at least one of instruction preference of the user, instruction type of the standardized event instruction and execution urgency of the standardized event instruction; determining a target priority of the normalized event instruction based on at least one of the instruction preference, the instruction type, and the execution urgency; And determining the position of the standardized event instruction in the priority execution queue based on the target priority so as to add the standardized event instruction to the priority execution queue, wherein the priorities of the instructions in different positions in the priority execution queue are different.
- 8. The method according to claim 5 or 7, characterized in that the method further comprises: Predicting whether each instruction in the priority execution queue has conflict conditions when executing; if the conflict situation exists, acquiring a first instruction and a second instruction with the conflict situation; Performing at least one of the following on the first instruction and the second instruction: readjusting the execution sequence of the first instruction and/or the second instruction based on at least one of a security policy, an authorized source priority and a user-defined configuration policy; merging the first instruction and the second instruction; Discarding the first instruction or the second instruction.
- 9. The method of claim 1, wherein after the calling each of the underlying function modules of the vehicle sequentially performs each of the target functions, the method further comprises: Acquiring execution process information and execution results of each target function; generating a multi-mode feedback instruction based on the execution process information and the execution result; And generating visual content based on the multi-mode feedback instruction, and rendering and displaying the visual content to the graphical user interface.
- 10. The method of claim 1, wherein after the calling each of the underlying function modules of the vehicle sequentially performs each of the target functions, the method further comprises: Acquiring trigger generation process information, instruction verification process information, instruction conflict detection process information and execution process information of each target function of the standardized event instruction; And constructing an instruction complete execution link based on the trigger generation process information, the instruction verification process information, the instruction conflict detection process information and the execution process information, and writing the instruction complete execution link into a structured log.
- 11. An event processing apparatus, comprising: The system comprises an acquisition module, a display module and a display module, wherein the acquisition module is used for responding to target interaction operation of a target interaction component in a graphical user interface, acquiring a target event identifier bound by the target interaction component, the graphical user interface is displayed on a vehicle-mounted display device, and each interaction component in the graphical user interface is bound with different event identifiers; the generation module is used for generating a standardized event instruction based on the target interaction operation and the target event identifier; the determining module is used for determining a target script based on the instruction content of the logic programming instruction under the condition that the standardized event instruction is the logic programming instruction; The analysis module is used for analyzing the target script and determining at least one target function to be executed and an execution triggering condition corresponding to each target function; And the execution module is used for calling each bottom layer function module of the vehicle to execute each target function in sequence based on the execution sequence of each target function if the real-time state of the vehicle meets the execution triggering condition.
- 12. An event processing system, comprising: The interface rendering engine is used for rendering a graphical user interface to the vehicle-mounted display equipment, generating a standardized event instruction based on target interaction operation of target interaction components in the graphical user interface, wherein the graphical user interface comprises at least one interaction component, and each interaction component is bound with a different event identifier; An execution center, configured to perform instruction verification on the standardized event instruction, and add the standardized event instruction to a priority execution queue after the verification is passed; the logic arrangement system is used for determining a target script based on the instruction content of the logic arrangement instruction under the condition that the standardized event instruction in the priority execution queue enters an execution starting state and the standardized event instruction is the logic arrangement instruction; The logic arrangement system is further used for analyzing the target script, determining at least one target function to be executed and an execution triggering condition corresponding to each target function, and calling each bottom layer function module of the vehicle to sequentially execute each target function based on the execution sequence of each target function when the real-time state of the vehicle meets the execution triggering condition.
- 13. The system according to claim 12, wherein the logic orchestration system is specifically configured to: If the instruction content contains the class programming language fragments, carrying out semantic analysis on the class programming language fragments, and carrying out logic programming based on analysis results to construct the target script; if the prefabricated arrangement script identification exists in the instruction content, searching is carried out in a logic script library, a script matched with the prefabricated arrangement script identification is obtained, and the target script is determined.
- 14. The system according to claim 12, wherein the logic orchestration system is specifically configured to: Converting the target script into an abstract syntax tree; Traversing each condition node and sentences among each condition node in the abstract syntax tree; Determining at least one target function to be executed based on the statement; and determining an execution triggering condition corresponding to the target function based on the condition node.
- 15. The system of claim 12, wherein the execution hub is specifically configured to perform at least one of the following instruction checks on the standardized event instruction: Performing validity check on the standardized event instruction based on at least one of event type, event code and event parameter of the standardized event instruction; verifying the authorization of the standardized event instruction based on the authorized source of the standardized event instruction; and carrying out authority verification on the standardized event instruction based on the authority information of the user.
- 16. The system of claim 12, wherein the execution hub is specifically configured to: Acquiring at least one of instruction preference of the user, instruction type of the standardized event instruction and execution urgency of the standardized event instruction; determining a target priority of the normalized event instruction based on at least one of the instruction preference, the instruction type, and the execution urgency; And determining the position of the standardized event instruction in the priority execution queue based on the target priority so as to add the standardized event instruction to the priority execution queue, wherein the priorities of the instructions in different positions in the priority execution queue are different.
- 17. The system of claim 12, wherein the execution hub is further configured to: Predicting whether each instruction in the priority execution queue has conflict conditions when executing; if the conflict situation exists, acquiring a first instruction and a second instruction with the conflict situation; Performing at least one of the following on the first instruction and the second instruction: readjusting the execution sequence of the first instruction and/or the second instruction based on at least one of a security policy, an authorized source priority and a user-defined configuration policy; merging the first instruction and the second instruction; Discarding the first instruction or the second instruction.
- 18. The system of claim 12, wherein the execution hub is further configured to: Acquiring trigger generation process information, instruction verification process information, instruction conflict detection process information and execution process information of each target function of the standardized event instruction; And constructing an instruction complete execution link based on the trigger generation process information, the instruction verification process information, the instruction conflict detection process information and the execution process information, and writing the instruction complete execution link into a structured log.
- 19. A vehicle is characterized by comprising a vehicle main body, a memory and a processor; The memory stores computer-executable instructions; The processor executing computer-executable instructions stored in the memory, causing the processor to perform the method of any one of claims 1-10.
- 20. A computer readable storage medium having stored therein computer executable instructions which when executed by a processor are adapted to carry out the method of any one of claims 1-10.
Description
Event processing method, device, system, vehicle and computer readable storage medium Technical Field The present invention relates to the field of vehicle technologies, and in particular, to an event processing method, device, system, vehicle, and computer readable storage medium. Background Along with the continuous evolution of the functions of the vehicle-mounted system towards diversification and complexity, users often want to trigger the functions of the vehicle-mounted system in a simple and convenient mode, and the functions of the vehicle-mounted system can flexibly adapt to different service scene requirements, so that requirements are provided for the construction and integration of the functions of the vehicle-mounted system. Currently, the existing vehicle-mounted system mainly adopts hard coding, which mainly writes the business rule into the program code directly, then embeds the program code into the bottom hardware directly, and the bottom hardware realizes the corresponding business function by executing the program code. However, when the service requirement changes, the existing hard coding mode needs maintenance personnel to search the program code in the underlying hardware and adjust the originally written service rule to adapt to the changed service requirement, and the mode has poor flexibility and is difficult to adapt to the rapidly changed service requirement. Disclosure of Invention The invention aims to provide an event processing method for solving the problems that in the prior art, a vehicle-mounted system function adopts a hard coding mode, update adjustment is inconvenient when service requirements change rapidly and flexibility is poor, and further aims to provide an event processing device, an event processing system function, a vehicle and a computer readable storage medium. In order to achieve the above purpose, the technical scheme adopted by the invention is as follows: An event processing method, comprising: Responding to target interaction operation of a target interaction component in a graphical user interface, acquiring a target event identifier bound by the target interaction component, wherein the graphical user interface is displayed on a vehicle-mounted display device, and each interaction component in the graphical user interface is bound with a different event identifier; Generating a standardized event instruction based on the target interaction and the target event identifier; Determining a target script based on the instruction content of the logic arrangement instruction under the condition that the standardized event instruction is the logic arrangement instruction; analyzing the target script, and determining at least one target function to be executed and an execution triggering condition corresponding to each target function; and if the real-time state of the vehicle meets the execution triggering condition, calling each bottom layer function module of the vehicle to execute each target function in sequence based on the execution sequence of each target function. Further, the determining the target script based on the instruction content of the logic programming instruction includes: If the instruction content contains the class programming language fragments, carrying out semantic analysis on the class programming language fragments, and carrying out logic programming based on analysis results to obtain the target script; if the prefabricated arrangement script identification exists in the instruction content, searching is carried out in a logic script library, a script matched with the prefabricated arrangement script identification is obtained, and the target script is determined. Further, the parsing the target script, determining at least one target function to be executed and an execution triggering condition corresponding to each target function, includes: Converting the target script into an abstract syntax tree; Traversing each condition node and sentences among each condition node in the abstract syntax tree; Determining at least one target function to be executed based on the statement; and determining an execution triggering condition corresponding to the target function based on the condition node. Further, after the generating the normalized event instruction, the method further includes: And if the standardized event instruction is a simple control instruction, calling a vehicle-mounted service interface of the vehicle based on the simple control instruction to execute a target function corresponding to the simple control instruction. Further, after the generating the normalized event instruction, the method further includes: Performing instruction verification on the standardized event instruction; If the standardized event instruction passes the instruction verification, the standardized event instruction is added to a priority execution queue so that the standardized event instruction enters a waiting execution state, the priorit