CN106453648B - Equipment state determination method and device for intelligent household equipment - Google Patents

Equipment state determination method and device for intelligent household equipment Download PDF

Info

Publication number
CN106453648B
CN106453648B CN201611076821.9A CN201611076821A CN106453648B CN 106453648 B CN106453648 B CN 106453648B CN 201611076821 A CN201611076821 A CN 201611076821A CN 106453648 B CN106453648 B CN 106453648B
Authority
CN
China
Prior art keywords
intelligent home
equipment
intelligent
state
cloud server
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN201611076821.9A
Other languages
Chinese (zh)
Other versions
CN106453648A (en
Inventor
王艳青
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Hisense Co Ltd
Original Assignee
Hisense Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Hisense Co Ltd filed Critical Hisense Co Ltd
Priority to CN201611076821.9A priority Critical patent/CN106453648B/en
Publication of CN106453648A publication Critical patent/CN106453648A/en
Application granted granted Critical
Publication of CN106453648B publication Critical patent/CN106453648B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/50Network services
    • H04L67/54Presence management, e.g. monitoring or registration for receipt of user log-on information, or the connection status of the users
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L12/00Data switching networks
    • H04L12/28Data switching networks characterised by path configuration, e.g. LAN [Local Area Networks] or WAN [Wide Area Networks]
    • H04L12/2803Home automation networks
    • H04L12/2823Reporting information sensed by appliance or service execution status of appliance services in a home automation network

Landscapes

  • Engineering & Computer Science (AREA)
  • Automation & Control Theory (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Selective Calling Equipment (AREA)
  • Computer And Data Communications (AREA)
  • Small-Scale Networks (AREA)

Abstract

The invention discloses a method and a device for determining equipment states of intelligent household equipment, and belongs to the technical field of intelligent household. The method comprises the following steps: judging whether the connection with the cloud server is disconnected or not at preset time intervals; detecting whether intelligent home equipment with changed equipment states exists in the intelligent home equipment connected with the intelligent home gateway; when the connection with the cloud server is not disconnected and the intelligent home devices connected with the intelligent home gateway have the intelligent home devices with changed device states, the latest device states of the changed intelligent home devices are sent to the cloud server. According to the invention, the intelligent home devices are managed in a unified manner through the intelligent home gateway, the cloud server only needs to communicate with the intelligent home gateway, and the device state is updated according to the device state sent by the intelligent home gateway, so that the operation pressure of the cloud server is reduced, and the transmission of low-efficiency data between the intelligent home devices and the cloud server is also reduced.

Description

Equipment state determination method and device for intelligent household equipment
Technical Field
The invention relates to the field of intelligent home furnishing, in particular to a method and a device for determining the equipment state of intelligent home furnishing equipment.
Background
With the development of smart home technology, smart home devices are increasingly used in daily life. Generally, in the process of using the smart home devices, when the device status of the smart home devices is in an online status, that is, a network connection is established between the smart home devices and the cloud server, the control terminal can control the smart home devices through the cloud server, when the device status of the smart home devices is in an offline status, that is, a network connection is not established between the smart home devices and the cloud server, and the control terminal cannot control the smart home devices through the cloud server. Therefore, how to determine the device state of the smart home device is very important.
In the related art, the cloud server may determine the device state of the smart home device through heartbeat information, that is, the smart home device and the cloud server may communicate with each other according to a preset heartbeat interval, and if the cloud server is capable of communicating with the smart home device, the device state of the smart home device may be determined to be an online state. If the cloud server fails to communicate with the intelligent home device within a plurality of continuous preset heartbeat intervals, the device state of the intelligent home device is determined to be an offline state.
However, in the implementation process, if the preset heartbeat interval is too long, the cloud server cannot determine the device state of the smart home device in time, and if the preset heartbeat interval is too short, great pressure is applied to the cloud server, which affects transmission of effective data between the smart home device and the cloud server.
Disclosure of Invention
In order to solve the problems in the prior art, embodiments of the present invention provide a method and an apparatus for determining a device state of an intelligent home device. The technical scheme is as follows:
in a first aspect, a method for determining a device state of an intelligent home device is provided, and is applied to an intelligent home gateway, where the method includes:
judging whether the connection with the cloud server is disconnected or not at preset time intervals;
detecting whether intelligent home equipment with changed equipment states exists in the intelligent home equipment connected with the intelligent home gateway, wherein the equipment states comprise an online state and an offline state;
when the connection with the cloud server is not disconnected and the intelligent home devices connected with the intelligent home gateway have the intelligent home devices with changed device states, the latest device states of the changed intelligent home devices are sent to the cloud server, and the cloud server updates the changed device states of the intelligent home devices.
Optionally, after detecting whether there is an intelligent home device with a device state that changes in the intelligent home device connected to the intelligent home gateway, the method further includes:
when the connection with the cloud server is disconnected and the intelligent home devices with changed device states exist in the intelligent home devices connected with the intelligent home gateway, updating the locally stored latest device states of the intelligent home devices connected with the intelligent home gateway based on the latest device states of the changed intelligent home devices;
and when the connection with the cloud server is reestablished, sending the latest equipment state of each intelligent home equipment connected with the intelligent home gateway to the cloud server.
Optionally, the sending the latest device state of each smart home device connected to the smart home gateway to the cloud server includes:
judging whether the number of the online intelligent home devices is larger than that of the offline intelligent home devices, wherein the online intelligent home devices are intelligent home devices with the latest device states in the intelligent home devices connected with the intelligent home gateway in an online state, and the offline intelligent home devices are intelligent home devices with the latest device states in the intelligent home devices connected with the intelligent home gateway in an offline state;
when the number of the online intelligent home devices is larger than that of the offline intelligent home devices, sending the latest device state of the offline intelligent home devices to the cloud server;
and when the number of the online intelligent household devices is not larger than that of the offline intelligent household devices, sending the latest device state of the online intelligent household devices to the cloud server.
In a second aspect, a method for determining a device state of a smart home device is provided, and is applied to a cloud server, where the method includes:
judging whether the connection with the intelligent home gateway is disconnected or not at preset time intervals;
when the connection with the intelligent home gateway is not disconnected, receiving the latest equipment state of the changed intelligent home equipment sent by the intelligent home gateway, wherein the latest equipment state of the changed intelligent home equipment is sent when the intelligent home gateway detects that the intelligent home equipment with the changed equipment state exists in the intelligent home equipment connected with the intelligent home gateway, and the equipment state comprises an online state and an offline state;
and updating the stored equipment state of the intelligent household equipment connected with the intelligent household gateway based on the changed latest equipment state of the intelligent household equipment.
Optionally, after judging whether the connection with the smart home gateway has been disconnected at preset time intervals, the method further includes:
and when the connection between the intelligent home gateway and the intelligent home gateway is disconnected, setting the equipment states of the intelligent home equipment connected with the intelligent home gateway to be offline states.
Optionally, after setting all the device states of the smart home devices connected to the smart home gateway to an offline state, the method further includes:
and when the connection with the intelligent home gateway is reestablished, receiving the latest equipment state of each intelligent home equipment connected with the intelligent home gateway, which is sent by the intelligent home gateway.
In a third aspect, an apparatus for determining a device status of a smart home device is provided, where the apparatus includes:
the judging module is used for judging whether the connection with the cloud server is disconnected or not at preset time intervals;
the detection module is used for detecting whether intelligent household equipment with changed equipment states exists in the intelligent household equipment connected with the intelligent household gateway, and the equipment states comprise an online state and an offline state;
the first sending module is used for sending the latest equipment state of the changed intelligent household equipment to the cloud server when the connection with the cloud server is not disconnected and the intelligent household equipment with the changed equipment state exists in the intelligent household equipment connected with the intelligent household gateway, so that the cloud server updates the equipment state of the changed intelligent household equipment.
Optionally, the apparatus further comprises:
the updating module is used for updating the latest equipment state of the intelligent household equipment connected with the intelligent household gateway, which is locally stored, based on the latest equipment state of the intelligent household equipment which changes when the connection with the cloud server is disconnected and the intelligent household equipment connected with the intelligent household gateway has the intelligent household equipment with changed equipment state;
and the second sending module is used for sending the latest equipment state of each intelligent home equipment connected with the intelligent home gateway to the cloud server when the connection between the second sending module and the cloud server is reestablished.
Optionally, the second sending module includes:
the intelligent home gateway is used for connecting the intelligent home devices with the intelligent home gateway, and the intelligent home devices are connected with the intelligent home gateway;
the first sending submodule is used for sending the latest equipment state of the off-line intelligent household equipment to the cloud server when the number of the on-line intelligent household equipment is larger than that of the off-line intelligent household equipment;
and the second sending submodule is used for sending the latest equipment state of the online intelligent household equipment to the cloud server when the number of the online intelligent household equipment is not more than that of the offline intelligent household equipment.
In a fourth aspect, an apparatus for determining a device status of smart home devices is provided, where the apparatus includes:
the judging module is used for judging whether the connection with the intelligent home gateway is disconnected or not at preset time intervals;
the first receiving module is used for receiving the latest equipment state of the changed intelligent home equipment sent by the intelligent home gateway when the connection with the intelligent home gateway is not disconnected, wherein the latest equipment state of the changed intelligent home equipment is sent when the intelligent home gateway detects that the intelligent home equipment with the changed equipment state exists in the intelligent home equipment connected with the intelligent home gateway, and the equipment state comprises an online state and an offline state;
and the updating module is used for updating the stored equipment state of the intelligent household equipment connected with the intelligent household gateway based on the changed latest equipment state of the intelligent household equipment.
Optionally, the apparatus further comprises:
and the setting module is used for setting the equipment states of the intelligent household equipment connected with the intelligent household gateway to be offline states when the connection between the intelligent household gateway and the intelligent household gateway is disconnected.
Optionally, the apparatus further comprises:
and the second receiving module is used for receiving the latest equipment state of each intelligent home equipment connected with the intelligent home gateway, which is sent by the intelligent home gateway, when the connection between the intelligent home gateway and the second receiving module is reestablished.
The technical scheme provided by the embodiment of the invention has the following beneficial effects: according to the invention, the equipment state of the intelligent home equipment is uniformly managed by using the intelligent home gateway, the cloud server can update the equipment state of the intelligent home equipment only by communicating with the intelligent home gateway, the process of communicating with each intelligent home equipment by the cloud server is omitted, the operating pressure of the cloud server is reduced, and the transmission of low-efficiency data between the intelligent home equipment and the cloud server is also reduced.
Drawings
In order to more clearly illustrate the technical solutions in the embodiments of the present invention, the drawings needed to be used in the description of the embodiments will be briefly introduced below, and it is obvious that the drawings in the following description are only some embodiments of the present invention, and it is obvious for those skilled in the art to obtain other drawings based on these drawings without creative efforts.
Fig. 1 is a flowchart of a method for determining a device state of smart home devices according to an embodiment of the present invention;
fig. 2A is a block diagram of an apparatus state determining device of an intelligent home device according to an embodiment of the present invention;
fig. 2B is a block diagram of an apparatus state determining device of an intelligent home device according to an embodiment of the present invention;
fig. 2C is a block diagram of a second sending module according to an embodiment of the present invention;
fig. 3A is a block diagram of an apparatus state determining device of an intelligent home device according to an embodiment of the present invention;
fig. 3B is a block diagram of an apparatus state determining device of an intelligent home device according to an embodiment of the present invention;
fig. 3C is a block diagram of an apparatus state determining device of an intelligent home device according to an embodiment of the present invention.
Detailed Description
In order to make the objects, technical solutions and advantages of the present invention more apparent, embodiments of the present invention will be described in detail with reference to the accompanying drawings.
Before explaining the embodiments of the present invention in detail, an application scenario of the embodiments of the present invention will be described. Generally, in the process of using the smart home devices, when the smart home devices are connected with the cloud server, the control terminal can control the smart home devices through the cloud server. At present, in an intelligent home system, whether connection between an intelligent home device and a cloud server is judged through heartbeat information between the intelligent home device and the cloud server. However, the number of the smart home devices is large, and the cloud server needs to determine a connection state with each smart home device through heartbeat information; when the preset heartbeat interval is too short, the pressure of the cloud server is very high, and if the heartbeat interval is too long, the equipment state of part of the intelligent household equipment may not be reported timely, so that the timeliness of the equipment state information is affected. Therefore, the invention provides a method for determining the equipment state of the intelligent equipment, the method manages the intelligent home equipment in a unified manner through the intelligent home gateway, the cloud server only needs to communicate with the intelligent home gateway to determine the connection state with the intelligent home gateway, and the equipment state of the intelligent home equipment is updated according to the equipment state sent by the intelligent home gateway, so that the communication between the cloud server and each intelligent home equipment is avoided, the operating pressure of the cloud server is reduced, and the transmission of low-efficiency data between the intelligent home equipment and the cloud server is also reduced.
The embodiment of the invention provides a method for determining the equipment state of intelligent household equipment, and referring to fig. 1, the method comprises the following steps:
step 101: and at preset time intervals, the intelligent home gateway judges whether the connection with the cloud server is disconnected.
Generally, in an intelligent home system, an intelligent home device is connected with a cloud server through an intelligent home gateway, the cloud server pushes the device state of the intelligent home device to a control terminal, and the control terminal controls the intelligent home device through the cloud server and the intelligent home gateway according to the displayed device state of the intelligent home device. Therefore, if the connection between the smart home gateway and the cloud server is disconnected, the device state of the smart home device cannot be sent to the cloud server, and the control terminal cannot control the smart home device through the cloud server.
The intelligent home gateway can send heartbeat information to the cloud server at preset time intervals; if the cloud server does not receive heartbeat information sent by the intelligent home gateway, the cloud server can determine that the heartbeat information is failed to be received, and receives the heartbeat information sent by the intelligent home gateway again after a preset time interval, and when the cloud server determines that the frequency of continuous receiving failure of the heartbeat information reaches a preset frequency, the cloud server can determine that the connection between the cloud server and the intelligent home gateway is disconnected; when the cloud server receives the heartbeat message sent by the intelligent home gateway, the cloud server can determine that the connection between the cloud server and the intelligent home gateway is not disconnected, and at the moment, the cloud server can send a reply message to the intelligent home gateway according to the heartbeat message so that the intelligent home gateway can determine the connection state between the cloud server and the intelligent home gateway; after sending heartbeat information, the intelligent home gateway can detect whether a reply message sent by the cloud server is received in real time; when the smart home gateway detects a reply message sent by the cloud server, it can be determined that the connection with the cloud server is not disconnected. If the smart home gateway does not detect the reply message sent by the cloud server after sending the heartbeat message, the smart home gateway can determine that the heartbeat message fails to be sent, and send the heartbeat message to the cloud server again after a preset time interval, and when the smart home gateway determines that the number of times of the continuous heartbeat message sending failures reaches a preset number, the smart home gateway can determine that the connection with the cloud server is disconnected.
It should be noted that the preset time interval can be neither too long nor too short. If the preset time interval is too long, the equipment state of the intelligent household equipment with the changed equipment state in the preset time interval cannot be updated timely, the timeliness of the equipment state information is affected, and if the preset time interval is too short, the cloud server can be subjected to larger operation pressure. Therefore, the preset time interval should be set according to the operation capability of the cloud server and the situation of the smart home device in actual use.
In addition, because the smart home gateway does not receive the reply message due to accidental errors between the smart home gateway and the cloud server, when the smart home gateway does not receive the reply message, whether the connection between the smart home gateway and the cloud server is disconnected or not can be judged by determining whether the continuous failure frequency of the heartbeat information sent to the cloud server reaches the preset frequency, so that the judgment accuracy is improved. The preset times can be 3 times, 2 times or 4 times, but are not limited to be too many.
Step 102: the intelligent home gateway detects whether intelligent home equipment with changed equipment states exists in the intelligent home equipment connected with the intelligent home gateway, and the equipment states comprise an online state and an offline state.
The cloud server updates the stored equipment state of the intelligent household equipment, so that the control terminal can control the intelligent household equipment according to the updated equipment state. Therefore, if the current device state of the smart home device is not changed from the previous device state, the cloud server does not need to update the device state. Therefore, when sending the device state of the smart home device to the cloud server, the smart home gateway may only send the device state of the smart home device whose device state changes, and thus, before sending the device state to the cloud server, the smart home gateway may detect whether there is a smart home device whose device state changes in the smart home device connected thereto.
The intelligent home gateway can detect whether the intelligent home equipment with the changed equipment state exists in the intelligent home equipment connected with the intelligent home gateway in real time or not, and can also detect according to the specified periodicity.
It should be noted that the device state of the smart home device is an online state, which indicates that the smart home device and the smart home gateway may communicate with each other in a wired or wireless manner; the device state of the intelligent home device is an off-line state, which indicates that the intelligent home device and the intelligent home gateway cannot communicate with each other.
The operation of detecting whether the intelligent home equipment with the changed equipment state exists in the intelligent home equipment connected with the intelligent home gateway by the intelligent home gateway can be as follows: the intelligent home equipment can periodically send heartbeat information to the intelligent home gateway, and the intelligent home gateway detects whether the heartbeat information is received; when the intelligent home gateway detects the heartbeat information, the intelligent home gateway determines to be connected with the intelligent home equipment, namely the intelligent home gateway determines that the equipment state of the intelligent home equipment is an online state; at this time, correspondingly, the smart home gateway may send a reply message to the smart home device, and after receiving the reply message, the smart home device may determine that the connection between the smart home device and the smart home gateway is not disconnected; if the heartbeat information sent by the intelligent home equipment is not detected by the intelligent home gateway for the preset times, the connection with the intelligent home equipment can be determined to be disconnected, that is, the intelligent home gateway determines that the equipment state of the intelligent home equipment is an offline state. If the device state of the smart home device determined by the smart home gateway at the last time before the current time is an online state, and the device state of the smart home device determined at the current time is an offline state, it may be determined that the device state of the smart home device has changed; if the device state of the smart home device determined by the smart home gateway for the last time before the current time is the offline state, and the heartbeat information of the smart home device is detected by the smart home gateway at the current time, it may also be determined that the device state of the smart home device has changed.
For example, the intelligent air conditioning device may periodically send heartbeat information to the intelligent home gateway, and the intelligent home gateway may determine that the intelligent air conditioning device is online through the heartbeat information, and mark the device state of the intelligent air conditioning device as an online state. At the moment, the intelligent air conditioning equipment stops sending heartbeat information to the intelligent home gateway due to the power failure of the user; the intelligent home gateway does not detect heartbeat information sent by the intelligent air conditioning equipment for continuous preset times, so that the intelligent air conditioning equipment is determined to be offline. Since the equipment state of the intelligent air-conditioning equipment is the online state last time before the current time, and the equipment online state of the intelligent air-conditioning equipment is the offline state, it can be shown that the equipment state of the intelligent air-conditioning equipment is changed.
It should be noted that, before step 101, the smart home gateway may detect whether there is a smart home device with a device state changed in the smart home devices connected thereto, or may detect after step 101, and of course, may also detect while executing step 101, which is not specifically limited in this embodiment of the present invention.
Step 103: when the connection between the intelligent home gateway and the cloud server is not disconnected and the intelligent home devices connected with the intelligent home gateway have the intelligent home devices with changed device states, the intelligent home gateway sends the latest device states of the changed intelligent home devices to the cloud server.
When it is determined that the connection between the intelligent home gateway and the cloud server is not disconnected, in order to ensure that the cloud server can update the device state in time, the intelligent home gateway can immediately send the changed device state of the intelligent home device to the cloud server when detecting that the device state of the intelligent home device changes. Of course, in order to reduce the number of times that the smart home gateway transmits data, the smart home gateway may also transmit the device state of the smart device, which is detected to change in the preset period, to the cloud server at one time according to the preset period when the period is over. And after receiving the changed equipment state of the intelligent household equipment, the cloud server updates the stored equipment state of the intelligent household equipment based on the equipment state.
Optionally, when it is determined that the connection between the smart home gateway and the cloud server is not disconnected and there is no smart home device with a device state changing in the smart home devices connected to the smart home gateway, it is also indicated that the current device state of the smart home device does not need to be updated, at this time, the smart home gateway does not perform other processing, and step 101 and step 102 are executed in a circulating manner to detect the connection state with the cloud server and the device state change of the smart home device.
Step 104: the cloud server receives the latest equipment state of the changed intelligent household equipment sent by the intelligent household gateway, and updates the stored equipment state of the intelligent household equipment connected with the intelligent household gateway based on the latest equipment state of the changed intelligent household equipment.
After determining that the connection with the intelligent home gateway is not disconnected in step 101, the cloud server may receive the changed device status of the intelligent home device sent by the intelligent home gateway in real time, or may periodically receive the changed device status of the intelligent home device sent by the intelligent home gateway according to a specified period.
Wherein, when the device state of the intelligent home furnishing equipment that changes that the high in the clouds server periodic receipt intelligent home gateway sent, in order to receive the device state of the intelligent home furnishing equipment that changes more promptly, this cycle of predetermineeing can be as short as possible, but in order to practice thrift the system resource of high in the clouds server, should predetermine the cycle and should not too short yet.
When the cloud server receives the latest device state of the changed intelligent household device, the current stored device state of the intelligent household device can be replaced by the latest device state, so that the device state of the intelligent household device is updated.
Step 105: when the connection between the intelligent home gateway and the cloud server is disconnected and the intelligent home devices with changed device states exist in the intelligent home devices connected with the intelligent home gateway, the intelligent home gateway updates the locally stored latest device states of the intelligent home devices based on the changed latest device states of the intelligent home devices.
When the smart home gateway detects that there is a smart home device with a changed device state in the smart home devices connected to the smart home gateway in step 102, and finds that the connection with the cloud server is disconnected in step 101, at this time, the smart home gateway has no way to send the changed device state of the smart home device to the cloud server. In this case, the smart home gateway may replace the locally stored latest device state of the smart home device with the latest device state of the changed smart home device, so as to complete updating of the latest device state of the smart home device.
Further, if the connection between the cloud server and the smart home gateway is disconnected, even if the device state of the smart home device changes, the cloud server cannot receive the changed latest device state sent by the smart home gateway, and the control terminal cannot control the smart home device through the cloud server, that is, all the smart home devices connected to the smart home gateway are all equivalent to an offline state at the moment, so that the cloud server can set all the device states of the smart home devices connected to the smart home gateway to the offline state.
Step 106: and when the connection between the intelligent home gateway and the cloud server is reestablished, sending the latest equipment state of each intelligent home equipment connected with the intelligent home gateway to the cloud server.
Based on the description in step 105, the smart home gateway updates the locally stored device state of the smart home device based on the changed latest device state of the smart home device; at this time, the connection between the smart home gateway and the cloud server is disconnected. In this case, the smart home gateway may detect a connection state with the cloud server through step 101, and when the smart home gateway detects a reply message sent by the cloud server, it may be determined that the connection with the cloud server has been reestablished. Correspondingly, when receiving the heartbeat information sent by the intelligent home gateway, the cloud server can also determine that the connection between the cloud server and the intelligent home gateway is reestablished. At this time, during the disconnection, the device state of the smart home devices may change, so the cloud server may not directly set all the smart home devices connected to the smart home gateway to be online, but should wait for the smart home gateway to send the latest device state of each smart home device connected to the smart home gateway. After the connection between the intelligent home gateway and the cloud server is determined to be reestablished, the latest device state of each intelligent home device connected with the intelligent home gateway can be completely sent to the cloud server, and then the device state of each intelligent home device is updated by the cloud server.
Certainly, in order to reduce the workload of the smart home gateway and facilitate the setting of the cloud server, after the smart home gateway and the cloud server are re-connected, the smart home gateway may determine whether the number of the online smart home devices is greater than the number of the offline smart home devices, and when the number of the online smart home devices is greater than the number of the offline smart home devices, send the latest device state of the offline smart home devices to the cloud server; and when the number of the online intelligent household devices is not larger than that of the offline intelligent household devices, sending the latest device state of the online intelligent household devices to the cloud server. The online intelligent home equipment is intelligent home equipment with the latest equipment state in intelligent home equipment connected with the intelligent home gateway being in an online state, and the offline intelligent home equipment is intelligent home equipment with the latest equipment state being in an offline state in intelligent home equipment connected with the intelligent home gateway.
By the method, the intelligent home gateway does not need to count the intelligent home devices with changed device states during disconnection one by one, but can directly count the current online intelligent home devices and the offline intelligent home devices, then uniformly send the device states of the online intelligent home devices or the device states of the offline intelligent home devices, and the cloud server resets all the intelligent home devices connected with the intelligent home gateway according to the received device states. Therefore, the calculation amount of the intelligent home gateway is reduced, and meanwhile, the operation of setting the equipment state by the cloud server is simpler.
Step 107: the cloud server receives the latest equipment state of the intelligent home equipment connected with the intelligent home gateway and sent by the intelligent home gateway, and updates the latest equipment state of the intelligent home equipment connected with the intelligent home gateway, which is locally stored, on the basis of the latest equipment state of the intelligent home equipment.
Based on the description in step 106, after the cloud server receives the heartbeat information sent by the smart home gateway and determines that the connection with the smart home gateway is reestablished, the cloud server may receive the latest device state of the smart home device sent by the smart home gateway. The latest state of the smart home device sent by the smart home gateway may be the latest device state of the smart home device that changes during disconnection, or may be a device state of an online smart home device connected to the smart home gateway or a device state of an offline smart home device.
When the cloud server receives the latest device state of the changed smart home device, the device state of the changed smart home device may be updated according to the method in step 104.
When the cloud server receives the device state of the online smart home device, the stored device state of the online smart home device can be set to be an online state, and other smart home devices except the online smart home device in the smart home devices connected to the smart home gateway are set to be an offline state.
When the cloud server receives the device state of the offline smart home device, the stored device state of the offline smart home device can be set to be the offline state, and other smart home devices except the offline smart home device in the smart home device connected to the smart home gateway are all set to be the online state.
In the embodiment of the invention, the intelligent home devices are uniformly managed through the intelligent home gateway, the cloud server only needs to communicate with the intelligent home gateway to determine the connection state with the intelligent home gateway, and the device state of the intelligent home devices is updated according to the device state sent by the intelligent home gateway, so that the process of communication between the cloud server and each intelligent home device is omitted, the operating pressure of the cloud server is reduced, and the transmission of low-efficiency data between the intelligent home devices and the cloud server is also reduced.
Referring to fig. 2A, an embodiment of the present invention provides an apparatus 200 for determining a device state of an intelligent home device, where the apparatus includes:
the judging module 201 is configured to judge whether the connection with the cloud server is disconnected every preset time interval;
the detection module 202 is configured to detect whether there is an intelligent home device with a changed device state in the intelligent home devices connected to the intelligent home gateway, where the device state includes an online state and an offline state;
the first sending module 203 is configured to send the changed device state of the smart home device to the cloud server when the connection with the cloud server is not disconnected and the smart home device connected to the smart home gateway has a device state-changed smart home device, so that the cloud server updates the device state of the changed smart home device.
Optionally, referring to fig. 2B, the apparatus further comprises:
the updating module 204 is configured to update the locally stored latest device state of the smart home devices connected to the smart home gateway based on the latest device state of the changed smart home devices when the connection with the cloud server is disconnected and the smart home devices connected to the smart home gateway have device state changes;
the second sending module 205 is configured to send the latest device state of each smart home device connected to the smart home gateway to the cloud server when the connection with the cloud server is reestablished.
Optionally, referring to fig. 2C, the second sending module 205 includes:
a judging submodule 2051, configured to judge whether the number of the online smart home devices is greater than the number of the offline smart home devices, where the online smart home devices are smart home devices in which the latest device state is an online state among the smart home devices connected to the smart home gateway, and the offline smart home devices are smart home devices in which the latest device state is an offline state among the smart home devices connected to the smart home gateway;
the first sending submodule 2052 is configured to, when the number of the online smart home devices is greater than the number of the offline smart home devices, send the latest device state of the offline smart home devices to the cloud server;
the second sending submodule 2053 is configured to, when the number of the online smart home devices is not greater than the number of the offline smart home devices, send the latest device states of the online smart home devices to the cloud server.
In the embodiment of the invention, the intelligent home devices are uniformly managed through the intelligent home gateway, and the intelligent home gateway is used for replacing a plurality of intelligent home devices to communicate with the cloud server, so that the device state of the intelligent home devices is updated, each intelligent home device is prevented from directly communicating with the cloud server, the pressure of the cloud server is reduced, and the transmission of low-efficiency data between the intelligent home devices and the cloud server is also reduced.
Referring to fig. 3A, an embodiment of the present invention provides an apparatus 300 for determining a device state of an intelligent home device, where the apparatus includes:
the judging module 301 is configured to judge whether the connection with the smart home gateway is disconnected every preset time interval;
the first receiving module 302 is configured to receive a changed device state of the smart home device sent by the smart home gateway when the connection with the smart home gateway is not disconnected, where the changed device state of the smart home device is sent by the smart home gateway when the smart home gateway detects that there is a smart home device with a changed device state in the smart home devices connected to the smart home gateway, and the device state includes an online state and an offline state;
the updating module 303 is configured to update the stored device state of the smart home device connected to the smart home gateway based on the changed device state of the smart home device.
Optionally, referring to fig. 3B, the apparatus further comprises:
the setting module 304 is configured to set, when the connection with the smart home gateway is disconnected, all the device states of the smart home devices connected to the smart home gateway to an offline state.
Optionally, referring to fig. 3C, the apparatus further comprises:
the second receiving module 305 is configured to receive the latest device status of each smart home device connected to the smart home gateway, where the device status is sent by the smart home gateway when the connection with the smart home gateway is reestablished.
In summary, in the embodiment of the present invention, the cloud server only needs to communicate with the smart home gateway, determine the connection state with the smart home gateway, and update the device state of the smart home device according to the device state sent by the smart home gateway, so that the cloud server is prevented from communicating with each smart home device, the operating pressure of the cloud server is reduced, and the transmission of low-efficiency data between the smart home device and the cloud server is also reduced.
It should be noted that: the apparatus for triggering an intelligent network service provided in the foregoing embodiment is only illustrated by dividing the functional modules when triggering an intelligent network service, and in practical applications, the function distribution may be completed by different functional modules as needed, that is, the internal structure of the device is divided into different functional modules to complete all or part of the functions described above. In addition, the apparatus for triggering an intelligent network service and the method for triggering an intelligent network service provided in the foregoing embodiments belong to the same concept, and specific implementation processes thereof are described in the method embodiments and are not described herein again.
The above-mentioned serial numbers of the embodiments of the present invention are merely for description and do not represent the merits of the embodiments.
It will be understood by those skilled in the art that all or part of the steps for implementing the above embodiments may be implemented by hardware, or may be implemented by a program instructing relevant hardware, where the program may be stored in a computer-readable storage medium, and the above-mentioned storage medium may be a read-only memory, a magnetic disk or an optical disk, etc.
The above description is only for the purpose of illustrating the preferred embodiments of the present invention and is not to be construed as limiting the invention, and any modifications, equivalents, improvements and the like that fall within the spirit and principle of the present invention are intended to be included therein.

Claims (4)

1. A method for determining the equipment state of intelligent household equipment is applied to an intelligent household gateway, and comprises the following steps:
judging whether the connection with the cloud server is disconnected or not at preset time intervals;
detecting whether intelligent home equipment with changed equipment states exists in the intelligent home equipment connected with the intelligent home gateway, wherein the equipment states comprise an online state and an offline state;
when the connection with the cloud server is not disconnected and the intelligent home devices with changed device states exist in the intelligent home devices connected with the intelligent home gateway, sending the latest device states of the changed intelligent home devices to the cloud server, so that the cloud server updates the device states of the changed intelligent home devices;
after detecting and whether there is the intelligent home devices that equipment state changes among the intelligent home devices that intelligent home gateway connects, still include:
when the connection with the cloud server is disconnected and the intelligent home devices with changed device states exist in the intelligent home devices connected with the intelligent home gateway, updating the locally stored latest device states of the intelligent home devices connected with the intelligent home gateway based on the latest device states of the changed intelligent home devices;
when the connection with the cloud server is reestablished, sending the latest equipment state of each intelligent home equipment connected with the intelligent home gateway to the cloud server;
the with the newest equipment state of every intelligent home equipment that intelligent home gateway is connected sends to the high in the clouds server, include:
judging whether the number of the online intelligent home devices is larger than that of the offline intelligent home devices, wherein the online intelligent home devices are intelligent home devices with the latest device states in the intelligent home devices connected with the intelligent home gateway in an online state, and the offline intelligent home devices are intelligent home devices with the latest device states in the intelligent home devices connected with the intelligent home gateway in an offline state;
when the number of the online intelligent home devices is larger than that of the offline intelligent home devices, sending the latest device state of the offline intelligent home devices to the cloud server;
and when the number of the online intelligent household devices is not larger than that of the offline intelligent household devices, sending the latest device state of the online intelligent household devices to the cloud server.
2. A method for determining the equipment state of intelligent household equipment is applied to a cloud server, and comprises the following steps:
judging whether the connection with the intelligent home gateway is disconnected or not at preset time intervals;
when the connection with the intelligent home gateway is not disconnected, receiving the latest equipment state of the changed intelligent home equipment sent by the intelligent home gateway, wherein the latest equipment state of the changed intelligent home equipment is sent when the intelligent home gateway detects that the intelligent home equipment with the changed equipment state exists in the intelligent home equipment connected with the intelligent home gateway, and the equipment state comprises an online state and an offline state;
updating the stored equipment state of the intelligent household equipment connected with the intelligent household gateway based on the changed latest equipment state of the intelligent household equipment;
every preset time interval, judge and whether the connection between the intelligent home gateway has been disconnected after, still include:
when the connection with the intelligent home gateway is disconnected, setting the equipment states of the intelligent home equipment connected with the intelligent home gateway to be offline states;
when the connection with the intelligent home gateway is reestablished, receiving the latest equipment state of each intelligent home equipment connected with the intelligent home gateway, which is sent by the intelligent home gateway;
receiving the latest equipment state of each intelligent home equipment connected with the intelligent home gateway, which is sent by the intelligent home gateway, and the method comprises the following steps:
receiving the latest device state of the online intelligent home devices or the latest device state of the offline intelligent home devices sent by the intelligent home gateway, wherein the latest device state of the online intelligent home devices is the intelligent home devices in the online state in the intelligent home devices connected with the intelligent home gateway, and the offline intelligent home devices are the intelligent home devices in the offline state in the intelligent home devices connected with the intelligent home gateway.
3. The utility model provides an equipment state confirming device of intelligent household equipment which characterized in that, the device includes:
the judging module is used for judging whether the connection with the cloud server is disconnected or not at preset time intervals;
the detection module is used for detecting whether intelligent household equipment with changed equipment states exists in the intelligent household equipment connected with the intelligent household gateway, and the equipment states comprise an online state and an offline state;
the first sending module is used for sending the latest equipment state of the changed intelligent household equipment to the cloud server when the connection with the cloud server is not disconnected and the intelligent household equipment with the changed equipment state exists in the intelligent household equipment connected with the intelligent household gateway, so that the cloud server updates the equipment state of the changed intelligent household equipment;
the device further comprises:
the updating module is used for updating the latest equipment state of the intelligent household equipment connected with the intelligent household gateway, which is locally stored, based on the latest equipment state of the intelligent household equipment which changes when the connection with the cloud server is disconnected and the intelligent household equipment connected with the intelligent household gateway has the intelligent household equipment with changed equipment state;
the second sending module is used for sending the latest equipment state of each intelligent home equipment connected with the intelligent home gateway to the cloud server when the connection with the cloud server is reestablished;
the second sending module includes:
the intelligent home gateway is used for connecting the intelligent home devices with the intelligent home gateway, and the intelligent home devices are connected with the intelligent home gateway;
the first sending submodule is used for sending the latest equipment state of the off-line intelligent household equipment to the cloud server when the number of the on-line intelligent household equipment is larger than that of the off-line intelligent household equipment;
and the second sending submodule is used for sending the latest equipment state of the online intelligent household equipment to the cloud server when the number of the online intelligent household equipment is not more than that of the offline intelligent household equipment.
4. The utility model provides an equipment state confirming device of intelligent household equipment which characterized in that, the device includes:
the judging module is used for judging whether the connection with the intelligent home gateway is disconnected or not at preset time intervals;
the first receiving module is used for receiving the latest equipment state of the changed intelligent home equipment sent by the intelligent home gateway when the connection with the intelligent home gateway is not disconnected, wherein the latest equipment state of the changed intelligent home equipment is sent when the intelligent home gateway detects that the intelligent home equipment with the changed equipment state exists in the intelligent home equipment connected with the intelligent home gateway, and the equipment state comprises an online state and an offline state;
the updating module is used for updating the stored equipment state of the intelligent home equipment connected with the intelligent home gateway based on the changed latest equipment state of the intelligent home equipment;
the device further comprises:
the setting module is used for setting the equipment states of the intelligent home equipment connected with the intelligent home gateway to be offline states when the connection with the intelligent home gateway is disconnected;
the second receiving module is used for receiving the latest equipment state of each intelligent home equipment connected with the intelligent home gateway, which is sent by the intelligent home gateway, when the connection with the intelligent home gateway is reestablished;
the second receiving module is specifically configured to receive a latest device state of the online smart home device or a latest device state of the offline smart home device sent by the smart home gateway, where the latest device state of the online smart home device is an online smart home device in the smart home devices connected to the smart home gateway, and the offline smart home device is an offline smart home device in the smart home devices connected to the smart home gateway.
CN201611076821.9A 2016-11-29 2016-11-29 Equipment state determination method and device for intelligent household equipment Active CN106453648B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201611076821.9A CN106453648B (en) 2016-11-29 2016-11-29 Equipment state determination method and device for intelligent household equipment

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201611076821.9A CN106453648B (en) 2016-11-29 2016-11-29 Equipment state determination method and device for intelligent household equipment

Publications (2)

Publication Number Publication Date
CN106453648A CN106453648A (en) 2017-02-22
CN106453648B true CN106453648B (en) 2020-04-28

Family

ID=58222347

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201611076821.9A Active CN106453648B (en) 2016-11-29 2016-11-29 Equipment state determination method and device for intelligent household equipment

Country Status (1)

Country Link
CN (1) CN106453648B (en)

Families Citing this family (18)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106888272B (en) * 2017-04-11 2020-05-19 华东交通大学 Client message refreshing method based on third-party push platform
CN110309045B (en) * 2018-03-20 2023-05-23 贵州白山云科技股份有限公司 Method, apparatus, medium and computing device for determining future state of server
CN110392014B (en) * 2018-04-17 2022-08-05 阿里巴巴集团控股有限公司 Communication method and device between Internet of things devices
CN108616433B (en) * 2018-05-04 2021-02-23 青岛海信智慧家居系统股份有限公司 State synchronization method, device, gateway equipment and storage medium
CN109005528A (en) * 2018-07-06 2018-12-14 杭州涂鸦信息技术有限公司 A kind of bluetooth mesh gateway data polymerization report method
CN109525667A (en) * 2018-11-18 2019-03-26 杭州智尔科技有限公司 The management system and method for a kind of electronic equipment
CN109547247B (en) * 2018-11-20 2021-08-31 北京千丁互联科技有限公司 Time management system, gateway and method of intelligent door lock
CN110120222A (en) * 2019-05-23 2019-08-13 九牧厨卫股份有限公司 A kind of voice broadcast method of the smart mirror cabinet with voice broadcast function
CN110519360A (en) * 2019-08-20 2019-11-29 深圳市丰润达科技有限公司 ZigBee equipment state scan method, device and readable storage medium storing program for executing
CN110597909B (en) * 2019-09-12 2023-03-14 广州南翼信息科技有限公司 Method for keeping state consistency of client and multi-terminal equipment
CN112583617B (en) * 2019-09-29 2022-12-02 广东美的制冷设备有限公司 Fault determination method, server, control terminal and storage medium
CN110740355A (en) * 2019-09-30 2020-01-31 视联动力信息技术股份有限公司 Equipment monitoring method and device, electronic equipment and storage medium
CN115428422B (en) * 2020-06-22 2024-10-29 Oppo广东移动通信有限公司 Device state notification method, cloud platform, user device and storage medium
CN111930082B (en) * 2020-07-22 2021-11-23 青岛海信智慧生活科技股份有限公司 Method and device for replacing intelligent household equipment
CN111970182B (en) * 2020-09-10 2021-09-21 四川长虹电器股份有限公司 Control system and method for automatically replacing intelligent household equipment
CN113311763A (en) * 2021-05-28 2021-08-27 宁波奥克斯电气股份有限公司 Intelligent equipment control method and device, computer device and intelligent equipment control system
CN114157613A (en) * 2021-11-11 2022-03-08 珠海格力电器股份有限公司 Data reporting method, gateway, server, electronic device and storage medium
CN115086398A (en) * 2022-06-14 2022-09-20 卫宁健康科技集团股份有限公司 Communication method, device, equipment and storage medium of distributed system

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101056197A (en) * 2006-04-11 2007-10-17 中国移动通信集团公司 Data storage system of the information home electrical appliance and the data processing method
CN102638460A (en) * 2012-03-26 2012-08-15 华为终端有限公司 Residential gateway, cloud server and method for communicating residential gateway and cloud server
CN103973522A (en) * 2013-01-31 2014-08-06 珠海格力电器股份有限公司 Intelligent household system and monitoring method thereof
CN105530151A (en) * 2015-11-30 2016-04-27 青岛海尔科技有限公司 GPRS module and information transmission method for the GPRS module
CN106054657A (en) * 2016-08-09 2016-10-26 歌尔股份有限公司 Intelligent household control method, intelligent household control server and system

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US10345767B2 (en) * 2014-08-19 2019-07-09 Samsung Electronics Co., Ltd. Apparatus and method for gamification of sensor data interpretation in smart home

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101056197A (en) * 2006-04-11 2007-10-17 中国移动通信集团公司 Data storage system of the information home electrical appliance and the data processing method
CN102638460A (en) * 2012-03-26 2012-08-15 华为终端有限公司 Residential gateway, cloud server and method for communicating residential gateway and cloud server
CN103973522A (en) * 2013-01-31 2014-08-06 珠海格力电器股份有限公司 Intelligent household system and monitoring method thereof
CN105530151A (en) * 2015-11-30 2016-04-27 青岛海尔科技有限公司 GPRS module and information transmission method for the GPRS module
CN106054657A (en) * 2016-08-09 2016-10-26 歌尔股份有限公司 Intelligent household control method, intelligent household control server and system

Also Published As

Publication number Publication date
CN106453648A (en) 2017-02-22

Similar Documents

Publication Publication Date Title
CN106453648B (en) Equipment state determination method and device for intelligent household equipment
CN107645529B (en) Heartbeat packet sending method and device
CN109450704B (en) Plug-and-play intelligent distribution transformer terminal and distribution data communication system
KR102114243B1 (en) Network, master, hub, and method for providing a bluetooth infrastructure
CN111031565B (en) Method and device for identifying off-line state of ZigBee device
CN101867958A (en) Method and system for managing wireless sensing network terminal
CN109361585A (en) A kind of method that child node baud rate and address is arranged in host node automatically
CN106993043A (en) Data communication system and method based on agency
CN104765349A (en) Method for managing smart home equipment, server and center control equipment
CN103684937A (en) A network topological structure in an intelligent household communication system and an establishment method thereof
CN105471678A (en) Method and system for detecting networking failure reason of household appliance and mobile terminal
CN106230622B (en) Cluster implementation method and device
CN103914354A (en) Method and system for database fault recovery
CN107508916B (en) Server link management method for intelligent robot
US20070050496A1 (en) Ad-hoc network, a network device and a method of configuration management therefor
US10346332B2 (en) Slave device
CN112733062A (en) Internet of things application management system and method
CN106411574B (en) Management control method and device
CN107920348B (en) Device network state information
CN113765743B (en) Intelligent gateway working state monitoring method
KR20190078677A (en) Remote meter reading system, remote meter reading device and remote meter reading method
TW201824933A (en) Coordinator and control method thereof, wireless sensing network communication system and method
CN111343700A (en) Wireless sensor network communication method
CN105207811B (en) Method and device for replacing non-AllJoyn equipment
CN115052312A (en) Wireless communication method, device, equipment and storage medium of heat pump equipment

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant