CN116208442A - Awakening method, gateway and system - Google Patents

Awakening method, gateway and system Download PDF

Info

Publication number
CN116208442A
CN116208442A CN202111446161.XA CN202111446161A CN116208442A CN 116208442 A CN116208442 A CN 116208442A CN 202111446161 A CN202111446161 A CN 202111446161A CN 116208442 A CN116208442 A CN 116208442A
Authority
CN
China
Prior art keywords
gateway
module
message
address
low
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN202111446161.XA
Other languages
Chinese (zh)
Inventor
王云贵
胡剑
李有涛
吴日海
蔡亚杰
王建兵
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Huawei Technologies Co Ltd
Original Assignee
Huawei 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 Huawei Technologies Co Ltd filed Critical Huawei Technologies Co Ltd
Priority to CN202111446161.XA priority Critical patent/CN116208442A/en
Priority to PCT/CN2022/134650 priority patent/WO2023098615A1/en
Publication of CN116208442A publication Critical patent/CN116208442A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L12/00Data switching networks
    • H04L12/66Arrangements for connecting between networks having differing types of switching systems, e.g. gateways
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W52/00Power management, e.g. TPC [Transmission Power Control], power saving or power classes
    • H04W52/02Power saving arrangements
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W52/00Power management, e.g. TPC [Transmission Power Control], power saving or power classes
    • H04W52/02Power saving arrangements
    • H04W52/0203Power saving arrangements in the radio access network or backbone network of wireless communication networks
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W88/00Devices specially adapted for wireless communication networks, e.g. terminals, base stations or access point devices
    • H04W88/16Gateway arrangements
    • YGENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
    • Y02TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
    • Y02DCLIMATE CHANGE MITIGATION TECHNOLOGIES IN INFORMATION AND COMMUNICATION TECHNOLOGIES [ICT], I.E. INFORMATION AND COMMUNICATION TECHNOLOGIES AIMING AT THE REDUCTION OF THEIR OWN ENERGY USE
    • Y02D30/00Reducing energy consumption in communication networks
    • Y02D30/70Reducing energy consumption in communication networks in wireless communication networks

Abstract

The application provides a wake-up method, a gateway and a system, wherein the gateway comprises a low-power module and a wireless alliance Wi-Fi module, the Wi-Fi module is in a dormant state, and the low-power module is used for waking up the Wi-Fi module in the dormant state. The wake-up method comprises the following steps: the low power consumption module of the first gateway receives the first message; determining that the first message contains an address of the first gateway; and in response to determining that the first message contains an address of the first gateway, waking up a wireless alliance Wi-Fi module of the first gateway. The gateway has the characteristic of low power consumption, and the power consumption of the gateway and the whole system can be effectively reduced by adopting the wake-up method.

Description

