Scenario service execution method, device, electronic device, storage medium and vehicle

By judging the scene service type and monitoring the logical plot status in the vehicle, triggering the action according to preset conditions, and executing it in series between multiple plots, the chaos and conflict problems caused by the complex logic of the vehicle scene service execution are solved, and orderly scenario service execution.

CN115923685BActive Publication Date: 2024-11-29GREAT WALL MOTOR CO LTD
View PDF 2 Cites 0 Cited by

Patent Information

Application Number
CN202211545000.0
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2022-12-02
Publication Date
2024-11-29
Estimated Expiration
2042-12-02

AI Technical Summary

Technical Problem

In the vehicle's scenario service deployment, due to the many devices being called, the execution logic of the scenario service is complex, which easily leads to execution chaos and conflicts, making it difficult to execute in an orderly and organized manner.

Method used

By judging the type of scene service, monitoring the status and triggering conditions in the logical plot, triggering actions based on the preset logical connection relationship, and executing them in series between multiple plots, ensuring that the plots at all levels are executed in an orderly manner and avoiding conflicts.

Benefits of technology

The orderly execution in complex execution logic is realized, execution conflicts are reduced, and execution efficiency and stability of scenario services are improved.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN115923685B_ABST
    Figure CN115923685B_ABST
Patent Text Reader

Abstract

The present application provides a method, device, electronic device, storage medium and vehicle for executing a scene service; the method includes: by judging the type of scene service, for a general scene service, monitoring whether the state of the first logic plot in the first-level logic script meets the corresponding trigger conditions; when the trigger condition is met according to the logical connection relationship, triggering the preset action in the first logic plot, when the action execution is completed, the first logic plot execution is completed, and it is determined whether other logic plots are connected in series; when there are other logic plots connected in series, the other logic plots are executed in sequence according to the order of the series connection until all the logic plots are executed or interrupted, and do not point to other sub-level logic scripts. It can be seen that this method comprehensively considers different scene services and the logical relationship between the script and the plot in the scene service to execute each action, so that when the scene service is executed, the plots at each level are orderly and not prone to conflict.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] Embodiments of the present application relate to the technical field, and in particular, to a method, device, electronic device, storage medium, and vehicle for executing a scene service. Background Art

[0002] In the vehicle scene service deployment method, since the vehicle system involves many devices to be called, the situations that need to be judged when the scene service is executed are complex. Therefore, for scene services that handle complex and changeable scene conditions, redundant algorithms and chaotic execution methods can easily cause execution conflicts, making it difficult for scene services to be executed through orderly and organized logic.

[0003] Based on this, a solution is needed that can execute scene services in an orderly and methodical manner to solve the problems of chaotic execution and easy conflicts in complex execution logic. Summary of the invention

[0004] In view of this, the purpose of the present application is to propose a method, device, electronic device, storage medium and vehicle for executing scene services to solve the problems of execution confusion and easy conflicts in complex execution logic.

[0005] Based on the above objectives, this application provides a method for executing a scene service, including:

[0006] Determining the type of the scene service, in response to determining that the scene service is a general scene service that executes fixed content, monitoring whether at least one preset state in the first logic plot satisfies the respective corresponding preset trigger conditions in the first-level logic script of the general scene service;

[0007] Acquire the logical connection relationship between the trigger conditions in the first logical scenario, and when the trigger condition is satisfied according to the logical connection relationship, trigger the action preset in the first logical scenario, and in response to the triggered action execution being completed, the first logical scenario execution is completed, and determine whether to connect other logical scenarios in series;

[0008] In response to determining that there are other logic plots in series, the other logic plots are executed in sequence according to the order of series connection until all the logic plots in series are executed or interrupted, and no other sub-level logic scripts are pointed to.

[0009] Furthermore, after determining the type of scene service, it also includes:

[0010] In response to determining that the scenario service is a user scenario service for executing customized editing content, monitoring whether at least one preset state satisfies a respective corresponding preset trigger condition;

[0011] The logical connection relationship between each trigger condition is obtained, and when the trigger condition is satisfied according to the logical connection relationship, the preset action in the user scenario service is triggered, and in response to the completion of the execution of the triggered action, it is determined that the user scenario service has completed execution.

[0012] Furthermore, after determining the type of scene service, it also includes:

[0013] Based on the simultaneous existence of the user scenario service and the general scenario service, when their respective actions are triggered at the same time;

[0014] In response to a trigger condition of the user scenario service being met and the general scenario service being executed, interrupting the execution of the general scenario service and executing the user scenario service;

[0015] In response to a trigger condition of the general scenario service being met and the user scenario service being executed, the execution of the general scenario service is prohibited.

[0016] Further, monitoring whether at least one preset state in the first logic scenario satisfies a corresponding preset trigger condition includes:

[0017] By using the preset triggers corresponding to each state, each corresponding state is monitored to see whether it meets the corresponding trigger condition.

[0018] Furthermore, when the trigger condition is satisfied according to the logical connection relationship, the action preset in the first logical scenario is triggered, including:

