A communication method, device and system

By negotiating the working mechanism between the Zigbee gateway and the nodes, the start time and time window of the mechanism are determined, which solves the problem of information loss when Zigbee and WiFi coexist, and enables normal processing of Zigbee services and reduced power consumption.

CN114095973BActive Publication Date: 2025-01-14BEIJING WODONG TIANJUN INFORMATION TECH CO LTD +1
View PDF 2 Cites 0 Cited by

Patent Information

Application Number
CN202010893770.9
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2020-08-31
Publication Date
2025-01-14
Estimated Expiration
2040-08-31

AI Technical Summary

Technical Problem

In Zigbee gateways, the coexistence of Zigbee and WiFi wireless networks can lead to sudden Zigbee information loss, especially when WiFi is communicating and Zigbee cannot anticipate this and therefore cannot schedule a time window.

Method used

By negotiating the working mechanism between Zigbee nodes and gateways, the start time and time window of the mechanism are determined, ensuring that Zigbee service communication occurs outside the WiFi service time window and avoiding signal interference.

Benefits of technology

It effectively solves the problem of sudden Zigbee information loss, ensures the normal processing of Zigbee services during WiFi services, and reduces the power consumption of network nodes.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN114095973B_ABST
    Figure CN114095973B_ABST
Patent Text Reader

Abstract

The present application provides a communication method, device and system, the method comprising: receiving a first notification message sent by a gateway according to the mechanism start time determined by the time of starting the WiFi service; sending a first confirmation message to the gateway, so that the gateway monitors the Zigbee service initiated by the Zigbee node within the time window of each time period after the mechanism start time; communicates with the Zigbee node for WiFi service at a time outside the time window of each time period; starts a negotiation working mechanism, and after the mechanism start time, if a trigger event occurs, communicates with the gateway for Zigbee service within the time window of the time period. The method can effectively solve the problem of sudden information loss.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the field of communication technology, and in particular to a communication method, device and system. Background Art

[0002] In Zigbee gateway products, wireless Internet access (WiFi) is often used as the communication technology to access the wide area network for ease of deployment. However, both Zigbee and WiFi work in the 2.4G frequency band, so the wireless coexistence of the two has always been a design difficulty in Zigbee gateways.

[0003] Currently, time-division avoidance is used to allow the Wi-Fi controller and the Zigbee controller to negotiate and uniformly arrange the order of sending and receiving wireless frames, such as the PTA (Packet Traffic Arbitration) mechanism.

[0004] In the process of implementing the present application, the inventors found that the above implementation method is not suitable for sudden business, such as when a Zigbee sensor suddenly receives a certain perception information and needs to send it to the gateway immediately. However, since the gateway cannot predict it in advance, no time window is arranged. If WiFi is communicating at this time, the signal will be overwhelmed by WiFi energy and important information will be lost. Summary of the invention

[0005] In view of this, the present application provides a communication method, device and system, which can effectively solve the problem of sudden information loss.

[0006] To solve the above technical problems, the technical solution of this application is implemented as follows:

[0007] In one embodiment, a communication method is provided, which is applied to a Zigbee node, and the method includes:

[0008] A first notification message is sent by a receiving gateway according to a mechanism start time determined by the time when the WiFi service is started; the first notification message carries the mechanism start time, a time period and a time window; wherein the duration of the time window is less than the duration of the time period;

[0009] Sending a first confirmation message to the gateway, so that the gateway monitors the Zigbee service initiated by the Zigbee node within the time window of each time period after the start time of the mechanism; and performs WiFi service communication with the Zigbee node outside the time window of each time period;

[0010] The negotiation working mechanism is started, and after the start time of the mechanism, if a triggering event occurs, Zigbee service communication is performed with the gateway within the time window of the time period.

[0011] In another embodiment, a communication method is provided, which is applied to a gateway, and the method includes:

[0012] Determine the starting time of the mechanism according to the time when the WiFi service is started;

[0013] Sending a first notification message to the Zigbee node before the start time of the mechanism, wherein the first notification message carries the start time of the mechanism, a time period and a time window; wherein the duration of the time window is less than the duration of the time period; causing the Zigbee node to send a first confirmation message in response to the first notification message, and start a negotiation working mechanism, and after the start time of the mechanism, if a triggering event occurs, then performing Zigbee service communication with the gateway within the time window of the time period;

[0014] Receive a first confirmation message sent by the Zigbee node, and after the start time of the mechanism, monitor the Zigbee service initiated by the Zigbee node within the time window of each time period; and communicate with the Zigbee node for WiFi service outside the time window of each time period.

[0015] In another embodiment, a communication method is provided, the method comprising:

[0016] The gateway determines the mechanism start time according to the time when the WiFi service is started, and sends a first notification message to the Zigbee node before the mechanism start time, wherein the first notification message carries the mechanism start time, time period and time window; wherein the duration of the time window is less than the duration of the time period;

[0017] When receiving the first notification message, the Zigbee node sends a first confirmation message to the gateway and starts a negotiation working mechanism. After the start time of the mechanism, if a triggering event occurs, the Zigbee service communication is performed with the gateway within the time window of the time period;

[0018] After the start time of the mechanism, the gateway monitors the Zigbee service initiated by the Zigbee node within the time window of each time period; and performs WiFi service communication with the Zigbee node outside the time window of each time period.

[0019] In another embodiment, a communication device is provided, which is applied to a Zigbee node, and the device includes: a receiving unit, a sending unit, a setting unit, and a processing unit;

[0020] The receiving unit is used to receive a first notification message sent by the gateway according to the mechanism start time determined by the time when the WiFi service is started; the first notification message carries the mechanism start time, the time period and the time window; wherein the duration of the time window is less than the duration of the time period;

[0021] The sending unit is used for the receiving unit to send a first confirmation message to the gateway after receiving the first notification message, so that the gateway monitors the Zigbee service initiated by the Zigbee node within the time window of each time period after the start time of the mechanism; and performs WiFi service communication with the Zigbee node outside the time window of each time period;

[0022] The setting unit is used to start the negotiation working mechanism;

[0023] The processing unit is used for, after the setting unit sets the starting time of the mechanism, if a triggering event occurs, to perform Zigbee service communication with the gateway within a time window of the time period.

[0024] In another embodiment, a communication device is provided, which is applied to a gateway, and the device includes: a determination unit, a transceiver unit, and a setting unit;

[0025] The determining unit is used to determine the starting time of the mechanism according to the time when the WiFi service is started;

