Processing method, device and equipment based on smart home equipment
By establishing local shadow devices on local host devices and cloud shadow devices on cloud servers, and real-time update of the status information of smart home devices, the problem of excessive load on cloud servers is solved, real-time and load reduction of cloud shadow devices is achieved.
Patent Information
- Application Number
- CN202411915884.3
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-12-24
- Publication Date
- 2025-05-06
- Estimated Expiration
- 2044-12-24
AI Technical Summary
In existing smart home systems, cloud servers rely too much on reporting of smart home devices, resulting in backlog of information on device reporting, untimely status query, and even service crashes.
Establish a local shadow device corresponding to a smart home device on the local host device, and establish a cloud shadow device on the cloud server to detect the status changes of the smart home device in real time, update status information of non-specified types to local shadow devices and cloud shadow devices, and reduce the load on the cloud server.
By detecting and processing the status changes of smart home devices in real time, and updating status information to the local or cloud, the real-time nature of cloud shadow devices is ensured and the pressure to maintain shadow devices in the cloud is reduced.
Smart Images

Figure CN119945817A_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the field of smart home technology, and in particular to a processing method, device and equipment based on smart home equipment. Background Art
[0002] With the rapid development of science and technology, smart home systems have become an indispensable part of modern family life. They integrate various intelligent devices, such as smart bulbs, smart sockets, smart door locks, temperature control systems, etc., to achieve automatic control, remote monitoring and personalized services of the home environment.
[0003] In the prior art, the smart home interaction solution uses a method of caching the real-time status data of smart home devices in a cloud server; smart home devices no longer rely on real-time client queries to feedback their status, but actively report their current status to the cloud server for caching at a certain time interval. When the smart home client needs to query the device status, it can directly access the cache on the cloud server to obtain the latest status information of the smart home device without having to communicate directly with the device in real time.
[0004] However, when this approach is adopted, since the cloud server relies too much 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 a backlog of device report messages, untimely status queries, and even service crashes. Summary of the invention
[0005] In view of the above problems, a processing method, device, equipment, medium and product based on smart home devices are proposed to overcome the above problems or at least partially solve the above problems, including:
[0006] A processing method based on smart home devices is applied to a local host device, wherein the local host device is connected to a plurality of smart home devices in a local environment, and the method comprises:
[0007] When a change in the state of the smart home device is detected, obtaining real-time state information;
[0008] Determining whether the real-time status information is status information of a specified type;
[0009] If the real-time status information is status information of a non-specified type, updating the real-time status information to a local shadow device in the local host device that corresponds to the smart home device;
[0010] In response to a cloud service triggering event, the status information of non-specified type 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 triggering event according to the status information of the cloud shadow device.
[0011] Optionally, it also includes:
[0012] If the real-time status information is status information of a specified type, the real-time status information is updated to a local shadow device in the local host device corresponding to the smart home device, and the real-time status information is updated to a cloud shadow device in the cloud server corresponding to the smart home device.
[0013] Optionally, the cloud service triggering event includes any one or more of the following: checking or controlling the status of the smart home device through a client, checking or controlling the status of the smart home device through a voice command.
[0014] Optionally, it also includes:
[0015] In response to a local service triggering event, respond to the local service triggering event according to 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 acquiring the real-time status information when detecting that the status of the smart home device changes, 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 status information of the device itself, and the non-specified type of status information is environment status information.
[0020] Optionally, the device status information includes any one of the following: device power on / off status information, device working 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, wherein the local host device is connected to a plurality of smart home devices in a local environment, and the device comprises:
[0023] A real-time status information acquisition module, used to acquire real-time status information when a change in the status of the smart home device is detected;
[0024] A status type determination module, used to determine whether the real-time status information is status information of a specified type;
[0025] A non-specified type of status synchronization module, used for updating the real-time status information to a local shadow device corresponding to the smart home device in the local host device if the real-time status information is non-specified type of status information;
[0026] A cloud service trigger event response module is used to respond to a cloud service trigger event by updating the status information of a non-specified type 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 comprises a processor, a memory and a computer program stored in the memory and capable of running on the processor, wherein the computer program implements the method described above when executed by the processor.
[0028] A computer-readable storage medium stores a computer program, and when the computer program is executed by a processor, the method described above is implemented.
[0029] A computer program product comprises a computer program, wherein when the computer program is executed by a processor, the computer program implements the method as described above.
[0030] The embodiments of the present invention have the following advantages:
[0031] In an embodiment of the present invention, when a change in the state of a smart home device is detected, real-time state information is obtained; it is determined whether the real-time state information is state information of a specified type; if the real-time state information is state information of a non-specified type, the real-time state information is updated to a local shadow device corresponding to the smart home device in a local host device; in response to a cloud service triggering event, the state information of the non-specified type in the local shadow device is updated to a cloud shadow device corresponding to the smart home device in a cloud server, so as to respond to the cloud service triggering event according to the state information of the cloud shadow device, thereby realizing real-time detection and processing of state changes of smart home devices, and 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 of maintaining the shadow device on the cloud. BRIEF DESCRIPTION OF THE DRAWINGS
[0032] In order to more clearly illustrate the technical solution of the present invention, the accompanying drawings required for use in the description of the present invention will be briefly introduced below. Obviously, the accompanying drawings in the following description are only some embodiments of the present invention. For ordinary technicians in this field, other accompanying drawings can be obtained based on these accompanying drawings without paying creative labor.
[0033] Figure 1 is a flowchart of a processing method based on smart home devices provided by some embodiments of the present invention;
[0034] Figure 2 is a flowchart of a processing method based on smart home devices provided by some embodiments of the present invention;
[0035] Figure 3 is a flowchart of another processing method based on smart home devices provided by some embodiments of the present invention;
[0036] Figure 4 is a flowchart of steps of another processing method based on smart home devices provided by some embodiments of the present invention;
[0037] Figure 5 It is a structural block diagram of a processing device based on smart home devices provided by some embodiments of the present invention. DETAILED DESCRIPTION
[0038] In order to make the above-mentioned purposes, features and advantages of the present invention more obvious and easy to understand, the present invention is further described in detail below in conjunction with the accompanying drawings and specific embodiments. Obviously, the described embodiments are part of the embodiments of the present invention, rather than all the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of the present invention.
[0039] Reference Figure 1 , showing a step flow chart of a processing method based on smart home devices provided in some embodiments of the present invention, applied to a local host device, wherein the local host device is connected to multiple smart home devices in a local environment.
[0040] The local host device may be the control center of the smart home system, which is responsible for managing and controlling the smart home devices connected to the local network. For example, the local host device may be a smart central control screen, a smart speaker, etc.
[0041] As some examples, users can network with other smart home devices in the home through the 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 switch of the device, adjusting settings, viewing device status, etc.
[0042] Networking means that various smart home devices in the home (such as air purifiers, smart light bulbs, smart sockets, etc.) can form a local network through Bluetooth networking, local area network (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 send its current status information to the local host device regularly (at a preset frequency). 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; by accessing the local host device, the device with screen can obtain the real-time status information of each smart home device in the home.
[0044] Specifically, the following steps may be included:
[0045] Step 101: when a change in the state of the smart home device is detected, real-time state information is obtained.
[0046] Smart home devices can be connected to the Internet, remotely controlled through smartphone applications, voice commands or other means, and can automatically perform tasks. These devices may include but are not limited to smart lights, smart air conditioners, smart door locks, smart thermostats and smart speakers.
[0047] The state change of the smart home device may refer to the change of the working state, location, setting or other related attributes of the smart home device. For example, a smart light changes from an off state to an on state, or a smart thermostat adjusts the indoor temperature from 22°C to 24°C.
[0048] In actual applications, when the state of a smart home device changes, it can query its own state information as real-time state information and classify the real-time state information.
[0049] For example, when a user uses a device with a screen at home, such as a refrigerator with a screen, the device with a screen can obtain the status information of other devices from the local host device through the local area network for display. For example, a refrigerator with a screen can display the switch status of the air purifier (whether it is running), the working mode (such as automatic, manual, sleep, etc.), and the PM2.5 index at home obtained by the air purifier sensor and other real-time data.
[0050] In the embodiment of the present invention, before acquiring the real-time status information when a change in the status of the smart home device is detected, it also 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, the cloud server refers to a server located on the Internet, which is used to store and manage the status information and configuration of smart home devices. The cloud server allows users to access and control their smart home devices through the Internet from anywhere.
[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; wherein the shadow device can refer to a virtual entity corresponding to the smart home device, which is used to store the status information of the device, etc.; for example, through Json (JavaScript Object Notation, a lightweight data exchange format) or other storage forms.
[0053] Step 102: determine whether the real-time status information is status information of a specified type.
[0054] In the embodiment of the present invention, the specified type of status information is the status information of the device itself, and the non-specified type of status information is the environment status information.
[0055] In the embodiment of the present invention, the device status information includes any one of the following: device power on / off status information, device working mode information; the environment status information includes any one of the following: environment temperature information, environment 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 TV is playing a program (powered on) or is completely turned off (powered off).
[0057] The device working mode information refers to the current working mode or configuration of the device. Different devices may have different working modes. For example, when the smart home device is a smart air conditioner, the device working mode information may 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 the smart home device is a smart air conditioner, it has a built-in temperature sensor to monitor the indoor temperature so as 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] The environmental humidity information refers to the humidity of the environment in which the device is located. For example, when the smart home device is a smart humidifier, it has a built-in humidity sensor to monitor the indoor humidity so as to adjust the operation of the smart humidifier. The real-time humidity obtained by the humidity sensor in the device can be used as the environmental humidity information.
[0060] After the smart home device obtains its own real-time status information, it can determine whether the real-time status information is status information of a specified type or status information of a non-specified type 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 status information of a non-specified type, update the real-time status information to a local shadow device in the local host device that corresponds to the smart home device.
[0062] In actual applications, if the real-time status information obtained is of a non-specified type, this status information can be updated to the local shadow device corresponding to the smart home device in the local host device; to keep the local shadow device synchronized with the actual smart home device status. Even if this information is not needed immediately, it may be used at some subsequent time, or used to analyze the behavior pattern of the device, etc.
[0063] In an embodiment of the present invention, it also includes: if the real-time status information is status information of a specified type, updating the real-time status information to a local shadow device corresponding to the smart home device in the local host device, and updating the real-time status information to a cloud shadow device corresponding to the smart home device in the cloud server.
[0064] In actual applications, if the real-time status information obtained belongs to the specified type of status information, the system will perform the following two steps:
[0065] First, this status information is updated to the local shadow device corresponding to the smart home device in the local host device to keep the local shadow device synchronized with the actual smart home device status, so that it can be quickly accessed when needed or make decisions 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 in the cloud server to ensure that no matter where the user is, he 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 a cloud service triggering event, updates the status information of a non-specified type 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 triggering event according to the status information of the cloud shadow device.
[0068] In an embodiment of the present invention, the cloud service triggering event includes any one or more of the following: checking or controlling the status of the smart home device through a client, and checking or controlling the status of the smart home device through a voice command.
[0069] As some examples, since the user needs to use cloud server data when using the client or voice control, it can be used as a cloud service trigger event.
[0070] In actual applications, users can view or control the status of smart home devices through the client; for example, users can view the current status of smart home devices or send control instructions through smartphone applications, web interfaces, or other types of client software. Users can also view or control the status of smart home devices through voice commands in the client; for example, users can query the current status of smart home devices or send control instructions through the voice portal in the client.
[0071] In some examples, when a user uses a smart home client (to perform interface operations, voice control, etc.) and enters the smart home control page, the local host device can be notified by calling an interface or message queue to actively report non-specified status information of the local shadow device at a certain frequency (such as once every 30 seconds until the user exits the smart home control page), thereby performing targeted reporting, shortening the message content, and reducing the processing time of the cloud server to quickly update the cloud shadow device status.
[0072] As some examples, when a user uses the voice portal of the local host device to wake up the local host device, such as through the voice portal of the smart central control screen, the smart central control screen synchronizes the non-specified type of status information in the local shadow device corresponding to the smart home device in the home to the cloud shadow device through the local area network at a certain frequency (such as 30 seconds intervals, continuous reporting for 3 minutes).
[0073] For example, when a user says "Xiao X" to the smart speaker and the smart speaker replies "I'm here", the local host device can synchronize "non-specified status information" to the cloud shadow device in the cloud server through the local area network at a certain frequency (such as 30-second intervals and continuous reporting for 3 minutes). When the user wakes up the local host device again through the voice entry, if it is still within the 3-minute time limit, the non-specified status information can be reported to the cloud shadow device without repeating.
[0074] In the embodiment of the present invention, it also includes: in response to a local service triggering event, responding to the local service triggering event according to the status information of the local shadow device.
[0075] In an embodiment of the present invention, the local service triggering event includes: viewing or controlling the smart home device through a device with a screen in a local environment.
[0076] The screen device in the local environment refers to a smart home device with a touch screen in the home environment, and the screen device can control other smart home devices in the home environment without an Internet connection. For example, the screen device can be a smart refrigerator with a touch screen.
[0077] In actual applications, users can click on the touch screen of the smart refrigerator, and the smart refrigerator can directly obtain real-time status information of multiple smart home devices in the home environment through the local shadow device.
[0078] In an embodiment of the present invention, when a change in the state of a smart home device is detected, real-time state information is obtained; it is determined whether the real-time state information is state information of a specified type; if the real-time state information is state information of a non-specified type, the real-time state information is updated to a local shadow device corresponding to the smart home device in a local host device; in response to a cloud service triggering event, the state information of the non-specified type in the local shadow device is updated to a cloud shadow device corresponding to the smart home device in a cloud server, so as to respond to the cloud service triggering event according to the state information of the cloud shadow device, thereby realizing real-time detection and processing of state changes of smart home devices, and 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 of maintaining the shadow device on the cloud.
[0079] The following combination Figure 2 The present invention is exemplified as follows:
[0080] Step 201, obtaining real-time status information of smart home devices.
[0081] Step 202, determining whether the real-time status information is status information of a specified type, if yes, proceed to step 203, otherwise proceed to step 204.
[0082] Step 203: Synchronize the status information of non-specified types to the local shadow device.
[0083] Step 204: Synchronize the status information of the specified type between the local shadow device and the cloud shadow device.
[0084] If the trigger event is a local service trigger event (viewing or controlling smart home devices through a screen device in the local environment), the real-time status information of multiple smart home devices in the home environment is queried from the local shadow device; if the trigger event is a cloud service trigger event (viewing or controlling the status of smart home devices through a client (such as an APP), or viewing or controlling the status of smart home devices through voice commands), the local host device is notified to synchronize the non-specified type of status information in the local shadow device to the cloud shadow device.
[0085] In an embodiment of the present invention, by deploying a local shadow device in a local host device, frequently reported content can be transferred to the local shadow device for storage, and only status information of a specified type can be reported to the cloud server; when it is necessary to operate the smart home device, other "status information of non-specified types" can be reported from the local shadow device to the cloud shadow device for synchronization as needed, thereby alleviating the load pressure of the cloud server in maintaining the cloud shadow device, and ensuring the real-time status of the smart home device when the user uses the local host device.
[0086] Reference Figure 3 , shows a step flow chart of another processing method based on smart home devices provided in some embodiments of the present invention, which is applied to a local host device, and the local host device is connected to multiple smart home devices in a local environment.
[0087] The local host device may be the control center of the smart home system, which is responsible for managing and controlling the smart home devices connected to the local network. For example, the local host device may be a smart central control screen, a smart speaker, etc.
[0088] As some examples, users can network with other smart home devices in the home through the 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 switch of the device, adjusting settings, viewing device status, etc.
[0089] Networking means that various smart home devices in the home (such as air purifiers, smart light bulbs, smart sockets, etc.) can form a local network through Bluetooth networking, local area network (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 send its current status information to the local host device regularly (at a preset frequency). 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; by accessing the local host device, the device with screen can obtain the real-time status information of each smart home device in the home.
[0091] Specifically, the following steps may be included:
[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, the cloud server refers to a server located on the Internet, which is used to store and manage the status information and configuration of smart home devices. The cloud server allows users to access and control their smart home devices through the Internet from anywhere.
[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; wherein the shadow device can refer to a virtual entity corresponding to the smart home device, which is used to store the status information of the device, etc.; for example, through Json (JavaScript Object Notation, a lightweight data exchange format) or other storage forms.
[0095] Step 302: When a change in the state of the smart home device is detected, real-time state information is obtained.
[0096] Smart home devices can be connected to the Internet, remotely controlled through smartphone applications, voice commands or other means, and can automatically perform tasks. These devices may include but are not limited to smart lights, smart air conditioners, smart door locks, smart thermostats and smart speakers.
[0097] The state change of the smart home device may refer to the change of the working state, location, setting or other related attributes of the smart home device. For example, a smart light changes from an off state to an on state, or a smart thermostat adjusts the indoor temperature from 22°C to 24°C.
[0098] In actual applications, when the state of a smart home device changes, it can query its own state information as real-time state information and classify the real-time state information.
[0099] For example, when a user uses a device with a screen at home, such as a refrigerator with a screen, the device with a screen can obtain the status information of other devices from the local host device through the local area network for display. For example, a refrigerator with a screen can display the switch status of the air purifier (whether it is running), the working mode (such as automatic, manual, sleep, etc.), and the PM2.5 index at home obtained by the air purifier sensor and other real-time data.
[0100] Step 303: determine whether the real-time status information is status information of a specified type.
[0101] In the embodiment of the present invention, the specified type of status information is the status information of the device itself, and the non-specified type of status information is the environment status information.
[0102] In the embodiment of the present invention, the device status information includes any one of the following: device power on / off status information, device working mode information; the environment status information includes any one of the following: environment temperature information, environment 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 TV is playing a program (powered on) or is completely turned off (powered off).
[0104] The device working mode information refers to the current working mode or configuration of the device. Different devices may have different working modes. For example, when the smart home device is a smart air conditioner, the device working mode information may 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 the smart home device is a smart air conditioner, it has a built-in temperature sensor to monitor the indoor temperature so as 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] The environmental humidity information refers to the humidity of the environment in which the device is located. For example, when the smart home device is a smart humidifier, it has a built-in humidity sensor to monitor the indoor humidity so as to adjust the operation of the smart humidifier. The real-time humidity obtained by the humidity sensor in the device can be used as the environmental humidity information.
[0107] After the smart home device obtains its own real-time status information, it can determine whether the real-time status information is status information of a specified type or status information of a non-specified type 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 status information of a non-specified type, update the real-time status information to a local shadow device in the local host device that corresponds to the smart home device.
[0109] In actual applications, if the real-time status information obtained is of a non-specified type, this status information can be updated to the local shadow device corresponding to the smart home device in the local host device; to keep the local shadow device synchronized with the actual smart home device status. Even if this information is not needed immediately, it may be used at some subsequent time, or used to analyze the behavior pattern of the device, etc.
[0110] In an embodiment of the present invention, it also includes: if the real-time status information is status information of a specified type, updating the real-time status information to a local shadow device corresponding to the smart home device in the local host device, and updating the real-time status information to a cloud shadow device corresponding to the smart home device in the cloud server.
[0111] In actual applications, if the real-time status information obtained belongs to the specified type of status information, the system will perform the following two steps:
[0112] First, this status information is updated to the local shadow device corresponding to the smart home device in the local host device to keep the local shadow device synchronized with the actual smart home device status, so that it can be quickly accessed when needed or make decisions 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 in the cloud server to ensure that no matter where the user is, he 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 a cloud service triggering event, updating the status information of the non-specified type 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 triggering event according to the status information of the cloud shadow device.
[0115] In an embodiment of the present invention, the cloud service triggering event includes any one or more of the following: checking or controlling the status of the smart home device through a client, and checking or controlling the status of the smart home device through a voice command.
[0116] As some examples, since the user needs to use cloud server data when using the client or voice control, it can be used as a cloud service trigger event.
[0117] In actual applications, users can view or control the status of smart home devices through the client; for example, users can view the current status of smart home devices or send control instructions through smartphone applications, web interfaces, or other types of client software. Users can also view or control the status of smart home devices through voice commands in the client; for example, users can query the current status of smart home devices or send control instructions through the voice portal in the client.
[0118] In some examples, when a user uses a smart home client (to perform interface operations, voice control, etc.) and enters the smart home control page, the local host device can be notified by calling an interface or message queue to actively report non-specified status information of the local shadow device at a certain frequency (such as once every 30 seconds until the user exits the smart home control page), thereby performing targeted reporting, shortening the message content, and reducing the processing time of the cloud server to quickly update the cloud shadow device status.
[0119] As some examples, when a user uses the voice portal of the local host device to wake up the local host device, such as through the voice portal of the smart central control screen, the smart central control screen synchronizes the non-specified type of status information in the local shadow device corresponding to the smart home device in the home to the cloud shadow device through the local area network at a certain frequency (such as 30 seconds intervals, continuous reporting for 3 minutes).
[0120] For example, when a user says "Xiao X" to the smart speaker and the smart speaker replies "I'm here", the local host device can synchronize "non-specified status information" to the cloud shadow device in the cloud server through the local area network at a certain frequency (such as 30-second intervals and continuous reporting for 3 minutes). When the user wakes up the local host device again through the voice entry, if it is still within the 3-minute time limit, the non-specified status information can be reported to the cloud shadow device without repeating.
[0121] In the embodiment of the present invention, it also includes: in response to a local service triggering event, responding to the local service triggering event according to the status information of the local shadow device.
[0122] In an embodiment of the present invention, the local service triggering event includes: viewing or controlling the smart home device through a device with a screen in a local environment.
[0123] The screen device in the local environment refers to a smart home device with a touch screen in the home environment, and the screen device can control other smart home devices in the home environment without an Internet connection. For example, the screen device can be a smart refrigerator with a touch screen.
[0124] In actual applications, users can click on the touch screen of the smart refrigerator, and the smart refrigerator can directly obtain real-time status information of multiple smart home devices in the home environment through the local shadow device.
[0125] In an embodiment of the present 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 a smart home device is detected, real-time state information is obtained; it is determined whether the real-time state information is state information of a specified type; if the real-time state information is state information 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 triggering event, the state information of the non-specified type 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 triggering event according to the state information of the cloud shadow device, thereby realizing real-time detection and processing of state changes of smart home devices, and 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 of maintaining the shadow device on the cloud.
[0126] Reference Figure 4 , shows a step flow chart of another processing method based on smart home devices provided in some embodiments of the present invention, which is applied to a local host device, and the local host device is connected to multiple smart home devices in a local environment.
[0127] The local host device may be the control center of the smart home system, which is responsible for managing and controlling the smart home devices connected to the local network. For example, the local host device may be a smart central control screen, a smart speaker, etc.
[0128] As some examples, users can network with other smart home devices in the home through the 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 switch of the device, adjusting settings, viewing device status, etc.
[0129] Networking means that various smart home devices in the home (such as air purifiers, smart light bulbs, smart sockets, etc.) can form a local network through Bluetooth networking, local area network (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 send its current status information to the local host device regularly (at a preset frequency). 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; by accessing the local host device, the device with screen can obtain the real-time status information of each smart home device in the home.
[0131] Specifically, the following steps may be included:
[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, the cloud server refers to a server located on the Internet, which is used to store and manage the status information and configuration of smart home devices. The cloud server allows users to access and control their smart home devices through the Internet from anywhere.
[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; wherein the shadow device can refer to a virtual entity corresponding to the smart home device, which is used to store the status information of the device, etc.; for example, through Json (JavaScript Object Notation, a lightweight data exchange format) or other storage forms.
[0135] Step 402: When a change in the state of the smart home device is detected, real-time state information is obtained.
[0136] Smart home devices can be connected to the Internet, remotely controlled through smartphone applications, voice commands or other means, and can automatically perform tasks. These devices may include but are not limited to smart lights, smart air conditioners, smart door locks, smart thermostats and smart speakers.
[0137] The state change of the smart home device may refer to the change of the working state, location, setting or other related attributes of the smart home device. For example, a smart light changes from an off state to an on state, or a smart thermostat adjusts the indoor temperature from 22°C to 24°C.
[0138] In actual applications, when the state of a smart home device changes, it can query its own state information as real-time state information and classify the real-time state information.
[0139] For example, when a user uses a device with a screen at home, such as a refrigerator with a screen, the device with a screen can obtain the status information of other devices from the local host device through the local area network for display. For example, a refrigerator with a screen can display the switch status of the air purifier (whether it is running), the working mode (such as automatic, manual, sleep, etc.), and the PM2.5 index at home obtained by the air purifier sensor and other real-time data.
[0140] Step 403: determine whether the real-time status information is status information of a specified type.
[0141] In the embodiment of the present invention, the specified type of status information is the status information of the device itself, and the non-specified type of status information is the environment status information.
[0142] In the embodiment of the present invention, the device status information includes any one of the following: device power on / off status information, device working mode information; the environment status information includes any one of the following: environment temperature information, environment 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 TV is playing a program (powered on) or is completely turned off (powered off).
[0144] The device working mode information refers to the current working mode or configuration of the device. Different devices may have different working modes. For example, when the smart home device is a smart air conditioner, the device working mode information may 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 the smart home device is a smart air conditioner, it has a built-in temperature sensor to monitor the indoor temperature so as 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] The environmental humidity information refers to the humidity of the environment in which the device is located. For example, when the smart home device is a smart humidifier, it has a built-in humidity sensor to monitor the indoor humidity so as to adjust the operation of the smart humidifier. The real-time humidity obtained by the humidity sensor in the device can be used as the environmental humidity information.
[0147] After the smart home device obtains its own real-time status information, it can determine whether the real-time status information is status information of a specified type or status information of a non-specified type 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 status information of a specified type, 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 actual applications, if the real-time status information obtained belongs to the specified type of status information, the system will perform the following two steps:
[0150] First, this status information is updated to the local shadow device corresponding to the smart home device in the local host device to keep the local shadow device synchronized with the actual smart home device status, so that it can be quickly accessed when needed or make decisions 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 in the cloud server to ensure that no matter where the user is, he 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 status information of a non-specified type, the real-time status information is updated to a local shadow device in the local host device that corresponds to the smart home device.
[0153] In actual applications, if the real-time status information obtained is of a non-specified type, this status information can be updated to the local shadow device corresponding to the smart home device in the local host device; to keep the local shadow device synchronized with the actual smart home device status. Even if this information is not needed immediately, it may be used at some subsequent time, or used to analyze the behavior pattern of the device, etc.
[0154] Step 406, in response to a cloud service triggering event, updates the status information of the non-specified type 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 triggering event according to the status information of the cloud shadow device.
[0155] In an embodiment of the present invention, the cloud service triggering event includes any one or more of the following: checking or controlling the status of the smart home device through a client, and checking or controlling the status of the smart home device through a voice command.
[0156] As some examples, since the user needs to use cloud server data when using the client or voice control, it can be used as a cloud service trigger event.
[0157] In actual applications, users can view or control the status of smart home devices through the client; for example, users can view the current status of smart home devices or send control instructions through smartphone applications, web interfaces, or other types of client software. Users can also view or control the status of smart home devices through voice commands in the client; for example, users can query the current status of smart home devices or send control instructions through the voice portal in the client.
[0158] In some examples, when a user uses a smart home client (to perform interface operations, voice control, etc.) and enters the smart home control page, the local host device can be notified by calling an interface or message queue to actively report non-specified status information of the local shadow device at a certain frequency (such as once every 30 seconds until the user exits the smart home control page), thereby performing targeted reporting, shortening the message content, and reducing the processing time of the cloud server to quickly update the cloud shadow device status.
[0159] As some examples, when a user uses the voice portal of the local host device to wake up the local host device, such as through the voice portal of the smart central control screen, the smart central control screen synchronizes the non-specified type of status information in the local shadow device corresponding to the smart home device in the home to the cloud shadow device through the local area network at a certain frequency (such as 30 seconds intervals, continuous reporting for 3 minutes).
[0160] For example, when a user says "Xiao X" to the smart speaker and the smart speaker replies "I'm here", the local host device can synchronize "non-specified status information" to the cloud shadow device in the cloud server through the local area network at a certain frequency (such as 30-second intervals and continuous reporting for 3 minutes). When the user wakes up the local host device again through the voice entry, if it is still within the 3-minute time limit, the non-specified status information can be reported to the cloud shadow device without repeating.
[0161] In the embodiment of the present invention, it also includes: in response to a local service triggering event, responding to the local service triggering event according to the status information of the local shadow device.
[0162] In an embodiment of the present invention, the local service triggering event includes: viewing or controlling the smart home device through a device with a screen in a local environment.
[0163] The screen device in the local environment refers to a smart home device with a touch screen in the home environment, and the screen device can control other smart home devices in the home environment without an Internet connection. For example, the screen device can be a smart refrigerator with a touch screen.
[0164] In actual applications, users can click on the touch screen of the smart refrigerator, and the smart refrigerator can directly obtain real-time status information of multiple smart home devices in the home environment through the local shadow device.
[0165] In an embodiment of the present invention, a local shadow device corresponding to the smart home device is established in a local host device, and a cloud shadow device corresponding to the smart home device is established in 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 state information of a specified type; if the real-time state information is state information of a 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, and the real-time state information is updated to the cloud shadow device corresponding to the smart home device in the cloud server; if the real-time state information is state information 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 triggering 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 triggering event according to the state information of the cloud shadow device, thereby realizing real-time detection and processing of state changes of smart home devices, and 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 of maintaining the shadow device in the cloud.
[0166] 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.
[0167] Reference Figure 5 , shows a schematic diagram of the structure of a processing device based on smart home devices provided by 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 the 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 status information of a specified type;
[0170] A non-specified type of status synchronization module 503, configured to update the real-time status information to a local shadow device corresponding to the smart home device in the local host device if the real-time status information is non-specified type of status information;
[0171] The cloud service trigger event response module 504 is used to respond to a cloud service trigger event by updating the status information of a non-specified type 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 device further comprises:
[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 if the real-time status information is status information of a specified type, and to update the real-time status information to the cloud shadow device corresponding to the smart home device in the cloud server.
[0174] In some embodiments of the present invention, the cloud service triggering event includes any one or more of the following: checking or controlling the status of the smart home device through a client, checking or controlling the status of the smart home device through voice commands.
[0175] In some embodiments of the present invention, the device further comprises:
[0176] A trigger event response module is used to respond to a local service trigger event and respond to the local service trigger event according to 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 device further comprises:
[0179] The shadow device establishment module is used to establish a local shadow device corresponding to the smart home device on the local host device, and to establish 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 status information of the device itself, 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 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 further provide an electronic device, comprising a processor, a memory, and a computer program stored in the memory and capable of running on the processor, wherein the above method is implemented when the computer program is executed by the processor.
[0184] Some embodiments of the present invention further provide a computer-readable storage medium, on which a computer program is stored, and the computer program implements the above method when executed by a processor.
[0185] Some embodiments of the present invention further provide a computer program product, including a computer program, which implements the above method when executed by a processor.
[0186] 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.
[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, stored data, displayed data, etc.) involved in this application are all information and data authorized by the user or fully authorized by all parties, and the collection, use and processing of relevant data must comply with the relevant laws, regulations and standards of the relevant countries and regions, and provide corresponding operation entrances for users to choose to authorize or refuse.
[0188] The various embodiments in this specification are described in a progressive manner, and each embodiment focuses on the differences from other embodiments. The same or similar parts between the various embodiments can be referenced to each other.
[0189] Those skilled in the art will appreciate that the embodiments of the present invention may be provided as methods, devices, or computer program products. Therefore, the embodiments of the present invention may take the form of a complete hardware embodiment, a complete software embodiment, or an embodiment combining software and hardware. Moreover, the embodiments of the present invention may take the form of a computer program product 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 codes.
[0190] The embodiments of the present invention are described with reference to the flowcharts and / or block diagrams of the methods, terminal devices (systems), and computer program products according to the embodiments of the present invention. It should be understood that each process and / or block in the flowchart and / or block diagram, as well as the combination of the processes and / or blocks in the flowchart and / or block diagram, can be implemented by computer program instructions. These computer program instructions can be provided to a processor of a general-purpose computer, a special-purpose computer, an embedded processor, or other programmable data processing terminal device to generate a machine, so that the instructions executed by the processor of the computer or other programmable data processing terminal device generate instructions for implementing the processes in the flowchart and / or block diagram. Figure 1 A process or multiple processes and / or boxes Figure 1 A device that provides the functions specified in a block or multiple blocks.
[0191] These computer program instructions may also be stored in a computer-readable memory capable of directing a computer or other programmable data processing terminal device to operate in a specific manner, so that the instructions stored in the computer-readable memory produce a manufactured product including an instruction device, which implements the process Figure 1 A process or multiple processes and / or boxes Figure 1 A 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 device so that a series of operating steps are executed on the computer or other programmable terminal device to produce a computer-implemented process, thereby providing instructions for executing on the computer or other programmable terminal device to implement the process. Figure 1 A process or multiple processes and / or boxes Figure 1 A step that specifies a function in one or more boxes.
[0193] Although the preferred embodiments of the present invention have been described, those skilled in the art may make additional changes and modifications to these embodiments once they have learned the basic creative concept. Therefore, the appended claims are intended to be interpreted as including the preferred embodiments and all changes and modifications that fall within the scope of the embodiments of the present invention.
[0194] Finally, it should be noted that, in this article, relational terms such as first and second, etc. are only used to distinguish one entity or operation from another entity or operation, and do not necessarily require or imply any such actual relationship or order between these entities or operations. Moreover, the terms "include", "comprise" or any other variants thereof are intended to cover non-exclusive inclusion, so that a process, method, article or terminal 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 terminal device. In the absence of further restrictions, the elements defined by the sentence "including one..." do not exclude the existence of other identical elements in the process, method, article or terminal device including the above elements.
[0195] The above is a detailed introduction to a processing method, device, equipment, medium and product based on smart home devices. Specific examples are used in this article to illustrate the principles and implementation methods of the present invention. The description of the above embodiments is only used to help understand the method of the present invention and its core idea; at the same time, for those skilled in the art, according to the idea of the present invention, there will be changes in the specific implementation method and application scope. In summary, the content of this specification should not be understood as a limitation on the present invention.
Claims
1. A processing method based on smart home devices, characterized in that: Applied to a local host device, the local host device is connected to a plurality of smart home devices in a local environment, the method comprising: When a change in the state of the smart home device is detected, obtaining real-time state information; Determining whether the real-time status information is status information of a specified type; If the real-time status information is status information of a non-specified type, updating the real-time status information to a local shadow device in the local host device that corresponds to the smart home device; In response to a cloud service triggering event, the status information of non-specified type 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 triggering event according to 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 status information of a specified type, the real-time status information is updated to a local shadow device in the local host device corresponding to the smart home device, and the real-time status information is updated to a cloud shadow device in the cloud server corresponding to the smart home device.
3. The method according to claim 1 or 2, characterized in that: The cloud service triggering event includes any one or more of the following: checking or controlling the status of the smart home device through a client, checking or controlling the status of the smart home device through a voice command.
4. The method according to claim 1 or 2, characterized in that: Also includes: In response to a local service triggering event, respond to the local service triggering event according to the status information of the local shadow device.
5. The method according to claim 4, characterized in that The local service triggering event includes: viewing or controlling the smart home device through a screen device in the local environment.
6. The method according to claim 1 or 2, characterized in that: Before acquiring the real-time status information when detecting that the status of the smart home device changes, 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 status information of the device itself, and the non-specified type of status information is the environment status information.
8. The method according to claim 7, characterized in that The device status information includes any of the following: device power on / off status information, device working 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 equipment, characterized in that: Applied to a local host device, the local host device is connected to a plurality of smart home devices in a local environment, and the device comprises: A real-time status information acquisition module, used to acquire real-time status information when a change in the status of the smart home device is detected; A status type determination module, used to determine whether the real-time status information is status information of a specified type; A non-specified type of status synchronization module, used for updating the real-time status information to a local shadow device corresponding to the smart home device in the local host device if the real-time status information is non-specified type of status information; A cloud service trigger event response module is used to respond to a cloud service trigger event by updating the status information of a non-specified type 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: The method comprises a processor, a memory, and a computer program stored in the memory and capable of running on the processor, wherein the computer program implements the method according to any one of claims 1 to 8 when executed by the processor.
11. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores a computer program, and when the computer program is executed by a processor, the method according to any one of claims 1 to 8 is implemented.
12. A computer program product, characterized in that The invention comprises a computer program which, when executed by a processor, implements the method according to 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
Equipment fault removal method, server and smart home system
CN115955366A
Testing automated smart device functions within smart environments
US20210067366A1
Method and apparatus for controlling smart home device
WO2021036512A1