WO2022052713A1 - Interaction method and apparatus, and electronic device - Google Patents

Interaction method and apparatus, and electronic device Download PDF

Info

Publication number
WO2022052713A1
WO2022052713A1 PCT/CN2021/111751 CN2021111751W WO2022052713A1 WO 2022052713 A1 WO2022052713 A1 WO 2022052713A1 CN 2021111751 W CN2021111751 W CN 2021111751W WO 2022052713 A1 WO2022052713 A1 WO 2022052713A1
Authority
WO
WIPO (PCT)
Prior art keywords
execution
scene
item
electronic device
external device
Prior art date
Application number
PCT/CN2021/111751
Other languages
French (fr)
Chinese (zh)
Inventor
张子曰
鲍修远
Original Assignee
华为技术有限公司
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by 华为技术有限公司 filed Critical 华为技术有限公司
Publication of WO2022052713A1 publication Critical patent/WO2022052713A1/en

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/44Arrangements for executing specific programs
    • G06F9/451Execution arrangements for user interfaces
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/01Input arrangements or combined input and output arrangements for interaction between user and computer
    • G06F3/048Interaction techniques based on graphical user interfaces [GUI]
    • G06F3/0481Interaction techniques based on graphical user interfaces [GUI] based on specific properties of the displayed interaction object or a metaphor-based environment, e.g. interaction with desktop elements like windows or icons, or assisted by a cursor's changing behaviour or appearance
    • G06F3/04817Interaction techniques based on graphical user interfaces [GUI] based on specific properties of the displayed interaction object or a metaphor-based environment, e.g. interaction with desktop elements like windows or icons, or assisted by a cursor's changing behaviour or appearance using icons
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/01Input arrangements or combined input and output arrangements for interaction between user and computer
    • G06F3/048Interaction techniques based on graphical user interfaces [GUI]
    • G06F3/0481Interaction techniques based on graphical user interfaces [GUI] based on specific properties of the displayed interaction object or a metaphor-based environment, e.g. interaction with desktop elements like windows or icons, or assisted by a cursor's changing behaviour or appearance
    • G06F3/0482Interaction with lists of selectable items, e.g. menus
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/01Input arrangements or combined input and output arrangements for interaction between user and computer
    • G06F3/048Interaction techniques based on graphical user interfaces [GUI]
    • G06F3/0487Interaction techniques based on graphical user interfaces [GUI] using specific features provided by the input device, e.g. functions controlled by the rotation of a mouse with dual sensing arrangements, or of the nature of the input device, e.g. tap gestures based on pressure sensed by a digitiser
    • G06F3/0488Interaction techniques based on graphical user interfaces [GUI] using specific features provided by the input device, e.g. functions controlled by the rotation of a mouse with dual sensing arrangements, or of the nature of the input device, e.g. tap gestures based on pressure sensed by a digitiser using a touch-screen or digitiser, e.g. input of commands through traced gestures
    • G06F3/04883Interaction techniques based on graphical user interfaces [GUI] using specific features provided by the input device, e.g. functions controlled by the rotation of a mouse with dual sensing arrangements, or of the nature of the input device, e.g. tap gestures based on pressure sensed by a digitiser using a touch-screen or digitiser, e.g. input of commands through traced gestures for inputting data by handwriting, e.g. gesture or text

