Intelligent equipment control method and device, electronic equipment and readable storage medium

By centralized controllers to save and manage the scene identification and device status information of smart devices, users can easily undo the scene actions of smart devices, solving the complex problem of undoing operations in smart home systems and improving user experience.

CN119882465APending Publication Date: 2025-04-25GREE ELECTRIC APPLIANCE INC OF ZHUHAI +1
View PDF 2 Cites 0 Cited by

Patent Information

Application Number
CN202411862505.9
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-12-17
Publication Date
2025-04-25

AI Technical Summary

Technical Problem

In smart home systems, it is difficult for users to quickly complete the scene actions that the smart device has performed, especially when the scene is complex and the number of devices is large, the operation difficulty increases.

Method used

By saving scene identification and device status information by the centralized controller, the user can issue a scene revocation instruction, the centralized controller obtains the target device status information, and restores the initial state of the smart device based on this information.

Benefits of technology

It realizes the rapid undo operation of smart devices, reduces the difficulty of users' operation and improves the control experience of smart devices.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119882465A_ABST
    Figure CN119882465A_ABST
Patent Text Reader

Abstract

The embodiment of the invention provides an intelligent equipment control method and device, electronic equipment and a readable storage medium. The method comprises the steps of obtaining a scene revocation instruction; the scene revocation instruction comprises a target scene identifier; acquiring equipment state information corresponding to a scene identifier matched with the target scene identifier as target equipment state information; determining a first target intelligent device according to an intelligent device identifier in the device state information; and recovering the device state of the first target intelligent device to the device state in the device state information. According to the embodiment of the invention, the scene revocation instruction can be generated according to the scene revocation instruction comprising the target scene identifier and is sent to the corresponding intelligent equipment, so that the intelligent equipment can correspondingly revoke the action corresponding to the executed scene and recover to the equipment state before the scene is executed, and the control experience of a user on the intelligent equipment is improved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] Embodiments of the present invention relate to the field of Internet technology, and in particular to a smart device control method, a smart device control device, an electronic device, and a computer-readable storage medium. Background Art

[0002] In today's society, with the continuous development of intelligent control systems such as smart home systems, in order to reduce the interaction pressure between smart devices and cloud servers and the processing pressure of cloud servers, some functions of cloud servers are migrated to local processing. Devices that inherit some functions of cloud servers are usually called centralized controllers (home hosts). The centralized controller serves as the main node for the interaction between the intelligent control system and the cloud server, and manages smart devices and performs edge computing.

[0003] In actual applications, users will inevitably make mistakes when operating smart devices. The undo function can help users correct errors quickly. However, as scenes become more intelligent and cover more areas, the number of smart devices involved is increasing and the operations are becoming more complex, making the undo operation more difficult. Summary of the invention

[0004] In view of the above problems, a method and apparatus for controlling an intelligent device is proposed to overcome the above problems or at least partially solve the above problems. The specific technical solution is as follows:

[0005] The embodiment of the present invention discloses a smart device control method, which is applied to a centralized controller, wherein the centralized controller is in communication with the smart device, wherein the centralized controller stores a scene identifier and device status information of the smart device corresponding to the scene identifier, wherein the device status information is collected before the smart device executes a scene execution instruction, and the device status information at least includes the smart device identifier and the device status, and the method includes:

[0006] Obtaining a scene cancellation instruction; the scene cancellation instruction includes a target scene identifier;

[0007] Acquire device status information corresponding to the scene identifier that matches the target scene identifier as target device status information;

[0008] Determine a first target smart device according to the smart device identifier in the device status information;

[0009] The device state of the first target smart device is restored to the device state in the target device state information.

[0010] In an embodiment of the present invention, before obtaining the scene cancellation instruction, the method further includes:

[0011] Acquire a scene identifier and the saved details corresponding to the scene identifier; the saved details at least include the smart device identifier and the execution action of the smart device;

[0012] Determine, according to the smart device identifier in the saved details, a second target smart device to receive the scene execution instruction;

[0013] Generate a corresponding scene execution instruction according to the execution action in the saved details;

[0014] Acquire the current device state and the smart device identification of the second target smart device as device state information and save them;

[0015] The scene execution instruction is sent to the second target smart device; the second target smart device is used to execute the scene execution instruction accordingly.

[0016] In an embodiment of the present invention, before obtaining the scene identifier and the saved details corresponding to the scene identifier, the method further includes:

[0017] Create a scene and save details corresponding to the scene; the save details at least include a smart device corresponding to the scene and an execution action corresponding to the smart device.

[0018] In an embodiment of the present invention, obtaining a scene identifier and storage details corresponding to the scene identifier includes:

[0019] In response to a terminal device or a centralized controller triggering a target scene, obtaining saved details corresponding to a scene identifier of the target scene; wherein the terminal device is communicatively connected to the centralized controller.

[0020] In an embodiment of the present invention, after obtaining and saving the current device state and the smart device identification of the second target smart device as the device state information, the method further includes:

[0021] Monitor the control instruction of the second target smart device corresponding to the smart device identifier corresponding to the device status information;

[0022] When the control instruction is a control instruction for changing the device state of the second target smart device, the device state information corresponding to the second target smart device is cancelled.

[0023] In an embodiment of the present invention, restoring the device state of the first target smart device to the device state in the target device state information includes:

[0024] generating a recovery control instruction for each of the first target smart devices according to the device status information;

[0025] The recovery control instruction is sent to the corresponding first target smart device; the first target smart device is used to execute the recovery control instruction to recover to the device state in the target device state information.

[0026] In an embodiment of the present invention, after sending the recovery control instruction to the corresponding first target smart device, the method further includes:

[0027] Cancel saving the device status information corresponding to the first target smart device.

[0028] In an embodiment of the present invention, after obtaining and saving the current device state and the smart device identification of the second target smart device as the device state information, the method further includes:

[0029] Determining the saved time of the device status information;

[0030] When the saved time meets the preset effective time threshold, the device status information is cancelled.