[0019] When the logical connection relationship is an OR relationship, in response to any trigger condition for executing the logical connection relationship being satisfied by the corresponding state, the at least one action is triggered in sequence according to a preset action sequence;

[0020] When the logical connection relationship is an and relationship, in response to all triggering conditions for executing the logical connection relationship being satisfied by the corresponding states, the at least one action is triggered in sequence according to a preset action sequence.

[0021] Furthermore, until all the logical plots in series are executed, it also includes:

[0022] In response to pointing to any child logic script when the logic scenario execution ends, executing the logic scenario in the pointed child logic script;

[0023] In response to the completion of execution of the logic plot in the child logic script or the interruption of execution, and not pointing to other child logic scripts, it is determined that the general scenario service containing the child logic script has completed execution.

[0024] Based on the same inventive concept, the present application also provides an execution device for a scene service, including: a scene starting module, a plot execution module and a series execution module;

[0025] The scene start module is configured to determine the type of the scene service, and in response to determining that the scene service is a general scene service that executes fixed content, monitor whether at least one preset state in the first logic plot satisfies the corresponding preset trigger condition in the first-level logic script of the general scene service;

[0026] The scenario execution module is configured to obtain the logical connection relationship between the trigger conditions in the first logic scenario, trigger the action preset in the first logic scenario when the trigger condition is satisfied according to the logical connection relationship, terminate the execution of the first logic scenario in response to the triggered action, and determine whether to connect other logic scenarios in series;

[0027] The serial execution module is configured to, in response to determining that there are other logic plots in series, execute the other logic plots in sequence according to the order of series connection until the execution of all the logic plots in series is completed or the execution is interrupted, and does not point to other sub-level logic scripts.

[0028] Based on the same inventive concept, the present application also provides an electronic device, including a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein when the processor executes the program, the execution method of the scene service as described in any one of the above items is implemented.

[0029] Based on the same inventive concept, the present application also provides a computer-readable storage medium, wherein the computer-readable storage medium stores computer instructions, and the computer instructions are used to enable the computer to execute the execution method of the above-mentioned scene service.

[0030] Based on the same inventive concept, the present application also provides a vehicle, which includes a scene service execution device and an electronic device, and the electronic device executes the scene service execution method as described in any one of the above.

[0031] From the above, it can be seen that the execution method, device, electronic device, storage medium and vehicle of the scene service provided by the present application, based on the types of different scene services, comprehensively consider the differences between general scene services that execute fixed content and user scene services that execute custom content. When executing general scene services, actions are triggered based on the status detected in the logical plot and the preset trigger conditions, as well as the preset logical connection relationship, and the situation where multiple plots are connected in series as a script is considered, and the execution of the entire script is completed by executing each plot in sequence.

[0032] Furthermore, for the series connection of multiple scripts, the levels between each script are divided, and the parent script as the first-level logical script is executed first, and the child-level logical script as the next level is executed later, so as to realize the execution of the entire scene service. When the scene service is executed, the plots at each level are orderly and not prone to conflicts. BRIEF DESCRIPTION OF THE DRAWINGS

[0033] In order to more clearly illustrate the technical solutions in the present application or related technologies, the drawings required for use in the embodiments or related technical descriptions are briefly introduced below. Obviously, the drawings described below are only embodiments of the present application. For ordinary technicians in this field, other drawings can be obtained based on these drawings without creative work.

[0034] Figure 1 A first architecture diagram of a scene service according to an embodiment of the present application;

[0035] Figure 2 A second architecture diagram of a scene service according to an embodiment of the present application;

[0036] Figure 3 A flowchart of a method for executing a scene service according to an embodiment of the present application;

[0037] Figure 4 A schematic diagram of the structure of an execution device serving a scenario in an embodiment of the present application;

[0038] Figure 5 This is a schematic diagram of the structure of an electronic device according to an embodiment of the present application. DETAILED DESCRIPTION

[0039] In order to make the objectives, technical solutions and advantages of the present application more clearly understood, the present application is further described in detail below in combination with specific embodiments and with reference to the accompanying drawings.

[0040] It should be noted that, unless otherwise defined, the technical terms or scientific terms used in the embodiments of the present application should be the usual meanings understood by people with ordinary skills in the field to which the present application belongs. The "first", "second" and similar words used in the embodiments of the present application do not represent any order, quantity or importance, but are only used to distinguish different components. "Including" or "comprising" and similar words mean that the elements or objects appearing in front of the word cover the elements or objects listed after the word and their equivalents, without excluding other elements or objects. "Connecting" or "connected" and similar words are not limited to physical or mechanical connections, but can include electrical connections, whether direct or indirect. "Up", "down", "left", "right" and the like are only used to indicate relative positional relationships. When the absolute position of the described object changes, the relative positional relationship may also change accordingly.

[0041] As described in the background technology section, the execution method of the relevant scene service is still difficult to meet the needs of actual execution.

[0042] In the process of implementing the present application, the applicant discovered that the main problem with the execution method of the relevant scene service is that since the vehicle system involves many devices to be called, the deployed scene services need to make complex judgments during execution. Therefore, for scene services that handle complex and changeable scene conditions, the redundant and chaotic execution method of the algorithm can easily cause execution conflicts, making it difficult to execute the scene service through orderly and structured logic.

