CN112703816A - Communication method, home gateway equipment and home control system - Google Patents

Communication method, home gateway equipment and home control system Download PDF

Info

Publication number
CN112703816A
CN112703816A CN201880096020.XA CN201880096020A CN112703816A CN 112703816 A CN112703816 A CN 112703816A CN 201880096020 A CN201880096020 A CN 201880096020A CN 112703816 A CN112703816 A CN 112703816A
Authority
CN
China
Prior art keywords
uplink data
communication
memory
home
cached
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.)
Pending
Application number
CN201880096020.XA
Other languages
Chinese (zh)
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.)
Shenzhen Royole Technologies Co Ltd
Original Assignee
Shenzhen Royole Technologies 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 Shenzhen Royole Technologies Co Ltd filed Critical Shenzhen Royole Technologies Co Ltd
Priority to PCT/CN2018/116187 priority Critical patent/WO2020102939A1/en
Publication of CN112703816A publication Critical patent/CN112703816A/en
Pending legal-status Critical Current

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L65/00Network arrangements, protocols or services for supporting real-time applications in data packet communication
    • H04L65/40Support for services or applications
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W28/00Network traffic or resource management
    • H04W28/02Traffic management, e.g. flow control or congestion control
    • H04W28/10Flow control between communication endpoints
    • H04W28/14Flow control between communication endpoints using intermediate storage
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W84/00Network topologies
    • H04W84/18Self-organising networks, e.g. ad-hoc networks or sensor networks

Abstract

The application discloses a communication method, which is applied to home gateway equipment, wherein the home gateway equipment is in communication connection with a control terminal and the home equipment through a network; the home gateway equipment comprises a first communication module, a memory and a second communication module; the communication method comprises the following steps: receiving uplink data sent by a plurality of household devices by adopting a first communication protocol supported by a first communication module; controlling to cache the received uplink data in a memory; judging whether the data volume of the uplink data cached in the memory reaches a preset transmission volume or not; and when the data volume of the uplink data cached in the memory reaches the preset transmission number, controlling to send all the uplink data cached currently to the control end through a second communication protocol supported by the second communication module, and clearing the uplink data cached in the memory. The application also discloses a home gateway device and a home control system. The communication efficiency and the communication reliability can be improved.

Description