[0031] In an embodiment of the present invention, before determining the storage time of the device status information, the method further includes:

[0032] In response to a preset validity time threshold submitted by a terminal device or a centralized controller, the preset validity time threshold is saved.

[0033] The embodiment of the present invention further discloses a smart device control device, which is applied to a centralized controller, wherein the centralized controller is in communication with the smart device, wherein the centralized controller stores a scene identifier and device status information of the smart device corresponding to the scene identifier, wherein the device status information is collected before the smart device executes a scene execution instruction, and the device status information at least includes the smart device identifier and the device status, and the device includes:

[0034] A scene cancellation instruction acquisition module, used to acquire a scene cancellation instruction; the scene cancellation instruction includes a target scene identifier;

[0035] A device status information acquisition module, used to acquire device status information corresponding to the scene identifier matching the target scene identifier as target device status information;

[0036] A smart device determining module, configured to determine a first target smart device according to a smart device identifier in the device status information;

[0037] The device state recovery module is used to restore the device state of the first target smart device to the device state in the target device state information.

[0038] The embodiment of the present invention further discloses an electronic device, comprising a processor, a communication interface, a memory and a communication bus, wherein the processor, the communication interface and the memory communicate with each other via the communication bus;

[0039] The memory is used to store computer programs;

[0040] The processor is used to implement the method described in the embodiment of the present invention when executing the program stored in the memory.

[0041] The embodiment of the present invention further discloses a computer program product, which is stored in a storage medium and is executed by at least one processor to implement the method described in the embodiment of the present invention.

[0042] The embodiment of the present invention further discloses a computer-readable storage medium having instructions stored thereon, which, when executed by one or more processors, enables the processors to execute the method described in the embodiment of the present invention.

[0043] The embodiments of the present invention include the following advantages:

[0044] In an embodiment of the present invention, a centralized controller in an intelligent control system is connected to a smart device for communication. The centralized controller stores a scene identifier and device status information of the smart device corresponding to the scene identifier. The device status information is collected before the smart device executes the scene execution instruction. The device status information includes at least the smart device identifier and the device status. When it is necessary to cancel the action corresponding to the scene executed by the smart device, a scene cancellation instruction including a target scene identifier is obtained, and the device status information corresponding to the scene identifier matching the target scene identifier stored in the centralized controller is obtained as the target device status information. Then, the first target smart device for which the executed action needs to be canceled can be determined according to the smart device identifier in the device status information, and the device status of the first target smart device is restored to the device status in the device status information to complete the scene cancellation. The embodiment of the present invention can generate a scene cancellation instruction according to the scene cancellation instruction including the target scene identifier and send it to the corresponding smart device, so that the smart device can cancel the action corresponding to the executed scene and restore to the device status before the scene is executed, thereby improving the user's control experience of the smart device. BRIEF DESCRIPTION OF THE DRAWINGS

[0045] Figure 1 is a flowchart of a method for controlling an intelligent device provided in an embodiment of the present invention;

[0046] Figure 2 is a schematic diagram of an application environment provided in an embodiment of the present invention;

[0047] Figure 3It is a schematic diagram of a control flow of a scene revocable based on a home host provided in an embodiment of the present invention;

[0048] Figure 4 is a structural block diagram of an intelligent device control device provided in an embodiment of the present invention;

[0049] Figure 5 It is a schematic diagram of the hardware structure of an electronic device for implementing various embodiments of the present invention. DETAILED DESCRIPTION

[0050] In order to make the above-mentioned objects, features and advantages of the present invention more obvious and easy to understand, the present invention is further described in detail below with reference to the accompanying drawings and specific embodiments.

[0051] In order to solve the user experience problem that after an intelligent control system (smart home system) executes a scene or triggers a scene by mistake, it is necessary to frequently operate all smart devices to restore the device status before triggering the scene, an embodiment of the present invention proposes a scene-revocable control method based on a centralized controller (home host). Through the device status information of the home host before the scene is executed, the device status of the scene-related smart devices is automatically restored, so that the recovery process is automated and completed quickly, which greatly reduces the user's operating difficulty and improves the user's control experience of the smart devices.

[0052] Reference Figure 1 , shows a flowchart of a method for controlling an intelligent device provided in an embodiment of the present invention, which is applied to a centralized controller, the centralized controller is in communication with the intelligent device, the centralized controller stores a scene identifier and device status information of the intelligent device corresponding to the scene identifier, the device status information is collected before the intelligent device executes the scene execution instruction, the device status information at least includes the intelligent device identifier and the device status, the method may specifically include the following steps:

[0053] Step 101: Obtain a scene cancellation instruction; the scene cancellation instruction includes a target scene identifier.

[0054] Among them, the smart device can be a smart home device in the home, such as air conditioners, smart curtains, lighting equipment, humidifiers, rice cookers, air purifiers, and audio equipment, etc. The centralized controller (home host) can be a device for centralized control of smart devices, which can manage and coordinate the smart devices connected to it. In actual applications, users can control the control instructions of smart devices through terminal devices or through the control panel provided by the centralized controller. Among them, the terminal device can be a device that can achieve visual control, such as a smart phone.

[0055] Reference Figure 2, is a schematic diagram of a scenario provided in an embodiment of the present invention, including a centralized controller 201, a smart device 202 and a terminal device 203 that are communicatively connected to each other. A user can send a control instruction for the smart device 202 to the centralized controller 201 through the terminal device 203, or send a control instruction for the smart device 202 to the centralized controller 201 through a control panel provided by the centralized controller 201. After receiving the control instruction sent by the centralized controller 201, the smart device 202 will perform a corresponding action.

[0056] In an embodiment of the present invention, the centralized controller pre-stores scene identifiers of various scenes and device status information of smart devices corresponding to the scene identifiers, wherein the scene identifier is a name or code used to uniquely identify the corresponding scene, such as "001", "002", "home scene", "leaving home scene", etc. The device status information is collected before the smart device executes the scene execution instruction, and the device status information may at least include the smart device identifier and the device status, wherein the smart device identifier is a name or code used to uniquely identify the corresponding smart device, such as "D1", "D2", "air conditioner A", "air conditioner B", etc. Exemplarily, the scene may include a home scene, a leaving home scene, and the like. The device status information is stored using snapshot technology (Snapshot).