[0043] Based on this, one or more embodiments of the present application provide a method for executing a scene service, which executes one or more logic scripts based on the series relationship between multiple designed logic plots, thereby realizing the execution of the overall scene service including one or more logic scripts, and solving the problems of execution confusion and easy conflicts in complex execution logic.

[0044] The embodiments of the present application are described in detail below with reference to the accompanying drawings.

[0045] In the embodiments of the present application, a vehicle equipped with a scene service is taken as a specific example.

[0046] Among them, the vehicle computer can be used to download, store and execute scene services released by the cloud platform; the cloud platform that communicates with the vehicle computer can store and operate scene services, and the mobile phone application that communicates with the cloud platform can edit the scene services.

[0047] Among them, the scene service can be regarded as a service or microservice deployed and run in the program architecture. In this embodiment, the scene service can also be called: vehicle operation scene; or simply referred to as: scene.

[0048] Furthermore, if Figure 1 As shown, the scene service may include one or more logic scripts; each logic script may consist of one or more logic plots; Figure 2 As shown, each logic scenario is composed of at least one trigger, at least one condition and at least one action.

[0049] Among them, each type of trigger can be used to actively and continuously monitor the changes of the corresponding type of state over a period of time. For example, temperature triggers can be used to continuously monitor temperature changes; other types of triggers can also be used to continuously and passively receive the corresponding type of state. For example, voice triggers can continuously monitor whether the user of the car computer issues voice commands and identify the issued voice commands.

[0050] Furthermore, the conditions pre-set in the logic scenario may also be referred to as trigger conditions in this embodiment, which are used to evaluate the state monitored by the trigger. When the state monitored by the trigger meets the corresponding trigger conditions, the preset actions in the logic scenario may be triggered.

[0051] It can be seen that each logic scenario specifically describes the triggering and execution method of a whole set of logic actions when the vehicle computer performs one or more actions. In this embodiment, the logic scenario can also be referred to as a scenario.

[0052] Furthermore, one plot can be used as a logical script, and multiple plots can also be connected in series in a pre-set sequence to form a logical script for triggering and executing multiple sets of logical actions. In this embodiment, the logical script can also be referred to as a script.

[0053] Furthermore, a script can be used in multiple scene services. When a scene service contains more than one script, the multiple scripts will be connected in series in the form of parent-child scripts.

[0054] Specifically, the parent script can be regarded as the first-level logic script executed in the same scene service; the child script, as the next-level logic script of the first-level logic script, needs to be started after the parent script is executed, and is used to take over the logical actions that need to be executed after the parent script.

[0055] In this embodiment, the scene service composed of the above-mentioned scripts and plots can be used as a general scene service that executes fixed content. That is to say, in the general scene service, the trigger conditions, actions and states are all fixed content, and users are not supported to perform custom editing. In other words, once constructed by the operator of the scene service, it cannot be changed.

[0056] Furthermore, the scene service may not be constructed in the manner of the above-mentioned script and plot. In this embodiment, the scene service can also be constructed by the user through a mobile phone application by directly editing the triggers, conditions, and action execution logic between actions in the scene, building a user scene service, and deploying it to the car computer. It can be seen that the content executed in the user scene service is user-defined editing and supports user modification.

[0057] refer to Figure 3 The execution method of the scene service of an embodiment of the present application can be executed by the vehicle computer of the vehicle, and specifically includes the following steps:

[0058] Step S301, determine the type of scene service, in response to determining that the scene service is a general scene service that executes fixed content, in the first-level logic script of the general scene service, continuously monitor whether at least one preset state in the first logic plot meets the corresponding preset trigger condition.

[0059] In the embodiment of the present application, based on the above-mentioned types of scene services, when executing scene services, different execution logics are respectively run on different types of scene services by judging the types of scene services.

[0060] Furthermore, when it is determined that the scene service to be executed is a general scene service, it can be considered that there is at least one script in the general scene service, and the at least one script has at least one plot.

[0061] Furthermore, the first executed logic script is used as the first-level logic script, that is, the parent script, and the first plot in the parent script is executed first.

[0062] Specifically, by starting the trigger in the plot, continuous monitoring of the state can be triggered, and real-time evaluation can be made as to whether the monitored state meets the trigger condition corresponding to the state.

[0063] Furthermore, when multiple triggers are set in the plot, the triggers have an "or" logical relationship, that is, when any of the multiple triggers is activated, the preset state can be monitored and whether the state meets the corresponding trigger condition can be evaluated in real time.

[0064] In a specific example, for example, a general scenario service of "voice-activated efficient cooling" is deployed in the car computer, in which the parent script is "voice-activated", and includes one plot, namely the "voice-activated" plot, in which the trigger may include two triggers, namely, a voice trigger and a temperature trigger; the monitored states may include two, namely, voice commands and temperature; the voice trigger condition corresponding to the voice command state may be a voice sentence containing the semantics of "activating efficient cooling", and the temperature trigger condition corresponding to the temperature state may be a preset temperature value; the preset action may be: starting the vehicle air conditioning cooling.