[0026] The transceiver unit is used to send a first notification message to the Zigbee node before the mechanism start time determined by the determination unit, wherein the first notification message carries the mechanism start time, time period and time window; wherein the duration of the time window is less than the duration of the time period; enable the Zigbee node to send a first confirmation message in response to the first notification message, and start the negotiation working mechanism, and after the mechanism start time, if a triggering event occurs, perform Zigbee service communication with the gateway within the time window of the time period; receive the first confirmation message sent by the Zigbee node,

[0027] The setting unit is used to monitor the Zigbee service initiated by the Zigbee node within a time window of each time period after the start time of the mechanism when the transceiver unit receives the first confirmation message sent by the Zigbee node; and perform WiFi service communication with the Zigbee node outside the time window of each time period.

[0028] In another embodiment, a communication system is provided, the system comprising: a gateway and a Zigbee node;

[0029] The gateway determines the mechanism start time according to the time when the WiFi service is started, and sends a first notification message to the Zigbee node before the mechanism start time, wherein the first notification message carries the mechanism start time, the time period and the time window; wherein the duration of the time window is less than the duration of the time period; after the mechanism start time, the gateway monitors the Zigbee service initiated by the Zigbee node within the time window of each time period; and performs WiFi service communication with the Zigbee node outside the time window of each time period;

[0030] When receiving the first notification message, the Zigbee node sends a first confirmation message to the gateway and starts a negotiation working mechanism. After the start time of the mechanism, if a triggering event occurs, the Zigbee service communication is performed with the gateway within the time window of the time period.

[0031] In another embodiment, an electronic device is provided, including a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein when the processor executes the program, a Zigbee node implements the steps of a communication method.

[0032] In another embodiment, a computer-readable storage medium is provided, on which a computer program is stored. When the program is executed by a processor, a Zigbee node implements the steps of the communication method.

[0033] In another embodiment, an electronic device is provided, including a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein when the processor executes the program, a gateway implements the steps of a communication method.

[0034] In another embodiment, a computer-readable storage medium is provided, on which a computer program is stored. When the program is executed by a processor, a gateway implements the steps of the communication method.

[0035] It can be seen from the above technical solution that in the above embodiment, when the gateway determines that the WiFi service needs to be carried out, it agrees with the Zigbee node to start the negotiation working mechanism, and after entering the negotiation working mechanism, agrees on the time for WiFi service and Zigbee service communication. This solution can ensure the normal processing of Zigbee service if there is a sudden Zigbee service when the WiFi service is being carried out, that is, it can effectively solve the problem of sudden information loss. BRIEF DESCRIPTION OF THE DRAWINGS

[0036] In order to more clearly illustrate the technical solutions in the embodiments of the present application, the drawings required for use in the description of the embodiments will be briefly introduced below. Obviously, the drawings described below are only some embodiments of the present application. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying any creative labor.

[0037] Figure 1 This is a schematic diagram of a communication system in an embodiment of the present application;

[0038] Figure 2 This is a schematic diagram of the positional relationship between the time window and the time period in the embodiment of the present application;

[0039] Figure 3 This is a schematic diagram of the communication process in Example 1 of the present application;

[0040] Figure 4 This is a schematic diagram of the communication process in the second embodiment of the present application;

[0041] Figure 5 This is a schematic diagram of the communication process in Embodiment 3 of the present application;

[0042] Figure 6 This is a schematic diagram of the communication process in the fourth embodiment of the present application;

[0043] Figure 7 This is a schematic diagram of the structure of a communication device applied to a gateway side in an embodiment of the present application;

[0044] Figure 8 This is a schematic diagram of the structure of a communication device applied to a Zigbee node side in an embodiment of the present application;

[0045] Fig. 9 A schematic diagram of the physical structure of an electronic device provided by an embodiment of the present invention;

[0046] Fig.10 A schematic diagram of the physical structure of another electronic device provided by an embodiment of the present invention. DETAILED DESCRIPTION

[0047] The following will be combined with the drawings in the embodiments of the present application to clearly and completely describe the technical solutions in the embodiments of the present application. Obviously, the described embodiments are only part of the embodiments of the present application, not all of the embodiments. Based on the embodiments in the present application, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of this application.

[0048] The terms "first", "second", "third", "fourth", etc. (if any) in the specification and claims of the present invention and the above-mentioned drawings are used to distinguish similar objects, and are not necessarily used to describe a specific order or sequence. It should be understood that the data used in this way can be interchangeable where appropriate, so that the embodiments of the present invention described herein can be implemented in an order other than those illustrated or described herein, for example. In addition, the terms "including" and "having" and any variations thereof are intended to cover non-exclusive inclusions. For example, a process, method, system, product, or device that includes a series of steps or units is not necessarily limited to those steps or units that are clearly listed, but may include other steps or units that are not clearly listed or inherent to these processes, methods, products, or devices.

[0049] The technical solution of the present invention is described in detail with specific embodiments below. The following specific embodiments can be combined with each other, and the same or similar concepts or processes may not be described in detail in some embodiments.

[0050] The embodiment of the present application provides a communication system, which includes a gateway and a Zigbee node.

[0051] See also Figure 1 , Figure 1 Schematic diagram of a communication system in an embodiment of the present application.

[0052] Figure 1 In the example above, a system including one Zigbee node is taken. In actual application, there is no limit on the number of deployed Zigbee nodes.

[0053] The gateway and the Zigbee node both deploy the Zigbee protocol to perform Zigbee service communications.

[0054] The gateway and the Zigbee node perform time synchronization. As for the time synchronization mechanism between the gateway and the Zigbee node, there is no limitation in the embodiments of the present application.

[0055] The gateway communicates with the Zigbee node for Zigbee services and also for WiFi services.

[0056] How to distinguish the communication of Zigbee service and WiFi service in time is a technical problem to be solved in the embodiments of the present application.

[0057] By default, the gateway communicates with the Zigbee node for Zigbee services.

[0058] When the gateway determines the mechanism start time according to the start time of the WiFi service, the gateway sends a first notification message to the Zigbee node before the mechanism start time.

[0059] The first notification message carries the starting time, time period and time window of the mechanism; wherein the duration of the time window is shorter than the duration of the time period.

[0060] There is no restriction on the position of the time window in the corresponding time period to avoid the complexity of the setting. In the embodiment of the present application, the relative position of the time window and the time period is the same, and there is no restriction on the position of the time starting point of the time window in the time period.

[0061] See also Figure 2 , Figure 2 Schematic diagram of the positional relationship between the time window and the time period in the embodiment of the present application.

