WO2020102939A1 - 通信方法、家居网关设备及家居控制系统 - Google Patents

通信方法、家居网关设备及家居控制系统

Info

Publication number
WO2020102939A1
WO2020102939A1 PCT/CN2018/116187 CN2018116187W WO2020102939A1 WO 2020102939 A1 WO2020102939 A1 WO 2020102939A1 CN 2018116187 W CN2018116187 W CN 2018116187W WO 2020102939 A1 WO2020102939 A1 WO 2020102939A1
Authority
WO
WIPO (PCT)
Prior art keywords
uplink data
communication
home
memory
buffered
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.)
Ceased
Application number
PCT/CN2018/116187
Other languages
English (en)
French (fr)
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/zh
Priority to CN201880096020.XA priority patent/CN112703816A/zh
Publication of WO2020102939A1 publication Critical patent/WO2020102939A1/zh
Anticipated expiration legal-status Critical
Ceased legal-status Critical Current

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W28/00Network traffic management; Network 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

Definitions

  • This application relates to the field of Internet of Things technology, and in particular, to a communication method, a home gateway device, and a home control system.
  • Home appliances usually refer to some household appliances, such as air conditioners, TVs, etc., and can also include some remote control switches Daily necessities, for example, lights, curtains, doors, etc.
  • a control terminal for example, a mobile phone
  • the smart home gateway cannot process the uplink data in time, and packet loss and communication delay will occur.
  • the embodiments of the present application disclose a communication method, a home gateway device, and a home control system, which can improve communication reliability and communication efficiency.
  • a communication method disclosed in an embodiment of the present application is applied to a home gateway device.
  • the home gateway device includes a first communication module, a memory, and a second communication module; the communication method includes the following steps:
  • control to send all the currently buffered uplink data to the second communication protocol supported by the second communication module to The control end, and clear the uplink data buffered in the memory.
  • a home gateway device disclosed in an embodiment of the present application communicates with a control terminal and a home device through a network; the home gateway device includes:
  • a first communication module uses the first communication protocol supported by the first communication module to receive uplink data sent by multiple home devices;
  • a controller to buffer the received uplink data in the memory
  • the controller also determines whether the data amount of the uplink data buffered in the memory reaches a preset transmission amount
  • the controller controls to pass all the currently buffered uplink data through the second supported by the second communication module
  • the communication protocol is sent to the control terminal, and the upstream data buffered in the memory is cleared.
  • a home control system disclosed in an embodiment of the present application includes a home gateway device, a control terminal, and a plurality of home devices; the home gateway device and the control terminal are communicatively connected through a first communication network, and are connected to the multiple The home device communicates through the second communication network; wherein the first communication network is different from the second communication network; the home gateway device further includes:
  • a first communication module uses the first communication protocol supported by the first communication module to receive uplink data sent by multiple home devices;
  • a controller to control the buffering of the received uplink data in the memory
  • the controller also determines whether the data amount of the uplink data buffered in the memory reaches a preset transmission amount
  • the controller controls to pass all the currently buffered uplink data through the second supported by the second communication module
  • the communication protocol is sent to the control terminal, and the upstream data buffered in the memory is cleared.
  • smart home gateway and home control system of the present application since the received uplink data is cached in the memory, when the data amount of the uplink data that has been cached in the memory reaches a preset transmission amount , Control to send all the currently buffered uplink data to the control terminal through the second communication protocol supported by the second communication module, and clear the uplink data cached in the memory, which can be alleviated
  • the communication pressure of the smart home gateway avoids data loss and improves the reliability and efficiency of communication.
  • FIG. 1 is a schematic structural diagram of a smart home system disclosed in an embodiment of the present application.
  • FIG. 2 is a block diagram of the hardware structure of a home gateway device disclosed in an embodiment of the present application.
  • FIG. 3 is a flowchart of steps of a communication method disclosed in an embodiment of the present application.
  • FIG. 5 is a flowchart of steps of a communication method disclosed in yet another embodiment of the present application.
  • FIG. 6 is a flowchart of steps in a communication method disclosed in another embodiment of the present application.
  • FIG. 1 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 terminal 200, and multiple home devices 300.
  • the control terminal 200 includes but is not limited to mobile phones, tablet computers and PDAs.
  • the home appliances 300 include but are not limited to smart refrigerators, smart TVs, smart lighting, smart switches, smart doors and windows, smart door locks and smart sensors.
  • the home gateway device 100 communicates with the control terminal 200 through a first communication network, and communicates with the multiple home devices 300 through a second communication network.
  • the first communication network and the second communication network are different.
  • the first communication network is a WiFi communication network
  • the second communication network is a Zigbee (Zigbee) communication network.
  • the home control system 1000 may further include a router (not shown) and a server (not shown), and the home gateway device 100 sequentially passes through the router and the server and the control terminal 200 Communicate.
  • the first communication network may also be a Bluetooth communication network, an infrared communication network, a telephone communication network such as 3G / 4G / 5G, etc.
  • the home gateway device 100 may also directly communicate with the control terminal 200 through Bluetooth or an infrared communication network, or Communicate directly with the control terminal 200 through a telephone communication network.
  • FIG. 2 is a structural block diagram of a home gateway device 100 disclosed in 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.
  • the first communication module 10 is different from the second communication module 50.
  • FIG. 2 is only an example of the home gateway device 100 and does not constitute a limitation on the home gateway device 100.
  • the home gateway device 100 may include More or fewer components, or a combination of certain components, or different components, for example, the home gateway device 100 may further include input and output devices, network access devices, and so on.
  • the controller 20 may be a central processing unit (Central Processing Unit, CPU) or a micro control unit (Microcontroller Unit, MCU).
  • the controller 20 is a control center of the smart home gateway 100, and uses various interfaces and lines to connect the various parts of the entire smart home gateway 100.
  • the memory 30 may be used to store computer programs and / or modules.
  • the controller 20 executes or executes the computer programs and / or modules stored in the memory 30 and calls the data stored in the memory 30 to achieve The various functions of the smart home gateway 100 are described.
  • the memory 30 may mainly include a program storage area and a data cache area, wherein the program storage area may store programs required for multiple functions (such as a program used to implement a certain method), etc .; the data cache area may cache multiple homes Various types of information sent by the device 300.
  • 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 memory card (Smart, Media, Card, SMC), and a secure digital (Secure Digital, SD) card, flash memory card (Flash), multiple disk storage devices, flash memory devices, or other volatile solid-state storage devices.
  • a non-volatile memory such as a hard disk, a memory, a plug-in hard disk, a smart memory card (Smart, Media, Card, SMC), and a secure digital (Secure Digital, SD) card, flash memory card (Flash), multiple disk storage devices, flash memory devices, or other volatile solid-state storage devices.
  • a non-volatile memory such as a hard disk, a memory, a plug-in hard disk, a smart memory card (Smart, Media, Card, SMC), and a secure digital (Secure Digital, SD) card, flash memory card (Flash),
  • the first communication module 10 is used to communicate with the plurality of home appliances 300.
  • the home gateway device 100 uses the first communication protocol supported by the first communication module 10 to receive the uplink data sent by the multiple home devices 300.
  • the controller 20 is used to control the buffering of the received uplink data into the memory 30.
  • the controller 20 is also used 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 a predetermined amount
  • the controller 20 also 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 50, and clear the cache The uplink data in the memory 30.
  • the protocol conversion module 40 converts all the currently buffered uplink data conforming to the first communication protocol standard into uplink data conforming to the second communication protocol standard and sends it to the control terminal 200 through the second communication module 50 .
  • the uplink data may include current status information, usage status information, etc. of each home device 300.
  • the status information may include the on / off status of the smart switch, the current temperature of the refrigerator compartment and freezer compartment of the smart refrigerator, the volume status and color status of the smart TV, and so on.
  • the first communication module 10 is a low-power, low-cost, multi-node Zigbee module, which can achieve the purpose of achieving communication with several home appliances 300 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 the Zigbee communication protocol; the second communication protocol is the MQTT protocol.
  • each home device 300 also includes the same communication module as the first communication module 10, such as the Zigbee module in this embodiment.
  • the control terminal 200 includes the same communication module as the second communication module 50, such as a WiFi module.
  • 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.
  • the protocol conversion module 40 is used to convert the uplink data of the Zigbee protocol to the uplink data of the WiFi protocol. That is, the protocol conversion module 40 parses the Zigbee protocol frame to convert to a WiFi data frame, and then sends the encapsulated WiFi data frame.
  • the protocol conversion module 40 may be a protocol conversion chip, and the protocol conversion chip has at least one first communication terminal and at least one second communication terminal.
  • the protocol conversion chip may be a UART (Universal Asynchronous Receiver / Transmitter, Universal Asynchronous Receiver / Transmitter) interface chip or an SPI (Serial Peripheral Interface) interface chip. That is, the ZigBee module and the WiFi module perform data transmission through the UART / SPI interface chip.
  • the controller 20 may also integrate a protocol conversion function to convert the communication format between the first communication module 10 and the second communication module 50 by performing protocol conversion processing.
  • the smart home gateway 100 buffers the received uplink data into the memory 30, and controls when the data amount of the uplink data buffered in the memory 30 reaches a preset transmission amount Send all the currently buffered uplink data to the control terminal through the second communication protocol supported by the second communication module 50, and clear the uplink data cached in the memory 30, which can be alleviated
  • the communication pressure of the smart home gateway 100 avoids data loss, thereby improving communication efficiency and communication reliability.
  • the home gateway device 100 further includes a timer; the controller 20 controls the timer to start timing from the moment when the first uplink data is buffered.
  • the control passes all the currently buffered uplink data through the second
  • the second communication protocol supported by the communication module is sent to the control terminal 200, and the timer is controlled to be cleared, and the upstream data buffered in the memory is cleared.
  • the controller 20 When the data amount of the uplink data buffered in the memory 30 does not reach the preset transmission amount, the controller 20 also determines whether the timing duration reaches the preset time; when the timing duration reaches the 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 the timing to be cleared and the cache is cleared in the The uplink data in the memory 30.
  • the controller 20 starts timing from the moment when the first uplink data is buffered, which may specifically include: when the controller 20 controls the buffering of the received uplink data to the memory 30, it determines whether there is currently cached data in the memory 10, if If not, it is determined that the currently buffered uplink data is the first buffered uplink data, and control starts timing.
  • the controller includes a timer and has a timing function.
  • the timer may exist independently and be controlled by the controller 20 to start counting, stop counting, or clear.
  • the controller 20 performs timing, stops timing, or clears by calling a timing program.
  • the startup of the second communication module can be reduced compared to the instant sending method The number of times, that is, the number of times of establishing / disconnecting the second communication network is reduced, thereby reducing the time used for communication and improving the communication efficiency.
  • the communication protocol of the control terminal 200 of the smart home gateway 100 uses the MQTT protocol.
  • the MQTT protocol is implemented based on the TCP protocol. Therefore, a TCP connection needs to be established for each message sent through the MQTT.
  • a complete TCP connection requires 7 data exchanges from opening to closing without sending data, that is, each complete TCP connection includes three parts: establishing a connection, sending data, and disconnecting, and establishing a connection Four data exchanges are required, and three data exchanges are required to disconnect. Therefore, a total of seven data exchanges are required.
  • there is a 1000-node zigbee network that generates 200 state information per second, then an average of 10 state information is generated every 50 ms.
  • one TCP data packet can carry more than 600 zigbee status information, when there are more nodes on the zigbee network, that is, the number of home devices 300 is larger, the communication efficiency using the technical solution of the present application is higher.
  • the smart home gateway 100 also uses the second communication protocol supported by the second communication module 50 to receive the downlink data sent by the control terminal 200.
  • the controller 20 is also used to identify the downlink data and use the first communication protocol supported by the first communication module 10 to send the downlink data to the corresponding home device 300 and control the corresponding home device 300 Perform operations corresponding to the downlink data.
  • the user can issue a corresponding instruction through the control terminal 200 to control the corresponding home device 300 to perform the corresponding function. For example, the user can issue an instruction to turn on the light through the control terminal 200.
  • the controller 20 After the smart home gateway 100 receives the instruction through the second communication module 50, the controller 20 recognizes the instruction , And then control to convert the instruction to comply with the communication standard of the first communication module 10 and send it to the smart switch, and then perform the action of turning on the light.
  • the home gateway device 100 before the smart home gateway 100 receives the uplink data sent by 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 refers to the network used by the first communication module 10.
  • the controller 20 receives a network access request from at least one home device 300, processes the network access request, and allocates a network to the home device 300 that issues the network access request Address (Identification, ID), the home appliance 300 can join the communication network after receiving the network address.
  • ID network access request Address
  • FIG. 3 is a flowchart of steps of a communication method disclosed in an embodiment of the present application.
  • the communication method is applied to the home gateway device 100, and the home gateway device 100 communicates 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 includes the following steps:
  • Step S31 Use the first communication protocol supported by the first communication module 10 to receive the uplink data sent by the multiple home devices 300.
  • step S32 the control buffers the received uplink data into the memory 20.
  • Step S33 Determine whether the data amount of the uplink data buffered in the memory reaches a preset transmission amount; if so, perform step S34.
  • Step S34 Control to send all the currently buffered uplink data to the control terminal 200 through the second communication protocol supported by the second communication module 50, and clear the uplink data buffered in the memory 30.
  • the first communication protocol is a protocol format conforming to the communication protocol standard of the first communication module 10; the second communication protocol is a protocol conforming to the communication protocol standard of the second communication module 50 format.
  • the uplink data may include current status information, usage status information, etc. of each home device 300.
  • the status information may include the on / off status of the smart switch, the current temperature of the refrigerator compartment and freezer compartment of the smart refrigerator, the volume status and color status of the smart TV, and so on.
  • the first communication protocol is the Zigbee communication protocol; the second communication protocol is the MQTT communication protocol.
  • 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 When the data amount of the uplink data buffered in the memory 30 reaches a preset transmission amount, control to send all the currently buffered uplink data to the all through the second communication protocol supported by the second communication module 50
  • the control terminal 200 clears the uplink data cached in the memory 30, thereby alleviating the communication pressure of the smart home gateway 100, and avoiding data loss, which improves the reliability of communication.
  • the communication method includes the following steps before step S32 compared to the communication method in FIG. 3:
  • Step S41 Start counting from the moment when the first uplink data is buffered.
  • the timing starts from the moment when the first uplink data is cached, which specifically includes: when buffering the received uplink data to the memory 20, determining whether there is currently cached data in the memory 20, if not, Then, it is determined that the currently buffered uplink data is the first buffered uplink data, and control starts timing.
  • step S341 is executed when the judgment result of step S33 is “Yes”, where step S341 is different from step S34 in that the cached upstream data is cleared and the timing is also cleared. Further, in the case where the judgment result of step S33 is "No”, the following steps are also included:
  • Step S42 Determine whether the timing duration reaches a preset time. If yes, go to step S341; if no, go to step S33.
  • starting the second communication module 50 to send the buffered data to the control terminal 200 after the preset time arrives can reduce the number of startups of the second communication module 50 and improve the communication efficiency.
  • the communication method includes the following steps before step S31 compared to the method in FIG. 3:
  • Step S51 Establish a communication network including at least one home device 300.
  • the establishment of a communication network including at least one home device 300 specifically includes: receiving a network access request sent by at least one home device 300; processing the network access request and assigning it to the home device 300 that issued the network access request website address.
  • the first communication module 10 can receive uplink data through the communication network.
  • the buffer area needs to be emptied and the time that has been timed is cleared, so as to receive the uplink data sent by multiple home devices 300 next time Cache and retime.
  • the communication method further includes the following steps:
  • Step S61 Use the communication protocol supported by the second communication module 50 to receive the downlink data sent by the control terminal.
  • Step S62 Identify the downlink data, and use the first communication protocol supported by the first communication module 10 to send the downlink data to the corresponding home device 300, and control the corresponding home device 300 to perform The corresponding operation of the downstream data is described.
  • the user can issue a corresponding instruction through the control terminal 200 to control the corresponding home device 300 to perform the corresponding function.
  • the user can issue an instruction to turn on the light through the control terminal 200.
  • the controller 20 recognizes the instruction , And then control to convert the instruction to comply with the communication standard of the first communication module 10 and send it to the smart switch, and then perform the action of turning on the light.
  • the communication method provided in this application can be implemented in hardware or firmware, or can be used as software or computer code that can be stored in computer-readable storage media such as CD, ROM, RAM, floppy disk, hard disk, or magneto-optical disk, or can be Computer code 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 method described here can utilize a general-purpose computer or special processor or in a system such as ASIC or FPGA It is represented by software stored on a recording medium in programmable or dedicated hardware of the class.
  • a computer, processor, microprocessor, controller, or programmable hardware includes memory components, such as RAM, ROM, flash memory, etc., which are accessed when the computer, processor, or hardware implements the processing methods described herein
  • the memory component may store or receive the software or computer code.
  • the general-purpose computer accesses the code for implementing the processing shown here, the execution of the code converts the general-purpose computer into a dedicated computer for performing the processing shown here.
  • the computer-readable storage medium may be solid-state memory, memory card, optical disc, etc.
  • the computer-readable storage medium stores program instructions for the computer to call to execute the communication method shown in the present application.

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Data Exchanges In Wide-Area Networks (AREA)
  • Mobile Radio Communication Systems (AREA)