[0065] Among them, the voice trigger is used to monitor whether the driver and passengers have issued any voice commands, and when a voice command is detected, it is determined whether it contains the semantics preset in the corresponding voice trigger condition by identifying the voice command.

[0066] Furthermore, the temperature trigger is used to monitor the temperature inside the vehicle and determine whether the temperature inside the vehicle exceeds a corresponding temperature trigger condition.

[0067] Furthermore, since there is an "or" relationship between the temperature trigger and the voice trigger, when executing the "voice-activated efficient cooling" scenario, if there is still another scenario being executed and occupies any one of the above two triggers, then the other of the voice trigger and the temperature trigger is started to start the detection and evaluation of the corresponding state.

[0068] For example, when a voice trigger is activated, if the temperature trigger is not activated at the same time, the monitoring and recognition of voice commands can also be activated; when a temperature trigger is activated, if the voice trigger is not activated at the same time, the monitoring and judgment of the temperature inside the vehicle can also be activated.

[0069] It can be seen that for general scenario services with complex serial structures, based on the multiple logic scripts and multiple logic plots contained in the serial structure, by setting triggers, trigger conditions and actions from the logic plot at the bottom of the execution logic, each action can be corresponded to each state respectively, and the granularity between state changes and action execution is refined.

[0070] Step S302, based on the logical connection relationship between the various trigger conditions, when the trigger condition for executing the logical connection relationship is met, at least one preset action is triggered, and in response to the execution of the triggered action being completed, the execution of the first logical plot is completed, and it is determined whether to connect other logical plots in series.

[0071] In an embodiment of the present application, through the preset logical connection relationship between each trigger condition, and based on the monitoring and judgment of the state by the trigger in the above steps, the corresponding action pre-set in the plot can be triggered after the corresponding trigger condition is met and the logical connection relationship is effectively executed.

[0072] Specifically, during the execution of the scene service, when multiple trigger conditions are preset in the plot, the logical connection relationship between the trigger conditions can be preset, wherein the logical connection relationship can be, for example, an execution logic of "or", "and", or "not".

[0073] Based on this, multiple trigger conditions in the plot can be made to execute the above-set logical connection relationship and trigger at least one corresponding preset action.

[0074] Specifically, when the logical connection relationship is "or", it is considered that when any of the multiple trigger conditions for executing the logical connection relationship is satisfied by the corresponding state, all actions corresponding to the trigger condition and state in the plot can be executed.

[0075] Furthermore, when the logical connection relationship is "and", it is considered that among the multiple trigger conditions for executing the logical connection relationship, all trigger conditions need to be satisfied by the corresponding states before the action corresponding to the trigger condition and state in the plot can be executed.

[0076] In a specific example, in the general scenario service of "automatically turning on cabin air cleaning", there is one script, and the script contains one plot.

[0077] Among them, in this scenario, the two monitored states include: the state of the cabin doors and windows, and the state of the air quality in the cabin; the two trigger conditions set corresponding to the two states include: the state of the doors and windows being closed, and the state of the air quality in the cabin being below the preset quality threshold; and the logical connection relationship between the two trigger conditions is "and".

[0078] Furthermore, the preset actions in the scenario include, "perform air cleaning function".

[0079] Based on this, the action of "executing the air cleaning function" can be triggered only when both conditions are met, that is, the cabin doors and windows are closed, and the air quality in the cabin is below the preset quality threshold.

[0080] In this embodiment, when the actions in a scenario are executed, it is determined whether there are other scenarios connected in series.

[0081] Specifically, when the preset action in a scenario is executed, it will continue to be determined whether there is an action that activates a preset trigger in another scenario.

[0082] It can be seen that by setting the logical connection relationship, the logical relationship between multiple trigger conditions can be integrated in an orderly manner, making the execution of the action more orderly; further, by judging the execution status of the action, it can be determined whether the current logical plot has been executed, and based on this, it can be directly connected to the next logical plot.

[0083] Step S303, in response to determining that there are other logic plots in series, execute the other logic plots in sequence according to the order of series connection until the execution of all the logic plots in series is completed or the execution is interrupted, and does not point to other sub-level logic scripts.

[0084] In an embodiment of the present application, when other plots are connected in series in the script, the other plots can be executed in sequence in the order of the connection until all the plots are executed.

[0085] In another specific example of the present application, in the general scenario service of "voice-activated efficient cooling", for the parent script: "voice activated", it can also be set to include two plots.

[0086] Specifically, the first scenario may be to detect the temperature status inside the vehicle through a temperature trigger, and when it is determined that the temperature status inside the vehicle meets a preset temperature trigger condition, perform a voice broadcast action, and specifically broadcast: "Whether to turn on efficient cooling."

[0087] Furthermore, after the first plot, the second plot can be connected in series.

[0088] Specifically, the second scenario can be to recognize the voice commands issued by the driver and passengers through voice triggers, and when the voice command with the semantics of "turn on efficient cooling" is recognized, execute the preset action: start the vehicle air conditioning cooling.