[0062] Figure 2 In the example, the starting point of the time window is the starting point of the corresponding time period. Tp is the time period, and Tw is the time window. Zigbee service communication can be carried out within the time window Tw, and WiFi service communication can be carried out within Tp and outside Tw; t1 is the start time of the mechanism.

[0063] The mechanism start time described in the embodiment of the present application indicates the time when the negotiation working mechanism is executed, that is, the communication between the Zigbee service and the WiFi service is performed in the agreed time period and time window from the mechanism start time according to the negotiation working mechanism;

[0064] The negotiation working mechanism in the embodiment of the present application is to perform Zigbee service communication within the time window of each time period from the start time of the mechanism, and to perform WiFi service communication outside the time window of each period.

[0065] The Zigbee node sends a first confirmation message to the gateway.

[0066] The gateway receives the first confirmation message and determines that the Zigbee node has received the first notification message.

[0067] At this time, both parties can start the negotiation mechanism as agreed and wait for the mechanism to start before conducting the negotiation.

[0068] Alternatively, the gateway sets the negotiation working mechanism and sends a third notification message to the Zigbee node, indicating that the gateway has set the relevant mechanism and the Zigbee node can perform the mechanism setting.

[0069] After the start time of the mechanism, the gateway monitors the Zigbee service initiated by the Zigbee node within the time window of each time period; and performs WiFi service communication with the Zigbee node outside the time window of each time period.

[0070] When the gateway monitors the Zigbee service initiated by the Zigbee node within the time window of each time period, if the gateway monitors the Zigbee service initiated by the Zigbee node, the gateway performs Zigbee service communication with the Zigbee node.

[0071] The Zigbee node can set up the negotiation working mechanism upon receiving the first notification message, or it can store the mechanism start time, time period and time window carried in the first notification message, and set it up again upon receiving the third notification message sent by the gateway.

[0072] After the negotiation working mechanism is set, after the start time of the mechanism, if a triggering event occurs, Zigbee service communication is performed with the gateway within the time window of the time period.

[0073] Further,

[0074] When the Zigbee node performs Zigbee service communication with the gateway within the time window of the time period, specifically including:

[0075] If the time when the triggering event occurs is after the time window in the current time period, Zigbee service communication is performed with the gateway in the time window of the next time period;

[0076] If the time of the triggering event is within or before the time window in the current time period, Zigbee service communication is performed with the gateway in the time window of the current time period;

[0077] If the Zigbee service communication corresponding to the triggering event is not completed within the current cycle time window, the Zigbee service communication will continue within the next cycle time window.

[0078] When the gateway determines the end time of the WiFi service, the gateway sends a second notification message to the Zigbee node before the end time, wherein the second notification message carries the end time;

[0079] When the gateway determines the end time of the mechanism according to the time of ending the WiFi service, before the end time of the mechanism, the gateway sends a second notification message to the Zigbee node;

[0080] After receiving the second notification message, the Zigbee node closes the negotiation working mechanism when the end time of the mechanism arrives.

[0081] When the end time of the mechanism arrives, the gateway starts to resume Zigbee service communication with the Zigbee node.

[0082] When the Zigbee node receives the second notification message, it is configured to close the negotiation working mechanism when the end time arrives.

[0083] The ending moment here is Figure 2 In the example, t2, the negotiation communication mechanism is turned off after t2. If there is WiFi service again, the negotiation mechanism can be turned on again according to the time of the WiFi service.

[0084] The number of time periods between the start time and the end time of the mechanism is not necessarily an integer. Even if a time period has not ended, if the end time is reached, the current communication mechanism is directly ended.

[0085] In IEEE802.15.4, if the gateway is used to send Zigbee Beacon frames, data is sent and received each time the Beacon frame is processed, similar functions can be achieved, but there are very obvious defects, because the function of Zigbee Beacon frames themselves is only used for the synchronization of nodes in the network. If you want to ensure the real-time response, you need to set the Beacon interval very small, but since each Beacon frame has radio frequency energy emitted, this is bound to interfere with WiFi communication, and in this way, since Beacon is broadcast, all Zigbee nodes in the network need to respond once, which increases the power consumption of all nodes in the network, resulting in a significant decrease in the node standby time, which is unacceptable for sensors with high standby time requirements. However, in the present invention, the gateway is only in a listening state within the time window and does not send radio frequency signals, so the time period and time window in the present invention can be flexibly set, and the mechanism can be enabled only for specified devices in the network. The node only needs to send radio frequency signals when a local trigger event occurs in the sensor, and power consumption will also be greatly reduced.

[0086] The communication process in the embodiment of the present application is described in detail below with reference to the accompanying drawings.

[0087] Embodiment 1

[0088] This embodiment is a process of implementing communication by a Zigbee node in a communication system.

[0089] See also Figure 3 , Figure 3 This is a schematic diagram of the communication process in Example 1 of this application. The specific steps are:

[0090] Step 301, the Zigbee node receives a first notification message sent by a gateway according to a mechanism start time determined according to a time of starting a WiFi service; the first notification message carries the mechanism start time, a time period and a time window.

[0091] The duration of the time window is shorter than the duration of the time period.

[0092] Step 302: The Zigbee node sends a first confirmation message to the gateway, so that the gateway monitors the Zigbee service initiated by the Zigbee node within the time window of each time period after the start time of the mechanism; and communicates with the Zigbee node for WiFi service outside the time window of each time period.

[0093] The gateway receives the first confirmation message and determines that the Zigbee node has received the first notification message.

[0094] At this time, both parties can start the negotiation mechanism as agreed and wait for the mechanism to start before conducting the negotiation.

[0095] Alternatively, the gateway sets the negotiation working mechanism and sends a third notification message to the Zigbee node, indicating that the gateway has set the relevant mechanism and the Zigbee node can perform the mechanism setting.

[0096] After the start time of the mechanism, the gateway monitors the Zigbee service initiated by the Zigbee node within the time window of each time period; and performs WiFi service communication with the Zigbee node outside the time window of each time period.

[0097] When the gateway monitors the Zigbee service initiated by the Zigbee node within the time window of each time period, if the gateway monitors the Zigbee service initiated by the Zigbee node, the gateway performs Zigbee service communication with the Zigbee node.

[0098] The Zigbee node can set up the negotiation working mechanism upon receiving the first notification message, or it can store the mechanism start time, time period and time window carried in the first notification message, and set it up again upon receiving the third notification message sent by the gateway.

[0099] This embodiment takes the setting of the negotiation working mechanism when the first notification information is received as an example.

[0100] After the negotiation working mechanism is set, after the start time of the mechanism, if a triggering event occurs, Zigbee service communication is performed with the gateway within the time window of the time period.

[0101] Step 303: The Zigbee node starts a negotiation working mechanism. After the start time of the mechanism, if a triggering event occurs, the Zigbee service communication is performed with the gateway within the time window of the time period.

[0102] The negotiation working mechanism is to conduct Zigbee service communication within the time window of each time period and conduct WiFi service communication outside the time window of each time period from the start time of the mechanism.

[0103] In this embodiment, the Zigbee service communication is performed with the gateway within the time window of the time period, including:

[0104] If the time when the triggering event occurs is after the time window in the current time period, Zigbee service communication is performed with the gateway in the time window of the next time period;

[0105] If the time of the triggering event is within or before the time window in the current time period, Zigbee service communication is performed with the gateway in the time window of the current time period;

[0106] If the Zigbee service communication corresponding to the triggering event is not completed within the current cycle time window, the Zigbee service communication will continue within the next cycle time window.

[0107] The gateway determines the mechanism end time according to the time when the WiFi service is ended, and sends a second notification message to the Zigbee node before the mechanism end time.

[0108] After the Zigbee node receives the second notification message sent by the gateway according to the mechanism end time determined according to the time of ending the WiFi service, the negotiation working mechanism is closed when the mechanism end time arrives.

[0109] The second notification message carries the end time.

[0110] When the end time arrives, the negotiation working mechanism is turned off, that is, the state in which the Zigbee node and the gateway perform Zigbee service communication when there is no WiFi service is restored.

[0111] In this embodiment, when the gateway determines that WiFi service is needed, it agrees with the Zigbee node to start the negotiation mechanism, and after entering the negotiation mechanism, agrees on the time for WiFi service and Zigbee service communication. This solution can ensure the normal processing of Zigbee service if there is a sudden Zigbee service during WiFi service, which can effectively solve the problem of sudden information loss.

[0112] Embodiment 2

[0113] This embodiment is a process of implementing communication by a gateway in a communication system.

[0114] See also Figure 4 , Figure 4 This is a schematic diagram of the communication process in Example 2 of this application. The specific steps are:

[0115] Step 401: The gateway determines the mechanism start time according to the time when the WiFi service is started.

[0116] When the gateway needs to perform WiFi services, it can determine the time to perform WiFi services, and determine the start time of the mechanism according to the positional relationship between the set time window and the corresponding time period.

[0117] For example, the position relationship between the time window and the corresponding time period is as follows Figure 2 As shown, when the start time of the WiFi service is determined to be between T1+Tw and T1+Tp, the start time of the mechanism can be determined to be T1;

[0118] Alternatively, the start time of the WiFi service may be simply determined as the start time of the mechanism;

[0119] The specific determination method is not limited, and the above are just two example implementation methods.

[0120] Step 402: The gateway sends a first notification message to the Zigbee node before the start time of the mechanism. The first notification message carries the start time, time period and time window of the mechanism, so that the Zigbee node sends a first confirmation message in response to the first notification message and starts the negotiation working mechanism. After the start time of the mechanism, if a triggering event occurs, Zigbee service communication is performed with the gateway within the time window of the time period.

[0121] The duration of the time window is shorter than the duration of the time period.

[0122] In this embodiment, the Zigbee service communication is performed with the gateway within the time window of the time period, including:

[0123] If the time when the triggering event occurs is after the time window in the current time period, Zigbee service communication is performed with the gateway in the time window of the next time period;

[0124] If the time of the triggering event is within or before the time window in the current time period, Zigbee service communication is performed with the gateway in the time window of the current time period;

[0125] If the Zigbee service communication corresponding to the triggering event is not completed within the current cycle time window, the Zigbee service communication will continue within the next cycle time window.

[0126] Step 403: The gateway receives the first confirmation message sent by the Zigbee node, and after the start time of the mechanism, monitors the Zigbee service initiated by the Zigbee node within the time window of each time period; and communicates with the Zigbee node for WiFi service outside the time window of each time period.

[0127] Monitoring the Zigbee service initiated by the Zigbee node within a time window of each time period;

[0128] If a Zigbee service initiated by a Zigbee node is monitored, Zigbee service communication is performed with the Zigbee node.

[0129] The gateway receives the first confirmation message and determines that the Zigbee node has received the first notification message.

[0130] At this time, both parties can start the negotiation mechanism as agreed and wait for the mechanism to start before conducting the negotiation.

[0131] Alternatively, the gateway sets the negotiation working mechanism and sends a third notification message to the Zigbee node, indicating that the gateway has set the relevant mechanism and the Zigbee node can perform the mechanism setting.

[0132] After the start time of the mechanism, the gateway monitors the Zigbee service initiated by the Zigbee node within the time window of each time period; and performs WiFi service communication with the Zigbee node outside the time window of each time period.

[0133] When the gateway monitors the Zigbee service initiated by the Zigbee node within the time window of each time period, if the gateway monitors the Zigbee service initiated by the Zigbee node, the gateway performs Zigbee service communication with the Zigbee node.

[0134] The Zigbee node can set up the negotiation working mechanism upon receiving the first notification message, or it can store the mechanism start time, time period and time window carried in the first notification message, and set it up again upon receiving the third notification message sent by the gateway.

[0135] This embodiment takes the setting of the negotiation working mechanism when the first notification information is received as an example.

[0136] After the negotiation working mechanism is set, after the start time of the mechanism, if a triggering event occurs, Zigbee service communication is performed with the gateway within the time window of the time period.

[0137] The method further comprises:

[0138] When the gateway determines the end time of the mechanism according to the time of ending the WiFi service, it sends a second notification message to the Zigbee node before the end time of the mechanism, so that the Zigbee node closes the negotiation working mechanism when the end time of the mechanism arrives.

[0139] The second notification message carries the time when the mechanism ends.

[0140] When the end time arrives, the negotiation working mechanism is turned off, that is, the state in which the Zigbee node and the gateway perform Zigbee service communication when there is no WiFi service is restored.

[0141] In this embodiment, when the gateway determines that WiFi service is needed, it agrees with the Zigbee node to start the negotiation mechanism, and after entering the negotiation mechanism, agrees on the time for WiFi service and Zigbee service communication. This solution can ensure the normal processing of Zigbee service if there is a sudden Zigbee service during WiFi service, which can effectively solve the problem of sudden information loss.

[0142] Embodiment 3

[0143] This embodiment is a process of implementing communication in a communication system including a gateway and a Zigbee node.

[0144] See also Figure 5 , Figure 5 This is a schematic diagram of the communication process in Example 3 of this application. The specific steps are:

[0145] Step 501: The gateway determines the mechanism start time according to the time when the WiFi service is started, and sends a first notification message to the Zigbee node before the mechanism start time, wherein the first notification message carries the mechanism start time, time period and time window.

[0146] The duration of the time window is shorter than the duration of the time period.

[0147] When the gateway needs to perform WiFi services, it can determine the time to perform WiFi services, and determine the start time of the mechanism according to the positional relationship between the set time window and the corresponding time period.

[0148] For example, the position relationship between the time window and the corresponding time period is as follows Figure 2 As shown, when the start time of the WiFi service is determined to be between T1+Tw and T1+Tp, the start time of the mechanism can be determined to be T1;

[0149] Alternatively, the start time of the WiFi service may be simply determined as the start time of the mechanism;

[0150] The specific determination method is not limited, and the above are just two example implementation methods.

[0151] Step 502, when the Zigbee node receives the first notification message, it sends a first confirmation message to the gateway and starts the negotiation mechanism. After the start time of the mechanism, if a triggering event occurs, the Zigbee service communication is performed with the gateway within the time window of the time period.

[0152] The Zigbee node performs Zigbee service communication with the gateway within the time window of the time period, including:

[0153] If the time when the triggering event occurs is after the time window in the current time period, Zigbee service communication is performed with the gateway in the time window of the next time period;

[0154] If the time of the triggering event is within or before the time window in the current time period, Zigbee service communication is performed with the gateway in the time window of the current time period;

[0155] If the Zigbee service communication corresponding to the triggering event is not completed within the current cycle time window, the Zigbee service communication will continue within the next cycle time window.

[0156] Step 503: After receiving the first confirmation message and after the start time of the mechanism, the gateway monitors the Zigbee service initiated by the Zigbee node within the time window of each time period; and communicates with the Zigbee node for WiFi service outside the time window of each time period.

[0157] Monitoring the Zigbee service initiated by the Zigbee node within a time window of each time period;

[0158] If a Zigbee service initiated by a Zigbee node is monitored, Zigbee service communication is performed with the Zigbee node.

[0159] The gateway receives the first confirmation message and determines that the Zigbee node has received the first notification message.

[0160] At this time, both parties can start the negotiation mechanism as agreed and wait for the mechanism to start before conducting the negotiation.

[0161] Alternatively, the gateway sets the negotiation working mechanism and sends a third notification message to the Zigbee node, indicating that the gateway has set the relevant mechanism and the Zigbee node can perform the mechanism setting.

[0162] After the start time of the mechanism, the gateway monitors the Zigbee service initiated by the Zigbee node within the time window of each time period; and performs WiFi service communication with the Zigbee node outside the time window of each time period.

[0163] When the gateway monitors the Zigbee service initiated by the Zigbee node within the time window of each time period, if the gateway monitors the Zigbee service initiated by the Zigbee node, the gateway performs Zigbee service communication with the Zigbee node.

[0164] The Zigbee node can set up the negotiation working mechanism upon receiving the first notification message, or it can store the mechanism start time, time period and time window carried in the first notification message, and set it up again upon receiving the third notification message sent by the gateway.

[0165] In this embodiment, the setting of the negotiation working mechanism is performed when the first notification information is received is taken as an example.

[0166] The method further comprises:

[0167] When the gateway determines the end time of the mechanism according to the time of ending the WiFi service, the gateway sends a second notification message to the Zigbee node before the end time of the mechanism;

[0168] After receiving the second notification message, the Zigbee node closes the negotiation working mechanism when the end time of the mechanism arrives.

[0169] In this embodiment, when the gateway determines that WiFi service is needed, it agrees with the Zigbee node to start the negotiation mechanism, and after entering the negotiation mechanism, agrees on the time for WiFi service and Zigbee service communication. This solution can ensure the normal processing of Zigbee service if there is a sudden Zigbee service during WiFi service, which can effectively solve the problem of sudden information loss.

[0170] Embodiment 4

[0171] See also Figure 6 , Figure 6 This is a schematic diagram of the communication process in the fourth embodiment of this application. The specific steps are:

[0172] Step 601: The gateway sends a first notification message to the Zigbee node.

[0173] The gateway determines the mechanism start time according to the time when the WiFi service is started, and sends a first notification message to the Zigbee node before the mechanism start time, wherein the first notification message carries the mechanism start time, time period and time window.

[0174] The duration of the time window is shorter than the duration of the time period.

[0175] When the gateway needs to perform WiFi services, it can determine the time to perform WiFi services, and determine the start time of the mechanism according to the positional relationship between the set time window and the corresponding time period.

[0176] For example, the position relationship between the time window and the corresponding time period is as follows Figure 2 As shown, when the start time of the WiFi service is determined to be between T1+Tw and T1+Tp, the start time of the mechanism can be determined to be T1;

[0177] Alternatively, the start time of the WiFi service may be simply determined as the start time of the mechanism;

[0178] The specific determination method is not limited, and the above are just two example implementation methods.

[0179] Step 602: The Zigbee node sends a first confirmation message to the gateway.

[0180] After receiving the first notification message, the Zigbee node stores the mechanism start time, time period and time window carried in the first notification message; and sends a first confirmation message to the gateway.

[0181] Step 603: The gateway sends a third notification message to the Zigbee node.

[0182] After the gateway receives the first confirmation message sent by the Zigbee node, it determines that the Zigbee node has learned the relevant information of the negotiation working mechanism, and then sets the negotiation working mechanism according to the starting time of the mechanism, that is, it sets the Zigbee service initiated by the Zigbee node to be listened to within the time window of each time period from the starting time of the mechanism. If the Zigbee service initiated by the Zigbee node is listened to, Zigbee service communication is performed with the Zigbee node.

[0183] Step 604, waiting for a triggering event.

[0184] Step 605: If a triggering event occurs, Zigbee service communication is performed with the gateway within the time window of the time period.

[0185] The Zigbee node performs Zigbee service communication with the gateway within the time window of the time period, including:

[0186] If the time when the triggering event occurs is after the time window in the current time period, Zigbee service communication is performed with the gateway in the time window of the next time period;

[0187] If the time of the triggering event is within or before the time window in the current time period, Zigbee service communication is performed with the gateway in the time window of the current time period;

[0188] If the Zigbee service communication corresponding to the triggering event is not completed within the current cycle time window, the Zigbee service communication will continue within the next cycle time window.

[0189] Step 606: The gateway sends a second notification message to the Zigbee node.

[0190] When the gateway determines the end time of the mechanism according to the time of ending the WiFi service, the gateway sends a second notification message to the Zigbee node before the end time of the mechanism;