Communication method, home gateway equipment and home control system Technical Field
The application relates to the technical field of internet of things, in particular to a communication method, home gateway equipment and a home control system.
Background
With the continuous development of home intelligence, a user can use home gateway equipment to realize the unified management and control of home equipment, where the home equipment generally refers to some household appliances, such as air conditioners, televisions, and the like, and may also include some daily necessities with remote switches, such as lamps, curtains, doors, and the like. For example, the home gateway may implement a function of controlling the home devices and receiving the status information reported by each home device by using a control terminal (e.g., a mobile phone). However, since the number of the home devices is large, if the state information is reported at the same time, the intelligent home gateway cannot process the uplink data in time, and packet loss and communication delay may occur.
Disclosure of Invention
The embodiment of the application discloses a communication method, home gateway equipment and a home control system, which can improve the reliability and the efficiency of communication.
The communication method disclosed by the embodiment of the application is applied to home gateway equipment, and the home gateway equipment comprises a first communication module, a memory and a second communication module; the communication method comprises the following steps:
receiving uplink data sent by a plurality of household devices by adopting a first communication protocol supported by the first communication module;
controlling the received uplink data to be cached in the memory;
judging whether the data volume of the uplink data cached in the memory reaches a preset transmission quantity or not;
when the data volume of the uplink data cached in the memory reaches a preset transmission volume, controlling to send all the uplink data cached currently to the control end through a second communication protocol supported by the second communication module, and clearing the uplink data cached in the memory.
According to the home gateway device disclosed by the embodiment of the application, the home gateway device is in communication connection with the control terminal and the home device through a network; the home gateway device includes:
the home gateway device receives uplink data sent by a plurality of home devices by adopting a first communication protocol supported by the first communication module;
the controller is used for controlling the received uplink data to be cached in the memory; and
a second communication module;
the controller also judges whether the data volume of the uplink data cached in the memory reaches a preset transmission quantity;
when the data amount of the uplink data buffered in the memory reaches a preset transmission amount, the controller controls to send all the uplink data buffered currently to the control end through a second communication protocol supported by the second communication module, and to clear the uplink data buffered in the memory.
The embodiment of the application discloses a home control system, which comprises home gateway equipment, a control end and a plurality of home equipment; the home gateway device is in communication connection with the control terminal through a first communication network, and is in communication connection with the home devices through a second communication network; wherein the first communication network and the second communication network are different; the home gateway device further includes:
the home gateway device receives uplink data sent by a plurality of home devices by adopting a first communication protocol supported by the first communication module;
the controller is used for controlling the received uplink data to be cached in the memory; and
a second communication module;
the controller also judges whether the data volume of the uplink data cached in the memory reaches a preset transmission quantity;
when the data amount of the uplink data buffered in the memory reaches a preset transmission amount, the controller controls to send all the uplink data buffered currently to the control end through a second communication protocol supported by the second communication module, and to clear the uplink data buffered in the memory.
According to the communication method, the intelligent home gateway and the home control system, received uplink data are cached in the memory, when the data volume of the uplink data cached in the memory reaches the preset transmission number, all the uplink data cached at present are controlled to be sent to the control end through the second communication protocol supported by the second communication module, the uplink data cached in the memory are removed, the communication pressure of the intelligent home gateway can be relieved, the situation of data loss is avoided, and the reliability and the communication efficiency of communication are improved.
Drawings
In order to more clearly illustrate the technical solutions in the embodiments of the present application, the drawings needed to be used in the embodiments will be briefly described below, and it is obvious that the drawings in the following description are only some embodiments of the present application, and it is obvious for those skilled in the art that other drawings can be obtained according to the drawings without creative efforts.
Fig. 1 is a schematic structural diagram of an intelligent home system disclosed in an embodiment of the present application.
Fig. 2 is a block diagram of a hardware structure of a home gateway device disclosed in an embodiment of the present application.
Fig. 3 is a flowchart illustrating steps of a communication method disclosed in an embodiment of the present application.
Fig. 4 is a flow chart illustrating steps of a communication method disclosed in another embodiment of the present application.
Fig. 5 is a flowchart illustrating steps of a communication method disclosed in another embodiment of the present application.
Fig. 6 is a flow chart illustrating steps of a communication method disclosed in another embodiment of the present application.
Detailed Description
The technical solutions in the embodiments of the present application will be clearly and completely described below with reference to the drawings in the embodiments of the present application, and it is obvious that the described embodiments are only a part of the embodiments of the present application, and not all of the embodiments. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present application.
It is to be understood that the terminology used in the embodiments of the invention herein is for the purpose of describing particular embodiments only and is not intended to be limiting of the invention. As used in the examples of the present invention and the appended claims, the singular forms "a," "an," and "the" are intended to include the plural forms as well, unless the context clearly indicates otherwise. It should also be understood that the term "and/or" as used herein refers to and encompasses any and all possible combinations of one or more of the associated listed items.
Please refer to fig. 1, which is a schematic structural diagram of a home control system 1000 according to an embodiment of the present application. The home control system 1000 includes a home gateway device 100, a control end 200, and a plurality of home devices 300. The control terminal 200 includes, but is not limited to, a mobile phone, a tablet computer, a Personal Digital Assistant (PDA), and the like. The household devices 300 include, but are not limited to, an intelligent refrigerator, an intelligent television, an intelligent lighting, an intelligent switch, an intelligent door and window, an intelligent door lock, an intelligent sensor, and the like.
Specifically, the home gateway device 100 and the control terminal 200 are in communication connection through a first communication network, and are in communication connection with the home devices 300 through a second communication network. Wherein the first communication network and the second communication network are different. In this embodiment, the first communication network is a WiFi communication network, and the second communication network is a Zigbee (Zigbee) communication network. In other embodiments, the home control system 1000 may further include a router (not shown) and a server (not shown), and the home gateway device 100 communicates with the control end 200 through the router and the server in turn. The first communication network may also be a bluetooth communication network, an infrared communication network, a 3G/4G/5G telephone communication network, etc., and the home gateway device 100 may also directly communicate with the control terminal 200 through the bluetooth and the infrared communication network, or directly communicate with the control terminal 200 through the telephone communication network.
Please refer to fig. 2, which is a block diagram of a home gateway device 100 according to an embodiment of the present application. The home gateway device 100 includes, but is not limited to, a first communication module 10, a controller 20, a memory 30, a protocol conversion module 40, and a second communication module 50. Wherein the first communication module 10 is different from the second communication module 50. It should be understood by those skilled in the art that fig. 2 is only an example of the home gateway device 100 and does not constitute a limitation to the home gateway device 100, and the home gateway device 100 may include more or less components than those shown in fig. 1, or combine some components, or different components, for example, the home gateway device 100 may further include an input and output device, a network access device, and the like.
The controller 20 may be a Central Processing Unit (CPU) or a Micro Controller Unit (MCU). The controller 20 is a control center of the smart home gateway 100, and is connected to each part of the whole smart home gateway 100 by using various interfaces and lines.
The memory 30 may be used to store computer programs and/or modules, and the controller 20 implements various functions of the smart home gateway 100 by operating or executing the computer programs and/or modules stored in the memory 30 and calling data stored in the memory 30. The memory 30 may mainly include a program storage area and a data cache area, wherein the program storage area may store programs (such as programs used to implement a certain method) and the like required by a plurality of functions; the data cache region may cache various types of information sent by the plurality of home devices 300.
In addition, the memory 30 may include a high speed random access memory, and may also include a non-volatile memory, such as a hard disk, a memory, a plug-in hard disk, a Smart Media Card (SMC), a Secure Digital (SD) Card, a Flash memory Card (Flash Card), a plurality of magnetic disk storage devices, a Flash memory device, or other volatile solid state storage devices.
Specifically, the first communication module 10 is configured to communicate with the plurality of household devices 300. The home gateway device 100 receives the uplink data sent by the multiple home devices 300 by using a first communication protocol supported by the first communication module 10. The controller 20 is configured to control buffering of the received uplink data in the memory 30. The controller 20 is further configured to determine whether the data amount of the uplink data buffered in the memory 30 reaches a preset transmission amount; when the data amount of the uplink data buffered in the memory 30 reaches the preset transmission amount, the controller 20 further controls to send all the uplink data buffered currently to the control end 200 through the second communication protocol supported by the second communication module 50, and to clear the uplink data buffered in the memory 30. The protocol conversion module 40 converts all uplink data that is currently cached and conforms to the first communication protocol standard into uplink data that conforms to the second communication protocol standard, and sends the uplink data to the control end 200 through the second communication module 50.
The uplink data may include current state information, usage state information, and the like of each household device 300. For example, the state information may include on/off states of the smart switch, current temperatures of a refrigerating compartment and a freezing compartment of the smart refrigerator, a volume state and a color state of the smart tv set, and the like.
In this embodiment, the first communication module 10 is a multi-node Zigbee module with low power consumption and low cost, so that the purpose of communicating with a plurality of home devices 300 can be achieved, and the communication is stable. The second communication module 50 is a WiFi module with a fast transmission speed and a long communication distance. The first communication protocol is a Zigbee communication protocol; the second communication protocol is an MQTT protocol. In order to communicate with the gateway 100, each household device 300 also includes a communication module similar to the first communication module 10, for example, a Zigbee module in this embodiment. The control terminal 200 includes a communication module, such as a WiFi module, identical to the second communication module 50. The preset time may be 50 ms. In other embodiments, the preset time may be set according to specific design requirements, and is not limited thereto.
It can be understood that, because the first communication module 10 and the second communication module 50 are different, the format of the received uplink data needs to be protocol-converted before being transmitted through the second communication module 50. Therefore, in this embodiment, the protocol conversion module 40 is configured to convert uplink data of the Zigbee protocol into uplink data of the WiFi protocol. That is, the protocol conversion module 40 analyzes the Zigbee protocol frame to convert the Zigbee protocol frame into a WiFi data frame, and then sends the encapsulated WiFi data frame.
In some embodiments, the protocol conversion module 40 may be a protocol conversion chip having at least one first communication terminal and at least one second communication terminal. Specifically, the protocol conversion chip may be a UART (Universal asynchronous receiver/transmitter) interface chip or an SPI (Serial peripheral interface) interface chip. Namely, the ZigBee module and the WiFi module carry out data transmission through the UART/SPI interface chip.
In other embodiments, the controller 20 may also incorporate a protocol conversion function for converting the communication format between the first communication module 10 and the second communication module 50 by performing a protocol conversion process.
Since the number of the home devices 300 is large, if the state information in the uplink data is reported at the same time, the home gateway device 100 cannot process the Zigbee data in time, and packet loss and communication delay may occur. According to the intelligent home gateway 100, received uplink data are cached in the storage 30, when the data volume of the uplink data cached in the storage 30 reaches the preset transmission quantity, all the uplink data cached at present are controlled to be sent to the control end through the second communication protocol supported by the second communication module 50, the cache is cleared from the uplink data in the storage 30, the communication pressure of the intelligent home gateway 100 can be relieved, the situation of data loss is avoided, and therefore the communication efficiency and the reliability of communication are improved.
In some embodiments, the home gateway device 100 further comprises a timer; the controller 20 controls the timer to start timing from the moment when the first uplink data is buffered. When the data amount of the uplink data buffered in the memory 30 reaches the preset transmission amount but the timing duration does not reach the preset time, controlling to send all the uplink data buffered currently to the control end 200 through the second communication protocol supported by the second communication module, and controlling the timer to clear and clear the uplink data buffered in the memory. When the data amount of the uplink data buffered in the memory 30 does not reach the preset transmission amount, the controller 20 further determines whether a timing duration reaches a preset time; when the timing duration reaches a preset time, the controller 20 controls to send all the currently buffered uplink data to the control terminal 200 through the second communication protocol supported by the second communication module, and controls to perform timing clearing and to clear the uplink data buffered in the memory 30.
The controller 20 starts to count time from the moment of buffering the first uplink data, and may specifically include: the controller 20 determines whether there is buffered data in the current memory 10 when controlling to buffer the received uplink data into the memory 30, and if not, determines that the currently buffered uplink data is the first uplink data buffered, and controls to start timing.
In the present embodiment, the controller includes a timer and has a timer function. In other embodiments, the timer may stand alone and be controlled by the controller 20 to start timing, stop timing, or clear. In some embodiments, the controller 20 times, stops, or clears by calling a timer. In this embodiment, since the second communication module 50 is started to send to the control terminal 200 after the received uplink data is buffered and the preset time is reached, the number of times of starting the second communication module, that is, the number of times of establishing/disconnecting the second communication network can be reduced, compared with the instant sending method, thereby reducing the time used for communication and improving the communication efficiency.
For example, the communication protocol of the control end 200 of the smart home gateway 100 uses the MQTT protocol, where the MQTT protocol is implemented based on the TCP protocol, and therefore, a TCP connection needs to be established every time a message is sent through the MQTT. And under the condition that a complete TCP connection does not send data, 7 times of data exchange are needed from opening to closing, namely, each complete TCP connection comprises three operations of connection establishment, data sending and connection disconnection, 4 times of data exchange are needed for connection establishment, and 3 times of data exchange are needed for connection disconnection, so that 7 times of data exchange are needed in total. Assuming a zigbee network of 1000 nodes that generates 200 state information per second, 10 state information are generated every 50ms on average. If the TCP data exchange duration is t (for example, 19ms), the time consumed by 10 pieces of state information is about 10 × 7 × t +10 × t ═ 80t ═ 1520ms when the 10 pieces of state information are directly sent through the MQTT without being cached; if the technical scheme of the application is adopted, data is buffered in the smart home gateway 100, and the data is sent once every preset time (for example, 50ms), so that the consumed time is about 7 × t + t + 8t + 170 ms. Therefore, the communication efficiency can be improved. In addition, since one TCP data packet may carry more than 600 zigbee state information, when the number of nodes of the zigbee network is more, that is, the number of the home devices 300 is more, the communication efficiency using the technical solution of the present application is higher.
In some embodiments, the smart home gateway 100 further receives downlink data sent by the control end 200 by using a second communication protocol supported by the second communication module 50. The controller 20 is further configured to identify the downlink data, send the downlink data to the corresponding home device 300 by using the first communication protocol supported by the first communication module 10, and control the corresponding home device 300 to execute an operation corresponding to the downlink data. In this embodiment, the user may issue a corresponding instruction through the control terminal 200 to control the corresponding home devices 300 to execute corresponding functions. For example, a user may issue a light-on command through the control terminal 200, and after receiving the command through the second communication module 50, the smart home gateway 100 recognizes the command through the controller 20, and then controls to convert the command into a communication standard meeting the first communication module 10 and send the communication standard to the smart switch, thereby executing a light-on action.
In another embodiment, before the smart home gateway 100 receives the uplink data sent by the multiple home devices 300 through the first communication module 10, the home gateway device 100 further establishes a communication network including at least one home device 300. The communication network is a network used by the first communication module 10. Specifically, after the smart home gateway 100 is powered on and initialized, the controller 20 receives a network access request sent by at least one home device 300, processes the network access request, and allocates a network address (identity) to the home device 300 that sends the network access request, so that the home device 300 can join the communication network after receiving the network address.
Please refer to fig. 3, which is a flowchart illustrating steps of a communication method according to an embodiment of the present application. The communication method is applied to the home gateway device 100, and the home gateway device 100 is in communication connection with the control terminal 200 and the home device 300 through a network. The home gateway device 100 includes a first communication module 10, a memory 20, and a second communication module 50. The communication method comprises the following steps:
step S31, receiving uplink data sent by the multiple home devices 300 by using the first communication protocol supported by the first communication module 10.
Step S32, controlling to buffer the received uplink data into the memory 20.
Step S33, determining whether the data size of the uplink data buffered in the memory reaches a preset transmission size; if yes, go to step S34.
Step S34, controlling to send all currently buffered uplink data to the control end 200 through the second communication protocol supported by the second communication module 50, and clearing the uplink data buffered in the memory 30.
In some embodiments, the first communication protocol is a protocol format conforming to a communication protocol standard of the first communication module 10; the second communication protocol is a protocol format conforming to a communication protocol standard of the second communication module 50. Further, the uplink data may include current status information, usage status information, and the like of each home device 300. For example, the state information may include on/off states of the smart switch, current temperatures of a refrigerating compartment and a freezing compartment of the smart refrigerator, a volume state and a color state of the smart tv set, and the like.
In some embodiments, the first communication protocol is a Zigbee communication protocol; the second communication protocol is an MQTT communication protocol.
In the communication method of the present application, the received uplink data is buffered in the memory 30, and it is determined whether the data amount of the uplink data buffered in the memory 30 reaches a preset transmission amount; when the data amount of the uplink data buffered in the memory 30 reaches the preset transmission amount, the control unit controls to send all the uplink data buffered currently to the control terminal 200 through the second communication protocol supported by the second communication module 50, and clears the uplink data buffered in the memory 30, so that the communication pressure of the smart home gateway 100 can be relieved, the occurrence of data loss is avoided, and the reliability of communication is improved.
Referring to fig. 4, in some embodiments, before step S32, the communication method further includes the following steps:
step S41 is to start timing from the time when the first upstream data is buffered.
In some embodiments, the starting of the timing from the time of buffering the first uplink data specifically includes: when the received uplink data is buffered in the memory 20, determining whether the current memory 20 has buffered data, if not, determining that the current buffered uplink data is the uplink data of the first buffer, and controlling to start timing.
In the present embodiment, when the determination result of step S33 is yes, step S341 is executed, where step S341 differs from step S34 in that the control timing is cleared along with the clearing of the buffered uplink data. Further, in the case where the determination result of step S33 is "no", the method further includes the steps of:
and step S42, judging whether the timing duration reaches the preset time. If yes, go to step S341; if not, step S33 is executed.
Thus, starting the second communication module 50 to send the cached data to the control end 200 after the preset time is reached can reduce the starting times of the second communication module 50 and improve the communication efficiency.
Referring back to fig. 5, in some embodiments, before step S31, the communication method further includes the following steps:
step S51, a communication network including at least one home device 300 is established.
In some embodiments, the establishing a communication network including at least one home device 300 specifically includes: receiving a network access request sent by at least one household device 300; and processing the network access request and allocating a network address to the household equipment 300 sending the network access request. After the communication network is established, the first communication module 10 may receive uplink data through the communication network.
It should be noted that after the uplink data buffered in the data buffer area is sent, the buffer area needs to be cleared and the timed time needs to be cleared, so that the uplink data sent by the multiple home devices 300 are received next time, and are buffered and re-timed.
Referring to fig. 6, in some embodiments, the communication method further includes the following steps:
step S61, receiving the downlink data sent by the control end by using the communication protocol supported by the second communication module 50.
Step S62, recognizing the downlink data, sending the downlink data to the corresponding home equipment 300 by using the first communication protocol supported by the first communication module 10, and controlling the corresponding home equipment 300 to execute an operation corresponding to the downlink data.
In this embodiment, the user may issue a corresponding instruction through the control terminal 200 to control the corresponding home devices 300 to execute corresponding functions. For example, a user may issue a light-on command through the control terminal 200, and after receiving the command through the second communication module 50, the smart home gateway 100 recognizes the command through the controller 20, and then controls to convert the command into a communication standard meeting the first communication module 10 and send the communication standard to the smart switch, thereby executing a light-on action.
It should be noted that, for simplicity of description, the above-mentioned embodiments of the method are described as a series of acts or combinations, but those skilled in the art should understand that the present application is not limited by the order of acts described, as some steps may be performed in other orders or simultaneously according to the present application. Further, those skilled in the art should also appreciate that the embodiments described in the specification are preferred embodiments and that the acts and modules referred to are not necessarily required in this application.
In the above embodiments, the descriptions of the respective embodiments have respective emphasis, and for parts that are not described in detail in a certain embodiment, reference may be made to related descriptions of other embodiments.
The steps in the method of the embodiment of the application can be sequentially adjusted, combined and deleted according to actual needs.
The communication methods provided herein may be implemented in hardware, firmware, or as software or computer code that may be stored in a computer readable storage medium such as a CD, ROM, RAM, floppy disk, hard disk, or magneto-optical disk, or as computer code that is originally stored on a remote recording medium or a non-transitory machine readable medium, downloaded over a network, and stored in a local recording medium, so that the methods described herein may be presented in software stored on a recording medium using a general purpose computer or special processor, or in programmable or special purpose hardware such as an ASIC or FPGA. As can be appreciated in the art, a computer, processor, microprocessor, controller or programmable hardware includes a memory component, e.g., RAM, ROM, flash memory, etc., which can store or receive software or computer code when the computer, processor or hardware accesses and executes the software or computer code implementing the processing methods described herein. In addition, when a general-purpose computer accesses code for implementing the processing shown herein, execution of the code transforms the general-purpose computer into a special-purpose computer for performing the processing shown herein.
The computer readable storage medium may be a solid state memory, a memory card, an optical disc, etc. The computer readable storage medium stores program instructions for a computer to call and execute the communication method disclosed in the present application.
The foregoing detailed description of the embodiments of the present application has been presented to illustrate the principles and embodiments of the present application, and the above description of the embodiments is only provided to help understand the method and the core concept of the present application; meanwhile, for a person skilled in the art, according to the idea of the present application, there may be variations in the specific embodiments and the application scope, and in summary, the content of the present specification should not be construed as a limitation to the present application.