[0089] Based on this, when the voice broadcast action of the plot is executed, it can be considered that the execution of the first plot is completed, and the second plot is executed in sequence.

[0090] In this embodiment, all the plots in the script are executed sequentially, and when the last plot is executed, the last action executed can be set to: stop the script. Based on the smooth execution of this action, it can be considered that the script has completed execution.

[0091] In another embodiment, when any plot in the script is being executed, it may be interrupted by the execution of other scene services. Based on this, the script may also be considered to have completed execution.

[0092] In another embodiment, all the plots in the script are executed sequentially, and when the last plot is executed, if the last successfully executed action is: starting the specified sub-script, based on this action, the script can also be considered to have completed execution. At the same time, the scene service will point to the execution of the next sub-script, so the scene service has not completed execution.

[0093] In a specific example, in the general scenario service of "voice-activated efficient cooling", for the parent script: "voice activated", it can also be set to include two plots.

[0094] Specifically, the first scenario may be to detect the temperature status inside the vehicle through a temperature trigger, and when it is determined that the temperature status inside the vehicle meets a preset temperature trigger condition, perform a voice broadcast action, and specifically broadcast: "Whether to turn on efficient cooling."

[0095] Furthermore, after the first plot, the second plot can be connected in series.

[0096] Specifically, the second scenario may be to recognize the voice commands issued by the driver and passengers through voice triggers, and when the voice command with the semantics of "turn on efficient cooling" is recognized, a preset action is executed: the sub-script is started.

[0097] Based on this, when the voice broadcast action of the plot is executed, it can be considered that after the second plot is executed, it will point to the execution of the sub-script.

[0098] In this embodiment, for the parent script: "Voice on", its serialized child script can be: "Efficient cooling".

[0099] Among them, the preset actions in the sub-script may include: calling the vehicle's air-conditioning equipment for cooling and starting the vehicle's seat ventilation function.

[0100] Furthermore, the trigger of the child script can be used to determine whether the previous parent script in series is successfully executed, and to instruct the start of the child script; based on this, the trigger condition is the action of the previous parent script: starting the child script, which can be successfully executed.

[0101] In another embodiment of the present application, the child script can also be applied to multiple different scenario services and executed by connecting different parent scripts in series.

[0102] In a specific example, the sub-script in the aforementioned embodiment: "Efficient Cooling" can be connected in series with the parent script: "Voice Start" to form a scenario service of "Voice Start Efficient Cooling".

[0103] Furthermore, the sub-script: "Efficient Cooling" can be connected in series with the parent script: "Automatic Start" to form a scene service of "Automatic Sound Start Efficient Cooling".

[0104] Among them, the parent script "automatic start" can include: 1 plot, which can be to detect the temperature status inside the car through a temperature trigger, and when it is determined that the temperature status inside the car meets the preset temperature trigger condition, execute the preset action: start the sub-script: "efficient cooling".

[0105] In some other embodiments of the present application, based on the judgment of the scene service, when it is judged that the scene service to be executed is a user scene service, it can be considered that the user scene service does not have the execution structure of the parent script and the child script.

[0106] In the user scenario service, users can customize triggers, trigger conditions, and actions to be performed, and after the trigger is activated, continuously monitor whether the specified state meets the preset trigger conditions.

[0107] Furthermore, the triggering condition is executed according to a predetermined logical connection relationship, and when the triggering condition is satisfied according to the execution principle of the logical connection relationship, the corresponding action is executed to complete the execution of the user scenario service.

[0108] In another embodiment of the present application, based on the judgment of the scene service, when it is determined that there are multiple scene services to be executed, including both user scene services and general scene services, since the user scene service is edited by the user, the user scene service has a higher execution priority than the general scene service when it is executed.

[0109] Specifically, when the user scenario service and the general scenario service trigger their respective actions at the same time, the action of the user long scenario is executed first.

[0110] Among them, when the action of any script or plot in the general scenario service is being executed, if any trigger condition in the user scenario service is met, the execution of the action in the general scenario service is interrupted, and the action corresponding to the trigger condition in the user scenario service is executed.

[0111] Furthermore, when any action in the user scenario service is being executed, if the triggering condition of any script or plot in the user scenario service is met, the action corresponding to the triggering condition in the general scenario service is prohibited from being executed.

[0112] It can be seen that for different types of scene services, the settings of the scene service operator and the user are comprehensively considered. By interrupting and prohibiting the script, the priority of the user scene service is higher than the general scene service, which fully meets the needs of the user.

[0113] It can be seen that the execution method of the scene service of the embodiment of the present application, based on the types of different scene services, comprehensively considers the difference between the general scene service that executes fixed content and the user scene service that executes custom content. When executing the general scene service, the action is triggered based on the status detected in the logical plot and the preset trigger conditions, as well as the preset logical connection relationship. It also considers the situation where multiple plots are connected in series as a script, and the execution of the entire script is completed by executing each plot in sequence.