Definitions

  • the present application relates to the technical field of intelligent control, and in particular, to an interaction method, apparatus and electronic device.
  • APP application programs
  • the APP generally provides different scenarios for the user to choose and arrange.
  • the user can arrange the types and related parameters of the smart devices involved in the scenario according to their needs, so as to realize the control of each scene in the scenario when the scenario is triggered.
  • Smart devices implement corresponding functions.
  • the editing efficiency of the current scenes of these APPs is generally not efficient enough.
  • the present application provides an interactive method, apparatus and electronic device for improving editing efficiency.
  • an embodiment of the present application provides an interaction method, which is applied to an electronic device, including: displaying an editing interface, where the editing interface includes a trigger condition and a first execution item, and the first execution item includes a first external device and first execution content; in response to the first operation on the first execution item, the first execution item is changed to a second execution item, and the second execution item includes a second external device and a second execution content; wherein the second external The device is different from the first external device, and/or the first execution content is different from the second execution content.
  • the editing interface may be a scene editing interface or other shortcut command editing interface provided by the intelligent control function on the electronic device; the editing interface may include one or more execution items, and the first execution item may be any execution item in the editing interface. item.
  • the external devices (such as the first external device and the second external device) in the execution item represent the execution device of the execution item, which may be a smart device that establishes an association relationship with the electronic device, such as a user logging in on the electronic device.
  • the smart home device, vehicle-mounted device, or smart health device associated with the account; the execution item can specifically display the device name or other device identifier of the execution device.
  • the execution content in the execution item may include action content such as opening, closing, or playing, and may also include parameter content such as working mode or multimedia content.
  • action content such as opening, closing, or playing
  • parameter content such as working mode or multimedia content.
  • the execution item “turn on air purifier A sleep mode”, “air purifier A” is the execution device, “open” is the action content, and “sleep mode” is the parameter content.
  • the execution equipment and execution content in the execution item are adjustable parameters, which can support editing, and the user can select the execution equipment and/or execution content (ie, the first operation) to edit the execution item; for an execution item, the first The execution item means the execution item before editing, and the second execution item means the execution item formed after editing the execution item. When the user edits the execution item again, the second execution item is used as the new first execution item again. .
  • the electronic device can change the content of the execution item in a preset manner. For example, in the execution item in the above example, the user clicks "Open", and the "Open” in the execution item is changed to "Close”.
  • the electronic device can also display a corresponding execution item editing interface, and the content of the execution item can be changed by the user's editing operation in the interface; wherein, the execution item editing interface can be an action editing interface corresponding to the action content, a device editing interface corresponding to the execution device, or
  • the parameter editing interface corresponding to the parameter content can be displayed in the form of a full screen or a floating window.
  • the external equipment and the execution content included in the execution item in the editing interface are all adjustable parameters, which can facilitate the user to adjust different parameters of the execution item through different adjustable parameters, thereby shortening the parameter setting path and improving the editing efficiency.
  • the process of changing the first execution item to the second execution item includes: receiving a second operation on the first external device; in response to the second operation, displaying a plurality of external devices; receiving a third operation of selecting a second external device from among the plurality of external devices; in response to the second operation, changing the first external device to the second external device.
  • the electronic device can display the corresponding device editing interface, which displays multiple external devices: air purifier A and air purifier B; the user can select the second external device, air purifier B, from multiple external devices (ie, the third operation), and the electronic device correspondingly changes the air purifier A in the execution item to an air purifier.
  • the electronic device can display the corresponding device editing interface, which displays multiple external devices: air purifier A and air purifier B; the user can select the second external device, air purifier B, from multiple external devices (ie, the third operation), and the electronic device correspondingly changes the air purifier A in the execution item to an air purifier.
  • the process of changing the first execution item to the second execution item includes: receiving a fourth operation on the first execution content; in response to the fourth operation, displaying a plurality of execution contents; A fifth operation of selecting the second execution content from the plurality of action instructions is received; in response to the fifth operation, the first execution content is changed to the second execution content.
  • the electronic device can display the corresponding parameter editing interface, and the interface displays multiple execution contents: it can be used to select the sleep mode , mode options of automatic mode or manual mode, wind speed options and timing shutdown options; the user can select the second execution content automatic mode (ie the fifth operation) from multiple execution contents, and the electronic device will execute the sleep in the item correspondingly The mode is changed to automatic mode.
  • the plurality of external devices are external devices that satisfy preset device parameters.
  • the preset device parameters can be obtained from the target execution instruction corresponding to the execution item, and the target execution instruction can be a device set control instruction that can support controlling multiple smart devices, and an external device that satisfies the preset device parameters forms the target execution instruction. equipment set.
  • the target execution command is "Open [Air Purifier#Complete Collection]", and "Air Purifier#Complete Collection” is the preset device parameter; if the air purifier associated with the electronic device includes air purifier A and air purifier B, Then, the external devices that satisfy the preset device parameters in the execution items corresponding to the instruction include air purifier A and air purifier B.
  • the method further includes: generating an execution flow according to the second execution item and the trigger condition, the execution flow including the execution action corresponding to the trigger condition and the second execution item, and the execution action is used to control
  • the second external device executes the second execution content; in response to satisfying the trigger condition, the execution action is executed.
  • the user can save after editing, and the electronic device can generate the execution flow according to the second execution item and the trigger condition.
  • the trigger condition is satisfied, the execution action corresponding to the second execution item can be executed.
  • the second execution item is "open air purifier B automatic mode"
  • the trigger condition is "when the smart door lock is unlocked from 08:00-21:00 every day", the user saves after editing;
  • the electronic device can control the air purifier B to open and run the automatic mode.
  • the method further includes: generating a control according to the second execution item and the trigger condition; displaying the control; and controlling the second external device to perform the second execution in response to the sixth operation on the control content.
  • the electronic device can provide a scene management function, such as providing "My Scene Interface". After editing the scene editing interface, the user can add the corresponding scene to the My Scene interface. in management.
  • the electronic device can generate a control according to the content edited by the user in the scene editing interface, and the control can be a card, an icon or a menu item, etc.; the user can click on the control (ie, the sixth operation), and the electronic device can control the second external device to perform the first operation. 2. Execution content.
  • the scene can be a manual scene or an automatic scene.
  • the trigger condition in the manual scene involves manual operation, for example, the trigger condition is: "when the scene card is clicked"; the trigger condition in the automatic scene does not involve manual operation, for example, the trigger condition is: "When the smart door lock is unlocked from 08:00-21:00 every day”.
  • the automatic scene can also be triggered manually, which is equivalent to integrating the automatic scene and the manual scene with high similarity into the same scene.
  • Users can also complete scene discovery, scene editing and scene management at one time without dividing the scene. It can be found, arranged and managed many times, which can improve the convenience of users and improve the editing efficiency of scenes to a certain extent.
  • the electronic device can judge the triggering condition of the automatic scene, and determine the execution result according to the judgment result.
  • each scenario may include one or more triggering conditions, and each triggering condition may correspond to a different execution flow.
  • the scene content of a certain scenario includes: execution flow 1 and execution flow 2, where execution flow 1 is: the current When it rains (trigger condition 1), play music a (execute action 1); the execution flow 1 is: when a typhoon blows (trigger condition 2), play music b (execute action 2).
  • the electronic device can determine which triggering condition the current situation satisfies. If a certain triggering condition is met, the execution process corresponding to the triggering condition can be executed. If none of the triggering conditions are met, the user can choose to execute it. Which execution process, or can also randomly select an execution process to execute. If the automatic scene includes only one trigger condition, the electronic device can execute the execution flow corresponding to the trigger condition when the trigger condition is met; when the trigger condition is not met, the user can choose whether to execute the execution flow of the automatic scene.
  • the second external device in the second execution item may include multiple, for example: the execution item "turn on air purifier A, air purifier B sleep mode", the external device (that is, the execution device) includes two: air purifier A and air purifier B.
  • the execution item “turn on air purifier A, air purifier B sleep mode”
  • the external device that is, the execution device
  • the user can adjust the two external devices at the same time, which can further improve the editing efficiency.
  • an embodiment of the present application provides an interaction method, including: receiving a user's editing trigger operation on a scene; in response to the editing trigger operation, displaying a scene editing interface of the scene, where the scene editing interface includes all an execution item corresponding to each execution action of the scene, the execution item is used to display the function description text of the corresponding execution action, and the function description text corresponding to the execution action supporting parameter adjustment includes the adjustable parameter of the execution action,
  • the tunable parameters are editable.
  • the scene editing interface displays the function description text of the execution item corresponding to the trigger condition and the execution action, and the function description text can be interspersed with one or more adjustable parameters related to the execution action of the scene, which is convenient for the user. Adjust different parameters of the execution device through different adjustable parameters, so that the parameter setting path can be shortened; moreover, the adjustable parameters are related to the scene, that is, some parameters unrelated to the scene are filtered out when the adjustable parameters are displayed, which can simplify parameter editing Therefore, the above interaction method can improve the editing efficiency of the scene.
  • the method further includes: receiving a user triggering operation on the adjustable parameter, and in response to the triggering operation, displaying a parameter editing interface corresponding to the adjustable parameter .
  • the displaying the parameter editing interface corresponding to the adjustable parameter includes: displaying the parameter editing interface corresponding to the adjustable parameter in the form of a floating window. In this way, it is convenient for users to know the tunable parameter that is currently being edited.
  • the execution item is a selectable option, and the selection state of each execution item is displayed in the scene editing interface. In this way, the user can choose whether to execute the execution work corresponding to a certain execution item, thereby improving the flexibility of scene editing.
  • At least one execution device involved in executing an action includes multiple execution devices, and there is an association relationship between functions executed by the multiple execution devices. This increases the variety of intelligent control functions.
  • the execution instructions corresponding to each execution action of the scene include at least one target execution instruction, and the target execution instruction supports controlling multiple objects;
  • the scene editing interface includes: for each target execution instruction, according to the execution item type of the target execution instruction and the corresponding relationship between the preset execution item type and the execution item display rule, displaying all the execution items in the scene editing interface. Specifies the execution item corresponding to the target execution instruction. This can improve development efficiency and generate more reasonable execution items.
  • the execution item types include a first type and a second type
  • the execution item display rule corresponding to the first type includes: the execution item corresponding to the target execution instruction includes At least one, the execution item corresponding to the target execution instruction is in one-to-one correspondence with the objects included in the set of objects controlled by the target execution instruction, and the execution item corresponding to each object includes an item for adjusting the specified function parameters of the object.
  • Adjustable parameters; the execution item display rule corresponding to the second type includes: the execution item corresponding to the target execution instruction includes one item, and the execution item corresponding to the target execution instruction indicates each object in the object set.
  • the execution item display rule corresponding to the second type further includes: if the target execution instruction indicates that the specified function parameter of the object in the object set is adjustable, and the If each object included in the object set has the same or similar specified function parameters, the execution item corresponding to the target execution instruction includes adjustable parameters for adjusting the same or similar specified function parameters.
  • multiple objects can be indicated in the same execution item, and adjustable parameters corresponding to the same or similar specified function parameters among the objects can be displayed, so that the user can edit multiple objects at the same time, thereby improving the editing performance. effectiveness.
  • the execution item display rule corresponding to the second type further includes: the execution item corresponding to the target execution instruction includes adjustable parameters corresponding to the object set, the The adjustable parameter corresponding to the object set is used to adjust the object controlled by the execution item corresponding to the target execution instruction. In this way, the user can adjust the object controlled by the execution item, thereby improving the flexibility of scene editing.
  • the execution instructions corresponding to each execution action of the scene include at least one target execution instruction, and the target execution instruction supports controlling multiple objects;
  • the scene editing interface includes: for each target execution instruction, according to the attribute of the object execution instruction of the target execution instruction and the corresponding relationship between the attribute of the preset object set and the execution item display rule, in the scene editing interface The execution item corresponding to the target execution instruction is displayed.
  • the attributes of the object set include an empty set, a complete set, and a specified set
  • the execution item display rule corresponding to the empty set includes: the execution item corresponding to the target execution instruction includes one,
  • the execution item corresponding to the target execution instruction includes adjustable parameters corresponding to the object set, wherein the adjustable parameter corresponding to the object set is used to adjust the object controlled by the execution item corresponding to the target execution instruction.
  • the object set includes multiple objects, the object indicated by the adjustable parameter corresponding to the object set is empty; when the object set includes one object, the object indicated by the adjustable parameter corresponding to the object set is empty.
  • Objects are objects included in the set of objects.
  • scene editing can be made more flexible.
  • the execution item display rule corresponding to the empty set further includes: when there are multiple objects included in the object set, displaying in the execution item corresponding to the target execution instruction There is prompt information, and the prompt information is used to prompt the user to adjust the object controlled by the execution item through the adjustable parameter corresponding to the object set. In this way, it is convenient for the user to understand the function of the execution item, thereby improving the user experience.
  • the execution item display rule corresponding to the complete set and the specified set includes: the execution item corresponding to the target execution instruction in the scene editing interface indicates that the execution items included in the object set are included. each object.
  • a description text of the triggering condition of the scene is displayed in the scene editing interface. In this way, it is convenient for users to understand the triggering conditions of the scene.
  • the scenario is an automatic scenario that supports automatic triggering
  • the description text includes adjustable parameters of the triggering condition.
  • the user can also edit the trigger conditions, thereby improving the flexibility of scene editing.
  • the method further includes: when a trigger condition of the scene is satisfied, executing an execution action included in the scene; and displaying an execution state of the scene. This makes it easier for users to understand the execution status of the scene.
  • the method further includes: if a user triggering operation for terminating the scenario is received, responding to the Terminate the trigger operation, and terminate the execution of the execution action of the scene. This increases the flexibility of scene control.
  • the displaying the execution status of the scene includes: displaying the execution status of the scene in a scene card corresponding to the scene.
  • the method further includes: when the scene is being executed, displaying a termination control in the scene card; then the stopping the triggering operation includes a triggering operation on the termination control.
  • the scene is an automatic scene that supports automatic triggering
  • the method further includes: when receiving a scene triggering operation of the scene by the user, responding to the scene triggering operation, execute the execution action included in the scene.
  • automatic scenes can also be triggered manually, which can improve the convenience of users, and is equivalent to integrating automatic scenes and manual scenes with high similarity into the same scene. It can be completed at one time instead of finding, arranging and managing multiple times, which can improve the convenience of users and improve the efficiency of scene editing to a certain extent.
  • the scenario includes at least one trigger condition, and each trigger condition has a corresponding execution action; the triggering operation in response to the scenario executes the execution included in the scenario
  • the action includes: in response to the scene triggering operation, if the scene includes multiple triggering conditions, in the case that at least one triggering condition is satisfied, executing the execution action corresponding to the satisfied triggering condition; if none of the triggering conditions is satisfied
  • the determining the execution action corresponding to the trigger condition to be executed includes: prompting the user to select the execution action corresponding to the trigger condition to be executed; determining the execution action to be executed according to the user's selection operation The execution action corresponding to the trigger condition. This increases the flexibility of scenario execution.
  • an interaction device which is applied to an electronic device, including:
  • a display module configured to display an editing interface, the editing interface includes a trigger condition and a first execution item, and the first execution item includes a first external device and a first execution content;
  • a processing module configured to change the first execution item to a second execution item in response to a first operation on the first execution item, and the second execution item includes a second external device and a second execution content;
  • the second external device is different from the first external device, and/or the first execution content is different from the second execution content.
  • the apparatus further includes: an input module;
  • the input module is used for: receiving a second operation on the first external device
  • the display module is further used for: displaying a plurality of external devices in response to the second operation;
  • the input module is further configured to: receive a third operation of selecting a second external device from the plurality of external devices;
  • the processing module is further configured to: in response to the second operation, change the first external device to the second external device.
  • the apparatus further includes: an input module;
  • the input module is used for: receiving a fourth operation on the first execution content
  • the display module is further configured to: display a plurality of execution contents in response to the fourth operation;
  • the input module is further configured to: receive a fifth operation of selecting the second execution content from the plurality of action instructions;
  • the processing module is further configured to: in response to the fifth operation, change the first execution content to the second execution content.
  • the plurality of external devices are external devices that satisfy preset device parameters.
  • the processing module is further configured to: generate an execution flow according to the second execution item and the trigger condition, the execution flow includes the execution action corresponding to the trigger condition and the second execution item, and the execution action is used for
  • the second external device is controlled to execute the second execution content; in response to satisfying the trigger condition, the execution action is executed.
  • the processing module is further configured to: generate a control according to the second execution item and the trigger condition; the display module is further configured to: display the control; the processing module is further configured to: respond to the control The sixth operation is to control the second external device to execute the second execution content.
  • an interaction device including:
  • the input module is used to receive the user's editing trigger operation on the scene
  • a display module configured to display a scene editing interface of the scene in response to the editing trigger operation, where the scene editing interface includes execution items corresponding to each execution action of the scene, and the execution items are used to display corresponding execution items.
  • the function description text of the execution action, the function description text corresponding to the execution action that supports parameter adjustment includes the adjustable parameters of the execution action, and the adjustable parameters can be edited.
  • the input module is further configured to: receive a user triggering operation on the adjustable parameter; the display module is further configured to display the trigger operation in response to the triggering operation.
  • the parameter editing interface corresponding to the adjustable parameter.
  • the display module is specifically configured to: display the parameter editing interface corresponding to the adjustable parameter in the form of a floating window.
  • the execution item is a selectable option
  • the selection state of each execution item is displayed in the scene editing interface.
  • At least one execution device involved in executing an action includes multiple execution devices, and there is an association relationship between functions executed by the multiple execution devices.
  • the execution instructions corresponding to each execution action of the scene include at least one target execution instruction, and the target execution instruction supports controlling multiple objects;
  • the display module is specifically used for : For each target execution instruction, according to the execution item type of the target execution instruction and the corresponding relationship between the preset execution item type and the execution item display rule, display the corresponding target execution instruction in the scene editing interface. execution item.
  • the execution item types include a first type and a second type
  • the execution item display rule corresponding to the first type includes: the execution item corresponding to the target execution instruction includes At least one, the execution item corresponding to the target execution instruction is in one-to-one correspondence with the objects included in the set of objects controlled by the target execution instruction, and the execution item corresponding to each object includes an item for adjusting the specified function parameters of the object.
  • Adjustable parameters; the execution item display rule corresponding to the second type includes: the execution item corresponding to the target execution instruction includes one item, and the execution item corresponding to the target execution instruction indicates each object in the object set.
  • the execution item display rule corresponding to the second type further includes: if the target execution instruction indicates that the specified function parameters of the objects in the object set are adjustable, and the If each object included in the object set has the same or similar specified function parameters, the execution item corresponding to the target execution instruction includes adjustable parameters for adjusting the same or similar specified function parameters.
  • the execution item display rule corresponding to the second type further includes: the execution item corresponding to the target execution instruction includes adjustable parameters corresponding to the object set, the The adjustable parameter corresponding to the object set is used to adjust the object controlled by the execution item corresponding to the target execution instruction.
  • the execution instructions corresponding to each execution action of the scene include at least one target execution instruction, and the target execution instruction supports controlling multiple objects;
  • the display module is specifically used for : For each target execution instruction, display the target execution in the scene editing interface according to the attributes of the object set of the target execution instruction and the corresponding relationship between the attributes of the preset object set and the execution item display rules The execution item corresponding to the instruction.
  • the attributes of the object set include an empty set, a complete set, and a specified set
  • the execution item display rule corresponding to the empty set includes: the execution item corresponding to the target execution instruction includes one,
  • the execution item corresponding to the target execution instruction includes adjustable parameters corresponding to the object set, wherein the adjustable parameter corresponding to the object set is used to adjust the object controlled by the execution item corresponding to the target execution instruction.
  • the object set includes multiple objects, the object indicated by the adjustable parameter corresponding to the object set is empty; when the object set includes one object, the object indicated by the adjustable parameter corresponding to the object set is empty.
  • Objects are objects included in the set of objects.
  • the execution item display rule corresponding to the empty set further includes: when there are multiple objects included in the object set, displaying in the execution item corresponding to the target execution instruction There is prompt information, and the prompt information is used to prompt the user to adjust the object controlled by the execution item through the adjustable parameter corresponding to the object set.
  • the execution item display rules corresponding to the complete set and the specified set include: the execution item corresponding to the target execution instruction in the scene editing interface indicates that the execution items included in the object set each object.
  • the scene editing interface displays a description text of the triggering condition of the scene.
  • the scene is an automatic scene that supports automatic triggering
  • the description text includes adjustable parameters of the triggering condition.
  • the processing module is further configured to: when a trigger condition of the scenario is satisfied, execute an execution action included in the scenario; the display module is further configured to display the The execution state of the scene.
  • the processing module is further configured to: after executing the execution action included in the scene, if the input module receives a user's termination triggering operation on the scene, respond to The termination triggering operation terminates the execution of the execution action of the scene.
  • the display module is specifically configured to: display the execution status of the scene in a scene card corresponding to the scene.
  • the display module is further configured to: display a termination control in the scene card when the scene is being executed; then the stop triggering operation includes a triggering operation for the termination control.
  • the scene is an automatic scene that supports automatic triggering
  • the processing module further user: when the input module receives a scene triggering operation of the scene by the user, respond Trigger an operation on the scene, and execute the execution action included in the scene.
  • the scene includes at least one trigger condition, and each trigger condition has a corresponding execution action;
  • the processing module is specifically configured to: trigger an operation in response to the scene, if any If the above scenario includes multiple triggering conditions, then if at least one triggering condition is satisfied, the execution action corresponding to the satisfied triggering condition is executed; if none of the triggering conditions are satisfied, the execution action corresponding to the triggering condition to be executed is determined. , and execute the execution action corresponding to the determined trigger condition; if the scene includes a trigger condition, each execution action of the scene is executed under the condition that the trigger condition is satisfied.
  • the processing module is specifically configured to: prompt the user to select the execution action corresponding to the trigger condition to be executed; and determine the execution action corresponding to the trigger condition to be executed according to the user's selection operation.
  • an embodiment of the present application provides an electronic device, including: a memory and a processor, where the memory is used to store a computer program; the processor is used to execute the method described in the first aspect or the third aspect when the computer program is invoked.
  • an embodiment of the present application provides a computer-readable storage medium on which a computer program is stored, and when the computer program is executed by a processor, the method described in the first aspect or the third aspect is implemented.
  • an embodiment of the present application provides a computer program product, which enables an electronic device to execute the method described in the first aspect or the third aspect when the computer program product runs on a device.
  • an embodiment of the present application provides a chip system, including a processor, where the processor is coupled to a memory, and the processor executes a computer program stored in the memory, so as to implement the first aspect or the third aspect.
  • the chip system may be a single chip or a chip module composed of multiple chips.
  • 1 is a schematic diagram of an existing scene editing interface
  • FIG. 2 is a schematic diagram of a system architecture provided by an embodiment of the present application.
  • FIG. 3 is a schematic diagram of an application interface provided by an embodiment of the present application.
  • FIG. 4 is a schematic diagram of a scene interface of a manual scene and an automatic scene provided by an embodiment of the present application
  • FIG. 5 is a schematic diagram of interface display of a scene card provided by an embodiment of the present application.
  • FIG. 6 is a schematic diagram of an interaction process provided by an embodiment of the present application.
  • FIG. 11 is a schematic diagram of constituent elements of an execution item provided by an embodiment of the present application.
  • FIG. 12 is a schematic diagram of some display styles of execution items provided by an embodiment of the present application.
  • FIG. 13 is a schematic flowchart of an execution item display process provided by an embodiment of the present application.
  • FIG. 15 is a schematic flowchart of another execution item display process provided by an embodiment of the present application.
  • FIG. 16 is a schematic structural diagram of an interaction apparatus provided by an embodiment of the present application.
  • FIG. 17 is a schematic structural diagram of an electronic device provided by an embodiment of the present application.
  • FIG. 1 is a schematic diagram of an existing scene editing interface.
  • the electronic device displays a scene editing interface 10, and the scene editing interface 10 includes a list of controlled devices 101. It includes device editing options corresponding to each smart device controlled in this scenario, such as smart lamp editing options 1011 , smart socket editing options 1012 , air purifier editing options 1013 , and gateway editing options 1014 shown in the figure.
  • the user can click the device editing option to edit the control parameters of the corresponding smart device, as shown in (a) in Figure 1. If the user wants to edit the control parameters related to the air purifier, click the air purifier editing option 1013; as shown in Figure 1 As shown in (b) of the above, the electronic device displays the device editing interface 20 of the air purifier, which displays parameter editing options for various control parameters of the air purifier, and the user can select the relevant parameter editing options for editing.
  • the above scene editing interface mainly displays the list of controlled devices, which is inconvenient for users to understand the scene functions; for each controlled device, the editing operations of various control parameters of the device need to be entered through the device editing options of the device. In this way, the phenomenon of long parameter setting path is easy to occur; in addition, the parameter content of the device editing interface of the device is consistent in various scenarios, and all kinds of editable parameters of the device are listed, so the device editing interface will have parameter excessive In addition, each editing operation of the user can only be edited for a single device, which will affect the efficiency of scene arrangement. In addition, in current scenarios, the functions of a single device are generally controlled, so the device control functions are not diversified enough.
  • the embodiments of the present application provide an interaction method, apparatus, and electronic device, so as to facilitate the user's understanding of scene functions, and to improve scene editing efficiency and diversity of device control functions.
  • FIG. 2 is a schematic diagram of the system architecture provided by the embodiment of the present application.
  • the system architecture includes cloud servers, electronic devices and smart devices.
  • cloud servers, electronic devices and smart devices can communicate with each other.
  • Electronic devices can be portable electronic devices such as mobile phones or tablets, or non-portable electronic devices such as desktop computers; smart devices can be speakers, air conditioners, Smart home devices such as air purifiers, smart lights, smart switches or gateways can also be in-vehicle devices or smart health devices, etc.
  • the number of smart devices can be one or more.
  • the electronic device can access the cloud server through the logged-in user account, and the cloud server can provide some query services for the electronic device. Specifically, the electronic device can query the type and functional parameters of the smart device associated with the logged-in user account from the cloud server. You can also query the scene information from the cloud server, and you can also query the weather and other Internet service information from the cloud server. Cloud servers can also provide control services for electronic devices. For example, in some scenarios, electronic devices can control smart devices through short-range communication connections such as Bluetooth. In other scenarios, electronic devices can use cloud servers to control smart devices. control.
  • An intelligent control function may be provided on the electronic device, and the function may be a system function or a function provided by an intelligent control APP.
  • an intelligent control APP is used as an example for illustration.
  • the electronic device can access the cloud server to obtain services through the user account logged in the smart control APP.
  • FIG. 3 is a schematic diagram of an application interface provided by an embodiment of the present application.
  • the intelligent control APP on the electronic device can provide various scenarios in the scene discovery interface 30, as shown in the figure The warm home scene shown, the silent scene here and now, etc.; the user can click the corresponding scene card to view and edit the scene, for example, as shown in (a) and (b) in FIG. 3, the user clicks the warm scene in the scene discovery interface 30.
  • the scene card 301 corresponding to the homecoming scene can open the scene details interface 40 of the warm home scene, where the scene content of the warm home scene can be viewed, and the scene content can be edited.
  • the user after viewing or editing the scene content, the user can click the add to my scene control 401 to add the warm home scene to my scene for management.
  • the scene is not limited to be presented in the form of a card, it can also be presented in the form of an icon, a title or a menu item, etc., which can be selected as needed during the specific implementation, which is not particularly limited in this embodiment, for the convenience of description.
  • the scene card is used as an example for illustrative description.
  • the content of the scene is mainly composed of a trigger condition (Trigger) and an execution action (Action).
  • the trigger condition defines what conditions an execution process in the scene will be triggered for execution;
  • the perceived operation steps, wherein a scenario may include one or more execution flows, and each execution flow may include a trigger condition and at least one execution action.
  • the trigger condition of the warm home scene is: "When the smart door lock is unlocked from 08:00-21:00 every day”, the execution actions include: “Turn on the specified smart light”, “ Turn on the sleep mode of the air purifier", "The speaker broadcasts the owner, I miss you!, "The mobile phone is connected to the speaker to play the music application A-My Radio".
  • the execution action may be requesting Internet services through a cloud server, or requesting device information inquiry or issuing control instructions of the smart device; the execution action may also be invoking the capabilities of the local system, such as making a phone call or sending a message on the electronic device. SMS, etc.; the execution action may also be to control the smart device to execute the target function. That is, Internet service functions, functions on smart devices connected to cloud servers or electronic devices, and functions on electronic devices can all be mapped to perform actions.
  • Internet services may include querying the weather, querying road conditions, querying logistics, querying sunrise or sunset time, etc.; functions on smart devices may include playing audio, setting the brightness and color of smart lights, turning on or off devices, etc.; on electronic devices
  • the functions of the device can include connecting to a Bluetooth or wireless fidelity (Wi-Fi) network, opening an APP, making a phone call, sending a text message, pop-up notification messages or voice broadcasts, etc.
  • Wi-Fi wireless fidelity
  • Each execution action has a corresponding execution device, and the execution device can be a cloud server, a smart device or an electronic device, that is, for a certain execution action, it may be executed on an electronic device, or may be executed on a cloud server or a smart device; To achieve richer functions, the functions of multiple execution devices can also be spliced and combined to form a combined execution action.
  • the execution devices corresponding to the combined execution action include multiple execution devices, and there is an association relationship between the operations performed by each execution device, such as As shown in (b) of Figure 3, the mobile phone is connected to the speaker to play the music application A-My Radio, which includes the functions of two execution devices: the mobile phone is connected to the speaker and the speaker plays the music application A-My Radio in the mobile phone, in which , the relationship between the two functions is: after the mobile phone is connected to the speaker, the music application A-My Radio in the mobile phone can be played through the speaker.
  • Each execution action in an execution flow can be executed on the same device or on different devices.
  • execution actions that are not executed on the electronic device can be routed by the electronic device to the corresponding device for execution.
  • the electronic device can execute the relevant execution action locally, or request the cloud server to execute the relevant execution action, and can also control the smart device to execute the relevant execution action, or
  • the cloud server controls the smart device to perform related execution actions.
  • the scenarios may include manual scenarios and automatic scenarios.
  • the manual scenario the user can actively trigger the process in the scenario through operations such as clicking or inputting voice commands
  • the automatic scenario can automatically trigger the flow of the process according to the set trigger conditions. implement.
  • FIG. 4 (a) in FIG. 4 is a schematic diagram of the scene content of the manual scene, and (b) in FIG. 4 is a schematic diagram of the scene content of the automatic scene.
  • the execution process of the one-key lighting scene can be triggered when the user manually clicks the scene card corresponding to the scene, wherein the execution process includes: turning on the living room ceiling light, and setting its working mode to Leisure mode, and turn on the jellyfish light, set its working mode to daylight mode.
  • the execution process of the easy driving scenario can be triggered when the mobile phone is connected to vehicle A during legal working days, wherein the execution process includes: “broadcast driving weather tips", “use map application” A broadcasts traffic navigation from location A to location B" and "Continue to play the last music”.
  • a switch function can be provided for automatic scenes.
  • the leaving home with peace of mind, driving with ease, and returning home with ease are all automatic scenes, and the three corresponding The scene cards all include a switch control 501 through which the user can turn on or off the automatic scene; the scene cards corresponding to the one-key lighting scene of the manual scene and the music party scene may not include the switch control 501 .
  • the automatic scene can also be triggered manually.
  • the user can click the scene card of the easy driving scene in the My Scene interface, Trigger an easy driving scene.
  • This is equivalent to integrating automatic scenes and manual scenes with high similarity into the same scene.
  • Users can also complete scene discovery, scene arrangement and scene management at one time, instead of finding, arranging and managing multiple times, which can improve user usage. It is convenient and can improve the efficiency of scene editing to a certain extent.
  • the execution state of the scene can be displayed in the scene card.
  • the corresponding scene card displays the scene's execution status.
  • the execution status is "executing"; as shown in (d) and (e) of Figure 5, in the case that the scene is successfully executed, the scene card can display the execution status of the scene as "executed”. If the scene execution fails, the scene card can display the execution status of the scene as "execution failed".
  • a stop control 502 may be provided on the scene card, and the user can control the scene to stop execution by clicking on the control.
  • the execution status of the scene can be displayed as "terminated" on the scene card.
  • an alarm control 503 may also be displayed on the scene card, and the user may click on the control to view the reason for the execution failure.
  • the execution flow if at least one execution flow of the scenario is successfully executed, it can be considered that the execution of the scenario is successful; if all the execution flows of the scenario fail to be executed, it can be considered that the execution of the scenario has failed.
  • the execution flow if all or part of the execution actions included in the execution flow are successfully executed, the execution flow can be considered to be executed successfully; if all the execution actions included in the execution flow fail to be executed, the execution flow can be regarded as failed to be executed.
  • the execution of the execution flow fails, which can be specifically defined as required, which is not particularly limited in this embodiment.
  • the execution state of the scene is not limited to be displayed on the scene card, but can also be displayed in the pull-down notification bar or other positions, and the specific display manner is not particularly limited in this embodiment.
  • the execution state of the scene may also include other states, such as the execution action being executed.
  • the user can also trigger the automatic scene by voice. It can be understood that the functions performed by various manual operations in this embodiment can be implemented by voice. This embodiment mainly describes the manual operation mode.
  • the electronic device can judge the trigger condition of the automatic scene, and determine the execution result according to the judgment result.
  • FIG. 6 A schematic diagram of an interaction process, as shown in Figure 6, the process may include the following steps:
  • the automatic scene A may be any automatic scene added by the user to my scene.
  • the user's trigger operation on the automatic scene A may be a user's click operation on the scene card corresponding to the automatic scene A, or a user's voice input operation, and the voice input operation is used to trigger the execution process of the automatic scene A.
  • step S102 in response to the scene triggering operation, determine whether the automatic scene A includes multiple triggering conditions, if so, go to step S103 , otherwise go to step S107 .
  • each scenario may include one or more triggering conditions, and each triggering condition may correspond to a different execution flow.
  • the scene content of a certain scenario includes: execution flow 1 and execution flow 2, where execution flow 1 is: when it rains time (trigger condition 1), play music a (execute action 1); execution flow 2 is: when a typhoon blows (trigger condition 2), play music b (execute action 2).
  • the electronic device may judge the number of triggering conditions of the automatic scene A, so as to improve the accuracy of the execution result.
  • step S103 Determine whether at least one trigger condition of the automatic scenario A is satisfied, if yes, go to step S104, otherwise go to step S105.
  • the electronic device can determine which trigger condition is satisfied by the current situation. If a certain trigger condition is satisfied, the execution action corresponding to the trigger condition can be executed. The user selects the execution action corresponding to the trigger condition to be executed.
  • step S102 if trigger condition 1 is satisfied, that is, it is currently raining, execution action 1 can be performed: playing music a.
  • the electronic device can remind the user to select the execution action corresponding to the trigger condition through a pop-up window and/or voice.
  • the user can select the execution action to be executed in the pop-up window, or select the desired execution action through a voice command.
  • the execution action performed.
  • the electronic device can judge whether the current situation satisfies the trigger condition, and if the trigger condition is met, the execution action corresponding to the trigger condition can be executed; if the trigger condition is not met, Then, the user can also choose whether to execute the execution action of the automatic scene A.
  • the electronic device can remind the user to select whether to execute the execution action of the automatic scene A through a pop-up window and/or voice, and correspondingly, the user can select whether to execute the execution of the automatic scene A in the pop-up window or through a voice command. action.
  • the electronic device executes the execution action; if the user cancels the execution of the execution action of the automatic scene A, the electronic device may not execute the execution action.
  • step S103 in the above process when at least one trigger condition of the automatic scene A is not met, the user selects which execution action corresponding to the trigger condition to execute. It can be understood that when at least one trigger condition of the automatic scene A is not met, An execution action corresponding to a trigger condition may also be randomly selected for execution, and may be selected as required during specific implementation, which is not particularly limited in this embodiment.
  • the execution action of the automatic scene can be directly executed;
  • the trigger condition includes a plurality of automatic scenarios, and the user may choose to execute the execution action corresponding to the trigger condition, or may randomly select an execution action corresponding to the trigger condition to execute.
  • a scene batch start function can also be provided.
  • a one-key start control (not shown) can be provided in the My Scene interface 50, and the user can trigger the control to start the management in the My Scene interface 50.
  • the smart control APP can also provide setting options for selecting which scenarios to start with one key, and the user can start all or some of the scenarios managed in the My Scenes interface 50 through the one-key start control.
  • scene batch start function is not limited to the above implementation manner.
  • a one-key start control may not be provided, but is implemented through a predefined touch operation.
  • the specific implementation manner is not particularly limited in this embodiment.
  • FIG. 7 is a schematic diagram of an application interface provided by an embodiment of the present application.
  • an editing control 504 may be provided on the scene card, and the user may click the control Open the scene editing interface 60 to edit the scene content.
  • the user can also edit the scene content when opening the scene detail interface 40 shown in FIG. 3 .
  • the opening method of the scene editing interface 60 is not limited to clicking on the editing control 504, and other methods are also possible. Displays editing options, which the user can select to open the scene editing interface.
  • the scene editing interface 60 may include trigger conditions and execution items corresponding to each execution action, the execution items are used to represent the corresponding execution actions, and each execution item displays the corresponding execution action.
  • Function description text the user can understand the corresponding execution action through the execution item.
  • the parameters (adjustable parameters for short) that can be adjusted related to the scene in the execution item can be interspersed in the function description text, and the adjustable parameters are displayed in the form of capsules in the figure (such as "Open”, “Specify” in Figure 7 ). Parameters such as “smart lights", “air purifier A”, etc.) can also be displayed in other forms during specific implementation, such as using a specific color to display adjustable parameters.
  • Each execution item has a corresponding check box, and the user can select or deselect the corresponding execution item through the check box.
  • the execution action corresponding to the execution item will be executed after the scene is triggered;
  • the execution action corresponding to the execution item will not be executed after the scene is triggered.
  • the user can click on the adjustable parameter to edit the execution item, and when the electronic device responds to the user's editing operation, the content of the execution item can be changed in a preset manner, such as shown in Figure 8, the user clicks "Open” (see Figure 8). (a)) in the execution item, change "Open” to "Close” (see (b) in Figure 8).
  • the electronic device can also display a corresponding execution item editing interface, and the content of the execution item can be changed by the user's editing operation in the interface; wherein, the execution item editing interface can be an action editing interface corresponding to the action content, a device editing interface corresponding to the execution device, or The parameter editing interface corresponding to the parameter content.
  • the parameter editing interface 70 corresponding to the working mode of the air purifier A is opened, and the operation of the air purifier A is edited in the parameter editing interface 70 model.
  • the open execution item editing interface can be displayed in the form of a floating window, and the user can move the floating window to view the scene editing interface 60 located below the floating window; the scene editing interface 60 is in the editing state
  • the adjustable parameters of can also be highlighted. For example, as shown in (b) of FIG. 9 , the “sleep mode” in the scene editing interface 60 is highlighted by means of shading.
  • the device editing interface 80 corresponding to the air purifier is opened.
  • the user can select air purifier A and air purifier B. at least one device.
  • the metadata information of each parameter in the device editing interface can be pre-defined, and the metadata information can include parameter name, optionality, default value, type (such as list type or input type, etc.), validity rules (such as specifying parameter value) The maximum value, minimum value, string length or no specified limit) and parameter value determination period (for example, before or during editing by the user) and so on.
  • the trigger condition is similar to the execution item, and adjustable parameters (such as "08:00-21:00 every day" and "unlock” parameters in Figure 7) can also be embedded in the description text.
  • adjustable parameters such as "08:00-21:00 every day" and "unlock” parameters in Figure 7) can also be embedded in the description text.
  • the specific implementation of the adjustable parameters is related to the execution item. similar.
  • FIG. 11 is a schematic diagram of constituent elements of an execution item provided by an embodiment of the present application.
  • an execution item may generally include a plurality of the following elements: action content a, execution device b, and parameter content c, wherein the action content Indicates the specific action of the executing device, the parameter content can indicate the functional parameters of the executing device, and the executing device indicates the device that executes the action. Both the action content and the parameter content belong to the execution content of the executing device.
  • the parameter content c in the execution item may generally be located after the action content a and the execution device b.
  • the action content a can be located before the execution device b or after the execution device b.
  • the sequence between the action content a, the execution device b, and the parameter content c may be: action content a ⁇ execution device b ⁇ parameter content c, such as the execution item "turn on the air purifier sleep mode" and the execution item shown in FIG. 11 .
  • action content a ⁇ execution device b ⁇ parameter content c such as the execution item "turn on the air purifier sleep mode" and the execution item shown in FIG. 11 .
  • “Turn off smart light A, smart light B” the sequence between action content a, execution device b and parameter content c can also be: execution device b ⁇ action content a ⁇ parameter content c, for example: as shown in Figure 11 Execute the item "Speaker Play Music Application A-My Radio".
  • the action content a, the execution device b, and the parameter content c can all be used as adjustable parameters.
  • the developer can predefine the execution instructions in the execution process, and when the user opens the scene editing interface (including the aforementioned scene details interface) for the first time, the electronic device can display execution items according to the execution instructions in the execution process.
  • the electronic device when running the target execution instruction, can display execution items of different styles according to different execution item types, which can also improve development efficiency.
  • the target execution instruction can be a device set control instruction that can support controlling multiple smart devices or other object set control instructions that can support controlling multiple objects (such as applications); the execution item types of the target execution instruction are different, the corresponding execution item
  • the display rules are different, and the execution items can show different styles when displayed.
  • execution items of different styles are used to represent execution items of different display rules.
  • the following uses device set control instructions for exemplary description.
  • FIG. 12 is a schematic diagram of some display styles of the execution items provided by the embodiment of the present application.
  • the developer can determine the execution item type (for example, the detailed parameter adjustment class and Quick parameter adjustment class), the electronic device displays the execution items according to the smart device owned by the user, which will be described below with reference to the example in FIG. 12 .
  • the execution item type for example, the detailed parameter adjustment class and Quick parameter adjustment class
  • Example 1 The developer determines that the execution item type is the detailed parameter adjustment class, and the device set control command is:
  • the style of the execution item displayed in the scene editing interface on the electronic device held by user A may be:
  • the style of the execution item displayed in the scene editing interface on the electronic device held by user B may be:
  • the device set corresponding to the device set control instruction includes several execution devices, several execution items are displayed accordingly; for each execution device, the corresponding execution item displays the specified function for adjusting the execution device.
  • the parameter's tunable herein referred to as the specified tunable.
  • the functional parameters specifically displayed by the air purifier A and the air purifier B may be the same or similar parameters as the specified functional parameters.
  • the specified functional parameter of the air purifier A is the sleep mode
  • the air The specified function parameter of device B is low noise mode.
  • the functional parameters of air purifier C are displayed in a similar manner to air purifier A and air purifier B.
  • Example 2 The developer determines that the execution item type is the quick parameter adjustment class, and the device set control command is:
  • the style of the execution item displayed in the scene editing interface on the electronic device held by user A can be:
  • the functional parameters specifically displayed by the air purifier A and the air purifier B may be the same specified functional parameters.
  • the same specified functional parameters of the air purifier A and the air purifier B are: Low wind mode.
  • the adjustable parameters related to the functional parameters of the execution device may not be displayed when the execution item is displayed.
  • the scene editing interface on the electronic device held by user A may not be displayed.
  • the styles for the execution items shown in can be:
  • Air Purifier A Air Purifier B
  • User B has only one air purifier, and the display does not involve the existence of the same or similar functional parameters.
  • the style of the execution items displayed in the scene editing interface on the electronic device held by user B can be:
  • the device set control command displays an execution item corresponding to each execution device corresponding to the device set control command.
  • the device set corresponding to the device set control command includes multiple execution devices, if each execution device If there are the same specified function parameters between devices, the adjustable parameters used to adjust the same function parameters are displayed in the execution item; otherwise, the adjustable parameters used to adjust the specified function parameters (that is, the specified adjustable parameters) are not displayed in the execution item. ).
  • the device set corresponding to the device set control instruction includes only one execution device, the specified tunable parameter is displayed in the execution item.
  • the adjustable parameters for adjusting the similar function parameters can also be displayed in the execution item.
  • parameter for the convenience of description, in this embodiment, the case where the same specified function parameter exists between each execution device is used as an example for illustration.
  • Example 3 For the quick parameter adjustment class, the developer can also define that the functional parameters of the execution device are not adjustable when defining the control command of the device set, and can not display the adjustable parameters related to the functional parameters of the execution device when displaying the execution item.
  • the device set control instruction is:
  • the style of the execution item displayed in the scene editing interface on the electronic device held by user A may be:
  • Air Purifier A Air Purifier B
  • the style of the execution item displayed in the scene editing interface on the electronic device held by user B may be:
  • the specified adjustable parameter used to adjust the specified function parameter is also not displayed in the execution item.
  • the action instruction, execution device and execution content in the above execution item can all be adjustable parameters.
  • the execution item of the execution item includes multiple execution devices, the execution device included in the execution item can be adjusted through the adjustable parameter corresponding to the execution item.
  • the content of the above-mentioned device set control instruction is only an example to reflect its function, and it is not intended to limit the present application.
  • FIG. 13 is a schematic diagram of an execution item display process provided by an embodiment of the present application. As shown in FIG. 13 , the process may include the following steps:
  • the editing trigger operation may be the user's click operation on the editing control 504 shown in (a) in FIG. click action.
  • step S202 For each device set control instruction, determine the execution item type of the equipment set control instruction. If the execution item type is a detailed parameter adjustment class, execute step S203; if the execution item type is a quick parameter adjustment class, execute step S204 .
  • the electronic device After receiving the user's editing trigger operation on the scene, the electronic device can respond to the operation, and can determine the execution item type for each device set control instruction.
  • the execution item type of the device set control instruction can be determined according to the scene name, that is, the execution item type of each device set control instruction in the same scene can be the same; in order to improve flexibility, the corresponding type can also be set for the device set control instruction in advance.
  • the execution item type of the equipment set control instruction can be judged according to the type identifier corresponding to the equipment set control instruction, that is, the execution item types of each equipment set control instruction in the same scene can also be different.
  • the detailed parameter adjustment class and the quick parameter adjustment class are only used to indicate different display modes of execution items, and they can also be other names, such as the first type and the second type. In addition, you can also define more as needed. type, which is not particularly limited in this embodiment.
  • execution item type of the device set control instruction is the detailed parameter adjustment class
  • multiple execution items can be displayed vertically as shown in Example 1 above, wherein the execution items are in one-to-one correspondence with the execution devices, and the execution items include parameters for adjusting the parameters.
  • the adjustable parameters of the specified function parameters of the execution device that is, the specified adjustable parameters
  • the specified function parameters may be some kind of function parameters of the smart device, such as the working mode of the air purifier, the brightness of the smart lamp, etc.
  • the electronic device can query the device information such as the device identification and functional parameters of the execution device corresponding to the device set control instruction through the cloud server, that is, the cloud server can manage the smart device associated with the user account logged in the electronic device, and the electronic device can The set control instruction and the logged-in user account are sent to the cloud server, and the cloud server queries the device information of the corresponding execution device according to the device set control instruction and the user account, and returns it to the electronic device.
  • the electronic device can also locally manage the smart device associated with the user account.
  • the electronic device can locally query the device identification of the corresponding execution device according to the device set control instruction, and then can send the device identification To the cloud server, after the cloud server queries the device information of the corresponding execution device according to the device identifier, it returns to the electronic device.
  • the electronic device can first determine whether the functional parameters of the execution device corresponding to the device set control instruction are adjustable. Taking the device set control instruction shown in the above example as an example, if If the specified function parameters are indicated in the equipment set control instruction, it can be considered that the function parameters of the execution equipment corresponding to the equipment set control instruction are adjustable; if the specified function parameters are not indicated in the equipment set control instruction, it can be considered that the execution equipment corresponding to the equipment set control instruction The function parameters are not adjustable. Of course, it is also possible to judge whether the functional parameters of the execution device corresponding to the control instruction of the device set are adjustable in other ways. Examples are not particularly limited.
  • the function parameters of the execution device corresponding to the device set control instruction are adjustable, it can be determined whether the same function parameters exist among the execution devices, and if so, the corresponding adjustable parameters can be displayed in the execution item.
  • air purifier A and air purifier B can be displayed in one execution item, and Display the corresponding adjustable parameter "low wind mode". It can be understood that when there are multiple identical specified function parameters, one function parameter can be selected as the preset parameter value of the adjustable parameter for display. After the user clicks the adjustable parameter, he can view and select other same parameters Function parameter.
  • each execution device can be displayed in one execution item, but the specified parameters are not displayed. Adjust parameters.
  • the electronic device can first determine the number of devices corresponding to the target device set control command. In the case of only one device number , you can directly judge whether the function parameters of the execution device corresponding to the control instruction of the device set are adjustable. If it is adjustable, an execution item can be displayed, and the specified adjustable parameters are displayed in the execution item; if it is not adjustable, an execution item is also displayed. , but the specified tunable parameter is not displayed in the execution item.
  • the electronic device can save the interface description information, and when the user triggers the scene editing interface again, the scene editing interface can be displayed according to the saved interface description information; Accuracy, the scene editing interface can be updated when the execution device corresponding to the execution instruction changes. For example, if user A associates a new air purifier D on the electronic device, the air purifier D can be added to the execution item to display .
  • different device set attributes can be defined in advance for the execution items of the device set control instruction, and the electronic device can display different execution items according to the defined device set attributes. style.
  • FIG. 14 is a schematic diagram of other display styles of the execution items provided by this embodiment of the present application.
  • a developer when defining a device set control instruction, a developer can determine a device set attribute (for example, an empty set, a complete set shown in the figure) and specified set), the electronic device displays the execution items according to the smart device owned by the user, which will be described below with reference to the example in FIG. 14 .
  • a device set attribute for example, an empty set, a complete set shown in the figure
  • specified set the electronic device displays the execution items according to the smart device owned by the user, which will be described below with reference to the example in FIG. 14 .
  • a developer-defined device set control instruction can be:
  • the style of the execution item displayed in the scene editing interface on the electronic device held by user A can be:
  • the style of the execution item displayed in the scene editing interface on the electronic device held by user B can be:
  • the tunable parameters corresponding to the device set can be displayed in an empty set style (herein referred to as empty set tunable parameters).
  • Set parameter value ie preset execution device
  • the user can select from the device set corresponding to the device set control instruction when editing the tunable parameter of the empty set.
  • the empty set adjustable parameters can include prompt information, and can be highlighted, such as the bold display prompt information shown in Figure 14: specify an air purifier, the bold display prompt information shown in Figure 3 : Specify the smart light.
  • prompt information can also be other content.
  • the execution device can be directly displayed in the execution item.
  • the preset parameter value of the adjustable parameter is set to the device name of the execution device corresponding to the device set control instruction.
  • the device set control command defined by the developer can be:
  • the style of the execution item displayed in the scene editing interface on the electronic device held by user A can be:
  • Air Purifier A Air Purifier B
  • the style of the execution item displayed in the scene editing interface on the electronic device held by user B can be:
  • the adjustable parameters corresponding to the device set in the execution item include the names of all execution devices in the device set corresponding to the device set control instruction.
  • a developer-defined device set control directive can be:
  • All the lights in the room with the largest number of lights of user A include smart light A, smart light B and smart light C, then the style of the execution item displayed in the scene editing interface on the electronic device held by user A can be:
  • each execution device corresponding to the specified set can be listed directly in an execution item.
  • FIG. 15 is a schematic diagram of another execution item display flow diagram provided by an embodiment of the present application.
  • the electronic device can perform a device set control instruction for each device set control instruction. Attribute judgment. If the device set attribute of the device set control instruction is an empty set, it can be judged whether the number of execution devices included in the device set corresponding to the device set control instruction is one or more.
  • An empty set of tunable parameters containing prompt information can be displayed in the execution item; if the number of devices is one, the device name of the execution device can be displayed in the execution item. If the device set attribute of the device set control instruction is the complete set, the device names of all executing devices corresponding to the device set control instruction can be displayed in the execution item; if the device set attribute of the device set control instruction is the specified set, it can be displayed in the execution item The device name of the execution device corresponding to the specified set is displayed in the execution item.
  • the device set attribute can be determined according to the content of the device set control instruction.
  • the content of the instruction indicates an empty set, a complete set or a specified set.
  • the number of executing devices included in the device set corresponding to the device set control instruction can be determined by using the corresponding executing device determination method in FIG. 13 , and details are not repeated here.
  • different execution item types can be defined as shown in FIG. 12 , and different execution item styles are correspondingly displayed when displayed.
  • the display manner of the trigger condition is similar to the display manner of the execution item, and details are not described herein again.
  • the function description text of the execution item corresponding to the trigger condition and the execution action is displayed in the scene editing interface, and one or more adjustable parameters related to the execution action of the scene can be interspersed in the function description text, so that It is convenient for users to adjust different parameters of the execution device through different adjustable parameters, thereby shortening the parameter setting path; moreover, the adjustable parameters are related to the scene, that is, some parameters that are not related to the scene are filtered out when the adjustable parameters are displayed, so that the Simplifies the parameter editing interface; in addition, in this embodiment, multiple execution devices with the same or similar functional parameters can be controlled through one execution item, so that the user can edit multiple execution devices at the same time, so this embodiment provides The technical solution can improve the scene editing efficiency.
  • the execution items in the scene editing interface can combine the functions of multiple execution devices, so that more diverse device control functions can be implemented.
  • the embodiment of the present application provides an interactive device, which corresponds to the foregoing method embodiment.
  • the present device embodiment does not refer to the foregoing method embodiment.
  • the details of the method are described one by one, but it should be clear that the apparatus in this embodiment can correspondingly implement all the contents in the foregoing method embodiments.
  • FIG. 16 is a schematic structural diagram of an interaction apparatus provided by an embodiment of the present application. As shown in FIG. 16 , the apparatus provided by this embodiment includes a display module 210 , an input module 220 , a processing module 230 , and a communication module 240 .
  • the display module 210 is used to support the mobile terminal to perform the interface display operations in the above-mentioned embodiments and/or other processes for the techniques described herein.
  • the display unit may be a touch screen or other hardware or a combination of hardware and software.
  • the input module 220 is used to receive the user's input on the display interface of the mobile terminal, such as touch input, voice input, gesture input, etc.
  • the input module is used to support the terminal to perform S101 and S110 in the above embodiment and receive the user-determined operation. steps, S201 and/or other processes for the techniques described herein.
  • the input module can be a touch screen or other hardware or a combination of hardware and software.
  • the processing module 230 is used to support the mobile terminal to perform S102-S110, S202-S207 in the above-described embodiments, the processing operations in FIG. 12, and/or other processes for the techniques described herein.
  • the communication module 240 is used to support the mobile terminal to perform the operations related to the communication process between the cloud server and the smart device in the above-described embodiments and/or other processes for the techniques described herein.
  • the apparatus provided in this embodiment may execute the foregoing method embodiments, and the implementation principles and technical effects thereof are similar, and details are not described herein again.
  • an embodiment of the present application further provides an electronic device. Please refer to FIG. 17 , which is a schematic structural diagram of the electronic device provided by the embodiment of the present application.
  • the electronic device 100 may include a processor 110, an external memory interface 120, an internal memory 121, a universal serial bus (USB) interface 130, a charge management module 140, a power management module 141, a battery 142, an antenna 1, an antenna 2 , mobile communication module 150, wireless communication module 160, audio module 170, speaker 170A, receiver 170B, microphone 170C, headphone jack 170D, sensor module 180, buttons 190, motor 191, indicator 192, camera 193, display screen 194, and Subscriber identification module (subscriber identification module, SIM) card interface 195 and so on.
  • SIM Subscriber identification module
  • the sensor module 180 may include a pressure sensor 180A, a gyroscope sensor 180B, an air pressure sensor 180C, a magnetic sensor 180D, an acceleration sensor 180E, a distance sensor 180F, a proximity light sensor 180G, a fingerprint sensor 180H, a temperature sensor 180J, a touch sensor 180K, and ambient light. Sensor 180L, bone conduction sensor 180M, etc.
  • the structures illustrated in the embodiments of the present invention do not constitute a specific limitation on the electronic device 100 .
  • the electronic device 100 may include more or less components than shown, or combine some components, or separate some components, or arrange different components.
  • the illustrated components may be implemented in hardware, software, or a combination of software and hardware.
  • the processor 110 may include one or more processing units, for example, the processor 110 may include an application processor (application processor, AP), a modem processor, a graphics processor (sraphics processing unit, GPU), an image signal processor (image signal processor, ISP), controller, memory, video codec, digital signal processor (digital signal processor, DSP), baseband processor, and/or neural-network processing unit (NPU) Wait.
  • application processor application processor, AP
  • modem processor graphics processor
  • GPU graphics processor
  • image signal processor image signal processor
  • ISP image signal processor
  • controller memory
  • video codec digital signal processor
  • DSP digital signal processor
  • NPU neural-network processing unit
  • different processing units can be independent devices, or can be integrated in one or more processors.
  • the controller may be the nerve center and command center of the electronic device 100 .
  • the controller can generate an operation control signal according to the instruction operation code and timing signal, and complete the control of fetching and executing instructions.
  • a memory may also be provided in the processor 110 for storing instructions and data.
  • the memory in processor 110 is cache memory. This memory may hold instructions or data that have just been used or recycled by the processor 110 . If the processor 110 needs to use the instruction or data again, it can be called directly from the memory. Repeated accesses are avoided and the latency of the processor 110 is reduced, thereby increasing the efficiency of the system.
  • the processor 110 may include one or more interfaces.
  • the interface may include an integrated circuit (inter-integrated circuit, I2C) interface, an integrated circuit built-in audio (inter-integrated circuit sound, I2S) interface, a pulse code modulation (pulse code modulation, PCM) interface, a universal asynchronous transceiver (universal asynchronous transmitter) receiver/transmitter, UART) interface, mobile industry processor interface (MIPI), general-purpose input/output (GPIO) interface, subscriber identity module (SIM) interface, and / or universal serial bus (universal serial bus, USB) interface, etc.
  • I2C integrated circuit
  • I2S integrated circuit built-in audio
  • PCM pulse code modulation
  • PCM pulse code modulation
  • UART universal asynchronous transceiver
  • MIPI mobile industry processor interface
  • GPIO general-purpose input/output
  • SIM subscriber identity module
  • USB universal serial bus
  • the I2C interface is a bidirectional synchronous serial bus that includes a serial data line (SDA) and a serial clock line (SCL).
  • the processor 110 may contain multiple sets of I2C buses.
  • the processor 110 can be respectively coupled to the touch sensor 180K, the charger, the flash, the camera 193 and the like through different I2C bus interfaces.
  • the processor 110 may couple the touch sensor 180K through the I2C interface, so that the processor 110 and the touch sensor 180K communicate with each other through the I2C bus interface, so as to realize the touch function of the electronic device 100 .
  • the I2S interface can be used for audio communication.
  • the processor 110 may contain multiple sets of I2S buses.
  • the processor 110 may be coupled with the audio module 170 through an I2S bus to implement communication between the processor 110 and the audio module 170 .
  • the audio module 170 can transmit audio signals to the wireless communication module 160 through the I2S interface, so as to realize the function of answering calls through a Bluetooth headset.
  • the PCM interface can also be used for audio communications, sampling, quantizing and encoding analog signals.
  • the audio module 170 and the wireless communication module 160 may be coupled through a PCM bus interface.
  • the audio module 170 can also transmit audio signals to the wireless communication module 160 through the PCM interface, so as to realize the function of answering calls through the Bluetooth headset. Both the I2S interface and the PCM interface can be used for audio communication.
  • the UART interface is a universal serial data bus used for asynchronous communication.
  • the bus may be a bidirectional communication bus. It converts the data to be transmitted between serial communication and parallel communication.
  • a UART interface is typically used to connect the processor 110 with the wireless communication module 160 .
  • the processor 110 communicates with the Bluetooth module in the wireless communication module 160 through the UART interface to implement the Bluetooth function.
  • the audio module 170 can transmit audio signals to the wireless communication module 160 through the UART interface, so as to realize the function of playing music through the Bluetooth headset.
  • the MIPI interface can be used to connect the processor 110 with peripheral devices such as the display screen 194 and the camera 193 .
  • MIPI interfaces include camera serial interface (CSI), display serial interface (DSI), etc.
  • the processor 110 communicates with the camera 193 through a CSI interface, so as to realize the photographing function of the electronic device 100 .
  • the processor 110 communicates with the display screen 194 through the DSI interface to implement the display function of the electronic device 100 .
  • the GPIO interface can be configured by software.
  • the GPIO interface can be configured as a control signal or as a data signal.
  • the GPIO interface may be used to connect the processor 110 with the camera 193, the display screen 194, the wireless communication module 160, the audio module 170, the sensor module 180, and the like.
  • the GPIO interface can also be configured as I2C interface, I2S interface, UART interface, MIPI interface, etc.
  • the USB interface 130 is an interface that conforms to the USB standard specification, and may specifically be a Mini USB interface, a Micro USB interface, a USB Type C interface, and the like.
  • the USB interface 130 can be used to connect a charger to charge the electronic device 100, and can also be used to transmit data between the electronic device 100 and peripheral devices. It can also be used to connect headphones to play audio through the headphones.
  • the interface can also be used to connect other electronic devices, such as AR devices.
  • the interface connection relationship between the modules illustrated in the embodiment of the present invention is only a schematic illustration, and does not constitute a structural limitation of the electronic device 100 .
  • the electronic device 100 may also adopt different interface connection manners in the foregoing embodiments, or a combination of multiple interface connection manners.
  • the charging management module 140 is used to receive charging input from the charger.
  • the charger may be a wireless charger or a wired charger.
  • the charging management module 140 may receive charging input from the wired charger through the USB interface 130 .
  • the charging management module 140 may receive wireless charging input through a wireless charging coil of the electronic device 100 . While the charging management module 140 charges the battery 142 , it can also supply power to the electronic device through the power management module 141 .
  • the power management module 141 is used for connecting the battery 142 , the charging management module 140 and the processor 110 .
  • the power management module 141 receives input from the battery 142 and/or the charging management module 140 and supplies power to the processor 110 , the internal memory 121 , the external memory, the display screen 194 , the camera 193 , and the wireless communication module 160 .
  • the power management module 141 can also be used to monitor parameters such as battery capacity, battery cycle times, battery health status (leakage, impedance).
  • the power management module 141 may also be provided in the processor 110 .
  • the power management module 141 and the charging management module 140 may also be provided in the same device.
  • the wireless communication function of the electronic device 100 may be implemented by the antenna 1, the antenna 2, the mobile communication module 150, the wireless communication module 160, the modulation and demodulation processor, the baseband processor, and the like.
  • Antenna 1 and Antenna 2 are used to transmit and receive electromagnetic wave signals.
  • Each antenna in electronic device 100 may be used to cover a single or multiple communication frequency bands. Different antennas can also be reused to improve antenna utilization.
  • the antenna 1 can be multiplexed as a diversity antenna of the wireless local area network. In other embodiments, the antenna may be used in conjunction with a tuning switch.
  • the mobile communication module 150 may provide wireless communication solutions including 2G/3G/4G/5G etc. applied on the electronic device 100 .
  • the mobile communication module 150 may include at least one filter, switch, power amplifier, low noise amplifier (LNA) and the like.
  • the mobile communication module 150 can receive electromagnetic waves from the antenna 1, filter and amplify the received electromagnetic waves, and transmit them to the modulation and demodulation processor for demodulation.
  • the mobile communication module 150 can also amplify the signal modulated by the modulation and demodulation processor, and then turn it into an electromagnetic wave for radiation through the antenna 1 .
  • at least part of the functional modules of the mobile communication module 150 may be provided in the processor 110 .
  • at least part of the functional modules of the mobile communication module 150 may be provided in the same device as at least part of the modules of the processor 110 .
  • the modem processor may include a modulator and a demodulator.
  • the modulator is used to modulate the low frequency baseband signal to be sent into a medium and high frequency signal.
  • the demodulator is used to demodulate the received electromagnetic wave signal into a low frequency baseband signal. Then the demodulator transmits the demodulated low-frequency baseband signal to the baseband processor for processing.
  • the low frequency baseband signal is processed by the baseband processor and passed to the application processor.
  • the application processor outputs sound signals through audio devices (not limited to the speaker 170A, the receiver 170B, etc.), or displays images or videos through the display screen 194 .
  • the modem processor may be a stand-alone device.
  • the modem processor may be independent of the processor 110, and may be provided in the same device as the mobile communication module 150 or other functional modules.
  • the wireless communication module 160 can provide applications on the electronic device 100 including wireless local area networks (WLAN) (such as wireless fidelity (Wi-Fi) networks), bluetooth (BT), global navigation satellites Wireless communication solutions such as global navigation satellite system (GNSS), frequency modulation (FM), near field communication (NFC), and infrared technology (IR).
  • WLAN wireless local area networks
  • BT Bluetooth
  • GNSS global navigation satellite system
  • FM frequency modulation
  • NFC near field communication
  • IR infrared technology
  • the wireless communication module 160 may be one or more devices integrating at least one communication processing module.
  • the wireless communication module 160 receives electromagnetic waves via the antenna 2 , frequency modulates and filters the electromagnetic wave signals, and sends the processed signals to the processor 110 .
  • the wireless communication module 160 can also receive the signal to be sent from the processor 110 , perform frequency modulation on it, amplify it, and convert it into electromagnetic waves for radiation through the antenna 2 .
  • the antenna 1 of the electronic device 100 is coupled with the mobile communication module 150, and the antenna 2 is coupled with the wireless communication module 160, so that the electronic device 100 can communicate with the network and other devices through wireless communication technology.
  • the wireless communication technology may include global system for mobile communications (GSM), general packet radio service (GPRS), code division multiple access (CDMA), broadband Code Division Multiple Access (WCDMA), Time Division Synchronous Code Division Multiple Access (TD-SCDMA), Long Term Evolution (LTE), BT, GNSS, WLAN , NFC, FM, and/or IR technology, etc.
  • the GNSS may include global positioning system (global positioning system, GPS), global navigation satellite system (global navigation satellite system, GNSS), Beidou navigation satellite system (beidou navigation satellite system, BDS), quasi-zenith satellite system (quasi satellite system) -zenith satellite system, QZSS) and/or satellite based augmentation systems (SBAS).
  • global positioning system global positioning system, GPS
  • global navigation satellite system global navigation satellite system, GNSS
  • Beidou navigation satellite system beidou navigation satellite system, BDS
  • quasi-zenith satellite system quadsi satellite system
  • QZSS quasi-zenith satellite system
  • SBAS satellite based augmentation systems
  • the electronic device 100 implements a display function through a GPU, a display screen 194, an application processor, and the like.
  • the GPU is a microprocessor for image processing, and is connected to the display screen 194 and the application processor.
  • the GPU is used to perform mathematical and geometric calculations for graphics rendering.
  • Processor 110 may include one or more GPUs that execute program instructions to generate or alter display information.
  • Display screen 194 is used to display images, videos, and the like.
  • Display screen 194 includes a display panel.
  • the display panel can be a liquid crystal display (LCD), an organic light-emitting diode (OLED), an active-matrix organic light-emitting diode or an active-matrix organic light-emitting diode (active-matrix organic light).
  • LED organic light-emitting diode
  • AMOLED organic light-emitting diode
  • FLED flexible light-emitting diode
  • Mini LED Micro LED
  • quantum dot light emitting diode quantum dot light emitting diodes, QLED
  • the electronic device 100 may include one or N display screens 194 , where N is a positive integer greater than one.
  • the electronic device 100 may implement a shooting function through an ISP, a camera 193, a video codec, a GPU, a display screen 194, an application processor, and the like.
  • the ISP is used to process the data fed back by the camera 193 .
  • the shutter is opened, the light is transmitted to the camera photosensitive element through the lens, the light signal is converted into an electrical signal, and the camera photosensitive element transmits the electrical signal to the ISP for processing, and converts it into an image visible to the naked eye.
  • ISP can also perform algorithm optimization on image noise, brightness, and skin tone.
  • ISP can also optimize the exposure, color temperature and other parameters of the shooting scene.
  • the ISP may be provided in the camera 193 .
  • Camera 193 is used to capture still images or video.
  • the object is projected through the lens to generate an optical image onto the photosensitive element.
  • the photosensitive element may be a charge coupled device (CCD) or a complementary metal-oxide-semiconductor (CMOS) phototransistor.
  • CMOS complementary metal-oxide-semiconductor
  • the photosensitive element converts the optical signal into an electrical signal, and then transmits the electrical signal to the ISP to convert it into a digital image signal.
  • the ISP outputs the digital image signal to the DSP for processing.
  • DSP converts digital image signals into standard RGB, YUV and other formats of image signals.
  • the electronic device 100 may include 1 or N cameras 193 , where N is a positive integer greater than 1.
  • a digital signal processor is used to process digital signals, in addition to processing digital image signals, it can also process other digital signals. For example, when the electronic device 100 selects a frequency point, the digital signal processor is used to perform Fourier transform on the frequency point energy and so on.
  • Video codecs are used to compress or decompress digital video.
  • the electronic device 100 may support one or more video codecs.
  • the electronic device 100 can play or record videos of various encoding formats, such as: Moving Picture Experts Group (moving picture experts group, MPEG) 1, MPEG2, MPEG3, MPEG4 and so on.
  • MPEG Moving Picture Experts Group
  • MPEG2 moving picture experts group
  • MPEG3 MPEG4
  • MPEG4 Moving Picture Experts Group
  • the NPU is a neural-network (NN) computing processor.
  • NN neural-network
  • Applications such as intelligent cognition of the electronic device 100 can be implemented through the NPU, such as image recognition, face recognition, speech recognition, text understanding, and the like.
  • the external memory interface 120 can be used to connect an external memory card, such as a Micro SD card, to expand the storage capacity of the electronic device 100 .
  • the external memory card communicates with the processor 110 through the external memory interface 120 to realize the data storage function. For example to save files like music, video etc in external memory card.
  • Internal memory 121 may be used to store computer executable program code, which includes instructions.
  • the processor 110 executes various functional applications and data processing of the electronic device 100 by executing the instructions stored in the internal memory 121 .
  • the internal memory 121 may include a storage program area and a storage data area.
  • the storage program area can store an operating system, an application program required for at least one function (such as a sound playback function, an image playback function, etc.), and the like.
  • the storage data area may store data (such as audio data, phone book, etc.) created during the use of the electronic device 100 and the like.
  • the internal memory 121 may include high-speed random access memory, and may also include non-volatile memory, such as at least one magnetic disk storage device, flash memory device, universal flash storage (UFS), and the like.
  • the electronic device 100 may implement audio functions through an audio module 170, a speaker 170A, a receiver 170B, a microphone 170C, an earphone interface 170D, an application processor, and the like. Such as music playback, recording, etc.
  • the audio module 170 is used for converting digital audio information into analog audio signal output, and also for converting analog audio input into digital audio signal. Audio module 170 may also be used to encode and decode audio signals. In some embodiments, the audio module 170 may be provided in the processor 110 , or some functional modules of the audio module 170 may be provided in the processor 110 .
  • Speaker 170A also referred to as a "speaker" is used to convert audio electrical signals into sound signals.
  • the electronic device 100 can listen to music through the speaker 170A, or listen to a hands-free call.
  • the receiver 170B also referred to as "earpiece" is used to convert audio electrical signals into sound signals.
  • the voice can be answered by placing the receiver 170B close to the human ear.
  • the microphone 170C also called “microphone” or “microphone” is used to convert sound signals into electrical signals.
  • the user can make a sound by approaching the microphone 170C through a human mouth, and input the sound signal into the microphone 170C.
  • the electronic device 100 may be provided with at least one microphone 170C. In other embodiments, the electronic device 100 may be provided with two microphones 170C, which can implement a noise reduction function in addition to collecting sound signals. In other embodiments, the electronic device 100 may further be provided with three, four or more microphones 170C to collect sound signals, reduce noise, identify sound sources, and implement directional recording functions.
  • the earphone jack 170D is used to connect wired earphones.
  • the earphone interface 170D can be the USB interface 130, or can be a 3.5mm open mobile terminal platform (OMTP) standard interface, a cellular telecommunications industry association of the USA (CTIA) standard interface.
  • OMTP open mobile terminal platform
  • CTIA cellular telecommunications industry association of the USA
  • the pressure sensor 180A is used to sense pressure signals, and can convert the pressure signals into electrical signals.
  • the pressure sensor 180A may be provided on the display screen 194 .
  • the capacitive pressure sensor may be comprised of at least two parallel plates of conductive material. When a force is applied to the pressure sensor 180A, the capacitance between the electrodes changes.
  • the electronic device 100 determines the intensity of the pressure according to the change in capacitance. When a touch operation acts on the display screen 194, the electronic device 100 detects the intensity of the touch operation according to the pressure sensor 180A.
  • the electronic device 100 may also calculate the touched position according to the detection signal of the pressure sensor 180A.
  • touch operations acting on the same touch position but with different touch operation intensities may correspond to different operation instructions. For example, when a touch operation whose intensity is less than the first pressure threshold acts on the short message application icon, the instruction for viewing the short message is executed. When a touch operation with a touch operation intensity greater than or equal to the first pressure threshold acts on the short message application icon, the instruction to create a new short message is executed.
  • the gyro sensor 180B may be used to determine the motion attitude of the electronic device 100 .
  • the angular velocity of electronic device 100 about three axes ie, x, y, and z axes
  • the gyro sensor 180B can be used for image stabilization.
  • the gyro sensor 180B detects the shaking angle of the electronic device 100, calculates the distance that the lens module needs to compensate according to the angle, and allows the lens to offset the shaking of the electronic device 100 through reverse motion to achieve anti-shake.
  • the gyro sensor 180B can also be used for navigation and somatosensory game scenarios.
  • the air pressure sensor 180C is used to measure air pressure.
  • the electronic device 100 calculates the altitude through the air pressure value measured by the air pressure sensor 180C to assist in positioning and navigation.
  • the magnetic sensor 180D includes a Hall sensor.
  • the electronic device 100 can detect the opening and closing of the flip holster using the magnetic sensor 180D.
  • the electronic device 100 can detect the opening and closing of the flip according to the magnetic sensor 180D. Further, according to the detected opening and closing state of the leather case or the opening and closing state of the flip cover, characteristics such as automatic unlocking of the flip cover are set.
  • the acceleration sensor 180E can detect the magnitude of the acceleration of the electronic device 100 in various directions (generally three axes).
  • the magnitude and direction of gravity can be detected when the electronic device 100 is stationary. It can also be used to identify the posture of electronic devices, and can be used in applications such as horizontal and vertical screen switching, pedometers, etc.
  • the electronic device 100 can measure the distance through infrared or laser. In some embodiments, when shooting a scene, the electronic device 100 can use the distance sensor 180F to measure the distance to achieve fast focusing.
  • Proximity light sensor 180G may include, for example, light emitting diodes (LEDs) and light detectors, such as photodiodes.
  • the light emitting diodes may be infrared light emitting diodes.
  • the electronic device 100 emits infrared light to the outside through the light emitting diode.
  • Electronic device 100 uses photodiodes to detect infrared reflected light from nearby objects. When sufficient reflected light is detected, it can be determined that there is an object near the electronic device 100 . When insufficient reflected light is detected, the electronic device 100 may determine that there is no object near the electronic device 100 .
  • the electronic device 100 can use the proximity light sensor 180G to detect that the user holds the electronic device 100 close to the ear to talk, so as to automatically turn off the screen to save power.
  • Proximity light sensor 180G can also be used in holster mode, pocket mode automatically unlocks and locks the screen.
  • the ambient light sensor 180L is used to sense ambient light brightness.
  • the electronic device 100 can adaptively adjust the brightness of the display screen 194 according to the perceived ambient light brightness.
  • the ambient light sensor 180L can also be used to automatically adjust the white balance when taking pictures.
  • the ambient light sensor 180L can also cooperate with the proximity light sensor 180G to detect whether the electronic device 100 is in a pocket, so as to prevent accidental touch.
  • the fingerprint sensor 180H is used to collect fingerprints.
  • the electronic device 100 can use the collected fingerprint characteristics to realize fingerprint unlocking, accessing application locks, taking pictures with fingerprints, answering incoming calls with fingerprints, and the like.
  • the temperature sensor 180J is used to detect the temperature.
  • the electronic device 100 uses the temperature detected by the temperature sensor 180J to execute a temperature processing strategy. For example, when the temperature reported by the temperature sensor 180J exceeds a threshold value, the electronic device 100 reduces the performance of the processor located near the temperature sensor 180J in order to reduce power consumption and implement thermal protection.
  • the electronic device 100 when the temperature is lower than another threshold, the electronic device 100 heats the battery 142 to avoid abnormal shutdown of the electronic device 100 caused by the low temperature.
  • the electronic device 100 boosts the output voltage of the battery 142 to avoid abnormal shutdown caused by low temperature.
  • Touch sensor 180K also called “touch panel”.
  • the touch sensor 180K may be disposed on the display screen 194 , and the touch sensor 180K and the display screen 194 form a touch screen, also called a “touch screen”.
  • the touch sensor 180K is used to detect a touch operation on or near it.
  • the touch sensor can pass the detected touch operation to the application processor to determine the type of touch event.
  • Visual output related to touch operations may be provided through display screen 194 .
  • the touch sensor 180K may also be disposed on the surface of the electronic device 100 , which is different from the location where the display screen 194 is located.
  • the bone conduction sensor 180M can acquire vibration signals.
  • the bone conduction sensor 180M can acquire the vibration signal of the vibrating bone mass of the human voice.
  • the bone conduction sensor 180M can also contact the pulse of the human body and receive the blood pressure beating signal.
  • the bone conduction sensor 180M can also be disposed in the earphone, combined with the bone conduction earphone.
  • the audio module 170 can analyze the voice signal based on the vibration signal of the vocal vibration bone block obtained by the bone conduction sensor 180M, so as to realize the voice function.
  • the application processor can analyze the heart rate information based on the blood pressure beat signal obtained by the bone conduction sensor 180M, and realize the function of heart rate detection.
  • the keys 190 include a power-on key, a volume key, and the like. Keys 190 may be mechanical keys. It can also be a touch key.
  • the electronic device 100 may receive key inputs and generate key signal inputs related to user settings and function control of the electronic device 100 .
  • Motor 191 can generate vibrating cues.
  • the motor 191 can be used for vibrating alerts for incoming calls, and can also be used for touch vibration feedback.
  • touch operations acting on different applications can correspond to different vibration feedback effects.
  • the motor 191 can also correspond to different vibration feedback effects for touch operations on different areas of the display screen 194 .
  • Different application scenarios for example: time reminder, receiving information, alarm clock, games, etc.
  • the touch vibration feedback effect can also support customization.
  • the indicator 192 can be an indicator light, which can be used to indicate the charging state, the change of the power, and can also be used to indicate a message, a missed call, a notification, and the like.
  • the SIM card interface 195 is used to connect a SIM card.
  • the SIM card can be contacted and separated from the electronic device 100 by inserting into the SIM card interface 195 or pulling out from the SIM card interface 195 .
  • the electronic device 100 may support 1 or N SIM card interfaces, where N is a positive integer greater than 1.
  • the SIM card interface 195 can support Nano SIM card, Micro SIM card, SIM card and so on. Multiple cards can be inserted into the same SIM card interface 195 at the same time. The types of the plurality of cards may be the same or different.
  • the SIM card interface 195 can also be compatible with different types of SIM cards.
  • the SIM card interface 195 may also be compatible with external memory cards.
  • the electronic device 100 interacts with the network through the SIM card to implement functions such as call and data communication.
  • the electronic device 100 employs an eSIM, ie: an embedded SIM card.
  • the eSIM card can be embedded in the electronic device 100 and cannot be separated from the electronic device 100 .
  • the electronic device provided in this embodiment can execute the foregoing method embodiments, and the implementation principles and technical effects thereof are similar, and details are not described herein again.
  • Embodiments of the present application further provide a computer-readable storage medium, on which a computer program is stored, and when the computer program is executed by a processor, the method described in the foregoing method embodiment is implemented.
  • the embodiments of the present application further provide a computer program product, when the computer program product runs on the electronic device, the electronic device implements the method described in the above method embodiments when executed.
  • An embodiment of the present application further provides a chip system, including a processor, where the processor is coupled to a memory, and the processor executes a computer program stored in the memory to implement the method described in the above method embodiments.
  • the chip system may be a single chip or a chip module composed of multiple chips.
  • the computer program product includes one or more computer instructions.
  • the computer may be a general purpose computer, special purpose computer, computer network, or other programmable device.
  • the computer instructions may be stored in or transmitted over a computer-readable storage medium. The computer instructions can be sent from one website site, computer, server or data center to another website site, computer, server or data center for transmission.
  • the computer-readable storage medium may be any available medium that can be accessed by a computer or a data storage device such as a server, data center, etc. that includes an integration of one or more available media.
  • the usable medium may be a magnetic medium (eg, a floppy disk, a hard disk, or a magnetic tape), an optical medium (eg, a DVD), or a semiconductor medium (eg, a Solid State Disk (SSD)), and the like.
  • the process can be completed by instructing the relevant hardware by a computer program, and the program can be stored in a computer-readable storage medium.
  • the program When the program is executed , which may include the processes of the foregoing method embodiments.
  • the aforementioned storage medium may include: ROM or random storage memory RAM, magnetic disks or optical disks and other mediums that can store program codes.
  • the disclosed apparatus/device and method may be implemented in other manners.
  • the apparatus/equipment embodiments described above are only illustrative.
  • the division of the modules or units is only a logical function division.
  • the shown or discussed mutual coupling or direct coupling or communication connection may be through some interfaces, indirect coupling or communication connection of devices or units, and may be in electrical, mechanical or other forms.
  • the term “if” may be contextually interpreted as “when” or “once” or “in response to determining” or “in response to detecting “.
  • the phrases “if it is determined” or “if the [described condition or event] is detected” may be interpreted, depending on the context, to mean “once it is determined” or “in response to the determination” or “once the [described condition or event] is detected. ]” or “in response to detection of the [described condition or event]”.
  • references in this specification to "one embodiment” or “some embodiments” and the like mean that a particular feature, structure or characteristic described in connection with the embodiment is included in one or more embodiments of the present application.
  • appearances of the phrases “in one embodiment,” “in some embodiments,” “in other embodiments,” “in other embodiments,” etc. in various places in this specification are not necessarily All refer to the same embodiment, but mean “one or more but not all embodiments” unless specifically emphasized otherwise.
  • the terms “including”, “including”, “having” and their variants mean “including but not limited to” unless specifically emphasized otherwise.