Abstract

本申请公开一种通信方法,应用于家居网关设备中,家居网关设备通过网络与控制端和家居设备进行通信连接;家居网关设备包括第一通信模块、存储器及第二通信模块;通信方法包括如下步骤:采用第一通信模块所支持的第一通信协议接收多个家居设备发送的上行数据;控制将接收到的上行数据缓存至存储器中;判断存储器中已缓存的上行数据的数据量是否达到预设的传输数量;当存储器中已缓存的上行数据的数据量达到预设的传输数量时,控制将当前已缓存的所有上行数据通过第二通信模块所支持的第二通信协议发送给控制端,且清除缓存在存储器中的上行数据。本申请还公开一种家居网关设备及家居控制系统。本申请能够提高通信效率和通信的可靠性。

Description

通信方法、家居网关设备及家居控制系统 技术领域
本申请涉及物联网技术领域,尤其涉及一种通信方法、家居网关设备及家居控制系统。
背景技术
随着家居智能化的不断发展,用户可以采用家居网关设备来实现对家居设备的统一管理和控制,家居设备通常指的是一些家用电器,例如,空调、电视等,也可以包括一些具有遥控开关的日常用品,例如,灯、窗帘、门等。例如,通过采用家居网关可以实现使用控制端(例如,手机)来控制家居设备以及接收各个家居设备上报的状态信息的功能。然而,由于家居设备的数量较多,若是同时上报状态信息,则智能家居网关无法及时对上行数据的进行处理,则会产生丢包、通信延时现象。
发明内容
本申请实施例公开一种通信方法、家居网关设备及家居控制系统,能够提高通信的可靠性及通信效率。
本申请实施例公开的一种通信方法,应用于家居网关设备中,所述家居网关设备包括第一通信模块、存储器及第二通信模块;所述通信方法包括如下步骤:
采用所述第一通信模块所支持的第一通信协议接收多个家居设备发送的上行数据;
控制将接收到的所述上行数据缓存至所述存储器中;
判断所述存储器中已缓存的所述上行数据的数据量是否达到预设的传输数量;
当所述存储器中已缓存的所述上行数据的数据量达到预设的传输数量时,控制将当前已缓存的所有所述上行数据通过所述第二通信模块所支持的第二通信协议发送给所述控制端,且清除缓存在所述存储器中的所述上行数据。
本申请实施例公开的一种家居网关设备,所述家居网关设备通过网络与控制端和家居设备进行通信连接;所述家居网关设备包括:
第一通信模块,所述家居网关设备采用所述第一通信模块所支持的第一通信协议接收多个家居设备发送的上行数据;
控制器,控制将接收到的所述上行数据缓存至所述存储器中;以及
第二通信模块;
所述控制器还判断所述存储器中已缓存的所述上行数据的数据量是否达到预设的传输数量;
当所述存储器中已缓存的所述上行数据的数据量达到预设的传输数量时,所述控制器控制将当前已缓存的所有所述上行数据通过所述第二通信模块所支持的第二通信协议发送给所述控制端,且清除缓存在所述存储器中的所述上行数据。
本申请实施例公开的一种家居控制系统,包括家居网关设备、控制端以及多个家居设备;所述家居网关设备与所述控制端通过第一通信网络进行通信连接,并与所述多个家居设备通过第二通信网络进行通信连接;其中,所述第一通信网络和所述第二通信网络不同;所述家居网关设备还包括:
第一通信模块,所述家居网关设备采用所述第一通信模块所支持的第一通信协议接收多个家居设备发送的上行数据;
控制器,控制将接收到的上行数据缓存至所述存储器中;以及
第二通信模块;
所述控制器还判断所述存储器中已缓存的所述上行数据的数据量是否达到预设的传输数量;
当所述存储器中已缓存的所述上行数据的数据量达到预设的传输数量时,所述控制器控制将当前已缓存的所有所述上行数据通过所述第二通信模块所支持的第二通信协议发送给所述控制端,且清除缓存在所述存储器中的所述上行数据。
本申请的通信方法、智能家居网关及家居控制系统,由于将接收到的上行数据缓存至所述存储器中,当所述存储器中已缓存的所述上行数据的数据量达到预设的传输数量时,控制将当前已缓存的所有所述上行数据通过所述第二通 信模块所支持的第二通信协议发送给所述控制端,且清除缓存在所述存储器中的所述上行数据,进而可以缓解所述智能家居网关的通信压力,且避免数据丢失的情况发生,提高了通信的可靠性及通信效率。
附图说明
为了更清楚地说明本申请实施例中的技术方案,下面将对实施例中所需要使用的附图作简单地介绍,显而易见地,下面描述中的附图仅仅是本申请的一些实施例,对于本领普通技术人员来讲,在不付出创造性劳动的前提下,还可以根据这些附图获得其他的附图。
图1为本申请一实施例中公开的智能家居系统的架构示意图。
图2为本申请一实施例中公开的家居网关设备的硬件结构框图。
图3为本申请一实施例中公开的通信方法的步骤流程图。
图4为本申请另一实施例中公开的通信方法的步骤流程图。
图5为本申请再一实施例中公开的通信方法的步骤流程图。
图6为本申请又一实施例中公开的通信方法的步骤流程图。
具体实施方式
下面将结合本申请实施例中的附图,对本申请实施例中的技术方案进行清楚、完整地描述,显然,所描述的实施例仅是本申请一部分实施例,而不是全部的实施例。基于本申请中的实施例,本领普通技术人员在没有做出创造性劳动前提下所获得的所有其他实施例,都属于本申请保护的范围。
需要说明的是,在本发明实施例中使用的术语是仅仅出于描述特定实施例的目的,而非旨在限制本发明。在本发明实施例和所附权利要求书中所使用的单数形式的“一种”、“所述”和“该”也旨在包括多数形式,除非上下文清楚地表示其他含义。还应当理解,本文中使用的术语“和/或”是指并包含一个或多个相关联的列出项目的任何或所有可能组合。
请参阅图1,其为本申请一实施例中的家居控制系统1000的架构示意图。所述家居控制系统1000包括家居网关设备100、控制端200以及多个家居设 备300。其中,所述控制端200包括但不限于手机、平板电脑及掌上电脑(PDA)等。所述家居设备300包括但不限于智能电冰箱、智能电视机、智能照明、智能开关、智能门窗、智能门锁及智能传感器等。
具体地,所述家居网关设备100与所述控制端200通过第一通信网络进行通信连接,并与所述多个家居设备300通过第二通信网络进行通信连接。其中,所述第一通信网络和所述第二通信网络不同。在本实施方式中,所述第一通信网络为WiFi通信网络,所述第二通信网络为Zigbee(紫蜂)通信网路。在其他实施方式中,所述家居控制系统1000还可以包括路由器(图未示)和服务器(图未示),所述家居网关设备100依次通过所述路由器和所述服务器与所述控制端200进行通信。所述第一通信网络还可以是蓝牙通信网络、红外通信网络及3G/4G/5G等电话通信网络等,所述家居网关设备100也可通过蓝牙、红外通信网络与控制端200直接通信,或通过电话通信网络与控制端200直接通信。
请再参阅图2,其为本申请一实施例公开的家居网关设备100的结构框图。所述家居网关设备100包括但不限于第一通信模块10、控制器20、存储器30、协议转换模块40以及第二通信模块50。其中,所述第一通信模块10与所述第二通信模块50不同。本领域技术人员应当理解的是,所述图2仅是所述家居网关设备100的示例,并不构成对所述家居网关设备100的限定,所述家居网关设备100可以包括比图1所示更多或更少的部件,或者组合某些部件,或者不同的部件,例如所述家居网关设备100还可以包括输入输出设备、网络接入设备等。
所述控制器20可以是中央处理单元(Central Processing Unit,CPU),还可以是微控制单元(Microcontroller Unit,MCU)。所述控制器20是所述智能家居网关100的控制中心,利用各种接口和线路连接整个所述智能家居网关100的各个部分。
所述存储器30可用于存储计算机程序和/或模块,所述控制器20通过运行或执行存储在所述存储器30内的计算机程序和/或模块,以及调用存储在存储器30内的数据,实现所述智能家居网关100的各种功能。所述存储器30可主要包括程序存储区和数据缓存区,其中,程序存储区可存储多个功能所需 的程序(比如实现某一方法所使用的程序)等;数据缓存区可缓存多个家居设备300发送的各类信息。
此外,所述存储器30可以包括高速随机存取存储器,还可以包括非易失性存储器,例如硬盘、内存、插接式硬盘,智能存储卡(Smart Media Card,SMC),安全数字(Secure Digital,SD)卡,闪存卡(Flash Card)、多个磁盘存储器件、闪存器件、或其他易失性固态存储器件。
具体地,所述第一通信模块10用于与所述多个家居设备300进行通信。所述家居网关设备100采用所述第一通信模块10所支持的第一通信协议接收所述多个家居设备300发送的上行数据。所述控制器20用于控制将接收到的上行数据缓存至所述存储器30中。所述控制器20还用于判断所述存储器30中已缓存的所述上行数据的数据量是否达到预设的传输数量;当所述存储器30中已缓存的所述上行数据的数据量达到预设的传输数量时,所述控制器20还控制将当前已缓存的所有所述上行数据通过所述第二通信模块50所支持的第二通信协议发送给所述控制端200,且清除缓存在所述存储器30中的所述上行数据。其中,所述协议转换模块40将当前已缓存的符合第一通信协议标准的所有上行数据转换为符合第二通信协议标准的上行数据并通过所述第二通信模块50发送至所述控制端200。
所述上行数据可以包括每个家居设备300的当前状态信息、使用状态信息等。例如,状态信息可以包括智能开关的开启/关闭状态、智能电冰箱的冷藏室和冷冻室的当前温度、智能电视机的音量状态及色彩状态等。
在本实施方式中,所述第一通信模块10为低功耗、低成本、多节点的Zigbee模块,进而能够实现与若干家居设备300实现通信的目的且通信稳定。所述第二通信模块50为传输速度快且通信距离长的WiFi模块。所述第一通信协议为Zigbee通信协议;所述第二通信协议为MQTT协议。需要说明的是,为了能够与所述网关100进行通信,每个家居设备300也包括与所述第一通信模块10相同的通信模块,例如本实施方式中的Zigbee模块。所述控制端200包括与所述第二通信模块50相同的通信模块,例如WiFi模块。所述预设时间可以为50ms。在其他实施方式中,所述预设时间可以依据具体的设计需求而进行设定,并不限于此。
可以理解,由于所述第一通信模块10和所述第二通信模块50不同,需要对接收到的上行数据的格式进行协议转换后才能通过所述第二通信模块50发送。因此,在本实施方式中,所述协议转换模块40用于将Zigbee协议的上行数据转换为WiFi协议的上行数据。即,所述协议转换模块40将Zigbee协议帧进行解析以转换为WiFi数据帧,再将封装的WiFi数据帧进行发送。
在一些实施例中,所述协议转换模块40可以是协议转换芯片,协议转换芯片具有至少一个第一通信端子和至少一个第二通信端子。具体地,协议转换芯片可以为UART(Universal asynchronous receiver/transmitter,通用异步收发传输器)接口芯片或者SPI(Serial peripheral interface,串行外设接口)接口芯片。即,所述ZigBee模块和所述WiFi模块通过UART/SPI接口芯片进行数据传输。
在另一些实施例中,所述控制器20还可以整合有协议转换功能,通过进行协议转换处理而将第一通信模块10和第二通信模块50之间的通信格式进行转换。
由于家居设备300的数量较多,若是同时上报上行数据中的状态信息,则家居网关设备100无法及时对Zigbee数据的进行处理,则会产生丢包、通信延时现象。本申请中的智能家居网关100,由于将接收到的上行数据缓存至所述存储器30中,并当所述存储器30中已缓存的所述上行数据的数据量达到预设的传输数量时,控制将当前已缓存的所有所述上行数据通过所述第二通信模块50所支持的第二通信协议发送给所述控制端,且清除缓存在所述存储器30中的所述上行数据,进而可以缓解所述智能家居网关100的通信压力,且避免数据丢失的情况发生,从而提高了通信效率和通信的可靠性。
在一些实施方式中,所述家居网关设备100还包括计时器;所述控制器20控制所述计时器从缓存第一个上行数据时刻开始进行计时。当所述存储器30中已缓存的所述上行数据的数据量达到预设的传输数量但所述计时时长未达到预设时间时,控制将当前已缓存的所有所述上行数据通过所述第二通信模块所支持的第二通信协议发送给所述控制端200,并控制所述计时器清零,以及清除缓存在所述存储器中的所述上行数据。当所述存储器30中已缓存的所述上行数据的数据量未达到预设的传输数量时,所述控制器20还判断计时时长是否达到预设时间;当所述计时时长达到预设时间时,所述控制器20控制 将当前已缓存的所有的所述上行数据通过所述第二通信模块所支持的第二通信协议发送给所述控制端200,并控制计时清零且清除缓存在所述存储器30中的所述上行数据。
所述控制器20从缓存第一个上行数据时刻开始进行计时,可具体包括:控制器20控制将接收到的上行数据缓存至所述存储器30时,确定当前存储器10中是否有缓存数据,如果没有,则确定当前缓存的上行数据为缓存的第一个上行数据,并控制开始计时。
在本实施方式中,所述控制器包括有计时器,具有计时功能。在其他实施方式中,所述计时器可以独立存在并接受所述控制器20的控制以开始计时、停止计时或者清零。在一些实施例中,所述控制器20通过调用计时程序进行计时、停止计时或者清零。本实施例中,由于将接收到的上行数据缓存后,并当预设时间到达后才启动第二通信模块50来发送至控制端200,相对于即时发送的方法能够减少第二通信模块的启动次数,即减少第二通信网络的建立/断开连接的次数,从而减少了通信所使用的时间,提高了通信效率。
例如,智能家居网关100控制端200的通信协议使用的是MQTT协议,其中,MQTT协议是基于TCP协议实现的,因此,通过MQTT每发送一条消息即需要建立一次TCP连接。而一条完整的TCP连接在不发送数据的情况下,从打开到关闭需要进行7次数据交换,即,每一个完整的TCP连接包含建立连接、发送数据和断开连接三部分操作,而建立连接需要发生4次数据交换,断开连接需要发生3次数据交换,因此,共需要7次数据交换。假设有一个1000个节点的zigbee网络,每秒产生200个状态信息,则平均每50ms产生10个状态信息。若一次TCP数据交换时长为t(比如19ms),则10个状态信息在不进行缓存直接通过MQTT发送的情况下,耗时大约为10*7*t+10*t=80t=1520ms;而如果采用本申请的技术方案,通过在智能家居网关100中缓冲数据,每隔预设时间(比如50ms)发送一次数据,耗时大约为7*t+t+预设时间=8t+预设时间=170ms。如此可见,本申请可以提高通信效率。此外,由于一个TCP数据包可以携带超过600个zigbee状态信息,当zigbee网络的节点越多,即家居设备300的数量越多时,采用本申请的技术方案的通信效率越高。
在一些实施例中,所述智能家居网关100还采用所述第二通信模块50所支持的第二通信协议接收所述控制端200发送的下行数据。所述控制器20还用于对所述下行数据进行识别,并采用所述第一通信模块10所支持的第一通信协议将下行数据发送至对应的家居设备300,并控制对应的家居设备300执行与所述下行数据相应的操作。在本实施方式中,用户可以通过控制端200下发相应的指令以控制相应的家居设备300执行相应的功能。例如,用户可以通过所述控制端200下发开灯的指令,所述智能家居网关100通过所述第二通信模块50接收到该指令后,所述通过所述控制器20对该指令进行识别,然后控制将该指令转换成符合第一通信模块10的通信标准后发送至智能开关,进而执行开灯的动作。
在另一实施方式中,所述智能家居网关100通过所述第一通信模块10接收多个家居设备300发送的上行数据之前,所述家居网关设备100还建立包括至少一个家居设备300的通信网络。其中,该通信网络是指所述第一通信模块10所使用的网络。具体的,当所述智能家居网关100上电初始化后,所述控制器20接收至少一个家居设备300发出的入网请求,并对所述入网请求进行处理,为发出入网请求的家居设备300分配网络地址(Identification,ID),家居设备300收到网络地址后即可加入通信网络。
请再参阅图3,其为本申请一实施例公开的通信方法的步骤流程图。所述通信方法应用于家居网关设备100中,所述家居网关设备100通过网络与控制端200和家居设备300进行通信连接。所述家居网关设备100包括第一通信模块10、存储器20及第二通信模块50。所述通信方法包括如下步骤:
步骤S31,采用所述第一通信模块10所支持的第一通信协议接收多个家居设备300发送的上行数据。
步骤S32,控制将接收到的上行数据缓存至所述存储器20中。
步骤S33,判断所述存储器中已缓存的所述上行数据的数据量是否达到预设的传输数量;若是,则执行步骤S34。
步骤S34,控制将当前已缓存的所有上行数据通过所述第二通信模块50所支持的第二通信协议发送给所述控制端200,且清除缓存在所述存储器30中的所述上行数据。
在一些实施方式中,所述第一通信协议为符合所述第一通信模块10的通信协议标准的协议格式;所述第二通信协议为符合所述第二通信模块50的通信协议标准的协议格式。进一步地,上行数据可以包括每个家居设备300的当前状态信息、使用状态信息等。例如,状态信息可以包括智能开关的开启/关闭状态、智能电冰箱的冷藏室和冷冻室的当前温度、智能电视机的音量状态及色彩状态等。
在一些实施方式中,所述第一通信协议为Zigbee通信协议;所述第二通信协议为MQTT通信协议。
本申请中的通信方法,由于将接收到的上行数据缓存至所述存储器30中,并判断所述存储器30中已缓存的所述上行数据的数据量是否达到预设的传输数量;当所述存储器30中已缓存的所述上行数据的数据量达到预设的传输数量时,控制将当前已缓存的所有所述上行数据通过所述第二通信模块50所支持的第二通信协议发送给所述控制端200,且清除缓存在所述存储器30中的所述上行数据,进而可以缓解所述智能家居网关100的通信压力,且避免数据丢失的情况发生,提高了通信的可靠性。
请再参阅图4,在一些实施方式中,所述通信方法较之图3中通信方法在步骤S32之前,还包括如下步骤:
步骤S41,从缓存第一个上行数据的时刻开始计时。
在一些实施方式中,所述从缓存第一上行数据的时刻开始计时,具体包括:控制将接收到的上行数据缓存至所述存储器20时,确定当前存储器20中是否有缓存数据,如果没有,则确定当前缓存的上行数据为第一个缓存的上行数据,并控制开始计时。
在本实施方式中,在步骤S33的判断结果为“是”的情况下执行步骤S341,其中,步骤S341与步骤S34不同的是,在清除缓存的上行数据的同时还控制计时清零。进一步地,在步骤S33的判断结果为“否”的情况下,还包括如下步骤:
步骤S42,判断所述计时时长是否达到预设时间。若是,则执行步骤S341;若否,则执行步骤S33。
如此,在预设时间到达后启动第二通信模块50将已缓存的数据发送至控 制端200能够减少第二通信模块50的启动次数,提高通信效率。
请再参阅图5,在一些实施方式中,所述通信方法较之图3中方法在步骤S31之前,还包括如下步骤:
步骤S51,建立包括至少一个家居设备300的通信网络。
在一些实施方式中,所述建立包括至少一个家居设备300的通信网络,具体包括:接收至少一个家居设备300发送的入网请求;对所述入网请求进行处理并为发出入网请求的家居设备300分配网络地址。当所述通信网络建立后,所述第一通信模块10即可通过所述通信网络接收上行数据。
需要说明的是,将已发送的缓存于数据缓存区中的上行数据发送后还需要清空缓存区以及将已经计时的时间清零,以便下次接收多个家居设备300所发送的上行数据并进行缓存和重新计时。
请在参阅图6,在一些实施方式中,所述通信方法还包括如下步骤:
步骤S61,采用所述第二通信模块50所支持的通信协议接收控制端发送的下行数据。
步骤S62,对所述下行数据进行识别,并采用所述第一通信模块10所支持的第一通信协议将所述下行数据发送至对应的家居设备300,并控制对应的家居设备300执行与所述下行数据相应的操作。
在本实施方式中,用户可以通过控制端200下发相应的指令以控制相应的家居设备300执行相应的功能。例如,用户可以通过所述控制端200下发开灯的指令,所述智能家居网关100通过所述第二通信模块50接收到该指令后,所述通过所述控制器20对该指令进行识别,然后控制将该指令转换成符合第一通信模块10的通信标准后发送至智能开关,进而执行开灯的动作。
需要说明的是,对于前述的各个方法实施例,为了简单描述,故将其都表述为一系列的动作组合,但是本领技术人员应该知悉,本申请并不受所描述的动作顺序的限制,因为依据本申请,某一些步骤可以采用其他顺序或者同时进行。其次,本领技术人员也应该知悉,说明书中所描述的实施例均属于优选实施例,所涉及的动作和模块并不一定是本申请所必须的。
在上述实施例中,对各个实施例的描述都各有侧重,某个实施例中没有详细描述的部分,可以参见其他实施例的相关描述。
本申请实施例方法中的步骤可以根据实际需要进行顺序调整、合并和删减。
本申请提供的通信方法可以在硬件、固件中实施,或者可以作为可以存储在例如CD、ROM、RAM、软盘、硬盘或磁光盘的等计算机可读存储介质中的软件或计算机代码,或者可以作为原始存储在远程记录介质或非瞬时的机器可读介质上、通过网络下载并且存储在本地记录介质中的计算机代码,从而这里描述的方法可以利用通用计算机或特殊处理器或在诸如ASIC或FPGA之类的可编程或专用硬件中以存储在记录介质上的软件来呈现。如本领能够理解的,计算机、处理器、微处理器、控制器或可编程硬件包括存储器组件,例如,RAM、ROM、闪存等,当计算机、处理器或硬件实施这里描述的处理方法而存取和执行软件或计算机代码时,存储器组件可以存储或接收软件或计算机代码。另外,当通用计算机存取用于实施这里示出的处理的代码时,代码的执行将通用计算机转换为用于执行这里示出的处理的专用计算机。
其中,所述计算机可读存储介质可为固态存储器、存储卡、光碟等。所述计算机可读存储介质存储有程序指令而供计算机调用后执行本申请所示的通信方法。
以上对本申请实施例进行了详细介绍,本文中应用了具体个例对本申请的原理及实施例进行了阐述,以上实施例的说明只是用于帮助理解本申请的方法及其核心思想;同时,对于本领的一般技术人员,依据本申请的思想,在具体实施例及应用范围上均会有改变之处,综上所述,本说明书内容不应理解为对本申请的限制。