[0114] Furthermore, for the series connection of multiple scripts, the levels between each script are divided, and the parent script as the first-level logical script is executed first, and the child-level logical script as the next level is executed later, so as to realize the execution of the entire scene service. When the scene service is executed, the plots at each level are orderly and not prone to conflicts.

[0115] It should be noted that the method of the embodiment of the present application can be performed by a single device, such as a computer or server. The method of this embodiment can also be applied to a distributed scenario and completed by multiple devices cooperating with each other. In the case of such a distributed scenario, one of the multiple devices can only perform one or more steps in the method of the embodiment of the present application, and the multiple devices will interact with each other to complete the described method.

[0116] It should be noted that the above describes some embodiments of the present application. Other embodiments are within the scope of the appended claims. In some cases, the actions or steps recorded in the claims can be performed in an order different from that in the above embodiments and still achieve the desired results. In addition, the processes depicted in the accompanying drawings do not necessarily require the specific order or continuous order shown to achieve the desired results. In some embodiments, multitasking and parallel processing are also possible or may be advantageous.

[0117] Based on the same inventive concept, corresponding to any of the above-mentioned embodiment methods, an embodiment of the present application further provides an execution device for a scene service.

[0118] refer to Figure 4 , the execution device of the scene service includes: a scene starting module 401, a plot execution module 402 and a series execution module 403;

[0119] The scene start module 401 is configured to determine the type of the scene service, and in response to determining that the scene service is a general scene service that executes fixed content, monitor whether at least one preset state in the first logic plot satisfies the corresponding preset trigger condition in the first-level logic script of the general scene service;

[0120] The scenario execution module 402 is configured to obtain the logical connection relationship between the trigger conditions in the first logic scenario, and when the trigger condition is satisfied according to the logical connection relationship, trigger the action preset in the first logic scenario, and in response to the triggered action execution being completed, the first logic scenario execution is completed, and it is determined whether to connect other logic scenarios in series;

[0121] The serial execution module 403 is configured to, in response to determining that there are other logic plots in series, execute the other logic plots in sequence according to the order of series connection until the execution of all the logic plots in series is completed or the execution is interrupted, and does not point to other sub-level logic scripts.

[0122] As an optional embodiment, the scenario starting module 401 is specifically configured as follows:

[0123] By using the preset triggers corresponding to each state, each corresponding state is monitored to see whether it meets the corresponding trigger condition.

[0124] Furthermore, after determining the type of scene service:

[0125] In response to determining that the scenario service is a user scenario service for executing customized editing content, monitoring whether at least one preset state satisfies a respective corresponding preset trigger condition;

[0126] The logical connection relationship between each trigger condition is obtained, and when the trigger condition is satisfied according to the logical connection relationship, the preset action in the user scenario service is triggered, and in response to the completion of the execution of the triggered action, it is determined that the user scenario service has completed execution.

[0127] Further, based on the simultaneous existence of the user scenario service and the general scenario service, when respective actions are triggered simultaneously;

[0128] In response to a trigger condition of the user scenario service being met and the general scenario service being executed, interrupting the execution of the general scenario service and executing the user scenario service;

[0129] In response to a trigger condition of the general scenario service being met and the user scenario service being executed, the execution of the general scenario service is prohibited.

[0130] As an optional embodiment, the scenario execution module 402 is specifically configured as follows:

[0131] When the logical connection relationship is an OR relationship, in response to any trigger condition for executing the logical connection relationship being satisfied by the corresponding state, the at least one action is triggered in sequence according to a preset action sequence;

[0132] When the logical connection relationship is an and relationship, in response to all triggering conditions for executing the logical connection relationship being satisfied by the corresponding states, the at least one action is triggered in sequence according to a preset action sequence.

[0133] As an optional embodiment, the serial execution module 403 is specifically configured as follows:

[0134] After all the logical plots in series are executed:

[0135] In response to pointing to any child logic script when the logic scenario execution ends, executing the logic scenario in the pointed child logic script;

[0136] In response to the completion of execution of the logic plot in the child logic script or the interruption of execution, and not pointing to other child logic scripts, it is determined that the general scenario service containing the child logic script has completed execution.

[0137] For the convenience of description, the above devices are described in terms of functions and are divided into various modules. Of course, when implementing the embodiments of the present application, the functions of each module can be implemented in the same or multiple software and / or hardware.

[0138] The device of the above embodiment is used to implement the execution method of the corresponding scene service in any of the above embodiments, and has the beneficial effects of the corresponding method embodiment, which will not be repeated here.

[0139] Based on the same inventive concept, corresponding to any of the above-mentioned embodiments and methods, an embodiment of the present application also provides an electronic device, including a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein when the processor executes the program, the execution method of the scene service as described in any of the above embodiments is implemented.

[0140] Figure 5A more specific schematic diagram of the hardware structure of an electronic device provided in this embodiment is shown, and the device may include: a processor 1010, a memory 1020, an input / output interface 1030, a communication interface 1040, and a bus 1050. The processor 1010, the memory 1020, the input / output interface 1030, and the communication interface 1040 are connected to each other through the bus 1050 in the device.