[0057] In a specific example, a scene may include a home scene, and the home scene has corresponding saved details. The saved details are a collection of actions that each smart device needs to perform when the home scene is triggered. For example, the saved details may include specific information that all living room lights are turned on, the brightness is adjusted to the maximum, the curtains are opened to the widest, the air purifier is turned on, the air conditioning temperature is adjusted to an appropriate temperature, etc. When the home scene is triggered, a scene execution instruction for each smart device can be generated based on the saved details of the home scene, and the scene execution instruction is sent to the corresponding smart device. Each smart device will perform a corresponding action according to the received scene execution instruction of the home scene. Before each smart device performs a corresponding action according to the received scene execution instruction, the device status of the scene execution instruction will be saved, for example, whether the living room lights are turned on, if they are turned on, what is the brightness at this time, the degree of curtain opening, whether the air purifier is turned on, and the temperature to which the air conditioning temperature is currently adjusted. Then, the device status corresponding to the smart device and the smart device identifier corresponding to the smart device can be used as the device status information of the smart device, and saved in the centralized controller after associating with the scene identifier corresponding to the home scene. Subsequently, each smart device will perform a corresponding action according to the received scene execution instruction. Of course, if the smart device executes the corresponding action device according to the received scene execution instruction, only the device status information of the successfully executed smart device can be saved in the centralized controller. If it is necessary to revoke the action executed by the smart device corresponding to the scene, the device status of the successfully executed smart device can be restored to the device status of the unexecuted smart device based on the device status information.

[0058] In an embodiment of the present invention, if the user wishes to cancel the action corresponding to a certain scene (target scene) executed by the smart device, the scene can be canceled through the terminal device or the centralized controller. The centralized controller can obtain a scene cancellation instruction including a target scene identifier corresponding to the target scene, and then cancel the scene according to the scene cancellation instruction, that is, cancel the action executed by the smart device for the scene, thereby restoring the device to the state before the action corresponding to the scene is executed.

[0059] Step 102: Acquire device status information corresponding to the scene identifier that matches the target scene identifier as target device status information.

[0060] In an embodiment of the present invention, after receiving a scene cancellation instruction, the centralized controller can extract the target scene identifier from the scene cancellation instruction, and obtain the device status information corresponding to the scene identifier that matches the target scene identifier as the target device status information. For example, assuming that the user determines through the centralized controller that he wants to cancel the "go home scene", if the centralized controller locally stores the device status information corresponding to the "go home scene", and it can be determined that the two match, the locally stored device status information corresponding to the "go home scene" can be used as the target device status information.

[0061] Step 103: Determine a first target smart device according to the smart device identifier in the device status information.

[0062] Step 104: restore the device state of the first target smart device to the device state in the target device state information.

[0063] In an embodiment of the present invention, the target device status information may include the device status and smart device identification of the smart device corresponding to the scene that the user wishes to revoke. The first target smart device can be determined from the smart devices based on the smart device identification, and then the device status of the first target smart device can be restored to the device status in the target device status information, thereby completing the revocation of the scene.

[0064] In the above-mentioned intelligent device control method, the centralized controller in the intelligent control system is connected to the intelligent device for communication, and the centralized controller stores the scene identifier and the device status information of the intelligent device corresponding to the scene identifier. The device status information is collected before the intelligent device executes the scene execution instruction, and the device status information at least includes the intelligent device identifier and the device status. When it is necessary to cancel the action corresponding to the scene executed by the intelligent device, the scene cancellation instruction including the target scene identifier is obtained, and the device status information corresponding to the scene identifier matching the target scene identifier stored in the centralized controller is obtained as the target device status information. Then, the first target intelligent device for which the executed action needs to be canceled can be determined according to the intelligent device identifier in the device status information, and the device status of the first target intelligent device is restored to the device status in the device status information, and the scene cancellation is completed. The embodiment of the present invention can generate a scene cancellation instruction according to the scene cancellation instruction including the target scene identifier and send it to the corresponding intelligent device, so that the intelligent device can cancel the action corresponding to the executed scene and restore to the device status before the scene is executed, thereby improving the user's control experience of the intelligent device.

[0065] In an embodiment of the present invention, before obtaining the scene identifier and the saved details corresponding to the scene identifier, the method further includes:

[0066] Create a scene and save details corresponding to the scene; the save details at least include a smart device corresponding to the scene and an execution action corresponding to the smart device.

[0067] In an embodiment of the present invention, after completing the construction of a smart home network based on a centralized controller (home host), multiple scenarios such as AI (Artificial Intelligence) scenes for multiple smart devices, user-defined scenes, and preset scenes can be created, and each scene has corresponding saving details. Subsequently, the scene identifier and saving details corresponding to the scene can be saved in the centralized controller. Later, if the user hopes to quickly complete the control of the corresponding smart device in certain scenarios, the scene can be triggered by the centralized controller or the terminal device, thereby controlling the relevant smart devices to execute the actions configured corresponding to the scene.

[0068] In an embodiment of the present invention, before obtaining the scene cancellation instruction, the method may further include:

[0069] Acquire a scene identifier and the saved details corresponding to the scene identifier; the saved details at least include the smart device identifier and the execution action of the smart device;

[0070] Determine, according to the smart device identifier in the saved details, a second target smart device to receive the scene execution instruction;

[0071] Generate a corresponding scene execution instruction according to the execution action in the saved details;

[0072] Get the current device status and smart device identifier of the second target smart device as the device

[0073]

[0074] The scene execution instruction is sent to the second target smart device; the second target smart device is used to execute the scene execution instruction accordingly.

[0075] Wherein, obtaining the scene identifier and the saved details corresponding to the scene identifier may include:

[0076] In response to a terminal device or a centralized controller triggering a target scene, obtaining saved details corresponding to a scene identifier of the target scene; wherein the terminal device is communicatively connected to the centralized controller.

[0077] In an embodiment of the present invention, a user can trigger a certain scene through a centralized controller or a terminal device. For example, after the user returns home, the user can trigger the home scene through a centralized controller or a terminal device, and the saved details corresponding to the scene identifier of the home scene will be obtained.

[0078] After obtaining the saved details, the second target smart device to receive the scene execution instruction can be determined according to the smart device identifier in the saved details. Then, according to the execution actions of the smart device in the saved details, for example, in the home scenario, the air conditioner needs to be adjusted to a suitable temperature, all the living room lights are turned on, the brightness is adjusted to the maximum, and other smart device execution actions, corresponding scene execution instructions can be generated and sent to the corresponding second target smart device.

[0079] In a specific example, a scene may include a home scene, and the home scene has corresponding saved details. The saved details are a collection of actions that each smart device needs to perform when the home scene is triggered. For example, the saved details may include specific information that all living room lights are turned on, the brightness is adjusted to the maximum, the curtains are opened to the widest degree, the air purifier is turned on, the air conditioning temperature is adjusted to an appropriate temperature, etc. When the home scene is triggered, a scene execution instruction for the smart device can be generated based on the saved details of the home scene, and the scene execution instruction can be sent to the corresponding smart device. Each smart device will perform corresponding actions according to the received scene execution instruction of the home scene. It should be noted that in an embodiment of the present invention, before each smart device performs corresponding actions according to the received scene execution instruction of the home scene, it is necessary to obtain the current device state and smart device identification of the second target smart device as device state information and save them. In this way, after each smart device performs corresponding actions according to the received scene execution instruction, if the user hopes to cancel the scene, the saved device state information can be used to restore the device state of the smart device to the device state before the execution action corresponding to the scene execution instruction sent based on the scene.

[0080] In an embodiment of the present invention, after obtaining and saving the current device state and the smart device identification of the second target smart device as the device state information, the method may further include:

[0081] Monitor the control instruction of the second target smart device corresponding to the smart device identifier corresponding to the device status information;

[0082] When the control instruction is a control instruction for changing the device state of the second target smart device, the device state information corresponding to the second target smart device is cancelled.

[0083] In a specific implementation, after the smart device has executed the action corresponding to the scene, if some smart devices are controlled to change the device status, that is, it involves changes in the control of the smart device, for example, the user lowers the brightness of the lighting device, it means that the user is not satisfied with the device status of the smart device after executing the scene and has made separate adjustments to it. It can be understood that since controlling the smart device to change its device status is a user operation, the manufacturer's withdrawal should not affect the user's active adjustment, otherwise it will affect the user's control experience of the smart device.

[0084] Therefore, in an embodiment of the present invention, after the centralized controller triggers the scene and causes the relevant smart devices to perform corresponding actions, it begins to continuously monitor the control instructions of all smart devices corresponding to the locally saved device status information. If these control instructions involve changes in the control of the smart device, the snapshot record node of the smart device is canceled (that is, the saved device status information is canceled). That is, if a scene undo operation occurs subsequently, the device status of the smart device will not be restored.

[0085] In an embodiment of the present invention, restoring the device state of the first target smart device to the device state in the target device state information may include:

[0086] generating a recovery control instruction for each of the first target smart devices according to the device status information;

[0087] The recovery control instruction is sent to the corresponding first target smart device; the first target smart device is used to execute the recovery control instruction to recover to the device state in the target device state information.

[0088] In an embodiment of the present invention, a user triggers a scene revocation control through a centralized controller or a terminal device, and sends a scene revocation control instruction to the centralized controller. The centralized controller obtains the device status information cached by the target scene identifier specified by the scene revocation instruction, and generates a recovery control instruction for each smart device to restore the device status by parsing the device status information. The instruction is then controlled and sent to the corresponding first target smart device in combination with the corresponding communication protocol. After receiving the recovery control instruction, the first target smart device can execute the recovery control instruction accordingly, thereby restoring the device status in the target device status information, that is, restoring the device status before the scene execution instruction corresponding to the unexecuted scene is executed.

[0089] In an embodiment of the present invention, after sending the recovery control instruction to the corresponding first target smart device, the method may further include:

[0090] Cancel saving the device status information corresponding to the first target smart device.

[0091] In an embodiment of the present invention, after the first target smart device is restored to the device state before the scene execution instruction corresponding to the scene is not executed, the scene cancellation operation is completed, and the centralized controller can clear the corresponding device state information to avoid useless data occupying the resources of the centralized controller.

[0092] In an embodiment of the present invention, after obtaining and saving the current device state and the smart device identification of the second target smart device as the device state information, the method further includes:

[0093] Determining the saved time of the device status information;

[0094] When the saved time meets the preset effective time threshold, the device status information is cancelled.

[0095] The preset effective time threshold is set in the following manner: in response to the preset effective time threshold submitted by the terminal device or the centralized controller, the preset effective time threshold is saved.

[0096] In an embodiment of the present invention, the user can configure the validity period (preset validity time threshold) of each scene cancellation through a centralized controller or a terminal device, that is, after a scene is triggered, the corresponding scene cancellation operation can be performed within the validity period. If the validity period is exceeded, the centralized controller will automatically clear the device status information of the corresponding scene and release the resources of the centralized controller.

[0097] In order to enable those skilled in the art to better understand the embodiments of the present invention, a specific example is used for illustration below.

[0098] Reference Figure 3 , is a schematic diagram of a control process of revocable scenes based on a home host provided in an embodiment of the present invention, and the specific implementation process may include:

[0099] Step 301, building a smart home system based on a home host and configuring multiple scenarios: after completing the building of a smart home network based on a centralized controller (home host), multiple scenarios such as AI scenarios, user-defined scenarios, and preset scenarios for multiple smart devices can be configured, and each scenario has corresponding saved details;

[0100] Step 302: The user or automatic linkage triggers the scene and sends a scene execution instruction: the user triggers the scene through the terminal device or the home host, or the automatic linkage scene of the smart home system triggers the scene, and sends the scene execution instruction corresponding to the triggered scene to the home host.

[0101] Step 303, the home host caches the device status information before executing the scene execution instruction: Before issuing the scene execution instruction, the home host can obtain the scene details (save details) through the scene identifier, and cache the device status information (device status snapshot) generated for the device status of the smart device involved, and then issue the scene execution instruction to the corresponding smart device through the corresponding communication protocol. The smart device executes the corresponding action based on the scene execution instruction.

[0102] Step 304: The home host monitors the control changes of the smart devices to cancel the device status information related to the control changes of the smart devices: the home host subsequently monitors the control instructions of all smart devices related to the locally saved device status information. If a control change of the smart device is involved, the device status information of the smart device is canceled. That is, if a scene cancellation operation occurs subsequently, the device status of the smart device will not be restored.

[0103] Step 305: When the home host triggers the scene cancellation, it sends the corresponding recovery control instruction value to the smart device: the user triggers the scene cancellation control through the terminal device or the home host, and sends the scene cancellation control instruction to the home host. The home host obtains the device status information cached by the scene identifier specified by the cancellation control instruction, and generates the recovery control instruction for device status recovery of each smart device by parsing the device status information, and controls and sends it to the corresponding smart device in combination with the corresponding communication protocol.

[0104] Step 306: After completing the scene cancellation, the home host cancels the saved device status information: the home host clears the saved device status information corresponding to the scene, and completes the scene cancellation operation.

[0105] Step 307, the home host executes the scene cancellation operation within the validity period: the user can configure the validity period of the scene cancellation (preset validity time threshold) through the device terminal or the home host, that is, after the scene is triggered, the corresponding scene cancellation instruction can be executed within the validity period. After the validity period, the home host will automatically clear the device status information of the corresponding scene to release the resources of the home host.

[0106] In an embodiment of the present invention, through the control of the home host, the smart devices involved in the scene can be automatically restored to the device state before the scene was executed through the scene cancellation instruction. In this way, the problem that the device state before execution cannot be restored after the scene is executed in the smart device control system such as the smart home system is solved, and the user's control experience of the smart device is guaranteed.

[0107] It should be noted that, for the sake of simplicity, the method embodiments are described as a series of action combinations, but those skilled in the art should be aware that the embodiments of the present invention are not limited by the order of the actions described, because according to the embodiments of the present invention, certain steps can be performed in other orders or simultaneously. Secondly, those skilled in the art should also be aware that the embodiments described in the specification are all preferred embodiments, and the actions involved are not necessarily required by the embodiments of the present invention.

[0108] Reference Figure 4 , shows a structural block diagram of an intelligent device control device provided in an embodiment of the present invention, which is applied to a centralized controller, the centralized controller is in communication with the intelligent device, the centralized controller stores a scene identifier and device status information of the intelligent device corresponding to the scene identifier, the device status information is collected before the intelligent device executes the scene execution instruction, the device status information at least includes the intelligent device identifier and the device status, and the device may specifically include the following modules:

[0109] The scene cancellation instruction acquisition module 401 is used to acquire a scene cancellation instruction; the scene cancellation instruction includes a target scene identifier;

[0110] The device state information acquisition module 402 is used to acquire the device state information corresponding to the scene identifier matching the target scene identifier as the target device state information;

[0111] A smart device determining module 403, configured to determine a first target smart device according to the smart device identifier in the device status information;

[0112] The device state recovery module 404 is configured to recover the device state of the first target smart device to the device state in the target device state information.

[0113] In one embodiment of the present invention, the device further includes a scenario execution module, which is used to:

[0114] Acquire a scene identifier and the saved details corresponding to the scene identifier; the saved details at least include the smart device identifier and the execution action of the smart device;

[0115] Determine, according to the smart device identifier in the saved details, a second target smart device to receive the scene execution instruction;

[0116] Generate a corresponding scene execution instruction according to the execution action in the saved details;

[0117] Acquire the current device state and the smart device identification of the second target smart device as device state information and save them;

[0118] The scene execution instruction is sent to the second target smart device; the second target smart device is used to execute the scene execution instruction accordingly.

[0119] In one embodiment of the present invention, the apparatus further comprises a creation module, configured to:

[0120] Create a scene and save details corresponding to the scene; the save details at least include a smart device corresponding to the scene and an execution action corresponding to the smart device.

[0121] In one embodiment of the present invention, the scenario execution module is used to:

[0122] In response to a terminal device or a centralized controller triggering a target scene, obtaining saved details corresponding to a scene identifier of the target scene; wherein the terminal device is communicatively connected to the centralized controller.

[0123] In one embodiment of the present invention, the device further includes a monitoring module, which is used to:

[0124] Monitor the control instruction of the second target smart device corresponding to the smart device identifier corresponding to the device status information;

[0125] When the control instruction is a control instruction for changing the device state of the second target smart device, the device state information corresponding to the second target smart device is cancelled.

[0126] In one embodiment of the present invention, the device state recovery module 404 is used to:

[0127] generating a recovery control instruction for each of the first target smart devices according to the device status information;

[0128] The recovery control instruction is sent to the corresponding first target smart device; the first target smart device is used to execute the recovery control instruction to recover to the device state in the target device state information.

[0129] In one embodiment of the present invention, the device state recovery module 404 is used to:

[0130] Cancel saving the device status information corresponding to the first target smart device.

[0131] In an embodiment of the present invention, the device further includes: a cancel save module, configured to:

[0132] Determining the saved time of the device status information;

[0133] When the saved time meets the preset effective time threshold, the device status information is cancelled.

[0134] In one embodiment of the present invention, the device further includes: a valid time threshold setting module, which is used to:

[0135] In response to a preset validity time threshold submitted by a terminal device or a centralized controller, the preset validity time threshold is saved.