Abstract

Provided are an interaction method and apparatus, and an electronic device, which relate to the technical field of intelligent control. The method comprises: displaying an editing interface, wherein the editing interface comprises a trigger condition and a first execution item, and the first execution item comprises a first external device and first execution content; changing the first execution item into a second execution item in response to a first operation on the first execution item, wherein the second execution item comprises a second external device and second execution content, with the second external device differing from the first external device, and/or the first execution content differing from the second execution content. By means of the technical solution provided by the present application, a user can easily adjust different parameters of execution items by means of different adjustable parameters, such that a parameter setting path can be shortened, and the editing efficiency can be improved.

Description

交互方法、装置和电子设备Interactive method, apparatus and electronic device
本申请要求于2020年09月08日提交国家知识产权局、申请号为202010937450.9、申请名称为“交互方法、装置和电子设备”的中国专利申请的优先权,其全部内容通过引用结合在本申请中。This application claims the priority of a Chinese patent application with an application number of 202010937450.9 and an application title of "Interactive Method, Apparatus and Electronic Equipment" filed with the State Intellectual Property Office on September 08, 2020, the entire contents of which are incorporated herein by reference middle.
技术领域technical field
本申请涉及智能控制技术领域,尤其涉及一种交互方法、装置和电子设备。The present application relates to the technical field of intelligent control, and in particular, to an interaction method, apparatus and electronic device.
背景技术Background technique
随着网络技术和计算机技术的快速发展,智能设备的种类和功能也更加丰富。如何控制智能设备为生活带来便利,成为人们关注的问题。With the rapid development of network technology and computer technology, the types and functions of smart devices are also more abundant. How to control smart devices to bring convenience to life has become a concern of people.
为了便于用户使用,一些应用程序(application,APP)提供了智能控制功能,用户可以通过该功能实现对一个或多个智能设备的快捷控制。在具体实现时,APP一般会提供不同的场景供用户选择和编排,用户可以根据需要对场景中涉及的智能设备的种类和相关参数进行编排,以实现在场景被触发时,控制场景中的各智能设备实现对应的功能。但是目前的这些APP的场景的编辑效率普遍不够高效。For the convenience of users, some application programs (application, APP) provide a smart control function, through which the user can implement quick control of one or more smart devices. In the specific implementation, the APP generally provides different scenarios for the user to choose and arrange. The user can arrange the types and related parameters of the smart devices involved in the scenario according to their needs, so as to realize the control of each scene in the scenario when the scenario is triggered. Smart devices implement corresponding functions. However, the editing efficiency of the current scenes of these APPs is generally not efficient enough.
发明内容SUMMARY OF THE INVENTION
有鉴于此,本申请提供一种交互方法、装置和电子设备,用于提高编辑效率。In view of this, the present application provides an interactive method, apparatus and electronic device for improving editing efficiency.
为了实现上述目的,第一方面,本申请实施例提供一种交互方法,应用于电子设备,包括:显示编辑界面,该编辑界面包括触发条件和第一执行项,第一执行项包括第一外部设备和第一执行内容;响应于对第一执行项的第一操作,更改第一执行项为第二执行项,第二执行项包括第二外部设备和第二执行内容;其中,第二外部设备与第一外部设备不同,和/或,第一执行内容与第二执行内容不同。In order to achieve the above object, in the first aspect, an embodiment of the present application provides an interaction method, which is applied to an electronic device, including: displaying an editing interface, where the editing interface includes a trigger condition and a first execution item, and the first execution item includes a first external device and first execution content; in response to the first operation on the first execution item, the first execution item is changed to a second execution item, and the second execution item includes a second external device and a second execution content; wherein the second external The device is different from the first external device, and/or the first execution content is different from the second execution content.
其中,编辑界面可以是电子设备上的智能控制功能提供的场景编辑界面或其他快捷指令编辑界面;编辑界面中可以包括一个或多个执行项,第一执行项可以是编辑界面中的任一执行项。The editing interface may be a scene editing interface or other shortcut command editing interface provided by the intelligent control function on the electronic device; the editing interface may include one or more execution items, and the first execution item may be any execution item in the editing interface. item.
执行项中的外部设备(例如第一外部设备和第二外部设备)表示该执行项的执行设备,其可以是与电子设备建立关联关系的智能设备,比如可以是用户在电子设备上登录的用户账号所关联的智能家居设备、车载设备或智能健康设备等;执行项中具体可以显示执行设备的设备名或其他设备标识。The external devices (such as the first external device and the second external device) in the execution item represent the execution device of the execution item, which may be a smart device that establishes an association relationship with the electronic device, such as a user logging in on the electronic device. The smart home device, vehicle-mounted device, or smart health device associated with the account; the execution item can specifically display the device name or other device identifier of the execution device.
执行项中的执行内容可以包括:打开、关闭或播放等动作内容,还可以包括工作模式或多媒体内容等参数内容。比如:执行项“打开空气净化器A睡眠模式”,“空气净化器A”为执行设备、“打开”为动作内容、“睡眠模式”为参数内容。The execution content in the execution item may include action content such as opening, closing, or playing, and may also include parameter content such as working mode or multimedia content. For example: the execution item "turn on air purifier A sleep mode", "air purifier A" is the execution device, "open" is the action content, and "sleep mode" is the parameter content.
执行项中的执行设备和执行内容均为可调参数,即可支持编辑,用户可以选择执行设备和/或执行内容(即第一操作)对执行项进行编辑;对于某个执行项,第一执行项即表示编辑前的执行项,第二执行项即表示对该执行项进行编辑后形成的执行项,在用户再次编辑该执行项时,第二执行项又重新作为新的第一执行项。The execution equipment and execution content in the execution item are adjustable parameters, which can support editing, and the user can select the execution equipment and/or execution content (ie, the first operation) to edit the execution item; for an execution item, the first The execution item means the execution item before editing, and the second execution item means the execution item formed after editing the execution item. When the user edits the execution item again, the second execution item is used as the new first execution item again. .
电子设备在响应用户的第一操作时,可以按照预设的方式更改执行项内容,比如:上 述举例的执行项中,用户点击“打开”,执行项中“打开”更改为“关闭”。电子设备也可以显示对应的执行项编辑界面,通过用户在该界面中的编辑操作更改执行项内容;其中,执行项编辑界面可以是动作内容对应的动作编辑界面、执行设备对应的设备编辑界面或参数内容对应的参数编辑界面,其可以采用全屏或浮窗的形式展示。When responding to the user's first operation, the electronic device can change the content of the execution item in a preset manner. For example, in the execution item in the above example, the user clicks "Open", and the "Open" in the execution item is changed to "Close". The electronic device can also display a corresponding execution item editing interface, and the content of the execution item can be changed by the user's editing operation in the interface; wherein, the execution item editing interface can be an action editing interface corresponding to the action content, a device editing interface corresponding to the execution device, or The parameter editing interface corresponding to the parameter content can be displayed in the form of a full screen or a floating window.
上述交互方法中,编辑界面中执行项包括的外部设备和执行内容均为可调参数,这样可以方便用户通过不同的可调参数调节执行项的不同参数,从而可以缩短参数设置路径,提高编辑效率。In the above interaction method, the external equipment and the execution content included in the execution item in the editing interface are all adjustable parameters, which can facilitate the user to adjust different parameters of the execution item through different adjustable parameters, thereby shortening the parameter setting path and improving the editing efficiency. .
在第一方面的一种可能的实施方式中,更改第一执行项为第二执行项的过程包括:接收对第一外部设备的第二操作;响应于第二操作,显示多个外部设备;接收从多个外部设备中选择第二外部设备的第三操作;响应于第二操作,更改第一外部设备为第二外部设备。In a possible implementation of the first aspect, the process of changing the first execution item to the second execution item includes: receiving a second operation on the first external device; in response to the second operation, displaying a plurality of external devices; receiving a third operation of selecting a second external device from among the plurality of external devices; in response to the second operation, changing the first external device to the second external device.
例如:对于“打开空气净化器A睡眠模式”,用户点击“空气净化器A”(即第二操作),电子设备可以显示对应的设备编辑界面,该界面中显示多个外部设备:空气净化器A和空气净化器B;用户可以从多个外部设备中选择第二外部设备空气净化器B(即第三操作),电子设备则对应的将执行项中的空气净化器A更改为空气净化器B。For example: for "turn on air purifier A sleep mode", the user clicks "air purifier A" (ie the second operation), the electronic device can display the corresponding device editing interface, which displays multiple external devices: air purifier A and air purifier B; the user can select the second external device, air purifier B, from multiple external devices (ie, the third operation), and the electronic device correspondingly changes the air purifier A in the execution item to an air purifier. B.
在第一方面的一种可能的实施方式中,更改第一执行项为第二执行项的过程包括:接收对第一执行内容的第四操作;响应于第四操作,显示多个执行内容;接收从多个动作指令中选择第二执行内容的第五操作;响应于第五操作,更改第一执行内容为第二执行内容。In a possible implementation of the first aspect, the process of changing the first execution item to the second execution item includes: receiving a fourth operation on the first execution content; in response to the fourth operation, displaying a plurality of execution contents; A fifth operation of selecting the second execution content from the plurality of action instructions is received; in response to the fifth operation, the first execution content is changed to the second execution content.
例如:对于“打开空气净化器A睡眠模式”,用户点击“睡眠模式”(即第四操作),电子设备可以显示对应的参数编辑界面,该界面中显示多个执行内容:可用于选择睡眠模式、自动模式或手动模式的模式选项、风速选项和定时关闭选项;用户可以从多个执行内容中选择第二执行内容自动模式(即第五操作),电子设备则对应的将执行项中的睡眠模式更改为自动模式。For example: for "turn on the sleep mode of air purifier A", the user clicks "sleep mode" (ie, the fourth operation), the electronic device can display the corresponding parameter editing interface, and the interface displays multiple execution contents: it can be used to select the sleep mode , mode options of automatic mode or manual mode, wind speed options and timing shutdown options; the user can select the second execution content automatic mode (ie the fifth operation) from multiple execution contents, and the electronic device will execute the sleep in the item correspondingly The mode is changed to automatic mode.
在第一方面的一种可能的实施方式中,多个外部设备为满足预设设备参数的外部设备。其中,该预设设备参数可以从执行项对应的目标执行指令中获取,目标执行指令可以是可支持控制多个智能设备的设备集控制指令,满足预设设备参数的外部设备形成目标执行指令的设备集。In a possible implementation manner of the first aspect, the plurality of external devices are external devices that satisfy preset device parameters. The preset device parameters can be obtained from the target execution instruction corresponding to the execution item, and the target execution instruction can be a device set control instruction that can support controlling multiple smart devices, and an external device that satisfies the preset device parameters forms the target execution instruction. equipment set.
例如:目标执行指令为“打开【空气净化器#全集】”,“空气净化器#全集”即为预设设备参数;若电子设备关联的空气净化器包括空气净化器A和空气净化器B,则该指令对应的执行项中满足预设设备参数的外部设备包括空气净化器A和空气净化器B。For example: the target execution command is "Open [Air Purifier#Complete Collection]", and "Air Purifier#Complete Collection" is the preset device parameter; if the air purifier associated with the electronic device includes air purifier A and air purifier B, Then, the external devices that satisfy the preset device parameters in the execution items corresponding to the instruction include air purifier A and air purifier B.
在第一方面的一种可能的实施方式中,该方法还包括:根据第二执行项和触发条件生成执行流程,执行流程包括触发条件和第二执行项对应的执行动作,执行动作用于控制第二外部设备执行第二执行内容;响应于满足触发条件,执行执行动作。In a possible implementation manner of the first aspect, the method further includes: generating an execution flow according to the second execution item and the trigger condition, the execution flow including the execution action corresponding to the trigger condition and the second execution item, and the execution action is used to control The second external device executes the second execution content; in response to satisfying the trigger condition, the execution action is executed.
具体的,用户可以在编辑完成后进行保存,电子设备则可以根据第二执行项和触发条件生成执行流程。当触发条件满足时,则可以执行第二执行项对应的执行动作。Specifically, the user can save after editing, and the electronic device can generate the execution flow according to the second execution item and the trigger condition. When the trigger condition is satisfied, the execution action corresponding to the second execution item can be executed.
例如:第二执行项为“打开空气净化器B自动模式”,触发条件为“当每天08:00-21:00智能门锁开锁时”,用户在编辑完成后保存;则当18:00智能门锁开锁时,满足该触发条件,电子设备则可以控制空气净化器B打开,并运行自动模式。For example: the second execution item is "open air purifier B automatic mode", the trigger condition is "when the smart door lock is unlocked from 08:00-21:00 every day", the user saves after editing; When the door lock is unlocked and the trigger condition is met, the electronic device can control the air purifier B to open and run the automatic mode.
在第一方面的一种可能的实施方式中,该方法还包括:根据第二执行项和触发条件生成控件;显示控件;响应于对控件的第六操作,控制第二外部设备执行第二执行内容。In a possible implementation of the first aspect, the method further includes: generating a control according to the second execution item and the trigger condition; displaying the control; and controlling the second external device to perform the second execution in response to the sixth operation on the control content.
具体的,以编辑界面为场景编辑界面为例,电子设备可以提供场景管理功能,例如提供“我的场景界面”,用户在场景编辑界面编辑完成后,可以将对应的场景添加到我的场景界面中进行管理。电子设备可以根据用户在场景编辑界面中编辑的内容生成控件,该控件可以是卡片、图标或菜单项等;用户可以点击该控件(即第六操作),电子设备可以控制第二外部设备执行第二执行内容。Specifically, taking the editing interface as the scene editing interface as an example, the electronic device can provide a scene management function, such as providing "My Scene Interface". After editing the scene editing interface, the user can add the corresponding scene to the My Scene interface. in management. The electronic device can generate a control according to the content edited by the user in the scene editing interface, and the control can be a card, an icon or a menu item, etc.; the user can click on the control (ie, the sixth operation), and the electronic device can control the second external device to perform the first operation. 2. Execution content.
其中,场景可以是手动场景或自动场景,手动场景中的触发条件涉及手动操作,比如触发条件为:“当点击场景卡片时”;自动场景中的触发条件不涉及手动操作,比如触发条件为:“当每天08:00-21:00智能门锁开锁时”。通过上述方法,自动场景也可以通过手动方式触发,这样相当于是将相似度高的自动场景和手动场景整合为同一场景,用户在场景发现、场景编辑和场景管理时也可以一次完成,而不用分多次发现、编排和管理,因而可以提高用户使用的便利性,并可以在一定程度上提高场景的编辑效率。Among them, the scene can be a manual scene or an automatic scene. The trigger condition in the manual scene involves manual operation, for example, the trigger condition is: "when the scene card is clicked"; the trigger condition in the automatic scene does not involve manual operation, for example, the trigger condition is: "When the smart door lock is unlocked from 08:00-21:00 every day". Through the above method, the automatic scene can also be triggered manually, which is equivalent to integrating the automatic scene and the manual scene with high similarity into the same scene. Users can also complete scene discovery, scene editing and scene management at one time without dividing the scene. It can be found, arranged and managed many times, which can improve the convenience of users and improve the editing efficiency of scenes to a certain extent.
自动场景被手动触发后,电子设备可以对自动场景的触发条件进行判断,根据判断结果确定执行结果。After the automatic scene is manually triggered, the electronic device can judge the triggering condition of the automatic scene, and determine the execution result according to the judgment result.
具体的,每个场景可以包括一个或多个触发条件,每个触发条件可以对应不同的执行流程,比如某场景的场景内容包括:执行流程1和执行流程2,其中,执行流程1为:当下雨时(触发条件1),播放音乐a(执行动作1);执行流程1为:当刮台风时(触发条件2),播放音乐b(执行动作2)。Specifically, each scenario may include one or more triggering conditions, and each triggering condition may correspond to a different execution flow. For example, the scene content of a certain scenario includes: execution flow 1 and execution flow 2, where execution flow 1 is: the current When it rains (trigger condition 1), play music a (execute action 1); the execution flow 1 is: when a typhoon blows (trigger condition 2), play music b (execute action 2).
如果自动场景包括多个触发条件,电子设备则可以判断当前情况满足哪个触发条件,如果满足某个触发条件,则可以执行该触发条件对应的执行流程,如果都不满足,则可以由用户选择执行哪个执行流程,或者也可以随机选择一个执行流程执行。如果自动场景只包括一个触发条件,电子设备则可以在满足该触发条件时,执行该触发条件对应的执行流程;在不满足该触发条件时,由用户选择是否执行自动场景的执行流程。If the automatic scene includes multiple triggering conditions, the electronic device can determine which triggering condition the current situation satisfies. If a certain triggering condition is met, the execution process corresponding to the triggering condition can be executed. If none of the triggering conditions are met, the user can choose to execute it. Which execution process, or can also randomly select an execution process to execute. If the automatic scene includes only one trigger condition, the electronic device can execute the execution flow corresponding to the trigger condition when the trigger condition is met; when the trigger condition is not met, the user can choose whether to execute the execution flow of the automatic scene.
在第一方面的一种可能的实施方式中,第二执行项中的第二外部设备可以包括多个,例如:执行项“打开空气净化器A、空气净化器B睡眠模式”,其外部设备(即执行设备)包括两个:空气净化器A和空气净化器B,用户在调节执行内容时,可以同时对这两个外部设备进行调节,这样可以进一步提高编辑效率。In a possible implementation of the first aspect, the second external device in the second execution item may include multiple, for example: the execution item "turn on air purifier A, air purifier B sleep mode", the external device (that is, the execution device) includes two: air purifier A and air purifier B. When the user adjusts the execution content, the user can adjust the two external devices at the same time, which can further improve the editing efficiency.
第二方面,本申请实施例提供一种交互方法,包括:接收用户对场景的编辑触发操作;响应于所述编辑触发操作,显示所述场景的场景编辑界面,所述场景编辑界面中包括所述场景的每个执行动作对应的执行项,所述执行项用于显示对应的执行动作的功能描述文本,支持参数调节的执行动作对应的功能描述文本中包括所述执行动作的可调参数,所述可调参数可编辑。In a second aspect, an embodiment of the present application provides an interaction method, including: receiving a user's editing trigger operation on a scene; in response to the editing trigger operation, displaying a scene editing interface of the scene, where the scene editing interface includes all an execution item corresponding to each execution action of the scene, the execution item is used to display the function description text of the corresponding execution action, and the function description text corresponding to the execution action supporting parameter adjustment includes the adjustable parameter of the execution action, The tunable parameters are editable.
上述交互方法中,场景编辑界面中显示触发条件和执行动作对应的执行项的功能描述文本,且功能描述文本中可以穿插一个或多个与场景的执行动作相关的可调参数,这样可以方便用户通过不同的可调参数调节执行设备的不同参数,从而可以缩短参数设置路径;而且,可调参数与场景相关,即在显示可调参数时过滤掉一些与场景无关的参数,这样可以简化参数编辑界面,因而上述交互方法可以提高场景的编辑效率。In the above interaction method, the scene editing interface displays the function description text of the execution item corresponding to the trigger condition and the execution action, and the function description text can be interspersed with one or more adjustable parameters related to the execution action of the scene, which is convenient for the user. Adjust different parameters of the execution device through different adjustable parameters, so that the parameter setting path can be shortened; moreover, the adjustable parameters are related to the scene, that is, some parameters unrelated to the scene are filtered out when the adjustable parameters are displayed, which can simplify parameter editing Therefore, the above interaction method can improve the editing efficiency of the scene.
在第二方面的一种可能的实施方式中,所述方法还包括:接收用户对所述可调参数的触发操作,并响应于所述触发操作,显示所述可调参数对应的参数编辑界面。In a possible implementation of the second aspect, the method further includes: receiving a user triggering operation on the adjustable parameter, and in response to the triggering operation, displaying a parameter editing interface corresponding to the adjustable parameter .
在第二方面的一种可能的实施方式中,所述显示所述可调参数对应的参数编辑界面, 包括:以浮窗形式显示所述可调参数对应的参数编辑界面。这样可以方便用户了解当前正在编辑的可调参数。In a possible implementation manner of the second aspect, the displaying the parameter editing interface corresponding to the adjustable parameter includes: displaying the parameter editing interface corresponding to the adjustable parameter in the form of a floating window. In this way, it is convenient for users to know the tunable parameter that is currently being edited.
在第二方面的一种可能的实施方式中,所述执行项为可供选择的选项,所述场景编辑界面中显示有每个执行项的选择状态。这样用户可以选择是否执行某个执行项对应的执行工作,从而可以提高场景编辑的灵活性。In a possible implementation manner of the second aspect, the execution item is a selectable option, and the selection state of each execution item is displayed in the scene editing interface. In this way, the user can choose whether to execute the execution work corresponding to a certain execution item, thereby improving the flexibility of scene editing.
在第二方面的一种可能的实施方式中,至少一个执行动作涉及的执行设备包括多个,多个执行设备执行的功能之间存在关联关系。这样可以提高智能控制功能的多样性。In a possible implementation manner of the second aspect, at least one execution device involved in executing an action includes multiple execution devices, and there is an association relationship between functions executed by the multiple execution devices. This increases the variety of intelligent control functions.
在第二方面的一种可能的实施方式中,所述场景的各执行动作对应的执行指令中包括至少一条目标执行指令,所述目标执行指令支持控制多个对象;所述显示所述场景的场景编辑界面,包括:对于每条目标执行指令,根据所述目标执行指令的执行项类型和预设的执行项类型与执行项显示规则之间的对应关系,在所述场景编辑界面中显示所述目标执行指令对应的执行项。这样可以提高开发效率,并可以生成更加合理的执行项。In a possible implementation manner of the second aspect, the execution instructions corresponding to each execution action of the scene include at least one target execution instruction, and the target execution instruction supports controlling multiple objects; The scene editing interface includes: for each target execution instruction, according to the execution item type of the target execution instruction and the corresponding relationship between the preset execution item type and the execution item display rule, displaying all the execution items in the scene editing interface. Specifies the execution item corresponding to the target execution instruction. This can improve development efficiency and generate more reasonable execution items.
在第二方面的一种可能的实施方式中,所述执行项类型包括第一类型和第二类型,所述第一类型对应的执行项显示规则包括:所述目标执行指令对应的执行项包括至少一条,所述目标执行指令对应的执行项与所述目标执行指令所控制的对象集中包括的对象一一对应,每个对象对应的执行项中包括用于调节所述对象的指定功能参数的可调参数;所述第二类型对应的执行项显示规则包括:所述目标执行指令对应的执行项包括一条,所述目标执行指令对应的执行项中指示了所述对象集中的各个对象。In a possible implementation manner of the second aspect, the execution item types include a first type and a second type, and the execution item display rule corresponding to the first type includes: the execution item corresponding to the target execution instruction includes At least one, the execution item corresponding to the target execution instruction is in one-to-one correspondence with the objects included in the set of objects controlled by the target execution instruction, and the execution item corresponding to each object includes an item for adjusting the specified function parameters of the object. Adjustable parameters; the execution item display rule corresponding to the second type includes: the execution item corresponding to the target execution instruction includes one item, and the execution item corresponding to the target execution instruction indicates each object in the object set.
在第二方面的一种可能的实施方式中,所述第二类型对应的执行项显示规则还包括:若所述目标执行指令指示所述对象集中的对象的指定功能参数可调,且所述对象集中包括的各个对象之间具有相同或相似的指定功能参数,则所述目标执行指令对应的执行项中包括用于调节所述相同或相似的指定功能参数的可调参数。In a possible implementation manner of the second aspect, the execution item display rule corresponding to the second type further includes: if the target execution instruction indicates that the specified function parameter of the object in the object set is adjustable, and the If each object included in the object set has the same or similar specified function parameters, the execution item corresponding to the target execution instruction includes adjustable parameters for adjusting the same or similar specified function parameters.
该实施方式中,同一执行项中可以指示多个对象,并可以显示各对象之间相同或相似的指定功能参数对应的可调参数,这样用户可以同时对多个对象进行编辑,从而可以提高编辑效率。In this embodiment, multiple objects can be indicated in the same execution item, and adjustable parameters corresponding to the same or similar specified function parameters among the objects can be displayed, so that the user can edit multiple objects at the same time, thereby improving the editing performance. effectiveness.
在第二方面的一种可能的实施方式中,所述第二类型对应的执行项显示规则还包括:所述目标执行指令对应的执行项中包括所述对象集对应的可调参数,所述对象集对应的可调参数用于调节所述目标执行指令对应的执行项所控制的对象。这样用户可以对执行项所控制的对象进行调节,因而可以提高场景编辑的灵活性。In a possible implementation manner of the second aspect, the execution item display rule corresponding to the second type further includes: the execution item corresponding to the target execution instruction includes adjustable parameters corresponding to the object set, the The adjustable parameter corresponding to the object set is used to adjust the object controlled by the execution item corresponding to the target execution instruction. In this way, the user can adjust the object controlled by the execution item, thereby improving the flexibility of scene editing.
在第二方面的一种可能的实施方式中,所述场景的各执行动作对应的执行指令中包括至少一条目标执行指令,所述目标执行指令支持控制多个对象;所述显示所述场景的场景编辑界面,包括:对于每条目标执行指令,根据所述目标执行指令的对象集的属性和预设的对象集的属性与执行项显示规则之间的对应关系,在所述场景编辑界面中显示所述目标执行指令对应的执行项。In a possible implementation manner of the second aspect, the execution instructions corresponding to each execution action of the scene include at least one target execution instruction, and the target execution instruction supports controlling multiple objects; The scene editing interface includes: for each target execution instruction, according to the attribute of the object execution instruction of the target execution instruction and the corresponding relationship between the attribute of the preset object set and the execution item display rule, in the scene editing interface The execution item corresponding to the target execution instruction is displayed.
在第二方面的一种可能的实施方式中,对象集的属性包括空集、全集和指定集,所述空集对应的执行项显示规则包括:所述目标执行指令对应的执行项包括一条,所述目标执行指令对应的执行项中包括所述对象集对应的可调参数,其中,所述对象集对应的可调参数用于调节所述目标执行指令对应的执行项所控制的对象,当所述对象集中包括的对象为多个时,所述对象集对应的可调参数指示的对象为空;当所述对象集中包括的对象为一个 时,所述对象集对应的可调参数指示的对象为所述对象集中包括的对象。In a possible implementation manner of the second aspect, the attributes of the object set include an empty set, a complete set, and a specified set, and the execution item display rule corresponding to the empty set includes: the execution item corresponding to the target execution instruction includes one, The execution item corresponding to the target execution instruction includes adjustable parameters corresponding to the object set, wherein the adjustable parameter corresponding to the object set is used to adjust the object controlled by the execution item corresponding to the target execution instruction. When the object set includes multiple objects, the object indicated by the adjustable parameter corresponding to the object set is empty; when the object set includes one object, the object indicated by the adjustable parameter corresponding to the object set is empty. Objects are objects included in the set of objects.
通过上述实施方式,可以使场景编辑更为灵活。Through the above-mentioned embodiments, scene editing can be made more flexible.
在第二方面的一种可能的实施方式中,所述空集对应的执行项显示规则还包括:当所述对象集中包括的对象为多个时,所述目标执行指令对应的执行项中显示有提示信息,所述提示信息用于提示用户通过所述对象集对应的可调参数调节所述执行项所控制的对象。这样可以方便用户了解执行项的功能,因而可以提高用户体验。In a possible implementation manner of the second aspect, the execution item display rule corresponding to the empty set further includes: when there are multiple objects included in the object set, displaying in the execution item corresponding to the target execution instruction There is prompt information, and the prompt information is used to prompt the user to adjust the object controlled by the execution item through the adjustable parameter corresponding to the object set. In this way, it is convenient for the user to understand the function of the execution item, thereby improving the user experience.
在第二方面的一种可能的实施方式中,所述全集和指定集对应的执行项显示规则包括:所述场景编辑界面中所述目标执行指令对应的执行项指示有所述对象集中包括的各个对象。In a possible implementation manner of the second aspect, the execution item display rule corresponding to the complete set and the specified set includes: the execution item corresponding to the target execution instruction in the scene editing interface indicates that the execution items included in the object set are included. each object.
在第二方面的一种可能的实施方式中,所述场景编辑界面中显示有所述场景的触发条件的描述文本。这样可以方便用户了解场景的触发条件。In a possible implementation manner of the second aspect, a description text of the triggering condition of the scene is displayed in the scene editing interface. In this way, it is convenient for users to understand the triggering conditions of the scene.
在第二方面的一种可能的实施方式中,所述场景为支持自动触发的自动场景,所述描述文本中包括所述触发条件的可调参数。这样用户也可以对触发条件进行编辑,从而可以提高场景编辑的灵活性。In a possible implementation manner of the second aspect, the scenario is an automatic scenario that supports automatic triggering, and the description text includes adjustable parameters of the triggering condition. In this way, the user can also edit the trigger conditions, thereby improving the flexibility of scene editing.
在第二方面的一种可能的实施方式中,所述方法还包括:在满足所述场景的触发条件时,执行所述场景包含的执行动作;显示所述场景的执行状态。这样可以方便用户了解场景的执行状态。In a possible implementation manner of the second aspect, the method further includes: when a trigger condition of the scene is satisfied, executing an execution action included in the scene; and displaying an execution state of the scene. This makes it easier for users to understand the execution status of the scene.
在第二方面的一种可能的实施方式中,在所述执行所述场景包含的执行动作之后,所述方法还包括:若接收到用户对所述场景的终止触发操作,则响应于所述终止触发操作,终止执行所述场景的执行动作。这样可以提高场景控制的灵活性。In a possible implementation manner of the second aspect, after the executing the execution action included in the scenario, the method further includes: if a user triggering operation for terminating the scenario is received, responding to the Terminate the trigger operation, and terminate the execution of the execution action of the scene. This increases the flexibility of scene control.
在第二方面的一种可能的实施方式中,所述显示所述场景的执行状态,包括:在所述场景对应的场景卡片中显示所述场景的执行状态。In a possible implementation manner of the second aspect, the displaying the execution status of the scene includes: displaying the execution status of the scene in a scene card corresponding to the scene.
所述方法还包括:当所述场景处于执行中时,在所述场景卡片中显示终止控件;则所述停止触发操作包括对所述终止控件的触发操作。The method further includes: when the scene is being executed, displaying a termination control in the scene card; then the stopping the triggering operation includes a triggering operation on the termination control.
在第二方面的一种可能的实施方式中,所述场景为支持自动触发的自动场景,所述方法还包括:当接收到用户对所述场景的场景触发操作时,响应于所述场景触发操作,执行所述场景所包含的执行动作。这样自动场景也可以通过手动方式触发,从而可以提高用户使用的便利性,并且也相当于是将相似度高的自动场景和手动场景整合为同一场景,用户在场景发现、场景编排和场景管理时也可以一次完成,而不用分多次发现、编排和管理,因而可以提高用户使用的便利性,并可以在一定程度上提高场景编辑效率。In a possible implementation of the second aspect, the scene is an automatic scene that supports automatic triggering, and the method further includes: when receiving a scene triggering operation of the scene by the user, responding to the scene triggering operation, execute the execution action included in the scene. In this way, automatic scenes can also be triggered manually, which can improve the convenience of users, and is equivalent to integrating automatic scenes and manual scenes with high similarity into the same scene. It can be completed at one time instead of finding, arranging and managing multiple times, which can improve the convenience of users and improve the efficiency of scene editing to a certain extent.
在第二方面的一种可能的实施方式中,所述场景包括至少一个触发条件,每个触发条件具有对应的执行动作;所述响应于所述场景触发操作,执行所述场景所包含的执行动作,包括:响应于所述场景触发操作,若所述场景包括多个触发条件,则在满足至少一个触发条件的情况下,执行满足的触发条件对应的执行动作;在各触发条件均不满足的情况下,确定待执行的触发条件对应的执行动作,并执行确定的触发条件对应的执行动作;若所述场景包括一个触发条件,则在满足所述触发条件的情况下,执行所述场景的各个执行动作。这样可以提高场景执行结果的准确性。In a possible implementation manner of the second aspect, the scenario includes at least one trigger condition, and each trigger condition has a corresponding execution action; the triggering operation in response to the scenario executes the execution included in the scenario The action includes: in response to the scene triggering operation, if the scene includes multiple triggering conditions, in the case that at least one triggering condition is satisfied, executing the execution action corresponding to the satisfied triggering condition; if none of the triggering conditions is satisfied In the case of , determine the execution action corresponding to the trigger condition to be executed, and execute the execution action corresponding to the determined trigger condition; if the scene includes a trigger condition, execute the scene when the trigger condition is satisfied of each execution action. This can improve the accuracy of scene execution results.
在第二方面的一种可能的实施方式中,所述确定待执行的触发条件对应的执行动作,包括:提示用户选择待执行的触发条件对应的执行动作;根据用户的选择操作确定待执行 的触发条件对应的执行动作。这样可以提高场景执行的灵活性。In a possible implementation manner of the second aspect, the determining the execution action corresponding to the trigger condition to be executed includes: prompting the user to select the execution action corresponding to the trigger condition to be executed; determining the execution action to be executed according to the user's selection operation The execution action corresponding to the trigger condition. This increases the flexibility of scenario execution.
第三方面,本申请实施例提供一种交互装置,应用于电子设备,包括:In a third aspect, an embodiment of the present application provides an interaction device, which is applied to an electronic device, including:
显示模块,用于显示编辑界面,编辑界面包括触发条件和第一执行项,第一执行项包括第一外部设备和第一执行内容;a display module, configured to display an editing interface, the editing interface includes a trigger condition and a first execution item, and the first execution item includes a first external device and a first execution content;
处理模块,用于响应于对第一执行项的第一操作,更改第一执行项为第二执行项,第二执行项包括第二外部设备和第二执行内容;a processing module, configured to change the first execution item to a second execution item in response to a first operation on the first execution item, and the second execution item includes a second external device and a second execution content;
其中,第二外部设备与第一外部设备不同,和/或,第一执行内容与第二执行内容不同。Wherein, the second external device is different from the first external device, and/or the first execution content is different from the second execution content.
在第三方面的一种可能的实施方式中,该装置还包括:输入模块;In a possible implementation manner of the third aspect, the apparatus further includes: an input module;
输入模块用于:接收对第一外部设备的第二操作;The input module is used for: receiving a second operation on the first external device;
显示模块还用于:响应于第二操作,显示多个外部设备;The display module is further used for: displaying a plurality of external devices in response to the second operation;
输入模块还用于:接收从多个外部设备中选择第二外部设备的第三操作;The input module is further configured to: receive a third operation of selecting a second external device from the plurality of external devices;
处理模块还用于:响应于第二操作,更改第一外部设备为第二外部设备。The processing module is further configured to: in response to the second operation, change the first external device to the second external device.
在第三方面的一种可能的实施方式中,该装置还包括:输入模块;In a possible implementation manner of the third aspect, the apparatus further includes: an input module;
输入模块用于:接收对第一执行内容的第四操作;The input module is used for: receiving a fourth operation on the first execution content;
显示模块还用于:响应于第四操作,显示多个执行内容;The display module is further configured to: display a plurality of execution contents in response to the fourth operation;
输入模块还用于:接收从多个动作指令中选择第二执行内容的第五操作;The input module is further configured to: receive a fifth operation of selecting the second execution content from the plurality of action instructions;
处理模块还用于:响应于第五操作,更改第一执行内容为第二执行内容。The processing module is further configured to: in response to the fifth operation, change the first execution content to the second execution content.
在第三方面的一种可能的实施方式中,多个外部设备为满足预设设备参数的外部设备。In a possible implementation manner of the third aspect, the plurality of external devices are external devices that satisfy preset device parameters.
在第三方面的一种可能的实施方式中,处理模块还用于:根据第二执行项和触发条件生成执行流程,执行流程包括触发条件和第二执行项对应的执行动作,执行动作用于控制第二外部设备执行第二执行内容;响应于满足触发条件,执行执行动作。In a possible implementation manner of the third aspect, the processing module is further configured to: generate an execution flow according to the second execution item and the trigger condition, the execution flow includes the execution action corresponding to the trigger condition and the second execution item, and the execution action is used for The second external device is controlled to execute the second execution content; in response to satisfying the trigger condition, the execution action is executed.
在第三方面的一种可能的实施方式中,处理模块还用于:根据第二执行项和触发条件生成控件;显示模块还用于:显示控件;处理模块还用于:响应于对控件的第六操作,控制第二外部设备执行第二执行内容。In a possible implementation of the third aspect, the processing module is further configured to: generate a control according to the second execution item and the trigger condition; the display module is further configured to: display the control; the processing module is further configured to: respond to the control The sixth operation is to control the second external device to execute the second execution content.
第四方面,本申请实施例提供一种交互装置,包括:In a fourth aspect, an embodiment of the present application provides an interaction device, including:
输入模块,用于接收用户对场景的编辑触发操作;The input module is used to receive the user's editing trigger operation on the scene;
显示模块,用于响应于所述编辑触发操作,显示所述场景的场景编辑界面,所述场景编辑界面中包括所述场景的每个执行动作对应的执行项,所述执行项用于显示对应的执行动作的功能描述文本,支持参数调节的执行动作对应的功能描述文本中包括所述执行动作的可调参数,所述可调参数可编辑。A display module, configured to display a scene editing interface of the scene in response to the editing trigger operation, where the scene editing interface includes execution items corresponding to each execution action of the scene, and the execution items are used to display corresponding execution items. The function description text of the execution action, the function description text corresponding to the execution action that supports parameter adjustment includes the adjustable parameters of the execution action, and the adjustable parameters can be edited.
在第四方面的一种可能的实施方式中,所述输入模块还用于:接收用户对所述可调参数的触发操作;所述显示模块还用于响应于所述触发操作,显示所述可调参数对应的参数编辑界面。In a possible implementation manner of the fourth aspect, the input module is further configured to: receive a user triggering operation on the adjustable parameter; the display module is further configured to display the trigger operation in response to the triggering operation. The parameter editing interface corresponding to the adjustable parameter.
在第四方面的一种可能的实施方式中,所述显示模块具体用于:以浮窗形式显示所述可调参数对应的参数编辑界面。In a possible implementation manner of the fourth aspect, the display module is specifically configured to: display the parameter editing interface corresponding to the adjustable parameter in the form of a floating window.
在第四方面的一种可能的实施方式中,所述执行项为可供选择的选项,所述场景编辑界面中显示有每个执行项的选择状态。In a possible implementation manner of the fourth aspect, the execution item is a selectable option, and the selection state of each execution item is displayed in the scene editing interface.
在第四方面的一种可能的实施方式中,至少一个执行动作涉及的执行设备包括多个, 多个执行设备执行的功能之间存在关联关系。In a possible implementation manner of the fourth aspect, at least one execution device involved in executing an action includes multiple execution devices, and there is an association relationship between functions executed by the multiple execution devices.
在第四方面的一种可能的实施方式中,所述场景的各执行动作对应的执行指令中包括至少一条目标执行指令,所述目标执行指令支持控制多个对象;所述显示模块具体用于:对于每条目标执行指令,根据所述目标执行指令的执行项类型和预设的执行项类型与执行项显示规则之间的对应关系,在所述场景编辑界面中显示所述目标执行指令对应的执行项。In a possible implementation manner of the fourth aspect, the execution instructions corresponding to each execution action of the scene include at least one target execution instruction, and the target execution instruction supports controlling multiple objects; the display module is specifically used for : For each target execution instruction, according to the execution item type of the target execution instruction and the corresponding relationship between the preset execution item type and the execution item display rule, display the corresponding target execution instruction in the scene editing interface. execution item.
在第四方面的一种可能的实施方式中,所述执行项类型包括第一类型和第二类型,所述第一类型对应的执行项显示规则包括:所述目标执行指令对应的执行项包括至少一条,所述目标执行指令对应的执行项与所述目标执行指令所控制的对象集中包括的对象一一对应,每个对象对应的执行项中包括用于调节所述对象的指定功能参数的可调参数;所述第二类型对应的执行项显示规则包括:所述目标执行指令对应的执行项包括一条,所述目标执行指令对应的执行项中指示了所述对象集中的各个对象。In a possible implementation manner of the fourth aspect, the execution item types include a first type and a second type, and the execution item display rule corresponding to the first type includes: the execution item corresponding to the target execution instruction includes At least one, the execution item corresponding to the target execution instruction is in one-to-one correspondence with the objects included in the set of objects controlled by the target execution instruction, and the execution item corresponding to each object includes an item for adjusting the specified function parameters of the object. Adjustable parameters; the execution item display rule corresponding to the second type includes: the execution item corresponding to the target execution instruction includes one item, and the execution item corresponding to the target execution instruction indicates each object in the object set.
在第四方面的一种可能的实施方式中,所述第二类型对应的执行项显示规则还包括:若所述目标执行指令指示所述对象集中的对象的指定功能参数可调,且所述对象集中包括的各个对象之间具有相同或相似的指定功能参数,则所述目标执行指令对应的执行项中包括用于调节所述相同或相似的指定功能参数的可调参数。In a possible implementation manner of the fourth aspect, the execution item display rule corresponding to the second type further includes: if the target execution instruction indicates that the specified function parameters of the objects in the object set are adjustable, and the If each object included in the object set has the same or similar specified function parameters, the execution item corresponding to the target execution instruction includes adjustable parameters for adjusting the same or similar specified function parameters.
在第四方面的一种可能的实施方式中,所述第二类型对应的执行项显示规则还包括:所述目标执行指令对应的执行项中包括所述对象集对应的可调参数,所述对象集对应的可调参数用于调节所述目标执行指令对应的执行项所控制的对象。In a possible implementation manner of the fourth aspect, the execution item display rule corresponding to the second type further includes: the execution item corresponding to the target execution instruction includes adjustable parameters corresponding to the object set, the The adjustable parameter corresponding to the object set is used to adjust the object controlled by the execution item corresponding to the target execution instruction.
在第四方面的一种可能的实施方式中,所述场景的各执行动作对应的执行指令中包括至少一条目标执行指令,所述目标执行指令支持控制多个对象;所述显示模块具体用于:对于每条目标执行指令,根据所述目标执行指令的对象集的属性和预设的对象集的属性与执行项显示规则之间的对应关系,在所述场景编辑界面中显示所述目标执行指令对应的执行项。In a possible implementation manner of the fourth aspect, the execution instructions corresponding to each execution action of the scene include at least one target execution instruction, and the target execution instruction supports controlling multiple objects; the display module is specifically used for : For each target execution instruction, display the target execution in the scene editing interface according to the attributes of the object set of the target execution instruction and the corresponding relationship between the attributes of the preset object set and the execution item display rules The execution item corresponding to the instruction.
在第四方面的一种可能的实施方式中,对象集的属性包括空集、全集和指定集,所述空集对应的执行项显示规则包括:所述目标执行指令对应的执行项包括一条,所述目标执行指令对应的执行项中包括所述对象集对应的可调参数,其中,所述对象集对应的可调参数用于调节所述目标执行指令对应的执行项所控制的对象,当所述对象集中包括的对象为多个时,所述对象集对应的可调参数指示的对象为空;当所述对象集中包括的对象为一个时,所述对象集对应的可调参数指示的对象为所述对象集中包括的对象。In a possible implementation manner of the fourth aspect, the attributes of the object set include an empty set, a complete set, and a specified set, and the execution item display rule corresponding to the empty set includes: the execution item corresponding to the target execution instruction includes one, The execution item corresponding to the target execution instruction includes adjustable parameters corresponding to the object set, wherein the adjustable parameter corresponding to the object set is used to adjust the object controlled by the execution item corresponding to the target execution instruction. When the object set includes multiple objects, the object indicated by the adjustable parameter corresponding to the object set is empty; when the object set includes one object, the object indicated by the adjustable parameter corresponding to the object set is empty. Objects are objects included in the set of objects.
在第四方面的一种可能的实施方式中,所述空集对应的执行项显示规则还包括:当所述对象集中包括的对象为多个时,所述目标执行指令对应的执行项中显示有提示信息,所述提示信息用于提示用户通过所述对象集对应的可调参数调节所述执行项所控制的对象。In a possible implementation manner of the fourth aspect, the execution item display rule corresponding to the empty set further includes: when there are multiple objects included in the object set, displaying in the execution item corresponding to the target execution instruction There is prompt information, and the prompt information is used to prompt the user to adjust the object controlled by the execution item through the adjustable parameter corresponding to the object set.
在第四方面的一种可能的实施方式中,所述全集和指定集对应的执行项显示规则包括:所述场景编辑界面中所述目标执行指令对应的执行项指示有所述对象集中包括的各个对象。In a possible implementation manner of the fourth aspect, the execution item display rules corresponding to the complete set and the specified set include: the execution item corresponding to the target execution instruction in the scene editing interface indicates that the execution items included in the object set each object.
在第四方面的一种可能的实施方式中,所述场景编辑界面中显示有所述场景的触发条件的描述文本。In a possible implementation manner of the fourth aspect, the scene editing interface displays a description text of the triggering condition of the scene.
在第四方面的一种可能的实施方式中,所述场景为支持自动触发的自动场景,所述描 述文本中包括所述触发条件的可调参数。In a possible implementation manner of the fourth aspect, the scene is an automatic scene that supports automatic triggering, and the description text includes adjustable parameters of the triggering condition.
在第四方面的一种可能的实施方式中,所述处理模块还用于:在满足所述场景的触发条件时,执行所述场景包含的执行动作;所述显示模块还用于显示所述场景的执行状态。In a possible implementation manner of the fourth aspect, the processing module is further configured to: when a trigger condition of the scenario is satisfied, execute an execution action included in the scenario; the display module is further configured to display the The execution state of the scene.
在第四方面的一种可能的实施方式中,所述处理模块还用于:在执行所述场景包含的执行动作之后,若输入模块接收到用户对所述场景的终止触发操作,则响应于所述终止触发操作,终止执行所述场景的执行动作。In a possible implementation manner of the fourth aspect, the processing module is further configured to: after executing the execution action included in the scene, if the input module receives a user's termination triggering operation on the scene, respond to The termination triggering operation terminates the execution of the execution action of the scene.
在第四方面的一种可能的实施方式中,所述显示模块具体用于:在所述场景对应的场景卡片中显示所述场景的执行状态。In a possible implementation manner of the fourth aspect, the display module is specifically configured to: display the execution status of the scene in a scene card corresponding to the scene.
所述显示模块还用于:当所述场景处于执行中时,在所述场景卡片中显示终止控件;则所述停止触发操作包括对所述终止控件的触发操作。The display module is further configured to: display a termination control in the scene card when the scene is being executed; then the stop triggering operation includes a triggering operation for the termination control.
在第四方面的一种可能的实施方式中,所述场景为支持自动触发的自动场景,所述处理模块还用户:当所述输入模块接收到用户对所述场景的场景触发操作时,响应于所述场景触发操作,执行所述场景所包含的执行动作。In a possible implementation manner of the fourth aspect, the scene is an automatic scene that supports automatic triggering, and the processing module further user: when the input module receives a scene triggering operation of the scene by the user, respond Trigger an operation on the scene, and execute the execution action included in the scene.
在第四方面的一种可能的实施方式中,所述场景包括至少一个触发条件,每个触发条件具有对应的执行动作;所述处理模块具体用于:响应于所述场景触发操作,若所述场景包括多个触发条件,则在满足至少一个触发条件的情况下,执行满足的触发条件对应的执行动作;在各触发条件均不满足的情况下,确定待执行的触发条件对应的执行动作,并执行确定的触发条件对应的执行动作;若所述场景包括一个触发条件,则在满足所述触发条件的情况下,执行所述场景的各个执行动作。In a possible implementation manner of the fourth aspect, the scene includes at least one trigger condition, and each trigger condition has a corresponding execution action; the processing module is specifically configured to: trigger an operation in response to the scene, if any If the above scenario includes multiple triggering conditions, then if at least one triggering condition is satisfied, the execution action corresponding to the satisfied triggering condition is executed; if none of the triggering conditions are satisfied, the execution action corresponding to the triggering condition to be executed is determined. , and execute the execution action corresponding to the determined trigger condition; if the scene includes a trigger condition, each execution action of the scene is executed under the condition that the trigger condition is satisfied.
在第四方面的一种可能的实施方式中,所述处理模块具体用于:提示用户选择待执行的触发条件对应的执行动作;根据用户的选择操作确定待执行的触发条件对应的执行动作。In a possible implementation manner of the fourth aspect, the processing module is specifically configured to: prompt the user to select the execution action corresponding to the trigger condition to be executed; and determine the execution action corresponding to the trigger condition to be executed according to the user's selection operation.
第五方面,本申请实施例提供一种电子设备,包括:存储器和处理器,存储器用于存储计算机程序;处理器用于在调用计算机程序时执行上述第一方面或第三方面所述的方法。In a fifth aspect, an embodiment of the present application provides an electronic device, including: a memory and a processor, where the memory is used to store a computer program; the processor is used to execute the method described in the first aspect or the third aspect when the computer program is invoked.
第六方面,本申请实施例提供一种计算机可读存储介质,其上存储有计算机程序,计算机程序被处理器执行时实现上述第一方面或第三方面所述的方法。In a sixth aspect, an embodiment of the present application provides a computer-readable storage medium on which a computer program is stored, and when the computer program is executed by a processor, the method described in the first aspect or the third aspect is implemented.
第七方面,本申请实施例提供一种计算机程序产品,当计算机程序产品在……设备上运行时,使得电子设备执行上述第一方面或第三方面所述的方法。In a seventh aspect, an embodiment of the present application provides a computer program product, which enables an electronic device to execute the method described in the first aspect or the third aspect when the computer program product runs on a device.
第八方面,本申请实施例提供一种芯片系统,包括处理器,所述处理器与存储器耦合,所述处理器执行存储器中存储的计算机程序,以实现上述第一方面或第三方面所述的方法。其中,所述芯片系统可以为单个芯片,或者多个芯片组成的芯片模组。In an eighth aspect, an embodiment of the present application provides a chip system, including a processor, where the processor is coupled to a memory, and the processor executes a computer program stored in the memory, so as to implement the first aspect or the third aspect. Methods. Wherein, the chip system may be a single chip or a chip module composed of multiple chips.
可以理解的是,上述第三方面至第八方面的有益效果可以参见上述第一方面和第二方面中的相关描述,在此不再赘述。It can be understood that, for the beneficial effects of the third aspect to the eighth aspect, reference may be made to the relevant descriptions in the first aspect and the second aspect, which will not be repeated here.
附图说明Description of drawings
图1为现有的一种场景编辑界面示意图;1 is a schematic diagram of an existing scene editing interface;
图2为本申请实施例提供的系统架构示意图;2 is a schematic diagram of a system architecture provided by an embodiment of the present application;
图3为本申请实施例提供的一种应用界面示意图;3 is a schematic diagram of an application interface provided by an embodiment of the present application;
图4为本申请实施例提供的手动场景与自动场景的场景界面示意图;4 is a schematic diagram of a scene interface of a manual scene and an automatic scene provided by an embodiment of the present application;
图5为本申请实施例提供的场景卡片的界面显示示意图;5 is a schematic diagram of interface display of a scene card provided by an embodiment of the present application;
图6为本申请实施例提供的一种交互过程示意图;FIG. 6 is a schematic diagram of an interaction process provided by an embodiment of the present application;
图7-图10为本申请实施例提供的另一些应用界面示意图;7-10 are schematic diagrams of other application interfaces provided by the embodiments of the present application;
图11为本申请实施例提供的执行项的构成元素示意图;FIG. 11 is a schematic diagram of constituent elements of an execution item provided by an embodiment of the present application;
图12为本申请实施例提供的执行项的一些显示样式示意图;FIG. 12 is a schematic diagram of some display styles of execution items provided by an embodiment of the present application;
图13为本申请实施例提供的一种执行项显示流程示意图;13 is a schematic flowchart of an execution item display process provided by an embodiment of the present application;
图14为本申请实施例提供的执行项的另一些显示样式示意图;14 is a schematic diagram of other display styles of the execution items provided by the embodiment of the present application;
图15为本申请实施例提供的另一种执行项显示流程示意图;FIG. 15 is a schematic flowchart of another execution item display process provided by an embodiment of the present application;
图16为本申请实施例提供的交互装置的结构示意图;FIG. 16 is a schematic structural diagram of an interaction apparatus provided by an embodiment of the present application;
图17为本申请实施例提供的电子设备的结构示意图。FIG. 17 is a schematic structural diagram of an electronic device provided by an embodiment of the present application.
具体实施方式detailed description
下面结合本申请实施例中的附图对本申请实施例进行描述。本申请实施例的实施方式部分使用的术语仅用于对本申请的具体实施例进行解释,而非旨在限定本申请。The embodiments of the present application will be described below with reference to the accompanying drawings in the embodiments of the present application. The terms used in the implementation part of the embodiments of the present application are only used to explain the specific embodiments of the present application, and are not intended to limit the present application.
图1为现有的一种场景编辑界面示意图。当用户触发智能控制APP中提供的某场景的编辑功能后,如图1中的(a)所示,电子设备显示场景编辑界面10,场景编辑界面10中包括被控设备列表101,该列表中包括该场景下控制的各个智能设备对应的设备编辑选项,例如图中所示的智能灯编辑选项1011、智能插座编辑选项1012、空气净化器编辑选项1013和网关编辑选项1014。FIG. 1 is a schematic diagram of an existing scene editing interface. When the user triggers the editing function of a certain scene provided in the intelligent control APP, as shown in (a) of FIG. 1 , the electronic device displays a scene editing interface 10, and the scene editing interface 10 includes a list of controlled devices 101. It includes device editing options corresponding to each smart device controlled in this scenario, such as smart lamp editing options 1011 , smart socket editing options 1012 , air purifier editing options 1013 , and gateway editing options 1014 shown in the figure.
用户可以点击设备编辑选项编辑对应的智能设备的控制参数,如图1中的(a)所示,用户若要编辑空气净化器相关的控制参数,则点击空气净化器编辑选项1013;如图1中的(b)所示,电子设备显示空气净化器的设备编辑界面20,该界面中显示该空气净化器的各种控制参数的参数编辑选项,用户可以选择相关的参数编辑选项进行编辑。The user can click the device editing option to edit the control parameters of the corresponding smart device, as shown in (a) in Figure 1. If the user wants to edit the control parameters related to the air purifier, click the air purifier editing option 1013; as shown in Figure 1 As shown in (b) of the above, the electronic device displays the device editing interface 20 of the air purifier, which displays parameter editing options for various control parameters of the air purifier, and the user can select the relevant parameter editing options for editing.
上述这种场景编辑界面,主要显示被控设备列表,这样不便于用户理解场景功能;对于每个被控设备,该设备的各种控制参数的编辑操作均需要通过该设备的设备编辑选项进入,这样容易出现参数设置路径长的现象;并且,该设备的设备编辑界面在各种场景中的参数内容一致,都是列明该设备的各种可编辑的参数,因而设备编辑界面会存在参数过多的现象,这样会导致界面不简洁而影响用户编辑效率;另外,用户的每次编辑操作都只能针对单个设备进行编辑,这些都会影响场景的编排效率。此外,目前的场景一般都是针对单个设备的功能进行控制,因而设备控制功能不够多样化。The above scene editing interface mainly displays the list of controlled devices, which is inconvenient for users to understand the scene functions; for each controlled device, the editing operations of various control parameters of the device need to be entered through the device editing options of the device. In this way, the phenomenon of long parameter setting path is easy to occur; in addition, the parameter content of the device editing interface of the device is consistent in various scenarios, and all kinds of editable parameters of the device are listed, so the device editing interface will have parameter excessive In addition, each editing operation of the user can only be edited for a single device, which will affect the efficiency of scene arrangement. In addition, in current scenarios, the functions of a single device are generally controlled, so the device control functions are not diversified enough.
为此,本申请实施例提供一种交互方法、装置和电子设备,以方便用户理解场景功能,以及提高场景编辑效率和设备控制功能的多样性。To this end, the embodiments of the present application provide an interaction method, apparatus, and electronic device, so as to facilitate the user's understanding of scene functions, and to improve scene editing efficiency and diversity of device control functions.
首先介绍本申请实施例涉及的系统架构,图2为本申请实施例提供的系统架构示意图。如图2所示,该系统架构中包括云服务器、电子设备和智能设备。First, the system architecture involved in the embodiment of the present application is introduced. FIG. 2 is a schematic diagram of the system architecture provided by the embodiment of the present application. As shown in Figure 2, the system architecture includes cloud servers, electronic devices and smart devices.
其中,云服务器、电子设备和智能设备之间可以互相通信,电子设备可以是手机或平板等便携性的电子设备,也可以是台式电脑等非便携的电子设备;智能设备可以是音箱、空调、空气净化器、智能灯、智能开关或网关等智能家居设备,也可以是车载设备或智能健康设备等,智能设备的数量可以是一个或多个。Among them, cloud servers, electronic devices and smart devices can communicate with each other. Electronic devices can be portable electronic devices such as mobile phones or tablets, or non-portable electronic devices such as desktop computers; smart devices can be speakers, air conditioners, Smart home devices such as air purifiers, smart lights, smart switches or gateways can also be in-vehicle devices or smart health devices, etc. The number of smart devices can be one or more.
电子设备可以通过登录的用户账号访问云服务器,云服务器可以为电子设备提供一些查询服务,具体的,电子设备可以从云服务器中查询登录的用户账号所关联的智能设备的 种类和功能参数等设备信息,也可以从云服务器中查询场景信息,还可以从云服务器中查询天气等互联网服务信息。云服务器也可以为电子设备提供控制服务,例如,在一些场景中,电子设备可以通过蓝牙等近距离通信连接对智能设备进行控制,在另一些场景中,电子设备可以通过云服务器实现对智能设备的控制。The electronic device can access the cloud server through the logged-in user account, and the cloud server can provide some query services for the electronic device. Specifically, the electronic device can query the type and functional parameters of the smart device associated with the logged-in user account from the cloud server. You can also query the scene information from the cloud server, and you can also query the weather and other Internet service information from the cloud server. Cloud servers can also provide control services for electronic devices. For example, in some scenarios, electronic devices can control smart devices through short-range communication connections such as Bluetooth. In other scenarios, electronic devices can use cloud servers to control smart devices. control.
电子设备上可以提供智能控制功能,该功能可以是系统功能,也可以是智能控制APP提供的功能,本实施例中以智能控制APP为例进行示例性说明。电子设备可以通过在智能控制APP上登录的用户账号访问云服务器获取服务。An intelligent control function may be provided on the electronic device, and the function may be a system function or a function provided by an intelligent control APP. In this embodiment, an intelligent control APP is used as an example for illustration. The electronic device can access the cloud server to obtain services through the user account logged in the smart control APP.
图3为本申请实施例提供的一种应用界面示意图,如图3中的(a)所示,电子设备上的智能控制APP,可以在场景发现界面30中提供各种场景,如图中所示的温馨回家场景、此时此地静音场景等;用户可以点击对应的场景卡片查看和编辑场景,例如图3中的(a)和(b)所示的,用户点击场景发现界面30中温馨回家场景对应的场景卡片301,可以打开温馨回家场景的场景详情界面40,在该界面中查看温馨回家场景的场景内容,并可以对场景内容进行编辑。如图3中的(b)和(c)所示,用户查看或编辑完场景内容后,可以点击添加到我的场景控件401将温馨回家场景加入我的场景中进行管理。FIG. 3 is a schematic diagram of an application interface provided by an embodiment of the present application. As shown in (a) of FIG. 3 , the intelligent control APP on the electronic device can provide various scenarios in the scene discovery interface 30, as shown in the figure The warm home scene shown, the silent scene here and now, etc.; the user can click the corresponding scene card to view and edit the scene, for example, as shown in (a) and (b) in FIG. 3, the user clicks the warm scene in the scene discovery interface 30. The scene card 301 corresponding to the homecoming scene can open the scene details interface 40 of the warm home scene, where the scene content of the warm home scene can be viewed, and the scene content can be edited. As shown in (b) and (c) of FIG. 3 , after viewing or editing the scene content, the user can click the add to my scene control 401 to add the warm home scene to my scene for management.
可以理解的是,场景不限于以卡片的形态呈现,其也可以以图标、标题或菜单项等等形态呈现,具体实现时可以根据需要选择,本实施例对此不做特别限定,为了便于说明,本申请实施例中以场景卡片为例进行示例性说明。It can be understood that the scene is not limited to be presented in the form of a card, it can also be presented in the form of an icon, a title or a menu item, etc., which can be selected as needed during the specific implementation, which is not particularly limited in this embodiment, for the convenience of description. , in the embodiment of the present application, the scene card is used as an example for illustrative description.
场景内容主要由触发条件(Trigger)和执行动作(Action)组成,其中,触发条件定义了场景中的一个执行流程在满足什么条件的情况下会被触发执行;执行动作是执行流程中一个用户可感知的操作步骤,其中,一个场景可以包括一个或多个执行流程,每个执行流程中可以包括一个触发条件和至少一个执行动作。例如图3中的(b)所示的,温馨回家场景的触发条件为:“当每天08:00-21:00智能门锁开锁时”,执行动作包括:“打开指定智能灯”、“打开空气净化器睡眠模式”、“音箱播报主人,我想你啦!”、“手机连接音箱播放音乐应用A-我的电台”。The content of the scene is mainly composed of a trigger condition (Trigger) and an execution action (Action). The trigger condition defines what conditions an execution process in the scene will be triggered for execution; The perceived operation steps, wherein a scenario may include one or more execution flows, and each execution flow may include a trigger condition and at least one execution action. For example, as shown in (b) in Figure 3, the trigger condition of the warm home scene is: "When the smart door lock is unlocked from 08:00-21:00 every day", the execution actions include: "Turn on the specified smart light", " Turn on the sleep mode of the air purifier", "The speaker broadcasts the owner, I miss you!", "The mobile phone is connected to the speaker to play the music application A-My Radio".
其中,执行动作可以是通过云服务器请求互联网服务,或者请求对智能设备的设备信息查询或控制指令的下发;执行动作也可以是对本机系统能力的调用,比如在电子设备上打电话或发短信等;执行动作还可以是控制智能设备执行目标功能。即互联网服务功能、接入云服务器或电子设备的智能设备上的功能以及电子设备上的功能,都可以映射为执行动作。其中,互联网服务可以包括查询天气、查询路况、查询物流、查询日出或日落时间等;智能设备上的功能可以包括播放音频、设置智能灯的亮度和颜色、打开或关闭设备等;电子设备上的功能可以包括连接蓝牙或无线保真(wireless fidelity,Wi-Fi)网络、打开APP、拨打电话、发送短信、弹出通知消息或语音播报等。Among them, the execution action may be requesting Internet services through a cloud server, or requesting device information inquiry or issuing control instructions of the smart device; the execution action may also be invoking the capabilities of the local system, such as making a phone call or sending a message on the electronic device. SMS, etc.; the execution action may also be to control the smart device to execute the target function. That is, Internet service functions, functions on smart devices connected to cloud servers or electronic devices, and functions on electronic devices can all be mapped to perform actions. Among them, Internet services may include querying the weather, querying road conditions, querying logistics, querying sunrise or sunset time, etc.; functions on smart devices may include playing audio, setting the brightness and color of smart lights, turning on or off devices, etc.; on electronic devices The functions of the device can include connecting to a Bluetooth or wireless fidelity (Wi-Fi) network, opening an APP, making a phone call, sending a text message, pop-up notification messages or voice broadcasts, etc.
每个执行动作都有对应的执行设备,执行设备可以是云服务器、智能设备或电子设备,即对于某个执行动作,其可能在电子设备执行,也可能在云服务器或智能设备上执行;为了实现更丰富的功能,也可以将多个执行设备的功能进行拼接组合,形成组合执行动作,组合执行动作对应的执行设备则对应包括多个,各个执行设备执行的操作之间存在关联关系,比如图3中的(b)所示的,手机连接音箱播放音乐应用A-我的电台,其包括两个执行设备的功能:手机连接音箱和音箱播放手机中的音乐应用A-我的电台,其中,两功能之间的关联关系为:手机在连接到音箱后,通过音箱播放手机中的音乐应用A-我的电台。Each execution action has a corresponding execution device, and the execution device can be a cloud server, a smart device or an electronic device, that is, for a certain execution action, it may be executed on an electronic device, or may be executed on a cloud server or a smart device; To achieve richer functions, the functions of multiple execution devices can also be spliced and combined to form a combined execution action. The execution devices corresponding to the combined execution action include multiple execution devices, and there is an association relationship between the operations performed by each execution device, such as As shown in (b) of Figure 3, the mobile phone is connected to the speaker to play the music application A-My Radio, which includes the functions of two execution devices: the mobile phone is connected to the speaker and the speaker plays the music application A-My Radio in the mobile phone, in which , the relationship between the two functions is: after the mobile phone is connected to the speaker, the music application A-My Radio in the mobile phone can be played through the speaker.
一个执行流程中的各个执行动作,可以都在同一设备上执行,也可以在不同的设备上执行,在具体执行时,不在电子设备上执行的执行动作可以被电子设备路由到对应的设备上执行,即对于某个场景,在满足该场景的触发条件后,电子设备可以在本地执行相关的执行动作,也可以请求云服务器执行相关的执行动作,还可以控制智能设备执行相关的执行动作,或者通过云服务器控制智能设备执行相关的执行动作。Each execution action in an execution flow can be executed on the same device or on different devices. During specific execution, execution actions that are not executed on the electronic device can be routed by the electronic device to the corresponding device for execution. , that is, for a certain scenario, after satisfying the trigger conditions of the scenario, the electronic device can execute the relevant execution action locally, or request the cloud server to execute the relevant execution action, and can also control the smart device to execute the relevant execution action, or The cloud server controls the smart device to perform related execution actions.
本实施例中,场景可以包括手动场景和自动场景,其中,手动场景可以由用户通过点击或输入语音指令等操作来主动触发场景中的流程,自动场景可以按照设定的触发条件自动触发流程的执行。In this embodiment, the scenarios may include manual scenarios and automatic scenarios. In the manual scenario, the user can actively trigger the process in the scenario through operations such as clicking or inputting voice commands, and the automatic scenario can automatically trigger the flow of the process according to the set trigger conditions. implement.
参见图4,图4中的(a)为手动场景的场景内容示意图,图4中的(b)为自动场景的场景内容示意图。如图4中的(a)所示,一键开灯场景的执行流程可以在用户手动点击该场景对应的场景卡片时触发,其中,执行流程包括:打开客厅吸顶灯,将其工作模式置为休闲模式,并打开水母灯,将其工作模式置为日光模式。如图4中的(b)所示,轻松开车场景的执行流程可以在法定工作日期间手机连接到车辆A时触发,其中,执行流程包括:“播报行车天气小贴士”、“使用地图应用A播报地点A到地点B的路况导航”和“继续播放上一次的音乐”。Referring to FIG. 4 , (a) in FIG. 4 is a schematic diagram of the scene content of the manual scene, and (b) in FIG. 4 is a schematic diagram of the scene content of the automatic scene. As shown in (a) of Figure 4, the execution process of the one-key lighting scene can be triggered when the user manually clicks the scene card corresponding to the scene, wherein the execution process includes: turning on the living room ceiling light, and setting its working mode to Leisure mode, and turn on the jellyfish light, set its working mode to daylight mode. As shown in (b) of Figure 4, the execution process of the easy driving scenario can be triggered when the mobile phone is connected to vehicle A during legal working days, wherein the execution process includes: "broadcast driving weather tips", "use map application" A broadcasts traffic navigation from location A to location B" and "Continue to play the last music".
为了便于用户使用,对于自动场景,可以提供开关功能,例如图3中我的场景界面50中所示的,安心离家场景、轻松开车场景和温馨回家场景均为自动场景,三者对应的场景卡片上均包括开关控件501,用户可以通过该控件开启或关闭自动场景;手动场景一键开灯场景和音乐派对场景对应的场景卡片上则可以不包括开关控件501。For the convenience of users, a switch function can be provided for automatic scenes. For example, as shown in my scene interface 50 in FIG. 3 , the leaving home with peace of mind, driving with ease, and returning home with ease are all automatic scenes, and the three corresponding The scene cards all include a switch control 501 through which the user can turn on or off the automatic scene; the scene cards corresponding to the one-key lighting scene of the manual scene and the music party scene may not include the switch control 501 .
为了进一步提高用户使用的便利性,本实施例中,自动场景也可以通过手动方式触发,例如图5中的(a)所示的,用户可以点击我的场景界面中轻松开车场景的场景卡片,触发轻松开车场景。这样相当于是将相似度高的自动场景和手动场景整合为同一场景,用户在场景发现、场景编排和场景管理时也可以一次完成,而不用分多次发现、编排和管理,因而可以提高用户使用的便利性,并可以在一定程度上提高场景编辑效率。In order to further improve the convenience of the user, in this embodiment, the automatic scene can also be triggered manually. For example, as shown in (a) of FIG. 5 , the user can click the scene card of the easy driving scene in the My Scene interface, Trigger an easy driving scene. This is equivalent to integrating automatic scenes and manual scenes with high similarity into the same scene. Users can also complete scene discovery, scene arrangement and scene management at one time, instead of finding, arranging and managing multiple times, which can improve user usage. It is convenient and can improve the efficiency of scene editing to a certain extent.
另外,如图5所示的,可以在场景卡片中显示场景的执行状态,如图5中的(b)所示的,轻松开车场景被用户手动触发后,对应的场景卡片上显示该场景的执行状态为“执行中”;如图5中的(d)和(e)所示的,在该场景执行成功的情况下,场景卡片上可以显示场景的执行状态为“已执行”,在该场景执行失败的情况下,场景卡片上可以显示场景的执行状态为“执行失败”。为了方便用户使用,如图5中的(b)所示的,场景被触发后,场景卡片上可以提供停止控件502,用户可以通过点击该控件控制场景停止执行,对应的,如图5中的(c)所示的,场景被终止后,场景卡片上可以显示场景的执行状态为“已终止”。另外,在场景执行失败的情况下,场景卡片上也可以显示报警控件503,用户可以点击该控件查看执行失败的原因。In addition, as shown in Fig. 5, the execution state of the scene can be displayed in the scene card. As shown in (b) of Fig. 5, after the easy driving scene is manually triggered by the user, the corresponding scene card displays the scene's execution status. The execution status is "executing"; as shown in (d) and (e) of Figure 5, in the case that the scene is successfully executed, the scene card can display the execution status of the scene as "executed". If the scene execution fails, the scene card can display the execution status of the scene as "execution failed". For the convenience of the user, as shown in (b) in FIG. 5 , after the scene is triggered, a stop control 502 may be provided on the scene card, and the user can control the scene to stop execution by clicking on the control. Correspondingly, as shown in FIG. 5 As shown in (c), after the scene is terminated, the execution status of the scene can be displayed as "terminated" on the scene card. In addition, in the case of a scene execution failure, an alarm control 503 may also be displayed on the scene card, and the user may click on the control to view the reason for the execution failure.
其中,对于某个场景,若该场景的至少一个执行流程执行成功,可以认为该场景执行成功;若该场景的所有执行流程均执行失败,可以认为该场景执行失败。对于某个执行流程,若该执行流程包含的各执行动作全部或部分执行成功,可以认为该执行流程执行成功;若该执行流程包含的各执行动作全部执行失败,可以认为该执行流程执行失败。当然,执行流程包含的部分执行动作执行失败时,也可以认为该执行流程执行失败,具体可以根据需要定义,本实施例对此不做特别限定。Wherein, for a certain scenario, if at least one execution flow of the scenario is successfully executed, it can be considered that the execution of the scenario is successful; if all the execution flows of the scenario fail to be executed, it can be considered that the execution of the scenario has failed. For an execution flow, if all or part of the execution actions included in the execution flow are successfully executed, the execution flow can be considered to be executed successfully; if all the execution actions included in the execution flow fail to be executed, the execution flow can be regarded as failed to be executed. Certainly, when a part of the execution actions included in the execution flow fails to be executed, it may also be considered that the execution of the execution flow fails, which can be specifically defined as required, which is not particularly limited in this embodiment.
可以理解的是,场景的执行状态不限于在场景卡片上显示,也可以在下拉通知栏或其他位置显示,具体显示方式本实施例不做特别限定。场景的执行状态也可以包括其他状态,比如正在执行的执行动作。另外,用户也可以通过语音方式触发自动场景,可以理解的是,本实施例中的各种手动操作所执行的功能均可以通过语音方式实现,本实施例主要对手动操作方式进行说明。It can be understood that the execution state of the scene is not limited to be displayed on the scene card, but can also be displayed in the pull-down notification bar or other positions, and the specific display manner is not particularly limited in this embodiment. The execution state of the scene may also include other states, such as the execution action being executed. In addition, the user can also trigger the automatic scene by voice. It can be understood that the functions performed by various manual operations in this embodiment can be implemented by voice. This embodiment mainly describes the manual operation mode.
本实施例中,自动场景被手动触发后,电子设备可以对自动场景的触发条件进行判断,根据判断结果确定执行结果,具体的处理过程可以参见图6,图6为本申请实施例提供的一种交互过程示意图,如图6所示,该过程可以包括如下步骤:In this embodiment, after the automatic scene is manually triggered, the electronic device can judge the trigger condition of the automatic scene, and determine the execution result according to the judgment result. For the specific processing process, see FIG. A schematic diagram of an interaction process, as shown in Figure 6, the process may include the following steps:
S101、接收用户对自动场景A的场景触发操作。S101. Receive a scene triggering operation of the automatic scene A by the user.
具体的,自动场景A可以是用户添加到我的场景中的任一自动场景。如前所述,用户对自动场景A的触发操作可以是用户对自动场景A对应的场景卡片的点击操作,或者是用户的语音输入操作,该语音输入操作用于触发自动场景A的执行流程。Specifically, the automatic scene A may be any automatic scene added by the user to my scene. As mentioned above, the user's trigger operation on the automatic scene A may be a user's click operation on the scene card corresponding to the automatic scene A, or a user's voice input operation, and the voice input operation is used to trigger the execution process of the automatic scene A.
S102、响应该场景触发操作,判断自动场景A是否包括多个触发条件,若是,则执行步骤S103,否则执行步骤S107。S102 , in response to the scene triggering operation, determine whether the automatic scene A includes multiple triggering conditions, if so, go to step S103 , otherwise go to step S107 .
具体的,每个场景可以包括一个或多个触发条件,每个触发条件可以对应不同的执行流程,比如某场景的场景内容包括:执行流程1和执行流程2,其中执行流程1为:当下雨时(触发条件1),播放音乐a(执行动作1);执行流程2为:当刮台风时(触发条件2),播放音乐b(执行动作2)。Specifically, each scenario may include one or more triggering conditions, and each triggering condition may correspond to a different execution flow. For example, the scene content of a certain scenario includes: execution flow 1 and execution flow 2, where execution flow 1 is: when it rains time (trigger condition 1), play music a (execute action 1); execution flow 2 is: when a typhoon blows (trigger condition 2), play music b (execute action 2).
电子设备在接收到用户对自动场景A的场景触发操作后,可以对自动场景A的触发条件的数量进行判断,以提高执行结果的准确性。After receiving the scene triggering operation of the automatic scene A by the user, the electronic device may judge the number of triggering conditions of the automatic scene A, so as to improve the accuracy of the execution result.
S103、判断是否满足自动场景A的至少一个触发条件,若是,则执行步骤S104,否则执行步骤S105。S103: Determine whether at least one trigger condition of the automatic scenario A is satisfied, if yes, go to step S104, otherwise go to step S105.
具体的,如果自动场景A包括多个触发条件,电子设备则可以判断当前情况满足哪个触发条件,如果满足某个触发条件,则可以执行该触发条件对应的执行动作,如果都不满足,则可以由用户选择执行哪个触发条件对应的执行动作。Specifically, if the automatic scene A includes multiple trigger conditions, the electronic device can determine which trigger condition is satisfied by the current situation. If a certain trigger condition is satisfied, the execution action corresponding to the trigger condition can be executed. The user selects the execution action corresponding to the trigger condition to be executed.
S104、执行满足的触发条件对应的执行动作。S104. Execute an execution action corresponding to a satisfied trigger condition.
继续以步骤S102中的举例为例,假如满足触发条件1,即当前正在下雨,则可以执行执行动作1:播放音乐a。Continuing to take the example in step S102 as an example, if trigger condition 1 is satisfied, that is, it is currently raining, execution action 1 can be performed: playing music a.
S105、提醒用户选择待执行的执行动作。S105, reminding the user to select the execution action to be executed.
具体的,电子设备可以通过弹窗和/或语音方式提醒用户选择执行哪个触发条件对应的执行动作,对应的,用户可以在弹窗中选择想要执行的执行动作,或者通过语音指令选择想要执行的执行动作。Specifically, the electronic device can remind the user to select the execution action corresponding to the trigger condition through a pop-up window and/or voice. Correspondingly, the user can select the execution action to be executed in the pop-up window, or select the desired execution action through a voice command. The execution action performed.
S106、执行用户选择的执行动作。S106. Execute the execution action selected by the user.
S107、判断是否满足自动场景A的触发条件,若是,则执行步骤S108,否则执行步骤S109。S107: Determine whether the trigger condition of the automatic scenario A is satisfied, if yes, execute step S108; otherwise, execute step S109.
具体的,如果自动场景A只包括一个触发条件,电子设备则可以判断当前情况是否满足该触发条件,如果满足该触发条件,则可以执行该触发条件对应的执行动作;如果不满足该触发条件,则也可以由用户选择是否执行自动场景A的执行动作。Specifically, if the automatic scene A includes only one trigger condition, the electronic device can judge whether the current situation satisfies the trigger condition, and if the trigger condition is met, the execution action corresponding to the trigger condition can be executed; if the trigger condition is not met, Then, the user can also choose whether to execute the execution action of the automatic scene A.
S108、执行自动场景A的执行动作。S108: Execute the execution action of the automatic scene A.
举例说明,例如,对于场景“此时此地静音”,当用户手动点击此场景对应的场景卡片时,当前时间和用户的当前位置正好在触发条件的“此时此地”,电子设备则会立即执行静音动作。For example, for the scene "Mute here and now", when the user manually clicks the scene card corresponding to this scene, the current time and the current position of the user are exactly in the "here and now" of the trigger condition, and the electronic device will immediately execute Silent action.
S109、提醒用户是否执行自动场景A的执行动作。S109 , reminding the user whether to execute the execution action of the automatic scene A.
与步骤S105类似,电子设备可以通过弹窗和/或语音方式提醒用户选择是否执行自动场景A的执行动作,对应的,用户可以在弹窗中选择或者通过语音指令选择是否执行自动场景A的执行动作。Similar to step S105, the electronic device can remind the user to select whether to execute the execution action of the automatic scene A through a pop-up window and/or voice, and correspondingly, the user can select whether to execute the execution of the automatic scene A in the pop-up window or through a voice command. action.
S110、在接收到用户的确定操作后,响应该确定操作,执行自动场景A的执行动作。S110: After receiving the user's determination operation, perform the execution action of the automatic scene A in response to the determination operation.
如果用户确定执行自动场景A的执行动作,电子设备则执行该执行动作;如果用户取消执行自动场景A的执行动作,电子设备则可以不执行该执行动作。If the user determines to execute the execution action of the automatic scene A, the electronic device executes the execution action; if the user cancels the execution of the execution action of the automatic scene A, the electronic device may not execute the execution action.
上述流程中步骤S103中,在不满足自动场景A的至少一个触发条件时,由用户选择执行哪个触发条件对应的执行动作,可以理解的是,在不满足自动场景A的至少一个触发条件时,也可以随机选择一个触发条件对应的执行动作执行,具体实现时可以根据需要选择,本实施例对此不做特别限定。In step S103 in the above process, when at least one trigger condition of the automatic scene A is not met, the user selects which execution action corresponding to the trigger condition to execute. It can be understood that when at least one trigger condition of the automatic scene A is not met, An execution action corresponding to a trigger condition may also be randomly selected for execution, and may be selected as required during specific implementation, which is not particularly limited in this embodiment.
为了提高简洁性,本实施例中,也可以在自动场景被用户触发后,不进行触发条件是否满足的判断,对于触发条件只包括一个的自动场景,可以直接执行该自动场景的执行动作;对于触发条件包括多个的自动场景,可以由用户选择执行哪个触发条件对应的执行动作,或者也可以随机选择一个触发条件对应的执行动作执行。In order to improve the simplicity, in this embodiment, after the automatic scene is triggered by the user, it is not necessary to judge whether the trigger condition is satisfied. For an automatic scene that includes only one trigger condition, the execution action of the automatic scene can be directly executed; The trigger condition includes a plurality of automatic scenarios, and the user may choose to execute the execution action corresponding to the trigger condition, or may randomly select an execution action corresponding to the trigger condition to execute.
另外,为方便用户使用,也可以提供场景批量启动功能,例如可以在我的场景界面50中提供一键启动控件(未示出),用户可以通过触发该控件启动我的场景界面50中管理的所有场景;当然,智能控制APP也可以提供可选择一键启动哪些场景的设置选项,用户可以通过一键启动控件启动我的场景界面50中管理的所有或部分场景。In addition, for the convenience of users, a scene batch start function can also be provided. For example, a one-key start control (not shown) can be provided in the My Scene interface 50, and the user can trigger the control to start the management in the My Scene interface 50. All scenarios; of course, the smart control APP can also provide setting options for selecting which scenarios to start with one key, and the user can start all or some of the scenarios managed in the My Scenes interface 50 through the one-key start control.
可以理解的是,场景批量启动功能不限于上述实现方式,例如也可以不提供一键启动控件,而是通过预定义的触控操作实现,具体实现方式本实施例不做特别限定。It can be understood that the scene batch start function is not limited to the above implementation manner. For example, a one-key start control may not be provided, but is implemented through a predefined touch operation. The specific implementation manner is not particularly limited in this embodiment.
下面介绍场景编辑界面的显示方式。The following describes how to display the scene editing interface.
图7为本申请实施例提供的一种应用界面示意图,如图7中的(a)和(b)所示,本实施例中,可以在场景卡片上提供编辑控件504,用户可以点击该控件打开场景编辑界面60编辑场景内容。或者,用户也可以在打开图3中所示的场景详情界面40时,对场景内容进行编辑。FIG. 7 is a schematic diagram of an application interface provided by an embodiment of the present application. As shown in (a) and (b) of FIG. 7 , in this embodiment, an editing control 504 may be provided on the scene card, and the user may click the control Open the scene editing interface 60 to edit the scene content. Alternatively, the user can also edit the scene content when opening the scene detail interface 40 shown in FIG. 3 .
可以理解的是,场景编辑界面60的打开方式不限于点击编辑控件504,也可以是其他方式,例如可以在用户双击场景卡片时打开场景编辑界面60,或者也可以在用户长按场景卡片时,显示编辑选项,用户可以选择该编辑选项打开场景编辑界面。It can be understood that the opening method of the scene editing interface 60 is not limited to clicking on the editing control 504, and other methods are also possible. Displays editing options, which the user can select to open the scene editing interface.
如图7中的(b)所示,场景编辑界面60中可以包括触发条件和各个执行动作对应的执行项,执行项用于表示对应的执行动作,每个执行项中显示对应的执行动作的功能描述文本,用户可以通过执行项理解对应的执行动作。其中,该执行项中与场景相关的可支持调节的参数(简称可调参数)可以穿插在功能描述文本中,图中以胶囊形态显示可调参数(比如图7中的“打开”、“指定智能灯”、“空气净化器A”等参数),在具体实现时也可以是其他显示形式,比如采用特定颜色显示可调参数。每个执行项具有对应的复选框,用户可以通过复选框选择或取消选择对应的执行项,其中,当执行项被选中时,场景被触 发后会执行该执行项对应的执行动作;当执行项未被选中时,场景被触发后不执行该执行项对应的执行动作。As shown in (b) in FIG. 7 , the scene editing interface 60 may include trigger conditions and execution items corresponding to each execution action, the execution items are used to represent the corresponding execution actions, and each execution item displays the corresponding execution action. Function description text, the user can understand the corresponding execution action through the execution item. Among them, the parameters (adjustable parameters for short) that can be adjusted related to the scene in the execution item can be interspersed in the function description text, and the adjustable parameters are displayed in the form of capsules in the figure (such as "Open", "Specify" in Figure 7 ). Parameters such as "smart lights", "air purifier A", etc.) can also be displayed in other forms during specific implementation, such as using a specific color to display adjustable parameters. Each execution item has a corresponding check box, and the user can select or deselect the corresponding execution item through the check box. When the execution item is selected, the execution action corresponding to the execution item will be executed after the scene is triggered; When the execution item is not selected, the execution action corresponding to the execution item will not be executed after the scene is triggered.
用户可以点击可调参数对执行项进行编辑,电子设备在响应用户的编辑操作时,可以按照预设的方式更改执行项内容,比如图8中所示的,用户点击“打开”(参见图8中的(a)),执行项中“打开”更改为“关闭”(参见图8中的(b))。电子设备也可以显示对应的执行项编辑界面,通过用户在该界面中的编辑操作更改执行项内容;其中,执行项编辑界面可以是动作内容对应的动作编辑界面、执行设备对应的设备编辑界面或参数内容对应的参数编辑界面。The user can click on the adjustable parameter to edit the execution item, and when the electronic device responds to the user's editing operation, the content of the execution item can be changed in a preset manner, such as shown in Figure 8, the user clicks "Open" (see Figure 8). (a)) in the execution item, change "Open" to "Close" (see (b) in Figure 8). The electronic device can also display a corresponding execution item editing interface, and the content of the execution item can be changed by the user's editing operation in the interface; wherein, the execution item editing interface can be an action editing interface corresponding to the action content, a device editing interface corresponding to the execution device, or The parameter editing interface corresponding to the parameter content.
例如图9中的(a)和(b)所示的,用户点击睡眠模式后,打开空气净化器A的工作模式对应的参数编辑界面70,在参数编辑界面70中编辑空气净化器A的工作模式。为了便于用户了解当前正在编辑的可调参数,打开的执行项编辑界面可以以浮窗的形式展示,用户可以移动浮窗查看位于浮窗下方的场景编辑界面60;场景编辑界面60中处于编辑状态的可调参数也可以突出显示,例如图9中的(b)所示的,场景编辑界面60中“睡眠模式”通过底纹方式突出显示。For example, as shown in (a) and (b) of FIG. 9 , after the user clicks the sleep mode, the parameter editing interface 70 corresponding to the working mode of the air purifier A is opened, and the operation of the air purifier A is edited in the parameter editing interface 70 model. In order to facilitate the user to understand the adjustable parameters currently being edited, the open execution item editing interface can be displayed in the form of a floating window, and the user can move the floating window to view the scene editing interface 60 located below the floating window; the scene editing interface 60 is in the editing state The adjustable parameters of can also be highlighted. For example, as shown in (b) of FIG. 9 , the “sleep mode” in the scene editing interface 60 is highlighted by means of shading.
又例如图10所示的,用户点击“空气净化器A”后,打开空气净化器对应的设备编辑界面80,在设备编辑界面80中,用户可以选择空气净化器A和空气净化器B中的至少一个设备。For another example, as shown in FIG. 10 , after the user clicks on “air purifier A”, the device editing interface 80 corresponding to the air purifier is opened. In the device editing interface 80 , the user can select air purifier A and air purifier B. at least one device.
其中,设备编辑界面中各参数的元数据信息可以预先定义,元数据信息可以包括参数名、可选性、默认值、类型(比如列表类或输入类等)、有效性规则(比如规定参数值的最大值、最小值、字符串长度或无规定限制)和参数值确定时期(比如在用户编辑前或编辑时确定)等。触发条件与执行项类似,其描述文本中也可以嵌入可调参数(比如图7中的“每天08:00-21:00”和“开锁”参数),可调参数的具体实现方式与执行项类似。Among them, the metadata information of each parameter in the device editing interface can be pre-defined, and the metadata information can include parameter name, optionality, default value, type (such as list type or input type, etc.), validity rules (such as specifying parameter value) The maximum value, minimum value, string length or no specified limit) and parameter value determination period (for example, before or during editing by the user) and so on. The trigger condition is similar to the execution item, and adjustable parameters (such as "08:00-21:00 every day" and "unlock" parameters in Figure 7) can also be embedded in the description text. The specific implementation of the adjustable parameters is related to the execution item. similar.
图11为本申请实施例提供的执行项的构成元素示意图,如图11所示,执行项一般可以包括如下元素中的多个:动作内容a、执行设备b和参数内容c,其中,动作内容指示执行设备的具体动作,参数内容可以指示执行设备的功能参数,执行设备指示执行动作的设备,动作内容和参数内容都属于执行设备的执行内容。为了提高可读性,以便于用户理解,执行项中参数内容c一般可以位于动作内容a和执行设备b之后。动作内容a可以位于执行设备b之前,也可以位于执行设备b之后。动作内容a、执行设备b和参数内容c之间的顺序可以是:动作内容a→执行设备b→参数内容c,比如图11中所示的执行项“打开空气净化器睡眠模式”和执行项“关闭智能灯A、智能灯B”;动作内容a、执行设备b和参数内容c之间的顺序也可以是:执行设备b→动作内容a→参数内容c,比如:图11中所示的执行项“音箱播放音乐应用A-我的电台”。其中,动作内容a、执行设备b和参数内容c都可以作为可调参数。FIG. 11 is a schematic diagram of constituent elements of an execution item provided by an embodiment of the present application. As shown in FIG. 11 , an execution item may generally include a plurality of the following elements: action content a, execution device b, and parameter content c, wherein the action content Indicates the specific action of the executing device, the parameter content can indicate the functional parameters of the executing device, and the executing device indicates the device that executes the action. Both the action content and the parameter content belong to the execution content of the executing device. In order to improve readability and facilitate the user's understanding, the parameter content c in the execution item may generally be located after the action content a and the execution device b. The action content a can be located before the execution device b or after the execution device b. The sequence between the action content a, the execution device b, and the parameter content c may be: action content a→execution device b→parameter content c, such as the execution item "turn on the air purifier sleep mode" and the execution item shown in FIG. 11 . "Turn off smart light A, smart light B"; the sequence between action content a, execution device b and parameter content c can also be: execution device b→action content a→parameter content c, for example: as shown in Figure 11 Execute the item "Speaker Play Music Application A-My Radio". Among them, the action content a, the execution device b, and the parameter content c can all be used as adjustable parameters.
本实施例中,开发者可以预先定义好执行流程中的执行指令,电子设备在用户首次打开场景编辑界面(包括前述的场景详情界面)时,可以根据执行流程中的执行指令显示执行项。为了提高场景编辑效率,并生成更加合理的执行项,本实施例中,在运行目标执行指令时,电子设备可以根据不同的执行项类型显示不同样式的执行项,这样也可以提高开发效率,其中,目标执行指令可以是可支持控制多个智能设备的设备集控制指令或其他可支持控制多个对象(比如应用程序)的对象集控制指令;目标执行指令的执行项类型不同, 对应的执行项显示规则不同,在显示时,执行项则可以呈现出不同的样式,为了便于理解,用不同样式的执行项表示不同显示规则的执行项。为了便于理解,下面以设备集控制指令进行示例性说明。In this embodiment, the developer can predefine the execution instructions in the execution process, and when the user opens the scene editing interface (including the aforementioned scene details interface) for the first time, the electronic device can display execution items according to the execution instructions in the execution process. In order to improve the efficiency of scene editing and generate more reasonable execution items, in this embodiment, when running the target execution instruction, the electronic device can display execution items of different styles according to different execution item types, which can also improve development efficiency. , the target execution instruction can be a device set control instruction that can support controlling multiple smart devices or other object set control instructions that can support controlling multiple objects (such as applications); the execution item types of the target execution instruction are different, the corresponding execution item The display rules are different, and the execution items can show different styles when displayed. For ease of understanding, execution items of different styles are used to represent execution items of different display rules. For ease of understanding, the following uses device set control instructions for exemplary description.
图12为本申请实施例提供的执行项的一些显示样式示意图,如图12所示,开发者在定义设备集控制指令时,可以确定执行项类型(例如图中所示的详细调参类和快捷调参类),电子设备根据用户拥有的智能设备显示执行项,下面结合图12中的示例进行说明。FIG. 12 is a schematic diagram of some display styles of the execution items provided by the embodiment of the present application. As shown in FIG. 12 , when defining a device set control instruction, the developer can determine the execution item type (for example, the detailed parameter adjustment class and Quick parameter adjustment class), the electronic device displays the execution items according to the smart device owned by the user, which will be described below with reference to the example in FIG. 12 .
假设:用户A拥有空气净化器A和空气净化器B;用户B拥有空气净化器C。Assumption: User A owns Air Purifier A and Air Purifier B; User B owns Air Purifier C.
示例1:开发者确定执行项类型为详细调参类,设备集控制指令为:Example 1: The developer determines that the execution item type is the detailed parameter adjustment class, and the device set control command is:
打开【空气净化器#全集】【指定功能参数】Open [Air Purifier# Complete Works] [Specify Function Parameters]
则用户A所持电子设备上场景编辑界面中显示的执行项的样式可以为:Then the style of the execution item displayed in the scene editing interface on the electronic device held by user A may be:
打开空气净化器A指定功能参数Turn on the air purifier A to specify the function parameters
打开空气净化器B指定功能参数Turn on air purifier B to specify function parameters
则用户B所持电子设备上场景编辑界面中显示的执行项的样式可以为:Then the style of the execution item displayed in the scene editing interface on the electronic device held by user B may be:
打开空气净化器C指定功能参数Turn on the air purifier C to specify the function parameters
即对于详细调参类,设备集控制指令对应的设备集中包括几个执行设备,就对应显示几个执行项;对于每个执行设备,对应的执行项中显示用于调节该执行设备的指定功能参数的可调参数(此处称为指定可调参数)。That is, for the detailed parameter adjustment class, if the device set corresponding to the device set control instruction includes several execution devices, several execution items are displayed accordingly; for each execution device, the corresponding execution item displays the specified function for adjusting the execution device. The parameter's tunable (herein referred to as the specified tunable).
其中,空气净化器A和空气净化器B具体显示的功能参数可以是与指定功能参数相同或相似的参数,例如图12中所示的,空气净化器A的指定功能参数为睡眠模式,空气净化器B的指定功能参数为低噪音模式。空气净化器C的功能参数显示方式与空气净化器A和空气净化器B类似。Among them, the functional parameters specifically displayed by the air purifier A and the air purifier B may be the same or similar parameters as the specified functional parameters. For example, as shown in FIG. 12, the specified functional parameter of the air purifier A is the sleep mode, and the air The specified function parameter of device B is low noise mode. The functional parameters of air purifier C are displayed in a similar manner to air purifier A and air purifier B.
示例2:开发者确定执行项类型为快捷调参类,设备集控制指令为:Example 2: The developer determines that the execution item type is the quick parameter adjustment class, and the device set control command is:
打开【空气净化器#全集】【指定功能参数】Open [Air Purifier# Complete Works] [Specify Function Parameters]
a、若空气净化器A和空气净化器B具有相同的指定功能参数,则用户A所持电子设备上场景编辑界面中显示的执行项的样式可以为:a. If air purifier A and air purifier B have the same specified function parameters, the style of the execution item displayed in the scene editing interface on the electronic device held by user A can be:
打开空气净化器A、空气净化器B指定功能参数Turn on air purifier A and air purifier B to specify function parameters
其中,空气净化器A和空气净化器B具体显示的功能参数可以是两者相同的指定功能参数,例如图12中所示的,空气净化器A和空气净化器B的相同的指定功能参数为低风模式。Wherein, the functional parameters specifically displayed by the air purifier A and the air purifier B may be the same specified functional parameters. For example, as shown in FIG. 12 , the same specified functional parameters of the air purifier A and the air purifier B are: Low wind mode.
b、若空气净化器A和空气净化器B没有相同的功能参数,在显示执行项时可以不显示与执行设备的功能参数相关的可调参数,对应的,用户A所持电子设备上场景编辑界面中显示的执行项的样式可以为:b. If air purifier A and air purifier B do not have the same functional parameters, the adjustable parameters related to the functional parameters of the execution device may not be displayed when the execution item is displayed. Correspondingly, the scene editing interface on the electronic device held by user A may not be displayed. The styles for the execution items shown in can be:
打开空气净化器A、空气净化器BTurn on Air Purifier A, Air Purifier B
用户B只有一个空气净化器,在显示时不涉及是否存在相同或相似功能参数的问题,则用户B所持电子设备上场景编辑界面中显示的执行项的样式可以为:User B has only one air purifier, and the display does not involve the existence of the same or similar functional parameters. The style of the execution items displayed in the scene editing interface on the electronic device held by user B can be:
打开空气净化器C指定功能参数Turn on the air purifier C to specify the function parameters
即对于快捷调参类,设备集控制指令对应显示一条执行项,执行项中指示设备集控制指令对应的各个执行设备;当设备集控制指令对应的设备集中包括多个执行设备时,如果各执行设备之间存在相同的指定功能参数,则执行项中显示用于调节该相同功能参数的可 调参数;否则,执行项中不显示用于调节指定功能参数的可调参数(即指定可调参数)。当设备集控制指令对应的设备集中包括只一个执行设备时,执行项中显示指定可调参数。That is, for the quick parameter adjustment class, the device set control command displays an execution item corresponding to each execution device corresponding to the device set control command. When the device set corresponding to the device set control command includes multiple execution devices, if each execution device If there are the same specified function parameters between devices, the adjustable parameters used to adjust the same function parameters are displayed in the execution item; otherwise, the adjustable parameters used to adjust the specified function parameters (that is, the specified adjustable parameters) are not displayed in the execution item. ). When the device set corresponding to the device set control instruction includes only one execution device, the specified tunable parameter is displayed in the execution item.
需要说明的是,当设备集控制指令对应的设备集中包括多个执行设备时,如果各执行设备之间存在相似的指定功能参数,执行项中也可以显示用于调节该相似功能参数的可调参数,为了便于说明,本实施例中以各执行设备之间存在相同的指定功能参数的情况为例进行示例性说明。It should be noted that when the device set corresponding to the device set control instruction includes multiple execution devices, if there are similar specified function parameters among the execution devices, the adjustable parameters for adjusting the similar function parameters can also be displayed in the execution item. parameter, for the convenience of description, in this embodiment, the case where the same specified function parameter exists between each execution device is used as an example for illustration.
示例3:对于快捷调参类,开发者在定义设备集控制指令时也可以定义执行设备的功能参数不可调,在显示执行项时则可以不显示与执行设备的功能参数相关的可调参数,例如,设备集控制指令为:Example 3: For the quick parameter adjustment class, the developer can also define that the functional parameters of the execution device are not adjustable when defining the control command of the device set, and can not display the adjustable parameters related to the functional parameters of the execution device when displaying the execution item. For example, the device set control instruction is:
打开【空气净化器#全集】Open【Air Purifier#Complete Collection】
则用户A所持电子设备上场景编辑界面中显示的执行项的样式可以为:Then the style of the execution item displayed in the scene editing interface on the electronic device held by user A may be:
打开空气净化器A、空气净化器BTurn on Air Purifier A, Air Purifier B
用户B所持电子设备上场景编辑界面中显示的执行项的样式可以为:The style of the execution item displayed in the scene editing interface on the electronic device held by user B may be:
打开空气净化器CTurn on the air purifier C
即对于快捷调参类,设备集控制指令中指示执行设备的功能参数不可调时,执行项中也不显示用于调节指定功能参数的指定可调参数。That is, for the quick parameter adjustment class, when the function parameter of the execution device is not adjustable in the device set control instruction, the specified adjustable parameter used to adjust the specified function parameter is also not displayed in the execution item.
其中,上述执行项中的动作指令、执行设备和执行内容都可以为可调参数,当执行项的执行设备包括多个时,可以通过执行设备对应的可调参数调节该执行项包含的执行设备。可以理解的是,上述设备集控制指令的内容只是一种体现其功能的示例,其并非用于限定本申请。Wherein, the action instruction, execution device and execution content in the above execution item can all be adjustable parameters. When the execution item of the execution item includes multiple execution devices, the execution device included in the execution item can be adjusted through the adjustable parameter corresponding to the execution item. . It can be understood that, the content of the above-mentioned device set control instruction is only an example to reflect its function, and it is not intended to limit the present application.
基于上述显示方式,电子设备可以采用图13所示的方法显示执行流程中设备集控制指令对应的执行项。图13为本申请实施例提供的一种执行项显示流程示意图,如图13所示,该流程可以包括如下步骤:Based on the above display manner, the electronic device can use the method shown in FIG. 13 to display the execution item corresponding to the device set control instruction in the execution flow. FIG. 13 is a schematic diagram of an execution item display process provided by an embodiment of the present application. As shown in FIG. 13 , the process may include the following steps:
S201、接收用户对场景的编辑触发操作。S201. Receive a user's editing trigger operation on the scene.
具体的,如前所述,编辑触发操作可以是用户对如图7中的(a)所示的编辑控件504的点击操作,也可以是用户对图3所示的场景发现界面30中场景卡片的点击操作。Specifically, as mentioned above, the editing trigger operation may be the user's click operation on the editing control 504 shown in (a) in FIG. click action.
S202、对于每条设备集控制指令,进行设备集控制指令的执行项类型判断,若执行项类型为详细调参类,则执行步骤S203;若执行项类型为快捷调参类,则执行步骤S204。S202. For each device set control instruction, determine the execution item type of the equipment set control instruction. If the execution item type is a detailed parameter adjustment class, execute step S203; if the execution item type is a quick parameter adjustment class, execute step S204 .
电子设备在接收到用户对场景的编辑触发操作后,可以响应该操作,对于每条设备集控制指令,可以进行执行项类型判断。After receiving the user's editing trigger operation on the scene, the electronic device can respond to the operation, and can determine the execution item type for each device set control instruction.
具体的,可以根据场景名判断设备集控制指令的执行项类型,即同一场景的各设备集控制指令的执行项类型可以相同;为了提高灵活性,也可以预先为设备集控制指令设置对应的类型标识,在显示场景编辑界面时,可以根据设备集控制指令对应的类型标识判断该设备集控制指令的执行项类型,即同一场景的各设备集控制指令的执行项类型也可以不同。Specifically, the execution item type of the device set control instruction can be determined according to the scene name, that is, the execution item type of each device set control instruction in the same scene can be the same; in order to improve flexibility, the corresponding type can also be set for the device set control instruction in advance. When the scene editing interface is displayed, the execution item type of the equipment set control instruction can be judged according to the type identifier corresponding to the equipment set control instruction, that is, the execution item types of each equipment set control instruction in the same scene can also be different.
可以理解的是,详细调参类和快捷调参类只是用于指示不同的执行项显示方式,其也可以是其他名称,比如第一类型和第二类型,另外,也可以根据需要定义更多的类型,本实施例对此不做特别限定。It can be understood that the detailed parameter adjustment class and the quick parameter adjustment class are only used to indicate different display modes of execution items, and they can also be other names, such as the first type and the second type. In addition, you can also define more as needed. type, which is not particularly limited in this embodiment.
S203、纵向显示多条执行项,执行项与执行设备一一对应,执行项中包括指定可调参 数。S203. Display a plurality of execution items vertically, the execution items are in one-to-one correspondence with the execution equipment, and the execution items include specified adjustable parameters.
如果设备集控制指令的执行项类型为详细调参类,则可以如上述示例1中所示的纵向显示多条执行项,其中,执行项与执行设备一一对应,执行项中包括用于调节执行设备的指定功能参数的可调参数(即指定可调参数),指定功能参数可以是智能设备的某类功能参数,比如空气净化器的工作模式、智能灯的亮度等。If the execution item type of the device set control instruction is the detailed parameter adjustment class, multiple execution items can be displayed vertically as shown in Example 1 above, wherein the execution items are in one-to-one correspondence with the execution devices, and the execution items include parameters for adjusting the parameters. The adjustable parameters of the specified function parameters of the execution device (that is, the specified adjustable parameters), and the specified function parameters may be some kind of function parameters of the smart device, such as the working mode of the air purifier, the brightness of the smart lamp, etc.
其中,电子设备可以通过云服务器查询设备集控制指令对应的执行设备的设备标识和功能参数等设备信息,即云服务器可以管理电子设备上登录的用户账号所关联的智能设备,电子设备可以将设备集控制指令和登录的用户账号发送给云服务器,由云服务器根据设备集控制指令和用户账号查询到对应的执行设备的设备信息后,返回给电子设备。为了提高查询效率,电子设备也可以在本地管理用户账号所关联的智能设备,在进行查询时,电子设备可以在本地根据设备集控制指令查询对应的执行设备的设备标识,然后可以将设备标识发送给云服务器,由云服务器根据设备标识查询到对应的执行设备的设备信息后,返回给电子设备。Among them, the electronic device can query the device information such as the device identification and functional parameters of the execution device corresponding to the device set control instruction through the cloud server, that is, the cloud server can manage the smart device associated with the user account logged in the electronic device, and the electronic device can The set control instruction and the logged-in user account are sent to the cloud server, and the cloud server queries the device information of the corresponding execution device according to the device set control instruction and the user account, and returns it to the electronic device. In order to improve the query efficiency, the electronic device can also locally manage the smart device associated with the user account. When querying, the electronic device can locally query the device identification of the corresponding execution device according to the device set control instruction, and then can send the device identification To the cloud server, after the cloud server queries the device information of the corresponding execution device according to the device identifier, it returns to the electronic device.
S204、判断设备集控制指令对应的执行设备的功能参数是否可调,若是,则执行步骤S205;否则执行步骤S207。S204: Determine whether the function parameter of the execution device corresponding to the device set control instruction is adjustable, and if so, execute step S205; otherwise, execute step S207.
如果设备集控制指令的执行项类型为快捷调参类,电子设备可以先判断设备集控制指令对应的执行设备的功能参数是否可调,以上述示例中所示的设备集控制指令为例,如果设备集控制指令中指示指定功能参数,则可以认为设备集控制指令对应的执行设备的功能参数可调;如果设备集控制指令中未指示指定功能参数,则可以认为设备集控制指令对应的执行设备的功能参数不可调。当然,也可以通过其他方式判断设备集控制指令对应的执行设备的功能参数是否可调,比如可以通过预设的用于指示执行设备的功能参数是否可调的标识来判断,具体的判断方式本实施例不做特别限定。If the execution item type of the device set control instruction is the quick parameter adjustment class, the electronic device can first determine whether the functional parameters of the execution device corresponding to the device set control instruction are adjustable. Taking the device set control instruction shown in the above example as an example, if If the specified function parameters are indicated in the equipment set control instruction, it can be considered that the function parameters of the execution equipment corresponding to the equipment set control instruction are adjustable; if the specified function parameters are not indicated in the equipment set control instruction, it can be considered that the execution equipment corresponding to the equipment set control instruction The function parameters are not adjustable. Of course, it is also possible to judge whether the functional parameters of the execution device corresponding to the control instruction of the device set are adjustable in other ways. Examples are not particularly limited.
S205、判断设备集控制指令对应的执行设备是否存在相同的指定功能参数,若是,则执行步骤S206;否则执行步骤S207。S205: Determine whether the execution devices corresponding to the device set control instruction have the same specified function parameters, and if so, execute step S206; otherwise, execute step S207.
如果设备集控制指令对应的执行设备的功能参数可调,可以判断各执行设备之间是否存在相同的功能参数,如果存在,可以在执行项中显示对应的可调参数。If the function parameters of the execution device corresponding to the device set control instruction are adjustable, it can be determined whether the same function parameters exist among the execution devices, and if so, the corresponding adjustable parameters can be displayed in the execution item.
S206、显示一条执行项,执行项中包括相同功能参数对应的可调参数。S206. Display an execution item, where the execution item includes adjustable parameters corresponding to the same function parameters.
如图12中的b1项所示的,假设空气净化器A和空气净化器B存在相同的工作模式:低风模式,则可以在一条执行项中显示空气净化器A和空气净化器B,并显示对应的可调参数“低风模式”。可以理解的是,当存在多个相同的指定功能参数时,可以从中选择一个功能参数作为可调参数的预置参数值进行显示,用户点击该可调参数后,可以进行查看和选择其他相同的功能参数。As shown in item b1 in Figure 12, assuming that air purifier A and air purifier B have the same working mode: low wind mode, air purifier A and air purifier B can be displayed in one execution item, and Display the corresponding adjustable parameter "low wind mode". It can be understood that when there are multiple identical specified function parameters, one function parameter can be selected as the preset parameter value of the adjustable parameter for display. After the user clicks the adjustable parameter, he can view and select other same parameters Function parameter.
S207、显示一条执行项,执行项中不包括指定可调参数。S207. Display an execution item, and the execution item does not include the specified adjustable parameter.
如果设备集控制指令对应的执行设备的功能参数不可调,或者,设备集控制指令对应的执行设备不存在相同的指定功能参数,则可以在一条执行项中显示各个执行设备,但不显示指定可调参数。If the functional parameters of the execution device corresponding to the device set control instruction are not adjustable, or the execution device corresponding to the device set control instruction does not have the same specified function parameters, each execution device can be displayed in one execution item, but the specified parameters are not displayed. Adjust parameters.
为了提高处理效率,电子设备在接收到用户对场景的编辑触发操作后,对于每条目标设备集控制指令,可以先确定该目标设备集控制指令对应的设备数量,在设备数量只有一个的情况下,可以直接判断设备集控制指令对应的执行设备的功能参数是否可调,若可调, 则可以显示一条执行项,在执行项中显示指定可调参数;若不可调,则同样显示一条执行项,但在执行项中不显示指定可调参数。In order to improve processing efficiency, after receiving the user's editing trigger operation on the scene, for each target device set control command, the electronic device can first determine the number of devices corresponding to the target device set control command. In the case of only one device number , you can directly judge whether the function parameters of the execution device corresponding to the control instruction of the device set are adjustable. If it is adjustable, an execution item can be displayed, and the specified adjustable parameters are displayed in the execution item; if it is not adjustable, an execution item is also displayed. , but the specified tunable parameter is not displayed in the execution item.
另外,为了提高显示效率,电子设备在用户首次打开场景编辑界面后,可以保存界面描述信息,在用户再次触发场景编辑界面时,可以根据保存的界面描述信息显示场景编辑界面;为了提高显示结果的准确性,可以在执行指令对应的执行设备发生变化时,更新场景编辑界面,比如:用户A在电子设备上关联了新的空气净化器D,则可以将空气净化器D添加到执行项中显示。In addition, in order to improve the display efficiency, after the user opens the scene editing interface for the first time, the electronic device can save the interface description information, and when the user triggers the scene editing interface again, the scene editing interface can be displayed according to the saved interface description information; Accuracy, the scene editing interface can be updated when the execution device corresponding to the execution instruction changes. For example, if user A associates a new air purifier D on the electronic device, the air purifier D can be added to the execution item to display .
为了提高界面显示的灵活性,以提升用户体验,本实施例中,可以预先为设备集控制指令的执行项定义不同的设备集属性,电子设备可以根据定义的设备集属性来显示不同的执行项样式。In order to improve the flexibility of interface display and improve user experience, in this embodiment, different device set attributes can be defined in advance for the execution items of the device set control instruction, and the electronic device can display different execution items according to the defined device set attributes. style.
图14为本申请实施例提供的执行项的另一些显示样式示意图,如图14所示,开发者在定义设备集控制指令时,可以确定设备集属性(例如图中所示的空集、全集和指定集),电子设备根据用户拥有的智能设备显示执行项,下面结合图14中的示例进行说明。FIG. 14 is a schematic diagram of other display styles of the execution items provided by this embodiment of the present application. As shown in FIG. 14 , when defining a device set control instruction, a developer can determine a device set attribute (for example, an empty set, a complete set shown in the figure) and specified set), the electronic device displays the execution items according to the smart device owned by the user, which will be described below with reference to the example in FIG. 14 .
空集示例:开发者定义的设备集控制指令可以为:Example of an empty set: A developer-defined device set control instruction can be:
打开【空气净化器#空集】Open [Air Purifier #empty set]
用户A拥有空气净化器A和空气净化器B,则用户A所持电子设备上场景编辑界面中显示的执行项的样式可以为:If user A has air purifier A and air purifier B, the style of the execution item displayed in the scene editing interface on the electronic device held by user A can be:
打开指定空气净化器Turn on the designated air purifier
用户B拥有空气净化器C,则用户B所持电子设备上场景编辑界面中显示的执行项的样式可以为:User B owns air purifier C, then the style of the execution item displayed in the scene editing interface on the electronic device held by user B can be:
打开空气净化器CTurn on the air purifier C
即当设备集控制指令对应的设备集中包括多个执行设备时,设备集对应的可调参数可以显示为空集样式(此处简称为空集可调参数),该空集可调参数没有预置参数值(即预设的执行设备),用户可以在编辑该空集可调参数时,在设备集控制指令对应的设备集中进行选择。为了便于用户理解,该空集可调参数可以包括提示信息,并可以突出显示,例如图14中所示的加粗显示提示信息:指定空气净化器,图3中所示的加粗显示提示信息:指定智能灯,当然,不局限于此种突出显示方式,例如也可以是通过特定颜色实现突出显示;提示信息也可以是其他内容。That is, when the device set corresponding to the device set control instruction includes multiple execution devices, the tunable parameters corresponding to the device set can be displayed in an empty set style (herein referred to as empty set tunable parameters). Set parameter value (ie preset execution device), the user can select from the device set corresponding to the device set control instruction when editing the tunable parameter of the empty set. In order to facilitate the user's understanding, the empty set adjustable parameters can include prompt information, and can be highlighted, such as the bold display prompt information shown in Figure 14: specify an air purifier, the bold display prompt information shown in Figure 3 : Specify the smart light. Of course, it is not limited to this highlighting method. For example, it can also be highlighted by a specific color; the prompt information can also be other content.
当设备集控制指令对应的设备集中只包括一个执行设备时,用户没有其他的选择,则可以在执行项中直接显示该执行设备,例如图14中所示的,可以将执行项中设备集对应的可调参数的预置参数值设置为设备集控制指令对应的执行设备的设备名。When the device set corresponding to the device set control instruction includes only one execution device, and the user has no other choice, the execution device can be directly displayed in the execution item. For example, as shown in FIG. The preset parameter value of the adjustable parameter is set to the device name of the execution device corresponding to the device set control instruction.
全集示例:开发者定义的设备集控制指令可以为:Complete set example: The device set control command defined by the developer can be:
打开【空气净化器#全集】Open【Air Purifier#Complete Collection】
用户A拥有空气净化器A和空气净化器B,则用户A所持电子设备上场景编辑界面中显示的执行项的样式可以为:If user A has air purifier A and air purifier B, the style of the execution item displayed in the scene editing interface on the electronic device held by user A can be:
打开空气净化器A、空气净化器BTurn on Air Purifier A, Air Purifier B
用户B拥有空气净化器C,则用户B所持电子设备上场景编辑界面中显示的执行项的样式可以为:User B owns air purifier C, then the style of the execution item displayed in the scene editing interface on the electronic device held by user B can be:
打开空气净化器CTurn on the air purifier C
即对于全集,执行项中设备集对应的可调参数中包括设备集控制指令对应的设备集中所有执行设备的名称。That is, for the complete set, the adjustable parameters corresponding to the device set in the execution item include the names of all execution devices in the device set corresponding to the device set control instruction.
指定集示例:开发者定义的设备集控制指令可以为:Specified Set Example: A developer-defined device set control directive can be:
打开【#灯数量最多的房间里的所有灯】Turn on [# all lights in the room with the most lights]
用户A的灯数量最多的房间里的所有灯包括智能灯A、智能灯B和智能灯C,则用户A所持电子设备上场景编辑界面中显示的执行项的样式可以为:All the lights in the room with the largest number of lights of user A include smart light A, smart light B and smart light C, then the style of the execution item displayed in the scene editing interface on the electronic device held by user A can be:
打开智能灯A、智能灯B、智能灯CTurn on smart light A, smart light B, smart light C
即对于指定集,可以直接在一条执行项中列出指定集对应的各执行设备。That is, for a specified set, each execution device corresponding to the specified set can be listed directly in an execution item.
基于上述显示方式,电子设备可以采用图15所示的方法显示执行流程中设备集控制指令对应的执行项。图15为本申请实施例提供的另一种执行项显示流程示意图,如图15所示,电子设备在接收到用户对场景的编辑触发操作后,对于每条设备集控制指令,可以进行设备集属性判断,如果该设备集控制指令的设备集属性为空集,则可以判断该设备集控制指令对应的设备集包括的执行设备的设备数量是一个还是多个,如果设备数量为多个,则可以在执行项中显示包含提示信息的空集可调参数;如果设备数量为一个,则可以在执行项中显示这个执行设备的设备名。如果该设备集控制指令的设备集属性为全集,则可以在执行项中显示设备集控制指令对应的所有执行设备的设备名;如果该设备集控制指令的设备集属性为指定集,则可以在执行项中显示指定集对应的执行设备的设备名。Based on the above display manner, the electronic device can use the method shown in FIG. 15 to display the execution item corresponding to the device set control instruction in the execution flow. FIG. 15 is a schematic diagram of another execution item display flow diagram provided by an embodiment of the present application. As shown in FIG. 15 , after receiving an editing trigger operation on a scene from a user, the electronic device can perform a device set control instruction for each device set control instruction. Attribute judgment. If the device set attribute of the device set control instruction is an empty set, it can be judged whether the number of execution devices included in the device set corresponding to the device set control instruction is one or more. If the number of devices is multiple, then An empty set of tunable parameters containing prompt information can be displayed in the execution item; if the number of devices is one, the device name of the execution device can be displayed in the execution item. If the device set attribute of the device set control instruction is the complete set, the device names of all executing devices corresponding to the device set control instruction can be displayed in the execution item; if the device set attribute of the device set control instruction is the specified set, it can be displayed in the execution item The device name of the execution device corresponding to the specified set is displayed in the execution item.
其中,设备集属性可以根据设备集控制指令的内容判断,比如上述示例中的设备集控制指令,指令内容中指示了空集、全集或指定集。设备集控制指令对应的设备集包括的执行设备的设备数量,可以采用图13中对应的执行设备确定方式确定,此处不再赘述。The device set attribute can be determined according to the content of the device set control instruction. For example, in the device set control instruction in the above example, the content of the instruction indicates an empty set, a complete set or a specified set. The number of executing devices included in the device set corresponding to the device set control instruction can be determined by using the corresponding executing device determination method in FIG. 13 , and details are not repeated here.
对于全集和指定集对应的设备集控制指令,可以如图12所示的定义不同的执行项类型,在显示时对应显示不同的执行项样式。本实施例中,触发条件的显示方式与执行项的显示方式类似,此处不再赘述。For the device set control instructions corresponding to the complete set and the specified set, different execution item types can be defined as shown in FIG. 12 , and different execution item styles are correspondingly displayed when displayed. In this embodiment, the display manner of the trigger condition is similar to the display manner of the execution item, and details are not described herein again.
本实施例提供的交互方法,场景编辑界面中显示触发条件和执行动作对应的执行项的功能描述文本,且功能描述文本中可以穿插一个或多个与场景的执行动作相关的可调参数,这样可以方便用户通过不同的可调参数调节执行设备的不同参数,从而可以缩短参数设置路径;而且,可调参数与场景相关,即在显示可调参数时过滤掉一些与场景无关的参数,这样可以简化参数编辑界面;另外,本实施例中,可以将具有相同或相似功能参数的多个执行设备通过一条执行项进行控制,这样用户可以同时对多个执行设备进行编辑,因而本实施例提供的技术方案可以提高场景编辑效率。此外,本实施例中,场景编辑界面中的执行项可以组合多个执行设备的功能,从而可以实现更加多样化的设备控制功能。In the interaction method provided by this embodiment, the function description text of the execution item corresponding to the trigger condition and the execution action is displayed in the scene editing interface, and one or more adjustable parameters related to the execution action of the scene can be interspersed in the function description text, so that It is convenient for users to adjust different parameters of the execution device through different adjustable parameters, thereby shortening the parameter setting path; moreover, the adjustable parameters are related to the scene, that is, some parameters that are not related to the scene are filtered out when the adjustable parameters are displayed, so that the Simplifies the parameter editing interface; in addition, in this embodiment, multiple execution devices with the same or similar functional parameters can be controlled through one execution item, so that the user can edit multiple execution devices at the same time, so this embodiment provides The technical solution can improve the scene editing efficiency. In addition, in this embodiment, the execution items in the scene editing interface can combine the functions of multiple execution devices, so that more diverse device control functions can be implemented.
基于同一发明构思,作为对上述方法的实现,本申请实施例提供了一种交互装置,该装置实施例与前述方法实施例对应,为便于阅读,本装置实施例不再对前述方法实施例中的细节内容进行逐一赘述,但应当明确,本实施例中的装置能够对应实现前述方法实施例中的全部内容。Based on the same inventive concept, as an implementation of the above method, the embodiment of the present application provides an interactive device, which corresponds to the foregoing method embodiment. For ease of reading, the present device embodiment does not refer to the foregoing method embodiment. The details of the method are described one by one, but it should be clear that the apparatus in this embodiment can correspondingly implement all the contents in the foregoing method embodiments.
图16为本申请实施例提供的交互装置的结构示意图,如图16所示,本实施例提供的装置包括:显示模块210、输入模块220、处理模块230和通信模块240。FIG. 16 is a schematic structural diagram of an interaction apparatus provided by an embodiment of the present application. As shown in FIG. 16 , the apparatus provided by this embodiment includes a display module 210 , an input module 220 , a processing module 230 , and a communication module 240 .
其中,显示模块210用于支持移动终端执行上述实施例中的界面显示操作和/或用于本文所描述的技术的其它过程。显示单元可以是触摸屏或其他硬件或硬件与软件的综合体。Among them, the display module 210 is used to support the mobile terminal to perform the interface display operations in the above-mentioned embodiments and/or other processes for the techniques described herein. The display unit may be a touch screen or other hardware or a combination of hardware and software.
输入模块220用于接收用户在移动终端的显示界面上的输入,如触摸输入、语音输入、手势输入等,输入模块用于支持终端执行上述实施例中的S101、S110中与接收用户确定操作的步骤、S201和/或用于本文所描述的技术的其它过程。输入模块可以是触摸屏或其他硬件或硬件与软件的综合体。The input module 220 is used to receive the user's input on the display interface of the mobile terminal, such as touch input, voice input, gesture input, etc. The input module is used to support the terminal to perform S101 and S110 in the above embodiment and receive the user-determined operation. steps, S201 and/or other processes for the techniques described herein. The input module can be a touch screen or other hardware or a combination of hardware and software.
处理模块230用于支持移动终端执行上述实施例中的S102-S110、S202-S207、图12中的处理操作和/或用于本文所描述的技术的其它过程。The processing module 230 is used to support the mobile terminal to perform S102-S110, S202-S207 in the above-described embodiments, the processing operations in FIG. 12, and/or other processes for the techniques described herein.
通信模块240用于支持移动终端执行上述实施例中与云服务器和智能设备之间的通信过程相关的操作和/或用于本文所描述的技术的其它过程。The communication module 240 is used to support the mobile terminal to perform the operations related to the communication process between the cloud server and the smart device in the above-described embodiments and/or other processes for the techniques described herein.
本实施例提供的装置可以执行上述方法实施例,其实现原理与技术效果类似,此处不再赘述。The apparatus provided in this embodiment may execute the foregoing method embodiments, and the implementation principles and technical effects thereof are similar, and details are not described herein again.
所属领域的技术人员可以清楚地了解到,为了描述的方便和简洁,仅以上述各功能单元、模块的划分进行举例说明,实际应用中,可以根据需要而将上述功能分配由不同的功能单元、模块完成,即将所述装置的内部结构划分成不同的功能单元或模块,以完成以上描述的全部或者部分功能。实施例中的各功能单元、模块可以集成在一个处理单元中,也可以是各个单元单独物理存在,也可以两个或两个以上单元集成在一个单元中,上述集成的单元既可以采用硬件的形式实现,也可以采用软件功能单元的形式实现。另外,各功能单元、模块的具体名称也只是为了便于相互区分,并不用于限制本申请的保护范围。上述系统中单元、模块的具体工作过程,可以参考前述方法实施例中的对应过程,在此不再赘述。Those skilled in the art can clearly understand that, for the convenience and simplicity of description, only the division of the above-mentioned functional units and modules is used as an example. Module completion, that is, dividing the internal structure of the device into different functional units or modules to complete all or part of the functions described above. Each functional unit and module in the embodiment may be integrated in one processing unit, or each unit may exist physically alone, or two or more units may be integrated in one unit, and the above-mentioned integrated units may adopt hardware. It can also be realized in the form of software functional units. In addition, the specific names of the functional units and modules are only for the convenience of distinguishing from each other, and are not used to limit the protection scope of the present application. For the specific working processes of the units and modules in the above-mentioned system, reference may be made to the corresponding processes in the foregoing method embodiments, which will not be repeated here.
基于同一发明构思,本申请实施例还提供一种电子设备,请参阅图17,图17为本申请实施例提供的电子设备的结构示意图。Based on the same inventive concept, an embodiment of the present application further provides an electronic device. Please refer to FIG. 17 , which is a schematic structural diagram of the electronic device provided by the embodiment of the present application.
电子设备100可以包括处理器110,外部存储器接口120,内部存储器121,通用串行总线(universal serial bus,USB)接口130,充电管理模块140,电源管理模块141,电池142,天线1,天线2,移动通信模块150,无线通信模块160,音频模块170,扬声器170A,受话器170B,麦克风170C,耳机接口170D,传感器模块180,按键190,马达191,指示器192,摄像头193,显示屏194,以及用户标识模块(subscriber identification module,SIM)卡接口195等。其中传感器模块180可以包括压力传感器180A,陀螺仪传感器180B,气压传感器180C,磁传感器180D,加速度传感器180E,距离传感器180F,接近光传感器180G,指纹传感器180H,温度传感器180J,触摸传感器180K,环境光传感器180L,骨传导传感器180M等。The electronic device 100 may include a processor 110, an external memory interface 120, an internal memory 121, a universal serial bus (USB) interface 130, a charge management module 140, a power management module 141, a battery 142, an antenna 1, an antenna 2 , mobile communication module 150, wireless communication module 160, audio module 170, speaker 170A, receiver 170B, microphone 170C, headphone jack 170D, sensor module 180, buttons 190, motor 191, indicator 192, camera 193, display screen 194, and Subscriber identification module (subscriber identification module, SIM) card interface 195 and so on. The sensor module 180 may include a pressure sensor 180A, a gyroscope sensor 180B, an air pressure sensor 180C, a magnetic sensor 180D, an acceleration sensor 180E, a distance sensor 180F, a proximity light sensor 180G, a fingerprint sensor 180H, a temperature sensor 180J, a touch sensor 180K, and ambient light. Sensor 180L, bone conduction sensor 180M, etc.
可以理解的是,本发明实施例示意的结构并不构成对电子设备100的具体限定。在本申请另一些实施例中,电子设备100可以包括比图示更多或更少的部件,或者组合某些部件,或者拆分某些部件,或者不同的部件布置。图示的部件可以以硬件,软件或软件和硬件的组合实现。It can be understood that, the structures illustrated in the embodiments of the present invention do not constitute a specific limitation on the electronic device 100 . In other embodiments of the present application, the electronic device 100 may include more or less components than shown, or combine some components, or separate some components, or arrange different components. The illustrated components may be implemented in hardware, software, or a combination of software and hardware.
处理器110可以包括一个或多个处理单元,例如:处理器110可以包括应用处理器(application processor,AP),调制解调处理器,图形处理器(sraphics processing unit,GPU),图像信号处理器(image signal processor,ISP),控制器,存储器,视频编解码器,数字信号处理器(digital signal processor,DSP),基带处理器,和/或神经网络处理器(neural-network processing unit,NPU)等。其中,不同的处理单元可以是独立的器件,也 可以集成在一个或多个处理器中。The processor 110 may include one or more processing units, for example, the processor 110 may include an application processor (application processor, AP), a modem processor, a graphics processor (sraphics processing unit, GPU), an image signal processor (image signal processor, ISP), controller, memory, video codec, digital signal processor (digital signal processor, DSP), baseband processor, and/or neural-network processing unit (NPU) Wait. Among them, different processing units can be independent devices, or can be integrated in one or more processors.
其中,控制器可以是电子设备100的神经中枢和指挥中心。控制器可以根据指令操作码和时序信号,产生操作控制信号,完成取指令和执行指令的控制。The controller may be the nerve center and command center of the electronic device 100 . The controller can generate an operation control signal according to the instruction operation code and timing signal, and complete the control of fetching and executing instructions.
处理器110中还可以设置存储器,用于存储指令和数据。在一些实施例中,处理器110中的存储器为高速缓冲存储器。该存储器可以保存处理器110刚用过或循环使用的指令或数据。如果处理器110需要再次使用该指令或数据,可从所述存储器中直接调用。避免了重复存取,减少了处理器110的等待时间,因而提高了系统的效率。A memory may also be provided in the processor 110 for storing instructions and data. In some embodiments, the memory in processor 110 is cache memory. This memory may hold instructions or data that have just been used or recycled by the processor 110 . If the processor 110 needs to use the instruction or data again, it can be called directly from the memory. Repeated accesses are avoided and the latency of the processor 110 is reduced, thereby increasing the efficiency of the system.
在一些实施例中,处理器110可以包括一个或多个接口。接口可以包括集成电路(inter-integrated circuit,I2C)接口,集成电路内置音频(inter-integrated circuit sound,I2S)接口,脉冲编码调制(pulse code modulation,PCM)接口,通用异步收发传输器(universal asynchronous receiver/transmitter,UART)接口,移动产业处理器接口(mobile industry processor interface,MIPI),通用输入输出(general-purpose input/output,GPIO)接口,用户标识模块(subscriber identity module,SIM)接口,和/或通用串行总线(universal serial bus,USB)接口等。In some embodiments, the processor 110 may include one or more interfaces. The interface may include an integrated circuit (inter-integrated circuit, I2C) interface, an integrated circuit built-in audio (inter-integrated circuit sound, I2S) interface, a pulse code modulation (pulse code modulation, PCM) interface, a universal asynchronous transceiver (universal asynchronous transmitter) receiver/transmitter, UART) interface, mobile industry processor interface (MIPI), general-purpose input/output (GPIO) interface, subscriber identity module (SIM) interface, and / or universal serial bus (universal serial bus, USB) interface, etc.
I2C接口是一种双向同步串行总线,包括一根串行数据线(serial data line,SDA)和一根串行时钟线(serail clock line,SCL)。在一些实施例中,处理器110可以包含多组I2C总线。处理器110可以通过不同的I2C总线接口分别耦合触摸传感器180K,充电器,闪光灯,摄像头193等。例如:处理器110可以通过I2C接口耦合触摸传感器180K,使处理器110与触摸传感器180K通过I2C总线接口通信,实现电子设备100的触摸功能。The I2C interface is a bidirectional synchronous serial bus that includes a serial data line (SDA) and a serial clock line (SCL). In some embodiments, the processor 110 may contain multiple sets of I2C buses. The processor 110 can be respectively coupled to the touch sensor 180K, the charger, the flash, the camera 193 and the like through different I2C bus interfaces. For example, the processor 110 may couple the touch sensor 180K through the I2C interface, so that the processor 110 and the touch sensor 180K communicate with each other through the I2C bus interface, so as to realize the touch function of the electronic device 100 .
I2S接口可以用于音频通信。在一些实施例中,处理器110可以包含多组I2S总线。处理器110可以通过I2S总线与音频模块170耦合,实现处理器110与音频模块170之间的通信。在一些实施例中,音频模块170可以通过I2S接口向无线通信模块160传递音频信号,实现通过蓝牙耳机接听电话的功能。The I2S interface can be used for audio communication. In some embodiments, the processor 110 may contain multiple sets of I2S buses. The processor 110 may be coupled with the audio module 170 through an I2S bus to implement communication between the processor 110 and the audio module 170 . In some embodiments, the audio module 170 can transmit audio signals to the wireless communication module 160 through the I2S interface, so as to realize the function of answering calls through a Bluetooth headset.
PCM接口也可以用于音频通信,将模拟信号抽样,量化和编码。在一些实施例中,音频模块170与无线通信模块160可以通过PCM总线接口耦合。在一些实施例中,音频模块170也可以通过PCM接口向无线通信模块160传递音频信号,实现通过蓝牙耳机接听电话的功能。所述I2S接口和所述PCM接口都可以用于音频通信。The PCM interface can also be used for audio communications, sampling, quantizing and encoding analog signals. In some embodiments, the audio module 170 and the wireless communication module 160 may be coupled through a PCM bus interface. In some embodiments, the audio module 170 can also transmit audio signals to the wireless communication module 160 through the PCM interface, so as to realize the function of answering calls through the Bluetooth headset. Both the I2S interface and the PCM interface can be used for audio communication.
UART接口是一种通用串行数据总线,用于异步通信。该总线可以为双向通信总线。它将要传输的数据在串行通信与并行通信之间转换。在一些实施例中,UART接口通常被用于连接处理器110与无线通信模块160。例如:处理器110通过UART接口与无线通信模块160中的蓝牙模块通信,实现蓝牙功能。在一些实施例中,音频模块170可以通过UART接口向无线通信模块160传递音频信号,实现通过蓝牙耳机播放音乐的功能。The UART interface is a universal serial data bus used for asynchronous communication. The bus may be a bidirectional communication bus. It converts the data to be transmitted between serial communication and parallel communication. In some embodiments, a UART interface is typically used to connect the processor 110 with the wireless communication module 160 . For example, the processor 110 communicates with the Bluetooth module in the wireless communication module 160 through the UART interface to implement the Bluetooth function. In some embodiments, the audio module 170 can transmit audio signals to the wireless communication module 160 through the UART interface, so as to realize the function of playing music through the Bluetooth headset.
MIPI接口可以被用于连接处理器110与显示屏194,摄像头193等外围器件。MIPI接口包括摄像头串行接口(camera serial interface,CSI),显示屏串行接口(display serial interface,DSI)等。在一些实施例中,处理器110和摄像头193通过CSI接口通信,实现电子设备100的拍摄功能。处理器110和显示屏194通过DSI接口通信,实现电子设备100的显示功能。The MIPI interface can be used to connect the processor 110 with peripheral devices such as the display screen 194 and the camera 193 . MIPI interfaces include camera serial interface (CSI), display serial interface (DSI), etc. In some embodiments, the processor 110 communicates with the camera 193 through a CSI interface, so as to realize the photographing function of the electronic device 100 . The processor 110 communicates with the display screen 194 through the DSI interface to implement the display function of the electronic device 100 .
GPIO接口可以通过软件配置。GPIO接口可以被配置为控制信号,也可被配置为数据信号。在一些实施例中,GPIO接口可以用于连接处理器110与摄像头193,显示屏194, 无线通信模块160,音频模块170,传感器模块180等。GPIO接口还可以被配置为I2C接口,I2S接口,UART接口,MIPI接口等。The GPIO interface can be configured by software. The GPIO interface can be configured as a control signal or as a data signal. In some embodiments, the GPIO interface may be used to connect the processor 110 with the camera 193, the display screen 194, the wireless communication module 160, the audio module 170, the sensor module 180, and the like. The GPIO interface can also be configured as I2C interface, I2S interface, UART interface, MIPI interface, etc.
USB接口130是符合USB标准规范的接口,具体可以是Mini USB接口,Micro USB接口,USB Type C接口等。USB接口130可以用于连接充电器为电子设备100充电,也可以用于电子设备100与外围设备之间传输数据。也可以用于连接耳机,通过耳机播放音频。该接口还可以用于连接其他电子设备,例如AR设备等。The USB interface 130 is an interface that conforms to the USB standard specification, and may specifically be a Mini USB interface, a Micro USB interface, a USB Type C interface, and the like. The USB interface 130 can be used to connect a charger to charge the electronic device 100, and can also be used to transmit data between the electronic device 100 and peripheral devices. It can also be used to connect headphones to play audio through the headphones. The interface can also be used to connect other electronic devices, such as AR devices.
可以理解的是,本发明实施例示意的各模块间的接口连接关系,只是示意性说明,并不构成对电子设备100的结构限定。在本申请另一些实施例中,电子设备100也可以采用上述实施例中不同的接口连接方式,或多种接口连接方式的组合。It can be understood that the interface connection relationship between the modules illustrated in the embodiment of the present invention is only a schematic illustration, and does not constitute a structural limitation of the electronic device 100 . In other embodiments of the present application, the electronic device 100 may also adopt different interface connection manners in the foregoing embodiments, or a combination of multiple interface connection manners.
充电管理模块140用于从充电器接收充电输入。其中,充电器可以是无线充电器,也可以是有线充电器。在一些有线充电的实施例中,充电管理模块140可以通过USB接口130接收有线充电器的充电输入。在一些无线充电的实施例中,充电管理模块140可以通过电子设备100的无线充电线圈接收无线充电输入。充电管理模块140为电池142充电的同时,还可以通过电源管理模块141为电子设备供电。The charging management module 140 is used to receive charging input from the charger. The charger may be a wireless charger or a wired charger. In some wired charging embodiments, the charging management module 140 may receive charging input from the wired charger through the USB interface 130 . In some wireless charging embodiments, the charging management module 140 may receive wireless charging input through a wireless charging coil of the electronic device 100 . While the charging management module 140 charges the battery 142 , it can also supply power to the electronic device through the power management module 141 .
电源管理模块141用于连接电池142,充电管理模块140与处理器110。电源管理模块141接收电池142和/或充电管理模块140的输入,为处理器110,内部存储器121,外部存储器,显示屏194,摄像头193,和无线通信模块160等供电。电源管理模块141还可以用于监测电池容量,电池循环次数,电池健康状态(漏电,阻抗)等参数。在其他一些实施例中,电源管理模块141也可以设置于处理器110中。在另一些实施例中,电源管理模块141和充电管理模块140也可以设置于同一个器件中。The power management module 141 is used for connecting the battery 142 , the charging management module 140 and the processor 110 . The power management module 141 receives input from the battery 142 and/or the charging management module 140 and supplies power to the processor 110 , the internal memory 121 , the external memory, the display screen 194 , the camera 193 , and the wireless communication module 160 . The power management module 141 can also be used to monitor parameters such as battery capacity, battery cycle times, battery health status (leakage, impedance). In some other embodiments, the power management module 141 may also be provided in the processor 110 . In other embodiments, the power management module 141 and the charging management module 140 may also be provided in the same device.
电子设备100的无线通信功能可以通过天线1,天线2,移动通信模块150,无线通信模块160,调制解调处理器以及基带处理器等实现。The wireless communication function of the electronic device 100 may be implemented by the antenna 1, the antenna 2, the mobile communication module 150, the wireless communication module 160, the modulation and demodulation processor, the baseband processor, and the like.
天线1和天线2用于发射和接收电磁波信号。电子设备100中的每个天线可用于覆盖单个或多个通信频带。不同的天线还可以复用,以提高天线的利用率。例如:可以将天线1复用为无线局域网的分集天线。在另外一些实施例中,天线可以和调谐开关结合使用。Antenna 1 and Antenna 2 are used to transmit and receive electromagnetic wave signals. Each antenna in electronic device 100 may be used to cover a single or multiple communication frequency bands. Different antennas can also be reused to improve antenna utilization. For example, the antenna 1 can be multiplexed as a diversity antenna of the wireless local area network. In other embodiments, the antenna may be used in conjunction with a tuning switch.
移动通信模块150可以提供应用在电子设备100上的包括2G/3G/4G/5G等无线通信的解决方案。移动通信模块150可以包括至少一个滤波器,开关,功率放大器,低噪声放大器(low noise amplifier,LNA)等。移动通信模块150可以由天线1接收电磁波,并对接收的电磁波进行滤波,放大等处理,传送至调制解调处理器进行解调。移动通信模块150还可以对经调制解调处理器调制后的信号放大,经天线1转为电磁波辐射出去。在一些实施例中,移动通信模块150的至少部分功能模块可以被设置于处理器110中。在一些实施例中,移动通信模块150的至少部分功能模块可以与处理器110的至少部分模块被设置在同一个器件中。The mobile communication module 150 may provide wireless communication solutions including 2G/3G/4G/5G etc. applied on the electronic device 100 . The mobile communication module 150 may include at least one filter, switch, power amplifier, low noise amplifier (LNA) and the like. The mobile communication module 150 can receive electromagnetic waves from the antenna 1, filter and amplify the received electromagnetic waves, and transmit them to the modulation and demodulation processor for demodulation. The mobile communication module 150 can also amplify the signal modulated by the modulation and demodulation processor, and then turn it into an electromagnetic wave for radiation through the antenna 1 . In some embodiments, at least part of the functional modules of the mobile communication module 150 may be provided in the processor 110 . In some embodiments, at least part of the functional modules of the mobile communication module 150 may be provided in the same device as at least part of the modules of the processor 110 .
调制解调处理器可以包括调制器和解调器。其中,调制器用于将待发送的低频基带信号调制成中高频信号。解调器用于将接收的电磁波信号解调为低频基带信号。随后解调器将解调得到的低频基带信号传送至基带处理器处理。低频基带信号经基带处理器处理后,被传递给应用处理器。应用处理器通过音频设备(不限于扬声器170A,受话器170B等)输出声音信号,或通过显示屏194显示图像或视频。在一些实施例中,调制解调处理器可以是独立的器件。在另一些实施例中,调制解调处理器可以独立于处理器110,与移动通 信模块150或其他功能模块设置在同一个器件中。The modem processor may include a modulator and a demodulator. Wherein, the modulator is used to modulate the low frequency baseband signal to be sent into a medium and high frequency signal. The demodulator is used to demodulate the received electromagnetic wave signal into a low frequency baseband signal. Then the demodulator transmits the demodulated low-frequency baseband signal to the baseband processor for processing. The low frequency baseband signal is processed by the baseband processor and passed to the application processor. The application processor outputs sound signals through audio devices (not limited to the speaker 170A, the receiver 170B, etc.), or displays images or videos through the display screen 194 . In some embodiments, the modem processor may be a stand-alone device. In other embodiments, the modem processor may be independent of the processor 110, and may be provided in the same device as the mobile communication module 150 or other functional modules.
无线通信模块160可以提供应用在电子设备100上的包括无线局域网(wireless local area networks,WLAN)(如无线保真(wireless fidelity,Wi-Fi)网络),蓝牙(bluetooth,BT),全球导航卫星系统(global navigation satellite system,GNSS),调频(frequency modulation,FM),近距离无线通信技术(near field communication,NFC),红外技术(infrared,IR)等无线通信的解决方案。无线通信模块160可以是集成至少一个通信处理模块的一个或多个器件。无线通信模块160经由天线2接收电磁波,将电磁波信号调频以及滤波处理,将处理后的信号发送到处理器110。无线通信模块160还可以从处理器110接收待发送的信号,对其进行调频,放大,经天线2转为电磁波辐射出去。The wireless communication module 160 can provide applications on the electronic device 100 including wireless local area networks (WLAN) (such as wireless fidelity (Wi-Fi) networks), bluetooth (BT), global navigation satellites Wireless communication solutions such as global navigation satellite system (GNSS), frequency modulation (FM), near field communication (NFC), and infrared technology (IR). The wireless communication module 160 may be one or more devices integrating at least one communication processing module. The wireless communication module 160 receives electromagnetic waves via the antenna 2 , frequency modulates and filters the electromagnetic wave signals, and sends the processed signals to the processor 110 . The wireless communication module 160 can also receive the signal to be sent from the processor 110 , perform frequency modulation on it, amplify it, and convert it into electromagnetic waves for radiation through the antenna 2 .
在一些实施例中,电子设备100的天线1和移动通信模块150耦合,天线2和无线通信模块160耦合,使得电子设备100可以通过无线通信技术与网络以及其他设备通信。所述无线通信技术可以包括全球移动通讯系统(global system for mobile communications,GSM),通用分组无线服务(general packet radio service,GPRS),码分多址接入(code division multiple access,CDMA),宽带码分多址(wideband code division multiple access,WCDMA),时分同步码分多址(time division-synchronous code division multiple access,TD-SCDMA),长期演进(long term evolution,LTE),BT,GNSS,WLAN,NFC,FM,和/或IR技术等。所述GNSS可以包括全球卫星定位系统(global positioning system,GPS),全球导航卫星系统(global navigation satellite system,GNSS),北斗卫星导航系统(beidou navigation satellite system,BDS),准天顶卫星系统(quasi-zenith satellite system,QZSS)和/或星基增强系统(satellite based augmentation systems,SBAS)。In some embodiments, the antenna 1 of the electronic device 100 is coupled with the mobile communication module 150, and the antenna 2 is coupled with the wireless communication module 160, so that the electronic device 100 can communicate with the network and other devices through wireless communication technology. The wireless communication technology may include global system for mobile communications (GSM), general packet radio service (GPRS), code division multiple access (CDMA), broadband Code Division Multiple Access (WCDMA), Time Division Synchronous Code Division Multiple Access (TD-SCDMA), Long Term Evolution (LTE), BT, GNSS, WLAN , NFC, FM, and/or IR technology, etc. The GNSS may include global positioning system (global positioning system, GPS), global navigation satellite system (global navigation satellite system, GNSS), Beidou navigation satellite system (beidou navigation satellite system, BDS), quasi-zenith satellite system (quasi satellite system) -zenith satellite system, QZSS) and/or satellite based augmentation systems (SBAS).
电子设备100通过GPU,显示屏194,以及应用处理器等实现显示功能。GPU为图像处理的微处理器,连接显示屏194和应用处理器。GPU用于执行数学和几何计算,用于图形渲染。处理器110可包括一个或多个GPU,其执行程序指令以生成或改变显示信息。The electronic device 100 implements a display function through a GPU, a display screen 194, an application processor, and the like. The GPU is a microprocessor for image processing, and is connected to the display screen 194 and the application processor. The GPU is used to perform mathematical and geometric calculations for graphics rendering. Processor 110 may include one or more GPUs that execute program instructions to generate or alter display information.
显示屏194用于显示图像,视频等。显示屏194包括显示面板。显示面板可以采用液晶显示屏(liquid crystal display,LCD),有机发光二极管(organic light-emitting diode,OLED),有源矩阵有机发光二极体或主动矩阵有机发光二极体(active-matrix organic light emitting diode的,AMOLED),柔性发光二极管(flex light-emitting diode,FLED),Mini LED,Micro LED,量子点发光二极管(quantum dot light emitting diodes,QLED)等。在一些实施例中,电子设备100可以包括1个或N个显示屏194,N为大于1的正整数。Display screen 194 is used to display images, videos, and the like. Display screen 194 includes a display panel. The display panel can be a liquid crystal display (LCD), an organic light-emitting diode (OLED), an active-matrix organic light-emitting diode or an active-matrix organic light-emitting diode (active-matrix organic light). emitting diode, AMOLED), flexible light-emitting diode (flex light-emitting diode, FLED), Mini LED, Micro LED, quantum dot light emitting diode (quantum dot light emitting diodes, QLED) and so on. In some embodiments, the electronic device 100 may include one or N display screens 194 , where N is a positive integer greater than one.
电子设备100可以通过ISP,摄像头193,视频编解码器,GPU,显示屏194以及应用处理器等实现拍摄功能。The electronic device 100 may implement a shooting function through an ISP, a camera 193, a video codec, a GPU, a display screen 194, an application processor, and the like.
ISP用于处理摄像头193反馈的数据。例如,拍照时,打开快门,光线通过镜头被传递到摄像头感光元件上,光信号转换为电信号,摄像头感光元件将所述电信号传递给ISP处理,转化为肉眼可见的图像。ISP还可以对图像的噪点,亮度,肤色进行算法优化。ISP还可以对拍摄场景的曝光,色温等参数优化。在一些实施例中,ISP可以设置在摄像头193中。The ISP is used to process the data fed back by the camera 193 . For example, when taking a photo, the shutter is opened, the light is transmitted to the camera photosensitive element through the lens, the light signal is converted into an electrical signal, and the camera photosensitive element transmits the electrical signal to the ISP for processing, and converts it into an image visible to the naked eye. ISP can also perform algorithm optimization on image noise, brightness, and skin tone. ISP can also optimize the exposure, color temperature and other parameters of the shooting scene. In some embodiments, the ISP may be provided in the camera 193 .
摄像头193用于捕获静态图像或视频。物体通过镜头生成光学图像投射到感光元件。感光元件可以是电荷耦合器件(charge coupled device,CCD)或互补金属氧化物半导体(complementary metal-oxide-semiconductor,CMOS)光电晶体管。感光元件把光信号转换 成电信号,之后将电信号传递给ISP转换成数字图像信号。ISP将数字图像信号输出到DSP加工处理。DSP将数字图像信号转换成标准的RGB,YUV等格式的图像信号。在一些实施例中,电子设备100可以包括1个或N个摄像头193,N为大于1的正整数。Camera 193 is used to capture still images or video. The object is projected through the lens to generate an optical image onto the photosensitive element. The photosensitive element may be a charge coupled device (CCD) or a complementary metal-oxide-semiconductor (CMOS) phototransistor. The photosensitive element converts the optical signal into an electrical signal, and then transmits the electrical signal to the ISP to convert it into a digital image signal. The ISP outputs the digital image signal to the DSP for processing. DSP converts digital image signals into standard RGB, YUV and other formats of image signals. In some embodiments, the electronic device 100 may include 1 or N cameras 193 , where N is a positive integer greater than 1.
数字信号处理器用于处理数字信号,除了可以处理数字图像信号,还可以处理其他数字信号。例如,当电子设备100在频点选择时,数字信号处理器用于对频点能量进行傅里叶变换等。A digital signal processor is used to process digital signals, in addition to processing digital image signals, it can also process other digital signals. For example, when the electronic device 100 selects a frequency point, the digital signal processor is used to perform Fourier transform on the frequency point energy and so on.
视频编解码器用于对数字视频压缩或解压缩。电子设备100可以支持一种或多种视频编解码器。这样,电子设备100可以播放或录制多种编码格式的视频,例如:动态图像专家组(moving picture experts group,MPEG)1,MPEG2,MPEG3,MPEG4等。Video codecs are used to compress or decompress digital video. The electronic device 100 may support one or more video codecs. In this way, the electronic device 100 can play or record videos of various encoding formats, such as: Moving Picture Experts Group (moving picture experts group, MPEG) 1, MPEG2, MPEG3, MPEG4 and so on.
NPU为神经网络(neural-network,NN)计算处理器,通过借鉴生物神经网络结构,例如借鉴人脑神经元之间传递模式,对输入信息快速处理,还可以不断的自学习。通过NPU可以实现电子设备100的智能认知等应用,例如:图像识别,人脸识别,语音识别,文本理解等。The NPU is a neural-network (NN) computing processor. By drawing on the structure of biological neural networks, such as the transfer mode between neurons in the human brain, it can quickly process the input information, and can continuously learn by itself. Applications such as intelligent cognition of the electronic device 100 can be implemented through the NPU, such as image recognition, face recognition, speech recognition, text understanding, and the like.
外部存储器接口120可以用于连接外部存储卡,例如Micro SD卡,实现扩展电子设备100的存储能力。外部存储卡通过外部存储器接口120与处理器110通信,实现数据存储功能。例如将音乐,视频等文件保存在外部存储卡中。The external memory interface 120 can be used to connect an external memory card, such as a Micro SD card, to expand the storage capacity of the electronic device 100 . The external memory card communicates with the processor 110 through the external memory interface 120 to realize the data storage function. For example to save files like music, video etc in external memory card.
内部存储器121可以用于存储计算机可执行程序代码,所述可执行程序代码包括指令。处理器110通过运行存储在内部存储器121的指令,从而执行电子设备100的各种功能应用以及数据处理。内部存储器121可以包括存储程序区和存储数据区。其中,存储程序区可存储操作系统,至少一个功能所需的应用程序(比如声音播放功能,图像播放功能等)等。存储数据区可存储电子设备100使用过程中所创建的数据(比如音频数据,电话本等)等。此外,内部存储器121可以包括高速随机存取存储器,还可以包括非易失性存储器,例如至少一个磁盘存储器件,闪存器件,通用闪存存储器(universal flash storage,UFS)等。Internal memory 121 may be used to store computer executable program code, which includes instructions. The processor 110 executes various functional applications and data processing of the electronic device 100 by executing the instructions stored in the internal memory 121 . The internal memory 121 may include a storage program area and a storage data area. The storage program area can store an operating system, an application program required for at least one function (such as a sound playback function, an image playback function, etc.), and the like. The storage data area may store data (such as audio data, phone book, etc.) created during the use of the electronic device 100 and the like. In addition, the internal memory 121 may include high-speed random access memory, and may also include non-volatile memory, such as at least one magnetic disk storage device, flash memory device, universal flash storage (UFS), and the like.
电子设备100可以通过音频模块170,扬声器170A,受话器170B,麦克风170C,耳机接口170D,以及应用处理器等实现音频功能。例如音乐播放,录音等。The electronic device 100 may implement audio functions through an audio module 170, a speaker 170A, a receiver 170B, a microphone 170C, an earphone interface 170D, an application processor, and the like. Such as music playback, recording, etc.
音频模块170用于将数字音频信息转换成模拟音频信号输出,也用于将模拟音频输入转换为数字音频信号。音频模块170还可以用于对音频信号编码和解码。在一些实施例中,音频模块170可以设置于处理器110中,或将音频模块170的部分功能模块设置于处理器110中。The audio module 170 is used for converting digital audio information into analog audio signal output, and also for converting analog audio input into digital audio signal. Audio module 170 may also be used to encode and decode audio signals. In some embodiments, the audio module 170 may be provided in the processor 110 , or some functional modules of the audio module 170 may be provided in the processor 110 .
扬声器170A,也称“喇叭”,用于将音频电信号转换为声音信号。电子设备100可以通过扬声器170A收听音乐,或收听免提通话。 Speaker 170A, also referred to as a "speaker", is used to convert audio electrical signals into sound signals. The electronic device 100 can listen to music through the speaker 170A, or listen to a hands-free call.
受话器170B,也称“听筒”,用于将音频电信号转换成声音信号。当电子设备100接听电话或语音信息时,可以通过将受话器170B靠近人耳接听语音。The receiver 170B, also referred to as "earpiece", is used to convert audio electrical signals into sound signals. When the electronic device 100 answers a call or a voice message, the voice can be answered by placing the receiver 170B close to the human ear.
麦克风170C,也称“话筒”,“传声器”,用于将声音信号转换为电信号。当拨打电话或发送语音信息时,用户可以通过人嘴靠近麦克风170C发声,将声音信号输入到麦克风170C。电子设备100可以设置至少一个麦克风170C。在另一些实施例中,电子设备100可以设置两个麦克风170C,除了采集声音信号,还可以实现降噪功能。在另一些实施例中,电子设备100还可以设置三个,四个或更多麦克风170C,实现采集声音信号,降噪,还可 以识别声音来源,实现定向录音功能等。The microphone 170C, also called "microphone" or "microphone", is used to convert sound signals into electrical signals. When making a call or sending a voice message, the user can make a sound by approaching the microphone 170C through a human mouth, and input the sound signal into the microphone 170C. The electronic device 100 may be provided with at least one microphone 170C. In other embodiments, the electronic device 100 may be provided with two microphones 170C, which can implement a noise reduction function in addition to collecting sound signals. In other embodiments, the electronic device 100 may further be provided with three, four or more microphones 170C to collect sound signals, reduce noise, identify sound sources, and implement directional recording functions.
耳机接口170D用于连接有线耳机。耳机接口170D可以是USB接口130,也可以是3.5mm的开放移动电子设备平台(open mobile terminal platform,OMTP)标准接口,美国蜂窝电信工业协会(cellular telecommunications industry association of the USA,CTIA)标准接口。The earphone jack 170D is used to connect wired earphones. The earphone interface 170D can be the USB interface 130, or can be a 3.5mm open mobile terminal platform (OMTP) standard interface, a cellular telecommunications industry association of the USA (CTIA) standard interface.
压力传感器180A用于感受压力信号,可以将压力信号转换成电信号。在一些实施例中,压力传感器180A可以设置于显示屏194。压力传感器180A的种类很多,如电阻式压力传感器,电感式压力传感器,电容式压力传感器等。电容式压力传感器可以是包括至少两个具有导电材料的平行板。当有力作用于压力传感器180A,电极之间的电容改变。电子设备100根据电容的变化确定压力的强度。当有触摸操作作用于显示屏194,电子设备100根据压力传感器180A检测所述触摸操作强度。电子设备100也可以根据压力传感器180A的检测信号计算触摸的位置。在一些实施例中,作用于相同触摸位置,但不同触摸操作强度的触摸操作,可以对应不同的操作指令。例如:当有触摸操作强度小于第一压力阈值的触摸操作作用于短消息应用图标时,执行查看短消息的指令。当有触摸操作强度大于或等于第一压力阈值的触摸操作作用于短消息应用图标时,执行新建短消息的指令。The pressure sensor 180A is used to sense pressure signals, and can convert the pressure signals into electrical signals. In some embodiments, the pressure sensor 180A may be provided on the display screen 194 . There are many types of pressure sensors 180A, such as resistive pressure sensors, inductive pressure sensors, capacitive pressure sensors, and the like. The capacitive pressure sensor may be comprised of at least two parallel plates of conductive material. When a force is applied to the pressure sensor 180A, the capacitance between the electrodes changes. The electronic device 100 determines the intensity of the pressure according to the change in capacitance. When a touch operation acts on the display screen 194, the electronic device 100 detects the intensity of the touch operation according to the pressure sensor 180A. The electronic device 100 may also calculate the touched position according to the detection signal of the pressure sensor 180A. In some embodiments, touch operations acting on the same touch position but with different touch operation intensities may correspond to different operation instructions. For example, when a touch operation whose intensity is less than the first pressure threshold acts on the short message application icon, the instruction for viewing the short message is executed. When a touch operation with a touch operation intensity greater than or equal to the first pressure threshold acts on the short message application icon, the instruction to create a new short message is executed.
陀螺仪传感器180B可以用于确定电子设备100的运动姿态。在一些实施例中,可以通过陀螺仪传感器180B确定电子设备100围绕三个轴(即,x,y和z轴)的角速度。陀螺仪传感器180B可以用于拍摄防抖。示例性的,当按下快门,陀螺仪传感器180B检测电子设备100抖动的角度,根据角度计算出镜头模组需要补偿的距离,让镜头通过反向运动抵消电子设备100的抖动,实现防抖。陀螺仪传感器180B还可以用于导航,体感游戏场景。The gyro sensor 180B may be used to determine the motion attitude of the electronic device 100 . In some embodiments, the angular velocity of electronic device 100 about three axes (ie, x, y, and z axes) may be determined by gyro sensor 180B. The gyro sensor 180B can be used for image stabilization. Exemplarily, when the shutter is pressed, the gyro sensor 180B detects the shaking angle of the electronic device 100, calculates the distance that the lens module needs to compensate according to the angle, and allows the lens to offset the shaking of the electronic device 100 through reverse motion to achieve anti-shake. The gyro sensor 180B can also be used for navigation and somatosensory game scenarios.
气压传感器180C用于测量气压。在一些实施例中,电子设备100通过气压传感器180C测得的气压值计算海拔高度,辅助定位和导航。The air pressure sensor 180C is used to measure air pressure. In some embodiments, the electronic device 100 calculates the altitude through the air pressure value measured by the air pressure sensor 180C to assist in positioning and navigation.
磁传感器180D包括霍尔传感器。电子设备100可以利用磁传感器180D检测翻盖皮套的开合。在一些实施例中,当电子设备100是翻盖机时,电子设备100可以根据磁传感器180D检测翻盖的开合。进而根据检测到的皮套的开合状态或翻盖的开合状态,设置翻盖自动解锁等特性。The magnetic sensor 180D includes a Hall sensor. The electronic device 100 can detect the opening and closing of the flip holster using the magnetic sensor 180D. In some embodiments, when the electronic device 100 is a flip machine, the electronic device 100 can detect the opening and closing of the flip according to the magnetic sensor 180D. Further, according to the detected opening and closing state of the leather case or the opening and closing state of the flip cover, characteristics such as automatic unlocking of the flip cover are set.
加速度传感器180E可检测电子设备100在各个方向上(一般为三轴)加速度的大小。当电子设备100静止时可检测出重力的大小及方向。还可以用于识别电子设备姿态,应用于横竖屏切换,计步器等应用。The acceleration sensor 180E can detect the magnitude of the acceleration of the electronic device 100 in various directions (generally three axes). The magnitude and direction of gravity can be detected when the electronic device 100 is stationary. It can also be used to identify the posture of electronic devices, and can be used in applications such as horizontal and vertical screen switching, pedometers, etc.
距离传感器180F,用于测量距离。电子设备100可以通过红外或激光测量距离。在一些实施例中,拍摄场景,电子设备100可以利用距离传感器180F测距以实现快速对焦。Distance sensor 180F for measuring distance. The electronic device 100 can measure the distance through infrared or laser. In some embodiments, when shooting a scene, the electronic device 100 can use the distance sensor 180F to measure the distance to achieve fast focusing.
接近光传感器180G可以包括例如发光二极管(LED)和光检测器,例如光电二极管。发光二极管可以是红外发光二极管。电子设备100通过发光二极管向外发射红外光。电子设备100使用光电二极管检测来自附近物体的红外反射光。当检测到充分的反射光时,可以确定电子设备100附近有物体。当检测到不充分的反射光时,电子设备100可以确定电子设备100附近没有物体。电子设备100可以利用接近光传感器180G检测用户手持电子设备100贴近耳朵通话,以便自动熄灭屏幕达到省电的目的。接近光传感器180G也可用于皮套模式,口袋模式自动解锁与锁屏。Proximity light sensor 180G may include, for example, light emitting diodes (LEDs) and light detectors, such as photodiodes. The light emitting diodes may be infrared light emitting diodes. The electronic device 100 emits infrared light to the outside through the light emitting diode. Electronic device 100 uses photodiodes to detect infrared reflected light from nearby objects. When sufficient reflected light is detected, it can be determined that there is an object near the electronic device 100 . When insufficient reflected light is detected, the electronic device 100 may determine that there is no object near the electronic device 100 . The electronic device 100 can use the proximity light sensor 180G to detect that the user holds the electronic device 100 close to the ear to talk, so as to automatically turn off the screen to save power. Proximity light sensor 180G can also be used in holster mode, pocket mode automatically unlocks and locks the screen.
环境光传感器180L用于感知环境光亮度。电子设备100可以根据感知的环境光亮度自适应调节显示屏194亮度。环境光传感器180L也可用于拍照时自动调节白平衡。环境光传感器180L还可以与接近光传感器180G配合,检测电子设备100是否在口袋里,以防误触。The ambient light sensor 180L is used to sense ambient light brightness. The electronic device 100 can adaptively adjust the brightness of the display screen 194 according to the perceived ambient light brightness. The ambient light sensor 180L can also be used to automatically adjust the white balance when taking pictures. The ambient light sensor 180L can also cooperate with the proximity light sensor 180G to detect whether the electronic device 100 is in a pocket, so as to prevent accidental touch.
指纹传感器180H用于采集指纹。电子设备100可以利用采集的指纹特性实现指纹解锁,访问应用锁,指纹拍照,指纹接听来电等。The fingerprint sensor 180H is used to collect fingerprints. The electronic device 100 can use the collected fingerprint characteristics to realize fingerprint unlocking, accessing application locks, taking pictures with fingerprints, answering incoming calls with fingerprints, and the like.
温度传感器180J用于检测温度。在一些实施例中,电子设备100利用温度传感器180J检测的温度,执行温度处理策略。例如,当温度传感器180J上报的温度超过阈值,电子设备100执行降低位于温度传感器180J附近的处理器的性能,以便降低功耗实施热保护。在另一些实施例中,当温度低于另一阈值时,电子设备100对电池142加热,以避免低温导致电子设备100异常关机。在其他一些实施例中,当温度低于又一阈值时,电子设备100对电池142的输出电压执行升压,以避免低温导致的异常关机。The temperature sensor 180J is used to detect the temperature. In some embodiments, the electronic device 100 uses the temperature detected by the temperature sensor 180J to execute a temperature processing strategy. For example, when the temperature reported by the temperature sensor 180J exceeds a threshold value, the electronic device 100 reduces the performance of the processor located near the temperature sensor 180J in order to reduce power consumption and implement thermal protection. In other embodiments, when the temperature is lower than another threshold, the electronic device 100 heats the battery 142 to avoid abnormal shutdown of the electronic device 100 caused by the low temperature. In some other embodiments, when the temperature is lower than another threshold, the electronic device 100 boosts the output voltage of the battery 142 to avoid abnormal shutdown caused by low temperature.
触摸传感器180K,也称“触控面板”。触摸传感器180K可以设置于显示屏194,由触摸传感器180K与显示屏194组成触摸屏,也称“触控屏”。触摸传感器180K用于检测作用于其上或附近的触摸操作。触摸传感器可以将检测到的触摸操作传递给应用处理器,以确定触摸事件类型。可以通过显示屏194提供与触摸操作相关的视觉输出。在另一些实施例中,触摸传感器180K也可以设置于电子设备100的表面,与显示屏194所处的位置不同。Touch sensor 180K, also called "touch panel". The touch sensor 180K may be disposed on the display screen 194 , and the touch sensor 180K and the display screen 194 form a touch screen, also called a “touch screen”. The touch sensor 180K is used to detect a touch operation on or near it. The touch sensor can pass the detected touch operation to the application processor to determine the type of touch event. Visual output related to touch operations may be provided through display screen 194 . In other embodiments, the touch sensor 180K may also be disposed on the surface of the electronic device 100 , which is different from the location where the display screen 194 is located.
骨传导传感器180M可以获取振动信号。在一些实施例中,骨传导传感器180M可以获取人体声部振动骨块的振动信号。骨传导传感器180M也可以接触人体脉搏,接收血压跳动信号。在一些实施例中,骨传导传感器180M也可以设置于耳机中,结合成骨传导耳机。音频模块170可以基于所述骨传导传感器180M获取的声部振动骨块的振动信号,解析出语音信号,实现语音功能。应用处理器可以基于所述骨传导传感器180M获取的血压跳动信号解析心率信息,实现心率检测功能。The bone conduction sensor 180M can acquire vibration signals. In some embodiments, the bone conduction sensor 180M can acquire the vibration signal of the vibrating bone mass of the human voice. The bone conduction sensor 180M can also contact the pulse of the human body and receive the blood pressure beating signal. In some embodiments, the bone conduction sensor 180M can also be disposed in the earphone, combined with the bone conduction earphone. The audio module 170 can analyze the voice signal based on the vibration signal of the vocal vibration bone block obtained by the bone conduction sensor 180M, so as to realize the voice function. The application processor can analyze the heart rate information based on the blood pressure beat signal obtained by the bone conduction sensor 180M, and realize the function of heart rate detection.
按键190包括开机键,音量键等。按键190可以是机械按键。也可以是触摸式按键。电子设备100可以接收按键输入,产生与电子设备100的用户设置以及功能控制有关的键信号输入。The keys 190 include a power-on key, a volume key, and the like. Keys 190 may be mechanical keys. It can also be a touch key. The electronic device 100 may receive key inputs and generate key signal inputs related to user settings and function control of the electronic device 100 .
马达191可以产生振动提示。马达191可以用于来电振动提示,也可以用于触摸振动反馈。例如,作用于不同应用(例如拍照,音频播放等)的触摸操作,可以对应不同的振动反馈效果。作用于显示屏194不同区域的触摸操作,马达191也可对应不同的振动反馈效果。不同的应用场景(例如:时间提醒,接收信息,闹钟,游戏等)也可以对应不同的振动反馈效果。触摸振动反馈效果还可以支持自定义。Motor 191 can generate vibrating cues. The motor 191 can be used for vibrating alerts for incoming calls, and can also be used for touch vibration feedback. For example, touch operations acting on different applications (such as taking pictures, playing audio, etc.) can correspond to different vibration feedback effects. The motor 191 can also correspond to different vibration feedback effects for touch operations on different areas of the display screen 194 . Different application scenarios (for example: time reminder, receiving information, alarm clock, games, etc.) can also correspond to different vibration feedback effects. The touch vibration feedback effect can also support customization.
指示器192可以是指示灯,可以用于指示充电状态,电量变化,也可以用于指示消息,未接来电,通知等。The indicator 192 can be an indicator light, which can be used to indicate the charging state, the change of the power, and can also be used to indicate a message, a missed call, a notification, and the like.
SIM卡接口195用于连接SIM卡。SIM卡可以通过插入SIM卡接口195,或从SIM卡接口195拔出,实现和电子设备100的接触和分离。电子设备100可以支持1个或N个SIM卡接口,N为大于1的正整数。SIM卡接口195可以支持Nano SIM卡,Micro SIM卡,SIM卡等。同一个SIM卡接口195可以同时插入多张卡。所述多张卡的类型可以相同,也可以不同。SIM卡接口195也可以兼容不同类型的SIM卡。SIM卡接口195也可以兼容外 部存储卡。电子设备100通过SIM卡和网络交互,实现通话以及数据通信等功能。在一些实施例中,电子设备100采用eSIM,即:嵌入式SIM卡。eSIM卡可以嵌在电子设备100中,不能和电子设备100分离。The SIM card interface 195 is used to connect a SIM card. The SIM card can be contacted and separated from the electronic device 100 by inserting into the SIM card interface 195 or pulling out from the SIM card interface 195 . The electronic device 100 may support 1 or N SIM card interfaces, where N is a positive integer greater than 1. The SIM card interface 195 can support Nano SIM card, Micro SIM card, SIM card and so on. Multiple cards can be inserted into the same SIM card interface 195 at the same time. The types of the plurality of cards may be the same or different. The SIM card interface 195 can also be compatible with different types of SIM cards. The SIM card interface 195 may also be compatible with external memory cards. The electronic device 100 interacts with the network through the SIM card to implement functions such as call and data communication. In some embodiments, the electronic device 100 employs an eSIM, ie: an embedded SIM card. The eSIM card can be embedded in the electronic device 100 and cannot be separated from the electronic device 100 .
本实施例提供的电子设备可以执行上述方法实施例,其实现原理与技术效果类似,此处不再赘述。The electronic device provided in this embodiment can execute the foregoing method embodiments, and the implementation principles and technical effects thereof are similar, and details are not described herein again.
本申请实施例还提供一种计算机可读存储介质,其上存储有计算机程序,计算机程序被处理器执行时实现上述方法实施例所述的方法。Embodiments of the present application further provide a computer-readable storage medium, on which a computer program is stored, and when the computer program is executed by a processor, the method described in the foregoing method embodiment is implemented.
本申请实施例还提供一种计算机程序产品,当计算机程序产品在电子设备上运行时,使得电子设备执行时实现上述方法实施例所述的方法。The embodiments of the present application further provide a computer program product, when the computer program product runs on the electronic device, the electronic device implements the method described in the above method embodiments when executed.
本申请实施例还提供一种芯片系统,包括处理器,所述处理器与存储器耦合,所述处理器执行存储器中存储的计算机程序,以实现上述方法实施例所述的方法。其中,所述芯片系统可以为单个芯片,或者多个芯片组成的芯片模组。An embodiment of the present application further provides a chip system, including a processor, where the processor is coupled to a memory, and the processor executes a computer program stored in the memory to implement the method described in the above method embodiments. Wherein, the chip system may be a single chip or a chip module composed of multiple chips.
在上述实施例中,可以全部或部分地通过软件、硬件、固件或者其任意组合来实现。当使用软件实现时,可以全部或部分地以计算机程序产品的形式实现。所述计算机程序产品包括一个或多个计算机指令。在计算机上加载和执行所述计算机程序指令时,全部或部分地产生按照本申请实施例所述的流程或功能。所述计算机可以是通用计算机、专用计算机、计算机网络、或者其他可编程装置。所述计算机指令可以存储在计算机可读存储介质中,或者通过所述计算机可读存储介质进行传输。所述计算机指令可以从一个网站站点、计算机、服务器或数据中心通过有线(例如同轴电缆、光纤、数字用户线)或无线(例如红外、无线、微波等)方式向另一个网站站点、计算机、服务器或数据中心进行传输。所述计算机可读存储介质可以是计算机能够存取的任何可用介质或者是包含一个或多个可用介质集成的服务器、数据中心等数据存储设备。所述可用介质可以是磁性介质(例如软盘、硬盘或磁带)、光介质(例如DVD)、或者半导体介质(例如固态硬盘(Solid State Disk,SSD))等。In the above-mentioned embodiments, it may be implemented in whole or in part by software, hardware, firmware or any combination thereof. When implemented in software, it can be implemented in whole or in part in the form of a computer program product. The computer program product includes one or more computer instructions. When the computer program instructions are loaded and executed on a computer, all or part of the processes or functions described in the embodiments of the present application are generated. The computer may be a general purpose computer, special purpose computer, computer network, or other programmable device. The computer instructions may be stored in or transmitted over a computer-readable storage medium. The computer instructions can be sent from one website site, computer, server or data center to another website site, computer, server or data center for transmission. The computer-readable storage medium may be any available medium that can be accessed by a computer or a data storage device such as a server, data center, etc. that includes an integration of one or more available media. The usable medium may be a magnetic medium (eg, a floppy disk, a hard disk, or a magnetic tape), an optical medium (eg, a DVD), or a semiconductor medium (eg, a Solid State Disk (SSD)), and the like.
本领域普通技术人员可以理解实现上述实施例方法中的全部或部分流程,该流程可以由计算机程序来指令相关的硬件完成,该程序可存储于计算机可读取存储介质中,该程序在执行时,可包括如上述各方法实施例的流程。而前述的存储介质可以包括:ROM或随机存储记忆体RAM、磁碟或者光盘等各种可存储程序代码的介质。Those of ordinary skill in the art can understand that all or part of the processes in the methods of the above embodiments can be implemented. The process can be completed by instructing the relevant hardware by a computer program, and the program can be stored in a computer-readable storage medium. When the program is executed , which may include the processes of the foregoing method embodiments. The aforementioned storage medium may include: ROM or random storage memory RAM, magnetic disks or optical disks and other mediums that can store program codes.
在上述实施例中,对各个实施例的描述都各有侧重,某个实施例中没有详述或记载的部分,可以参见其它实施例的相关描述。In the foregoing embodiments, the description of each embodiment has its own emphasis. For parts that are not described or described in detail in a certain embodiment, reference may be made to the relevant descriptions of other embodiments.
在本申请所提供的实施例中,应该理解到,所揭露的装置/设备和方法,可以通过其它的方式实现。例如,以上所描述的装置/设备实施例仅仅是示意性的,例如,所述模块或单元的划分,仅仅为一种逻辑功能划分,实际实现时可以有另外的划分方式,例如多个单元或组件可以结合或者可以集成到另一个系统,或一些特征可以忽略,或不执行。另一点,所显示或讨论的相互之间的耦合或直接耦合或通讯连接可以是通过一些接口,装置或单元的间接耦合或通讯连接,可以是电性,机械或其它的形式。In the embodiments provided in this application, it should be understood that the disclosed apparatus/device and method may be implemented in other manners. For example, the apparatus/equipment embodiments described above are only illustrative. For example, the division of the modules or units is only a logical function division. In actual implementation, there may be other division methods, such as multiple units or Components may be combined or may be integrated into another system, or some features may be omitted, or not implemented. On the other hand, the shown or discussed mutual coupling or direct coupling or communication connection may be through some interfaces, indirect coupling or communication connection of devices or units, and may be in electrical, mechanical or other forms.
应当理解,当在本申请说明书和所附权利要求书中使用时,术语“包括”指示所描述特征、整体、步骤、操作、元素和/或组件的存在,但并不排除一个或多个其它特征、整体、步骤、操作、元素、组件和/或其集合的存在或添加。It is to be understood that, when used in this specification and the appended claims, the term "comprising" indicates the presence of the described feature, integer, step, operation, element and/or component, but does not exclude one or more other The presence or addition of features, integers, steps, operations, elements, components and/or sets thereof.
还应当理解,在本申请说明书和所附权利要求书中使用的术语“和/或”是指相关联列出的项中的一个或多个的任何组合以及所有可能组合,并且包括这些组合。It will also be understood that, as used in this specification and the appended claims, the term "and/or" refers to and including any and all possible combinations of one or more of the associated listed items.
如在本申请说明书和所附权利要求书中所使用的那样,术语“如果”可以依据上下文被解释为“当...时”或“一旦”或“响应于确定”或“响应于检测到”。类似地,短语“如果确定”或“如果检测到[所描述条件或事件]”可以依据上下文被解释为意指“一旦确定”或“响应于确定”或“一旦检测到[所描述条件或事件]”或“响应于检测到[所描述条件或事件]”。As used in the specification of this application and the appended claims, the term "if" may be contextually interpreted as "when" or "once" or "in response to determining" or "in response to detecting ". Similarly, the phrases "if it is determined" or "if the [described condition or event] is detected" may be interpreted, depending on the context, to mean "once it is determined" or "in response to the determination" or "once the [described condition or event] is detected. ]" or "in response to detection of the [described condition or event]".
另外,在本申请说明书和所附权利要求书的描述中,术语“第一”、“第二”、“第三”等仅用于区分描述,而不能理解为指示或暗示相对重要性。In addition, in the description of the specification of the present application and the appended claims, the terms "first", "second", "third", etc. are only used to distinguish the description, and should not be construed as indicating or implying relative importance.
在本申请说明书中描述的参考“一个实施例”或“一些实施例”等意味着在本申请的一个或多个实施例中包括结合该实施例描述的特定特征、结构或特点。由此,在本说明书中的不同之处出现的语句“在一个实施例中”、“在一些实施例中”、“在其他一些实施例中”、“在另外一些实施例中”等不是必然都参考相同的实施例,而是意味着“一个或多个但不是所有的实施例”,除非是以其他方式另外特别强调。术语“包括”、“包含”、“具有”及它们的变形都意味着“包括但不限于”,除非是以其他方式另外特别强调。References in this specification to "one embodiment" or "some embodiments" and the like mean that a particular feature, structure or characteristic described in connection with the embodiment is included in one or more embodiments of the present application. Thus, appearances of the phrases "in one embodiment," "in some embodiments," "in other embodiments," "in other embodiments," etc. in various places in this specification are not necessarily All refer to the same embodiment, but mean "one or more but not all embodiments" unless specifically emphasized otherwise. The terms "including", "including", "having" and their variants mean "including but not limited to" unless specifically emphasized otherwise.
最后应说明的是:以上各实施例仅用以说明本申请的技术方案,而非对其限制;尽管参照前述各实施例对本申请进行了详细的说明,本领域的普通技术人员应当理解:其依然可以对前述各实施例所记载的技术方案进行修改,或者对其中部分或者全部技术特征进行等同替换;而这些修改或者替换,并不使相应技术方案的本质脱离本申请各实施例技术方案的范围。Finally, it should be noted that the above embodiments are only used to illustrate the technical solutions of the present application, but not to limit them; although the present application has been described in detail with reference to the foregoing embodiments, those of ordinary skill in the art should understand that: The technical solutions described in the foregoing embodiments can still be modified, or some or all of the technical features thereof can be equivalently replaced; and these modifications or replacements do not make the essence of the corresponding technical solutions deviate from the technical solutions of the embodiments of the present application. Scope.