[0141] The processor 1010 can be implemented by a general-purpose CPU (Central Processing Unit), a microprocessor, an application-specific integrated circuit (ASIC), or one or more integrated circuits, and is used to execute relevant programs to implement the technical solutions provided in the embodiments of the present application.

[0142] The memory 1020 may be implemented in the form of ROM (Read Only Memory), RAM (Random Access Memory), static storage device, dynamic storage device, etc. The memory 1020 may store an operating system and other application programs. When the technical solution provided in the embodiment of the present application is implemented by software or firmware, the relevant program code is stored in the memory 1020 and is called and executed by the processor 1010.

[0143] The input / output interface 1030 is used to connect the input / output module to realize information input and output. The input / output module can be configured in the device as a component (not shown in the figure), or it can be externally connected to the device to provide corresponding functions. The input device may include a keyboard, a mouse, a touch screen, a microphone, various sensors, etc., and the output device may include a display, a speaker, a vibrator, an indicator light, etc.

[0144] The communication interface 1040 is used to connect a communication module (not shown) to realize communication interaction between the device and other devices. The communication module can realize communication through a wired mode (such as USB, network cable, etc.) or a wireless mode (such as mobile network, WIFI, Bluetooth, etc.).

[0145] The bus 1050 includes a path that transmits information between the various components of the device (eg, the processor 1010, the memory 1020, the input / output interface 1030, and the communication interface 1040).

[0146] It should be noted that, although the above device only shows the processor 1010, the memory 1020, the input / output interface 1030, the communication interface 1040 and the bus 1050, in the specific implementation process, the device may also include other components necessary for normal operation. In addition, it can be understood by those skilled in the art that the above device may also only include the components necessary for implementing the embodiment of the present application, and does not necessarily include all the components shown in the figure.

[0147] The device of the above embodiment is used to implement the execution method of the corresponding scene service in any of the above embodiments, and has the beneficial effects of the corresponding method embodiment, which will not be repeated here.

[0148] Based on the same inventive concept, corresponding to any of the above-mentioned embodiment methods, the present application also provides a vehicle, wherein the vehicle includes a scene service execution device and an electronic device, and the electronic device executes the scene service execution method as described in any one of the above-mentioned embodiments.

[0149] Based on the same inventive concept, corresponding to any of the above-mentioned embodiments and methods, the present application also provides a computer-readable storage medium, wherein the computer-readable storage medium stores computer instructions, and the computer instructions are used to enable the computer to execute the execution method of the scene service as described in any of the above embodiments.

[0150] The computer-readable medium of this embodiment includes permanent and non-permanent, removable and non-removable media, and information storage can be implemented by any method or technology. Information can be computer-readable instructions, data structures, modules of programs, or other data. Examples of computer storage media include, but are not limited to, phase change memory (PRAM), static random access memory (SRAM), dynamic random access memory (DRAM), other types of random access memory (RAM), read-only memory (ROM), electrically erasable programmable read-only memory (EEPROM), flash memory or other memory technology, read-only compact disk read-only memory (CD-ROM), digital versatile disk (DVD) or other optical storage, magnetic cassettes, tape disk storage or other magnetic storage devices or any other non-transmission media that can be used to store information that can be accessed by a computing device.

[0151] The computer instructions stored in the storage medium of the above embodiment are used to enable the computer to execute the execution method of the scene service as described in any of the above embodiments, and have the beneficial effects of the corresponding method embodiments, which will not be repeated here.

[0152] Those skilled in the art should understand that the discussion of any of the above embodiments is merely illustrative and is not intended to imply that the scope of the present application (including the claims) is limited to these examples. In line with the concept of the present application, the technical features in the above embodiments or different embodiments may be combined, the steps may be implemented in any order, and there are many other variations of different aspects of the embodiments of the present application as described above, which are not provided in detail for the sake of simplicity.

[0153] In addition, to simplify the description and discussion, and in order not to make the embodiments of the present application difficult to understand, the known power supply / ground connection with the integrated circuit (IC) chip and other components may or may not be shown in the provided drawings. In addition, the device can be shown in the form of a block diagram to avoid making the embodiments of the present application difficult to understand, and this also takes into account the fact that the details of the implementation of these block diagram devices are highly dependent on the platform on which the embodiments of the present application will be implemented (that is, these details should be fully within the scope of understanding of those skilled in the art). In the case of elaborating specific details (e.g., circuits) to describe exemplary embodiments of the present application, it is obvious to those skilled in the art that the embodiments of the present application can be implemented without these specific details or when these specific details are changed. Therefore, these descriptions should be considered illustrative rather than restrictive.

[0154] Although the present application has been described in conjunction with the specific embodiments of the present application,

[0155] From the above description, many alternatives, modifications and variations of these embodiments will be apparent to those of ordinary skill in the art. For example, other memory architectures (e.g., dynamic RAM (DRAM)) may be used.

[0156] to use the discussed embodiments.

[0157] The embodiments of the present application are intended to cover all such substitutions, modifications and variations that fall within the broad scope of the appended claims.

[0158] Any omissions, modifications, equivalent substitutions, improvements, etc. made should be included in the protection scope of this application.

Claims

1. A method for executing a scene service, characterized in that: include: Determining the type of the scene service, in response to determining that the scene service is a general scene service that executes fixed content, monitoring whether at least one preset state in the first logic plot satisfies the respective corresponding preset trigger conditions in the first-level logic script of the general scene service; Acquire the logical connection relationship between the trigger conditions in the first logical scenario, and when the trigger condition is satisfied according to the logical connection relationship, trigger the action preset in the first logical scenario, and in response to the triggered action execution being completed, the first logical scenario execution is completed, and determine whether to connect other logical scenarios in series; In response to determining that there are other logic plots in series, the other logic plots are executed in sequence according to the order of the series connection until all the logic plots in series are executed or the execution is interrupted, and no other sub-level logic scripts are pointed to; After determining the type of the scene service, the method further includes: In response to determining that the scenario service is a user scenario service for executing customized editing content, monitoring whether at least one preset state satisfies a respective corresponding preset trigger condition; Acquire a logical connection relationship between each trigger condition, and when the trigger condition is satisfied according to the logical connection relationship, trigger an action preset in the user scenario service, and in response to the triggering action execution ending, determine that the user scenario service has completed execution; After determining the type of the scene service, the method further includes: Based on the simultaneous existence of the user scenario service and the general scenario service, when their respective actions are triggered at the same time; In response to a trigger condition of the user scenario service being met and the general scenario service being executed, interrupting the execution of the general scenario service and executing the user scenario service; In response to a trigger condition of the general scenario service being met and the user scenario service being executed, the execution of the general scenario service is prohibited.

2. The method according to claim 1, characterized in that The monitoring of whether at least one preset state in the first logic scenario satisfies a corresponding preset trigger condition includes: By using the preset triggers corresponding to each state, each corresponding state is monitored to see whether it meets the corresponding trigger condition.

3. The method according to claim 1, characterized in that When the trigger condition is satisfied according to the logical connection relationship, triggering the action preset in the first logical scenario includes: When the logical connection relationship is an OR relationship, in response to any trigger condition for executing the logical connection relationship being satisfied by the corresponding state, at least one action is triggered in sequence according to a preset action sequence; When the logical connection relationship is an and relationship, in response to all triggering conditions for executing the logical connection relationship being satisfied by the corresponding states, the at least one action is triggered in sequence according to a preset action sequence.

4. The method according to claim 1, characterized in that: After all the logical plots in series are executed, the method further includes: In response to pointing to any child logic script when the logic scenario execution ends, executing the logic scenario in the pointed child logic script; In response to the completion of execution of the logic plot in the child logic script or the interruption of execution, and not pointing to other child logic scripts, it is determined that the general scenario service containing the child logic script has completed execution.

5. A scene service execution device, characterized in that: include: Scenario start module, plot execution module and serial execution module; The scene start module is configured to determine the type of the scene service, and in response to determining that the scene service is a general scene service that executes fixed content, monitor whether at least one preset state in the first logic plot satisfies the corresponding preset trigger condition in the first-level logic script of the general scene service; The scenario execution module is configured to obtain the logical connection relationship between the trigger conditions in the first logic scenario, trigger the action preset in the first logic scenario when the trigger condition is satisfied according to the logical connection relationship, terminate the execution of the first logic scenario in response to the triggered action, and determine whether to connect other logic scenarios in series; The serial execution module is configured to, in response to determining that other logic plots are serially connected, sequentially execute the other logic plots in the order of serial connection until all the serially connected logic plots are executed or the execution is interrupted, and does not point to other sub-level logic scripts; After determining the type of the scene service, the method further includes: In response to determining that the scenario service is a user scenario service for executing customized editing content, monitoring whether at least one preset state satisfies a respective corresponding preset trigger condition; Acquire a logical connection relationship between each trigger condition, and when the trigger condition is satisfied according to the logical connection relationship, trigger an action preset in the user scenario service, and in response to the triggering action execution ending, determine that the user scenario service has completed execution; After determining the type of the scene service, the method further includes: Based on the simultaneous existence of the user scenario service and the general scenario service, when their respective actions are triggered at the same time; In response to a trigger condition of the user scenario service being met and the general scenario service being executed, interrupting the execution of the general scenario service and executing the user scenario service; In response to a trigger condition of the general scenario service being met and the user scenario service being executed, the execution of the general scenario service is prohibited.

6. An electronic device comprising a memory, a processor, and a computer program stored in the memory and executable by the processor, characterized in that: When the processor executes the computer program, the method according to any one of claims 1 to 4 is implemented.

7. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores computer instructions, and the computer instructions are used to make a computer execute the method according to any one of claims 1 to 4.

8. A vehicle, characterized in that: It includes the execution device of the scene service as described in claim 5 or the electronic device as described in claim 6.

Citation Information

Patent Citations

  • Computer controlled amplifier and speaker system with power conservation feature

    CN101336009A

  • Scene trigger method, device and equipment as well as storage medium

    CN112061050A