[0191] After receiving the second notification message, the Zigbee node closes the negotiation working mechanism when the end time of the mechanism arrives.

[0192] In this embodiment, when the gateway determines that WiFi service is needed, it agrees with the Zigbee node to start the negotiation mechanism, and after entering the negotiation mechanism, agrees on the time for WiFi service and Zigbee service communication. This solution can ensure the normal processing of Zigbee service if there is a sudden Zigbee service during WiFi service, which can effectively solve the problem of sudden information loss.

[0193] Based on the same inventive concept, a communication device is also provided in the embodiment of the present application. Figure 7 , Figure 7 Schematic diagram of the structure of a communication device applied to the gateway side in an embodiment of the present application. The device includes: a determination unit 701, a transceiver unit 702 and a setting unit 703;

[0194] A determination unit 701, configured to determine a mechanism start time according to a time when the WiFi service is started;

[0195] The transceiver unit 702 is used to send a first notification message to the Zigbee node before the mechanism start time determined by the determination unit 701, wherein the first notification message carries the mechanism start time, time period and time window; wherein the duration of the time window is less than the duration of the time period; enable the Zigbee node to send a first confirmation message in response to the first notification message, and start the negotiation working mechanism. After the mechanism start time, if a triggering event occurs, the Zigbee service communication is performed with the gateway within the time window of the time period; receive the first confirmation message sent by the Zigbee node,

[0196] The setting unit 703 is used to monitor the Zigbee service initiated by the Zigbee node within the time window of each time period after the transceiver unit 702 receives the first confirmation message sent by the Zigbee node and after the start time of the mechanism; and communicate with the Zigbee node for WiFi service outside the time window of each time period.

[0197] Preferably,

[0198] The determination unit 701 is further configured to determine the end time of the mechanism according to the time of ending the WiFi service;

[0199] The sending unit is further used to send a second notification message to the Zigbee node before the mechanism end time determined by the determining unit 701, so that the Zigbee node closes the negotiation working mechanism when the mechanism end time arrives.

[0200] Preferably, the device further comprises: a processing unit 704;

[0201] The processing unit 704 is used to monitor the Zigbee service initiated by the Zigbee node within the time window of each time period set by the setting unit 703; if the Zigbee service initiated by the Zigbee node is monitored, perform Zigbee service communication with the Zigbee node.

[0202] Preferably,

[0203] The transceiver unit 702 is further configured to perform time synchronization with the Zigbee node.

[0204] The units in the above-mentioned embodiments may be integrated into one body or deployed separately; they may be combined into one unit or further divided into multiple sub-units.

[0205] Based on the same inventive concept, a communication device is also provided in the embodiment of the present application. Figure 8 , Figure 8 Schematic diagram of the structure of a communication device applied to the Zigbee node side in an embodiment of the present application. The device includes: a receiving unit 801, a sending unit 802, a setting unit 803 and a processing unit 804;

[0206] The receiving unit 801 is configured to receive a first notification message sent by the gateway according to the mechanism start time determined by the time when the WiFi service is started; the first notification message carries the mechanism start time, the time period and the time window; wherein the duration of the time window is less than the duration of the time period;

[0207] The sending unit 802 is configured to send a first confirmation message to the gateway after the receiving unit 801 receives the first notification message, so that the gateway monitors the Zigbee service initiated by the Zigbee node within the time window of each time period after the start time of the mechanism; and performs WiFi service communication with the Zigbee node outside the time window of each time period;

[0208] The setting unit 803 is used to start the negotiation working mechanism after the receiving unit 801 receives the first notification message;

[0209] The processing unit 804 is configured to perform Zigbee service communication with the gateway within a time window of the time period if a triggering event occurs after the setting unit 803 sets the mechanism start time.

[0210] Preferably,

[0211] The receiving unit 801 is further configured to receive a second notification message sent by the gateway according to the mechanism end time determined by the time of ending the WiFi service;

[0212] The setting unit 803 is further configured to close the negotiation working mechanism when the mechanism end time arrives after the receiving unit 801 receives the second notification message sent by the gateway according to the mechanism end time determined according to the time of ending the WiFi service.

[0213] Preferably,

[0214] The processing unit 804 is further used to perform Zigbee service communications with the gateway within the time window of the time period, including: if the time when the triggering event occurs is after the time window in the current time period, then perform Zigbee service communications with the gateway within the time window of the next time period; if the time when the triggering event occurs is within or before the time window in the current time period, then perform Zigbee service communications with the gateway within the time window of the current time period.

[0215] Preferably,

[0216] The processing unit 804 is further configured to continue the Zigbee service communication corresponding to the triggering event in a next cycle time window if the Zigbee service communication corresponding to the triggering event is not completed in the current cycle time window.

[0217] Preferably,

[0218] The receiving unit 801 is further configured to perform time synchronization with the gateway;

[0219] The sending unit 802 is further configured to perform time synchronization with the gateway.

[0220] The units in the above-mentioned embodiments may be integrated into one body or deployed separately; they may be combined into one unit or further divided into multiple sub-units.

[0221] In another embodiment, an electronic device is provided, including a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein when the processor executes the program, the gateway implements the steps of the communication method.

[0222] In another embodiment, a computer-readable storage medium is provided, on which computer instructions are stored. When the instructions are executed by a processor, the gateway can implement the steps in the communication method.

[0223] In another embodiment, an electronic device is provided, including a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein when the processor executes the program, the Zigbee node implements the steps of the communication method.

[0224] In another embodiment, a computer-readable storage medium is provided, on which computer instructions are stored. When the instructions are executed by a processor, the Zigbee node can implement the steps in the communication method.

[0225] Fig. 9 The following is a schematic diagram of the physical structure of an electronic device provided by an embodiment of the present invention. Fig. 9As shown, the electronic device may include: a processor (Processor) 910, a communication interface (Communications Interface) 920, a memory (Memory) 930 and a communication bus 940, wherein the processor 910, the communication interface 920, and the memory 930 communicate with each other through the communication bus 940. The processor 910 may call the logic instructions in the memory 930 to execute the following method:

[0226] A first notification message is sent by a receiving gateway according to a mechanism start time determined by the time when the WiFi service is started; the first notification message carries the mechanism start time, a time period and a time window; wherein the duration of the time window is less than the duration of the time period;

[0227] Sending a first confirmation message to the gateway, so that the gateway monitors the Zigbee service initiated by the Zigbee node within the time window of each time period after the start time of the mechanism; and performs WiFi service communication with the Zigbee node outside the time window of each time period;