Claims (20)

  1. 一种通信方法,应用于家居网关设备中,所述家居网关设备通过网络与控制端和家居设备进行通信连接,所述家居网关设备包括第一通信模块、存储器及第二通信模块;其特征在于,所述通信方法包括如下步骤:
    采用所述第一通信模块所支持的第一通信协议接收多个家居设备发送的上行数据;
    控制将接收到的所述上行数据缓存至所述存储器中;
    判断所述存储器中已缓存的所述上行数据的数据量是否达到预设的传输数量;
    当所述存储器中已缓存的所述上行数据的数据量达到预设的传输数量时,控制将当前已缓存的所有所述上行数据通过所述第二通信模块所支持的第二通信协议发送给所述控制端,且清除缓存在所述存储器中的所述上行数据。
  2. 如权利要求1所述的通信方法,其特征在于,所述家居网关设备还包括计时器,所述通信方法还包括步骤:
    从缓存第一个所述上行数据时控制所述计时器开始计时,并判断所述计时器所计时长是否达到预设时间;
    当所述存储器中已缓存的所述上行数据的数据量达到预设的传输数量但所述计时时长未达到预设时间时,控制将当前已缓存的所有所述上行数据通过所述第二通信模块所支持的第二通信协议发送给所述控制端,并控制所述计时器清零,以及清除缓存在所述存储器中的所述上行数据。
  3. 如权利要求2所述的通信方法,其特征在于,还包括如下步骤:
    当所述存储器中已缓存的上行数据的数据量未达到预设的传输数量且所述计时时长达到预设时间时,控制将当前已缓存的所有的所述上行数据通过所述第二通信模块所支持的第二通信协议发送给所述控制端,并控制计时清零以及清除缓存在所述存储器中的所述上行数据。
  4. 如权利要求1所述的通信方法,其特征在于,所述第一通信协议为Zigbee通信协议;所述第二通信协议为MQTT通信协议。
  5. 如权利要求2所述的通信方法,其特征在于,所述从缓存第一个所述上行数据的时刻开始计时,具体包括:控制将接收到的上行数据缓存至所述存 储器时,确定当前存储器中是否有缓存数据,如果没有,则确定当前缓存的上行数据为第一个缓存的上行数据,并控制开始计时。
  6. 如权利要求1中所述的通信方法,其特征在于,所述通信方法还包括:
    采用所述第二通信模块所支持的第二通信协议接收所述控制端发送的下行数据;
    对所述下行数据进行识别,并采用所述第一通信模块所支持的第一通信协议将所述下行数据发送至对应的家居设备,并控制所述家居设备执行与所述下行数据相应的操作。
  7. 如权利要求1所述的通信方法,其特征在于,所述通信方法在所述采用所述第一通信模块所支持的第一通信协议接收多个家居设备发送的上行数据之前,还包括:
    建立包括至少一个家居设备的通信网络。
  8. 如权利要求7所述的通信方法,其特征在于,所述建立包括至少一个家居设备的通信网络,包括:
    接收至少一个家居设备发送的入网请求;
    对所述入网请求进行处理并为发出入网请求的家居设备分配网络地址。
  9. 一种家居网关设备,包括存储器;所述家居网关设备通过网络与控制端和家居设备进行通信连接;其特征在于,所述家居网关设备包括:
    第一通信模块,所述家居网关设备采用所述第一通信模块所支持的第一通信协议接收多个家居设备发送的上行数据;
    控制器,控制将接收到的所述上行数据缓存至所述存储器中;以及
    第二通信模块;
    所述控制器还判断所述存储器中已缓存的所述上行数据的数据量是否达到预设的传输数量;
    当所述存储器中已缓存的所述上行数据的数据量达到预设的传输数量时,所述控制器控制将当前已缓存的所有所述上行数据通过所述第二通信模块所支持的第二通信协议发送给所述控制端,且清除缓存在所述存储器中的所述上行数据。
  10. 如权利要求9所述的家居网关设备,其特征在于,所述家居网关设备 还包括计时器,所述控制器还控制所述计时器从缓存第一个所述上行数据时开始计时;
    当所述存储器中已缓存的所述上行数据的数据量达到预设的传输数量但所述计时时长未达到预设时间时,所述控制器控制将当前已缓存的所有所述上行数据通过所述第二通信模块所支持的第二通信协议发送给所述控制端,并控制所述计时器清零且清除缓存在所述存储器中的所述上行数据;
    当所述存储器中已缓存的所述上行数据的数据量未达到预设的传输数量时,所述控制器还判断计时时长是否达到预设时间;当所述计时时长达到预设时间时,所述控制器控制将当前已缓存的所有的所述上行数据通过所述第二通信模块所支持的第二通信协议发送给所述控制端,并控制计时清零且清除缓存在所述存储器中的所述上行数据。
  11. 如权利要求9所述的家居网关设备,其特征在于,所述第一通信协议为Zigbee协议;所述第二通信协议为MQTT协议。
  12. 如权利要求10所述的家居网关设备,其特征在于,所述控制器从缓存第一个所述上行数据的时刻开始计时,具体包括:所述控制器控制将接收到的上行数据缓存至所述存储器时,确定当前存储器中是否有缓存数据,如果没有,则确定当前缓存的上行数据为第一个缓存的上行数据,并控制开始计时。
  13. 如权利要求9所述的家居网关设备,其特征在于,所述家居网关设备还采用所述第二通信模块所支持的第二通信协议接收所述控制端发送的下行数据;所述控制器还对所述下行数据进行识别,并采用所述第一通信模块所支持的第一通信协议将所述下行数据发送至对应的家居设备,并控制所述家居设备执行与所述下行数据相应的操作。
  14. 如权利要求9所述的家居网关设备,其特征在于,所述控制器还用于建立包括至少一个家居设备的通信网络。
  15. 如权利要求14所述的家居网关设备,其特征在于,所述控制器还用于建立包括至少一个家居设备的通信网络,包括:所述控制器接收至少一个家居设备发送的入网请求,并对所述入网请求进行处理并为发出入网请求的家居设备分配网络地址。
  16. 一种家居控制系统,其特征在于,包括家居网关设备、控制端以及多 个家居设备;所述家居网关设备与所述控制端通过第一通信网络进行通信连接,并与所述多个家居设备通过第二通信网络进行通信连接;其中,所述第一通信网络和所述第二通信网络不同;所述家居网关设备还包括:
    第一通信模块,所述家居网关设备采用所述第一通信模块所支持的第一通信协议接收多个家居设备发送的上行数据;
    控制器,控制将接收到的上行数据缓存至所述存储器中;以及
    第二通信模块,
    所述控制器还判断所述存储器中已缓存的所述上行数据的数据量是否达到预设的传输数量;
    当所述存储器中已缓存的所述上行数据的数据量达到预设的传输数量时,所述控制器控制将当前已缓存的所有所述上行数据通过所述第二通信模块所支持的第二通信协议发送给所述控制端,且清除缓存在所述存储器中的所述上行数据。
  17. 如权利要求16所述的家居控制系统,其特征在于,所述家居网关设备还包括计时器,所述控制器还控制所述计时器从缓存第一个所述上行数据时开始计时;
    当所述存储器中已缓存的所述上行数据的数据量达到预设的传输数量但所述计时时长未达到预设时间时,所述控制器控制将当前已缓存的所有所述上行数据通过所述第二通信模块所支持的第二通信协议发送给所述控制端,并控制所述计时器清零且清除缓存在所述存储器中的所述上行数据;
    当所述存储器中已缓存的所述上行数据的数据量未达到预设的传输数量时,所述控制器还判断计时时长是否达到预设时间;当所述计时时长达到预设时间时,所述控制器控制将当前已缓存的所有的所述上行数据通过所述第二通信模块所支持的第二通信协议发送给所述控制端,并控制计时清零且清除缓存在所述存储器中的所述上行数据。
  18. 如权利要求16所述的家居控制系统,其特征在于,所述第一通信网络为Zigbee网络;所述第二通信网络为WiFi网络。
  19. 如权利要求16所述的家居控制系统,其特征在于,所述控制器从缓存第一个所述上行数据的时刻开始计时,具体包括:所述控制器控制将接收到 的上行数据缓存至所述存储器时,确定当前存储器中是否有缓存数据,如果没有,则确定当前缓存的上行数据为缓存的第一个上行数据,并控制开始计时。
  20. 如权利要求16所述的家居控制系统,其特征在于,所述家居网关设备还采用所述第二通信模块所支持的第二通信协议接收所述控制端发送的下行数据;所述控制器还对所述下行数据进行识别,并采用所述第一通信模块所支持的第一通信协议将所述下行数据发送至对应的家居设备,并控制所述家居设备执行与所述下行数据相应的操作。
