Scenario control method and apparatus, electronic device, and storage medium
By introducing scene cards into electronic devices to control multiple scene services, the issues of transparency, contextual interference, and security risks in automatic scene triggering are resolved, thereby improving the intuitiveness of scene control and user experience.
Patent Information
- Authority / Receiving Office
- WO · WO
- Patent Type
- Applications
- Current Assignee / Owner
- GUANGDONG OPPO MOBILE TELECOMMUNICATIONS CORP LTD
- Filing Date
- 2025-12-03
- Publication Date
- 2026-07-16
AI Technical Summary
In existing technologies, the automatic triggering of scenarios by electronic devices lacks transparency, suffers from contextual interference, lacks flexibility, and poses safety hazards, especially in driving scenarios where it may affect user experience and safety.
By introducing scene cards into scene linkage, the execution of some or all of multiple scene services can be controlled, improving the intuitiveness and operability of scene control. The decentralized architecture enables each device to have autonomy and flexibility.
It improves the transparency, user-friendliness, and security of scene control, ensures that scene triggers match the user context, reduces unnecessary service interference, and enhances the user experience.
Smart Images

Figure CN2025139752_16072026_PF_FP_ABST
Abstract
Description
Scene control methods, devices, electronic equipment, and storage media
[0001] Cross-references to related applications
[0002] This application claims priority to Chinese application No. CN2025100526570, filed on January 13, 2025, the entire contents of which are incorporated herein by reference for all purposes. Technical Field
[0003] This application relates to the field of electronic equipment technology, and more specifically, to a scene control method, apparatus, electronic device, and storage medium. Background Technology
[0004] With the development of science and technology, electronic devices are becoming increasingly widespread and multifunctional, becoming an essential part of people's daily lives. The popularity of electronic devices has changed people's lifestyles to some extent, providing users with intelligent scenarios through single or multiple interconnected devices, such as napping in the car, leaving home, and returning home. Summary of the Invention
[0005] In view of the above problems, this application proposes a scene control method, device, electronic device, and storage medium to solve the above problems.
[0006] In a first aspect, embodiments of this application provide a scene control method, the method comprising: if it is detected that the current scene meets the scene triggering conditions of a specified scene, then determining scene orchestration information of the specified scene, wherein the scene orchestration information includes multiple scene services, scene cards, a triggering order between the multiple scene services and the scene cards, a card-dispensing device corresponding to the scene card, and one or more execution devices corresponding to the multiple scene services, the scene card being used to control the execution of some or all of the services among the multiple scene services; displaying the scene card through the card-dispensing device according to the triggering order, and executing the multiple scene services through the one or more execution devices.
[0007] Secondly, embodiments of this application provide a scene control device, the device comprising: a scene arrangement information determination module, configured to determine scene arrangement information of a specified scene if it is detected that the current scene meets the scene triggering conditions of a specified scene, wherein the scene arrangement information includes multiple scene services, scene cards, a triggering order between the multiple scene services and the scene cards, a card dispensing device corresponding to the scene card, and one or more execution devices corresponding to the multiple scene services, the scene cards being used to control the execution of some or all of the multiple scene services; and a scene control module, configured to display the scene cards through the card dispensing device according to the triggering order, and to execute the multiple scene services through the one or more execution devices.
[0008] Thirdly, embodiments of this application provide an electronic device, including a memory and a processor, wherein the memory is coupled to the processor, the memory stores instructions, and when the instructions are executed by the processor, the processor performs the above-described method.
[0009] Fourthly, embodiments of this application provide a computer-readable storage medium storing program code, which can be invoked by a processor to execute the above-described method.
[0010] Fifthly, embodiments of this application provide a computer program product, the computer program product including a computer program, which, when executed by a processor, implements the above-described method. Attached Figure Description
[0011] To more clearly illustrate the technical solutions in the embodiments of this application, the accompanying drawings used in the description of the embodiments will be briefly introduced below. Obviously, the accompanying drawings described below are only some embodiments of this application. For those skilled in the art, other drawings can be obtained based on these drawings without creative effort.
[0012] Figure 1 shows a flowchart of a scene control method provided in an embodiment of this application;
[0013] Figure 2 shows a schematic diagram of the scene triggering stage provided in an embodiment of this application;
[0014] Figure 3 shows a flowchart of a scene control method provided in an embodiment of this application;
[0015] Figure 4 shows a schematic diagram of the scene card provided in an embodiment of this application;
[0016] Figure 5 shows a flowchart of a scene control method provided in an embodiment of this application;
[0017] FIG. 6 shows a schematic flowchart of a scenario control method provided by an embodiment of the present application;
[0018] FIG. 7 shows a schematic flowchart of a scenario control method provided by an embodiment of the present application;
[0019] FIG. 8 shows a schematic flowchart of a scenario control method provided by an embodiment of the present application;
[0020] FIG. 9 shows a schematic interface diagram of a scenario arrangement as a napping scenario in the vehicle provided by an embodiment of the present application;
[0021] FIG. 10 shows a schematic diagram of the principle of the scenario arrangement stage provided by an embodiment of the present application;
[0022] FIG. 11 shows a block diagram of a scenario control device provided by an embodiment of the present application;
[0023] FIG. 12 shows a block diagram of an electronic device for executing the scenario control method according to an embodiment of the present application;
[0024] FIG. 13 shows a storage unit for storing or carrying program codes for implementing the scenario control method according to an embodiment of the present application. Detailed implementation manners
[0025] In order to enable those skilled in the art of the present technology to better understand the solutions of the present application, the technical solutions in the embodiments of the present application will be clearly and completely described below with reference to the accompanying drawings in the embodiments of the present application.
[0026] The popularization of electronic devices has changed the lifestyle of the public to a certain extent. Intelligent scenarios can be provided to users through a single electronic device or in a coordinated manner of multiple electronic devices. Taking the coordinated manner of multiple electronic devices to provide intelligent scenarios as an example, when a user uses the coordinated services of multiple electronic devices in a specified scenario, it is often necessary to manually set and operate multiple electronic devices, which brings great inconvenience. Users urgently hope to obtain a seamless service experience on different electronic devices (such as mobile phones, tablets, and vehicle-mounted devices), and achieve cross-platform integration of information and functions.
[0027] In the design of a cross-terminal collaboration system (i.e., the coordinated scenario of multiple electronic devices), the coordinated scenario trigger form is an important link for realizing the coordination of multiple electronic devices. The coordinated scenario trigger is usually an automatic trigger based on a specific situation. This trigger mechanism provides an automated user experience, but there are also the following problems:
[0028] First, the transparency problem: The scenario is automatically triggered without user intervention, and the user cannot know in time which services of the electronic device are triggered by the current scenario, and the whole process lacks transparency;
[0029] Secondly, there's the issue of contextual interference: Automatic scene triggering doesn't always align with the current situation. Due to a lack of complete contextual awareness, inappropriate automatic triggering can disrupt a user's normal activities in specific scenarios. For example, in a car nap scenario, assuming the trigger condition is getting into the car between 12:00 and 13:00 on a weekday, actions like turning on the air conditioning, adjusting the seat, and activating the smartphone's "Do Not Disturb" function might occur. However, if there's an emergency requiring the user to drive to a location at noon on a weekday, these services triggered after getting into the car could severely disrupt the user's activities.
[0030] Third, the issue of scenario flexibility: If, in certain scenarios, users want only some services to be executed, rather than all services, then a completely new scenario needs to be rearranged.
[0031] Fourth, safety hazards: In the automatic triggering mechanism of cross-terminal collaboration between smartphones and vehicle devices, if special circumstances such as driving scenarios are not fully considered, and there is a lack of reasonable design and restrictions on the timing and content of the triggering, it is very likely to bring serious safety hazards to drivers and threaten personal safety and road traffic safety.
[0032] To address the aforementioned problems, the inventors, through extensive research, discovered and proposed the scene control method, apparatus, electronic device, and storage medium provided in the embodiments of this application. By adding scene cards in scene linkage, the execution of some or all services in multiple scene services can be triggered, thereby improving the intuitiveness and operability of scene control and enhancing the user experience. The specific scene control method will be described in detail in subsequent embodiments.
[0033] Among them, cards, as an emerging information presentation and interaction medium in the field of electronic device interaction, have many significant advantages in single-device or cross-device scenario triggering. From the perspective of information presentation, proactively pushing scenario-related cards at appropriate times allows users to clearly understand available scenarios and services, enhancing the intuitiveness and operability of scenario control. In terms of interactivity, cards provide convenient operation entry points, allowing users to operate directly on the card, with scenario execution achieved by the user with a single click, without needing to navigate through multiple levels of menus. In addition, cards have good adaptability and customizability; they can adaptively adjust to ensure a high-quality user experience across various electronic devices. For example, cards on smartphones may focus more on concise information display and quick operation, while cards on in-vehicle devices can present key information with larger icons and more prominent displays, based on driving safety principles.
[0034] This application fully leverages the advantages of cards, focusing on collaborative scenarios triggered by cards on single or cross-device devices. It utilizes a card-issuing mechanism to improve the efficiency and user experience of scenario collaboration, enhance the interactivity and intelligence of scenario control, and address the shortcomings of current scenario triggering modes in single-end and cross-end systems, thereby achieving accurate and intelligent scenario triggering.
[0035] Please refer to Figure 1, which shows a flowchart of a scene control method provided in an embodiment of this application. This method is used to enhance the intuitiveness and operability of scene control and improve the user experience by adding scene cards in scene linkage to trigger the execution of some or all services in multiple scene services. In a specific embodiment, this scene control method is applied to the scene control device 200 shown in Figure 11 and the electronic device 100 (Figure 12) configured with the scene control device 200. The specific flow of this embodiment will be described below using an electronic device as an example. Of course, it is understood that the electronic device used in this embodiment may include smartphones, tablets, in-vehicle systems, wearable devices, etc., and is not limited here. The flow shown in Figure 1 will be described in detail below. The scene control method specifically includes the following steps:
[0036] Step S110: If the current scene is detected to meet the scene triggering conditions of the specified scene, the scene orchestration information of the specified scene is determined. The scene orchestration information includes multiple scene services, scene cards, the triggering order between the multiple scene services and the scene cards, the card issuing device corresponding to the scene card, and one or more execution devices corresponding to the multiple scene services. The scene card is used to control the execution of some or all of the services in the multiple scene services.
[0037] The number of electronic devices involved in different specified scenarios varies. For example, some specified scenarios may only involve the linkage of multiple scenario services in a single electronic device. In this case, the intelligent scenario can be provided to the user through only one electronic device. On the other hand, some specified scenarios may involve the linkage of multiple scenario services in multiple electronic devices. In this case, the intelligent scenario needs to be provided to the user through the linkage of multiple electronic devices.
[0038] As an example, when a specified scenario involves the linkage of multiple scenario services in a single electronic device, these multiple scenario services can be provided by the in-vehicle infotainment system, such as providing scenario services for turning on the car's air conditioning and adjusting the car's seats; these multiple scenario services can also be provided by a smartphone, such as providing scenario services for turning on the phone's music and turning on the phone's "Do Not Disturb" function. When a specified scenario involves the linkage of multiple scenario services in multiple electronic devices, these multiple scenario services can be handled simultaneously by both a smartphone and an in-vehicle infotainment system. For example, the in-vehicle infotainment system can provide scenario services for turning on the car's air conditioning and adjusting the car's seats, while the smartphone can provide the scenario service for turning on the phone's "Do Not Disturb" function.
[0039] Of course, electronic devices that can provide scene services can also include other devices, such as smart TVs, smart air conditioners, smart curtains, tablets, etc., without limitation here.
[0040] Optionally, the specified scenarios may include scenarios such as a nap in the car, leaving home, returning home, and relaxing indoors. Taking a nap in the car as an example, the multiple services included in this scenario might include: turning on the vehicle's air conditioning, adjusting the vehicle's seat, and activating the "Do Not Disturb" function on the phone. In this case, the electronic devices involved in the specified scenario include both in-vehicle devices and smartphones. This scenario involves the linkage of multiple scenario services across multiple electronic devices, making it a cross-platform scenario. Taking a relaxing indoors scenario as another example, the multiple services included in this scenario might include: playing soft music on the phone and activating the "Do Not Disturb" function on the phone. In this case, the electronic devices involved in the specified scenario only include smartphones. This scenario involves the linkage of multiple scenario services on a single electronic device, making it a single-platform scenario.
[0041] In this embodiment, a specified scene can be obtained through scene orchestration. For example, a specified scene can be orchestrated by an electronic device during factory settings or during use. Accordingly, a specified scene can correspond to scene orchestration information, which may include the scene triggering conditions of the specified scene, multiple scene services included in the specified scene, scene cards included in the specified scene, the triggering order between the multiple scene services and scene cards, the card dispensing device corresponding to the scene card, and one or more execution devices corresponding to the multiple scene services.
[0042] As an example, let's take a short nap in a car as an example:
[0043] The scene arrangement information for the onboard nap scene includes the following scene trigger conditions: boarding the bus between 12:00 and 13:00 on weekdays.
[0044] The scene arrangement information for the in-vehicle nap scenario includes multiple scene services such as: turning on the vehicle's air conditioning, adjusting the vehicle's seat, and enabling the phone's do-not-disturb mode.
[0045] The scene arrangement information for the onboard rest scene can include scene cards that serve as carriers for information presentation and interaction, and can be used to control the execution of some or all services in multiple scene services.
[0046] The scene arrangement information for the on-board nap scene includes the triggering order between multiple scene services and scene cards. This can include: multiple scene services being triggered after scene cards, in which case the scene card controls the execution of all scene services, and the number of scene cards is one; or, scene cards being triggered after some scene services and before others, in which case the scene card controls the execution of some scene services, and the number of scene cards is one or more. When the number of scene cards is multiple, different scene cards among these multiple scene cards can be used to control the execution of different scene services among the multiple scene services.
[0047] The scene arrangement information for the in-vehicle nap scenario includes a card-dispensing device corresponding to the scene card, which can be a device for displaying the scene card and receiving user touch operations on the scene card. There can be one or more card-dispensing devices. When there is only one card-dispensing device, the scene card can be displayed and the user touch operations on the scene card can be received on that single device. When there are multiple card-dispensing devices, the scene card can be displayed on each of the multiple devices, and the user touch operations on the scene card can be received on any of the multiple devices. The card-dispensing device can include the aforementioned smartphones, in-vehicle infotainment systems, tablets, wearable devices, etc., and is not limited here.
[0048] The scene arrangement information for the in-vehicle nap scenario includes scene cards and corresponding execution devices, which can be devices used to execute the multiple scene services. Specifically, when the specified scenario is a single-terminal scenario, it indicates that multiple scene services are completed by a single electronic device. In this case, the number of execution devices is one. For example, assuming multiple scene services include turning on the vehicle's air conditioning and adjusting the vehicle's seats, the execution devices for these multiple scene services are only the vehicle's infotainment system. When the specified scenario is a multi-terminal scenario, it indicates that multiple scene services are completed by multiple electronic devices. In this case, the number of execution devices is multiple. For example, assuming multiple scene services include turning on the vehicle's air conditioning, adjusting the vehicle's seats, and turning on "Do Not Disturb" on a mobile phone, the execution devices for these multiple scene services include both the vehicle's infotainment system and a smartphone.
[0049] It is understandable that the card issuing device and the execution device can be the same device or different devices. As an example, suppose the execution device for multiple scenario services is only the in-vehicle infotainment system. In this case, the card issuing device can be the in-vehicle infotainment system, a smartphone, or a tablet. Suppose the execution devices for multiple scenario services are both in-vehicle infotainment systems and smartphones. In this case, the card issuing device can be the in-vehicle infotainment system, a smartphone, or a tablet.
[0050] In this embodiment, the current scene can be detected, and the detected current scene can be compared with the scene triggering conditions of a specified scene to determine whether the detected current scene meets the scene triggering conditions of the specified scene. If the detected current scene meets the scene triggering conditions of the specified scene, the scene arrangement information of the specified scene can be determined; if the detected current scene does not meet the scene triggering conditions of the specified scene, the scene arrangement information of the specified scene can be left undetermined.
[0051] In some implementations, the scenario triggering conditions for a specified scenario may include: time conditions matching a preset time point, geofencing detecting that a device enters or leaves a specific area, a change in device connection status, or a user performing a specified operation on a specified device, etc., which are not limited here.
[0052] As an example, suppose the specified scenario is a car nap scenario. The scenario trigger condition for this car nap scenario is boarding the car between 12:00 and 13:00 on weekdays. Therefore, if it is detected that a user boards the car between 12:00 and 13:00 on a weekday, it can be determined that the current scenario meets the scenario trigger condition for the car nap scenario, and the scenario arrangement information for the car nap scenario can be determined.
[0053] In the above example, the vehicle-mounted device can detect whether a user boards the vehicle between 12:00 and 13:00 on a weekday, and the vehicle-mounted device can execute the scene control method of this application embodiment. Alternatively, a smartphone can detect whether a user boards the vehicle between 12:00 and 13:00 on a weekday, and the smartphone can execute the scene control method of this application embodiment. That is, this application embodiment adopts a "decentralized" model for scene collaboration in single-end or multi-end scenarios. Each device has an independent and complete scene execution engine and a corresponding card engine (including card containers). This decentralized architecture gives each device autonomy, enabling any device to schedule services for other collaborative devices. This is precisely the core principle for realizing single-end or cross-end card issuance triggering.
[0054] Step S120: Display the scene card through the card dispensing device according to the triggering order, and execute the multiple scene services through the one or more execution devices.
[0055] In this embodiment, given the determined triggering order between multiple scene services and scene cards, and the determined card-dispensing device corresponding to the scene card and one or more execution devices corresponding to the multiple scene services, the scene card can be displayed through the card-dispensing device and the multiple scene services can be executed through one or more execution devices according to the triggering order.
[0056] In some implementations, given the triggering order between multiple scene services and scene cards, and the card-dispensing device corresponding to the scene card and one or more execution devices corresponding to the multiple scene services, the scene control method of the scene card for multiple scene services can be determined based on the triggering order between the multiple scene services and scene cards. This scene control method includes a complete control method or a partial control method. Based on this scene control method, the scene card is displayed through the card-dispensing device, and multiple scene services are executed through one or more execution devices. Furthermore, by arranging the triggering order of multiple scene services and scene cards, complete or partial control of multiple scene services through the scene card can be achieved, improving the intuitiveness and operability of scene control and enhancing the user experience.
[0057] As one feasible approach, please refer to Figure 2, which illustrates the principle of the scene triggering stage provided in this embodiment. As shown in Figure 2, the electronic device used to execute the scene control method of this embodiment may have a built-in parser, scheduler, and service gateway. Accordingly, the electronic device can obtain a scene description file for a specified scene (e.g., a scene DSL, i.e., a domain-specific language, which is a programming language optimized for a specific type of problem and contains higher-level abstractions; the DSL uses concepts and rules from a profession or domain), and parse the scene DSL through its built-in parser, parsing it into a behavior tree model and loading it into runtime memory. When it is detected that the current scene meets the scene triggering conditions of the specified scene, such as time conditions matching a preset time point, geofencing detecting a device entering or leaving a specific area, a change in device connection status, or a user performing a specified operation on a specified device, an event code with a unique identifier can be generated and broadcast to the scheduler. The scheduler is responsible for data management and service scheduling. After listening to the scene triggering event, it schedules the device to perform the relevant actions. The service gateway is a crucial bridge connecting the scheduler and the execution devices of service scenarios. It provides a feature-rich and standardized interface, allowing seamless access to all service resources under the account domain. The service gateway routes scheduling signals to the execution devices of the service scenarios, which then continue scheduling downstream services within the scenario. Additionally, when the scheduler detects that the next step for the model is to trigger a scene card, it can route card-related information to the user-specified card-issuing device. Upon receiving the signal and data, the card-issuing device generates a scene intent through the intent engine. After service discovery and decision-making, the intent invokes the corresponding scene card service. The engine dynamically embeds scene card information into the card template, and finally, the client-side card container renders the scene card, thus displaying it on the specified card-issuing device.
[0058] An embodiment of this application provides a scene control method that, if it detects that the current scene meets the scene triggering conditions of a specified scene, determines the scene arrangement information of the specified scene. This scene arrangement information includes multiple scene services, scene cards, the triggering order between the multiple scene services and scene cards, the card-dispensing device corresponding to the scene card, and one or more execution devices corresponding to the multiple scene services. The scene card is used to control the execution of some or all of the services among the multiple scene services. According to the triggering order, the scene card is displayed through the card-dispensing device, and multiple scene services are executed through one or more execution devices. By adding scene cards in scene linkage, the execution of some or all of the services among the multiple scene services is triggered, thereby improving the intuitiveness and operability of scene control and enhancing the user experience.
[0059] Please refer to Figure 3, which shows a flowchart of a scene control method provided in an embodiment of this application. The flowchart shown in Figure 3 will be described in detail below. The scene control method specifically includes the following steps:
[0060] Step S210: If the current scene is detected to meet the scene triggering conditions of the specified scene, then the scene orchestration information of the specified scene is determined. The scene orchestration information includes multiple scene services, scene cards, the triggering order between the multiple scene services and the scene cards, the card issuing device corresponding to the scene card, and one or more execution devices corresponding to the multiple scene services. The scene card is used to control the execution of some or all of the services in the multiple scene services.
[0061] For a detailed description of step S210, please refer to step S110, which will not be repeated here.
[0062] Step S220: If it is determined based on the triggering order that all the multiple scene services are after the scene card, then the scene card is displayed through the card dispensing device.
[0063] Optionally, the triggering order between multiple scene services and scene cards may include: multiple scene services are all after the scene card. In this case, the scene card has complete control over the multiple scene services. That is, after a scene event is triggered, the scene card is first displayed through the card dispensing device. Only after a confirmation operation acting on the scene card is detected will the multiple scene services be executed sequentially through one or more execution devices.
[0064] In this embodiment, if it is determined, based on the triggering order between multiple scene services and scene cards, that all scene services follow the scene card, then the scene card can be displayed through the card dispensing device. That is, if it is determined, based on the triggering order between multiple scene services and scene cards, that all scene services follow the scene card, it can be considered that the scene card needs to be displayed first, and the scene services should be executed only after user confirmation. Therefore, the scene card can be displayed first through the card dispensing device.
[0065] Optionally, if the card-dispensing device corresponding to the arranged scene card is an electronic device used to execute the scene control method of the present application embodiment, the scene card can be directly displayed through the electronic device used to execute the scene control method of the present application embodiment; if the card-dispensing device corresponding to the arranged scene card is not an electronic device used to execute the scene control method of the present application embodiment, the card-related information of the scene card can be routed to the card-dispensing device through the electronic device used to execute the scene control method of the present application embodiment, and the scene card can be displayed by the card-dispensing device.
[0066] Optionally, if the card-issuing device corresponding to the arranged scene card is a smartphone, the scene card can be displayed on the smartphone, and the smartphone can concisely display the scene card information to facilitate quick operation by the user; if the card-issuing device corresponding to the arranged scene card is an in-vehicle device, the scene card can be displayed on the in-vehicle device, and the in-vehicle device can present the scene card information with larger icons and in a more eye-catching manner to ensure that the user can quickly obtain key information and ensure driving safety.
[0067] In some implementations, when a scene card is displayed via a card dispensing device, the displayed scene card may include the specified scene to which the scene card belongs, the scene service controlled by the scene card, and a selection control for selecting whether to execute the scene service controlled by the scene card.
[0068] Please refer to Figure 4, which shows a schematic diagram of a scene card provided in an embodiment of this application. As shown in Figure 4, the scene card may include the specified scene to which the scene card belongs (in-vehicle nap), the scene services controlled by the scene card (air conditioning, seat, do not disturb), and a selection control (execute immediately) for selecting whether to execute the scene services controlled by the scene card.
[0069] Step S230: If a confirmation operation is detected on the scene card, the multiple scene services are executed through the one or more execution devices.
[0070] In this embodiment, during the display of a scene card via the card dispensing device, operations applied to the scene card can be detected. If a confirmation operation is detected on the scene card, it can be assumed that the user has confirmed the execution of multiple scene services controlled by that scene card. Therefore, these multiple scene services can be executed through one or more execution devices. If no confirmation operation is detected on the scene card, or if a denial operation is detected, it can be assumed that the user has confirmed not to execute the multiple scene services controlled by that scene card. Therefore, these multiple scene services can be executed without using one or more execution devices.
[0071] In some implementations, during the process of displaying scene cards through the card dispensing device, the operations applied to the scene cards can be detected in real time; the operations applied to the scene cards can be detected at preset time intervals; the operations applied to the scene cards can be detected at preset time points; or the operations applied to the scene cards can be detected according to other preset conditions, etc., without limitation.
[0072] In some implementations, the confirmation operation applied to the scene card may include: if the number of clicks of a click operation applied to the scene card reaches a number threshold, then a confirmation operation applied to the scene card can be determined; if the press duration of a press operation applied to the scene card reaches a duration threshold, then a confirmation operation applied to the scene card can be determined; if the press area of a press operation applied to the scene card reaches an area threshold, then a confirmation operation applied to the scene card can be determined; if the sliding trajectory of a swipe operation applied to the scene card meets a specified sliding trajectory, then a confirmation operation applied to the scene card can be determined, etc., without limitation.
[0073] In some implementations, the scene card includes a selection control for selecting whether to execute a scene service controlled by the scene card, and the confirmation operation on the scene card may include: if a click operation on the selection control displayed in the scene card is detected, then it is determined that a confirmation operation on the scene card has been detected.
[0074] Optionally, if the execution device corresponding to the multiple scene services arranged is an electronic device for executing the scene control method of the embodiments of this application, the multiple scene services can be directly executed through the electronic device for executing the scene control method of the embodiments of this application; if the execution device corresponding to the multiple scene services arranged is not an electronic device for executing the scene control method of the embodiments of this application, the scheduling signal can be routed to the execution device through the electronic device for executing the scene control method of the embodiments of this application to instruct the execution device to execute the corresponding multiple scene services.
[0075] Optionally, if the execution device corresponding to the multiple scheduled scenario services is an in-vehicle infotainment system, then the multiple scenario services can be executed through the in-vehicle infotainment system. For example, if the multiple scenario services include turning on the vehicle's air conditioning and adjusting the vehicle's seats, then the vehicle's air conditioning and seat adjustment can be executed through the in-vehicle infotainment system. If the execution devices corresponding to the multiple scheduled scenario services are an in-vehicle infotainment system and a smartphone, then the multiple scenario services can be executed through the in-vehicle infotainment system and the smartphone, respectively. For example, if the multiple scenario services include turning on the vehicle's air conditioning, adjusting the vehicle's seats, and enabling Do Not Disturb on the smartphone, then the vehicle's air conditioning and seat adjustment can be executed through the in-vehicle infotainment system, and Do Not Disturb can be enabled through the smartphone.
[0076] An embodiment of this application provides a scene control method that, if it detects that the current scene meets the scene triggering conditions of a specified scene, determines the scene orchestration information of the specified scene. The scene orchestration information includes multiple scene services, scene cards, the triggering order between the multiple scene services and the scene cards, the card-dispensing device corresponding to the scene card, and one or more execution devices corresponding to the multiple scene services. The scene card is used to control the execution of some or all of the services among the multiple scene services. If it is determined based on the triggering order that multiple scene services are all after the scene card, the scene card is displayed through the card-dispensing device. If a confirmation operation is detected acting on the scene card, the multiple scene services are executed through one or more execution devices. Compared to the scene control method shown in Figure 1, this embodiment further achieves complete control of the scene services by setting the triggering order of the scene services after the scene card, thereby ensuring the operability of scene control and improving the user experience.
[0077] Please refer to Figure 5, which shows a flowchart of a scene control method provided in an embodiment of this application. The flowchart shown in Figure 5 will be described in detail below. The scene control method specifically includes the following steps:
[0078] Step S310: If the current scene is detected to meet the scene triggering conditions of the specified scene, the scene orchestration information of the specified scene is determined. The scene orchestration information includes multiple scene services, scene cards, the triggering order between the multiple scene services and the scene cards, the card issuing device corresponding to the scene card, and one or more execution devices corresponding to the multiple scene services. The scene card is used to control the execution of some or all of the services in the multiple scene services.
[0079] For a detailed description of step S310, please refer to step S110, which will not be repeated here.
[0080] Step S320: If, based on the triggering order, it is determined that the plurality of scene services include a first scene service preceding the scene card and a second scene service following the scene card, then the first scene service is executed through the one or more execution devices.
[0081] Optionally, the triggering order among multiple scene services and scene cards may include: some scene services precede the scene card, while others follow the scene card. Specifically, the first scene service precedes the scene card, and the second scene service follows the scene card. In this case, the scene card provides partial control over the multiple scene services; that is, after a scene event is triggered, some scene services are executed first before the scene card appears, and subsequent services are executed only after user confirmation.
[0082] In this embodiment, if, based on the triggering order among multiple scene services and scene cards, it is determined that the first scene service among the multiple scene services precedes the scene card, and the second scene service among the multiple scene services follows the scene card, then the first scene service can be executed through one or more execution devices. That is, if, based on the triggering order among multiple scene services and scene cards, it is determined that the first scene service precedes the scene card, it can be considered that the execution of the first scene service needs to be performed first, and the scene card should be displayed only after its execution is completed. Therefore, the first scene service can be executed first through one or more execution devices.
[0083] Optionally, if the execution device corresponding to the programmed first scene service is an electronic device for executing the scene control method of the present application embodiment, the first scene service can be directly executed through the electronic device for executing the scene control method of the present application embodiment; if the execution device corresponding to the programmed first scene service is not an electronic device for executing the scene control method of the present application embodiment, the scheduling signal can be routed to the execution device through the electronic device for executing the scene control method of the present application embodiment to instruct the execution device to execute the corresponding first scene service.
[0084] Optionally, if the execution device corresponding to the programmed first scenario service is an in-vehicle infotainment system, the first scenario service can be executed through the in-vehicle infotainment system. For example, if the first scenario service includes turning on the vehicle's air conditioning and adjusting the vehicle's seats, the vehicle's air conditioning and seat adjustment can be executed through the in-vehicle infotainment system. If the execution device corresponding to the programmed first scenario service is both an in-vehicle infotainment system and a smartphone, the first scenario service can be executed through the in-vehicle infotainment system and the smartphone, respectively. For example, if the first scenario service includes turning on the vehicle's air conditioning, adjusting the vehicle's seats, and enabling Do Not Disturb on the smartphone, the vehicle's air conditioning and seat adjustment can be executed through the in-vehicle infotainment system, and Do Not Disturb can be enabled through the smartphone.
[0085] Step S330: If the first scene service is completed, the scene card is displayed through the card dispensing device.
[0086] In this embodiment, when the first scene service is executed through one or more execution devices, the execution status of the first scene service can be detected. The execution status of the first scene service can include whether the first scene service has been completed or not (including execution failure and execution in progress). Since the scene card triggering order is between the first scene service and the second scene service, if the completion of the first scene service is detected, the scene card can be displayed through the card dispensing device.
[0087] Optionally, if the card-dispensing device corresponding to the arranged scene card is an electronic device used to execute the scene control method of the present application embodiment, the scene card can be directly displayed through the electronic device used to execute the scene control method of the present application embodiment; if the card-dispensing device corresponding to the arranged scene card is not an electronic device used to execute the scene control method of the present application embodiment, the card-related information of the scene card can be routed to the card-dispensing device through the electronic device used to execute the scene control method of the present application embodiment, and the scene card can be displayed by the card-dispensing device.
[0088] Optionally, if the card-issuing device corresponding to the arranged scene card is a smartphone, the scene card can be displayed on the smartphone, and the smartphone can concisely display the scene card information to facilitate quick operation by the user; if the card-issuing device corresponding to the arranged scene card is an in-vehicle device, the scene card can be displayed on the in-vehicle device, and the in-vehicle device can present the scene card information with larger icons and in a more eye-catching manner to ensure that the user can quickly obtain key information and ensure driving safety.
[0089] In some implementations, when a scene card is displayed via a card dispensing device, the displayed scene card may include the specified scene to which the scene card belongs, the scene service controlled by the scene card, and a selection control for selecting whether to execute the scene service controlled by the scene card.
[0090] Step S340: If a confirmation operation is detected on the scene card, the second scene service is executed through the one or more execution devices.
[0091] In this embodiment, during the display of a scene card via the card dispensing device, operations applied to the scene card can be detected. If a confirmation operation is detected on the scene card, it can be assumed that the user has confirmed the execution of the second scene service controlled by that scene card. Therefore, the second scene service can be executed through one or more execution devices. If no confirmation operation is detected on the scene card, or if a denial operation is detected, it can be assumed that the user has confirmed not to execute the second scene service controlled by that scene card. Therefore, the second scene service can be executed without using one or more execution devices.
[0092] In some implementations, during the process of displaying scene cards through the card dispensing device, the operations applied to the scene cards can be detected in real time; the operations applied to the scene cards can be detected at preset time intervals; the operations applied to the scene cards can be detected at preset time points; or the operations applied to the scene cards can be detected according to other preset conditions, etc., without limitation.
[0093] In some implementations, the confirmation operation applied to the scene card may include: if the number of clicks of a click operation applied to the scene card reaches a number threshold, then a confirmation operation applied to the scene card can be determined; if the press duration of a press operation applied to the scene card reaches a duration threshold, then a confirmation operation applied to the scene card can be determined; if the press area of a press operation applied to the scene card reaches an area threshold, then a confirmation operation applied to the scene card can be determined; if the sliding trajectory of a swipe operation applied to the scene card meets a specified sliding trajectory, then a confirmation operation applied to the scene card can be determined, etc., without limitation.
[0094] In some implementations, the scene card includes a selection control for selecting whether to execute a scene service controlled by the scene card, and the confirmation operation on the scene card may include: if a click operation on the selection control displayed in the scene card is detected, then it is determined that a confirmation operation on the scene card has been detected.
[0095] Optionally, if the execution device corresponding to the programmed second scene service is an electronic device for executing the scene control method of the present application embodiment, the second scene service can be directly executed through the electronic device for executing the scene control method of the present application embodiment; if the execution device corresponding to the programmed second scene service is not an electronic device for executing the scene control method of the present application embodiment, the scheduling signal can be routed to the execution device through the electronic device for executing the scene control method of the present application embodiment to instruct the execution device to execute the corresponding second scene service.
[0096] Optionally, if the execution device corresponding to the programmed second scenario service is an in-vehicle infotainment system, the second scenario service can be executed through the in-vehicle infotainment system. For example, if the second scenario service includes playing music in the vehicle, the in-vehicle infotainment system can be used to execute playing music in the vehicle. If the execution device corresponding to the programmed second scenario service is both an in-vehicle infotainment system and a smartphone, the second scenario service can be executed through the in-vehicle infotainment system and the smartphone, respectively. For example, if multiple scenario services include playing music in the vehicle and turning on an alarm clock on the smartphone, the in-vehicle infotainment system can be used to execute turning on music in the vehicle, and the smartphone can be used to execute turning on the alarm clock.
[0097] An embodiment of this application provides a scene control method that, if it detects that the current scene meets the scene triggering conditions of a specified scene, determines the scene arrangement information of the specified scene. The scene arrangement information includes multiple scene services, scene cards, the triggering order between the multiple scene services and the scene cards, the card-dispensing device corresponding to the scene card, and one or more execution devices corresponding to the multiple scene services. The scene card is used to control the execution of some or all of the services among the multiple scene services. If, based on the triggering order, it is determined that there is a first scene service preceding the scene card and a second scene service following the scene card, then the first scene service is executed through one or more execution devices. If the first scene service is completed, the scene card is displayed through the card-dispensing device. If a confirmation operation is detected acting on the scene card, then the second scene service is executed through one or more execution devices. Compared to the scene control method shown in Figure 1, this embodiment also sets the triggering order of the scene cards among the multiple scene services, enabling the scene cards to partially control the scene services, thereby ensuring the operability of scene control and improving the user experience.
[0098] Please refer to Figure 6, which shows a flowchart of a scene control method provided in an embodiment of this application. The flowchart shown in Figure 6 will be described in detail below. The scene control method specifically includes the following steps:
[0099] Step S410: If the current scene is detected to meet the scene triggering conditions of the specified scene, then the scene orchestration information of the specified scene is determined. The scene orchestration information includes multiple scene services, scene cards, the triggering order between the multiple scene services and the scene cards, the card issuing device corresponding to the scene card, and one or more execution devices corresponding to the multiple scene services. The scene card is used to control the execution of some or all of the services in the multiple scene services.
[0100] For a detailed description of step S410, please refer to step S110, which will not be repeated here.
[0101] Step S420: Determine the card-related information corresponding to the scene card.
[0102] In this embodiment, the card-related information corresponding to the scene card can be determined. Optionally, the card-related information may include the specified scene corresponding to the scene card, the scene service controlled by the scene card, the card issuing device corresponding to the scene card, the triggering order corresponding to the scene card, etc., which are not limited here.
[0103] Step S430: According to the triggering order, synchronize the card-related information to the card dispensing device, so that the card-related information is filled into the card template and rendered and displayed by the card dispensing device, and execute the multiple scene services by the one or more execution devices.
[0104] In this embodiment, once the card-related information corresponding to the scene card is determined, the card-related information can be synchronized to the card-dispensing device. The card-dispensing device then fills the card-related information into the card template, renders it, and displays it. It is understood that the scene card content ultimately displayed in this embodiment is dynamically generated by template filling during the scene triggering phase, rather than a pre-designed scene card. Therefore, adaptive display can be implemented for different devices. For example, when the card-dispensing device is a smartphone, the focus can be on concise information display and quick operation. When the card-dispensing device is an in-vehicle device, key information can be presented with larger icons and a more prominent display method, based on driving safety principles, thereby improving the scene card display effect.
[0105] In some implementations, when the next step is determined to be a scene card trigger based on the trigger sequence, the card-related information corresponding to the scene card can be determined and routed to the user-specified card dispensing device. After receiving the signal and data, the card dispensing device generates a scene intent through the intent engine. After the intent goes through the service discovery and service decision-making stages, it calls the corresponding scene card service. The engine dynamically embeds scene card information into the card template, and finally, the scene card is rendered by the on-device card container, thereby enabling the scene card to be displayed on the card dispensing device.
[0106] In some implementations, during the display of scene cards via the card-dispensing device, the scene cards can support click events. After a user clicks a scene card, the card engine can transmit the click event, carrying the scene card's unique ID, to the host application (here, the execution engine). Upon receiving this event, the engine can proactively report the scene card click event code. After the scheduler listens for this, it continues to call downstream services, thereby enabling the scene card to trigger the execution of collaborative scene services.
[0107] An embodiment of this application provides a scene control method that, if it detects that the current scene meets the scene triggering conditions of a specified scene, determines the scene orchestration information of the specified scene. The scene orchestration information includes multiple scene services, scene cards, the triggering order between the multiple scene services and scene cards, the card-issuing device corresponding to the scene card, and one or more execution devices corresponding to the multiple scene services. The scene card is used to control the execution of some or all of the services among the multiple scene services. The method determines the card-related information corresponding to the scene card, synchronizes the card-related information to the card-issuing device according to the triggering order, fills the card-related information into a card template through the card-issuing device, renders it, and displays it. It also executes multiple scene services through one or more execution devices. Compared to the scene control method shown in Figure 1, this embodiment also dynamically generates the scene card content by filling the template during the scene triggering stage, ensuring the universality and adaptability of the scene card display.
[0108] Please refer to Figure 7, which shows a flowchart of a scene control method provided in an embodiment of this application. The flowchart shown in Figure 7 will be described in detail below. The scene control method specifically includes the following steps:
[0109] Step S510: If the current scene is detected to meet the scene triggering conditions of the specified scene, the scene orchestration information of the specified scene is determined. The scene orchestration information includes multiple scene services, scene cards, the triggering order between the multiple scene services and the scene cards, the card issuing device corresponding to the scene card, and one or more execution devices corresponding to the multiple scene services. The scene card is used to control the execution of some or all of the services in the multiple scene services.
[0110] Step S520: Display the scene card through the card dispensing device according to the triggering order, and execute the multiple scene services through the one or more execution devices.
[0111] For a detailed description of steps S510-S520, please refer to steps S110-S120, which will not be repeated here.
[0112] Step S530: If the scene card meets the exit display conditions, then the scene card is de-displayed on the card dispensing device.
[0113] In the operation of collaborative scenarios, since the triggering of scenarios has specific time requirements, the scenario cards closely associated with them should also be equipped with a complete and efficient exit mechanism. The life cycle of the scenario card corresponds to the life cycle of the scenario intent. When the scenario intent exits, it is passed through layers and finally reaches the card rendering engine, causing the corresponding scenario card to be deactivated, i.e., canceled from display.
[0114] In this embodiment, exit display conditions can be preset and stored, which serve as the basis for determining whether a scene card should exit. Therefore, in this embodiment, during the process of displaying a scene card through the card dispensing device, it can be determined whether the scene card meets the exit display conditions. If it is determined that the scene card meets the exit display conditions, the scene card can be canceled from display on the card dispensing device; if it is determined that the scene card does not meet the exit display conditions, the scene card can remain displayed on the card dispensing device.
[0115] In some implementations, if it is determined that the scene card meets the exit display conditions, the scene card can be directly de-displayed on the card dispensing device; or, if it is determined that the scene card meets the exit display conditions, the scene card can be de-displayed after the card dispensing device outputs a prompt message to inform the user that the scene card has been de-displayed. Optionally, the prompt message may include voice prompts, vibration prompts, etc., which are not limited here.
[0116] As an feasible approach, the display duration of scene cards on the card-dispensing device can be determined. If the display duration exceeds a threshold, the scene card can be removed from the card-dispensing device. This allows for setting a timeout exit mechanism. The intent engine internally sets a default time threshold (e.g., 1200 seconds). In addition, during the scene orchestration phase, users can precisely set the time threshold for specific scenes within a reasonable time range allowed by the system (e.g., between 300 and 3600 seconds), based on the characteristics of the specific scene and their own usage habits. When the intent engine generates an intent, a timer can be configured for that intent. When the timer expires beyond the time threshold, the intent engine will generate a scene exit intent.
[0117] When a scene card is initially displayed through the card dispensing device, its display duration can be tallied and compared to a timeout threshold to determine if it exceeds the threshold. If the displayed duration exceeds the threshold, the scene card has triggered a timeout exit mechanism, and its display can be canceled on the card dispensing device. If the displayed duration does not exceed the threshold, the scene card has not triggered a timeout exit mechanism, and its display can continue on the card dispensing device, with the display duration being tallied until it exceeds the timeout threshold, at which point the scene card is canceled on the card dispensing device.
[0118] In the process of counting the display duration of scene cards, if a confirmation operation is detected on the scene card, the scene service controlled by the scene card can be executed through one or more execution devices to stop counting the display duration of the scene card and cancel the display of the scene card on the card dispensing device.
[0119] As an feasible approach, if the current scene is detected to have changed from meeting the scene trigger conditions to not meeting them, the scene card will be removed from the card-issuing device. This means a mechanism can be set up to exit when conditions are not met. Within the scene's runtime, the system can continuously monitor the scene exit conditions. When events such as device disconnection (e.g., Bluetooth connection interruption, Wi-Fi connection loss) or leaving the geofence (geofence accuracy up to 10 meters) occur, the intent engine's intent reasoning is quickly triggered. After a series of logical judgments, an exit intent is generated promptly, ensuring the scene exits in a timely manner when conditions are no longer met.
[0120] When the scene card is displayed via the card dispensing device, the current scene can be continuously monitored, and compared with the scene triggering conditions of a specified scene to determine whether the current scene continues to meet the scene triggering conditions of the specified scene. Specifically, if the comparison result indicates that the current scene changes from meeting the scene triggering conditions to not meeting them during the display of the scene card on the card dispensing device, it can be determined that the scene card has triggered the condition-unmet exit mechanism, and the scene card can be removed from display on the card dispensing device. If the comparison result indicates that the current scene consistently meets the scene triggering conditions of the specified scene during the display of the scene card on the memory card device, the current scene can continue to be monitored until it is detected that the current scene changes from meeting the scene triggering conditions to not meeting them, at which point the scene card can be removed from display on the card dispensing device.
[0121] During the monitoring of the current scene, if a confirmation operation is detected on the scene card, the scene service controlled by the scene card can be executed through one or more execution devices to stop monitoring the current scene and cancel the display of the scene card on the card issuing device.
[0122] As an feasible approach, the number of times a scene card is touched during its display on the card dispensing device can be determined. If the number of touches reaches a threshold, the scene card will be removed from the display on the card dispensing device. This means a trigger-exit mechanism can be set up, where the system sets a trigger limit for each scene card. This parameter can also be configured in the scene arrangement interface (e.g., a range of 1 to 10 times). When the user triggers a scene card to this preset limit, a scene exit intention will be triggered.
[0123] During the process of displaying the scene card through the card dispensing device, the number of times the scene card is touched can be counted and compared with a threshold to determine whether the number of touches has reached the threshold. If the count of touches reaches the threshold, it can be determined that the scene card has triggered the exit mechanism exceeding the trigger limit, and the scene card can be removed from display on the card dispensing device. If the count of touches does not reach the threshold, it can be determined that the scene card has not triggered the exit mechanism exceeding the trigger limit, and the scene card can remain displayed on the card dispensing device, while the number of touches continues to be counted until the count of touches reaches the threshold, at which point the scene card is removed from display on the card dispensing device.
[0124] In the process of counting the number of times a scene card is touched, if a confirmation operation is detected on the scene card, the scene service controlled by the scene card can be executed through one or more execution devices to stop counting the number of times the scene card is touched and to cancel the display of the scene card on the card dispensing device.
[0125] An embodiment of this application provides a scene control method that, if it detects that the current scene meets the scene triggering conditions of a specified scene, determines the scene arrangement information of the specified scene. The scene arrangement information includes multiple scene services, scene cards, the triggering order between the multiple scene services and scene cards, the card-dispensing device corresponding to the scene card, and one or more execution devices corresponding to the multiple scene services. The scene card is used to control the execution of some or all of the services among the multiple scene services. According to the triggering order, the scene card is displayed through the card-dispensing device, and multiple scene services are executed through one or more execution devices. If the scene card meets the exit display conditions, the scene card is canceled from display on the card-dispensing device. Compared to the scene control method shown in Figure 1, this embodiment also sets a robust scene card exit mechanism to ensure the rationality and display effect of the scene card display.
[0126] Please refer to Figure 8, which shows a flowchart of a scene control method provided in an embodiment of this application. The flowchart shown in Figure 8 will be described in detail below. The scene control method specifically includes the following steps:
[0127] Step S610: In response to a scene orchestration event for the specified scene, display the scene orchestration interface.
[0128] In this embodiment, the user can orchestrate scenes. Optionally, the user can orchestrate scenes via smartphone, tablet, or in-vehicle infotainment system, etc., without limitation. That is, the user can operate using a unified scene orchestration interface on multiple different devices, specifying the collaborative working mode of each device in different scenes according to their own needs.
[0129] In this embodiment, the user can trigger a scene orchestration event for a specified scene, and the electronic device can respond to the scene orchestration event for the specified scene by displaying a scene orchestration interface.
[0130] In some implementations, scene arrangement events for a specific scene can be triggered by touch operations applied to scene arrangement icons; scene arrangement events for a specific scene can be triggered by voice; scene arrangement events for a specific scene can be triggered by specific touch methods applied to electronic devices, etc., without limitation.
[0131] In some implementations, the scene arrangement interface can be displayed in full screen, partially displayed, or displayed in a floating window, etc., and no limitation is made here.
[0132] Step S620: Respond to the scene arrangement operation applied to the scene arrangement interface, obtain the scene arrangement information, and obtain the specified scene based on the scene arrangement information.
[0133] In this embodiment, during the display of the scene arrangement interface, operations performed on the scene arrangement interface can be detected. Specifically, if a scene arrangement operation is detected on the scene arrangement interface, the system can respond to the scene arrangement operation, obtain scene arrangement information generated based on the scene arrangement operation, and obtain the specified scene based on the scene arrangement information.
[0134] In some implementations, during the display of the scene arrangement interface, operations applied to the scene arrangement interface can be detected in real time, at preset time intervals, at preset time points, or according to other preset conditions, etc., without limitation.
[0135] As an feasible approach, the scene orchestration interface can include an event resource pool and a service resource pool. Based on this, in response to selection operations applied to the event resource pool, the scene triggering conditions for a specified scene can be determined from the event resource pool; in response to selection operations applied to the service resource pool, multiple scene services can be determined from the service resource pool, as well as one or more execution devices corresponding to the multiple scene services; in response to card configuration operations applied to the scene orchestration interface, the triggering order between scene cards and multiple scene services, and the card-issuing device corresponding to the scene card, scene orchestration information can be obtained based on the scene triggering conditions, multiple scene services, scene cards, the triggering order between multiple scene services and scene cards, the card-issuing device corresponding to the scene card, and one or more execution devices corresponding to the multiple scene services; and the specified scene can be obtained based on the scene orchestration information.
[0136] Please refer to Figure 9, which shows a schematic diagram of the interface for a scene arrangement of a car nap scene provided in an embodiment of this application. As shown in Figure 9, on this interface, scene trigger conditions can be arranged, scene card dispensing devices and exit conditions can be arranged, scene services can be arranged, and the trigger order between scene cards and scene services can be arranged, thereby completing the arrangement of the car nap scene.
[0137] Step S630: Based on the scene arrangement information, generate a scene description file for the specified scene.
[0138] In this embodiment, upon obtaining scene orchestration information, a scene description file for a specified scene can be generated based on this information. This scene description file can elaborate on the capability invocation logic of the specified scene, including service execution order and service device mapping relationships. Optionally, the scene description file can be a scene DSL.
[0139] In some implementations, once scene orchestration information is obtained and the user confirms the scene orchestration information, UI data can be sent back to the edge orchestration engine. The DSL generator can then generate a scene DSL, i.e., a scene description file, based on the scene orchestration information sent back by the UI controls.
[0140] Step S640: Upload the scene description file and the target account to the cloud, so as to instruct the cloud to synchronize the scene description file to multiple user devices logged into the target account.
[0141] In this embodiment, upon obtaining a scene description file, the scene description file and the target account can be uploaded to the cloud, instructing the cloud to synchronize the scene description file to multiple user devices logged into the target account. These multiple user devices include the card-issuing device and the execution device.
[0142] Optionally, the target account can be used to uniquely identify the user. For example, the target account can be the user's phone number, the user's ID card number, etc., without limitation.
[0143] In some implementations, upon obtaining a scene description file, the target account logged into by the electronic device performing scene orchestration can be acquired. The scene description file and the target account are then uploaded to the cloud. The cloud acts as a hub for scene synchronization, synchronizing the scene description file to each user device through the account domain (target account). Specifically, users can log into the orchestration engine on different user devices using the target account. Each user device can then register its device information with the cloud, and the cloud can synchronize the scene description file to all user devices logged into the same account, ensuring consistency in scene orchestration content across all user devices.
[0144] In some implementations, if a scene description file is obtained, the scene description file can be verified. If the verification passes, the scene description file and the target account are uploaded to the cloud, so that the cloud can be instructed to synchronize the scene description file to multiple user devices logged into the target account.
[0145] As an feasible approach, given a scene description file, it can be validated using pre-defined rules. For example, for the scene description file, the matching between the card-issuing device and the called service, and the validity of the parameters can be verified for each scene card. If the validation passes, the scene description file and the target account are uploaded to the cloud, instructing the cloud to synchronize the scene description file to multiple user devices logged into the target account. If the validation fails, feedback is sent to the scene orchestration interface for user modification. Optionally, parameter validity can include whether the type and range of the set values are valid.
[0146] Please refer to Figure 10, which illustrates the principle of the scene orchestration stage provided in this embodiment. As shown in Figure 10, the electronic device system can pre-integrate the trigger events and service events supported by each device to form an event resource pool and a service resource pool. For example, the event resource pool includes trigger events based on device connection, time-based trigger events, geofence-based trigger events, and user operation-based trigger events; the service resource pool includes mobile phone services, vehicle-mounted services, tablet services, and other services. During the scene orchestration stage, this can be presented to the user in a visual form on the scene orchestration interface. The user can then use this interface to perform scene orchestration operations and specify the collaborative working mode of each device in different scenarios according to their needs. Furthermore, key configurations of scene cards, such as the card issuing device and card exit conditions, are also specified on the orchestration interface. By controlling the triggering order of the scene card UI module and the scene service UI module, complete or partial control of scene triggering by the scene card can be achieved.
[0147] After the user confirms the orchestration scene content, they can send the UI data back to the client-side orchestration engine. The DSL generator then generates a DSL based on the scene information returned by the UI controls. Here, the DSL is a defined scene description file that details the scene's capability invocation logic, including service execution order and service device mapping relationships. Each scene card can have a unique ID to create a one-to-one binding between the user and the scene. The orchestration logic corresponds to the actual DSL content; partial and full control are essentially achieved through the position of the scene card generated within the DSL.
[0148] After the DSL is generated, it can be validated according to pre-defined rules. For scene cards, this involves verifying whether the card-issuing device matches the called service and whether the parameters are valid. If the validation fails, feedback is sent to the orchestration interface for the user to modify. If the validation passes, the scene DSL is uploaded to the cloud scene repository, which manages scene DSLs under the same account in a unified manner. Users log in to the orchestration engine on different devices using the same account. Each device registers its information with the cloud, and the cloud synchronizes the scene DSL to all user devices under the same account domain, ensuring that the scene orchestration content is consistent across all user devices.
[0149] Step S650: If the current scene is detected to meet the scene triggering conditions of the specified scene, the scene orchestration information of the specified scene is determined. The scene orchestration information includes multiple scene services, scene cards, the triggering order between the multiple scene services and the scene cards, the card issuing device corresponding to the scene card, and one or more execution devices corresponding to the multiple scene services. The scene card is used to control the execution of some or all of the services in the multiple scene services.
[0150] Step S660: Display the scene card through the card dispensing device according to the triggering order, and execute the multiple scene services through the one or more execution devices.
[0151] For a detailed description of steps S650-S660, please refer to steps S110-S120, which will not be repeated here.
[0152] An embodiment of this application provides a scene control method that, in response to a scene orchestration event for a specified scene, displays a scene orchestration interface, responds to a scene orchestration operation acting on the scene orchestration interface, obtains scene orchestration information, obtains a specified scene based on the scene orchestration information, generates a scene description file for the specified scene based on the scene orchestration information, uploads the scene description file and the target account to the cloud, instructs the cloud to synchronize the scene description file to multiple user devices logged into the target account, and if it is detected that the current scene meets the scene triggering conditions of the specified scene, then determines the scene orchestration information of the specified scene. The scene orchestration information includes multiple scene services, scene cards, the triggering order between the multiple scene services and scene cards, the card-issuing device corresponding to the scene card, and one or more execution devices corresponding to the multiple scene services. The scene card is used to control the execution of some or all services in the multiple scene services. According to the triggering order, the scene card is displayed through the card-issuing device, and the multiple scene services are executed through one or more execution devices. Compared to the scene control method shown in Figure 1, this embodiment also supports the arrangement of scenes on the device side to improve the user's verification experience. In addition, it also supports uploading the arranged scenes to the cloud and using the account mechanism to realize cross-terminal scene synchronization and ensure smooth interaction of cross-terminal scenes.
[0153] Please refer to Figure 11, which shows a block diagram of a scene control device provided in an embodiment of this application. The block diagram shown in Figure 11 will be described below. The scene control device 200 includes: a scene arrangement information determination module 210 and a scene control module 220, wherein:
[0154] The scene orchestration information determination module 210 is used to determine the scene orchestration information of the specified scene if the current scene is detected to meet the scene triggering conditions of the specified scene. The scene orchestration information includes multiple scene services, scene cards, the triggering order between the multiple scene services and the scene cards, the card issuing device corresponding to the scene card, and one or more execution devices corresponding to the multiple scene services. The scene card is used to control the execution of some or all of the services in the multiple scene services.
[0155] Scene control module 220 is used to display the scene card through the card dispensing device according to the triggering order, and to execute the multiple scene services through the one or more execution devices.
[0156] Furthermore, the scene control module 220 includes: a first scene card display submodule and a first scene service execution submodule, wherein:
[0157] The first scene card display submodule is used to display the scene card through the card dispensing device if it is determined based on the triggering order that the multiple scene services are all after the scene card.
[0158] The first scene service execution submodule is used to execute the multiple scene services through the one or more execution devices if a confirmation operation is detected on the scene card.
[0159] Furthermore, the scene control module 220 includes: a second scene service execution submodule, a second scene card display submodule, and a third scene service execution submodule, wherein:
[0160] The second scene service execution submodule is used to execute the first scene service through the one or more execution devices if, based on the triggering order, it is determined that the plurality of scene services include a first scene service preceding the scene card and a second scene service following the scene card.
[0161] The second scene card display submodule is used to display the scene card through the card dispensing device if the first scene service is completed.
[0162] The third scene service execution submodule is used to execute the second scene service through the one or more execution devices if a confirmation operation is detected on the scene card.
[0163] Furthermore, the scene control module 220 includes: a card-related information determination submodule and a card-related information synchronization submodule, wherein:
[0164] The card-related information determination submodule is used to determine the card-related information corresponding to the scene card.
[0165] Furthermore, the card-related information determination submodule includes: a scene service determination unit and a card-related information determination unit, wherein:
[0166] A scene service determination unit is used to determine which of the plurality of scene services is executed by the scene card.
[0167] The card-related information determination unit is used to determine the card-related information corresponding to the scene card based on the execution of the scene service controlled by the scene card.
[0168] The card-related information synchronization submodule is used to synchronize the card-related information to the card dispensing device, so that the card-related information can be filled into the card template and rendered and displayed by the card dispensing device.
[0169] Furthermore, the scene control device 200 also includes: a scene card cancellation display module, wherein:
[0170] The scene card cancellation display module is used to cancel the display of the scene card on the card dispensing device if the scene card meets the exit display conditions.
[0171] Furthermore, the scene card cancellation display module includes: a display duration determination submodule and a first scene card cancellation display submodule, wherein:
[0172] The display duration determination submodule is used to determine the display duration of the scene card on the card dispensing device.
[0173] The first scene card cancellation display submodule is used to cancel the display of the scene card on the card dispensing device if the display duration exceeds the duration threshold.
[0174] Furthermore, the scene card cancellation display module includes: a second scene card cancellation display submodule, wherein:
[0175] The second scene card cancellation display submodule is used to cancel the display of the scene card on the card dispensing device if it is detected that the current scene has changed from meeting the scene triggering conditions to not meeting the scene triggering conditions.
[0176] Furthermore, the scene card cancellation display module includes: a touch count determination submodule and a third scene card cancellation display submodule, wherein:
[0177] The touch count determination submodule is used to determine the number of times the scene card is touched during the process of being displayed in the card dispensing device.
[0178] The third scene card cancellation display submodule is used to cancel the display of the scene card on the card dispensing device if the number of touches reaches a threshold.
[0179] Furthermore, the scene control device 200 also includes: a scene arrangement interface display module and a specified scene acquisition module, wherein:
[0180] The scene arrangement interface display module is used to display the scene arrangement interface in response to a scene arrangement event for the specified scene.
[0181] The specified scene acquisition module is used to respond to the scene arrangement operation applied to the scene arrangement interface, obtain the scene arrangement information, and obtain the specified scene based on the scene arrangement information.
[0182] Furthermore, the scene orchestration interface includes an event resource pool and a service resource pool, and the specified scene acquisition module includes: a scene trigger condition determination submodule, a scene service determination submodule, a scene card determination submodule, and a specified scene acquisition submodule, wherein:
[0183] The scene trigger condition determination submodule is used to respond to the selection operation applied to the event resource pool and determine the scene trigger condition of the specified scene from the event resource pool.
[0184] The scenario service determination submodule is used to respond to the selection operation applied to the service resource pool, determine the plurality of scenario services from the service resource pool, and determine one or more execution devices corresponding to the plurality of scenario services.
[0185] The scene card determination submodule is used to respond to the card configuration operation applied to the scene orchestration interface, determine the scene card, the trigger order between the scene card and the multiple service scenes, and the card dispensing device corresponding to the scene card.
[0186] The specified scene acquisition submodule is used to obtain the scene orchestration information based on the scene triggering conditions, the multiple scene services, the scene card, the triggering order between the multiple scene services and the scene card, the card issuing device corresponding to the scene card, and one or more execution devices corresponding to the multiple scene services, and obtain the specified scene based on the scene orchestration information.
[0187] Furthermore, the scene control device 200 also includes: a scene description file generation module and a hybrid scene synchronization module, wherein:
[0188] The scene description file generation module is used to generate a scene description file for the specified scene based on the scene arrangement information.
[0189] The scene synchronization module is used to upload the scene description file and the target account to the cloud, so as to instruct the cloud to synchronize the scene description file to multiple user devices logged into the target account.
[0190] Furthermore, the scene synchronization module includes: a verification submodule and a scene synchronization submodule, wherein:
[0191] The verification submodule is used to verify the scene description file.
[0192] The scene synchronization submodule is used to upload the scene description file and the target account to the cloud if the verification passes, so as to instruct the cloud to synchronize the scene description file to multiple user devices logged into the target account.
[0193] Those skilled in the art will clearly understand that, for the sake of convenience and brevity, the specific working process of the above-described device and module can be referred to the corresponding process in the foregoing method embodiments, and will not be repeated here.
[0194] In the several embodiments provided in this application, the coupling between modules can be electrical, mechanical, or other forms of coupling.
[0195] Furthermore, the functional modules in the various embodiments of this application can be integrated into one processing module, or each module can exist physically separately, or two or more modules can be integrated into one module. The integrated modules described above can be implemented in hardware or as software functional modules.
[0196] Please refer to Figure 12, which shows a structural block diagram of an electronic device 100 provided in an embodiment of this application. The electronic device 100 can be a smartphone, tablet computer, e-reader, or other electronic device capable of running applications. The electronic device 100 in this application may include one or more of the following components: a processor 110, a memory 120, and one or more applications, wherein the one or more applications can be stored in the memory 120 and configured to be executed by one or more processors 110, and the one or more applications are configured to perform the methods described in the foregoing method embodiments.
[0197] The processor 110 may include one or more processing cores. The processor 110 connects to various parts of the electronic device 100 via various interfaces and lines, and performs various functions and processes data of the electronic device 100 by running or executing instructions, programs, code sets, or instruction sets stored in the memory 120, and by calling data stored in the memory 120. Optionally, the processor 110 may be implemented using at least one hardware form of Digital Signal Processing (DSP), Field-Programmable Gate Array (FPGA), or Programmable Logic Array (PLA). The processor 110 may integrate one or a combination of several of the following: Central Processing Unit (CPU), Graphics Processing Unit (GPU), and modem. The CPU primarily handles the operating system, user interface, and applications; the GPU is responsible for rendering and drawing the content to be displayed; and the modem handles wireless communication. It is understood that the modem may also not be integrated into the processor 110 and may be implemented separately through a communication chip.
[0198] The memory 120 may include random access memory (RAM) or read-only memory (ROM). The memory 120 can be used to store instructions, programs, code, code sets, or instruction sets. The memory 120 may include a program storage area and a data storage area. The program storage area may store instructions for implementing an operating system, instructions for implementing at least one function (such as touch functionality, sound playback functionality, image playback functionality, etc.), and instructions for implementing the various method embodiments described below. The data storage area may also store data created by the electronic device 100 during use (such as phonebook data, audio and video data, chat log data, etc.).
[0199] Please refer to Figure 13, which shows a structural block diagram of a computer-readable storage medium provided in an embodiment of this application. The computer-readable medium 300 stores program code that can be called by a processor to execute the methods described in the above method embodiments.
[0200] The computer-readable storage medium 300 may be an electronic memory such as flash memory, EEPROM (Electrically Erasable Programmable Read-Only Memory), EPROM, hard disk, or ROM. Optionally, the computer-readable storage medium 300 includes a non-transitory computer-readable storage medium. The computer-readable storage medium 300 has storage space for program code 310 that performs any of the method steps described above. This program code can be read from or written to one or more computer program products. The program code 310 may be compressed, for example, in a suitable form.
[0201] One embodiment of this application provides a computer program product, which includes a computer program that, when executed by a processor, implements the above-described scene control method.
[0202] In summary, the scene control method, device, electronic device, and storage medium provided in this application, if the current scene is detected to meet the scene triggering conditions of a specified scene, determine the scene arrangement information of the specified scene. This scene arrangement information includes multiple scene services, scene cards, the triggering order between the multiple scene services and scene cards, the card-dispensing device corresponding to the scene card, and one or more execution devices corresponding to the multiple scene services. The scene card is used to control the execution of some or all of the services among the multiple scene services. According to the triggering order, the scene card is displayed through the card-dispensing device, and multiple scene services are executed through one or more execution devices. Furthermore, by adding scene cards in scene linkage, the execution of some or all of the services among the multiple scene services is triggered, thereby improving the intuitiveness and operability of scene control and enhancing the user experience.
[0203] Finally, it should be noted that the above embodiments are only used to illustrate the technical solutions of this application, and are not intended to limit them. Although this application has been described in detail with reference to the foregoing embodiments, those skilled in the art should understand that modifications can still be made to the technical solutions described in the foregoing embodiments, or equivalent substitutions can be made to some of the technical features. Such modifications or substitutions do not cause the essence of the corresponding technical solutions to deviate from the spirit and scope of the technical solutions of the embodiments of this application.
Claims
1. A scene control method, characterized in that, The method includes: If the current scene is detected to meet the scene triggering conditions of the specified scene, the scene orchestration information of the specified scene is determined. The scene orchestration information includes multiple scene services, scene cards, the triggering order between the multiple scene services and the scene cards, the card issuing device corresponding to the scene card, and one or more execution devices corresponding to the multiple scene services. The scene card is used to control the execution of some or all of the services in the multiple scene services. According to the triggering order, the scene card is displayed through the card dispensing device, and the multiple scene services are executed through the one or more execution devices.
2. The method according to claim 1, characterized in that, The step of displaying the scene card through the card-dispensing device according to the triggering order, and executing the multiple scene services through the one or more execution devices, includes: If it is determined based on the triggering order that all the multiple scene services are after the scene card, then the scene card is displayed through the card dispensing device; If a confirmation operation is detected on the scene card, the multiple scene services are executed through the one or more execution devices.
3. The method according to claim 1, characterized in that, The step of displaying the scene card through the card-dispensing device according to the triggering order, and executing the multiple scene services through the one or more execution devices, includes: If, based on the triggering order, it is determined that the plurality of scene services include a first scene service preceding the scene card and a second scene service following the scene card, then the first scene service is executed through the one or more execution devices; If the first scene service is completed, the scene card is displayed through the card dispensing device; If a confirmation operation is detected on the scene card, the second scene service is executed through the one or more execution devices.
4. The method according to claim 3, characterized in that, The scene card includes a selection control for choosing whether to execute a scene service controlled by the scene card. If a confirmation operation is detected on the scene card, the second scene service is executed through the one or more execution devices, including: If a click operation is detected on the selection control, the second scene service is executed through the one or more execution devices.
5. The method according to claim 1, characterized in that, The step of displaying the scene card through the card dispensing device includes: Determine the card-related information corresponding to the scene card; The card-related information is synchronized to the card dispensing device, so that the card-related information is filled into the card template and rendered and displayed by the card dispensing device.
6. The method according to any one of claims 1-5, characterized in that, After displaying the scene card through the card dispensing device, the method further includes: If the scene card meets the exit display conditions, the scene card will be removed from display on the card dispensing device.
7. The method according to claim 6, characterized in that, If the scene card meets the exit display condition, then canceling the display of the scene card on the card dispensing device includes: Determine the display duration of the scene card on the card dispensing device; If the display duration exceeds the duration threshold, the scene card will be canceled from display on the card dispensing device.
8. The method according to claim 6, characterized in that, If the scene card meets the exit display conditions, then canceling the display of the scene card on the card dispensing device includes: If the current scene is detected to change from meeting the scene triggering conditions to not meeting the scene triggering conditions, then the scene card will be removed from the display on the card dispensing device.
9. The method according to claim 6, characterized in that, If the scene card meets the exit display conditions, then canceling the display of the scene card on the card dispensing device includes: Determine the number of times the scene card is touched during the process of being displayed in the card dispensing device; If the number of touches reaches a threshold, the scene card will be removed from the display of the card dispensing device.
10. The method according to claim 6, characterized in that, If the scene card meets the exit display conditions, then canceling the display of the scene card on the card dispensing device includes: If the scene card meets the exit display conditions, the scene card will be canceled after the card dispensing device outputs a prompt message, wherein the prompt message is used to prompt the scene card to cancel display.
11. The method according to any one of claims 1-5, characterized in that, Before determining the scene orchestration information of the specified scene if the current scene is detected to meet the scene triggering conditions of the specified scene, the method further includes: In response to a scene orchestration event for the specified scene, the scene orchestration interface is displayed; In response to a scene arrangement operation applied to the scene arrangement interface, the system obtains the scene arrangement information and obtains the specified scene based on the scene arrangement information.
12. The method according to claim 11, characterized in that, The method further includes: Based on the scene arrangement information, a scene description file for the specified scene is generated; The scenario description file and the target account are uploaded to the cloud, instructing the cloud to synchronize the scenario description file to multiple user devices logged into the target account.
13. The method according to claim 12, characterized in that, The step of uploading the scene description file and the target account to the cloud, and instructing the cloud to synchronize the scene description file to multiple user devices logged into the target account, includes: The scene description file is validated; If the verification passes, the scene description file and the target account are uploaded to the cloud, so that the cloud can synchronize the scene description file to multiple user devices logged into the target account.
14. The method according to claim 11, characterized in that, The scene orchestration interface includes an event resource pool and a service resource pool. The response acts on the scene orchestration operation of the scene orchestration interface to obtain the scene orchestration information, and obtains the specified scene based on the scene orchestration information, including: In response to the selection operation applied to the event resource pool, the scene triggering conditions for the specified scene are determined from the event resource pool; In response to a selection operation applied to the service resource pool, determine the plurality of scenario services from the service resource pool, and determine one or more execution devices corresponding to the plurality of scenario services; In response to a card configuration operation applied to the scene orchestration interface, determine the scene card, the triggering order among the scene card and the multiple scene services, and the card dispensing device corresponding to the scene card; Based on the scene triggering conditions, the multiple scene services, the scene card, the triggering order between the multiple scene services and the scene card, the card issuing device corresponding to the scene card, and one or more execution devices corresponding to the multiple scene services, the scene orchestration information is obtained, and the specified scene is obtained based on the scene orchestration information.
15. The method according to any one of claims 1-14, characterized in that, The step of displaying the scene card through the card-dispensing device according to the triggering order, and executing the multiple scene services through the one or more execution devices, includes: Based on the triggering order, the scene control method of the scene card for the multiple scene services is determined, wherein the scene control method includes a complete control method or a partial control method; Based on the aforementioned scene control method, the scene card is displayed through the card dispensing device, and the multiple scene services are executed through the one or more execution devices.
16. The method according to any one of claims 1-14, characterized in that, The scenario triggering conditions include one or more of the following: time condition matching a preset time point, geofencing detecting a device entering or leaving a specific area, a change in device link status, and a user performing an operation on a specified device.
17. A scene control device, characterized in that, The device includes: The scene orchestration information determination module is used to determine the scene orchestration information of the specified scene if the current scene is detected to meet the scene triggering conditions of the specified scene. The scene orchestration information includes multiple scene services, scene cards, the triggering order between the multiple scene services and the scene cards, the card issuing device corresponding to the scene card, and one or more execution devices corresponding to the multiple scene services. The scene card is used to control the execution of some or all of the services in the multiple scene services. The scene control module is used to display the scene card through the card dispensing device according to the triggering order, and to execute the multiple scene services through the one or more execution devices.
18. An electronic device, characterized in that, The method includes a memory and a processor, the memory being coupled to the processor, the memory storing instructions, and the processor performing the method as described in any one of claims 1-16 when the instructions are executed by the processor.
19. A computer-readable storage medium, characterized in that, The computer-readable storage medium contains program code that can be invoked by a processor to execute the method as described in any one of claims 1-16.
20. A computer program product, characterized in that, The computer program product includes a computer program that, when executed by a processor, implements the method as described in any one of claims 1-16.