Claims (20)

  1. A communication method is applied to home gateway equipment, the home gateway equipment is in communication connection with a control end and the home equipment through a network, and the home gateway equipment comprises a first communication module, a memory and a second communication module; the communication method is characterized by comprising the following steps:
    receiving uplink data sent by a plurality of household devices by adopting a first communication protocol supported by the first communication module;
    controlling the received uplink data to be cached in the memory;
    judging whether the data volume of the uplink data cached in the memory reaches a preset transmission quantity or not;
    when the data volume of the uplink data cached in the memory reaches a preset transmission volume, controlling to send all the uplink data cached currently to the control end through a second communication protocol supported by the second communication module, and clearing the uplink data cached in the memory.
  2. The communication method according to claim 1, wherein the home gateway device further comprises a timer, the communication method further comprising the steps of:
    controlling the timer to start timing when the first uplink data is cached, and judging whether the time length counted by the timer reaches a preset time or not;
    and when the data volume of the uplink data cached in the memory reaches a preset transmission quantity but the timing duration does not reach a preset time, controlling all the uplink data cached currently to be sent to the control terminal through a second communication protocol supported by the second communication module, and controlling the timer to clear and to clear the uplink data cached in the memory.
  3. The communication method of claim 2, further comprising the steps of:
    and when the data volume of the uplink data cached in the memory does not reach the preset transmission quantity and the timing duration reaches the preset time, controlling to send all the uplink data cached currently to the control terminal through a second communication protocol supported by the second communication module, and controlling timing zero clearing and clearing of the uplink data cached in the memory.
  4. The communication method according to claim 1, wherein the first communication protocol is a Zigbee communication protocol; the second communication protocol is an MQTT communication protocol.
  5. The communication method according to claim 2, wherein the timing from the time of buffering the first uplink data specifically includes: when the received uplink data is cached in the memory, whether the current memory has cached data is determined, if not, the current cached uplink data is determined to be the first cached uplink data, and the timing is controlled to start.
  6. The communication method as claimed in claim 1, wherein the communication method further comprises:
    receiving downlink data sent by the control terminal by adopting a second communication protocol supported by the second communication module;
    and identifying the downlink data, sending the downlink data to corresponding household equipment by adopting a first communication protocol supported by the first communication module, and controlling the household equipment to execute operation corresponding to the downlink data.
  7. The communication method according to claim 1, wherein before the receiving uplink data sent by a plurality of home devices using the first communication protocol supported by the first communication module, the communication method further includes:
    a communication network is established that includes at least one household device.
  8. The communication method of claim 7, wherein the establishing a communication network including at least one home device comprises:
    receiving a network access request sent by at least one piece of home equipment;
    and processing the network access request and distributing a network address for the household equipment sending the network access request.
  9. A home gateway device includes a memory; the home gateway equipment is in communication connection with the control end and the home equipment through a network; characterized in that, the home gateway equipment includes:
    the home gateway device receives uplink data sent by a plurality of home devices by adopting a first communication protocol supported by the first communication module;
    the controller is used for controlling the received uplink data to be cached in the memory; and
    a second communication module;
    the controller also judges whether the data volume of the uplink data cached in the memory reaches a preset transmission quantity;
    when the data amount of the uplink data buffered in the memory reaches a preset transmission amount, the controller controls to send all the uplink data buffered currently to the control end through a second communication protocol supported by the second communication module, and to clear the uplink data buffered in the memory.
  10. The home gateway device according to claim 9, wherein the home gateway device further comprises a timer, and the controller further controls the timer to start timing from when the first uplink data is buffered;
    when the data volume of the uplink data cached in the memory reaches a preset transmission quantity but the timing duration does not reach a preset time, the controller controls all the uplink data cached currently to be sent to the control terminal through a second communication protocol supported by the second communication module, and controls the timer to be cleared and the uplink data cached in the memory to be cleared;
    when the data volume of the uplink data cached in the memory does not reach the preset transmission quantity, the controller also judges whether the timing duration reaches the preset time; and when the timing duration reaches a preset time, the controller controls all the uplink data which are cached at present to be sent to the control terminal through a second communication protocol supported by the second communication module, and controls timing zero clearing and uplink data cached in the memory to be cleared.
  11. The home gateway device of claim 9, wherein said first communication protocol is a Zigbee protocol; the second communication protocol is an MQTT protocol.
  12. The home gateway device according to claim 10, wherein the controller starts timing from a time when the first uplink data is buffered, specifically comprising: and the controller determines whether buffer data exists in the current memory when controlling the received uplink data to be buffered to the memory, and if not, determines that the currently buffered uplink data is the uplink data of the first buffer and controls the start of timing.
  13. The home gateway device according to claim 9, wherein the home gateway device further receives downlink data sent by the control terminal by using a second communication protocol supported by the second communication module; the controller also identifies the downlink data, sends the downlink data to corresponding household equipment by adopting a first communication protocol supported by the first communication module, and controls the household equipment to execute operation corresponding to the downlink data.
  14. The home gateway device of claim 9 wherein said controller is further configured to establish a communication network including at least one home device.
  15. The home gateway device of claim 14, wherein said controller is further configured to establish a communication network including at least one home device, comprising: the controller receives a network access request sent by at least one piece of home equipment, processes the network access request and allocates a network address for the home equipment sending the network access request.
  16. A home control system is characterized by comprising home gateway equipment, a control end and a plurality of home equipment; the home gateway device is in communication connection with the control terminal through a first communication network, and is in communication connection with the home devices through a second communication network; wherein the first communication network and the second communication network are different; the home gateway device further includes:
    the home gateway device receives uplink data sent by a plurality of home devices by adopting a first communication protocol supported by the first communication module;
    the controller is used for controlling the received uplink data to be cached in the memory; and
    a second communication module for performing a communication with the first communication module,
    the controller also judges whether the data volume of the uplink data cached in the memory reaches a preset transmission quantity;
    when the data amount of the uplink data buffered in the memory reaches a preset transmission amount, the controller controls to send all the uplink data buffered currently to the control end through a second communication protocol supported by the second communication module, and to clear the uplink data buffered in the memory.
  17. The home control system according to claim 16, wherein the home gateway device further comprises a timer, and the controller further controls the timer to start timing from when the first uplink data is buffered;
    when the data volume of the uplink data cached in the memory reaches a preset transmission quantity but the timing duration does not reach a preset time, the controller controls all the uplink data cached currently to be sent to the control terminal through a second communication protocol supported by the second communication module, and controls the timer to be cleared and the uplink data cached in the memory to be cleared;
    when the data volume of the uplink data cached in the memory does not reach the preset transmission quantity, the controller also judges whether the timing duration reaches the preset time; and when the timing duration reaches a preset time, the controller controls all the uplink data which are cached at present to be sent to the control terminal through a second communication protocol supported by the second communication module, and controls timing zero clearing and uplink data cached in the memory to be cleared.
  18. The home control system of claim 16, wherein said first communication network is a Zigbee network; the second communication network is a WiFi network.
  19. The home control system of claim 16, wherein the controller starts timing from a time when the first uplink data is buffered, specifically comprising: and the controller determines whether buffer data exists in the current memory when controlling the received uplink data to be buffered to the memory, and if not, determines that the currently buffered uplink data is the first uplink data buffered, and controls to start timing.
  20. The home control system according to claim 16, wherein the home gateway device further receives downlink data sent by the control terminal by using a second communication protocol supported by the second communication module; the controller also identifies the downlink data, sends the downlink data to corresponding household equipment by adopting a first communication protocol supported by the first communication module, and controls the household equipment to execute operation corresponding to the downlink data.