PCT/CN2018/116187 2018-11-19 2018-11-19 通信方法、家居网关设备及家居控制系统 Ceased WO2020102939A1 (zh)

Priority Applications (2)

Application Number Priority Date Filing Date Title
PCT/CN2018/116187 WO2020102939A1 (zh) 2018-11-19 2018-11-19 通信方法、家居网关设备及家居控制系统
CN201880096020.XA CN112703816A (zh) 2018-11-19 2018-11-19 通信方法、家居网关设备及家居控制系统

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
PCT/CN2018/116187 WO2020102939A1 (zh) 2018-11-19 2018-11-19 通信方法、家居网关设备及家居控制系统

Publications (1)

Publication Number Publication Date
WO2020102939A1 true WO2020102939A1 (zh) 2020-05-28

Family

ID=70773201

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2018/116187 Ceased WO2020102939A1 (zh) 2018-11-19 2018-11-19 通信方法、家居网关设备及家居控制系统

Country Status (2)

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

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2024164488A1 (zh) * 2023-02-09 2024-08-15 王养浩 用于智能家居控制系统的物联网智能网关设备

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN114980050A (zh) * 2022-04-11 2022-08-30 杭州涂鸦信息技术有限公司 蓝牙设备的控制方法以及控制设备、网关设备、存储介质

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102413513A (zh) * 2011-12-01 2012-04-11 电信科学技术研究院 一种缓存状态的上报方法和设备
AU2016100686A4 (en) * 2016-05-20 2016-06-16 Macau University Of Science And Technology Method for optimizing throughput of a network
CN207380545U (zh) * 2017-11-22 2018-05-18 广州市天舟通信技术有限公司 一种智能家居网关及智能家居控制系统
CN108829616A (zh) * 2018-06-15 2018-11-16 佛山长意云信息技术有限公司 一种缓存数据管理方法、装置、计算机设备及存储介质

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102413513A (zh) * 2011-12-01 2012-04-11 电信科学技术研究院 一种缓存状态的上报方法和设备
AU2016100686A4 (en) * 2016-05-20 2016-06-16 Macau University Of Science And Technology Method for optimizing throughput of a network
CN207380545U (zh) * 2017-11-22 2018-05-18 广州市天舟通信技术有限公司 一种智能家居网关及智能家居控制系统
CN108829616A (zh) * 2018-06-15 2018-11-16 佛山长意云信息技术有限公司 一种缓存数据管理方法、装置、计算机设备及存储介质

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2024164488A1 (zh) * 2023-02-09 2024-08-15 王养浩 用于智能家居控制系统的物联网智能网关设备

