A service arrangement script execution system and method

By designing a service orchestration script execution system in the Internet of Vehicles technology, the problem of inconvenient and efficient service orchestration is solved, new functions of low-code fast orchestration are realized, user experience and R&D efficiency are improved, and hard-coded development model is changed.

CN114546387BActive Publication Date: 2024-11-22CHONGQING CHANGAN TECH CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202210188412.7
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2022-02-28
Publication Date
2024-11-22
Estimated Expiration
2042-02-28

AI Technical Summary

Technical Problem

In the prior art, service orchestration in the Internet of Vehicles technology for service architecture is not convenient and efficient enough, resulting in long-term functional development time and low efficiency, and users cannot customize vehicle functions.

Method used

A service orchestration script execution system is designed, including script management module, scene recognition module, script decision module and script execution module. The script is loaded and managed through the script management module, the scene recognition module recognizes trigger conditions, and the script decision module decides script execution. The script execution module executes actions in the script, realizing new functions of fast low-code orchestration.

Benefits of technology

It has realized zero-code customization of car use scenarios, changed the hard-coded development model, significantly improved the R&D efficiency and user experience of new functions, and enhanced product flexibility and user customization capabilities.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN114546387B_ABST
    Figure CN114546387B_ABST
Patent Text Reader

Abstract

The present invention discloses a service orchestration script execution system and method, and the core business layer of the execution system includes: a script management module, a scene recognition module, a script decision module and a script execution module. The execution method is to first orchestrate the service to generate a script, and save the script to the engine; monitor the events or states defined by the script in real time, and then determine which script is triggered, and then decide whether to execute the script. After the script needs to be executed, the script is executed according to the service function defined in the script. The method of the present invention orchestrates the service functions according to the pre-defined scripts, and quickly realizes new scene functions with low code. Orchestrating the service to generate scripts realizes zero-code customized car use scenarios, changes the current hard-coded product development system model, and greatly improves the efficiency of new function research and development; and forms a new user use model that is visible, touchable, and experiential, greatly improving user experience and product flexibility.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the technical field of Internet of Vehicles, and in particular to a service orchestration script execution system and execution method. Background Art

[0002] With the continuous development of Internet of Vehicles technology, the degree of automobile intelligence is getting higher and higher, and the capabilities of vehicles are becoming more and more open. Under the theoretical support of the new generation of software cars, the architecture of cars is also constantly adjusted, and the SOA architecture is also implemented on the whole vehicle. Based on the service-oriented architecture, the various capabilities of the vehicle can be provided in a service-oriented manner. In the existing technology, in the field of Internet of Vehicles technology with service-oriented architecture, the hard-coded product development system model is mainly adopted. Every time a new function is added, the developer needs to re-develop it, and then publish it to the car; resulting in a long time for the development of simple functions, low efficiency, and users cannot define the functions of their own vehicles, and the degree of user customization is not high.

[0003] The "dynamic service orchestration method" disclosed in CN107659439A includes: defining a service node model template, which includes abstract input, output, and processing process definitions; creating a service node model, based on the model template, supporting a service node model that can implement specific functions through interface operations or simple coding; creating a service model, which is composed of one or more service node models; instantiating the service model, when applying to use a defined service, entering the instantiation phase, and instantiating all node models in stages; for each defined service, generating the context of the corresponding service at the beginning of instantiation; service execution, after the service instantiation begins, the service nodes are executed one by one in serial or parallel or in a mixture of serial and parallel. Although it provides how to orchestrate service models and processes, it does not involve how to execute specific orchestrations). For another example, the "microservice orchestration method, device, equipment and computer-readable storage medium" disclosed in CN110286884A provides a method for displaying multiple resource components and related information of resource components on the front-end orchestration page through a microservice technology platform, so that users can choose to use them when establishing the required target process. The user can complete the orchestration of the target process by selecting and arranging the resource components displayed on the orchestration page. The microservice technology platform can select and arrange the resource components displayed on the orchestration page according to the user's required target process, determine the target components of the target process and the dependencies between the target components, and automatically generate a process file; according to the process file, deploy the target component, initialize the process, components and environment variables of the target process, and schedule the target component to complete the debugging of the target process, saving the human resources and time of each user and improving the efficiency of microservice orchestration. The document discloses the orchestration of cloud services, as well as how the orchestration page, resource components, etc. are associated, and also does not involve how the specific orchestration is executed. Therefore, how to develop an execution engine suitable for automobile orchestration and its automobile service execution is a technical problem to be solved by those skilled in the art. Summary of the invention

[0004] In view of the above-mentioned deficiencies in the prior art, an object of the present invention is to provide a service orchestration script execution system and method to solve the problem that the prior art is not convenient and efficient enough for service orchestration.

[0005] To achieve the above object, the present invention adopts the following technical solution:

[0006] A service orchestration script execution system, characterized in that the core business layer includes: a script management module, a scene recognition module, a script decision module and a script execution module; wherein:

[0007] Script management module: responsible for local and cloud-based scripts, and also provides script addition;

[0008] Scene recognition module: obtains the status of vehicle hardware, ecology and system to identify which rule scripts are triggered;

[0009] Script decision module: When a rule script is triggered, this module combines the script preconditions and cooldown time to decide whether to execute the script's interaction and service call;

[0010] Script execution module: performs conflict determination on executable scripts and executes the actions contained in the scripts.

[0011] Furthermore, the addition of the script includes operations such as update, delete, query and local storage.

[0012] The vehicle hardware includes the vehicle computer, TBOX, and other vehicle-mounted controllers.

[0013] The status of the ecosystem and system includes content status such as weather, calendar, news, and other systems that can perform scene recognition.

[0014] The preconditions include vehicle status, time status, geographic information, environmental information and other status information that can be used for judgment; and the length of time after the cooling time scenario occurs that the scenario cannot be repeated.

[0015] The present invention also provides a service orchestration script execution method, which first orchestrates the service to generate a script, and saves the script to the engine; monitors the events or states defined by the script in real time, and then determines which script is triggered, and then decides whether to execute the script. After deciding that the script needs to be executed, the script is executed according to the service function defined in the script. Using the above service orchestration script execution system, the core business layer script executes the following process:

[0016] S1. The script management module loads the script: The script management module loads the current script and sets the trigger condition and script ID in the script to the scene recognition module;

[0017] S2. The scene recognition module determines which script to use: The scene recognition module monitors the changes in vehicle signals required by the current script through the adaptation layer, and makes a trigger judgment on the scene conditions; if the script trigger conditions are met, the script management module is notified to trigger the corresponding script according to the script ID, and the script management module sends the corresponding script to the decision module for decision-making;

[0018] S3, the script decision module decides whether to execute the script: the script decision module will take out the script with the highest priority from the decision queue, determine the preconditions and cooling time of the script, and decide whether it can be executed according to the determination result; send the script that meets the execution conditions to the execution queue; discard the script that does not meet the running conditions;

[0019] S4. The script execution module executes the script: The script execution module obtains the highest priority script from the execution queue for conflict determination, and starts executing the script after the determination is successful; the adaptation layer provides support for the corresponding execution function.

[0020] Compared with the prior art, the present invention has the following beneficial effects:

[0021] 1. The method of the present invention arranges service functions according to pre-defined scripts and quickly implements new scenario functions with low code. The services are arranged to generate scripts to achieve zero-code customization of vehicle use scenarios, which changes the current hard-coded product development system model and greatly improves the efficiency of new function research and development; around "services can be arranged and users can customize", a new user usage model that is visible, touchable, and experiential is formed, which greatly improves user experience and product flexibility.

[0022] 2. The present invention is based on intelligent vehicle control of a service-oriented architecture. It arranges service functions in a service-oriented manner and combines them into new scenarios for users to use. It also allows users to customize the functions of their own cars, significantly improving user experience. It also improves the efficiency of function research and development of car manufacturers and reduces development workload. BRIEF DESCRIPTION OF THE DRAWINGS

[0023] Figure 1 This is a general logical architecture diagram of the present invention (scenario choreography execution engine);

[0024] Figure 2 Update the flow chart for the scenario list of the present invention;

[0025] Figure 3 Identify a flow chart for the script of the present invention;

[0026] Figure 4 It is a decision flow chart of the script of the present invention;

[0027] Figure 5 It is a flowchart of script execution of the present invention. DETAILED DESCRIPTION

[0028] In order to enable those skilled in the art to better understand the technical solution of the present invention, the present invention is further described in detail below with reference to the accompanying drawings, but the embodiments of the present invention are not limited thereto.

[0029] See also Figure 1, the logical architecture of (scenario orchestration execution engine) is divided into four logical layers from top to bottom, namely configuration layer, core business layer, core layer and general capability layer. The configuration layer provides personalized configuration for the engine, including script running number configuration, script start and stop configuration, thread number configuration, personalized settings and other related configuration items. Support each module to set and obtain relevant configuration parameters to meet business needs. The adaptation layer is a layer extracted to achieve the decoupling of the core layer and system functions. Through the adaptation layer, the core layer does not need to care about the specific implementation of scenes, interactions and services. It mainly adapts to events, car machine services, car control services, ecological services and third-party services to digest the differences between different systems and different manufacturers. The factory mode is used for the core layer to maintain different types of services and provide standard interfaces for the core layer to use. The adapter mode is used externally to expose abstract interfaces, which are registered and implemented by the system or third-party applications. In this way, the scene engine only needs to focus on the abstract interface definition, not the function implementation.

[0030] The general capability layer is a unified encapsulation of a single general capability in the engine, thereby improving code reusability and facilitating maintenance or optimization of general functions. Each business module needs to rely on the general capability library, and selectively use the capabilities and configuration items provided in the capability library according to the actual business needs of the module. JSON parsing library: jsoncpp and nlohmann are used to parse and structure JSON; JS parsing: third-party open source libraries jerryscript and Duktape are used to perform semantic parsing and execution of JS; Network request library: provides network request capabilities and uniformly encapsulates network request protocols such as HTTPS and MQTT; Cross-process communication library: provides cross-process interaction capabilities, including HIDL and AIDL; Thread pool: unified management of thread safety, number of threads, and thread order.

[0031] Among them, the core business layer, i.e., the service orchestration script execution system, is the innovation of the present invention, and includes a script management module, a scene recognition module, a script decision module, and a script execution module; the division of labor of each module is as follows:

[0032] Script management module: responsible for local and cloud-based scripts, and also provides script addition;

[0033] Scene recognition module: obtains the status of vehicle hardware, ecology and system to identify which rule scripts are triggered;

[0034] Script decision module: When a rule script is triggered, this module combines the script preconditions and cooldown time to decide whether to execute the script's interaction and service call;

[0035] Script execution module: performs conflict determination on executable scripts and executes the actions contained in the scripts.

[0036] Furthermore, the addition of the script includes operations such as update, delete, query and local storage.

[0037] The vehicle hardware includes a vehicle computer, a TBOX, and a vehicle controller.

[0038] The status of the ecosystem and system includes content status such as weather, calendar, news, and other systems that can perform scene recognition.

[0039] The preconditions include vehicle status, time status, geographic information, environmental information and other status information that can be used for judgment; the cooling time is the time period after the scene occurs during which the scene cannot be repeated.

[0040] The present invention also provides a service orchestration script execution method, using the above service orchestration script execution system, the core business layer script executes the following process:

[0041] S1. The script management module loads the script: The script management module loads the current script and sets the trigger condition and script ID in the script to the scene recognition module;

[0042] S2. The scene recognition module determines which script to use: The scene recognition module monitors the changes in vehicle signals required by the current script through the adaptation layer, and makes a trigger judgment on the scene conditions; if the script trigger conditions are met, the script management module is notified to trigger the corresponding script according to the script ID, and the script management module sends the corresponding script to the decision module for decision-making;

[0043] S3, the script decision module decides whether to execute the script: the script decision module will take out the script with the highest priority from the decision queue, determine the preconditions and cooling time of the script, and decide whether it can be executed according to the determination result; send the script that meets the execution conditions to the execution queue; discard the script that does not meet the running conditions;

[0044] S4. The script execution module executes the script: The script execution module obtains the highest priority script from the execution queue for conflict determination, and starts executing the script after the determination is successful; the adaptation layer provides support for the corresponding execution function.

[0045] like Figure 2 As shown, the scene list update process is that the module updates the scene list by first loading the local script for caching, then obtaining the script from the cloud, and the cloud returns the script; then the script is stored locally, and then the script in the local storage is updated, and then the module is executed to parse and update the block information in the script.

[0046] like Figure 3As shown in the figure, the script recognition process is as follows: the recognition module obtains event information or vehicle status information from the communication middleware, and then queries the script management based on the event whether there is a script ID that meets the conditions, then queries the condition rule information based on the status information, and then queries whether there is a script ID that meets the corresponding status, and finally adds the script ID to the decision queue for decision making.