[0228] The negotiation working mechanism is started, and after the start time of the mechanism, if a triggering event occurs, Zigbee service communication is performed with the gateway within the time window of the time period.

[0229] In addition, the logic instructions in the above-mentioned memory 930 can be implemented in the form of a software functional unit and can be stored in a computer-readable storage medium when it is sold or used as an independent product. Based on such an understanding, the technical solution of the present invention can be essentially or partly embodied in the form of a software product that contributes to the prior art. The computer software product is stored in a storage medium, including several instructions for a computer device (which can be a personal computer, a server, or a network device, etc.) to perform all or part of the steps of the method described in each embodiment of the present invention. The aforementioned storage medium includes: U disk, mobile hard disk, read-only memory (ROM, Read-Only Memory), random access memory (RAM, Random Access Memory), disk or optical disk, etc. Various media that can store program codes.

[0230] Fig.10 FIG. 1 is a schematic diagram of the physical structure of another electronic device provided by an embodiment of the present invention. Fig.10As shown, the electronic device may include: a processor (Processor) 1010, a communication interface (Communications Interface) 1020, a memory (Memory) 1030 and a communication bus 1040, wherein the processor 1010, the communication interface 1020, and the memory 1030 communicate with each other through the communication bus 1040. The processor 1010 may call the logic instructions in the memory 1030 to execute the following method:

[0231] Determine the starting time of the mechanism according to the time when the WiFi service is started;

[0232] Sending a first notification message to the Zigbee node before the start time of the mechanism, wherein the first notification message carries the start time of the mechanism, a time period and a time window; wherein the duration of the time window is less than the duration of the time period; causing the Zigbee node to send a first confirmation message in response to the first notification message, and start a negotiation working mechanism, and after the start time of the mechanism, if a triggering event occurs, then performing Zigbee service communication with the gateway within the time window of the time period;

[0233] Receive a first confirmation message sent by the Zigbee node, and after the start time of the mechanism, monitor the Zigbee service initiated by the Zigbee node within the time window of each time period; and communicate with the Zigbee node for WiFi service outside the time window of each time period.

[0234] In addition, the logic instructions in the above-mentioned memory 1030 can be implemented in the form of software functional units and can be stored in a computer-readable storage medium when sold or used as an independent product. Based on such an understanding, the technical solution of the present invention, in essence, or the part that contributes to the prior art or the part of the technical solution, can be embodied in the form of a software product, which is stored in a storage medium and includes several instructions for a computer device (which can be a personal computer, a server, or a network device, etc.) to perform all or part of the steps of the method described in each embodiment of the present invention. The aforementioned storage medium includes: various media that can store program codes, such as a USB flash drive, a mobile hard disk, a read-only memory (ROM), a random access memory (RAM), a magnetic disk or an optical disk.

[0235] The device embodiments described above are merely illustrative, wherein the units described as separate components may or may not be physically separated, and the components displayed as units may or may not be physical units, that is, they may be located in one place, or they may be distributed on multiple network units. Some or all of the modules may be selected according to actual needs to achieve the purpose of the scheme of this embodiment. Ordinary technicians in this field can understand and implement it without paying creative labor.

[0236] Through the description of the above implementation methods, those skilled in the art can clearly understand that each implementation method can be implemented by means of software plus a necessary general hardware platform, and of course, it can also be implemented by hardware. Based on this understanding, the above technical solution is essentially or the part that contributes to the prior art can be embodied in the form of a software product, and the computer software product can be stored in a computer-readable storage medium, such as ROM / RAM, a disk, an optical disk, etc., including a number of instructions for a computer device (which can be a personal computer, a server, or a network device, etc.) to execute the methods described in each embodiment or some parts of the embodiments.

[0237] The above description is only a preferred embodiment of the present invention and is not intended to limit the present invention. Any modifications, equivalent substitutions, improvements, etc. made within the spirit and principles of the present invention should be included in the scope of protection of the present invention.

Claims

1. A communication method, applied to a Zigbee protocol Zigbee node, characterized in that: The method comprises: A first notification message is sent by a receiving gateway according to a mechanism start time determined by the time when the wireless Internet access WiFi service is started; the first notification message carries the mechanism start time, the time period and the time window; wherein the duration of the time window is less than the duration of the time period; Sending a first confirmation message to the gateway, so that the gateway monitors the Zigbee service initiated by the Zigbee node within the time window of each time period after the start time of the mechanism; and performs WiFi service communication with the Zigbee node outside the time window of each time period; Start the negotiation working mechanism, and after the start time of the mechanism, if a triggering event occurs, perform Zigbee service communication with the gateway within the time window of the time period; The performing Zigbee service communication with the gateway within the time window of the time period includes: If the time when the triggering event occurs is after the time window in the current time period, Zigbee service communication is performed with the gateway in the time window of the next time period; If the time when the triggering event occurs is within or before the time window in the current time period, Zigbee service communication is performed with the gateway in the time window of the current time period.

2. The method according to claim 1, characterized in that The method further comprises: After receiving the second notification message sent by the gateway according to the mechanism end time determined according to the time of ending the WiFi service, the negotiation working mechanism is closed when the mechanism end time arrives.

3. The method according to claim 1, characterized in that The method further comprises: If the Zigbee service communication corresponding to the triggering event is not completed within the current cycle time window, the Zigbee service communication will continue within the next cycle time window.

4. The method according to any one of claims 1 to 3, characterized in that: The method further comprises: Time synchronization is performed with the gateway.

5. A communication method, applied to a gateway, characterized in that: The method comprises: Determine the starting time of the mechanism according to the time of starting the wireless Internet access WiFi service; Sending a first notification message to a Zigbee node before the start time of the mechanism, wherein the first notification message carries the start time of the mechanism, a time period and a time window; wherein the duration of the time window is less than the duration of the time period; causing the Zigbee node to send a first confirmation message in response to the first notification message, and start a negotiation working mechanism, and after the start time of the mechanism, if a triggering event occurs, then performing Zigbee service communication with the gateway within the time window of the time period; The performing Zigbee service communication with the gateway within the time window of the time period includes: If the time when the trigger event occurs is after the time window in the current time period, Zigbee service communication is performed with the gateway in the time window of the next time period; if the time when the trigger event occurs is within or before the time window in the current time period, Zigbee service communication is performed with the gateway in the time window of the current time period; Receive a first confirmation message sent by the Zigbee node, and after the start time of the mechanism, monitor the Zigbee service initiated by the Zigbee node within the time window of each time period; and communicate with the Zigbee node for WiFi service outside the time window of each time period.

