A processing method, device and equipment based on a smart home device
By creating shadow devices on local host devices and differentiating their status types, the problem of cloud server pressure bottlenecks is solved, enabling real-time updates and rapid responses to smart home device status, and reducing the load on cloud servers.
Patent Information
- Application Number
- CN202411915884.3
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2024-12-24
- Publication Date
- 2025-11-18
- Estimated Expiration
- 2044-12-24
AI Technical Summary
In existing smart home systems, cloud servers suffer from bottlenecks due to over-reliance on device status reporting, leading to issues such as backlog of device messages, untimely status queries, and even service crashes.
A local shadow device is created on the local host device, and a cloud shadow device is created on the cloud server. The status changes of smart home devices are detected in real time, and the status information of specified and unspecified types is distinguished. The status information of unspecified types is updated to the local shadow device, and synchronized to the cloud shadow device when needed, thereby reducing the load on the cloud server.
By combining local and cloud processing, the system achieves real-time status monitoring of smart home devices and reduces the load on cloud servers, ensuring real-time performance of cloud-based virtual devices and rapid response from local devices.
Smart Images

Figure CN119945817B_ABST
Abstract
Description
Technical Field
[0001] This invention relates to the field of smart home technology, and in particular to a processing method, apparatus, and device based on smart home equipment. Background Technology
[0002] With the rapid development of technology, smart home systems have become an indispensable part of modern family life. By integrating various intelligent devices, such as smart light bulbs, smart sockets, smart door locks, and temperature control systems, they enable automated control, remote monitoring, and personalized services for the home environment.
[0003] In existing technologies, smart home interaction solutions cache the real-time status data of smart home devices on a cloud server. Instead of relying on real-time client queries for status feedback, smart home devices proactively report their current status to the cloud server for caching at regular intervals. When a smart home client needs to query the device status, it can directly access the cached information on the cloud server to obtain the latest status information of the smart home device, without needing to communicate directly with the device in real time.
[0004] However, when using this approach, the cloud server relies too heavily on the reports from smart home devices for caching. As the number of smart home devices continues to increase, the cloud server will encounter pressure bottlenecks, resulting in problems such as backlog of device reports, untimely status queries, and even service crashes. Summary of the Invention
[0005] In view of the above problems, a processing method, apparatus, device, medium, and product based on smart home devices are proposed to overcome or at least partially solve the above problems, including:
[0006] A processing method based on smart home devices, applied to a local host device, wherein the local host device is connected to multiple smart home devices in a local environment, the method comprising:
[0007] When a change in the state of the smart home device is detected, real-time status information is acquired;
[0008] Determine whether the real-time status information is of a specified type;
[0009] If the real-time status information is a non-specified type of status information, update the real-time status information to the local shadow device in the local host device corresponding to the smart home device;
[0010] In response to a cloud service trigger event, the non-specified type of status information in the local shadow device is updated to the cloud shadow device corresponding to the smart home device in the cloud server, so as to respond to the cloud service trigger event based on the status information of the cloud shadow device.
[0011] Optionally, it also includes:
[0012] If the real-time status information is a specified type of status information, the real-time status information is updated to the local shadow device corresponding to the smart home device in the local host device, and the real-time status information is updated to the cloud shadow device corresponding to the smart home device in the cloud server.
[0013] Optionally, the cloud service triggering event includes any one or more of the following: viewing or controlling the status of the smart home device through a client, or viewing or controlling the status of the smart home device through voice commands.
[0014] Optionally, it also includes:
[0015] In response to a local service trigger event, the system responds to the local service trigger event based on the status information of the local shadow device.
[0016] Optionally, the local service triggering event includes: viewing or controlling the smart home device through a device with a screen in the local environment.
[0017] Optionally, before obtaining real-time status information upon detecting a change in the status of the smart home device, the method further includes:
[0018] A local shadow device corresponding to the smart home device is established on the local host device, and a cloud shadow device corresponding to the smart home device is established on the cloud server.
[0019] Optionally, the specified type of status information is the device's own status information, and the non-specified type of status information is environmental status information.
[0020] Optionally, the device's own status information includes any one of the following: device power on / off status information, device operating mode information;
[0021] The environmental status information includes any one of the following: environmental temperature information and environmental humidity information.
[0022] A processing device based on smart home devices is applied to a local host device, the local host device being connected to multiple smart home devices in a local environment, the device comprising:
[0023] The real-time status information acquisition module is used to acquire real-time status information when a change in the status of the smart home device is detected.
[0024] The status type determination module is used to determine whether the real-time status information is a specified type of status information;
[0025] A non-specified type state synchronization module is used to update the real-time state information to the local shadow device corresponding to the smart home device in the local host device if the real-time state information is non-specified type state information;
[0026] The cloud service trigger event response module is used to respond to a cloud service trigger event by updating the non-specified type of status information in the local shadow device to the cloud shadow device corresponding to the smart home device in the cloud server, so as to respond to the cloud service trigger event according to the status information of the cloud shadow device.
[0027] An electronic device includes a processor, a memory, and a computer program stored in the memory and capable of running on the processor, wherein the computer program, when executed by the processor, implements the method described above.
[0028] A computer-readable storage medium on which a computer program is stored, which, when executed by a processor, implements the method described above.
[0029] A computer program product includes a computer program that, when executed by a processor, implements the method described above.
[0030] The embodiments of the present invention have the following advantages:
[0031] In this embodiment of the invention, when a change in the state of a smart home device is detected, real-time state information is acquired; it is determined whether the real-time state information is of a specified type; if the real-time state information is of a non-specified type, the real-time state information is updated to the local shadow device corresponding to the smart home device in the local host device; in response to a cloud service trigger event, the non-specified type of state information in the local shadow device is updated to the cloud shadow device corresponding to the smart home device in the cloud server, so as to respond to the cloud service trigger event according to the state information of the cloud shadow device. This realizes the real-time detection and processing of the state changes of smart home devices, and updates the state information to the local or cloud as needed, thereby ensuring the real-time performance of the cloud shadow device and reducing the pressure of maintaining the shadow device in the cloud. Attached Figure Description
[0032] To more clearly illustrate the technical solution of the present invention, the accompanying drawings used in the description of the present invention will be briefly introduced below. Obviously, the accompanying drawings described below are only some embodiments of the present invention. For those skilled in the art, other drawings can be obtained based on these drawings without creative effort.
[0033] Figure 1 This is a flowchart of the steps of a processing method based on smart home devices provided in some embodiments of the present invention;
[0034] Figure 2 This is a flowchart illustrating a processing method based on smart home devices provided in some embodiments of the present invention;
[0035] Figure 3 This is a flowchart of another processing method based on smart home devices provided in some embodiments of the present invention;
[0036] Figure 4 This is a flowchart of the steps of another processing method based on smart home devices provided in some embodiments of the present invention;
[0037] Figure 5 This is a structural block diagram of a processing device based on a smart home device provided in some embodiments of the present invention. Detailed Implementation
[0038] To make the above-mentioned objects, features, and advantages of the present invention more apparent and understandable, the present invention will be further described in detail below with reference to the accompanying drawings and specific embodiments. Obviously, the described embodiments are only some, not all, of the embodiments of the present invention. All other embodiments obtained by those skilled in the art based on the embodiments of the present invention without inventive effort are within the scope of protection of the present invention.
[0039] Reference Figure 1 The diagram illustrates a step flowchart of a processing method based on smart home devices provided by some embodiments of the present invention, applied to a local host device, which is connected to multiple smart home devices in a local environment.
[0040] The local host device can be the control center of the smart home system, responsible for managing and controlling smart home devices connected to the local network. For example, the local host device can be a smart central control screen, a smart speaker, etc.
[0041] As examples, users can network with other smart home devices in their home through a local host device in the smart home system, and users can interact with other smart home devices in the smart home system through the local host device; the functions of the local host device may include, but are not limited to, controlling the device's on / off state, adjusting settings, and viewing the device status.
[0042] Networking refers to the process by which various smart home devices (such as air purifiers, smart light bulbs, smart sockets, etc.) within a home can form a local network through Bluetooth networking, local area networks (such as Wi-Fi), or other wireless communication technologies. This network allows communication and data exchange between devices.
[0043] In this local network, each smart home device can periodically (at a preset frequency) send its current status information to the local host device. After receiving the status information sent by the smart device, the local host device can store this information locally or in the cloud, and provide it to other devices with screens as needed. Devices with screens can access the local host device to obtain real-time status information of various smart home devices in the home.
[0044] Specifically, it may include the following steps:
[0045] Step 101: When a change in the state of the smart home device is detected, real-time status information is obtained.
[0046] Smart home devices can be those that can connect to the internet, be remotely controlled via smartphone apps, voice commands, or other means, and can perform tasks automatically. These devices can include, but are not limited to, smart lights, smart air conditioners, smart door locks, smart thermostats, and smart speakers.
[0047] A change in the status of a smart home device can refer to a change in its working state, location, settings, or other related attributes. For example, a smart light might change from being off to being on, or a smart thermostat might adjust the indoor temperature from 22°C to 24°C.
[0048] In practical applications, when the state of a smart home device changes, it can query its own state information as real-time status information and categorize the real-time status information.
[0049] For example, when a user uses a device with a screen in their home, such as a refrigerator with a screen, the device can obtain the status information of other devices from the local host device via a local area network for display. For instance, a refrigerator with a screen can display the on / off status of an air purifier (whether it is running), its operating mode (such as automatic, manual, sleep, etc.), and real-time data such as the PM2.5 index in the home obtained through the air purifier's sensors.
[0050] In this embodiment of the invention, before obtaining real-time status information when the status of the smart home device changes, the method further includes: establishing a local shadow device corresponding to the smart home device on the local host device, and establishing a cloud shadow device corresponding to the smart home device on the cloud server.
[0051] Among them, cloud servers refer to servers located on the Internet, which are used to store and manage the status information and configuration of smart home devices. Through cloud servers, users can access and control their smart home devices from anywhere via the Internet.
[0052] After the local host device in the smart home system is networked with other smart home devices in the home, local shadow devices corresponding to the smart home devices can be established on the cloud server and the local host device respectively. The shadow device can refer to the virtual entity corresponding to the smart home device, which is used to store the device's status information, etc. For example, it can be implemented through JSON (JavaScript Object Notation, a lightweight data exchange format) or other storage methods.
[0053] Step 102: Determine whether the real-time status information is a specified type of status information.
[0054] In this embodiment of the invention, the specified type of status information is the device's own status information, and the non-specified type of status information is environmental status information.
[0055] In this embodiment of the invention, the device's own status information includes any one of the following: device power on / off status information, device working mode information; the environmental status information includes any one of the following: ambient temperature information, ambient humidity information.
[0056] The device power-on / off status information refers to whether the device is currently powered on or powered off. For example, a television is playing a program (power-on) or is completely off (power-off).
[0057] Device operating mode information refers to the current operating mode or configuration of the device. Different devices can have different operating modes. For example, when the smart home device is a smart air conditioner, the device operating mode information can be air supply mode, cooling mode, heating mode, etc.
[0058] Ambient temperature information refers to the temperature of the environment in which the device is located. For example, when a smart home device is a smart air conditioner, it has a built-in temperature sensor to monitor the indoor temperature in order to adjust the operation of the air conditioner or heater. The real-time temperature obtained by the temperature sensor in the device can be used as the ambient temperature information.
[0059] Ambient humidity information refers to the humidity of the environment in which the device is located. For example, when a smart home device is a smart humidifier, it has a built-in humidity sensor to monitor indoor humidity in order to adjust the operation of the smart humidifier. The real-time humidity obtained by the humidity sensor in the device can be used as ambient humidity information.
[0060] After obtaining its own real-time status information, smart home devices can determine whether the real-time status information is of a specified type or not, in order to confirm whether to send the status information to the local shadow device and / or the cloud shadow device.
[0061] Step 103: If the real-time status information is a non-specified type of status information, update the real-time status information to the local shadow device corresponding to the smart home device in the local host device.
[0062] In practical applications, if the acquired real-time status information is of a non-specified type, this status information can be updated on the local shadow device corresponding to the smart home device on the local host device to keep the status of the local shadow device synchronized with that of the actual smart home device. Even if this information is not needed immediately, it may be used at some later time, or used to analyze the device's behavior patterns, etc.
[0063] In this embodiment of the invention, the method further includes: if the real-time status information is status information of a specified type, updating the real-time status information to the local shadow device corresponding to the smart home device in the local host device, and updating the real-time status information to the cloud shadow device corresponding to the smart home device in the cloud server.
[0064] In practical applications, if the acquired real-time status information belongs to a specified type of status information, the system will perform the following two steps:
[0065] First, this status information is updated on the local shadow device corresponding to the smart home device on the local host device to keep the status of the local shadow device synchronized with the actual smart home device, so that it can be quickly accessed when needed or decisions can be made based on the latest status even without a network connection.
[0066] Secondly, this status information is also updated to the cloud shadow device corresponding to the smart home device on the cloud server, so as to ensure that no matter where the user is, they can access the latest status information of the smart home device through the Internet and perform corresponding control or response.
[0067] Step 104: In response to the cloud service trigger event, update the non-specified type status information in the local shadow device to the cloud shadow device corresponding to the smart home device in the cloud server, so as to respond to the cloud service trigger event according to the status information of the cloud shadow device.
[0068] In this embodiment of the invention, the cloud service triggering event includes any one or more of the following: viewing or controlling the status of the smart home device through a client, and viewing or controlling the status of the smart home device through voice commands.
[0069] As examples, since users need data from cloud servers when using the client or voice control, this can be used as a cloud service to trigger events.
[0070] In practical applications, users can view or control the status of smart home devices through the client application; for example, users can use smartphone apps, web interfaces, or other types of client software to view the current status of smart home devices or send control commands. Users can also view or control the status of smart home devices through voice commands in the client application; for example, users can use the voice input in the client application to query the current status of smart home devices or send control commands.
[0071] In some examples, when a user accesses the smart home control page using a smart home client (for interface operations, voice control, etc.), the local host device can be notified to proactively report non-specified status information from the local shadow device at a certain frequency (e.g., once every 30 seconds, until the user exits the smart home control page) by calling an interface or message queue. This allows for targeted reporting, shortens message content, reduces cloud server processing time, and enables rapid updates to the cloud shadow device status.
[0072] As examples, when a user wakes up the local host device using the voice input of the local host device, such as through the voice input of the smart control screen, the smart control screen synchronizes the non-specified type status information of the local shadow device corresponding to the smart home device in the home to the cloud shadow device at a certain frequency (such as at 30-second intervals, continuously reporting for 3 minutes) via the local area network.
[0073] For example, when a user says "Hey Xiao X" to a smart speaker and the smart speaker replies "Here," the local host device can synchronize "non-specified status information" to the cloud shadow device on the cloud server at a certain frequency (e.g., every 30 seconds for 3 minutes). When the user wakes up the local host device again via voice, if it is still within the 3-minute time limit, the non-specified status information will not be reported to the cloud shadow device again.
[0074] In this embodiment of the invention, it further includes: responding to a local service trigger event based on the status information of the local shadow device.
[0075] In this embodiment of the invention, the local service triggering event includes: viewing or controlling the smart home device through a device with a screen in the local environment.
[0076] In this context, "devices with screens in the local environment" refers to smart home devices with touchscreens that can control other smart home devices in the home environment without an internet connection. For example, a device with a screen could be a smart refrigerator or similar device with a touchscreen.
[0077] In practical applications, users can tap the touchscreen of the smart refrigerator, which can then directly obtain real-time status information of multiple smart home devices in the home environment through a local shadow device.
[0078] In this embodiment of the invention, when a change in the state of a smart home device is detected, real-time state information is acquired; it is determined whether the real-time state information is of a specified type; if the real-time state information is of a non-specified type, the real-time state information is updated to the local shadow device corresponding to the smart home device in the local host device; in response to a cloud service trigger event, the non-specified type of state information in the local shadow device is updated to the cloud shadow device corresponding to the smart home device in the cloud server, so as to respond to the cloud service trigger event according to the state information of the cloud shadow device. This realizes the real-time detection and processing of the state changes of smart home devices, and updates the state information to the local or cloud as needed, thereby ensuring the real-time performance of the cloud shadow device and reducing the pressure of maintaining the shadow device in the cloud.
[0079] The following combination Figure 2 The present invention will be described by way of example:
[0080] Step 201: Obtain real-time status information of smart home devices.
[0081] Step 202: Determine whether the real-time status information is of the specified type. If yes, proceed to step 203; otherwise, proceed to step 204.
[0082] Step 203: Synchronize non-specified type status information to the local shadow device.
[0083] Step 204: Synchronize the specified type of status information to the local shadow device and the cloud shadow device.
[0084] If the triggering event is a local service triggering event (viewing or controlling smart home devices through a device with a screen in the local environment), then query the real-time status information of multiple smart home devices in the home environment from the local shadow device; if the triggering event is a cloud service triggering event (viewing or controlling the status of smart home devices through a client (such as an APP) or through voice commands), then notify the local host device to synchronize the non-specified type of status information in the local shadow device to the cloud shadow device.
[0085] In this embodiment of the invention, by deploying a local shadow device on the local host device, frequently reported content can be transferred to the local shadow device for storage, and only the specified type of status information is reported to the cloud server. When it is necessary to operate the smart home device, other "non-specified type of status information" is reported from the local shadow device to the cloud shadow device for synchronization as needed. This alleviates the load pressure on the cloud server to maintain the cloud shadow device, and ensures that users can check the status of smart home devices in real time when using the local host device.
[0086] Reference Figure 3 The diagram illustrates a flowchart of another processing method based on smart home devices provided by some embodiments of the present invention, applied to a local host device, which is connected to multiple smart home devices in a local environment.
[0087] The local host device can be the control center of the smart home system, responsible for managing and controlling smart home devices connected to the local network. For example, the local host device can be a smart central control screen, a smart speaker, etc.
[0088] As examples, users can network with other smart home devices in their home through a local host device in the smart home system, and users can interact with other smart home devices in the smart home system through the local host device; the functions of the local host device may include, but are not limited to, controlling the device's on / off state, adjusting settings, and viewing the device status.
[0089] Networking refers to the process by which various smart home devices (such as air purifiers, smart light bulbs, smart sockets, etc.) within a home can form a local network through Bluetooth networking, local area networks (such as Wi-Fi), or other wireless communication technologies. This network allows communication and data exchange between devices.
[0090] In this local network, each smart home device can periodically (at a preset frequency) send its current status information to the local host device. After receiving the status information sent by the smart device, the local host device can store this information locally or in the cloud, and provide it to other devices with screens as needed. Devices with screens can access the local host device to obtain real-time status information of various smart home devices in the home.
[0091] Specifically, it may include the following steps:
[0092] Step 301: Establish a local shadow device corresponding to the smart home device on the local host device, and establish a cloud shadow device corresponding to the smart home device on the cloud server.
[0093] Among them, cloud servers refer to servers located on the Internet, which are used to store and manage the status information and configuration of smart home devices. Through cloud servers, users can access and control their smart home devices from anywhere via the Internet.
[0094] After the local host device in the smart home system is networked with other smart home devices in the home, local shadow devices corresponding to the smart home devices can be established on the cloud server and the local host device respectively. The shadow device can refer to the virtual entity corresponding to the smart home device, which is used to store the device's status information, etc. For example, it can be implemented through JSON (JavaScript Object Notation, a lightweight data exchange format) or other storage methods.
[0095] Step 302: When a change in the state of the smart home device is detected, real-time status information is obtained.
[0096] Smart home devices can be those that can connect to the internet, be remotely controlled via smartphone apps, voice commands, or other means, and can perform tasks automatically. These devices can include, but are not limited to, smart lights, smart air conditioners, smart door locks, smart thermostats, and smart speakers.
[0097] A change in the status of a smart home device can refer to a change in its working state, location, settings, or other related attributes. For example, a smart light might change from being off to being on, or a smart thermostat might adjust the indoor temperature from 22°C to 24°C.
[0098] In practical applications, when the state of a smart home device changes, it can query its own state information as real-time status information and categorize the real-time status information.
[0099] For example, when a user uses a device with a screen in their home, such as a refrigerator with a screen, the device can obtain the status information of other devices from the local host device via a local area network for display. For instance, a refrigerator with a screen can display the on / off status of an air purifier (whether it is running), its operating mode (such as automatic, manual, sleep, etc.), and real-time data such as the PM2.5 index in the home obtained through the air purifier's sensors.
[0100] Step 303: Determine whether the real-time status information is a specified type of status information.
[0101] In this embodiment of the invention, the specified type of status information is the device's own status information, and the non-specified type of status information is environmental status information.
[0102] In this embodiment of the invention, the device's own status information includes any one of the following: device power on / off status information, device working mode information; the environmental status information includes any one of the following: ambient temperature information, ambient humidity information.
[0103] The device power-on / off status information refers to whether the device is currently powered on or powered off. For example, a television is playing a program (power-on) or is completely off (power-off).
[0104] Device operating mode information refers to the current operating mode or configuration of the device. Different devices can have different operating modes. For example, when the smart home device is a smart air conditioner, the device operating mode information can be air supply mode, cooling mode, heating mode, etc.
[0105] Ambient temperature information refers to the temperature of the environment in which the device is located. For example, when a smart home device is a smart air conditioner, it has a built-in temperature sensor to monitor the indoor temperature in order to adjust the operation of the air conditioner or heater. The real-time temperature obtained by the temperature sensor in the device can be used as the ambient temperature information.
[0106] Ambient humidity information refers to the humidity of the environment in which the device is located. For example, when a smart home device is a smart humidifier, it has a built-in humidity sensor to monitor indoor humidity in order to adjust the operation of the smart humidifier. The real-time humidity obtained by the humidity sensor in the device can be used as ambient humidity information.
[0107] After obtaining its own real-time status information, smart home devices can determine whether the real-time status information is of a specified type or not, in order to confirm whether to send the status information to the local shadow device and / or the cloud shadow device.
[0108] Step 304: If the real-time status information is a non-specified type of status information, update the real-time status information to the local shadow device corresponding to the smart home device in the local host device.
[0109] In practical applications, if the acquired real-time status information is of a non-specified type, this status information can be updated on the local shadow device corresponding to the smart home device on the local host device to keep the status of the local shadow device synchronized with that of the actual smart home device. Even if this information is not needed immediately, it may be used at some later time, or used to analyze the device's behavior patterns, etc.
[0110] In this embodiment of the invention, the method further includes: if the real-time status information is status information of a specified type, updating the real-time status information to the local shadow device corresponding to the smart home device in the local host device, and updating the real-time status information to the cloud shadow device corresponding to the smart home device in the cloud server.
[0111] In practical applications, if the acquired real-time status information belongs to a specified type of status information, the system will perform the following two steps:
[0112] First, this status information is updated on the local shadow device corresponding to the smart home device on the local host device to keep the status of the local shadow device synchronized with the actual smart home device, so that it can be quickly accessed when needed or decisions can be made based on the latest status even without a network connection.
[0113] Secondly, this status information is also updated to the cloud shadow device corresponding to the smart home device on the cloud server, so as to ensure that no matter where the user is, they can access the latest status information of the smart home device through the Internet and perform corresponding control or response.
[0114] Step 305: In response to the cloud service trigger event, update the non-specified type status information in the local shadow device to the cloud shadow device corresponding to the smart home device in the cloud server, so as to respond to the cloud service trigger event according to the status information of the cloud shadow device.
[0115] In this embodiment of the invention, the cloud service triggering event includes any one or more of the following: viewing or controlling the status of the smart home device through a client, and viewing or controlling the status of the smart home device through voice commands.
[0116] As examples, since users need data from cloud servers when using the client or voice control, this can be used as a cloud service to trigger events.
[0117] In practical applications, users can view or control the status of smart home devices through the client application; for example, users can use smartphone apps, web interfaces, or other types of client software to view the current status of smart home devices or send control commands. Users can also view or control the status of smart home devices through voice commands in the client application; for example, users can use the voice input in the client application to query the current status of smart home devices or send control commands.
[0118] In some examples, when a user accesses the smart home control page using a smart home client (for interface operations, voice control, etc.), the local host device can be notified to proactively report non-specified status information from the local shadow device at a certain frequency (e.g., once every 30 seconds, until the user exits the smart home control page) by calling an interface or message queue. This allows for targeted reporting, shortens message content, reduces cloud server processing time, and enables rapid updates to the cloud shadow device status.
[0119] As examples, when a user wakes up the local host device using the voice input of the local host device, such as through the voice input of the smart control screen, the smart control screen synchronizes the non-specified type status information of the local shadow device corresponding to the smart home device in the home to the cloud shadow device at a certain frequency (such as at 30-second intervals, continuously reporting for 3 minutes) via the local area network.
[0120] For example, when a user says "Hey Xiao X" to a smart speaker and the smart speaker replies "Here," the local host device can synchronize "non-specified status information" to the cloud shadow device on the cloud server at a certain frequency (e.g., every 30 seconds for 3 minutes). When the user wakes up the local host device again via voice, if it is still within the 3-minute time limit, the non-specified status information will not be reported to the cloud shadow device again.
[0121] In this embodiment of the invention, it further includes: responding to a local service trigger event based on the status information of the local shadow device.
[0122] In this embodiment of the invention, the local service triggering event includes: viewing or controlling the smart home device through a device with a screen in the local environment.
[0123] In this context, "devices with screens in the local environment" refers to smart home devices with touchscreens that can control other smart home devices in the home environment without an internet connection. For example, a device with a screen could be a smart refrigerator or similar device with a touchscreen.
[0124] In practical applications, users can tap the touchscreen of the smart refrigerator, which can then directly obtain real-time status information of multiple smart home devices in the home environment through a local shadow device.
[0125] In this embodiment of the invention, a local shadow device corresponding to a smart home device is established on a local host device, and a cloud shadow device corresponding to the smart home device is established on a cloud server. When a change in the state of the smart home device is detected, real-time state information is obtained. It is determined whether the real-time state information is of a specified type. If the real-time state information is of a non-specified type, the real-time state information is updated to the local shadow device corresponding to the smart home device on the local host device. In response to a cloud service trigger event, the non-specified type of state information in the local shadow device is updated to the cloud shadow device corresponding to the smart home device on the cloud server. This allows for a response to cloud service trigger events based on the state information of the cloud shadow device. By detecting and processing the state changes of smart home devices in real time and updating the state information to the local or cloud as needed, the real-time performance of the cloud shadow device is ensured, while reducing the pressure on the cloud to maintain the shadow device.
[0126] Reference Figure 4 The diagram illustrates a flowchart of another processing method based on smart home devices provided by some embodiments of the present invention, applied to a local host device, which is connected to multiple smart home devices in a local environment.
[0127] The local host device can be the control center of the smart home system, responsible for managing and controlling smart home devices connected to the local network. For example, the local host device can be a smart central control screen, a smart speaker, etc.
[0128] As examples, users can network with other smart home devices in their home through a local host device in the smart home system, and users can interact with other smart home devices in the smart home system through the local host device; the functions of the local host device may include, but are not limited to, controlling the device's on / off state, adjusting settings, and viewing the device status.
[0129] Networking refers to the process by which various smart home devices (such as air purifiers, smart light bulbs, smart sockets, etc.) within a home can form a local network through Bluetooth networking, local area networks (such as Wi-Fi), or other wireless communication technologies. This network allows communication and data exchange between devices.
[0130] In this local network, each smart home device can periodically (at a preset frequency) send its current status information to the local host device. After receiving the status information sent by the smart device, the local host device can store this information locally or in the cloud, and provide it to other devices with screens as needed. Devices with screens can access the local host device to obtain real-time status information of various smart home devices in the home.
[0131] Specifically, it may include the following steps:
[0132] Step 401: Establish a local shadow device corresponding to the smart home device on the local host device, and establish a cloud shadow device corresponding to the smart home device on the cloud server.
[0133] Among them, cloud servers refer to servers located on the Internet, which are used to store and manage the status information and configuration of smart home devices. Through cloud servers, users can access and control their smart home devices from anywhere via the Internet.
[0134] After the local host device in the smart home system is networked with other smart home devices in the home, local shadow devices corresponding to the smart home devices can be established on the cloud server and the local host device respectively. The shadow device can refer to the virtual entity corresponding to the smart home device, which is used to store the device's status information, etc. For example, it can be implemented through JSON (JavaScript Object Notation, a lightweight data exchange format) or other storage methods.
[0135] Step 402: When a change in the state of the smart home device is detected, real-time status information is obtained.
[0136] Smart home devices can be those that can connect to the internet, be remotely controlled via smartphone apps, voice commands, or other means, and can perform tasks automatically. These devices can include, but are not limited to, smart lights, smart air conditioners, smart door locks, smart thermostats, and smart speakers.
[0137] A change in the status of a smart home device can refer to a change in its working state, location, settings, or other related attributes. For example, a smart light might change from being off to being on, or a smart thermostat might adjust the indoor temperature from 22°C to 24°C.
[0138] In practical applications, when the state of a smart home device changes, it can query its own state information as real-time status information and categorize the real-time status information.
[0139] For example, when a user uses a device with a screen in their home, such as a refrigerator with a screen, the device can obtain the status information of other devices from the local host device via a local area network for display. For instance, a refrigerator with a screen can display the on / off status of an air purifier (whether it is running), its operating mode (such as automatic, manual, sleep, etc.), and real-time data such as the PM2.5 index in the home obtained through the air purifier's sensors.
[0140] Step 403: Determine whether the real-time status information is a specified type of status information.
[0141] In this embodiment of the invention, the specified type of status information is the device's own status information, and the non-specified type of status information is environmental status information.
[0142] In this embodiment of the invention, the device's own status information includes any one of the following: device power on / off status information, device working mode information; the environmental status information includes any one of the following: ambient temperature information, ambient humidity information.
[0143] The device power-on / off status information refers to whether the device is currently powered on or powered off. For example, a television is playing a program (power-on) or is completely off (power-off).
[0144] Device operating mode information refers to the current operating mode or configuration of the device. Different devices can have different operating modes. For example, when the smart home device is a smart air conditioner, the device operating mode information can be air supply mode, cooling mode, heating mode, etc.
[0145] Ambient temperature information refers to the temperature of the environment in which the device is located. For example, when a smart home device is a smart air conditioner, it has a built-in temperature sensor to monitor the indoor temperature in order to adjust the operation of the air conditioner or heater. The real-time temperature obtained by the temperature sensor in the device can be used as the ambient temperature information.
[0146] Ambient humidity information refers to the humidity of the environment in which the device is located. For example, when a smart home device is a smart humidifier, it has a built-in humidity sensor to monitor indoor humidity in order to adjust the operation of the smart humidifier. The real-time humidity obtained by the humidity sensor in the device can be used as ambient humidity information.
[0147] After obtaining its own real-time status information, smart home devices can determine whether the real-time status information is of a specified type or not, in order to confirm whether to send the status information to the local shadow device and / or the cloud shadow device.
[0148] Step 404: If the real-time status information is a specified type of status information, update the real-time status information to the local shadow device corresponding to the smart home device in the local host device, and update the real-time status information to the cloud shadow device corresponding to the smart home device in the cloud server.
[0149] In practical applications, if the acquired real-time status information belongs to a specified type of status information, the system will perform the following two steps:
[0150] First, this status information is updated on the local shadow device corresponding to the smart home device on the local host device to keep the status of the local shadow device synchronized with the actual smart home device, so that it can be quickly accessed when needed or decisions can be made based on the latest status even without a network connection.
[0151] Secondly, this status information is also updated to the cloud shadow device corresponding to the smart home device on the cloud server, so as to ensure that no matter where the user is, they can access the latest status information of the smart home device through the Internet and perform corresponding control or response.
[0152] Step 405: If the real-time status information is a non-specified type of status information, update the real-time status information to the local shadow device corresponding to the smart home device in the local host device.
[0153] In practical applications, if the acquired real-time status information is of a non-specified type, this status information can be updated on the local shadow device corresponding to the smart home device on the local host device to keep the status of the local shadow device synchronized with that of the actual smart home device. Even if this information is not needed immediately, it may be used at some later time, or used to analyze the device's behavior patterns, etc.
[0154] Step 406: In response to the cloud service trigger event, update the non-specified type status information in the local shadow device to the cloud shadow device corresponding to the smart home device in the cloud server, so as to respond to the cloud service trigger event according to the status information of the cloud shadow device.
[0155] In this embodiment of the invention, the cloud service triggering event includes any one or more of the following: viewing or controlling the status of the smart home device through a client, and viewing or controlling the status of the smart home device through voice commands.
[0156] As examples, since users need data from cloud servers when using the client or voice control, this can be used as a cloud service to trigger events.
[0157] In practical applications, users can view or control the status of smart home devices through the client application; for example, users can use smartphone apps, web interfaces, or other types of client software to view the current status of smart home devices or send control commands. Users can also view or control the status of smart home devices through voice commands in the client application; for example, users can use the voice input in the client application to query the current status of smart home devices or send control commands.
[0158] In some examples, when a user accesses the smart home control page using a smart home client (for interface operations, voice control, etc.), the local host device can be notified to proactively report non-specified status information from the local shadow device at a certain frequency (e.g., once every 30 seconds, until the user exits the smart home control page) by calling an interface or message queue. This allows for targeted reporting, shortens message content, reduces cloud server processing time, and enables rapid updates to the cloud shadow device status.
[0159] As examples, when a user wakes up the local host device using the voice input of the local host device, such as through the voice input of the smart control screen, the smart control screen synchronizes the non-specified type status information of the local shadow device corresponding to the smart home device in the home to the cloud shadow device at a certain frequency (such as at 30-second intervals, continuously reporting for 3 minutes) via the local area network.
[0160] For example, when a user says "Hey Xiao X" to a smart speaker and the smart speaker replies "Here," the local host device can synchronize "non-specified status information" to the cloud shadow device on the cloud server at a certain frequency (e.g., every 30 seconds for 3 minutes). When the user wakes up the local host device again via voice, if it is still within the 3-minute time limit, the non-specified status information will not be reported to the cloud shadow device again.
[0161] In this embodiment of the invention, it further includes: responding to a local service trigger event based on the status information of the local shadow device.
[0162] In this embodiment of the invention, the local service triggering event includes: viewing or controlling the smart home device through a device with a screen in the local environment.
[0163] In this context, "devices with screens in the local environment" refers to smart home devices with touchscreens that can control other smart home devices in the home environment without an internet connection. For example, a device with a screen could be a smart refrigerator or similar device with a touchscreen.
[0164] In practical applications, users can tap the touchscreen of the smart refrigerator, which can then directly obtain real-time status information of multiple smart home devices in the home environment through a local shadow device.
[0165] In this embodiment of the invention, a local shadow device corresponding to the smart home device is established on the local host device, and a cloud shadow device corresponding to the smart home device is established on the cloud server. When a change in the state of the smart home device is detected, real-time state information is obtained. It is determined whether the real-time state information is of a specified type. If the real-time state information is of a specified type, the real-time state information is updated to the local shadow device corresponding to the smart home device on the local host device, and the real-time state information is also updated to the cloud shadow device corresponding to the smart home device on the cloud server. If the real-time state information is of a non-specified type, the real-time state information is updated to the local shadow device corresponding to the smart home device on the local host device. In response to a cloud service trigger event, the non-specified type of state information in the local shadow device is updated to the cloud shadow device corresponding to the smart home device on the cloud server. This allows for a response to cloud service trigger events based on the state information of the cloud shadow device. This achieves real-time detection and processing of the state changes of the smart home device, updating the state information to the local or cloud as needed, thereby ensuring the real-time performance of the cloud shadow device and reducing the pressure on the cloud to maintain the shadow device.
[0166] It should be noted that, for the sake of simplicity, the method embodiments are all described as a series of actions. However, those skilled in the art should understand that the embodiments of the present invention are not limited to the described order of actions, because according to the embodiments of the present invention, some steps can be performed in other orders or simultaneously. Furthermore, those skilled in the art should also understand that the embodiments described in the specification are preferred embodiments, and the actions involved are not necessarily essential to the embodiments of the present invention.
[0167] Reference Figure 5 The diagram illustrates a structural schematic of a processing device based on a smart home device according to some embodiments of the present invention, which may specifically include the following modules:
[0168] The real-time status information acquisition module 501 is used to acquire real-time status information when a change in the status of the smart home device is detected.
[0169] The status type determination module 502 is used to determine whether the real-time status information is a specified type of status information;
[0170] The non-specified type status synchronization module 503 is used to update the real-time status information to the local shadow device corresponding to the smart home device in the local host device if the real-time status information is non-specified type status information;
[0171] The cloud service trigger event response module 504 is used to respond to a cloud service trigger event by updating the non-specified type status information in the local shadow device to the cloud shadow device corresponding to the smart home device in the cloud server, so as to respond to the cloud service trigger event according to the status information of the cloud shadow device.
[0172] In some embodiments of the present invention, the apparatus further includes:
[0173] The first synchronization module is used to update the real-time status information to the local shadow device corresponding to the smart home device in the local host device and to the cloud shadow device corresponding to the smart home device in the cloud server if the real-time status information is a specified type of status information.
[0174] In some embodiments of the present invention, the cloud service triggering event includes any one or more of the following: viewing or controlling the status of the smart home device through a client, or viewing or controlling the status of the smart home device through voice commands.
[0175] In some embodiments of the present invention, the apparatus further includes:
[0176] The event triggering module is used to respond to local service triggering events by responding to the local service triggering events based on the status information of the local shadow device.
[0177] In some embodiments of the present invention, the local service triggering event includes: viewing or controlling the smart home device through a device with a screen in the local environment.
[0178] In some embodiments of the present invention, the apparatus further includes:
[0179] The shadow device creation module is used to create a local shadow device corresponding to the smart home device on the local host device, and to create a cloud shadow device corresponding to the smart home device on the cloud server.
[0180] In some embodiments of the present invention, the specified type of status information is the device's own status information, and the non-specified type of status information is environmental status information.
[0181] In some embodiments of the present invention, the device status information includes any one of the following: device power on / off status information, device operating mode information;
[0182] The environmental status information includes any one of the following: environmental temperature information and environmental humidity information.
[0183] Some embodiments of the present invention also provide an electronic device, including a processor, a memory, and a computer program stored in the memory and capable of running on the processor, wherein the computer program, when executed by the processor, implements the method described above.
[0184] Some embodiments of the present invention also provide a computer-readable storage medium on which a computer program is stored, and which, when executed by a processor, implements the method described above.
[0185] Some embodiments of the present invention also provide a computer program product, including a computer program that, when executed by a processor, implements the method described above.
[0186] As the device embodiment is basically similar to the method embodiment, the description is relatively simple, and relevant parts can be found in the description of the method embodiment.
[0187] It should be noted that the user information (including but not limited to user device information, user personal information, etc.) and data (including but not limited to data used for analysis, data stored, data displayed, etc.) involved in this application are all information and data authorized by the user or fully authorized by all parties. Furthermore, the collection, use and processing of the relevant data must comply with the relevant laws, regulations and standards of the relevant countries and regions, and corresponding operation portals are provided for users to choose to authorize or refuse.
[0188] The various embodiments in this specification are described in a progressive manner, with each embodiment focusing on the differences from other embodiments. The same or similar parts between the various embodiments can be referred to each other.
[0189] Those skilled in the art will understand that embodiments of the present invention can be provided as methods, apparatus, or computer program products. Therefore, embodiments of the present invention can take the form of entirely hardware embodiments, entirely software embodiments, or embodiments combining software and hardware aspects. Furthermore, embodiments of the present invention can take the form of computer program products implemented on one or more computer-usable storage media (including but not limited to disk storage, CD-ROM, optical storage, etc.) containing computer-usable program code.
[0190] This invention is described with reference to flowchart illustrations and / or block diagrams of methods, terminal devices (systems), and computer program products according to embodiments of the invention. It will be understood that each block of the flowchart illustrations and / or block diagrams, and combinations of blocks in the flowchart illustrations and / or block diagrams, can be implemented by computer program instructions. These computer program instructions can be provided to a processor of a general-purpose computer, special-purpose computer, embedded processor, or other programmable data processing terminal device to produce a machine, such that the instructions, which execute via the processor of the computer or other programmable data processing terminal device, generate instructions for implementing the flowchart illustrations and / or block diagrams. Figure 1 One or more processes and / or boxes Figure 1 A device that provides the functions specified in one or more boxes.
[0191] These computer program instructions may also be stored in a computer-readable storage medium that can direct a computer or other programmable data processing terminal device to operate in a particular manner, such that the instructions stored in the computer-readable storage medium produce an article of manufacture including instruction means, which are implemented in a process Figure 1 One or more processes and / or boxes Figure 1 The function specified in one or more boxes.
[0192] These computer program instructions can also be loaded onto a computer or other programmable data processing terminal equipment, causing a series of operational steps to be performed on the computer or other programmable terminal equipment to produce a computer-implemented process, thereby providing instructions that execute on the computer or other programmable terminal equipment for implementing the process. Figure 1 One or more processes and / or boxes Figure 1 The steps of the function specified in one or more boxes.
[0193] Although preferred embodiments of the present invention have been described, those skilled in the art, upon learning the basic inventive concept, can make other changes and modifications to these embodiments. Therefore, the appended claims are intended to be interpreted as including the preferred embodiments as well as all changes and modifications falling within the scope of the embodiments of the present invention.
[0194] Finally, it should be noted that in this document, relational terms such as "first" and "second" are used only to distinguish one entity or operation from another, and do not necessarily require or imply any such actual relationship or order between these entities or operations. Furthermore, the terms "comprising," "including," or any other variations thereof are intended to cover non-exclusive inclusion, such that a process, method, article, or terminal device that comprises a list of elements includes not only those elements but also other elements not expressly listed, or elements inherent to such a process, method, article, or terminal device. Without further limitations, an element defined by the phrase "comprising one..." does not exclude the presence of other identical elements in the process, method, article, or terminal device that includes the aforementioned element.
[0195] The above provides a detailed description of a processing method, apparatus, device, medium, and product based on smart home devices. Specific examples have been used to illustrate the principles and implementation methods of the present invention. The descriptions of the above embodiments are only for the purpose of helping to understand the method and core ideas of the present invention. At the same time, for those skilled in the art, there will be changes in the specific implementation methods and application scope based on the ideas of the present invention. Therefore, the content of this specification should not be construed as a limitation of the present invention.
Claims
1. A processing method based on smart home devices, characterized in that, Applied to a local host device, wherein the local host device is connected to multiple smart home devices in a local environment, the method includes: When a change in the state of the smart home device is detected, real-time status information is acquired; Determine whether the real-time status information is of a specified type; If the real-time status information is a non-specified type of status information, update the real-time status information to the local shadow device in the local host device corresponding to the smart home device; In response to a cloud service trigger event, the non-specified type of status information in the local shadow device is updated to the cloud shadow device corresponding to the smart home device in the cloud server, so as to respond to the cloud service trigger event based on the status information of the cloud shadow device.
2. The method according to claim 1, characterized in that, Also includes: If the real-time status information is a specified type of status information, the real-time status information is updated to the local shadow device corresponding to the smart home device in the local host device, and the real-time status information is updated to the cloud shadow device corresponding to the smart home device in the cloud server.
3. The method according to claim 1 or 2, characterized in that, The cloud service trigger events include any one or more of the following: viewing or controlling the status of the smart home device through the client, and viewing or controlling the status of the smart home device through voice commands.
4. The method according to claim 1 or 2, characterized in that, Also includes: In response to a local service trigger event, the system responds to the local service trigger event based on the status information of the local shadow device.
5. The method according to claim 4, characterized in that, The local service triggering events include: viewing or controlling the smart home devices through a device with a screen in the local environment.
6. The method according to claim 1 or 2, characterized in that, Before obtaining real-time status information upon detecting a change in the status of the smart home device, the method further includes: A local shadow device corresponding to the smart home device is established on the local host device, and a cloud shadow device corresponding to the smart home device is established on the cloud server.
7. The method according to claim 1 or 2, characterized in that, The specified type of status information is the device's own status information, while the non-specified type of status information is environmental status information.
8. The method according to claim 7, characterized in that, The device's own status information includes any one of the following: device power on / off status information, device operating mode information; The environmental status information includes any one of the following: environmental temperature information and environmental humidity information.
9. A processing device based on smart home devices, characterized in that, An application to a local host device, wherein the local host device is connected to multiple smart home devices in a local environment, the device includes: The real-time status information acquisition module is used to acquire real-time status information when a change in the status of the smart home device is detected. The status type determination module is used to determine whether the real-time status information is a specified type of status information; A non-specified type state synchronization module is used to update the real-time state information to the local shadow device corresponding to the smart home device in the local host device if the real-time state information is non-specified type state information; The cloud service trigger event response module is used to respond to a cloud service trigger event by updating the non-specified type of status information in the local shadow device to the cloud shadow device corresponding to the smart home device in the cloud server, so as to respond to the cloud service trigger event according to the status information of the cloud shadow device.
10. An electronic device, characterized in that, It includes a processor, a memory, and a computer program stored in the memory and capable of running on the processor, wherein the computer program, when executed by the processor, implements the method as described in any one of claims 1 to 8.
11. A computer-readable storage medium, characterized in that, A computer program is stored on the computer-readable storage medium, which, when executed by a processor, implements the method as described in any one of claims 1 to 8.
12. A computer program product, characterized in that, It includes a computer program that, when executed by a processor, implements the method as described in any one of claims 1 to 8.
Citation Information
Patent Citations
Method and device for controlling equipment, computing equipment and storage medium
CN110545222A
Method and device for controlling household appliances, and server
CN114488829A