[0047] like Figure 4 As shown in the figure, the script decision process is as follows: first, the scenario to be decided is obtained according to the script ID, and then the preconditions of the scenario are obtained. Then, the preconditions are queried through the communication middleware to see whether they are met, and the query results of the preconditions are obtained. If the preconditions are met, then it is determined whether the execution time interval of the script meets the requirements. If the execution time interval meets the requirements, then it is determined whether there is any mutual exclusion in the script content. If there is no mutual exclusion, the scenario script is added to the execution queue and waits for execution.

[0048] like Figure 5 As shown in the figure, the script execution process is as follows: first, the logic block information in the scene script is parsed, the script block is placed in the execution queue, and then execution begins. The log module also records the corresponding execution log. The js engine executes the javaScript script and returns the execution result. Then, the corresponding remote service call is executed, the result is returned, and finally the block execution result is returned.

[0049] The present invention is used to orchestrate service functions according to pre-defined scripts, and quickly implement new scenario functions with low code. First, the service is orchestrated to generate a script, and the script is saved to the engine. The service is orchestrated to generate a script to achieve zero-code customization of the car use scenario, which changes the current hard-coded product development system model and greatly improves the efficiency of new function research and development; the event or state defined by the script is monitored in real time, and then it is determined which script is triggered, and then a decision is made on whether the script is executed. After the decision script needs to be executed, the script is executed according to the service function defined in the script. Focusing on "services can be orchestrated and users can customize it", a new user usage model that is visible, touchable, and experiential is formed, which greatly improves the user experience and product flexibility. At the same time, it allows users to customize the functions of their own cars, significantly improving the user experience, while also improving the efficiency of car manufacturers' function research and development and reducing development workload.

[0050] Finally, it should be noted that the above embodiments are only used to illustrate the technical solution of the present invention rather than to limit the technical solution. Those skilled in the art should understand that those modifications or equivalent substitutions of the technical solution of the present invention that do not depart from the purpose and scope of the technical solution should be included in the scope of the claims of the present invention.

Claims

1. A service orchestration script execution method, It is characterized in that First, the service is orchestrated to generate a script, which is then saved to the engine. The event or status defined by the script is monitored in real time, and then the triggering script is identified and determined. Then, a decision is made as to whether the script should be executed. After the decision is made that the script needs to be executed, the script is executed according to the service function defined in the script. The following system is used for execution. The core business layer of the system includes: script management module, scene recognition module, script decision module and script execution module; wherein: Script management module: responsible for local and cloud-based scripts, and also provides script addition; Scene recognition module: obtains the status of vehicle hardware, ecology and system to identify which rule scripts are triggered; Script decision module: When a rule script is triggered, this module combines the script preconditions and cooldown time to decide whether to execute the script's interaction and service call; Script execution module: performs conflict determination on executable scripts and executes the actions contained in the scripts; The core business layer performs the following process: S1. The script management module loads the script: The script management module loads the current script and sets the trigger condition and script ID in the script to the scene recognition module; S2. The scene recognition module determines which script to use: The scene recognition module monitors the changes in vehicle signals required by the current script through the adaptation layer, and makes a trigger judgment on the scene conditions; if the script trigger conditions are met, the script management module is notified to trigger the corresponding script according to the script ID, and the script management module sends the corresponding script to the decision module for decision-making; S3, the script decision module decides whether to execute the script: the script decision module will take out the script with the highest priority from the decision queue, determine the preconditions and cooling time of the script, and decide whether it can be executed according to the determination result; send the script that meets the execution conditions to the execution queue; discard the script that does not meet the running conditions; S4. The script execution module executes the script: The script execution module obtains the highest priority script from the execution queue for conflict determination, and starts executing the script after the determination is successful; the adaptation layer provides support for the corresponding execution function.

2. The service orchestration script execution method according to claim 1, It is characterized in that New additions to the script include update, delete, query, and local storage operations.

3. The service orchestration script execution method according to claim 1, It is characterized in that The vehicle hardware includes a vehicle computer, a TBOX, and other vehicle-mounted controllers.

4. The service orchestration script execution method according to claim 1, It is characterized in that The status of the ecosystem and system includes weather, calendar, news content status, and other systems that can perform scene recognition.

5. The service orchestration script execution method according to claim 1, It is characterized in that The preconditions include vehicle status, time status, geographic information, and environmental information used for determining status information; and the length of time after the cooling time scenario occurs that the scenario cannot be executed repeatedly.