Awakening method, gateway and system
Technical Field
The present disclosure relates to the field of communications technologies, and in particular, to a wake-up method, gateway, and system.
Background
The internet of things comprises a perception layer, a network layer and an application layer. The sensing layer comprises terminal equipment, and the terminal equipment comprises a sensor for collecting environment information; the network layer comprises an Internet of things gateway and an Internet of things controller, wherein the Internet of things controller is used for controlling, managing and the like the Internet of things gateway, the Internet of things gateway is used for sending environment information acquired by the terminal equipment to a server located on the application layer, and the server is used for realizing analysis processing and the like on the environment information or data.
The related national standard requirements, such as the mandatory standards of the water conservancy department, for water conservancy remote sensing measurement equipment, require that the terminal equipment can continuously collect hydrological data under the condition of battery power supply for not less than 30 days, and simultaneously require that the internet of things gateway can support the transmission of the data collected by the terminal equipment, which brings great challenges to the consumption of the internet of things gateway in the aspect of electric energy, especially in the environment with poor conditions.
Disclosure of Invention
The application discloses a wake-up method, a gateway and a system, wherein the gateway can meet the requirements of different industries, and the wake-up method provided by the application can save the power consumption of the gateway or the system.
In a first aspect, the present application provides a wake-up method, the method comprising: the low power consumption module of the first gateway receives the first message; determining that the first message contains an address of the first gateway; and in response to determining that the first message includes an address of the first gateway, waking up a wireless alliance Wi-Fi module of the first gateway.
It can be seen that the first gateway includes a low-power module and a Wi-Fi module, when the low-power module receives the first message and determines that the first message includes the address of the first gateway, the Wi-Fi module is awakened, and before the low-power module receives the first message or when the low-power module determines that the first message does not include the address of the first gateway, the Wi-Fi module is in an uncorrupted state, so that the power consumption is reduced, and the low-power module consumes less power and saves power.
Based on the first aspect, in a possible implementation manner, the low-power consumption module includes one of a bluetooth module, a ZigBee module, an air interface communication module, or a beidou communication module.
It can be seen that the low power consumption module can be a bluetooth module or a ZigBee module, in a possible implementation manner, the low power consumption module can also be an air interface communication module or a beidou communication module, which has low power consumption and can be used for transmitting data, and in addition, after the Wi-Fi module in the first gateway is awakened, the low power consumption module can also be used for transmitting data. Therefore, in the application, the first gateway can transmit different data through a plurality of channels or links, and can be applied to different industries and different application scenes, and meanwhile, the first gateway has the characteristic of low power consumption.
Based on the first aspect, in a possible implementation manner, the address of the first gateway includes an address of a low power consumption module of the first gateway or an address of a Wi-Fi module of the first gateway.
It can be appreciated that the address of the first gateway may be the address of the low power module or the address of the Wi-Fi module.
Based on the first aspect, in a possible implementation manner, the first message is generated and sent by the second gateway under a trigger condition; the first message is used for indicating to wake up Wi-Fi modules of all gateways on a link from the second gateway to the controller.
Based on the first aspect, in a possible implementation manner, the triggering condition includes that the second gateway receives an alarm notification sent by a terminal device, where the alarm notification is sent out when the terminal device detects that data is abnormal.
It can be understood that when the terminal device detects that the data is abnormal, the terminal device sends an alarm notification to the second gateway, the second gateway receives the alarm notification and triggers to generate a first message to instruct to wake up Wi-Fi modules of the gateways on the link from the second gateway to the controller, and the Wi-Fi link after being woken up can be used for transmitting the abnormal data collected by the terminal device, so that related personnel can process according to the abnormal data in time. In the application, the trigger wake-up mechanism is arranged on the gateway, so that abnormal conditions in the environment can be timely processed, and the method and the device can be applied to different scenes.
Based on the first aspect, in a possible implementation manner, the first message is sent by a controller or a root node gateway, and the root node gateway is a gateway directly connected with the controller.
It can be understood that the first message may also be generated and sent by the controller or the root node gateway, and in practical application, when one or more Wi-Fi links in the system need to be awakened, the controller or the root node gateway may determine the link that needs to be awakened according to the actual needs, and transmit the link to other gateways in the form of the first message.
Based on the first aspect, in a possible implementation manner, the first message is sent in a unicast manner, and the first message includes a receiving address and a destination address, where the receiving address is an address of a gateway needing to wake up in a next hop, and the destination address is an address of a last gateway needing to wake up; the method further comprises the steps of: and updating the receiving address in the first message according to the destination address, and sending the updated first message.
It will be appreciated that the first message may be transmitted in unicast in the system. The first message comprises a receiving address and a destination address, so that after each gateway receives the first message, whether the first message is sent to the gateway or not is determined according to the receiving address, only if the receiving address is the address of the gateway, the low-power consumption module of the gateway wakes up the Wi-Fi module, then the gateway determines and updates the receiving address of the next hop, the updated first message is sent out, and under the condition that the receiving address is not the address of the gateway, the gateway directly sends the first message out without waking up the Wi-Fi module. Implementing the present application helps reduce power consumption of a gateway or system.
Based on the first aspect, in a possible implementation manner, the first message includes addresses of various gateways needing to be awakened, and the first message is sent in a unicast or broadcast mode.
It can be understood that the first message may include the address of each gateway on the link to be awakened, where the first message may be sent in a unicast or broadcast mode, and after each gateway receives the first message, it is determined whether the first message includes the address of the gateway, if so, the Wi-Fi module of the gateway is awakened, the first message is sent out, and if not, the Wi-Fi module is not awakened, and the first message is directly sent out. Implementing the present application helps reduce power consumption of a gateway or system.
Based on the first aspect, in a possible implementation manner, the addresses of the gateways that need to be awakened exist in the form of a Bitmap.
Based on the first aspect, in a possible implementation manner, the method further includes: and sending the first message out.
In a second aspect, the application provides a gateway, which comprises a low-power module and a wireless alliance Wi-Fi module, wherein the Wi-Fi module is in a dormant state, and the low-power module is used for waking up the Wi-Fi module in the dormant state.
It can be seen that the gateway comprises a low-power consumption module and a Wi-Fi module, wherein the low-power consumption module has less power consumption, the Wi-Fi module does not need to consume power when in a dormant state, when the Wi-Fi module is required to be used for transmitting data, the Wi-Fi module in the dormant state can be awakened by the low-power consumption module, and when the Wi-Fi module does not need to be used, the Wi-Fi module can be in the dormant state again. The gateway power consumption is less, and the power consumption of the gateway and the whole system is reduced.
Based on the second aspect, in a possible implementation manner, the low-power consumption module includes one of a bluetooth module, a ZigBee module, an air interface communication module, or a beidou communication module.
It can be appreciated that the low power consumption module may be a bluetooth module or a ZigBee module, and in a possible implementation manner, the low power consumption module may also be an air interface communication module or a beidou communication module, where the power consumption of these communication modules is less, and the low power consumption module can be used to transmit data. In addition, after the Wi-Fi module in the first gateway is awakened, the Wi-Fi module can also be used for transmitting data. Therefore, in the application, the first gateway can transmit different data through a plurality of channels or links, and can be applied to different industries and different application scenes, and meanwhile, the first gateway has the characteristic of low power consumption.
Based on the second aspect, in a possible implementation manner, the sleep state is a non-powered state;
the gateway also comprises a processor and a power supply control module, wherein the low-power consumption module is connected with the processor, and the processor is connected with the power supply control module; the power supply control module is used for controlling power supply to the Wi-Fi module;
the low power consumption module is used for: receiving a first message, determining that the first message contains an address of the gateway, and sending a wake-up notification to the processor in response to determining that the first message contains the address of the gateway, wherein the wake-up notification is used for instructing the processor to wake up the Wi-Fi module;
the processor is configured to: and controlling the power supply control module to supply power to the Wi-Fi module according to the wake-up notification so as to wake up the Wi-Fi module.
It can be understood that the sleep state of the Wi-Fi module is a non-powered state, and the low-power module can wake up the Wi-Fi module of the gateway by controlling the power supply of the power supply control module to the Wi-Fi module.
Based on the second aspect, in a possible implementation manner, the address of the gateway includes an address of a low power consumption module of the gateway or an address of a Wi-Fi module of the gateway.
Based on the second aspect, in a possible implementation manner, the first message is generated and sent by the first gateway under a trigger condition; the first message is used for indicating to wake up Wi-Fi modules of all gateways on a link from the first gateway to the controller.
Based on the second aspect, in a possible implementation manner, the triggering condition includes that the first gateway receives an alarm notification sent by a terminal device, where the alarm notification is sent out when the terminal device detects that data is abnormal.
Based on the second aspect, in a possible implementation manner, the first message is sent by a controller or a root node gateway, and the root node gateway is a gateway directly connected to the controller.
Based on the second aspect, in a possible implementation manner, the first message is sent in a unicast manner, and the first message includes a receiving address and a destination address, where the receiving address is an address of a gateway needing to wake up in a next hop, and the destination address is an address of a last gateway needing to wake up; the gateway is used for: and updating the receiving address in the first message according to the destination address, and sending the updated first message.
Based on the second aspect, in a possible implementation manner, the first message includes addresses of various gateways that need to be awakened, and the first message is sent in a unicast or broadcast manner.
Based on the second aspect, in a possible implementation manner, the addresses of the gateways that need to wake up exist in the form of a Bitmap.
Based on the second aspect, in a possible implementation manner, the low power consumption module is configured to: and sending the first message out.
In a third aspect, the present application provides a system, including a plurality of gateways, where each gateway in the plurality of gateways includes a low power module and a wireless alliance Wi-Fi module, where the Wi-Fi module is in a sleep state, and the low power module is configured to wake up the Wi-Fi module in the sleep state.
It can be seen that each gateway in the system comprises a low-power-consumption module and a Wi-Fi module, the Wi-Fi module is in a dormant state, power consumption is not needed, the power consumption of the low-power-consumption module is low, the power consumed by the whole system is low, and the power consumption of the system is reduced; when data transmission is needed, the Wi-Fi module can be awakened through the low-power-consumption module, and the awakened Wi-Fi module can be used for the transmission speed.
Based on the third aspect, in a possible implementation manner, the low-power consumption module includes one of a bluetooth module, a ZigBee module, an air interface communication module, or a beidou communication module.
It can be seen that the low power consumption module can be a bluetooth module, a ZigBee module, or an air interface communication module or a beidou communication module, where the foregoing communication modules of each gateway in the system form a low power consumption link, and the low power consumption link has less power consumption and can be used to transmit data. In addition, each Wi-Fi module in the system forms a Wi-Fi link after being awakened, and the Wi-Fi link can also be used for transmitting data. Therefore, in the application, the whole system comprises a low-power-consumption link and a Wi-Fi link, the links in two forms can be used for transmitting different data, and the system is suitable for different industries and different application scenes, and meanwhile, the whole system has the characteristic of low power consumption.
Based on the third aspect, in a possible implementation manner, the plurality of gateways includes a first gateway;
the low-power consumption module of the first gateway is used for receiving a first message; the first message comprises a broadcast address, wherein the broadcast address is used for indicating a Wi-Fi module for waking up each gateway in the plurality of gateways;
The low-power consumption module of the first gateway is further used for waking up the Wi-Fi module of the first gateway according to the first message.
It will be appreciated that, at the time of the initial wake-up, wi-Fi modules of a plurality of gateways in the system need to be woken up, and therefore the first message includes a broadcast address, where the broadcast address is used to indicate to wake up Wi-Fi modules of each gateway in the plurality of gateways.
Based on the third aspect, in a possible implementation manner, the system further includes a controller, the first message is sent by the controller or a root node gateway, and the root node gateway is a gateway directly connected to the controller from the plurality of gateways.
It may be understood that, when the wake-up is performed for the first time, the wake-up initiator is a controller, and the first message may be generated and sent by the controller, or the controller notifies the root node gateway, and the root node gateway generates and sends the first message.
Based on the third aspect, in a possible implementation manner, the low power consumption module of the first gateway is further configured to send the first message out.
Based on the third aspect, in a possible implementation manner, the Wi-Fi module of the first gateway is further configured to:
sending a registration request to a controller;
And receiving a registration identifier of the Wi-Fi module of the first gateway returned by the controller.
It can be understood that after the Wi-Fi module of each gateway is awakened for the first time, the Wi-Fi module of each gateway needs to register with the controller, and after the Wi-Fi module of each gateway is successfully registered, the controller returns a registration identifier to the Wi-Fi module of the gateway, wherein the registration identifier can be used as an identity identifier ID of the Wi-Fi module.
Based on the third aspect, in a possible implementation manner, the Wi-Fi module of the first gateway is further configured to send an identifier of the Wi-Fi module to a low-power module of the first gateway. Based on the third aspect, in a possible implementation manner, the Wi-Fi module of the first gateway is further configured to:
receiving an identification of a Wi-Fi module of an adjacent gateway and an identification of a low-power consumption module of the adjacent gateway, wherein the identification is sent by the Wi-Fi module of the adjacent gateway;
transmitting the identification of the Wi-Fi module of the adjacent gateway, the identification of the low-power-consumption module of the adjacent gateway and the identification of the Wi-Fi module of the first gateway to the low-power-consumption module of the first gateway;
wherein the adjacent gateway refers to a gateway that the first gateway can reach through one hop.
Based on the third aspect, in a possible implementation manner, the low power consumption module of the first gateway is further used for transmitting data at a low speed, and the Wi-Fi module of the first gateway is further used for transmitting data at a high speed.
It can be seen that Wi-Fi module links formed by Wi-Fi modules of each gateway in the system can be used to transmit data at high speed, and low power consumption links formed by low power consumption modules of each gateway can be used to transmit data at low speed. When the data does not need to be transmitted at a high speed, the data can be transmitted through a low-power-consumption link in the system, and the Wi-Fi link can be in a dormant state, so that the power consumption is saved; when the data needs to be transmitted at a high speed, the Wi-Fi modules of the gateway can be respectively awakened through the low-power-consumption modules of the gateways, and the data is transmitted through the Wi-Fi module links. In the application, the system formed by the gateways can be applied to different industries and different scenes, different requirements are met, and the whole system has the characteristics of low power consumption and strong applicability.
Drawings
In order to more clearly illustrate the technical solutions of the embodiments of the present application, the drawings needed in the description of the embodiments will be briefly introduced below, and it is obvious that the drawings in the following description are some embodiments of the present application, and other drawings may be obtained according to these drawings without inventive effort for a person skilled in the art.
Fig. 1 is a schematic diagram of an architecture of an internet of things system provided in the present application;
Fig. 2 is a schematic diagram of a process of establishing a link between adjacent gateways provided in the present application;
FIG. 3 is a schematic diagram of elements in a message provided in the present application;
FIG. 4 is a schematic flow chart of a wake-up method provided in the present application;
FIG. 5 is a flow chart of another wake-up method provided in the present application;
FIG. 6 is a diagram of a network layer message format provided in the present application;
FIG. 7 is a diagram illustrating another network layer message format provided herein;
fig. 8 is a schematic diagram of an internet of things system architecture based on the beidou system provided by the application;
fig. 9 is a schematic structural diagram of a gateway provided in the present application;
fig. 10 is a schematic structural diagram of still another gateway exemplarily provided in the present application;
fig. 11 is a schematic structural diagram of still another gateway exemplarily provided in the present application.
Detailed Description
The technical solutions in the embodiments of the present application will be clearly and completely described below with reference to the drawings in the embodiments of the present application.
Referring to fig. 1, fig. 1 is a schematic diagram of an architecture of an internet of things system provided by the present application, where the system includes a server (not shown in the figure), a controller, a plurality of gateways, and a plurality of terminals, and the server is connected with the controller.
The terminal equipment comprises a sensor for collecting environmental information or data. The terminal device may be, for example, an image sensor (camera), a temperature sensor, a humidity sensor, a smoke sensor, a rain gauge, a water level gauge, an infrared sensor, or the like.
The gateway is used for transmitting the data or information acquired by the terminal equipment to the server through the controller. Each gateway comprises a low-power module and a wireless alliance (wireless fidelity, wi-Fi) module, wherein the low-power module can be a bluetooth module or a ZigBee module. The low-power consumption module is used for transmitting service data at a low speed, for example, the low-power consumption module can be used for transmitting data under the condition that the data volume acquired by the terminal equipment is small or the transmission rate requirement is not high, for example, the low-power consumption module can be used for transmitting data when the water level height information is measured by a water level gauge or the rain water density is measured by a rain gauge in a water conservancy scene; the Wi-Fi module is used for transmitting service data at a high speed, for example, when the data volume acquired by the terminal device is large or the transmission rate requirement is high, the Wi-Fi module can be used for transmitting data, for example, when a camera or an image sensor is used for shooting image or video data in a water conservancy scene, the Wi-Fi module can be used for transmitting data.
The controller is used for managing each gateway and each terminal device, for example, the controller is responsible for registration authentication and management work of the terminal device and each gateway, and the controller is also responsible for connection management and other work of the gateway.
The server is used for receiving information or data sent by the controller, analyzing and processing the information or data, and the like.
Fig. 1 is merely an example architecture provided in the present application, and in a practical application, in the system architecture shown in fig. 1, a Wi-Fi module of a gateway (e.g., gateway 1) directly connected to a controller may be in a power-on state, i.e., an always-on state. The system architecture may include more or fewer devices and fig. 1 is not limiting of the present application. For example, for convenience of illustration, only the terminal device connected to the gateway 1 is shown in fig. 1, and other gateways may also be connected to the terminal device, which is not shown in the figure; there may be multiple parallel gateways directly connected to the controller, only one shown in fig. 1, etc.
After the gateways are powered on, the low-power-consumption modules in the gateways are powered on, i.e. the low-power-consumption modules are in an on-line state, so that the low-power-consumption links of the whole system can transmit data. In order to reduce the power consumption of the device, wi-Fi modules of all the gateways are in a non-power state, and the Wi-Fi modules are in a dormant state, so that Wi-Fi links in the system cannot transmit data, the Wi-Fi modules of the gateways need to be awakened through low-power-consumption modules of all the gateways, and the data can be transmitted after the Wi-Fi modules are awakened and the links are established. How Wi-Fi modules of the respective gateways wake up is described below in connection with fig. 1.
Before introducing the method that Wi-Fi modules of each gateway are awakened, it should be noted that, after a low-power module in a certain gateway sends a message, the low-power module adjacent to the gateway can receive the message, and the non-adjacent gateway does not receive the message, where the adjacent gateway refers to a gateway reachable through one hop, and the non-adjacent gateway refers to a gateway not reachable through one hop. For example, in fig. 1, the gateway adjacent to the gateway 2 includes a gateway 1, a gateway 3, and a gateway 5, the gateway adjacent to the gateway 5 includes a gateway 2 and a gateway 6, and the gateway adjacent to the gateway 6 includes a gateway 5, a gateway 3, and a gateway 7. For another example, if the message is transmitted from the gateway 1 to the gateway 7, the low power module of the gateway 1 sends out the message, and the low power module of the gateway 2 may receive the message, but other gateways cannot receive the message; the low-power-consumption module of the gateway 2 sends out the message, the low-power-consumption module of the gateway 3 and the low-power-consumption module of the gateway 5 can receive the message, and other gateways can not receive the message; the low power consumption module of gateway 3 sends out the message, and the low power consumption module of gateway 4 and the low power consumption module of gateway 6 can receive the message, and other gateways can not receive the message.
It should be noted that, the description is presented here of a procedure in which Wi-Fi modules of respective gateways in the system are first awakened. In the following, the process that Wi-Fi modules of each gateway are woken up again (i.e. woken up for the second time and woken up for the third time …) will be referred to, and in the process that the Wi-Fi modules are woken up again, a "first message" is referred to, where the "first message" is used to indicate a message transmitted between each low-power consumption module in the system when the Wi-Fi modules are woken up again. In order to distinguish the "first message", a "second message" is used herein in describing the process of first waking up, which is used to denote a message transmitted between the various low power consumption modules in the system at the time of first waking up. After each device in the system is powered on, when the Wi-Fi module of each gateway is awakened for the first time, the awakening initiator is a controller.
In one implementation manner, in fig. 1, a controller sends a message or a notification to a gateway 1, where the message or the notification is used to instruct the gateway 1 to generate a second message, where the second message is used to instruct to wake up Wi-Fi modules of all gateways, and after receiving the message or the notification sent by the controller, a low power module of the gateway 1 wakes up the Wi-Fi module of the gateway to generate a second message, and sends the second message, where the second message includes a broadcast address; the broadcast address indicating system needs to wake up the Wi-Fi modules in each gateway, and the low-power consumption module of the gateway 2 wakes up the Wi-Fi modules of the gateway after receiving the second message and sends out the second message; the low-power-consumption module of the gateway 3 and the low-power-consumption module of the gateway 5 can both receive the second message sent by the low-power-consumption module of the gateway 2, and the low-power-consumption module of the gateway 3 wakes up the Wi-Fi module of the gateway after receiving the second message and sends out the second message, and the low-power-consumption module of the gateway 5 wakes up the Wi-Fi module of the gateway after receiving the second message and sends out the second message; … until the second message traverses the entire system, all the Wi-Fi modules of the gateway are awakened.
In this case, the gateway directly connected to the controller is called a root node gateway, for example, in fig. 1, gateway 1 is a root node gateway. In fig. 1, if there are a plurality of gateways directly connected to the controller, the plurality of gateways belong to the root node gateway. In general, multiple root node gateways belong to different links, and when each gateway in the system is awakened for the first time, the controller needs to send a notification or a message to the multiple root node gateways respectively, so as to instruct the root node gateways to generate a second message, where the second message is used to instruct Wi-Fi modules of all the gateways to be awakened. After each root node gateway receives the message or the notification sent by the controller, the Wi-Fi module of the gateway is awakened, then a second message is generated, the second message is sent out, and … finally, the Wi-Fi modules of the gateways on all links in the system are awakened.
In one implementation manner, when the controller wakes up for the first time, a second message can be directly generated by the controller, the second message includes a broadcast address, the broadcast address indicates that the system needs to wake up Wi-Fi modules in the gateways, and the controller sends out the generated second message; the low-power consumption module of the gateway 1 receives the second message, wakes up the Wi-Fi module of the gateway and sends out the second message; … until the second message traverses the entire system, all the Wi-Fi modules of the gateway are awakened. If there are multiple root node gateways in the system, the multiple root node gateways can all receive the second message sent by the controller, and after each root node gateway receives the second message, wake up the Wi-Fi module of the gateway and send out the second message ….
Optionally, the second message may further include a sequence number, where the sequence number is used to identify the second message. When the low-power consumption module of a gateway receives the second message, judging whether the message with the serial number is received or not, if yes, not processing, and if not, waking up the Wi-Fi module of the gateway and sending the second message. The message includes the sequence number, and by judging whether the message of the sequence number is received, the repeated processing can be avoided. For example, in fig. 1, the low power module of gateway 6 may receive the second message sent by the low power module of gateway 3, or may receive the second message sent by the low power module of gateway 5, and when the low power module of gateway 6 receives the second message for the second time, it is determined by the sequence number that the message has been received and processed, and the message is not processed any more. Optionally, when the second message is transmitted in the system in a unicast mode, the second message may include a receiving address and a destination address, where the receiving address refers to an address of a gateway that needs to be awakened in a next hop, the destination address refers to an address of a last gateway that needs to be awakened, and both the receiving address and the destination address are broadcast addresses.
Alternatively, the second message may be transmitted in the system in the form of a broadcast. After the Wi-Fi modules of each gateway are awakened for the first time, the Wi-Fi modules of each gateway are respectively registered on the controller, namely, the Wi-Fi modules of the gateway needing to be registered send a registration request to the controller, after the controller receives the registration request, the controller registers the Wi-Fi modules of the gateway, and after the registration is completed, a registration identifier is returned to the Wi-Fi modules of the gateway, wherein the registration identifier can be used for identifying the Wi-Fi modules of the gateway. After the Wi-Fi modules of the gateways are successfully registered, links need to be established between the Wi-Fi modules of the gateways, and how links are established between the Wi-Fi modules of the gateways is described below.
A first way of establishing a link is described. For convenience of description, taking gateway 1 and gateway 2 in the system as an example, how to establish links between Wi-Fi modules of each gateway is described, referring to fig. 2, fig. 2 is a schematic diagram of a process of establishing a Wi-Fi link between gateway 1 and gateway 2 provided in the present application, and the process is as follows.
1) The Wi-Fi module of the gateway 1 sends the identification of the Wi-Fi module to the low-power-consumption module of the gateway, the identification of the low-power-consumption module is obtained, and then the gateway 1 binds the identification of the Wi-Fi module of the gateway with the identification of the low-power-consumption module. Similarly, the Wi-Fi module of the gateway 2 sends the identification of the Wi-Fi module to the low-power-consumption module of the gateway, the identification of the low-power-consumption module is obtained, and then the gateway 2 binds the identification of the Wi-Fi module of the gateway with the identification of the low-power-consumption module. The identification of the Wi-Fi module may be a registration identification of the Wi-Fi module or a media access control address (media access control, MAC) address, the identification of the low power module may be a public device address (public device address) or a random device address (random device address) of the low power module, and the random device address may be a static device address or a private device address.
2) The Wi-Fi module of the gateway 1 sends a connection request to the Wi-Fi module of the gateway 2, wherein the connection request carries the identification of the Wi-Fi module of the gateway 1 and the identification of the bound low-power-consumption module. Correspondingly, the Wi-Fi module of the gateway 2 receives the connection request, and the identification of the Wi-Fi module of the gateway 1 and the identification of the bound low-power-consumption module are obtained from the connection request.
The connection request is sent in a format of a Wi-Fi protocol standard message, and the Wi-Fi protocol standard message comprises a message header and at least one element. Referring to fig. 3, fig. 3 is a schematic diagram of an element in a standard message based on Wi-Fi protocol, where a number below each field indicates a number of bytes occupied by the field, in this embodiment, an identifier of a low power module in a connection request may be carried in a source extended address field, and an identifier of the Wi-Fi module is carried in a header of the message (the header of the message is not shown in the figure). The diagram of fig. 3 is merely for example, and is not meant to limit the format of the message in this embodiment.
3) The Wi-Fi module of the gateway 2 sends the routing information of the reachable gateway 1 to the low-power consumption module of the gateway, wherein the routing information of the reachable gateway 1 comprises the identification of the Wi-Fi module of the gateway 1, the identification of the bound low-power consumption module and the identification of the Wi-Fi module of the gateway 2.
4) The Wi-Fi module of the gateway 2 sends a connection request response message to the Wi-Fi module of the gateway 1, wherein the response message carries the identification of the Wi-Fi module of the gateway 2 and the identification of the bound low-power-consumption module. Correspondingly, the Wi-Fi module of the gateway 1 receives the response message and obtains the identification of the Wi-Fi module of the gateway 2 and the identification of the bound low-power-consumption module. The response message is also sent in the form of a message, and likewise, the identifier of the low-power module may be carried in the source extension field, and the identifier of the Wi-Fi module may be carried in the header of the message.
5) The Wi-Fi module of the gateway 1 sends the routing information of the reachable gateway 2 to the low-power consumption module of the gateway, wherein the routing information of the reachable gateway 2 comprises the identification of the Wi-Fi module of the gateway 2, the identification of the bound low-power consumption module and the identification of the Wi-Fi module of the gateway 1.
Thus, a link is established between gateway 1 and gateway 2. The above description describes the process of establishing links only by taking the gateway 1 and the gateway 2 as an example, and the links are also established between other gateways in the system, for example, between the gateway 2 and the gateway 3, between the gateway 2 and the gateway 5, between the gateway 3 and the gateway 4, between the gateway 3 and the gateway 6, etc., so that Wi-Fi links of the whole system are established, and the established Wi-Fi links can be used for transmitting data.
After Wi-Fi links are established, each gateway also sends the identification of the Wi-Fi module of the gateway, the identification of the bound low-power-consumption module, the identification of the Wi-Fi module of the adjacent gateway and the identification of the bound low-power-consumption module to a controller, and the identifications of the Wi-Fi modules of each gateway and the identifications of the bound low-power-consumption modules are stored in the controller, namely the routing information of each link in the system.
Optionally, in one implementation, after establishing the Wi-Fi link, the Wi-Fi module of each gateway may also write the route information from the gateway to the controller into the low power module of the gateway. For example, the Wi-Fi module of gateway 4 writes the identity of the gateway through which gateway 4 arrives at the controller to the low power module of gateway 4, where the identity of the gateway through which gateway 4 arrives at the controller includes the identity of gateway 3, the identity of gateway 2, the identity of gateway 1, and the identity of the gateway may be the identity of the Wi-Fi module of the gateway or the identity of the low power module. The identification of each gateway in the routing information is not in sequence.
Optionally, when a certain gateway in the system is abnormally restarted, the routing information stored in the gateway may be lost, and in this case, after the gateway is restarted, the Wi-Fi module of the gateway may reestablish a Wi-Fi link with the Wi-Fi module of the neighboring gateway.
In the first way of establishing a link, the low-power module of the gateway does not have a function of self active routing, cannot actively learn routing information, and the low-power module can obtain the routing information only by transmitting the learned routing information to the low-power module after the link is established by the Wi-Fi module. Thus, in such an implementation, when it is necessary to determine to which gateway a next hop of a message is sent, that is, to determine the receiving address of the next hop according to the destination address, it is necessary to rely on the routing function of the Wi-Fi module (for correspondence, reference is made to the description of the relevant content below).
In the second way of establishing links, the low-power-consumption modules of the gateway have the function of self active routing, and route information can be actively learned by establishing links between the low-power-consumption modules. Of course, the Wi-Fi modules may also obtain routing information by establishing links.
For example, if the gateway 1 and the gateway 2 are adjacent gateways, the Wi-Fi module and the low power consumption module of the gateway 1 send the identifiers to each other, and the Wi-Fi module and the low power consumption module of the gateway 2 send the identifiers to each other. The link can be established between the low power consumption module of the gateway 1 and the low power consumption module of the gateway 2 independently, and the process is as follows: the low-power-consumption module of the gateway 1 can send a connection request to the low-power-consumption module of the gateway 2, the connection request carries the identification of the low-power-consumption module of the gateway 1 and the identification of the bound Wi-Fi module, and correspondingly, the low-power-consumption module of the gateway 2 receives the connection request to obtain the identification of the low-power-consumption module of the gateway 1 and the identification of the bound Wi-Fi module; the low-power-consumption module of the gateway 2 sends a connection request response message to the low-power-consumption module of the gateway 1, the response message carries the identification of the low-power-consumption module of the gateway 2 and the identification of the bound Wi-Fi module, and correspondingly, the low-power-consumption module of the gateway 1 receives the response message to obtain the identification of the low-power-consumption module of the gateway 2 and the identification of the bound Wi-Fi module. The identification of the adjacent gateway can be obtained by establishing a link between the low power consumption modules. In this example, only gateway 1 and gateway 2 are taken as examples, and in practical application, links can be established between low-power consumption modules of adjacent gateways in the system.
Similarly, a link may be established between the Wi-Fi module of gateway 1 and the Wi-Fi module of gateway 2, as follows: the Wi-Fi module of the gateway 1 can send a connection request to the Wi-Fi module of the gateway 2, the connection request carries the identification of the Wi-Fi module of the gateway 1 and the identification of the bound low-power-consumption module, and correspondingly, the Wi-Fi module of the gateway 2 receives the connection request to obtain the identification of the Wi-Fi module of the gateway 1 and the identification of the bound low-power-consumption module; the Wi-Fi module of the gateway 2 sends a connection request response message to the Wi-Fi module of the gateway 1, the response message carries the identification of the Wi-Fi module of the gateway 2 and the identification of the bound low-power-consumption module, and correspondingly, the Wi-Fi module of the gateway 1 receives the response message to obtain the identification of the Wi-Fi module of the gateway 2 and the identification of the bound low-power-consumption module. The identification of the adjacent gateway can be obtained by establishing a link between Wi-Fi modules. In this example, only gateway 1 and gateway 2 are taken as examples, and in practical application, links can be established between Wi-Fi modules of adjacent gateways in the system.
In such an implementation, the low-power module has an autonomous routing function and an autonomous routing information learning function similar to the Wi-Fi module, and thus, in such an implementation, the low-power module may determine a receiving address of a next hop according to a destination address (corresponding to the description of the related contents will be referred to below).
The Wi-Fi link may be in a dormant state again after a period of time or because no data is transmitted for a long period of time. To facilitate the transmission of data, the controller needs to periodically wake up the Wi-Fi link. In some cases, when all Wi-Fi links in the system need to transmit data, the controller needs to wake up all Wi-Fi modules in the system periodically, and in this case, the method of waking up all Wi-Fi modules in the system for the first time may be adopted to wake up again, and specific reference may be made to the description of the related content, which is not repeated herein for brevity of the description.
In some scenarios, when one or more Wi-Fi links in the system need to transmit data, the controller is required to periodically wake up Wi-Fi modules on the one or more Wi-Fi links. For convenience of description, taking a Wi-Fi link to be awakened as an example, for example, in fig. 1, a Wi-Fi link formed by a controller, a gateway 1, a gateway 2, a gateway 3, a gateway 6 and a gateway 7 is taken as an example, how the controller wakes up the Wi-Fi link is described, and referring to fig. 4, fig. 4 is a schematic flow diagram of a wake-up method provided in the present application, where the wake-up method includes, but is not limited to, the following description.
S101, a low-power consumption module of the first gateway receives a first message.
Mode A: the first gateway refers to any gateway in the system that is not directly connected to the controller, i.e. a non-root node gateway, for example, in fig. 1, the first gateway may be gateway 2, gateway 3, gateway 6, gateway 7.
How the first message is generated is described below.
The controller sends a notification or message to the gateway 1, the notification or message being used to instruct the gateway 1 to generate a first message, the first message being used to instruct to wake up a Wi-Fi link formed by the gateway 1, the gateway 2, the gateway 3, the gateway 6 and the gateway 7; the low power consumption module of the gateway 1 receives the notification or the message sent by the controller and generates a first message.
In a first implementation manner, the first message generated by the low-power module of the gateway 1 includes a receiving address and a destination address, where the receiving address is an identifier of a gateway to be awakened in the next hop, the destination address is an identifier of a last gateway to be awakened on the link, where the receiving address is an identifier of a low-power module of the gateway 2 or an identifier of a Wi-Fi module of the gateway 2, and the destination address is an identifier of a low-power module of the gateway 7 or an identifier of a Wi-Fi module of the gateway 7.
It should be noted that, if the low power consumption module of the gateway does not have the function of active routing, when determining the receiving address of the next hop according to the destination address, the Wi-Fi module of the gateway needs to rely on the routing function of the Wi-Fi module of the gateway, that is, the Wi-Fi module can select the gateway that needs to be sent by the next hop according to the destination address. For example, if the low-power module of the gateway 1 does not have the function of autonomous routing, it is necessary to determine which gateway needs to be woken up next according to the destination address by the Wi-Fi module of the gateway 1, that is, the receiving address in the first message is determined by the Wi-Fi module of the gateway 1 according to the destination address and then sent to the low-power module of the gateway. If the low-power consumption module of the gateway has the function of self active routing, the low-power consumption module can finish the routing by itself, and the address of the next hop is determined according to the destination address. For example, if the low power module of the gateway 1 has an autonomous routing function, the low power module of the gateway 1 can determine the receiving address of the next hop according to the destination address.
In a first implementation, the first message is typically transmitted in a unicast form in the system.
In a second implementation manner, the first message generated by the low power consumption module of the gateway 1 includes an address of each gateway that needs to be awakened on the link, where the address of each gateway may be an identifier of a low power consumption module or an identifier of a Wi-Fi module of each gateway, for example, in this embodiment, the address of each gateway that needs to be awakened on the link includes an identifier of a Wi-Fi module or an identifier of a low power consumption module of the gateway 1, an identifier of a Wi-Fi module or an identifier of a low power consumption module of the gateway 2, an identifier of a Wi-Fi module or an identifier of a low power consumption module of the gateway 3, an identifier of a Wi-Fi module or an identifier of a low power consumption module of the gateway 6, an identifier of a Wi-Fi module of the gateway 7, or an identifier of a low power consumption module. In this implementation, the first message may be transmitted in the system in unicast or broadcast form.
Alternatively, the addresses of the various gateways on the link that need to wake up may exist in the form of a Bitmap. For example, if 7 gateways are included in the system, it may be indicated by "0" or "1" whether the Wi-Fi module of the gateway needs to be awakened, where "0" indicates that the Wi-Fi module of the gateway does not need to be awakened, and "1" indicates that the Wi-Fi module of the gateway needs to be awakened, if the gateway 1 to the gateway 7 are indicated in the order from left to right, then "1110011" indicates that the gateway that needs to be awakened includes the gateway 1, the gateway 2, the gateway 3, the gateway 6, and the gateway 7, and also indicates that the gateway 1 to the gateway 7 are indicated in the order from right to left, then "1100111" indicates that the gateway that needs to be awakened includes the gateway 1, the gateway 2, the gateway 3, the gateway 6, and the gateway 7, and so on. This example is merely for illustration, and other forms of Bitmap may be used to represent the addresses of the various gateways that need to wake up, which is not limited in this application.
In the mode a, the low power module of the first gateway receives the first message sent by the previous gateway, for example, if the first gateway is the gateway 2, the low power module of the gateway 2 receives the first message sent by the low power module of the gateway 1; if the first gateway is gateway 3, the low power consumption module of gateway 3 receives the first message sent by the low power consumption module of gateway 2; etc.
Mode B: the controller directly generates a first message according to the link which needs to be awakened, and then sends the first message out.
In a first implementation manner, the first message generated by the controller includes a receiving address and a destination address, where the receiving address is an identifier of the low-power module of the gateway 1, and the destination address is still an identifier of the low-power module of the gateway 7 or an identifier of the Wi-Fi module. In this implementation, the first message is typically sent in unicast.
Under the condition that the low-power-consumption module of the gateway has the function of self active routing, the receiving address can be determined by the low-power-consumption module according to the destination address; under the condition that the low-power-consumption module of the gateway does not have the function of self active routing, the receiving address can be determined by the Wi-Fi module of the gateway, and the Wi-Fi module determines the receiving address and then sends the receiving address to the low-power-consumption module. In a second implementation, the first message generated by the controller includes the address of each gateway on the link that needs to wake up. The content included in the first message in this implementation is the same as the content in the first message in the second implementation in the a mode, and the first message may also exist in the form of a Bitmap. The first message may be transmitted in the system in unicast or broadcast form.
In the B mode, the first gateway refers to any gateway in the system, and for example, in fig. 1, the first gateway may be gateway 1, gateway 2, gateway 3, gateway 6, or gateway 7. If the first gateway is gateway 1, the low power consumption module of gateway 1 receives a first message sent by the controller; if the first gateway is gateway 2, the low power consumption module of gateway 2 receives the first message sent by gateway 1; etc.
Optionally, in any implementation manner, the first message may further include a sequence number, where the sequence number is used to identify the first message. The sequence number has a similar meaning to the first wake-up gateway sequence number described above, and is used to identify a message, except that a different sequence number is used to identify a different message.
S102, the low-power consumption module of the first gateway judges whether the first message comprises the address of the gateway.
S103, if yes, the low-power consumption module of the first gateway wakes up the Wi-Fi module of the gateway, and the first message is sent out.
And S104, if not, the low-power consumption module of the first gateway directly sends out the first message.
In a first implementation manner, the first message includes a receiving address and a destination address, the first low-power module judges whether the receiving address in the first message is the address of the gateway, if yes, wakes up the first Wi-Fi module, modifies the receiving address in the first message into the identifier of the gateway to be waken up in the next hop, and then sends the first message out the identifier; if not, the first message is directly sent out without waking up.
In a second implementation manner, the first message includes addresses of gateways to be awakened on a link, the first low-power consumption module judges whether the first message includes the addresses of the gateways, if so, the first low-power consumption module wakes up the first Wi-Fi module and then sends out the first message, if so, the first low-power consumption module indicates that the gateways are positioned on the link to be awakened; if not, the gateway is not positioned on the link needing to be awakened, and the first message is directly sent out.
Optionally, in any implementation manner, if the first message includes a sequence number, the first low-power module first determines whether a message with the same sequence number is received after receiving the first message, if not, determines whether the first message includes an address of the gateway, executes a corresponding operation according to a determination result, and if received, does not perform any processing.
Optionally, in step S103, before the first message is sent out, it may be determined whether the destination address in the first message is the address of the gateway, if so, the first message is not sent, and if not, the first message is sent.
Steps S101 to S104 describe the action of a gateway, and in practical application, the system includes a plurality of gateways, so steps S101 to S104 are performed in a loop until each Wi-Fi module on the link indicated by the first notification is awakened. After each Wi-Fi module on the link indicated by the first notification is awakened, the Wi-Fi link can be used for high-speed data transmission. If a plurality of Wi-Fi links need to be awakened, each link in the plurality of links is respectively awakened, the controller respectively sends a plurality of first notices, each first notice indicates that one link needs to be awakened, and different first notices indicate that the links needing to be awakened are different.
It can be seen that in the application, the gateway comprises a Wi-Fi module and a low-power consumption module, the whole Internet of things system comprises a Wi-Fi link and a low-power consumption link, the Wi-Fi link is used for transmitting service data at a high speed, the low-power consumption link is used for transmitting the service data at a low speed, and when the data transmission is not needed, the Wi-Fi link is in a dormant state, so that the power consumption of the system can be reduced, and the requirements of different industries are met.
When the terminal device detects that the data is abnormal, for example, an infrared sensor on the terminal device in a water conservancy scene detects that personnel are close to a dangerous area, for example, a smoke sensor in a forest detects that smoke exceeds a threshold value, for example, a temperature sensor detects that the temperature is too low or too high, for example, a humidity sensor in soil detects that the humidity is too high or the humidity is insufficient, and the like, the terminal device sends an alarm notification to a gateway which is correspondingly connected, and after receiving the alarm notification, the gateway triggers to wake up a Wi-Fi module of the gateway and triggers to wake up Wi-Fi modules of all the gateways on a link from the gateway to the controller so that the Wi-Fi link from the gateway to the controller transmits the environment data collected by the terminal device. The following describes a process of waking up a Wi-Fi link where a gateway to a controller is located in the scenario with reference to fig. 1, and fig. 5 is a schematic flow chart of another waking up method provided in the present application.
S201, the low-power consumption module of the second gateway is triggered to wake up the Wi-Fi module of the second gateway under the triggering condition, and a first message is generated and sent. The second gateway is any gateway in the system, for example, the second gateway may be gateway 1, gateway 2, gateway 3, gateway 4, gateway 5, gateway 6, gateway 7 in fig. 1.
The triggering condition includes that the low power consumption module of the second gateway receives an alarm notification sent by the terminal equipment, wherein the alarm notification is generated under the condition that the terminal equipment detects data abnormality. The low-power consumption module of the second gateway receives the alarm notification sent by the terminal equipment, triggers the Wi-Fi module of the gateway to be awakened, and generates and sends a first message.
In a first implementation manner, the first message includes a receiving address and a destination address, where the receiving address is an identifier of a gateway that needs to be awakened in a next hop, for example, an identifier of a low-power module of the gateway that needs to be awakened in the next hop, and the destination address is an identifier of a last gateway that needs to be awakened on a link from the gateway to the controller, that is, an identifier of a root node gateway on the link from the gateway to the controller, where the identifier may be, for example, an identifier of a Wi-Fi module or an identifier of the low-power module. Alternatively, the destination address may also be an address of the controller, which may be, for example, a MAC address or an internet protocol (internet protocol, IP) address of the controller, or the like. Or the specific indication information may also be used to indicate the identity of the root node gateway or the address of the controller, for example, the specific indication information may be a specific character or number or code, etc., for example, the specific character may be F. If the low-power-consumption module of the second gateway has the function of autonomous routing, the receiving address in the first message may be determined by the low-power-consumption module of the second gateway according to the destination address, and if the low-power-consumption module of the second gateway does not have the function of autonomous routing, the receiving address in the first message may be determined by the Wi-Fi module of the second gateway according to the destination address and then sent to the second low-power-consumption module.
In a first implementation, the first message is typically transmitted in unicast form in the link.
In a second implementation manner, the first message includes identifiers of all gateways on a link from the second gateway to the controller, where the identifiers may be identifiers of low-power-consumption modules or identifiers of Wi-Fi modules. For example, if the second gateway is the gateway 4, after the gateway 4 receives the alarm notification sent by the terminal device connected to the gateway, the low-power module of the gateway 4 triggers to wake up the Wi-Fi module of the gateway, and generates and sends a first message, where the first message includes the identifier of the low-power module or the identifier of the Wi-Fi module of the gateway 3, the identifier of the low-power module or the identifier of the Wi-Fi module of the gateway 2, and the identifier of the low-power module or the identifier of the Wi-Fi module of the gateway 1. The identification of each gateway on the link from the gateway to the controller is stored into the low-power consumption module by the Wi-Fi module of the gateway when the gateway wakes up for the first time. In this implementation, the first message may be transmitted in the system in unicast or broadcast form.
Alternatively, the identity of each gateway on the link from the second gateway to the controller may be in the form of a Bitmap.
Optionally, in any implementation manner, the first message may further include a sequence number. The meaning of the serial number is similar to that of the foregoing embodiment, and will not be described in detail herein.
S202, the low-power consumption module of the first gateway receives the first message.
The first gateway refers to any gateway on the link from the second gateway to the controller, and the first gateway is different from the second gateway, for example, if the second gateway is gateway 4 in fig. 1, the first gateway refers to any gateway on the link from gateway 4 to the controller, such as gateway 3 or gateway 2 or gateway 1; if the second gateway is gateway 6 in fig. 1, the first gateway refers to any gateway located on the link from gateway 6 to the controller, for example, may be gateway 5 or gateway 2 or gateway 1 or gateway 3.
The first low power module receives a first message. If the second gateway is the gateway 4 and the first gateway is the gateway 3, the first message received by the low power consumption module of the gateway 3 is sent by the low power consumption module of the gateway 4; if the first gateway is gateway 2, the first message received by the low power consumption module of gateway 2 is sent by the low power consumption module of gateway 3; if the first gateway is gateway 1, the first message received by the low power module of gateway 1 is sent by the low power module of gateway 2. If the second gateway is the gateway 6 and the first gateway is the gateway 5, the first message received by the low power consumption module of the gateway 5 is sent by the low power consumption module of the gateway 6; if the first gateway is gateway 2, the first message received by the low power consumption module of gateway 2 is sent by the low power consumption module of gateway 5; if the first gateway is gateway 1, the first message received by the low power module of gateway 1 is sent by the low power module of gateway 2. Note that, when the second gateway is the gateway 6, the link from the second gateway to the controller may be the gateway 6, the gateway 5, the gateway 2, or the gateway 1, or may be the gateway 6, the gateway 3, the gateway 2, or the gateway 1.
S203, the low power consumption module of the first gateway judges whether the first message contains the address of the gateway.
S204, if yes, the low-power consumption module of the first gateway wakes up the Wi-Fi module of the gateway, and the first message is sent out.
And S205, if not, the low-power consumption module of the first gateway directly sends out the first message.
In a first implementation manner, a first message comprises a receiving address and a destination address, a low-power consumption module of a first gateway judges whether the receiving address in the first message is the address of the gateway, if yes, a Wi-Fi module of the gateway is awakened, the receiving address in the first message is modified into an identifier of the gateway to be awakened in the next hop, and then the first message is sent out to be identified; if not, the low power consumption module of the first gateway directly sends out the first message.
In a second implementation manner, the first message includes the identifier of each gateway on the link from the second gateway to the controller, the low-power consumption module of the first gateway judges whether the first message includes the address of the gateway, if so, wakes up the Wi-Fi module of the gateway, sends the first message, and if not, directly sends the first message.
Optionally, in any implementation manner, if the first message includes a sequence number, after the low-power module of the first gateway receives the first message, it first determines whether a message with the same sequence number is received, if not, it determines whether the first message includes an address of the gateway, and executes a corresponding operation according to a determination result; if so, no processing is performed.
The second gateway in step S201 may be any gateway in the system. Step S202 to step S205 describe the action of any gateway (not the second gateway) in the link from the second gateway to the controller, if the gateway is a root node gateway directly connected to the controller, the Wi-Fi module of the root node gateway can be awakened only by executing the operations of step S202 to step S205 once, and if the gateway is not a root node gateway, the steps S202 to S205 are executed in a circulating manner until all Wi-Fi modules between the second gateway and the controller are awakened. The awakened Wi-Fi link can be used for transmitting data acquired by the terminal equipment at a high speed.
It can be seen that when data transmission is not needed, the Wi-Fi link is in a dormant state, so that electricity can be saved, and power consumption can be reduced; when abnormal conditions are met, the Wi-Fi module of the gateway is awakened through each low-power consumption module, so that the Wi-Fi link normally transmits data.
In the embodiments of the methods described in fig. 4 and fig. 5, the first message is transmitted between the low power modules of the respective gateways, where the first message is in the form of a message, and the message format of the first message is described below.
a. If the low power consumption module is a BLE module, the first message is a message based on a BLE protocol.
Referring to fig. 6, fig. 6 is a schematic diagram of a network layer message format based on BLE protocol according to an embodiment of the present application. In fig. 6, the network layer packet is a protocol data unit (protocol data unit, PDU) that includes a "header" field, a "length" field, and a "data" field, where the "header" field includes a "broadcast message type" field, a "reserved" field, a "transmit address type" field, and a "receive address type" field. The number below each field indicates the number of bytes occupied by that field and the number above indicates the number of bits occupied by that field.
The embodiment of the application expands a field of a broadcast message type in a message, and when a first message is transmitted in a system in a broadcast mode, the transmission mode of the message and/or the type or the purpose of the message are represented by the broadcast message type. For example, with "0111" it is indicated that the message is transmitted in broadcast form and that the message is a wake-up message (Wi-Fi module for indicating wake-up gateway); the message is transmitted in the form of broadcast, denoted by "0000"; etc. The "broadcast message type" field may be null when the first message is transmitted in unicast in the system. The "send address type" indicates the type of identity of the BLE module of the current gateway, the "receive address type" indicates the type of identity of the BLE module of the next hop gateway, where the type of identity of the BLE module of the current gateway or the next hop gateway may be a public device address (public device address) or a random device address (random device address), which in turn may be a static device address or a private device address, and so on.
The "data" field includes a plurality of broadcast data (AD) structures, each AD structure including 3 subfields: AD length (length), AD type (type), and AD data (data). In this embodiment, the AD structure in the "data" field is extended, for example, the first message includes the receiving address and the destination address, optionally, a sequence number, and the receiving address may be carried in an AD structure in the "data" field, for example:
AD type:0x20// wherein 0x20 type is used to indicate the next hop address, i.e. the receive address
AD length:6
AD data: identification of BLE modules or identification of Wi-Fi modules
The destination address may be carried in an AD structure in the "data" field, for example:
AD type:0x22// wherein 0x22 type is used to indicate the address of the last node, i.e. the destination address
AD length:6
AD data: identification of BLE modules or identification of Wi-Fi modules
The sequence number may be carried in an AD structure in the "data" field, for example:
AD type:0x21// wherein 0x21 type is used to indicate sequence number
AD length:2
AD data: sequence number
For another example, the first message includes addresses of the gateways to be awakened, and the addresses of the gateways to be awakened may be respectively carried in a plurality of AD structures in a data field, where one AD structure carries an address of one gateway.
When the primary wake-up is performed, a second message is sent between BLE modules of each gateway, and the second message may also exist in a message format shown in fig. x. If the second message is transmitted in the form of a broadcast, and the second message is used to instruct the Wi-Fi module of the wake-up gateway, the "broadcast message type" may also be denoted by "0111". If the second message is transmitted in unicast, the second message includes a broadcast address, the broadcast message type field may be null, and the broadcast address is carried in one or more AD structures of the data field.
The message format shown in fig. 6 is merely used for example, the first message or the second message may be other message formats, the extension field in the message is just one implementation, and other fields may be extended in practical applications to implement the method described in the embodiments of the present application, which is not limited in this application.
b. If the low-power consumption module is a ZigBee module, the first message is a message based on a ZigBee standard protocol.
Referring to fig. 7, fig. 7 is a schematic diagram of a network layer packet based on a ZigBee standard protocol provided in the present application. In fig. 7, numerals below the respective fields represent occupied spaces.
In the message, the "frame control" field includes a "frame type" subfield, where the "frame type" may be used to indicate whether the message carries data or commands, for example, when the "frame type" is "00", it indicates that the message carries data, and when the "frame type" is "01", it indicates that the message carries commands. The present application extends a "frame type" subfield in a "frame control" field in a message, for example, as: and the message is a wake-up message denoted by 10, and the wake-up message is used for indicating a Wi-Fi module of the wake-up gateway.
In the message, the "frame load" field includes a plurality of broadcast data (AD) structures, each AD structure including 3 subfields: AD length (length), AD type (type), and AD data (data). In this embodiment, the AD structure in the "frame load" field is extended, for example, if the first message includes the receiving address and the destination address, the receiving address may be carried in one AD structure in the "frame load" field, for example:
AD type: the 0x00//0x00 type is used for indicating the next hop address, namely the receiving address
AD length:6
AD data: identification of ZigBee module or identification of Wi-Fi module
Alternatively, the received address may be carried in two AD structures in the "frame payload" field, for example:
AD type: identification of ZigBee module for indicating next hop gateway of 0x00//0x00 type
AD length:6
AD data: identification of ZigBee module
AD type: identification of Wi-Fi modules for indicating next hop gateways of type 0x01//0x01
AD length:6
AD data: identification of Wi-Fi modules
Similarly, the destination address in the first message may be carried in one AD structure or in both AD structures, and the sequence number may be carried in one AD structure. When the first message includes the addresses of the gateways to be awakened, the addresses of the gateways to be awakened may be respectively carried in a plurality of AD structures in the "frame load" field, where one AD structure carries the address of one gateway.
When each gateway in the system is awakened for the first time, the second message sent between the ZigBee modules of each gateway may also exist in the message format shown in fig. 7. The first message or the second message sent between the ZigBee modules of the respective gateway is typically transmitted in unicast. If the message needs to be transmitted in a broadcast form, a certain field in the message based on the ZigBee protocol may be extended, for example, a "multicast flag bit" field in a "frame control" field in fig. 7 may be extended, and a special character or number or code is used to indicate that the message is transmitted in a broadcast form.
The message format shown in fig. 7 is merely used for example, the first message or the second message may be other message formats, the extension field in the message is just one implementation, and other fields may be extended in practical applications to implement the method described in the embodiments of the present application, which is not limited in this application.
Besides the method described in the above embodiment, the Wi-Fi module in the gateway may also be woken up by a beidou system or a base station-based system.
Referring to fig. 8, fig. 8 is a schematic diagram of an internet of things system structure based on a beidou system, which is provided by the application, and relates to a controller, a gateway, terminal equipment, a beidou console and a beidou satellite, wherein the gateway comprises a Wi-Fi module and a low-power module, the low-power module is a beidou communication module, and the beidou communication module can be deployed on the gateway through an interface or a plug-in card.
The Beidou control console is used for receiving the message sent by the controller and sending the message to the Beidou communication module of the gateway through the Beidou satellite, and the Beidou communication module is used for receiving and analyzing the message; the Beidou communication module is also used for sending the message to a Beidou control console through a Beidou satellite, and the Beidou control console resends the received message to the controller; the Beidou communication module is further used for sending the message to Beidou communication modules of other gateways through Beidou satellites, or receiving the message sent by the Beidou communication modules of other gateways through the Beidou satellites. In addition, the Beidou communication module is also used for waking up the Wi-Fi module of the gateway and transmitting data acquired by the terminal equipment at a low speed. Wherein the message or data may exist in the form of a short message.
The following describes a wake-up method based on the Beidou system.
Primary awakening: the controller can send a second message to the Beidou communication modules of all the gateways through the Beidou control console and the Beidou satellite, wherein the second message comprises a broadcast address, and the broadcast address is used for indicating Wi-Fi modules of all the gateways in the wake-up system. The Beidou communication module of each gateway acquires a second message, and wakes up the Wi-Fi module of the gateway according to the second message. Optionally, after the Wi-Fi modules on each gateway are awakened, each gateway may send an acknowledge wakeup message to the controller through the awakened Wi-Fi link, or send an acknowledge wakeup message to the controller through the Beidou communication module, the Beidou satellite and the Beidou console.
Optionally, the second message may include an identifier of the beidou communication module on each gateway, where the identifier of the beidou communication module may be a registration identifier when the beidou communication module registers on the controller, or may be other identifiers that may be used to represent the beidou communication module.
After the Wi-Fi modules of the gateways are awakened, the Wi-Fi modules are respectively registered on the controller, and after the registration is completed, each Wi-Fi module can receive a registration identification returned by the controller. After registration is completed, each gateway sends the identification of the own Wi-Fi module and the identification of the Beidou communication module to the controller, so that the identification of the Wi-Fi module and the identification of the Beidou communication module of each gateway in the system are stored in the controller.
The Wi-Fi link may be in a dormant state again after a period of time or because no data is transmitted for a long period of time. To facilitate the transmission of data, the controller needs to periodically wake up the Wi-Fi link. If all Wi-Fi links in the system need to transmit data, the controller needs to wake up all Wi-Fi modules in the system periodically, in this case, a primary wake-up method may be adopted to wake up again, and the description of the related content of the primary wake-up method of the internet of things system based on the beidou system may be referred to specifically, which is not repeated herein for the sake of brevity of description.
If one or more Wi-Fi links in the system need to transmit data, the controller is required to wake up Wi-Fi modules on the one or more Wi-Fi links periodically. The wake-up procedure in this case is described below.
1) The controller sends a first message to the north bucket console. The first message includes identification of Wi-Fi modules and/or identification of Beidou communication modules of each gateway on a link to be awakened. For example, if the link to be waken is a link formed by the gateway 4, the gateway 3, the gateway 2 and the gateway 1, the first message includes an identifier of a Wi-Fi module and/or an identifier of a beidou communication module of the gateway 4, an identifier of a Wi-Fi module and/or an identifier of a beidou communication module of the gateway 3, an identifier of a Wi-Fi module and/or an identifier of a beidou communication module of the gateway 2, and an identifier of a Wi-Fi module and/or an identifier of a beidou communication module of the gateway 1, where the identifiers of the respective gateways have no sequence. Optionally, the identifier of the Wi-Fi module and/or the identifier of the beidou communication module of each gateway included in the first message may exist in the form of a Bitmap.
2) The Beidou control console sends out the first message through a Beidou satellite.
3) The Beidou communication modules of the gateways receive the first message, judge whether the first message comprises the identification of the gateway or not, wherein the identification of the gateway comprises the identification of the Wi-Fi module of the gateway or the identification of the Beidou communication module, if the identification of the gateway comprises the identification of the Wi-Fi module of the gateway, the Wi-Fi module of the gateway is awakened, and if the identification of the gateway does not comprise the identification of the Wi-Fi module of the gateway, the Wi-Fi module of the gateway is not awakened. Therefore, each Wi-Fi module on the Wi-Fi link to be awakened is awakened, and the awakened Wi-Fi link can be used for high-speed data transmission.
Optionally, after the Wi-Fi module on the gateway is awakened, the gateway may send a wake-up confirmation message to the controller through the awakened Wi-Fi link, or send a wake-up confirmation message to the controller through the Beidou communication module, the Beidou satellite and the Beidou console.
In the case that data collected by a certain terminal device is abnormal, the wake-up method may include, but is not limited to:
1) And a certain gateway receives an alarm notification sent by the terminal equipment (under the condition that the terminal equipment detects data abnormality, sends the alarm notification), sends the alarm notification to the controller through the Beidou satellite and the Beidou control console, generates a first message after receiving the alarm notification, comprises the identification of the Beidou communication module and/or the Beidou communication module of each gateway on a link from the gateway to the controller, and sends the first message through the Beidou control console and the Beidou satellite.
For example, when the controller receives the alarm notification sent by the Beidou communication module of the gateway 4, the controller generates a first message, and the first message includes the identification of each Wi-Fi module on the Wi-Fi link from the gateway 4 to the controller. In a specific implementation, the first message may further include an identifier of a beidou communication module of each gateway on a link from the gateway 4 to the controller, and specifically includes an identifier of a beidou communication module of the gateway 1, an identifier of a beidou communication module of the gateway 2, an identifier of a beidou communication module of the gateway 3, and an identifier of a beidou communication module of the gateway 4.
Optionally, after receiving the alarm notification sent by the terminal device, a certain gateway wakes up the Wi-Fi module of the gateway by the beidou communication module of the gateway, generates a first message, includes the beidou communication module and/or the identifier of the beidou communication module of each gateway on the link from the gateway to the controller, and sends the first message through the beidou satellite.
2) After the Beidou communication module of each gateway receives the first message, judging whether the first message comprises the identification of the gateway or not, if so, waking up the Wi-Fi module of the gateway, and if not, not waking up. The awakened Wi-Fi link can be used for transmitting abnormal data acquired by the high-speed transmission terminal equipment to the controller, and the controller uploads the data to the server so that related personnel can take corresponding measures in time according to the abnormal data.
The application provides a wake-up method based on a base station system, wherein the system relates to a controller, a gateway, terminal equipment and a base station, the gateway comprises a Wi-Fi module and a low-power module, the low-power module is an air interface communication module, and the air interface communication module can be deployed on the gateway in the form of a plug-in card or an interface.
The air interface communication module is used for carrying out wireless communication between the base station and the mobile phone. Communication technologies supported by the air interface communication module include, but are not limited to, GSM, TD-SCDMA, WCDMA, CDMA, CDMA2000, LTE, NR, NB, etc., and supported communication technologies also include 5G communication technologies and higher communication technologies that may occur in the future.
In the application, under the condition that the requirement of reducing the power consumption is considered and the low-power-consumption link data transmission is not affected, the air interface communication module is used for low-speed data transmission, for example, under the condition that the data quantity collected by the terminal equipment is small or the requirement on the transmission rate is not high, the air interface communication module can be used for low-speed data transmission. The air interface communication module is also used for waking up the Wi-Fi module of the gateway. The Wi-Fi module after waking up is used for transmitting data at a high speed, for example, when the data volume acquired by the terminal device is large or the requirement on the transmission rate is high, the Wi-Fi module can be used for transmitting data, for example, for transmitting images or videos, etc.
The difference between the wake-up method based on the base station system and the wake-up method based on the Beidou system is that: in the wake-up method based on the Beidou system, a controller sends a message to a Beidou communication module on a gateway or the Beidou communication module on the gateway sends a message to the controller and the message is sent through a Beidou control console and a Beidou satellite; based on the wake-up method of the base station system, the controller sends a message to the air interface communication module on the gateway or the air interface communication module on the gateway sends a message to the controller and is sent by the base station. The wake-up method based on the base station system can refer to the description of the wake-up method based on the Beidou system, and is not repeated here for the sake of brevity of description.
Referring to fig. 9, fig. 9 is a schematic diagram of a hardware structure of a gateway 300 provided in the present application, where the gateway 300 includes at least one processor 301, a communication bus 302, a memory 303, at least one communication interface 304, a low power consumption module 305, a Wi-Fi module 306, and a power supply control module 307.
Processor 301 may be a general purpose central processing unit (central processing unit, CPU), network processor (network processor, NP), microprocessor, or may be one or more integrated circuits for implementing the aspects of the present application. Such as an application-specific integrated circuit (ASIC), a programmable logic device (programmable logic device, PLD), or a combination thereof. The PLD may be, among other things, a complex programmable logic device (complex programmable logic device, CPLD), a field-programmable gate array (field-programmable gate array, FPGA), general-purpose array logic (generic array logic, GAL), or any combination thereof.
Communication bus 302 is used to transfer information between the various components. Communication bus 302 may be divided into an address bus, a data bus, a control bus, etc. For ease of illustration, the figures are shown with only one bold line, but not with only one bus or one type of bus.
The Memory 303 may be, but is not limited to, a read-only Memory (ROM) or other type of static storage device capable of storing static information and instructions, a random access Memory (random access Memory, RAM) or other type of dynamic storage device capable of storing information and instructions, an electrically erasable programmable read-only Memory (electrically erasable programmable read-only Memory, EEPROM), a compact disc (compact disc read-only Memory) or other optical disk storage, a compact disc storage (including compact disc, laser disc, optical disc, digital versatile disc, blu-ray disc, etc.), a magnetic disk storage medium, or other magnetic storage device, or any other medium that can be used to carry or store program code in the form of instructions or data structures and that can be accessed by a computer. The memory 303 may be stand alone and be coupled to the processor 301 via the communication bus 302; memory 303 may also be integrated with processor 301.
The communication interface 304 is used to communicate with other devices or communication networks. Communication interface 304 may include a wired communication interface and may also include a wireless communication interface. The wired communication interface may be, for example, an ethernet interface, which may be an optical interface, an electrical interface, or a combination thereof. The wireless communication interface may be a wireless local area network (wireless local area networks, WLAN) interface, a cellular network communication interface, a combination thereof, or the like. In this application, the gateway 300 may communicate with a terminal device through the communication interface 304, where the terminal device may be, for example, a rain gauge, a water level gauge, a smoke sensor, a temperature sensor, a humidity sensor, a camera, an infrared sensor, etc., and for example, the gateway 300 receives an image or video or other data sent by the terminal device through the communication interface 304.
In a particular implementation, the processor 301 may include one or more CPUs, as one embodiment.
In a particular implementation, gateway 300 may include multiple processors 301, as one embodiment. Each of the plurality of processors 301 may be a single-core processor (single-CPU) or a multi-core processor (multi-CPU). The processor 301 herein may refer to one or more devices, circuits, and/or processing cores for processing data (e.g., computer program instructions).
In some embodiments, memory 303 is used to store program code for aspects of the present application, and processor 301 is used to execute the program code stored in memory 303. That is, gateway 300 may implement the methods provided in the embodiments of fig. 1-7 by program code in processor 301 and memory 303.
The low power consumption module 305 includes one of a bluetooth module, a ZigBee module, an air interface communication module, or a beidou communication module, where the communication modules include a plurality of logic units and a memory, the logic units are configured to parse the received first message or the second message, the memory is configured to store data, and the data includes, for example, routing information sent by the Wi-Fi module 306 to the low power consumption module 305, and further includes data generated in a process of parsing the first message or the second message by the logic units. The low power module 305 is configured to wake up the Wi-Fi module 306 of the gateway 300, and is also configured to transmit data at a low speed.
The Wi-Fi module 306 includes a radio frequency unit, a processor, and a memory, where the Wi-Fi module 306 is externally connected with an antenna, the antenna is used for receiving or transmitting a wireless analog signal, and the radio frequency unit is used for converting the wireless analog signal received by the antenna into a digital signal, or converting the digital signal into an analog signal and transmitting the analog signal through the antenna. The processor processes the data, and the memory is used for storing the data, where the stored data includes intermediate data generated during the process of processing the data by the processor, and further includes an identifier of the Wi-Fi module 306 and an identifier of the low power consumption module 305 of the gateway 300, an identifier of the Wi-Fi module 306 of the neighboring gateway, an identifier of the low power consumption module 305 of the neighboring gateway, and the like. The memory may include memory for temporarily storing data, such as ROM, RAM, etc., and may also include a hard disk for persistent storage.
In this application, when the gateway 300 is powered on, the low power module 305 is in a powered on state, and the Wi-Fi module 306 is in a dormant state, where the dormant state refers to a non-powered on state. The power control module 307 is used to control power to the Wi-Fi module 306.
When the low power consumption module 305 receives the first message, where the first message may be sent by the controller or the root node gateway, or may be sent by another gateway, the low power consumption module 305 determines whether the first message includes the address of the gateway 300, if so, the low power consumption module 305 sends a wake-up notification to the processor 301 connected to the low power consumption module 305, where the wake-up notification is used to instruct the processor 301 to wake up the Wi-Fi module 306, the processor 301 receives the wake-up notification, and controls the power supply control module 307 to supply power to the Wi-Fi module 306 to wake up the Wi-Fi module 306, so that the Wi-Fi module 306 is in a power-on state. The Wi-Fi module 306 in the powered-on state is capable of receiving data sent by a terminal device, such as a video camera, and transmitting the data to the controller at a high speed. If not, the low power module 305 directly sends the first message.
Or when the low power consumption module 305 receives the second message sent by the controller or the root node gateway, the low power consumption module 305 analyzes that the second message includes a broadcast address, the broadcast address indicates to wake up the Wi-Fi modules 306 in the gateways, the low power consumption module 305 sends a wake-up notification to the processor 301, and after the processor 301 receives the wake-up notification, the power supply control module 307 is controlled to supply power to the Wi-Fi modules 306.
In practical applications, the gateway 300 may include at least one board (board), the low-power module 305 and the Wi-Fi module 306 in the gateway 300 may be located on different boards, for example, referring to the schematic diagram shown in fig. 10, the gateway 300 includes an Access Point (AP) board and an internet of things (internet of things, IOT) board, the Wi-Fi module 306 is located on the IOT board, and the low-power module 305 is located on the AP board. The low power module 305 and the Wi-Fi module 306 in the gateway may also be located on a single board, for example, referring to the schematic diagram shown in fig. 11, the low power module 305 and the Wi-Fi module 306 are both located on the AP board. Taking fig. 10 as an example, how the low power module 305 in the gateway 300 wakes up the Wi-Fi module 306 is described.
As shown in fig. 10, fig. 10 is a schematic structural diagram of a gateway 300 provided in the present application, in fig. 10, terminal devices with less data collection amount or less network resource consumption for collected data transmission, such as a rain gauge, a beidou terminal, etc., may be connected with a processor, and terminal devices with more data collection amount or greater network resource consumption for collected data transmission, such as a camera, etc., may be connected with a Wi-Fi module. The camera may be connected to a power control module in gateway 300 that controls the power to both the camera and Wi-Fi module.
When the gateway 300 is powered on, the terminal device and the Wi-Fi module are in a dormant state, i.e. in a non-powered on state, and when the low-power module receives the first message and judges that the first message includes the address of the gateway 300 or receives the second message, a wake-up notification is sent to the processor, the processor receives the wake-up notification, controls the power supply control module to supply power to the Wi-Fi module and the terminal device at the same time, and after the terminal device is powered on, the terminal device is used for collecting surrounding environment data and sending the environment data to the Wi-Fi module, and the Wi-Fi module is used for sending the environment data collected by the terminal device to the controller. And under the condition that the first message does not comprise the address of the gateway 300, the low-power consumption module directly sends the first message.
In connection with fig. 10, it is described how the gateway 300 receives an alarm notification sent by the terminal device or by a sensor on the terminal device. The camera is provided with an infrared sensor and a small power supply only for the infrared sensor to work. The camera is connected with a power supply control module of the gateway 300, the power supply control module is used for controlling power consumption required by the acquisition work of the camera, and a charging and power-off mechanism is arranged inside the camera. The small power supply is not limited by the power supply control module of the gateway 300, and can automatically supply power to the infrared sensor no matter the camera is in a power-on state or a power-off state so as to ensure that the infrared sensor works normally. The power control module is capable of sensing whether the camera is in a charged state or in a powered-off state.
Under the condition that the camera is in a dormant state, when the infrared sensor detects abnormality, the camera automatically starts to charge so that the power supply control module charges the camera, and after the power supply control module detects that the camera starts to charge, the power supply control module supplies power to the Wi-Fi module so as to wake up the Wi-Fi module, so that the Wi-Fi module can transmit data acquired by the camera to the controller at a high speed.
Alternatively, in an example, the camera may have an independent power supply, and the camera is in communication connection with the gateway 300, and when the camera detects that the data is abnormal, the camera sends an alarm notification to the gateway 300, and after receiving the alarm notification, the gateway 300 controls the power supply control module to supply power to the Wi-Fi module. The method for detecting the data abnormality by the camera can be that the camera has data processing capability, can detect the acquired data and determine whether the data has abnormality or not; as another example, other types of sensors on the camera, such as infrared sensors, may detect data anomalies, etc., and the method of detecting data anomalies by the camera is not limited in this application.
Optionally, in the example shown in fig. 10, one or more other processors may be further included on the internet of things board or on the AP board for aiding the low power module or Wi-Fi module on gateway 300 in parsing messages, processing data, etc. The number or location of other processors on gateway 300 is not limited in this application.
Unlike the gateway 300 shown in fig. 10, the gateway 300 shown in fig. 11 deploys the Wi-Fi module and the low power consumption module on the same board, and the content of how the low power consumption module in the gateway 300 wakes up the Wi-Fi module and how the gateway 300 receives the alarm notification sent by the camera is the same as the method described in fig. 10, and in particular, the description of the related content in fig. 10 may be referred to, and for brevity of the description, no further description is given here. Fig. 10 and 11 are schematic structural diagrams of a gateway exemplarily provided in the present application, which are only used for example and not limiting the present application.
The gateway 300 of the present embodiment may correspond to the first gateway or the second gateway in the above embodiments of the respective methods, for example, the gateway 300 may be the gateway 1, the gateway 2, the gateway 3, the gateway 4, the gateway 5, the gateway 6, and the gateway 7 in fig. 1, and each functional module in the gateway 300 may implement the functions and/or the implemented steps and methods of the devices in the above embodiments of the respective methods. For brevity, the description is omitted here.
The present application also provides a system, where the system includes a controller and a plurality of gateways, where the plurality of gateways may be any of the gateways involved in fig. 1 to 11, for example, the first gateway and the second gateway described in the method embodiment, the gateways described in fig. 9 or fig. 10 or fig. 11 in the apparatus embodiment, and the controller may be any of the controllers involved in fig. 1 to 11, for example, the controllers in the system architecture fig. 1 or fig. 8, the controllers described in the method embodiment, and so on.
Those of ordinary skill in the art will appreciate that the various method steps and modules described in connection with the embodiments disclosed herein can be implemented as electronic hardware, computer software, or combinations of both, and in order to clearly illustrate the interchangeability of hardware and software, steps and components of various embodiments have been described above generally in terms of functionality. Whether such functionality is implemented as hardware or software depends upon the particular application and design constraints imposed on the solution. Those of ordinary skill in the art may implement the described functionality using different approaches for each particular application, but such implementation is not to be considered as beyond the scope of the present application.
It will be clear to those skilled in the art that, for convenience and brevity of description, specific working procedures of the above-described systems, apparatuses and units may refer to corresponding procedures in the foregoing method embodiments, and are not repeated herein.
In several embodiments provided in the present application, the disclosed systems, apparatuses, and methods may be implemented in other manners. For example, the apparatus embodiments described above are merely illustrative, e.g., the division of the units is merely a logical function division, and there may be additional divisions when actually implemented, e.g., multiple units or components may be combined or integrated into another system, or some features may be omitted or not performed. In addition, the coupling or direct coupling or communication connection shown or discussed with each other may be an indirect coupling or communication connection via some interfaces, devices, or elements, or may be an electrical, mechanical, or other form of connection.
The units described as separate units may or may not be physically separate, and units shown as units may or may not be physical units, may be located in one place, or may be distributed over a plurality of network units. Some or all of the units may be selected according to actual needs to achieve the purposes of the embodiments of the present application.
In addition, each functional unit in each embodiment of the present application may be integrated in one processing unit, or each unit may exist alone physically, or two or more units may be integrated in one unit. The integrated units may be implemented in hardware or in software functional units.
The integrated unit, if implemented in the form of a software functional unit and sold or used as a stand-alone product, may be stored in a computer readable storage medium. Based on such understanding, the technical solution of the present application is essentially or a part contributing to the prior art, or all or part of the technical solution may be embodied in the form of a software product stored in a storage medium, including several instructions to cause a computer device (which may be a personal computer, a server, or a network device, etc.) to perform all or part of the steps of the method in the various embodiments of the present application. And the aforementioned storage medium includes: a U-disk, a removable hard disk, a read-only memory (ROM), a random access memory (random access memory, RAM), a magnetic disk, or an optical disk, or other various media capable of storing program codes.
In the above embodiments, it may be implemented in whole or in part by software, hardware, firmware, or any combination thereof. When implemented in software, may be implemented in whole or in part in the form of a computer program product. The computer program product includes one or more computer program instructions. When the computer program instructions are loaded and executed on a computer, the processes or functions in accordance with embodiments of the present application are produced in whole or in part. The computer may be a general purpose computer, a special purpose computer, a computer network, or other programmable apparatus. The computer instructions may be stored in a computer-readable storage medium or transmitted from one computer-readable storage medium to another computer-readable storage medium, for example, the computer program instructions may be transmitted from one website site, computer, server, or data center to another website site, computer, server, or data center by wired or wireless means. The computer readable storage medium may be any available medium that can be accessed by a computer or a data storage device such as a server, data center, etc. that contains an integration of one or more available media. The usable medium may be a magnetic medium (e.g., floppy disk, hard disk, magnetic tape), an optical medium (e.g., digital versatile disk (digital video disc, DVD), or a semiconductor medium (e.g., solid state disk), etc.
The foregoing description is merely a specific embodiment of the present application, but the protection scope of the present application is not limited thereto, and any person skilled in the art can easily think about various equivalent modifications or substitutions within the technical scope of the present application, and these modifications or substitutions are all covered by the protection scope of the present application. Therefore, the protection scope of the present application shall be subject to the protection scope of the claims.

Claims (26)

1. A method of waking up, the method comprising:
the low power consumption module of the first gateway receives the first message;
determining that the first message contains an address of the first gateway;
and in response to determining that the first message includes an address of the first gateway, waking up a wireless alliance Wi-Fi module of the first gateway.
2. The method of claim 1, wherein the low power module comprises one of a bluetooth module, a ZigBee module, an air interface communication module, or a beidou communication module.
3. The method according to claim 1 or 2, wherein the address of the first gateway comprises an address of a low power module of the first gateway or an address of a Wi-Fi module of the first gateway.
4. A method according to any of claims 1-3, wherein the first message is generated and sent by the second gateway under trigger conditions; the first message is used for indicating to wake up Wi-Fi modules of all gateways on a link from the second gateway to the controller.
5. The method of claim 4, wherein the triggering condition comprises the second gateway receiving an alert notification sent by a terminal device, wherein the alert notification is sent if the sensor detects a data anomaly.
6. A method according to any of claims 1-3, characterized in that the first message is sent by a controller or a root node gateway, which is a gateway directly connected to the controller.
7. The method according to any one of claims 1-6, wherein the first message is sent in a unicast manner, the first message includes a receiving address and a destination address, the receiving address is an address of a gateway to be awakened in a next hop, and the destination address is an address of a last gateway to be awakened;
the method further comprises the steps of:
and updating the receiving address in the first message according to the destination address, and sending the updated first message.
8. The method according to any of claims 1-6, characterized in that the first message comprises the address of each gateway that needs to wake up, and the first message is sent in unicast or broadcast.
9. The method of claim 8, wherein the addresses of the respective gateways that need to wake up are in the form of a Bitmap.
10. The gateway is characterized by comprising a low-power consumption module and a wireless alliance Wi-Fi module, wherein the Wi-Fi module is in a dormant state, and the low-power consumption module is used for waking up the Wi-Fi module in the dormant state.
11. The gateway of claim 10, wherein the low power module comprises one of a bluetooth module, a ZigBee module, an air interface communication module, or a beidou communication module.
12. The gateway of claim 10 or 11, wherein the dormant state is a unpowered state;
the gateway also comprises a processor and a power supply control module, wherein the low-power consumption module is connected with the processor, and the processor is connected with the power supply control module; the power supply control module is used for controlling power supply to the Wi-Fi module;
The low power consumption module is used for: receiving a first message, determining that the first message contains an address of the gateway, and sending a wake-up notification to the processor in response to determining that the first message contains the address of the gateway, wherein the wake-up notification is used for instructing the processor to wake up the Wi-Fi module;
the processor is configured to: and controlling the power supply control module to supply power to the Wi-Fi module according to the wake-up notification so as to wake up the Wi-Fi module.
13. The gateway of claim 12, wherein the address of the gateway comprises an address of a low power module of the gateway or an address of a Wi-Fi module of the gateway.
14. The gateway according to claim 12 or 13, characterized in that the first message is generated and sent by the first gateway under trigger conditions; the first message is used for indicating to wake up Wi-Fi modules of all gateways on a link from the first gateway to the controller.
15. The gateway of claim 14, wherein the trigger condition comprises the first gateway receiving an alert notification sent by a terminal device, wherein the alert notification is sent if the terminal device detects a data anomaly.
16. The gateway according to claim 12 or 13, characterized in that the first message is sent by a controller or a root node gateway, which is a gateway directly connected to the controller.
17. The gateway according to any one of claims 12-16, wherein the first message is sent in a unicast manner, the first message includes a receiving address and a destination address, the receiving address is an address of a gateway that needs to be awakened in a next hop, and the destination address is an address of a last gateway that needs to be awakened;
the gateway is used for:
and updating the receiving address in the first message according to the destination address, and sending the updated first message.
18. The gateway according to any of claims 12-16, wherein the first message comprises the address of each gateway that needs to wake up, and wherein the first message is sent in a unicast or broadcast manner.
19. A system comprising a plurality of gateways, wherein each gateway of the plurality of gateways comprises a low power module and a wireless alliance Wi-Fi module, wherein the Wi-Fi module is in a dormant state, and the low power module is used for waking up the Wi-Fi module in the dormant state.
20. The system of claim 19, wherein the low power module comprises one of a bluetooth module, a ZigBee module, an air interface communication module, or a beidou communication module.
21. The system of claim 19 or 20, wherein the plurality of gateways comprises a first gateway;
the low-power consumption module of the first gateway is used for receiving a first message; the first message comprises a broadcast address, wherein the broadcast address is used for indicating a Wi-Fi module for waking up each gateway in the plurality of gateways;
the low-power consumption module of the first gateway is further used for waking up the Wi-Fi module of the first gateway according to the first message.
22. The system of claim 21, further comprising a controller, wherein the first message is sent by the controller or a root node gateway, the root node gateway being a gateway of the plurality of gateways that is directly connected to the controller.
23. The system of claim 21 or 22, wherein the Wi-Fi module of the first gateway is further configured to:
sending a registration request to a controller;
and receiving a registration identifier of the Wi-Fi module of the first gateway returned by the controller.
24. The system of claim 23, wherein the Wi-Fi module of the first gateway is further configured to send an identification of the Wi-Fi module to a low power module of the first gateway.
25. The system of claim 24, wherein the Wi-Fi module of the first gateway is further configured to:
receiving an identification of a Wi-Fi module of an adjacent gateway and an identification of a low-power consumption module of the adjacent gateway, wherein the identification is sent by the Wi-Fi module of the adjacent gateway;
transmitting the identification of the Wi-Fi module of the adjacent gateway, the identification of the low-power-consumption module of the adjacent gateway and the identification of the Wi-Fi module of the first gateway to the low-power-consumption module of the first gateway;
wherein the adjacent gateway refers to a gateway that the first gateway can reach through one hop.
26. The system of claim 25, wherein the low power module of the first gateway is further configured to transmit data at a low rate, and wherein the Wi-Fi module of the first gateway is further configured to transmit data at a high rate.
CN202111446161.XA 2021-11-30 2021-11-30 Awakening method, gateway and system Pending CN116208442A (en)

Priority Applications (2)

Application Number Priority Date Filing Date Title
CN202111446161.XA CN116208442A (en) 2021-11-30 2021-11-30 Awakening method, gateway and system
PCT/CN2022/134650 WO2023098615A1 (en) 2021-11-30 2022-11-28 Wake-up method, gateway and system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202111446161.XA CN116208442A (en) 2021-11-30 2021-11-30 Awakening method, gateway and system

Publications (1)

Publication Number Publication Date
CN116208442A true CN116208442A (en) 2023-06-02

Family

ID=86513427

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202111446161.XA Pending CN116208442A (en) 2021-11-30 2021-11-30 Awakening method, gateway and system

Country Status (2)

Country Link
CN (1) CN116208442A (en)
WO (1) WO2023098615A1 (en)

Family Cites Families (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US10484941B2 (en) * 2016-07-25 2019-11-19 Apple Inc. Wake-up radio assisted WLAN power saving technologies
CN108702704B (en) * 2017-03-02 2021-01-05 华为技术有限公司 Method and device for waking up wireless device
US10313860B2 (en) * 2017-03-02 2019-06-04 Blackberry Limited Method and system for wakeup trigger by out-of-band communication
CN109548120B (en) * 2017-09-22 2022-02-11 珠海市魅族科技有限公司 Communication method and device of wireless local area network, station equipment and access point equipment
US20220167272A1 (en) * 2019-05-01 2022-05-26 Hewlett Packard Enterprise Development Lp Wake-up by a network device

Also Published As

Publication number Publication date
WO2023098615A1 (en) 2023-06-08

Similar Documents

Publication Publication Date Title
US8639184B2 (en) Static nodes positioning in a wireless network
CN102449983B (en) Method and system for no buffered traffic indication for wireless local area network (wlan) power save
EP3171640B1 (en) Network access for a fixed m2m device
CN107852661B (en) Network manager and mesh network system
CN105872391A (en) Control method, control device and control system for IP (Internet Protocol) Camera
WO2016106730A1 (en) Sleeping and awakening method and apparatus for master-slave network, and power-saving system for master-slave network
CN102668607B (en) For providing the apparatus and method of emergency service in a broadband wireless communication system
CN101754479B (en) Method and device for transmitting multicast/broadcast message through wireless access point
CN108551668B (en) Information transmission method, device, equipment and storage medium
US10444814B2 (en) Method and system for low power internetwork communication with machine devices
US20140192691A1 (en) Reliable delivery of data specified for transmission by multicasting in wireless networks
CN113261348A (en) Signal repeater device operable in low power repeater mode of operation
CN103229526A (en) Position updating method and device for M2M communication
AU2021269425B2 (en) Low power cellular base station
CN108322930B (en) Paging method based on LoRa technology
US11564162B2 (en) Access point wake up
EP3718346B1 (en) Collective location reporting of a group of mobile devices
CN106714264B (en) Energy-saving method and system for nodes of Internet of things
CN116208442A (en) Awakening method, gateway and system
US9532307B2 (en) Network discovery method, access point, and terminal device
CN111465086B (en) Method and device for sending and receiving wake-up signal and electronic device
KR101979671B1 (en) Method And Apparatus for Minimizing Beacon Signal Processing by Using Beacon Element
US20150195812A1 (en) Apparatus and method for providing emergency service in a broadband mobile communication system
CN109429299B (en) Communication method, communication device and communication equipment of wireless local area network
CN103797728B (en) Method for operating in idle mode and M2M apparatus

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication