CN110958713A - Low-power-consumption communication method based on dormancy and awakening mechanism - Google Patents

Low-power-consumption communication method based on dormancy and awakening mechanism Download PDF

Info

Publication number
CN110958713A
CN110958713A CN201911197995.4A CN201911197995A CN110958713A CN 110958713 A CN110958713 A CN 110958713A CN 201911197995 A CN201911197995 A CN 201911197995A CN 110958713 A CN110958713 A CN 110958713A
Authority
CN
China
Prior art keywords
sub
equipment
time
data transmission
polling
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.)
Granted
Application number
CN201911197995.4A
Other languages
Chinese (zh)
Other versions
CN110958713B (en
Inventor
黄辉
雷俊
伍齐林
冯喜明
叶宏
董中
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Wuhan Zillion Technology Co ltd
Original Assignee
Wuhan Zillion Technology 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 Wuhan Zillion Technology Co ltd filed Critical Wuhan Zillion Technology Co ltd
Priority to CN201911197995.4A priority Critical patent/CN110958713B/en
Publication of CN110958713A publication Critical patent/CN110958713A/en
Application granted granted Critical
Publication of CN110958713B publication Critical patent/CN110958713B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W74/00Wireless channel access, e.g. scheduled or random access
    • H04W74/002Transmission of channel access control information
    • 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 invention discloses a low-power-consumption communication method based on a dormancy and awakening mechanism, which comprises a communication network formed by a main device and a plurality of sub-devices, and the method comprises the following steps: the method comprises the steps that a main device sends a broadcast instruction, wherein the broadcast instruction comprises the number and the awakening time of a current sub-device to be awakened and the numbers of a plurality of sub-devices to be awakened by polling, which are arranged behind the current sub-device; the current sub-equipment to be awakened wakes up at the corresponding awakening time and carries out data transmission with the main equipment; when the current sub-equipment which is not polled monitors that the broadcast instruction contains the number of the sub-equipment, the sub-equipment firstly enters a dormant state, then wakes up at the awakening time corresponding to the number of the sub-equipment and carries out data transmission with the main equipment. The invention can timely recover the communication network with abnormal faults on the premise of low-power-consumption operation of the communication network, and ensures that normal communication between the main equipment and the branch equipment is not influenced.

Description

Low-power-consumption communication method based on dormancy and awakening mechanism
Technical Field
The invention belongs to the field of wireless Internet of things, and particularly relates to a low-power-consumption communication method based on a dormancy and awakening mechanism.
Background
The existing communication method with low power consumption mostly adopts multiple access, which mainly comprises the following steps: time synchronization schemes and time asynchronization schemes based on time division multiple access.
In the time synchronization scheme based on time division multiple access, a gateway device allocates a fixed time period to each terminal device accessing the same network, and the terminal devices can only perform uplink and downlink transmission in the fixed time period, and sleep at other times, so that the larger the number of devices in the same network, the longer the time interval between two times of information transmission of a single device, and the larger transmission delay is brought.
The time asynchronous scheme has two different processing modes at present, wherein one time asynchronous scheme allows the terminal equipment to send uplink information in real time according to own requirements, but cannot receive downlink information in real time under the condition of low power consumption, so the time asynchronous scheme is mainly suitable for a network in which the terminal equipment actively uploads data; the other time asynchronous scheme allows the terminal device to receive downlink information in real time, but the gateway device must occupy the channel for a long time, so that the terminal device does not have enough channels to send uplink information, which causes serious waste of bandwidth and low communication efficiency.
Therefore, it is necessary to provide a communication method, which does not consume too much electric energy, and can ensure that data interaction is performed between the terminal device and the gateway device in time and quickly. Chinese patent publication No. CN105025585A discloses a low power consumption network multiple access method, which divides a time axis of data transmission into multiple beacon periods, and in a first period from a current beacon period, all terminal devices enter an awake state after being powered on to listen to a notification of a transmission time of a reservation message sent to the terminal devices by the gateway device, the notification of the transmission time of the reservation message is set by the server, and in a period after the first period of the current beacon period, all terminal devices enter a sleep state, but the terminal devices corresponding to the transmission of the reservation message are awake on time independently of each other according to the notification of the transmission time of the reservation message, thereby being capable of constructing a low-cost, low-power consumption, low-delay, large-scale, and high-efficiency network. However, the patent does not consider the case where the terminal device corresponding to the transmission of the reservation message is not woken up within the transmission time of the reservation message or wakes up within the transmission time of other terminal devices, and the like, and these abnormal cases may affect the normal communication between the terminal device and the server.
For various abnormal conditions existing in practical application, such as that the terminal device cannot wake up normally in its working period, the terminal device wakes up in a non-working period, and the terminal device cannot communicate for a long time, a new communication method needs to be provided to ensure that normal communication between the terminal device and the server or the main device is not affected on the premise of low power consumption operation.
Disclosure of Invention
Aiming at the problems in the prior art, the invention provides a low-power-consumption communication method based on a dormancy and awakening mechanism, which can timely recover an abnormally-faulty communication network on the premise of low-power-consumption operation of the communication network, thereby ensuring that normal communication between main equipment and sub-equipment is not influenced.
In order to achieve the purpose, the invention adopts the technical scheme that:
a low power consumption communication method based on a dormancy and awakening mechanism comprises a communication network formed by a main device and a plurality of sub-devices, and the method comprises the following steps:
the method comprises the steps that a main device sends a broadcast instruction, wherein the broadcast instruction comprises the number and the awakening time of a current sub-device to be awakened and the numbers of a plurality of sub-devices to be awakened by polling, which are arranged behind the current sub-device;
the current sub-equipment to be awakened wakes up at the corresponding awakening time and carries out data transmission with the main equipment;
when the current sub-equipment which is not polled monitors that the broadcast instruction contains the number of the sub-equipment, the sub-equipment firstly enters a dormant state, then wakes up at the awakening time corresponding to the number of the sub-equipment and carries out data transmission with the main equipment.
Preferably, when the currently non-polled slave device monitors that the broadcast command does not include its own number, the slave device enters a sleep state first, and then wakes up after a waiting period, and monitors the broadcast command of the master device again.
Preferably, if the currently non-polled slave device wakes up after a waiting period and monitors that the current broadcast command contains the own number, the slave device enters a sleep state first, and then wakes up at the wake-up time corresponding to the own number to perform data transmission with the master device.
Preferably, the waiting period is a total time of the plurality of sub-devices to be woken up by polling to complete data transmission, which is broadcasted in the broadcast instruction. And each sub-device can calculate the waiting time according to the total time of polling once of all the sub-devices and the position quantity of each sub-device of the current polling queue.
Preferably, the data transmission is performed between the main device and each sub-device through an independent working channel, and a new sub-device that does not join the communication network is located on a configuration channel.
Preferably, when a new slave device needs to be added to the communication network, the method includes:
the main equipment sends a network adding instruction to the sub-equipment on the configuration channel, wherein the network adding instruction comprises a number and a working channel which are distributed to the current sub-equipment;
after receiving the network adding instruction, the current sub-equipment jumps to the distributed working channel and monitors the broadcast instruction of the main equipment;
when monitoring that the broadcast instruction contains the number of the current sub-device, the current sub-device firstly enters a dormant state, and then wakes up at the wake-up time corresponding to the number of the current sub-device to perform data transmission with the main device.
Preferably, the total time period of polling and waking up all the sub-devices once by the main device is fixed, the time for each sub-device to transmit data is the same, and the position quantity of each sub-device in the current polling queue is known by each sub-device.
Further, the location amount of each component device changes due to operations such as deletion and addition of the device, and once the location changes, the master device updates the location amount of each component device and informs the updated location amount of the component device. Each sub-device can calculate the time node which should be awakened as long as it knows the position quantity and the total time period of the sub-device.
Preferably, the method comprises:
when the master device performs polling awakening on a certain sub-device and does not receive a data transmission packet of the current sub-device, the current sub-device is required to transmit the data packet of the previous polling period and the data packet of the current sub-device to the master device in next polling;
if the data transmission packet of the current sub-equipment is not received after the polling for the preset times, the main equipment sends an alarm instruction to background management personnel;
if the background management personnel confirm that the current sub-equipment needs to be deleted, sending a command of deleting the current sub-equipment to the main equipment, deleting the current sub-equipment in the polling queue by the main equipment, and updating the position quantity of the sub-equipment in the polling queue;
in the next polling period, all the sub-devices positioned behind the current sub-device in the polling queue cannot be awakened at the correct time, and all the sub-devices positioned behind the current sub-device in the polling queue enter a monitoring state;
when the broadcast instruction is monitored to contain the self number, the broadcasting equipment enters a dormant state, wakes up at the awakening time corresponding to the self number, performs data transmission with the main equipment, and distributes a new position quantity to the sub-equipment by the main equipment;
updating the position quantity of the sub-equipment per se by the sub-equipment, and recalculating the awakening time of the sub-equipment per se in the next polling period;
and the sub-devices wake up in sequence at the recalculated wake-up time and perform data transmission with the main device.
Furthermore, after receiving the alarm instruction sent by the main device, the background manager judges whether the current sub-device needs to be disconnected, if so, the local computer is connected with the serial port of the current sub-device, and the local computer sends a network disconnection instruction to the current sub-device for local network disconnection.
Further, when the master device performs polling wakeup on a certain sub-device, a data transmission packet of the current sub-device is not received, the master device requests the data packet which is not received in the current round in the next polling period, and the data packet which is not received in the current round is requested each time within the polling of preset times, if the data transmission packet of the current sub-device is not received all the time, the master device sends an alarm instruction to a background manager, and the background manager judges whether the current sub-device needs to be quitted; and if the background management personnel judge that the current sub-equipment needs to be quitted, sending a network quitting instruction to the current sub-equipment through the serial port by the background server to locally quit the network, and meanwhile, sending the network quitting instruction to the main equipment by the background server, and updating the position quantity of the sub-equipment in the polling queue by the main equipment. Further, for the branch devices which are no longer needed, or a certain branch device is replaced under other main devices, a background manager sends a network quitting instruction to the main device, the main device directly issues the network quitting instruction to the branch devices, and the branch devices return to the configuration channel.
Preferably, the broadcast instruction sent by the master device further includes a timestamp, and each slave device performs time synchronization by using the timestamp before performing data transmission with the master device.
Preferably, the wake-up time of each slave device includes a data transmission time for transmitting data to the master device and a redundant time for linkage control.
Compared with the prior art, the invention has the beneficial effects that:
(1) the invention broadcasts the current sub-equipment to be awakened and the sub-equipment list to be awakened after the current sub-equipment through the main equipment, so that the sub-equipment in the monitoring state can enter the sleeping low-energy consumption state when no number of the sub-equipment per se is detected within a period of time, then the sub-equipment can calculate the waiting time of the sleeping low-energy consumption and awaken after the waiting time, and monitors the broadcast instruction of the main equipment again until the number of the sub-equipment per se is detected, and the sub-equipment wakes up for data transmission with the main equipment at the transmission time corresponding to the number of the sub-equipment per se to enter a normal polling queue.
(2) The method comprises the steps of placing the sub-equipment to be added in a configuration channel, sending a networking instruction through the main equipment when new sub-equipment needs to be added to enter a communication network, adding the sub-equipment on the configuration channel into the communication network, waking up the new sub-equipment at the transmission time corresponding to the self number by utilizing a monitoring mechanism when the self number of the new sub-equipment is monitored, carrying out data transmission with the main equipment, and entering a normal polling queue.
(3) For the sub-equipment with abnormal faults, if the sub-equipment still does not enter a normal polling queue after polling for a plurality of times, an alarm instruction can be sent to a background manager, the background manager calls an equipment condition judgment standard stored in a background server to judge whether the sub-equipment needs to be quitted, if the sub-equipment needs to be quitted, a local computer is connected with a serial port of the current sub-equipment, a network quitting instruction is sent to the current sub-equipment through the local computer to carry out local network quitting, and the equipment which has faults and cannot be communicated is returned to a configuration channel; or for the sub-equipment which is no longer needed, the background management personnel can send a network quitting instruction to the main equipment, and the main equipment sends the network quitting instruction to the sub-equipment for network quitting, so that the polling period of the whole polling queue is shortened, the transmission efficiency is improved, and the waste of channel resources is avoided.
Drawings
Fig. 1 is a schematic flow chart according to embodiment 1 of the present invention.
Fig. 2 is a schematic flow chart according to embodiment 2 of the present invention.
Fig. 3 is a schematic flow chart according to embodiment 3 of the present invention.
Detailed Description
The technical solutions of the present invention will be described clearly and completely with reference to the accompanying drawings, and it is obvious that the described embodiments are only some embodiments of the present invention, not all embodiments. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present invention.
The invention provides a low-power consumption communication method based on a dormancy and awakening mechanism, which is realized based on a star-shaped communication network formed by a main device and a plurality of sub-devices; the main device is connected with the background server, independent communication links are arranged between the plurality of sub-devices and the main device, and the plurality of sub-devices can be used for data acquisition, device control and the like.
The method comprises the following steps: 1) the method comprises the steps that a main device sends a broadcast instruction, wherein the broadcast instruction comprises the number and the awakening time of a current sub-device to be awakened and the numbers of a plurality of sub-devices to be awakened by polling, which are arranged behind the current sub-device; 2) the current sub-equipment to be awakened wakes up at the corresponding awakening time and carries out data transmission with the main equipment; 3) when the current sub-equipment which is not polled monitors that the broadcast instruction contains the number of the sub-equipment, the sub-equipment firstly enters a dormant state, then wakes up at the awakening time corresponding to the number of the sub-equipment and carries out data transmission with the main equipment.
The method broadcasts the current sub-equipment to be awakened and the sub-equipment list to be awakened after the current sub-equipment through the main equipment, so that the sub-equipment can enter a dormant low-energy consumption state before the transmission time corresponding to the number of the sub-equipment is not reached when the sub-equipment monitors that the list to be awakened contains the sub-equipment, the sub-equipment can automatically calculate the waiting time from the current moment to the moment to be awakened, and automatically awaken to enter an awakening working state after the waiting time to perform data interaction with the main equipment, so that the sub-equipment is in the low-energy consumption state when not working to the greatest extent, and the low-energy consumption operation of the whole communication network is ensured.
For the sub-equipment which does not wake up in the transmission time of the sub-equipment, the sub-equipment can enter the normal polling queue at most after two polling periods by the method, so that the normal operation of a communication network is ensured by fast and timely communication link recovery on the premise of low power consumption. In most cases, after a polling period, the normal polling queue is entered.
As an implementation manner, when the currently non-polled slave device monitors that the broadcast command does not include its own number, the slave device first enters a sleep state, then wakes up after a waiting period, and monitors the broadcast command of the master device again.
Further, if the sub-device which is not polled at present wakes up after a waiting period, and monitors that the current broadcast instruction contains the number of the sub-device, the sub-device enters a sleep state first, and then wakes up at the wake-up time corresponding to the number of the sub-device, and performs data transmission with the main device. The benefits of this arrangement are: the sub-equipment can enter a dormant low-energy consumption state when no number of the sub-equipment is monitored within a period of time, then the sub-equipment calculates the waiting time of low energy consumption in the dormant state by itself and wakes up after the waiting time, monitors the broadcast instruction of the main equipment again until the number of the sub-equipment is monitored, calculates the waiting time from the current time to the transmission time corresponding to the number of the sub-equipment, enters the dormant low-energy consumption state within the waiting time, then wakes up by itself after the waiting time, performs data transmission with the main equipment, and enters a normal polling queue, thereby ensuring the low-energy consumption operation of the equipment to the maximum extent.
In one embodiment, the waiting period is a total time for the plurality of sub-devices to be woken up by polling to complete data transmission, which is broadcast in the broadcast instruction.
In one embodiment, the master device and each slave device perform data transmission through independent working channels, and a new slave device that does not join the communication network is located on a configuration channel. When a new sub-device needs to be added to the communication network, the main device sends a networking instruction to the sub-device on the configuration channel, wherein the networking instruction comprises a number allocated to the current sub-device and a working channel; after receiving the network adding instruction, the current sub-equipment jumps to the distributed working channel and monitors the broadcast instruction of the main equipment; when monitoring that the broadcast instruction contains the number of the current sub-device, the current sub-device firstly enters a dormant state, and then wakes up at the wake-up time corresponding to the number of the current sub-device to perform data transmission with the main device. The benefits of this arrangement are: the method comprises the steps of placing the sub-equipment to be added in a configuration channel, sending a networking instruction through a main equipment when new sub-equipment needs to be added to enter a communication network, adding the sub-equipment on the configuration channel into the communication network, waking up the new sub-equipment at transmission time corresponding to a self number when the self number of the new sub-equipment is monitored by utilizing a monitoring mechanism, carrying out data transmission with the main equipment, and entering a normal polling queue.
As an implementation manner, the total time period of polling and waking up all the sub-devices once by the master device is fixed, the time for each sub-device to perform data transmission is the same, and the number of sub-devices in the current polling queue is known by each sub-device. The method comprises the following steps: when the master device performs polling awakening on a certain sub-device and does not receive a data transmission packet of the current sub-device, the current sub-device is required to transmit the data packet of the previous polling period and the data packet of the current sub-device to the master device in next polling; if the data transmission packet of the current sub-equipment is not received after the polling for the preset times, the main equipment sends an alarm instruction to background management personnel; if the background management personnel confirm that the current sub-equipment needs to be deleted, sending a command of deleting the current sub-equipment to the main equipment, deleting the current sub-equipment in the polling queue by the main equipment, and updating the position quantity of the sub-equipment in the polling queue; in the next polling period, all the sub-devices positioned behind the current sub-device in the polling queue cannot be awakened at the correct time, and all the sub-devices positioned behind the current sub-device in the polling queue enter a monitoring state; when the broadcast instruction is monitored to contain the self number, the broadcasting equipment enters a dormant state, wakes up at the awakening time corresponding to the self number, performs data transmission with the main equipment, and distributes a new position quantity to the sub-equipment by the main equipment; updating the position quantity of the sub-equipment per se by the sub-equipment, and recalculating the awakening time of the sub-equipment per se in the next polling period; and the sub-devices wake up in sequence at the recalculated wake-up time and perform data transmission with the main device.
As an implementation manner, after receiving an alarm instruction sent by the main device, a background manager judges whether the current sub-device needs to be disconnected from the network, if so, the background manager connects the local computer with the serial port of the current sub-device, and sends a network disconnection instruction to the current sub-device through the local computer to perform local network disconnection. The benefits of this arrangement are: for the sub-equipment with abnormal faults, if the sub-equipment does not enter a normal polling queue after polling for a plurality of times, an alarm instruction can be sent to a background manager, the background manager calls an equipment condition judgment standard stored in a background server to judge whether the sub-equipment needs to be quitted, if the sub-equipment needs to be quitted, a local computer is connected with a serial port of the current sub-equipment, the local computer sends a network quitting instruction to the current sub-equipment to perform local network quitting, the equipment which has faults and cannot be communicated is returned to a configuration channel, the polling time is not occupied, the polling period of the whole polling queue is shortened, the transmission efficiency is improved, and the waste of channel resources is avoided.
In one embodiment, the broadcast instruction sent by the master device further includes a timestamp, and each slave device performs time synchronization with the master device through the timestamp before performing data transmission with the master device. In practical application, each piece of sub-equipment is provided with an RTC clock, and the error of the clock per day is within a range of several seconds, so that the period of time synchronization required by each piece of sub-equipment can be determined according to actual precision requirements, and the sub-equipment does not necessarily perform time synchronization every time when polling is performed to the sub-equipment.
As an embodiment, the wake-up time of each slave device includes a data transmission time for transmitting data to the master device and a redundant time for linkage control.
Example 1
In this embodiment, a communication network is constructed, where the communication network is composed of a main device and 10 sub-devices, the main device is connected to a background server, the 10 sub-devices form a polling queue, a time period of each sub-device is 10 seconds, a time period of one polling of the polling queue by the main device is 100 seconds, and the main device only wakes up one sub-device each time.
For the condition that the sub-device does not wake up in the transmission time corresponding to the number of the sub-device:
as shown in fig. 1, if the separate device 4 wakes up within the transmission time of the separate device 5, it hears the broadcast instructions of: the current data transmission is performed by the slave device 5, and the next data transmission is performed by the slave device 6, the slave device 7, the slave device 8, the slave device 9 and the slave device 10; the slave unit 4 does not monitor its own number in the current broadcast command, and the time required for polling the slave unit 6, the slave unit 7, the slave unit 8, the slave unit 9, and the slave unit 10 is calculated to be 50 seconds, so that the slave unit 4 automatically enters a sleep state and wakes up after 50 seconds, at this time, the data transmission time of the slave unit 10 is reached, the slave unit 4 monitors the broadcast command again, and at this time, the monitored broadcast command is: the current data transmission is performed by the slave device 10, and the next data transmission to be performed by the slave device 1, the slave device 2, the slave device 3, the slave device 4 and the slave device 5; the slave device 4 monitors the number of the slave device in the current broadcast instruction, and the time required for the slave device to poll the slave device is calculated to be 10 seconds, so that the slave device 4 automatically enters a sleep state, wakes up after 10 seconds, performs data transmission with the master device, and enters a normal polling queue.
Example 2
Unlike embodiment 1, the present embodiment is directed to a case where a new separate device is added to a communication network:
as shown in fig. 2, the background server sends a signal to the main device to request to add a new sub-device 11 to the communication network, the main device jumps to a configuration channel where the to-be-added device is located after receiving the signal, and sends a networking instruction, where the networking instruction includes a serial number 11 and a working channel 11 of the to-be-added sub-device, and after receiving the networking instruction, the to-be-added sub-device jumps to the assigned working channel 11 to monitor a broadcast instruction of the main device. If the broadcast command heard at this time is: the current data transmission is performed by the sub-device 1, and the next data transmission is performed by the sub-device 2, the sub-device 3, the sub-device 4, the sub-device 5 and the sub-device 6; the slave unit 11 does not monitor its own number in the current broadcast command, and the time required for the slave unit 2, the slave unit 3, the slave unit 4, the slave unit 5, and the slave unit 6 to poll is calculated to be 50 seconds, so that the slave unit 11 automatically enters the sleep state, wakes up after 50 seconds, monitors the broadcast command again, and the monitored broadcast command is: the current data transmission is performed by the slave device 6, and the next data transmission is performed by the slave device 7, the slave device 8, the slave device 9, the slave device 10 and the slave device 11; the slave device 11 monitors its own number in the current broadcast command, and the time required for itself to poll is calculated to be 50 seconds, so that the slave device 11 automatically enters a sleep state, wakes up after 50 seconds, performs data transmission with the master device, and enters a normal polling queue.
Example 3
Unlike embodiments 1 and 2, the present embodiment is directed to a case where a malfunctioning separate device is taken out of the communication network:
as shown in fig. 3, when the master device wakes up the slave device 3 by polling, if the data transmission packet of the slave device 3 is not received, the next polling will request the data packet that is not received in the current round, and within a predetermined number of polling times (which may be determined by itself, such as 2 times, 4 times, etc.), the data packet that is not received in the previous polling will be requested each time. In this embodiment, after polling for 2 times, that is, when the master device polls the slave device 3 for the second time, the master device still does not receive the data transmission packet of the slave device 3 within the transmission time of the slave device 3, the master device sends an alarm instruction to the background manager, and if the background manager confirms that the current slave device 3 needs to be deleted, the background manager sends an instruction to the master device to delete the current slave device 3, and the master device deletes the current slave device 3 in the polling queue and updates the slave device position amount in the polling queue. After receiving the alarm instruction sent by the main device, the background manager judges whether the current sub-device 3 needs to be disconnected, if the current sub-device 3 needs to be disconnected, the local computer is connected with the serial port of the current sub-device 3, the local computer sends a network disconnection instruction to the current sub-device 3 to perform local network disconnection, and the sub-device 3 returns to the configuration channel. The master device updates the position quantity of the branch devices in the polling queue, and in the next polling period, all the branch devices located behind the branch device 3 in the polling queue cannot be awakened at the correct time, namely, the branch devices 4, 5, 6, 7, 8, 9 and 10 enter a monitoring state. When monitoring that the broadcast instruction contains the own number, the slave unit 4 first enters a sleep state, then wakes up at the wake-up time corresponding to the own number, and performs data transmission with the master unit, and the master unit allocates a new position amount to the slave unit 4, that is, the position amount of the slave unit 4 in the original queue is updated to the position amount of the slave unit 3 in the new queue. By analogy, the position quantities of the branch device 5, the branch device 6, the branch device 7, the branch device 9 and the branch device 10 in the original queue are respectively updated to the position quantities of the branch device 4, the branch device 5, the branch device 6, the branch device 7, the branch device 8 and the branch device 9 in the new queue. The sub-device 4, the sub-device 5, the sub-device 6, the sub-device 7, the sub-device 8 and the sub-device 9 respectively update the position quantity of the sub-device at the sub-device terminal, and recalculate the self wake-up time in the next polling period. And the sub-devices wake up in sequence at the recalculated wake-up time and perform data transmission with the main device, and the sub-devices enter a normal polling process.
Further, if the sub-device 3 is no longer needed in the network, the background manager sends a network quitting instruction to the main device through the background server, the main device directly issues the network quitting instruction to the sub-device 3, and the sub-device 3 returns to the configuration channel. The main device updates the position quantity of the sub-devices in the polling queue, each sub-device enters a new polling queue through monitoring, the position quantity of the sub-device in the new queue is obtained, and the time node which the sub-device needs to wake up is recalculated.
Although embodiments of the present invention have been shown and described, it will be appreciated by those skilled in the art that changes, modifications, substitutions and alterations can be made in these embodiments without departing from the principles and spirit of the invention, the scope of which is defined in the appended claims and their equivalents.

Claims (10)

1. A low-power consumption communication method based on a dormancy and awakening mechanism is characterized by comprising a communication network formed by a main device and a plurality of sub-devices, and the method comprises the following steps:
the method comprises the steps that a main device sends a broadcast instruction, wherein the broadcast instruction comprises the number and the awakening time of a current sub-device to be awakened and the numbers of a plurality of sub-devices to be awakened by polling, which are arranged behind the current sub-device;
the current sub-equipment to be awakened wakes up at the corresponding awakening time and carries out data transmission with the main equipment;
when the current sub-equipment which is not polled monitors that the broadcast instruction contains the number of the sub-equipment, the sub-equipment firstly enters a dormant state, then wakes up at the awakening time corresponding to the number of the sub-equipment and carries out data transmission with the main equipment.
2. The method as claimed in claim 1, wherein the currently non-polled slave device enters a sleep state when it detects that the broadcast command does not include its own number, and wakes up after a waiting period, and listens for the broadcast command of the master device again.
3. The method as claimed in claim 2, wherein if the currently not polled slave device wakes up after a waiting period and monitors that the current broadcast command includes its own number, the slave device enters the sleep state first, and then wakes up at the wake-up time corresponding to the own number to perform data transmission with the master device.
4. The method according to claim 3, wherein the waiting period is a total time for the plurality of sub-devices to be woken up by polling to complete data transmission, which is broadcasted in the broadcast command.
5. The communication method with low power consumption based on the sleep and wake-up mechanism according to claim 1, wherein the data transmission between the main device and each sub-device is performed through an independent working channel, and a new sub-device that does not join the communication network is located on a configuration channel.
6. The sleep and wake mechanism based low power consumption communication method according to claim 5, wherein when a new sub-device needs to be added to the communication network, the method comprises:
the main equipment sends a network adding instruction to the sub-equipment on the configuration channel, wherein the network adding instruction comprises a number and a working channel which are distributed to the current sub-equipment;
after receiving the network adding instruction, the current sub-equipment jumps to the distributed working channel and monitors the broadcast instruction of the main equipment;
when monitoring that the broadcast instruction contains the number of the current sub-device, the current sub-device firstly enters a dormant state, and then wakes up at the wake-up time corresponding to the number of the current sub-device to perform data transmission with the main device.
7. The communication method with low power consumption based on the sleep and wake-up mechanism according to claim 1, wherein a total time period for the master device to poll and wake up all the sub-devices once is fixed, a time for each sub-device to perform data transmission is the same, and a position amount of each sub-device in a current polling queue is known.
8. The method of claim 7, wherein the method comprises:
when the master device performs polling awakening on a certain sub-device and does not receive a data transmission packet of the current sub-device, the current sub-device is required to transmit the data packet of the previous polling period and the data packet of the current sub-device to the master device in next polling;
if the data transmission packet of the current sub-equipment is not received after the polling for the preset times, the main equipment sends an alarm instruction to background management personnel;
if the background management personnel confirm that the current sub-equipment needs to be deleted, sending a command of deleting the current sub-equipment to the main equipment, deleting the current sub-equipment in the polling queue by the main equipment, and updating the position quantity of the sub-equipment in the polling queue;
in the next polling period, all the sub-devices positioned behind the current sub-device in the polling queue cannot be awakened at the correct time, and all the sub-devices positioned behind the current sub-device in the polling queue enter a monitoring state;
when the broadcast instruction is monitored to contain the self number, the broadcasting equipment enters a dormant state, wakes up at the awakening time corresponding to the self number, performs data transmission with the main equipment, and distributes a new position quantity to the sub-equipment by the main equipment;
updating the position quantity of the sub-equipment per se by the sub-equipment, and recalculating the awakening time of the sub-equipment per se in the next polling period;
and the sub-devices wake up in sequence at the recalculated wake-up time and perform data transmission with the main device.
9. The communication method with low power consumption based on the sleep and wake-up mechanism as claimed in claim 1, wherein the broadcast command sent by the master device further includes a timestamp, and each slave device performs time synchronization by using the timestamp before performing data transmission with the master device.
10. The communication method with low power consumption based on the sleep and wake mechanism as claimed in claim 1, wherein the wake time of each sub-device comprises a data transmission time and a redundant time, the data transmission time is used for transmitting data to the main device, and the redundant time is used for linkage control.
CN201911197995.4A 2019-11-29 2019-11-29 Low-power-consumption communication method based on dormancy and awakening mechanism Active CN110958713B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201911197995.4A CN110958713B (en) 2019-11-29 2019-11-29 Low-power-consumption communication method based on dormancy and awakening mechanism

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201911197995.4A CN110958713B (en) 2019-11-29 2019-11-29 Low-power-consumption communication method based on dormancy and awakening mechanism

Publications (2)

Publication Number Publication Date
CN110958713A true CN110958713A (en) 2020-04-03
CN110958713B CN110958713B (en) 2021-05-07

Family

ID=69978945

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201911197995.4A Active CN110958713B (en) 2019-11-29 2019-11-29 Low-power-consumption communication method based on dormancy and awakening mechanism

Country Status (1)

Country Link
CN (1) CN110958713B (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112887946A (en) * 2021-01-12 2021-06-01 广州安凯微电子股份有限公司 BLE equipment control method and device
CN113986803A (en) * 2021-10-21 2022-01-28 山东云海国创云计算装备产业创新中心有限公司 I2C bus control method, device and storage medium

Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105025585A (en) * 2015-07-24 2015-11-04 武汉慧联无限科技有限公司 Network multiple access method with low power consumption
CN105813179A (en) * 2014-12-31 2016-07-27 华为技术有限公司 Method, device and equipment of batch wake-up equipment
CN106487885A (en) * 2016-08-29 2017-03-08 物联智慧科技(深圳)有限公司 Remote wake-up method, online server and networking device with sleep mode
US20180317166A1 (en) * 2015-07-01 2018-11-01 Intel IP Corporation Determining two network allocation vector settings
CN109076457A (en) * 2016-08-03 2018-12-21 华为技术有限公司 A kind of equipment awakening method and equipment
CN109792681A (en) * 2016-08-17 2019-05-21 诺基亚技术有限公司 Coordinate the method for sleep pattern for energy-efficient RAN
CN110418397A (en) * 2019-07-31 2019-11-05 杭州中科微电子有限公司 A kind of the Internet of Things communication means and system of low-power consumption

Patent Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105813179A (en) * 2014-12-31 2016-07-27 华为技术有限公司 Method, device and equipment of batch wake-up equipment
US20180317166A1 (en) * 2015-07-01 2018-11-01 Intel IP Corporation Determining two network allocation vector settings
CN105025585A (en) * 2015-07-24 2015-11-04 武汉慧联无限科技有限公司 Network multiple access method with low power consumption
CN109076457A (en) * 2016-08-03 2018-12-21 华为技术有限公司 A kind of equipment awakening method and equipment
CN109792681A (en) * 2016-08-17 2019-05-21 诺基亚技术有限公司 Coordinate the method for sleep pattern for energy-efficient RAN
CN106487885A (en) * 2016-08-29 2017-03-08 物联智慧科技(深圳)有限公司 Remote wake-up method, online server and networking device with sleep mode
CN110418397A (en) * 2019-07-31 2019-11-05 杭州中科微电子有限公司 A kind of the Internet of Things communication means and system of low-power consumption

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112887946A (en) * 2021-01-12 2021-06-01 广州安凯微电子股份有限公司 BLE equipment control method and device
CN112887946B (en) * 2021-01-12 2022-03-22 广州安凯微电子股份有限公司 BLE equipment control method and device
CN113986803A (en) * 2021-10-21 2022-01-28 山东云海国创云计算装备产业创新中心有限公司 I2C bus control method, device and storage medium

Also Published As

Publication number Publication date
CN110958713B (en) 2021-05-07

Similar Documents

Publication Publication Date Title
CN106900000B (en) Hybrid monitoring sleep method of wireless sensor and wireless sensor
CN103237337B (en) A kind of wireless senser adaptive network dormancy control method
CN108462988B (en) Low-power-consumption wireless radio frequency network networking method
CN104378812B (en) Farmland self-organizing network regenerative resource node difference topology control method
CN106900042B (en) Sensor node of tree-type sensor network ad hoc network
WO2016106730A1 (en) Sleeping and awakening method and apparatus for master-slave network, and power-saving system for master-slave network
CN110958713B (en) Low-power-consumption communication method based on dormancy and awakening mechanism
CN104796971A (en) System and method for low power signaling in wireless local area network
CN103209473B (en) A kind of power consumption wireless sensor network information gathering method
CN111405640B (en) Low-power-consumption wireless networking communication method
CN103222335A (en) Low-power, low-atency, end-to-end communication messaging over multi-hop, heterogenous communication networks
CN101427534A (en) Method of controlling wakeup frequency in a wireless communication system
CN109286965A (en) Suspend mode processing method, network element entity and the storage medium of distributed base station
CN111031107B (en) Geological disaster monitoring system and method based on low-power-consumption communication network
CN111836332A (en) Lora chain network communication method, Lora gateway and Lora chain network communication system
CN103702402A (en) Low-power-consumption parking space state collection method based on wireless sensor network
CN111031491A (en) Method and system for reporting power failure in real time
CN111417182A (en) Data transmission method, device, storage medium, processor and system
JP2018535565A5 (en)
CN110062447A (en) A method of reducing wireless self-organization network downstream response time delay
CN107071873B (en) Coordinator of tree sensor network ad hoc network
CN106535341A (en) Big data transmission method of wireless sensor network
CN106330641B (en) A kind of super low-power consumption CAN network means of communication
CN103327651B (en) Information transmission method and system and sleeping function device
CN207612365U (en) Unattended field overhead line video monitoring apparatus

Legal Events

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