Claims (16)

  1. 一种交互方法,应用于电子设备,其特征在于,包括:An interaction method, applied to an electronic device, is characterized in that, comprising:
    显示编辑界面,所述编辑界面包括触发条件和第一执行项,所述第一执行项包括第一外部设备和第一执行内容;displaying an editing interface, the editing interface includes a trigger condition and a first execution item, and the first execution item includes a first external device and a first execution content;
    响应于对所述第一执行项的第一操作,更改所述第一执行项为第二执行项,所述第二执行项包括第二外部设备和第二执行内容;In response to the first operation on the first execution item, changing the first execution item to a second execution item, where the second execution item includes a second external device and a second execution content;
    其中,所述第二外部设备与所述第一外部设备不同,和/或,所述第一执行内容与所述第二执行内容不同。Wherein, the second external device is different from the first external device, and/or the first execution content is different from the second execution content.
  2. 根据权利要求1所述的方法,其特征在于,更改所述第一执行项为第二执行项,包括:The method according to claim 1, wherein changing the first execution item to the second execution item comprises:
    接收对第一外部设备的第二操作;receiving a second operation on the first external device;
    响应于所述第二操作,显示多个外部设备;in response to the second operation, displaying a plurality of external devices;
    接收从所述多个外部设备中选择所述第二外部设备的第三操作;receiving a third operation to select the second external device from the plurality of external devices;
    响应于所述第二操作,更改所述第一外部设备为所述第二外部设备。In response to the second operation, the first external device is changed to the second external device.
  3. 根据权利要求1或2所述的方法,其特征在于,更改所述第一执行项为所述第二执行项,包括:The method according to claim 1 or 2, wherein changing the first execution item to the second execution item comprises:
    接收对第一执行内容的第四操作;receiving a fourth operation on the first execution content;
    响应于所述第四操作,显示多个执行内容;In response to the fourth operation, displaying a plurality of execution contents;
    接收从所述多个动作指令中选择所述第二执行内容的第五操作;receiving a fifth operation of selecting the second execution content from the plurality of action instructions;
    响应于所述第五操作,更改所述第一执行内容为所述第二执行内容。In response to the fifth operation, the first execution content is changed to the second execution content.
  4. 根据权利要求2或3所述的方法,其特征在于,所述多个外部设备为满足预设设备参数的外部设备。The method according to claim 2 or 3, wherein the plurality of external devices are external devices that satisfy preset device parameters.
  5. 根据权利要求1-4任一项所述的方法,其特征在于,所述方法还包括:The method according to any one of claims 1-4, wherein the method further comprises:
    根据所述第二执行项和所述触发条件生成执行流程,执行流程包括所述触发条件和所述第二执行项对应的执行动作,所述执行动作用于控制所述第二外部设备执行所述第二执行内容;An execution flow is generated according to the second execution item and the trigger condition, and the execution flow includes execution actions corresponding to the trigger condition and the second execution item, and the execution actions are used to control the second external device to execute all Describe the second execution content;
    响应于满足所述触发条件,执行所述执行动作。The performing action is performed in response to satisfying the triggering condition.
  6. 根据权利要求1-5任一项所述的方法,其特征在于,所述方法还包括:The method according to any one of claims 1-5, wherein the method further comprises:
    根据所述第二执行项和所述触发条件生成控件;Generate a control according to the second execution item and the trigger condition;
    显示所述控件;display the control;
    响应于对所述控件的第六操作,控制所述第二外部设备执行所述第二执行内容。In response to the sixth operation on the control, the second external device is controlled to execute the second execution content.
  7. 一种交互装置,应用于电子设备,其特征在于,包括:An interactive device, applied to electronic equipment, is characterized in that, comprising:
    显示模块,用于显示编辑界面,所述编辑界面包括触发条件和第一执行项,所述第一执行项包括第一外部设备和第一执行内容;a display module, configured to display an editing interface, the editing interface includes a trigger condition and a first execution item, and the first execution item includes a first external device and a first execution content;
    处理模块,用于响应于对所述第一执行项的第一操作,更改所述第一执行项为第二执行项,所述第二执行项包括第二外部设备和第二执行内容;a processing module, configured to, in response to a first operation on the first execution item, change the first execution item to a second execution item, where the second execution item includes a second external device and a second execution content;
    其中,所述第二外部设备与所述第一外部设备不同,和/或,所述第一执行内容与所述第二执行内容不同。Wherein, the second external device is different from the first external device, and/or the first execution content is different from the second execution content.
  8. 根据权利要求7所述的装置,其特征在于,所述装置还包括:输入模块;The device according to claim 7, wherein the device further comprises: an input module;
    所述输入模块用于:接收对第一外部设备的第二操作;The input module is used for: receiving a second operation on the first external device;
    所述显示模块还用于:响应于所述第二操作,显示多个外部设备;The display module is further configured to: display a plurality of external devices in response to the second operation;
    所述输入模块还用于:接收从所述多个外部设备中选择所述第二外部设备的第三操作;The input module is further configured to: receive a third operation of selecting the second external device from the plurality of external devices;
    所述处理模块还用于:响应于所述第二操作,更改所述第一外部设备为所述第二外部设备。The processing module is further configured to: in response to the second operation, change the first external device to the second external device.
  9. 根据权利要求7或8所述的装置,其特征在于,所述装置还包括:输入模块;The device according to claim 7 or 8, wherein the device further comprises: an input module;
    所述输入模块用于:接收对第一执行内容的第四操作;The input module is used for: receiving a fourth operation on the first execution content;
    所述显示模块还用于:响应于所述第四操作,显示多个执行内容;The display module is further configured to: display a plurality of execution contents in response to the fourth operation;
    所述输入模块还用于:接收从所述多个动作指令中选择所述第二执行内容的第五操作;The input module is further configured to: receive a fifth operation of selecting the second execution content from the plurality of action instructions;
    所述处理模块还用于:响应于所述第五操作,更改所述第一执行内容为所述第二执行内容。The processing module is further configured to: in response to the fifth operation, change the first execution content to the second execution content.
  10. 根据权利要求8或9所述的装置,其特征在于,所述多个外部设备为满足预设设备参数的外部设备。The apparatus according to claim 8 or 9, wherein the plurality of external devices are external devices that satisfy preset device parameters.
  11. 根据权利要求7-10任一项所述的装置,其特征在于,所述处理模块还用于:The device according to any one of claims 7-10, wherein the processing module is further configured to:
    根据所述第二执行项和所述触发条件生成执行流程,执行流程包括所述触发条件和所述第二执行项对应的执行动作,所述执行动作用于控制所述第二外部设备执行所述第二执行内容;An execution flow is generated according to the second execution item and the trigger condition, and the execution flow includes execution actions corresponding to the trigger condition and the second execution item, and the execution actions are used to control the second external device to execute all Describe the second execution content;
    响应于满足所述触发条件,执行所述执行动作。The performing action is performed in response to satisfying the triggering condition.
  12. 根据权利要求7-11任一项所述的装置,其特征在于,The device according to any one of claims 7-11, characterized in that,
    所述处理模块还用于:根据所述第二执行项和所述触发条件生成控件;The processing module is further configured to: generate a control according to the second execution item and the trigger condition;
    所述显示模块还用于:显示所述控件;The display module is further used for: displaying the control;
    所述处理模块还用于:响应于对所述控件的第六操作,控制所述第二外部设备执行所述第二执行内容。The processing module is further configured to: control the second external device to execute the second execution content in response to a sixth operation on the control.
  13. 一种电子设备,其特征在于,包括:存储器和处理器,所述存储器用于存储计算机程序;所述处理器用于在调用所述计算机程序时执行如权利要求1-6任一项所述的方法。An electronic device, characterized in that it comprises: a memory and a processor, where the memory is used to store a computer program; the processor is used to execute the method according to any one of claims 1-6 when the computer program is invoked method.
  14. 一种计算机可读存储介质,其上存储有计算机程序,其特征在于,所述计算机程序被处理器执行时实现如权利要求1-6任一项所述的方法。A computer-readable storage medium on which a computer program is stored, characterized in that, when the computer program is executed by a processor, the method according to any one of claims 1-6 is implemented.
  15. 一种计算机程序产品,当计算机程序产品在电子设备上运行时,使得电子设备执行如权利要求1-6任一项所述的方法。A computer program product, when the computer program product is run on an electronic device, causes the electronic device to perform the method of any one of claims 1-6.
  16. 一种芯片系统,其特征在于,所述芯片系统包括处理器,所述处理器与存储器耦合,所述处理器执行存储器中存储的计算机程序,以实现如权利要求1-6任一项所述的方法。A chip system, characterized in that the chip system includes a processor, the processor is coupled with a memory, and the processor executes a computer program stored in the memory, so as to realize the method according to any one of claims 1-6 Methods.