CN201880096020.XA 2018-11-19 2018-11-19 Communication method, home gateway equipment and home control system Pending CN112703816A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
PCT/CN2018/116187 WO2020102939A1 (en) 2018-11-19 2018-11-19 Communication method, home gateway device and home control system

Publications (1)

Publication Number Publication Date
CN112703816A true CN112703816A (en) 2021-04-23

Family

ID=70773201

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201880096020.XA Pending CN112703816A (en) 2018-11-19 2018-11-19 Communication method, home gateway equipment and home control system

Country Status (2)

Country Link
CN (1) CN112703816A (en)
WO (1) WO2020102939A1 (en)

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102413513A (en) * 2011-12-01 2012-04-11 电信科学技术研究院 Cache state reporting method and equipment
AU2016100686A4 (en) * 2016-05-20 2016-06-16 Macau University Of Science And Technology Method for optimizing throughput of a network
CN207380545U (en) * 2017-11-22 2018-05-18 广州市天舟通信技术有限公司 A kind of intelligent domestic gateway and intelligent home control system
CN108829616A (en) * 2018-06-15 2018-11-16 佛山长意云信息技术有限公司 A kind of data cached management method, device, computer equipment and storage medium

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102413513A (en) * 2011-12-01 2012-04-11 电信科学技术研究院 Cache state reporting method and equipment
AU2016100686A4 (en) * 2016-05-20 2016-06-16 Macau University Of Science And Technology Method for optimizing throughput of a network
CN207380545U (en) * 2017-11-22 2018-05-18 广州市天舟通信技术有限公司 A kind of intelligent domestic gateway and intelligent home control system
CN108829616A (en) * 2018-06-15 2018-11-16 佛山长意云信息技术有限公司 A kind of data cached management method, device, computer equipment and storage medium