[0136] In an embodiment of the present invention, a centralized controller in an intelligent control system is communicatively connected with an intelligent device. The centralized controller stores a scene identifier and device status information of the intelligent device corresponding to the scene identifier. The device status information is collected before the intelligent device executes a scene execution instruction. The device status information includes at least the intelligent device identifier and the device status. When it is necessary to cancel an action corresponding to a scene that has been executed by the intelligent device, a scene cancellation instruction including a target scene identifier is obtained, and the device status information corresponding to the scene identifier that matches the target scene identifier stored in the centralized controller is obtained as the target device status information. Then, the first target intelligent device for which the executed action needs to be canceled can be determined based on the intelligent device identifier in the device status information, and the device status of the first target intelligent device can be restored to the device status in the device status information to complete the scene cancellation. The embodiment of the present invention can generate a scene cancellation instruction based on a scene cancellation instruction including a target scene identifier and send it to the corresponding intelligent device, so that the intelligent device can cancel the action corresponding to the executed scene and restore to the device status before the scene is executed, thereby improving the user's control experience over the intelligent device.

[0137] As for the device embodiment, since it is basically similar to the method embodiment, the description is relatively simple, and the relevant parts can be referred to the partial description of the method embodiment.

[0138] It should be noted that the embodiments of the present invention may involve the use of user data. In actual applications, user-specific personal data can be used in the scheme described herein within the scope permitted by applicable laws and regulations, subject to the requirements of applicable laws and regulations of the country where the user is located (for example, with the user's explicit consent, effective notification to the user, etc.).

[0139] In addition, an embodiment of the present invention further provides an electronic device, including: a processor, a memory, and a computer program stored in the memory and executable on the processor. When the computer program is executed by the processor, the various processes of the above-mentioned smart device control method embodiment are implemented, and the same technical effect can be achieved. To avoid repetition, it will not be described here.

[0140] The embodiment of the present invention further provides a computer-readable storage medium, on which a computer program is stored. When the computer program is executed by a processor, each process of the above-mentioned intelligent device control method embodiment is implemented, and the same technical effect can be achieved. To avoid repetition, it is not repeated here. The computer-readable storage medium is, for example, a read-only memory (ROM), a random access memory (RAM), a magnetic disk or an optical disk.

[0141] An embodiment of the present invention also provides a computer program product, which is stored in a storage medium. The program product is executed by at least one processor to implement the various processes of the above-mentioned smart device control method embodiment and can achieve the same technical effect. To avoid repetition, it will not be repeated here.

[0142] Figure 5 A schematic diagram of the hardware structure of an electronic device for implementing various embodiments of the present invention.

[0143] The electronic device 500 includes but is not limited to: a radio frequency unit 501, a network module 502, an audio output unit 503, an input unit 504, a sensor 505, a display unit 506, a user input unit 507, an interface unit 508, a memory 509, a processor 510, and a power supply 511. Those skilled in the art will appreciate that Figure 5 The electronic device structure shown in the figure does not constitute a limitation on the electronic device, and the electronic device may include more or fewer components than shown in the figure, or combine certain components, or arrange the components differently. In the embodiments of the present invention, the electronic device includes but is not limited to a mobile phone, a tablet computer, a laptop computer, a PDA, a vehicle-mounted terminal, a wearable device, and a pedometer.

[0144] It should be understood that in the embodiment of the present invention, the radio frequency unit 501 can be used for receiving and sending signals during information transmission or communication. Specifically, after receiving downlink data from the base station, it is sent to the processor 510 for processing; in addition, uplink data is sent to the base station. Generally, the radio frequency unit 501 includes but is not limited to an antenna, at least one amplifier, a transceiver, a coupler, a low noise amplifier, a duplexer, etc. In addition, the radio frequency unit 501 can also communicate with the network and other devices through a wireless communication system.

[0145] The electronic device provides users with wireless broadband Internet access through the network module 502, such as helping users to send and receive emails, browse web pages, and access streaming media.

[0146] The audio output unit 503 can convert the audio data received by the RF unit 501 or the network module 502 or stored in the memory 509 into an audio signal and output it as sound. Moreover, the audio output unit 503 can also provide audio output related to a specific function performed by the electronic device 500 (for example, a call signal reception sound, a message reception sound, etc.). The audio output unit 503 includes a speaker, a buzzer, a receiver, etc.

[0147] The input unit 504 is used to receive audio or video signals. The input unit 504 may include a graphics processor (GPU) 5041 and a microphone 5042. The graphics processor 5041 processes the image data of a static picture or video obtained by an image capture device (such as a camera) in a video capture mode or an image capture mode. The processed image frame can be displayed on the display unit 506. The image frame processed by the graphics processor 5041 can be stored in the memory 509 (or other storage medium) or sent via the radio frequency unit 501 or the network module 502. The microphone 5042 can receive sound and can process such sound into audio data. The processed audio data can be converted into a format output that can be sent to a mobile communication base station via the radio frequency unit 501 in the case of a telephone call mode.

[0148] The electronic device 500 also includes at least one sensor 505, such as a light sensor, a motion sensor, and other sensors. Specifically, the light sensor includes an ambient light sensor and a proximity sensor, wherein the ambient light sensor can adjust the brightness of the display panel 5061 according to the brightness of the ambient light, and the proximity sensor can turn off the display panel 5061 and / or the backlight when the electronic device 500 is moved to the ear. As a type of motion sensor, the accelerometer sensor can detect the magnitude of acceleration in each direction (generally three axes), and can detect the magnitude and direction of gravity when stationary, which can be used to identify the posture of the electronic device (such as horizontal and vertical screen switching, related games, magnetometer posture calibration), vibration recognition related functions (such as pedometer, tapping), etc.; the sensor 505 can also include a fingerprint sensor, a pressure sensor, an iris sensor, a molecular sensor, a gyroscope, a barometer, a hygrometer, a thermometer, an infrared sensor, etc., which will not be repeated here.

[0149] The display unit 506 is used to display information input by the user or information provided to the user. The display unit 506 may include a display panel 5061, which may be configured in the form of a liquid crystal display (LCD), an organic light-emitting diode (OLED), or the like.

[0150] The user input unit 507 can be used to receive input digital or character information, and to generate key signal input related to user settings and function control of the electronic device. Specifically, the user input unit 507 includes a touch panel 5071 and other input devices 5072. The touch panel 5071, also known as a touch screen, can collect the user's touch operation on or near it (such as the user's operation on the touch panel 5071 or near the touch panel 5071 using any suitable object or accessory such as a finger, stylus, etc.). The touch panel 5071 may include two parts: a touch detection device and a touch controller. Among them, the touch detection device detects the user's touch orientation, detects the signal brought by the touch operation, and transmits the signal to the touch controller; the touch controller receives the touch information from the touch detection device, converts it into the contact point coordinates, and then sends it to the processor 510, receives the command sent by the processor 510 and executes it. In addition, the touch panel 5071 can be implemented using multiple types such as resistive, capacitive, infrared and surface acoustic waves. In addition to the touch panel 5071, the user input unit 507 may also include other input devices 5072. Specifically, other input devices 5072 may include but are not limited to a physical keyboard, function keys (such as volume control keys, switch keys, etc.), a trackball, a mouse, and a joystick, which are not described in detail here.

[0151] Furthermore, the touch panel 5071 may be overlaid on the display panel 5061. When the touch panel 5071 detects a touch operation on or near it, it transmits the information to the processor 510 to determine the type of the touch event. Then, the processor 510 provides a corresponding visual output on the display panel 5061 according to the type of the touch event. Figure 5 In the figure, the touch panel 5071 and the display panel 5061 are used as two independent components to realize the input and output functions of the electronic device. However, in some embodiments, the touch panel 5071 and the display panel 5061 can be integrated to realize the input and output functions of the electronic device, which is not limited here.

[0152] The interface unit 508 is an interface for connecting an external device to the electronic device 500. For example, the external device may include a wired or wireless headset port, an external power supply (or battery charger) port, a wired or wireless data port, a memory card port, a port for connecting a device with an identification module, an audio input / output (I / O) port, a video I / O port, a headphone port, etc. The interface unit 508 may be used to receive input (e.g., data information, power, etc.) from an external device and transmit the received input to one or more elements within the electronic device 500 or may be used to transmit data between the electronic device 500 and an external device.

[0153] The memory 509 can be used to store software programs and various data. The memory 509 can mainly include a program storage area and a data storage area, wherein the program storage area can store an operating system, an application required for at least one function (such as a sound playback function, an image playback function, etc.), etc.; the data storage area can store data created according to the use of the mobile phone (such as audio data, a phone book, etc.), etc. In addition, the memory 509 can include a high-speed random access memory, and can also include a non-volatile memory, such as at least one disk storage device, a flash memory device, or other volatile solid-state storage devices.

[0154] The processor 510 is the control center of the electronic device. It uses various interfaces and lines to connect various parts of the entire electronic device. By running or executing software programs and / or modules stored in the memory 509 and calling data stored in the memory 509, it performs various functions of the electronic device and processes data, thereby monitoring the electronic device as a whole. The processor 510 may include one or more processing units; preferably, the processor 510 may integrate an application processor and a modem processor, wherein the application processor mainly processes the operating system, user interface, and application programs, and the modem processor mainly processes wireless communications. It is understandable that the above-mentioned modem processor may not be integrated into the processor 510.

[0155] The electronic device 500 may also include a power supply 511 (such as a battery) for supplying power to each component. Preferably, the power supply 511 may be logically connected to the processor 510 through a power management system, thereby implementing functions such as charging, discharging, and power consumption management through the power management system.

[0156] In addition, the electronic device 500 includes some functional modules not shown, which will not be described in detail here.

[0157] It should be noted that, in this article, the terms "include", "comprises" or any other variations thereof are intended to cover non-exclusive inclusion, so that a process, method, article or device including a series of elements includes not only those elements, but also other elements not explicitly listed, or also includes elements inherent to such process, method, article or device. In the absence of further restrictions, an element defined by the sentence "comprises a ..." does not exclude the existence of other identical elements in the process, method, article or device including the element.

[0158] Through the description of the above implementation methods, those skilled in the art can clearly understand that the above-mentioned embodiment methods can be implemented by means of software plus a necessary general hardware platform, and of course by hardware, but in many cases the former is a better implementation method. Based on such an understanding, the technical solution of the present invention, or the part that contributes to the prior art, can be embodied in the form of a software product, which is stored in a storage medium (such as ROM / RAM, a magnetic disk, or an optical disk), and includes a number of instructions for enabling a terminal (which can be a mobile phone, a computer, a server, an air conditioner, or a network device, etc.) to execute the methods described in each embodiment of the present invention.

[0159] The embodiments of the present invention are described above in conjunction with the accompanying drawings, but the present invention is not limited to the above-mentioned specific implementation modes, which are merely illustrative rather than restrictive. Under the guidance of the present invention, ordinary technicians in this field can also make many forms without departing from the scope of protection of the present invention and the claims, all of which are within the protection of the present invention.

[0160] Those of ordinary skill in the art will appreciate that the units and algorithm steps of each example described in conjunction with the embodiments disclosed in the embodiments of the present invention can be implemented in electronic hardware, or a combination of computer software and electronic hardware. Whether these functions are performed in hardware or software depends on the specific application and design constraints of the technical solution. Professional and technical personnel can use different methods to implement the described functions for each specific application, but such implementation should not be considered to be beyond the scope of the present invention.

[0161] Those skilled in the art can clearly understand that, for the convenience and brevity of description, the specific working processes of the systems, devices and units described above can refer to the corresponding processes in the aforementioned method embodiments and will not be repeated here.