Also Published As

Publication number Publication date
CN112703816A (zh) 2021-04-23

Similar Documents

Publication Publication Date Title
CN108683574B (zh) 一种设备控制方法、服务器和智能家居系统
US9602300B2 (en) Smart device-based home network system and control method therefor
WO2019205134A1 (zh) 智能家居语音控制方法、装置、设备和系统
CN105357629A (zh) 移动终端与智能家电的绑定方法及装置
CN105050202B (zh) 移动终端的利用中继服务器主动接入的会话建立方法
CN106657521A (zh) 一种智能设备语音交流方法、装置和系统
CN102495618A (zh) 即时通讯智能家居控制系统及其控制方法
US20150149536A1 (en) Network system, constant connection method, communication method, electronic device, constant connection server, application server, and program
WO2016169231A1 (zh) 一种基于蓝牙组建稳态微微网的方法及其系统
CN112152969A (zh) 物联网网关及物联网设备接入网关的方法
CN112764351A (zh) 智能设备的控制方法、装置、电子设备以及存储介质
CN102833137B (zh) 一种基于智能网关的数字家庭系统
WO2020102939A1 (zh) 通信方法、家居网关设备及家居控制系统
CN105306319A (zh) 一种基于互联网的智能家居中控系统
WO2023179357A1 (zh) 一种通信方法及装置
CN113765758B (zh) 场景联动控制指令的传输方法、系统、装置及存储介质
WO2020057075A1 (zh) 无线通信控制方法、装置以及家电设备
CN105099836A (zh) Ble智能节点控制方法和系统
CN221632076U (zh) 支持多设备切换连接的智能语音遥控器
CN114500133A (zh) 一种家电设备及家电设备的入网方法
CN110958658A (zh) 一种通信设备及方法
WO2016188133A1 (zh) 智能家电的控制方法和装置
CN110572851A (zh) 一种数据上传方法、系统、装置及计算机可读存储介质
CN110622470B (zh) 从因特网唤醒网络接入设备的方法
WO2017101079A1 (zh) 一种基于无线通信模块的云接入方法和系统

Legal Events

Date Code Title Description
121 Ep: the epo has been informed by wipo that ep was designated in this application

Ref document number: 18940525

Country of ref document: EP

Kind code of ref document: A1

NENP Non-entry into the national phase

Ref country code: DE

122 Ep: pct application non-entry in european phase

Ref document number: 18940525

Country of ref document: EP

Kind code of ref document: A1