Also Published As

Publication number Publication date
WO2020102939A1 (en) 2020-05-28

Similar Documents

Publication Publication Date Title
CN105471686B (en) Terminal control method, device and system
CN102630312B (en) Mobile computing device and the method with intelligently pushing management
CN101859134B (en) Intelligent home appliance remote control system and method
US9872128B2 (en) Method of establishing stable Piconet and system of establishment of stable Piconet based on bluetooth
CN201383100Y (en) Intelligent household remote control system
EP2479925A1 (en) Dynamic power management in a communications device
CN110266794A (en) Method for subscribing and system are acted on behalf of based on MQTT server
CN102006192A (en) Control system and control method for digital family network equipment
CN103338144A (en) Session data synchronization method and session data synchronization device
CN105099836A (en) BLE intelligent node control method and system
US9762445B2 (en) Device and method for automatic switching of communication protocol of network devices based on user action
CN108462742B (en) Gateway coordinator for smart home and conflict coordination method in gateway coordinator
KR100730613B1 (en) Home-server for controlling home-network system and method thereof
CN112703816A (en) Communication method, home gateway equipment and home control system
CN109712380A (en) Find method and device, the storage medium, terminal device, remote control equipment of remote control equipment
CN203025530U (en) Real-time communication type intelligent home control system
CN101436953A (en) Management method and processing module for on-line announcement message of network appliance
WO2017028568A1 (en) Smart apparatus control method and device utilizing same
CN110958658A (en) Communication equipment and method
CN111356158A (en) Communication method and system for smart home and communication base station
CN109673044A (en) Communication control method, chip, the gateway apparatus of chip
CN104616480A (en) NFC (near field communication) based infrared remote control setting method and system
CN109640306A (en) Control method, storage medium, gateway apparatus and system based on gateway apparatus
CN106027339B (en) The monitoring method of household appliance, apparatus and system
CN109995620A (en) A kind of method and smart home device controlling smart home device

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
WD01 Invention patent application deemed withdrawn after publication

Application publication date: 20210423

WD01 Invention patent application deemed withdrawn after publication