PCT/CN2021/111751 2020-09-08 2021-08-10 Interaction method and apparatus, and electronic device WO2022052713A1 (en)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN202010937450.9A CN114237776B (en) 2020-09-08 2020-09-08 Interaction method and device and electronic equipment
CN202010937450.9 2020-09-08

Publications (1)

Publication Number Publication Date
WO2022052713A1 true WO2022052713A1 (en) 2022-03-17

Family

ID=80632064

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2021/111751 WO2022052713A1 (en) 2020-09-08 2021-08-10 Interaction method and apparatus, and electronic device

Country Status (2)

Country Link
CN (1) CN114237776B (en)
WO (1) WO2022052713A1 (en)

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104065835A (en) * 2014-07-10 2014-09-24 深圳市中兴移动通信有限公司 Mobile terminal and power saving method and device thereof
CN104238394A (en) * 2014-09-16 2014-12-24 杭州古北电子科技有限公司 Universal control method including triggering conditions, state judgment conditions and judgment implementation conditions
CN105511286A (en) * 2016-01-14 2016-04-20 上海岂控信息科技有限公司 Smart home situation control method and system based on multi-condition judgment
JPWO2016038893A1 (en) * 2014-09-12 2017-06-08 パナソニックIpマネジメント株式会社 Device management apparatus and device management method