6. The method according to claim 5, characterized in that The method further comprises: When the mechanism end time is determined according to the time of ending the WiFi service, a second notification message is sent to the Zigbee node before the mechanism end time, so that the Zigbee node closes the negotiation working mechanism when the mechanism end time arrives.

7. The method according to claim 5, characterized in that The method further comprises: Monitoring the Zigbee service initiated by the Zigbee node within a time window of each time period; If a Zigbee service initiated by a Zigbee node is monitored, Zigbee service communication is performed with the Zigbee node.

8. The method according to any one of claims 5 to 7, characterized in that: The method further comprises: Perform time synchronization with the Zigbee node.

9. A communication method, characterized in that: The method comprises: The gateway determines the start time of the mechanism according to the time of starting the wireless Internet access WiFi service, and sends a first notification message to the Zigbee protocol Zigbee node before the start time of the mechanism, wherein the first notification message carries the start time of the mechanism, the time period and the time window; wherein the duration of the time window is less than the duration of the time period; When receiving the first notification message, the Zigbee node sends a first confirmation message to the gateway and starts a negotiation working mechanism. After the start time of the mechanism, if a triggering event occurs, the Zigbee service communication is performed with the gateway within the time window of the time period; After the start time of the mechanism, the gateway monitors the Zigbee service initiated by the Zigbee node within the time window of each time period; and performs WiFi service communication with the Zigbee node outside the time window of each time period; The Zigbee service communication with the gateway within the time window of the time period includes: if the time when the triggering event occurs is after the time window in the current time period, the Zigbee service communication with the gateway within the time window of the next time period; if the time when the triggering event occurs is within or before the time window in the current time period, the Zigbee service communication with the gateway within the time window of the current time period.

10. The method according to claim 9, characterized in that The method further comprises: When the gateway determines the end time of the mechanism according to the time of ending the WiFi service, before the end time of the mechanism, the gateway sends a second notification message to the Zigbee node; After receiving the second notification message, the Zigbee node closes the negotiation working mechanism when the end time of the mechanism arrives.

11. The method according to claim 9, characterized in that The method further comprises: If the Zigbee service communication corresponding to the triggering event is not completed within the current cycle time window, the Zigbee service communication will continue within the next cycle time window.

12. The method according to any one of claims 9 to 11, characterized in that: The method further comprises: The gateway performs time synchronization with the Zigbee node.

13. A communication device, applied to a Zigbee protocol Zigbee node, characterized in that: The device comprises: a receiving unit, a sending unit, a setting unit and a processing unit; The receiving unit is used to receive a first notification message sent by the gateway according to the mechanism start time determined by the time of starting the wireless Internet access WiFi service; the first notification message carries the mechanism start time, time period and time window; wherein the duration of the time window is less than the duration of the time period; The sending unit is used for the receiving unit to send a first confirmation message to the gateway after receiving the first notification message, so that the gateway monitors the Zigbee service initiated by the Zigbee node within the time window of each time period after the start time of the mechanism; and performs WiFi service communication with the Zigbee node outside the time window of each time period; The setting unit is used to start the negotiation working mechanism; The processing unit is configured to perform Zigbee service communication with the gateway within a time window of the time period if a triggering event occurs after the setting unit sets the mechanism start time; The processing unit is further used to perform Zigbee service communication with the gateway within the time window of the time period, including: if the time when the triggering event occurs is after the time window in the current time period, then Zigbee service communication is performed with the gateway within the time window of the next time period; if the time when the triggering event occurs is within or before the time window in the current time period, then Zigbee service communication is performed with the gateway within the time window of the current time period.

14. A communication device, applied to a gateway, characterized in that: The device comprises: a determination unit, a transceiver unit and a setting unit; The determining unit is used to determine the starting time of the mechanism according to the time when the wireless Internet access WiFi service is started; The transceiver unit is used to send a first notification message to a Zigbee node of the Zigbee protocol before the mechanism start time determined by the determination unit, wherein the first notification message carries the mechanism start time, time period and time window; wherein the duration of the time window is less than the duration of the time period; enable the Zigbee node to send a first confirmation message in response to the first notification message, and start a negotiation working mechanism, and after the mechanism start time, if a triggering event occurs, perform Zigbee service communication with the gateway within the time window of the time period; receive the first confirmation message sent by the Zigbee node; The Zigbee service communication with the gateway within the time window of the time period includes: if the time when the trigger event occurs is after the time window in the current time period, the Zigbee service communication with the gateway within the time window of the next time period; if the time when the trigger event occurs is within or before the time window in the current time period, the Zigbee service communication with the gateway within the time window of the current time period; The setting unit is used to monitor the Zigbee service initiated by the Zigbee node within a time window of each time period after the start time of the mechanism when the transceiver unit receives the first confirmation message sent by the Zigbee node; and perform WiFi service communication with the Zigbee node outside the time window of each time period.

15. A communication system, characterized in that: The system comprises: a gateway and a Zigbee protocol Zigbee node; The gateway determines the start time of the mechanism according to the time of starting the wireless Internet access WiFi service, and sends a first notification message to the Zigbee node before the start time of the mechanism, wherein the first notification message carries the start time of the mechanism, the time period and the time window; wherein the duration of the time window is less than the duration of the time period; after the start time of the mechanism, the gateway monitors the Zigbee service initiated by the Zigbee node within the time window of each time period; and communicates with the Zigbee node for WiFi service outside the time window of each time period; The Zigbee node, upon receiving the first notification message, sends a first confirmation message to the gateway and starts a negotiation working mechanism, and after the start time of the mechanism, if a triggering event occurs, performs Zigbee service communication with the gateway within a time window of the time period; The Zigbee service communication with the gateway within the time window of the time period includes: if the time when the triggering event occurs is after the time window in the current time period, the Zigbee service communication with the gateway within the time window of the next time period; if the time when the triggering event occurs is within or before the time window in the current time period, the Zigbee service communication with the gateway within the time window of the current time period.

16. An electronic device comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, characterized in that: When the processor executes the program, the method according to any one of claims 1 to 4 is implemented.

17. A computer-readable storage medium having a computer program stored thereon, characterized in that: When the program is executed by a processor, the method described in any one of claims 1 to 4 is implemented.

18. An electronic device comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, characterized in that: When the processor executes the program, the method according to any one of claims 5 to 8 is implemented.

19. A computer-readable storage medium having a computer program stored thereon, characterized in that: When the program is executed by a processor, the method described in any one of claims 5 to 8 is implemented.

Citation Information

Patent Citations

  • Data transmission method and smart home control device

    CN107438020A

  • Adaptive timing for triggering GSM to TD-scdma cell reselection

    US20140213254A1