[0162] In the embodiments provided in the present application, it should be understood that the disclosed devices and methods can be implemented in other ways. For example, the device embodiments described above are only schematic. For example, the division of the units is only a logical function division. There may be other division methods in actual implementation, such as multiple units or components can be combined or integrated into another system, or some features can be ignored or not executed. Another point is that the mutual coupling or direct coupling or communication connection shown or discussed can be through some interfaces, indirect coupling or communication connection of devices or units, which can be electrical, mechanical or other forms.

[0163] The units described as separate components may or may not be physically separated, and the components shown as units may or may not be physical units, that is, they may be located in one place or distributed on multiple network units. Some or all of the units may be selected according to actual needs to achieve the purpose of the solution of this embodiment.

[0164] In addition, each functional unit in each embodiment of the present invention may be integrated into one processing unit, or each unit may exist physically separately, or two or more units may be integrated into one unit.

[0165] If the functions are implemented in the form of software functional units and sold or used as independent products, they can be stored in a computer-readable storage medium. Based on this understanding, the technical solution of the present invention, or the part that contributes to the prior art, or the part of the technical solution, can be embodied in the form of a software product. The computer software product is stored in a storage medium, including several instructions for a computer device (which can be a personal computer, server, or network device, etc.) to perform all or part of the steps of the method described in each embodiment of the present invention. The aforementioned storage medium includes: various media that can store program codes, such as USB flash drives, mobile hard disks, ROM, RAM, magnetic disks, or optical disks.

[0166] The above is only a specific embodiment of the present invention, but the protection scope of the present invention is not limited thereto. Any person skilled in the art can easily think of changes or substitutions within the technical scope disclosed by the present invention, which should be included in the protection scope of the present invention. Therefore, the protection scope of the present invention should be based on the protection scope of the claims.

Claims

1. A method for controlling an intelligent device, characterized in that: Applied to a centralized controller, the centralized controller is in communication connection with a smart device, the centralized controller stores a scene identifier and device status information of the smart device corresponding to the scene identifier, the device status information is collected before the smart device executes a scene execution instruction, the device status information at least includes the smart device identifier and the device status, the method includes: Obtaining a scene cancellation instruction; the scene cancellation instruction includes a target scene identifier; Acquire device status information corresponding to the scene identifier that matches the target scene identifier as target device status information; Determine a first target smart device according to the smart device identifier in the device status information; The device state of the first target smart device is restored to the device state in the target device state information.

2. The method according to claim 1, characterized in that Before obtaining the scene cancellation instruction, the method further includes: Acquire a scene identifier and the saved details corresponding to the scene identifier; the saved details at least include the smart device identifier and the execution action of the smart device; Determine, according to the smart device identifier in the saved details, a second target smart device to receive the scene execution instruction; Generate a corresponding scene execution instruction according to the execution action in the saved details; Acquire the current device state and the smart device identification of the second target smart device as device state information and save them; The scene execution instruction is sent to the second target smart device; the second target smart device is used to execute the scene execution instruction accordingly.

3. The method according to claim 2, characterized in that Before acquiring the scene identifier and the saved details corresponding to the scene identifier, the method further includes: Create a scene and save details corresponding to the scene; the save details at least include a smart device corresponding to the scene and an execution action corresponding to the smart device.

4. The method according to claim 3, characterized in that Obtaining the scene identifier and the saved details corresponding to the scene identifier, including: In response to a terminal device or a centralized controller triggering a target scene, obtaining saved details corresponding to a scene identifier of the target scene; wherein the terminal device is communicatively connected to the centralized controller.

5. The method according to claim 2, characterized in that: After acquiring and saving the current device state and the smart device identification of the second target smart device as the device state information, the method further includes: Monitor the control instruction of the second target smart device corresponding to the smart device identifier corresponding to the device status information; When the control instruction is a control instruction for changing the device state of the second target smart device, the device state information corresponding to the second target smart device is cancelled.

6. The method according to claim 1, characterized in that Restoring the device state of the first target smart device to the device state in the target device state information includes: generating a recovery control instruction for each of the first target smart devices according to the device status information; The recovery control instruction is sent to the corresponding first target smart device; the first target smart device is used to execute the recovery control instruction to recover to the device state in the target device state information.

7. The method according to claim 6, characterized in that After sending the recovery control instruction to the corresponding first target smart device, the method further includes: Cancel saving the device status information corresponding to the first target smart device.

8. The method according to claim 2, characterized in that: After acquiring and saving the current device state and the smart device identification of the second target smart device as device state information, the method further includes: Determining the saved time of the device status information; When the saved time meets the preset effective time threshold, the device status information is cancelled.

9. The method according to claim 8, characterized in that Before determining the storage time of the device status information, the method further includes: In response to a preset validity time threshold submitted by a terminal device or a centralized controller, the preset validity time threshold is saved.

10. A smart device control device, characterized in that: Applied to a centralized controller, the centralized controller is connected to a smart device in communication, the centralized controller stores a scene identifier and device status information of the smart device corresponding to the scene identifier, the device status information is collected before the smart device executes a scene execution instruction, the device status information at least includes the smart device identifier and the device status, the device includes: A scene cancellation instruction acquisition module, used to acquire a scene cancellation instruction; the scene cancellation instruction includes a target scene identifier; A device status information acquisition module, used to acquire device status information corresponding to the scene identifier matching the target scene identifier as target device status information; A smart device determining module, configured to determine a first target smart device according to a smart device identifier in the device status information; The device state recovery module is used to restore the device state of the first target smart device to the device state in the target device state information.

11. An electronic device, characterized in that: It includes a processor, a communication interface, a memory and a communication bus, wherein the processor, the communication interface and the memory communicate with each other through the communication bus; The memory is used to store computer programs; The processor is used to implement the method according to any one of claims 1 to 9 when executing the program stored in the memory.

12. A computer-readable storage medium having instructions stored thereon, which, when executed by one or more processors, cause the processors to perform the method according to any one of claims 1 to 9.

Citation Information

Patent Citations

  • Method and device for generating intelligent scene mode

    CN106338922A

  • Scene automatic adjustment method, system and device and storage medium

    CN113296420A