Family Cites Families (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
KR102332675B1 (en) * 2013-09-02 2021-11-30 삼성전자 주식회사 Method and apparatus to sharing contents of electronic device
CN110413276B (en) * 2019-07-31 2024-04-09 网易(杭州)网络有限公司 Parameter editing method and device, electronic equipment and storage medium

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104065835A (en) * 2014-07-10 2014-09-24 深圳市中兴移动通信有限公司 Mobile terminal and power saving method and device thereof
JPWO2016038893A1 (en) * 2014-09-12 2017-06-08 パナソニックIpマネジメント株式会社 Device management apparatus and device management method
CN104238394A (en) * 2014-09-16 2014-12-24 杭州古北电子科技有限公司 Universal control method including triggering conditions, state judgment conditions and judgment implementation conditions
CN105511286A (en) * 2016-01-14 2016-04-20 上海岂控信息科技有限公司 Smart home situation control method and system based on multi-condition judgment

Also Published As

Publication number Publication date
CN114237776B (en) 2024-03-26
CN114237776A (en) 2022-03-25

Similar Documents

Publication Publication Date Title
WO2021052263A1 (en) Voice assistant display method and device
WO2021000808A1 (en) Device control method and device
CN111752443A (en) Method, related device and system for controlling page by display equipment
CN113272745B (en) Smart home equipment sharing system and method and electronic equipment
CN113542839B (en) Screen projection method of electronic equipment and electronic equipment
CN114173204B (en) Message prompting method, electronic equipment and system
CN111614524A (en) Multi-intelligent-device linkage control method, device and system
CN113885759A (en) Notification message processing method, device, system and computer readable storage medium
CN110198362B (en) Method and system for adding intelligent household equipment into contact
WO2021052204A1 (en) Address book-based device discovery method, audio and video communication method, and electronic device
CN114125791A (en) Audio pushing method and audio pushing system
CN112399390A (en) Bluetooth connection method and related device
WO2021037146A1 (en) File sharing method and device for mobile terminal
WO2022017393A1 (en) Display interaction system, display method, and device
WO2022042770A1 (en) Method for controlling communication service state, terminal device and readable storage medium
WO2021000817A1 (en) Ambient sound processing method and related device
WO2022028537A1 (en) Device recognition method and related apparatus
WO2021031865A1 (en) Call method and apparatus
CN113986369B (en) Internet of things equipment control method and system, electronic equipment and storage medium
CN114115770A (en) Display control method and related device
WO2023071940A1 (en) Cross-device method and apparatus for synchronizing navigation task, and device and storage medium
WO2022228180A1 (en) Application management method and electronic device
WO2022052713A1 (en) Interaction method and apparatus, and electronic device
CN115022807A (en) Express delivery information reminding method and electronic equipment
CN113271577B (en) Media data playing system, method and related device

Legal Events

Date Code Title Description
121 Ep: the epo has been informed by wipo that ep was designated in this application

Ref document number: 21865769

Country of ref document: EP

Kind code of ref document: A1

NENP Non-entry into the national phase

Ref country code: DE

122 Ep: pct application non-entry in european phase

Ref document number: 21865769

Country of ref document: EP

Kind code of ref document: A1