Dormancy management method, system and device of equipment, equipment and storage medium
By implementing a sleep management method in the gateway device of the smart home system, the problem of message loss or delay during device wake-up is solved, and the device's high-efficiency energy consumption management and normal workflow is realized.
Patent Information
- Application Number
- CN202411862508.2
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-12-17
- Publication Date
- 2025-04-25
AI Technical Summary
When existing smart home devices wake up from deep sleep mode, they are prone to messages loss or delay, which cannot meet the timely response needs of some key devices in smart homes.
By implementing a dormant management method in the gateway device, receiving command information sent by the cloud server, determining whether the home device needs to be awakened, and storing the command information if it is not needed, and sending it when it needs to wake up to ensure that the information is not lost.
It effectively avoids excessive wake-up of equipment, reduces energy consumption, avoids unnecessary energy consumption and frequent wake-up of equipment on the life of equipment, and ensures that home equipment operates according to its own dormant and working rhythm.
Smart Images

Figure CN119892533A_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the technical field of household appliances, and in particular to a dormancy management method, system, device, equipment and storage medium for an appliance. Background Art
[0002] With the advancement of science and technology and the improvement of people's living standards, smart home devices are used more and more widely in daily life. In order to reduce the power consumption of home devices, home devices can be controlled to enter deep sleep mode when not in use. However, when existing smart home devices are woken up from deep sleep mode, messages may be lost or delayed, which cannot meet the timely response requirements of some key devices in smart homes. Summary of the invention
[0003] In view of the above problems, embodiments of the present invention are proposed to provide a device hibernation method, system, apparatus, device and storage medium that overcome the above problems or at least partially solve the above problems.
[0004] In order to solve the above problems, an embodiment of the present invention discloses a device sleep management method, which is applied to a gateway device, wherein the gateway device is connected to a home device and a cloud server respectively, and the method includes:
[0005] When the home device is in a sleep mode, receiving instruction information sent by the cloud server;
[0006] Determining whether it is necessary to wake up the home device according to the instruction information;
[0007] If it is not necessary to wake up the home appliance, the instruction information is stored in a cache medium, and the home appliance is woken up when it is necessary to wake up the home appliance;
[0008] The stored instruction information is obtained from the cache medium, and the instruction information is sent to the home appliance so that the home appliance executes the operation corresponding to the instruction information.
[0009] Optionally, the method further comprises:
[0010] Determine whether confirmation information sent by the home appliance is received, wherein the confirmation information is used to indicate that the home appliance has received the instruction information;
[0011] If the confirmation information sent by the home appliance is not received, the instruction information is resent to the home appliance until the confirmation information sent by the home appliance is received.
[0012] Optionally, determining whether the home device needs to be woken up according to the instruction information includes:
[0013] Determine whether the instruction information includes an operation instruction for the home appliance, or determine whether the instruction information includes a query instruction that the home appliance needs to perform in a wake-up state;
[0014] If the instruction information does not include an operation instruction for the home appliance, and the instruction information does not include a query instruction that the home appliance needs to perform in the awakened state, it is determined that the home appliance does not need to be awakened.
[0015] Optionally, the instruction information includes a plurality of instruction information, and sending the instruction information to the home device includes:
[0016] Determining the priorities of the plurality of instruction information;
[0017] According to the priorities of the multiple instruction information, the sending order of the multiple instruction information is determined, and the multiple instruction information is sent to the home device according to the sending order.
[0018] Optionally, the method further comprises:
[0019] Receiving an operation result for the instruction information sent by the home device;
[0020] The operation result is sent to the cloud server, so that the cloud server sends the execution result to the user terminal.
[0021] Optionally, the method further comprises:
[0022] When the home device is in the awake state, receiving a sleep instruction sent by the cloud server, wherein the sleep instruction includes a sleep time interval;
[0023] The sleep instruction is sent to the home appliance, so that the home appliance enters a sleep mode and stops sleeping when the sleep time interval is reached.
[0024] Optionally, the gateway device establishes a communication connection with the home device via a message queue telemetry transmission sensor network protocol.
[0025] The present invention also discloses a dormancy management system for equipment, the system comprising a gateway device, a home device and a cloud server, the gateway device being connected to the home device and the cloud server respectively;
[0026] The cloud server is used to obtain the instruction information sent by the user terminal and send the instruction information to the gateway device;
[0027] The gateway device is used to receive the instruction information sent by the cloud server when the home appliance is in a sleep mode; determine whether the home appliance needs to be awakened according to the instruction information; if the home appliance does not need to be awakened, store the instruction information in a cache medium, and wake up the home appliance when it is necessary to wake up the home appliance, and obtain the stored instruction information from the cache medium and send it to the home appliance;
[0028] The home appliance is used to receive the instruction information and execute the operation corresponding to the instruction information.
[0029] The present invention also discloses a device sleep management device, which is applied to a gateway device, wherein the gateway device is connected to a home device and a cloud server respectively, and the device comprises:
[0030] A receiving module, used for receiving instruction information sent by the cloud server when the home device is in sleep mode;
[0031] A determination module, used to determine whether the home device needs to be awakened according to the instruction information;
[0032] A storage module, configured to store the instruction information in a cache medium if it is not necessary to wake up the home appliance, and wake up the home appliance if it is necessary to wake up the home appliance;
[0033] The acquisition module is used to acquire the stored instruction information from the cache medium and send the instruction information to the home appliance so that the home appliance executes the operation corresponding to the instruction information.
[0034] Optionally, the device further comprises:
[0035] A judgment module, used to judge whether a confirmation message sent by the household device is received, wherein the confirmation message is used to indicate that the household device has received the instruction message;
[0036] The sending module is used to resend the instruction information to the home appliance if the confirmation information sent by the home appliance is not received, until the confirmation information sent by the home appliance is received.
[0037] Optionally, the determining module includes:
[0038] A judgment submodule, used to judge whether the instruction information includes an operation instruction for the home appliance, or to judge whether the instruction information includes a query instruction that the home appliance needs to perform in a wake-up state;
[0039] The first determination submodule is used to determine that it is not necessary to wake up the home appliance if the instruction information does not include an operation instruction for the home appliance and the instruction information does not include a query instruction that the home appliance needs to perform in the awake state.
[0040] Optionally, the instruction information includes multiple instruction information, and the acquisition module includes:
[0041] A second determination submodule, used to determine the priorities of the plurality of instruction information;
[0042] The third determining submodule is used to determine the sending order of the multiple instruction information according to the priorities of the multiple instruction information, and send the multiple instruction information to the home appliance according to the sending order.
[0043] Optionally, the device further comprises:
[0044] A result receiving module, used for receiving the operation result of the instruction information sent by the household device;
[0045] The result sending module is used to send the operation result to the cloud server, so that the cloud server sends the execution result to the user terminal.
[0046] Optionally, the device further comprises:
[0047] An instruction receiving module, configured to receive a sleep instruction sent by the cloud server when the home device is in an awake state, wherein the sleep instruction includes a sleep time interval;
[0048] The sleep module is used to send the sleep instruction to the home appliance so that the home appliance starts the sleep mode and stops sleeping when the sleep time interval arrives.
[0049] Optionally, the gateway device establishes a communication connection with the home device via a message queue telemetry transmission sensor network protocol.
[0050] The present invention also discloses an electronic device, comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein the processor is used to execute the steps of the device sleep management method as described above.
[0051] The present invention also discloses a computer-readable storage medium, wherein a computer program is stored on the computer-readable storage medium, and when the computer program is executed by a processor, the steps of the sleep management method of the device as described above are implemented.
[0052] The present invention discloses a device sleep management method. The present invention avoids excessive wake-up of the device by judging whether instruction information needs to wake up the home device, which can effectively reduce the energy consumption of the device and avoid the influence of unnecessary energy consumption and frequent wake-up of the device on the life of the device. When it is determined that there is no need to wake up the home device temporarily to process the instruction information, in order not to lose the message information, the gateway device will store the instruction information in a cache medium, and when the home device needs to be woken up, the stored instruction information will be sent to the home device, thereby ensuring that the information sent by the cloud server will not be lost because the device is in a sleep state. The present invention can ensure that the home device runs according to its own sleep and work rhythm, and avoids the home device being frequently interrupted in sleep state and affecting the normal work process. BRIEF DESCRIPTION OF THE DRAWINGS
[0053] Figure 1 A flowchart showing a method for managing sleep of a device provided by an embodiment of the present invention is shown;
[0054] Figure 2 A structural block diagram of a device management system provided by an embodiment of the present invention is shown;
[0055] Figure 3 A structural block diagram of a sleep management device for a device provided by an embodiment of the present invention is shown. DETAILED DESCRIPTION
[0056] In order to make the above-mentioned objects, features and advantages of the present invention more obvious and easy to understand, the present invention is further described in detail below with reference to the accompanying drawings and specific embodiments.
[0057] One of the core concepts of the embodiments of the present invention is that by judging whether the instruction information needs to wake up the home device, excessive wake-up of the device is avoided, which can effectively reduce the energy consumption of the device and avoid the impact of unnecessary energy consumption and frequent wake-up of the device on the life of the device; when it is determined that there is no need to wake up the home device temporarily to process the instruction information, in order not to lose the message information, the gateway device will store the instruction information in a cache medium, and when the home device needs to be woken up, the stored instruction information will be sent to the home device, ensuring that the information sent by the cloud server will not be lost because the device is in a sleep state. The present invention can ensure that the home device runs according to its own sleep and work rhythm, avoiding the home device being frequently interrupted from the sleep state and affecting the normal work process.
[0058] like Figure 1 , shows a flowchart of the steps of a dormancy management method for a device provided by an embodiment of the present invention, which is applied to a gateway device, and the gateway device is connected to a home device and a cloud server respectively. The method may include the following steps:
[0059] Step 101, when the home appliance is in sleep mode, receiving instruction information sent by the cloud server.
[0060] In the embodiment of the present invention, the instruction information is information sent from the user terminal to the cloud server, and the instruction information may include at least one of a control instruction, a query instruction, and a data request.
[0061] When the home device is in sleep mode, the gateway device will receive the command information sent by the cloud server. As the intermediate hub connecting the home device and the cloud server, the gateway device is always in a listening state. Even if the home device is in a sleep state to save energy, it can still receive relevant command information from the cloud server. For example, the user remotely sends operating instructions such as controlling the temperature, switch status, etc. of the home device through the mobile phone application. The cloud server will send these command information to the gateway device connected to it, and the gateway device can receive the corresponding content at this time and prepare for further processing.
[0062] Step 102: determine whether to wake up the home device according to the instruction information.
[0063] In an embodiment of the present invention, after the gateway device receives the instruction information from the cloud server, it can determine whether it is necessary to wake up the home appliance based on the instruction information, and can determine whether to wake up the home appliance based on the urgency of the instruction information. For example, if the instruction information is a non-urgent operation such as obtaining the current power information of the home appliance and does not require the device to be in an active state to be executed, there is no need to wake up the home appliance temporarily; but if the home appliance is required to immediately execute operations such as turning on the lights, starting certain electrical appliances, etc., which require the device to be in a normal working state to complete, then it means that the home appliance needs to be woken up to execute the corresponding instruction.
[0064] Step 103: If it is not necessary to wake up the home appliance, the instruction information is stored in a cache medium, and the home appliance is woken up when it is necessary to wake up the home appliance.
[0065] In an embodiment of the present invention, if it is determined that there is no need to wake up the home appliance, the gateway device will store the received instruction information in a cache medium. The cache medium can usually be a storage area built into the gateway device itself, such as a specific cache area of a random access memory (RAM), etc. Its function is to temporarily store these instructions, and when the conditions for waking up the home appliance are met later, the instructions will be taken out for use. In addition, when there is a need to wake up the home appliance in the future, such as receiving a new instruction indicating that the operation corresponding to the previously cached instruction is to be executed or the preset wake-up conditions are met, such as the arrival of a specific time, the environment where the home appliance is located meets certain trigger conditions, etc., the gateway device will wake up the home appliance and prepare for the subsequent execution of the instructions.
[0066] It should be noted that when there is a need to wake up a home appliance, the gateway device will directly wake up the home appliance through a control signal. The wake-up method may vary depending on the device, such as by sending a specific electrical signal or a network wake-up signal. After waking up, the gateway device will search the cache medium for unprocessed command data related to the home appliance, and send the command information to the home appliance in the order of receipt or priority. After receiving the message, the home appliance will perform corresponding operations according to its own functions and command information, such as updating software, adjusting parameters, executing tasks, etc.
[0067] Step 104, obtaining the stored instruction information from the cache medium, and sending the instruction information to the home appliance, so that the home appliance executes the operation corresponding to the instruction information.
[0068] In an embodiment of the present invention, when a home appliance is awakened, the gateway device will obtain the stored instruction information from the cache medium that previously stored the instruction information, and then send it to the home appliance. After receiving the instruction information, the home appliance will perform corresponding operations according to the content specified in the instruction. For example, after receiving an instruction to adjust the temperature, the smart air conditioner will adjust its own cooling or heating state according to the temperature setting value in the instruction, thereby realizing the remote control and other functions expected by the user, so that the entire home appliance management and control system can operate in an orderly manner as required.
[0069] The present invention discloses a device sleep management method, which avoids excessive wake-up of the device by judging whether instruction information needs to wake up the home device, can effectively reduce the energy consumption of the device, and avoid the influence of unnecessary energy consumption and frequent wake-up of the device on the life of the device; when it is determined that there is no need to wake up the home device temporarily to process the instruction information, in order not to lose the message information, the gateway device will store the instruction information in a cache medium, and when the home device needs to be woken up, the stored instruction information will be sent to the home device, thereby ensuring that the information sent by the cloud server will not be lost because the device is in a sleep state. The present invention can ensure that the home device runs according to its own sleep and work rhythm, and avoids the home device being frequently interrupted in sleep state and affecting the normal work process.
[0070] In one embodiment of the present invention, the method also includes: determining whether a confirmation message sent by the home appliance is received, the confirmation message is used to indicate that the home appliance has received the instruction message; if the confirmation message sent by the home appliance is not received, resending the instruction message to the home appliance until the confirmation message sent by the home appliance is received.
[0071] In an embodiment of the present invention, after the gateway device sends the command information to the home appliance, it will wait for feedback from the home appliance, that is, confirmation information. The confirmation information represents that the home appliance has successfully received the command information forwarded by the gateway device. The gateway device will monitor whether there is any confirmation information incoming from the home appliance through the corresponding communication protocol and data receiving mechanism. For example, based on some commonly used communication protocols such as Zigbee, Bluetooth, and Wi-Fi in the Internet of Things, it will determine whether the corresponding message is a confirmation information according to the established message format and transmission specifications, so as to know whether the home appliance knows to perform related operations.
[0072] If after a certain period of waiting or according to the set detection mechanism, the gateway device finds that it has not received the confirmation information sent by the home appliance, it means that the home appliance may not have received the command, the received information is incorrect, or the feedback mechanism fails. In order to ensure that the home appliance can receive the command and perform the corresponding operation, the gateway device will resend the previous command information to the home appliance. For example, if no confirmation information is received after the first command to change the color of the smart bulb is sent, the gateway device will send the same color change command again, and may operate according to the preset retransmission strategy, such as retransmitting once at a certain interval, such as sending after 5 seconds, and repeating this process multiple times to increase the probability of the home appliance successfully receiving the command.
[0073] The gateway device will continue to resend the command information, and repeat this process until it finally receives the confirmation information sent by the home device. Only after receiving the confirmation information can it be determined that the home device has received the task to be executed. Subsequently, it can wait for the home device to complete the corresponding operation according to the instruction, thereby ensuring the accuracy and completeness of the entire home device control process and avoiding the situation where the operation cannot be performed normally due to information transmission problems.
[0074] In one embodiment of the present invention, determining whether it is necessary to wake up a home appliance based on instruction information includes: determining whether the instruction information includes an operation instruction for the home appliance, or determining whether the instruction information includes a query instruction that the home appliance needs to perform in an awake state; if the instruction information does not include an operation instruction for the home appliance, and the instruction information does not include a query instruction that the home appliance needs to perform in an awake state, then determining that the home appliance does not need to be woken up.
[0075] In the embodiment of the present invention, after the gateway device receives the instruction information from the cloud server, it first needs to analyze whether there is an operation instruction that clearly points to the home appliance to perform a specific action. For example, the instruction information requires the smart socket to turn on the power, the smart curtains to open or close, the smart speaker to play specific music, etc. These are operation instructions for the specific functions of the home appliance. If such instructions exist, it means that the home appliance needs to be in a normal working state, that is, in an awake state to perform the corresponding action. In this case, it is usually necessary to wake up the home appliance.
[0076] In addition to direct operation instructions, some query instructions also require home appliances to be in an awake state to accurately feedback the corresponding information. For example, to query the current real-time picture of the smart camera, the camera needs to be in normal working state, the lens is turned on and image acquisition is being performed, so it must be woken up; or to query the current purification efficiency of the smart air purifier, the remaining life of the filter and other detailed parameters, the purifier also needs to be activated, and all sensors and other components need to operate normally to obtain accurate data and feedback. Therefore, the gateway device must determine whether the received command information contains such command content that requires the home appliance to be woken up for query.
[0077] After the above two aspects of judgment, when it is found that the instruction information neither clearly allows the home appliance to perform specific operations, nor does it contain instructions that require the home appliance to be in a wake-up state to query, it means that the home appliance does not need to enter the working state immediately and can remain dormant; in one example, the instruction information only involves the statistics of some historical control records on the cloud server side, a simple check of the gateway device's own operating status, etc., which are not related to the direct function execution of the home appliance and the query that needs to be woken up to complete. At this time, it is determined that the home appliance does not need to be woken up, so that the instruction information can be temporarily stored in the cache medium according to the process, waiting for the appropriate time later or when there is a situation where the home appliance needs to be woken up, and then further processing can be performed.
[0078] When it is determined whether the instruction information includes operation instructions for the home appliance, and, or the instruction information includes query instructions that the home appliance needs to perform in the awakened state, it is determined that the home appliance needs to be awakened. For example, when it is necessary to query the current real-time picture of the smart camera, that is, the instruction information includes query instructions that the home appliance needs to perform in the awakened state, the gateway device can directly wake up the smart camera.
[0079] In one embodiment of the present invention, the method for determining whether to wake up the home appliance according to the instruction information may also be: if the instruction information is a modification instruction for the sleep mode of the device, for example, the instruction information is a modification instruction for the sleep mode of the home appliance, such as adjusting the sleep time from 1 hour to 2 hours.
[0080] It should be noted that the gateway device will automatically wake up when it detects special circumstances. For example, when a home device is in sleep mode and detects that the battery is too low and needs to be woken up for charging, it can automatically wake up.
[0081] In one embodiment of the present invention, the instruction information includes multiple instruction information, and sending the instruction information to the home appliance includes: determining the priorities of the multiple instruction information; determining the sending order of the multiple instruction information according to the priorities of the multiple instruction information, and sending the multiple instruction information to the home appliance according to the sending order.
[0082] In the embodiment of the present invention, when the instruction information received by the gateway device contains multiple different contents, it is necessary to determine the priority of these instruction information so as to reasonably arrange the order in which they are sent to the home devices.
[0083] For example, if one of the instructions is to ask the smart smoke alarm to stop the alarm sound immediately, this is an emergency-related instruction and its priority is often very high because it is necessary to eliminate possible interference to the user in a timely manner and avoid misjudgment of subsequent situations; while relatively less urgent instructions such as changing the timer switch time of smart lamps will have a relatively low priority.
[0084] If the instruction involves the normal operation of the core functions of home appliances, it will generally have a higher priority. For example, for a smart refrigerator, an instruction to repair a refrigeration system fault is more important than an instruction to adjust the brightness of the light inside the refrigerator. Because the refrigeration function is related to the storage safety of food, the former has a higher priority.
[0085] Some smart home systems allow users to set the priority order of different command types. For example, if the user explicitly sets the priority of commands involving home security devices to be higher than that of ordinary entertainment devices in the mobile application, such as smart door locks, smart security cameras, etc., which have higher priority than commands for playing music on smart speakers, then the gateway device will determine the priority of each of the multiple command information received according to the priority rules set by the user.
[0086] After clarifying the priority of each command information, the gateway device will determine the order in which they are sent based on the priority. The command information with higher priority will be sent first, and the command information with lower priority will be sent in sequence. For example, there are three command information, namely, raising the temperature of the smart air conditioner, querying the remaining power of the smart sweeping robot, and changing the scheduled opening and closing time of the smart curtains. Then the sending order determined by the priority is to send the command to raise the temperature of the smart air conditioner first, then send the command to query the remaining power of the smart sweeping robot, and finally send the command to change the scheduled opening and closing time of the smart curtains.
[0087] Once the sending order is determined, the gateway device will send multiple command information to the home devices one by one in this order. After receiving these commands, the home devices will also process and execute the corresponding operations in the order of receipt, thereby ensuring that the entire smart home system can respond to different control needs in an orderly manner according to the importance and reasonable logic, thereby improving the user experience of using smart home devices and the efficiency of system operation.
[0088] In one embodiment of the present invention, the method further includes: receiving an operation result for the instruction information sent by the home appliance; and sending the operation result to the cloud server, so that the cloud server sends the execution result to the user terminal.
[0089] In the embodiment of the present invention, the operation result is used to indicate that the home appliance has completed the operation corresponding to the instruction information, so as to inform the gateway that the instruction information has been successfully processed. After the home appliance receives the instruction information forwarded by the gateway device and performs the corresponding operation according to the instruction requirements, the corresponding operation result information will be generated and then fed back to the gateway device. For example, if the instruction information requires the smart light bulb to be adjusted to a specific brightness, then after the smart light bulb completes the brightness adjustment, it will send an operation result containing the specific execution status such as "the brightness has been successfully adjusted to the specified value (such as 50% brightness)" to the gateway device. For another example, the instruction information is to let the smart sweeping robot clean a specific area. After the sweeping robot completes the cleaning task, it will send detailed operation result content such as "the cleaning work of the specified area has been completed, the cleaning area is XX square meters, and it takes XX minutes" to the gateway device. The gateway device will receive these operation result information fed back from each home appliance through the corresponding communication link and data receiving mechanism, and prepare for the next step of forwarding to the cloud server.
[0090] After receiving the operation results sent by the home device, the gateway device will promptly forward these operation result information to the cloud server connected to it. The cloud server is the core hub for data storage, processing and interaction with external user terminals in the entire smart home system. After receiving these operation results, it will further send them to the corresponding user terminal in accordance with the established communication protocol and data interaction process. For example, the user issues a control instruction through the smart home control application on the mobile phone, and the background service corresponding to the application communicates with the cloud server. Then, after receiving the operation results from the gateway device, the cloud server will push the execution result information such as the specific situation of the operation completed by the smart device and whether it is successful to the user's mobile application, so that the user can intuitively understand the actual execution of the instructions issued by the user on the home device side, thereby realizing the complete closed loop of the entire smart home control from instruction issuance to operation execution to result feedback, so that users can grasp the status and control effect of home devices at any time.
[0091] In one embodiment of the present invention, the method also includes: when the home appliance is in an awake state, receiving a sleep instruction sent by a cloud server, the sleep instruction including a sleep time interval; sending the sleep instruction to the home appliance to enable the home appliance to enter a sleep mode, and stop sleeping when the sleep time interval is reached.
[0092] In the embodiment of the present invention, during the operation of the smart home system, the cloud server plays an important role in overall management. It can send a sleep instruction to the gateway device based on the overall operation status of the system, relevant policies set by the user, or some preset energy-saving rules. When the home appliance is in a normal wake-up state, that is, it is running and performing various operations, the gateway device will receive the sleep instruction from the cloud server. The sleep instruction contains key information such as the sleep time interval. For example, the sleep time interval is set to 30 minutes, which means that after the home appliance enters the sleep mode, it will continue to sleep for 30 minutes. The setting of the time interval can be flexibly adjusted according to different usage scenarios and needs. For example, when no one uses certain devices at night, the sleep time interval can be appropriately extended to better save energy; when the device is occasionally not used for a short period of time during the day, a shorter time interval can be set to facilitate the device to be put into use again quickly.
[0093] After receiving the sleep command with the sleep time interval sent by the cloud server, the gateway device will accurately forward the sleep command to the corresponding home device. After receiving the sleep command, the home device will turn on the sleep mode according to the command content and enter a low-power operation state. In this state, most of the non-critical functions of the device will be suspended to save energy and reduce equipment loss. In addition, the corresponding timing mechanism will be started inside the home device to count according to the sleep time interval specified in the sleep command. When the timing reaches the set time interval value, such as the 30-minute timing mentioned above, the home device will automatically stop sleeping and return to the normal wake-up state. It can receive and execute various operation instructions again to ensure that it can resume normal work in time after meeting energy-saving and other requirements, continue to provide users with corresponding services, and ensure the overall efficiency and flexibility of the smart home system.
[0094] In one embodiment of the present invention, a gateway device and a home device establish a communication connection via a message queue telemetry transmission sensor network protocol.
[0095] In the embodiment of the present invention, the gateway device and the home device establish a communication connection through the message queue telemetry transmission sensor network MQTT-SN protocol, which can enable the device to have efficient and stable communication capabilities while maintaining low power consumption.
[0096] The present invention discloses a device sleep management method, which avoids excessive wake-up of the device by judging whether instruction information needs to wake up the home device, can effectively reduce the energy consumption of the device, and avoid the influence of unnecessary energy consumption and frequent wake-up of the device on the life of the device; when it is determined that there is no need to wake up the home device temporarily to process the instruction information, in order not to lose the message information, the gateway device will store the instruction information in a cache medium, and when the home device needs to be woken up, the stored instruction information will be sent to the home device, thereby ensuring that the information sent by the cloud server will not be lost because the device is in a sleep state. The present invention can ensure that the home device runs according to its own sleep and work rhythm, and avoids the home device being frequently interrupted in sleep state and affecting the normal work process.
[0097] 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.
[0098] like Figure 2 , shows a structural block diagram of a dormancy management system 20 of a device provided in an embodiment of the present invention, the system may include a gateway device 201, a home device 202 and a cloud server 203, the gateway device is connected to the home device and the cloud server respectively;
[0099] The cloud server 203 is used to obtain the instruction information sent by the user terminal and send the instruction information to the gateway device;
[0100] The gateway device 202 is used to receive the instruction information sent by the cloud server when the home device is in the sleep mode; determine whether the home device needs to be awakened according to the instruction information; if the home device does not need to be awakened, store the instruction information in the cache medium, and wake up the home device when it needs to be awakened, and obtain the stored instruction information from the cache medium and send it to the home device;
[0101] The home device 201 is used to receive command information and execute operations corresponding to the command information.
[0102] The present invention discloses a device sleep management system, which avoids excessive wake-up of the device by judging whether instruction information needs to wake up the home device, can effectively reduce the energy consumption of the device, and avoid the influence of unnecessary energy consumption and frequent wake-up of the device on the life of the device; when it is determined that there is no need to wake up the home device temporarily to process the instruction information, in order not to lose the message information, the gateway device will store the instruction information in a cache medium, and when the home device needs to be woken up, the stored instruction information will be sent to the home device, thereby ensuring that the information sent by the cloud server will not be lost because the device is in a sleep state. The present invention can ensure that the home device runs according to its own sleep and work rhythm, and avoids the home device being frequently interrupted in sleep state and affecting the normal work process.
[0103] like Figure 3 , shows a structural block diagram of a sleep management device for a device provided by an embodiment of the present invention, which is applied to a gateway device, the gateway device is connected to a home device and a cloud server respectively, and the device includes:
[0104] The receiving module 301 is used to receive the instruction information sent by the cloud server when the home device is in the sleep mode;
[0105] A determination module 302 is used to determine whether the home device needs to be awakened according to the instruction information;
[0106] The storage module 303 is used to store the instruction information in a cache medium if it is not necessary to wake up the home appliance, and wake up the home appliance if it is necessary to wake up the home appliance;
[0107] The acquisition module 304 is used to acquire the stored instruction information from the cache medium and send the instruction information to the home appliance so that the home appliance executes the operation corresponding to the instruction information.
[0108] The present invention discloses a sleep management device for equipment. By judging whether instruction information needs to wake up the home equipment, excessive wake-up of the equipment is avoided, and the energy consumption of the equipment can be effectively reduced, and unnecessary energy consumption and the influence of frequent wake-up of the equipment on the life of the equipment can be avoided. When it is determined that there is no need to wake up the home equipment temporarily to process the instruction information, in order not to lose the message information, the gateway device will store the instruction information in a cache medium, and when the home equipment needs to be woken up, the stored instruction information will be sent to the home equipment, thereby ensuring that the information sent by the cloud server will not be lost because the equipment is in a sleep state. The present invention can ensure that the home equipment runs according to its own sleep and working rhythm, and avoids the home equipment being frequently interrupted in sleep state and affecting the normal working process.
[0109] In one embodiment of the present invention, the device further includes:
[0110] A judgment module, used to judge whether a confirmation message sent by a home appliance is received, where the confirmation message is used to indicate that the home appliance has received the instruction message;
[0111] The sending module is used to resend the instruction information to the home appliance if the confirmation information sent by the home appliance is not received, until the confirmation information sent by the home appliance is received.
[0112] In one embodiment of the present invention, the determining module includes:
[0113] A judgment submodule, used to judge whether the instruction information includes an operation instruction for the home appliance, or to judge whether the instruction information includes a query instruction that the home appliance needs to perform in the awakened state;
[0114] The first determination submodule is used to determine that the home appliance does not need to be woken up if the instruction information does not include an operation instruction for the home appliance and the instruction information does not include a query instruction that the home appliance needs to perform in the awakened state.
[0115] In an embodiment of the present invention, the instruction information includes multiple instruction information, and the acquisition module includes:
[0116] A second determination submodule is used to determine the priority of multiple instruction information;
[0117] The third determination submodule is used to determine the sending order of the multiple command information according to the priorities of the multiple command information, and send the multiple command information to the home appliance according to the sending order.
[0118] In one embodiment of the present invention, the device further includes:
[0119] A result receiving module, used for receiving the operation result of the instruction information sent by the home appliance;
[0120] The result sending module is used to send the operation result to the cloud server, so that the cloud server sends the execution result to the user terminal.
[0121] In one embodiment of the present invention, the device further includes:
[0122] The instruction receiving module is used to receive a sleep instruction sent by the cloud server when the home device is in the awake state, and the sleep instruction includes a sleep time interval;
[0123] The sleep module is used to send a sleep instruction to the home appliance so that the home appliance enters the sleep mode and stops sleeping when the sleep time interval is reached.
[0124] In one embodiment of the present invention, a gateway device and a home device establish a communication connection via a message queue telemetry transmission sensor network protocol.
[0125] The present invention discloses a sleep management device for equipment. The present invention avoids excessive wake-up of equipment by judging whether instruction information needs to wake up the home equipment, thereby effectively reducing the energy consumption of the equipment and avoiding the influence of unnecessary energy consumption and frequent wake-up of equipment on the life of the equipment. When it is determined that there is no need to wake up the home equipment temporarily to process the instruction information, in order not to lose the message information, the gateway device will store the instruction information in a cache medium, and when the home equipment needs to be woken up, the stored instruction information will be sent to the home equipment, thereby ensuring that the information sent by the cloud server will not be lost because the equipment is in a sleep state. The present invention can ensure that the home equipment runs according to its own sleep and working rhythm, thereby avoiding that the sleep state of the home equipment is frequently interrupted and the normal working process is affected.
[0126] 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.
[0127] An embodiment of the present invention further provides an electronic device, including:
[0128] It includes a processor, a memory, and a computer program stored in the memory and capable of running on the processor. When the computer program is executed by the processor, the various processes of the sleep management method embodiment of the above-mentioned device are implemented, and the same technical effect can be achieved. To avoid repetition, it will not be repeated here.
[0129] An embodiment of the present invention also provides a computer-readable storage medium, on which a computer program is stored. When the computer program is executed by a processor, the various processes of the sleep management method embodiment of the above-mentioned device are implemented, and the same technical effect can be achieved. To avoid repetition, it will not be repeated here.
[0130] 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.
[0131] It will be appreciated by those skilled in the art 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.
[0132] 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.
[0133] 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.
[0134] 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 The steps for the functions specified in one or more boxes.
[0135] 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.
[0136] 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", "comprises" 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 elements.
[0137] The above is a detailed introduction to the sleep management method, system, device, equipment and computer-readable storage medium of a device provided by the present invention. 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 general technical personnel in this field, 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 dormancy management method for a device, characterized in that: Applied to a gateway device, the gateway device is connected to a home device and a cloud server respectively, and the method includes: When the home device is in a sleep mode, receiving instruction information sent by the cloud server; Determining whether it is necessary to wake up the home device according to the instruction information; If it is not necessary to wake up the home appliance, the instruction information is stored in a cache medium, and the home appliance is woken up when it is necessary to wake up the home appliance; The stored instruction information is obtained from the cache medium, and the instruction information is sent to the home appliance so that the home appliance executes the operation corresponding to the instruction information.
2. The method according to claim 1, characterized in that The method further comprises: Determine whether confirmation information sent by the home appliance is received, wherein the confirmation information is used to indicate that the home appliance has received the instruction information; If the confirmation information sent by the home appliance is not received, the instruction information is resent to the home appliance until the confirmation information sent by the home appliance is received.
3. The method according to claim 1, characterized in that The determining whether the home device needs to be awakened according to the instruction information includes: Determine whether the instruction information includes an operation instruction for the home appliance, or determine whether the instruction information includes a query instruction that the home appliance needs to perform in a wake-up state; If the instruction information does not include an operation instruction for the home appliance, and the instruction information does not include a query instruction that the home appliance needs to perform in the awakened state, it is determined that the home appliance does not need to be awakened.
4. The method according to claim 1, characterized in that: The instruction information includes a plurality of instruction information, and the sending of the instruction information to the home device includes: Determining the priorities of the plurality of instruction information; According to the priorities of the multiple instruction information, the sending order of the multiple instruction information is determined, and the multiple instruction information is sent to the home device according to the sending order.
5. The method according to claim 1, characterized in that: The method further comprises: Receiving an operation result for the instruction information sent by the home device; The operation result is sent to the cloud server, so that the cloud server sends the execution result to the user terminal.
6. The method according to claim 1, characterized in that The method further comprises: When the home device is in the awake state, receiving a sleep instruction sent by the cloud server, wherein the sleep instruction includes a sleep time interval; The sleep instruction is sent to the home appliance, so that the home appliance enters a sleep mode and stops sleeping when the sleep time interval is reached.
7. The method according to claim 1, characterized in that The gateway device establishes a communication connection with the home device via a message queue telemetry transmission sensor network protocol.
8. A dormancy management system for a device, characterized in that: The system includes a gateway device, a home device and a cloud server, wherein the gateway device is connected to the home device and the cloud server respectively; The cloud server is used to obtain the instruction information sent by the user terminal and send the instruction information to the gateway device; The gateway device is used to receive the instruction information sent by the cloud server when the home device is in the sleep mode; and determine whether to wake up the home device according to the instruction information; If it is not necessary to wake up the home appliance, the instruction information is stored in a cache medium, and the home appliance is woken up when it is necessary to wake up the home appliance; Acquire the stored instruction information from the cache medium, and send the instruction information to the home appliance, so that the home appliance performs the operation corresponding to the instruction information; The home appliance is used to receive the instruction information and execute the operation corresponding to the instruction information.
9. A dormancy management device for a device, characterized in that: Applied to a gateway device, the gateway device is connected to a home device and a cloud server respectively, and the device comprises: A receiving module, used for receiving instruction information sent by the cloud server when the home device is in sleep mode; A determination module, used to determine whether the home device needs to be awakened according to the instruction information; A storage module, configured to store the instruction information in a cache medium if it is not necessary to wake up the home appliance, and wake up the home appliance if it is necessary to wake up the home appliance; The acquisition module is used to acquire the stored instruction information from the cache medium and send the instruction information to the home appliance so that the home appliance executes the operation corresponding to the instruction information.
10. An electronic device, characterized in that: The device comprises a memory, a processor and a computer program stored in the memory and executable on the processor, wherein the processor is used to execute the steps of the sleep management method of the device according to any one of claims 1 to 7.
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 steps of the sleep management method for a device according to any one of claims 1 to 7 are implemented.