CN110572841A - Networking method of master-slave low-power-consumption wireless ad hoc network - Google Patents

Networking method of master-slave low-power-consumption wireless ad hoc network Download PDF

Info

Publication number
CN110572841A
CN110572841A CN201910874939.3A CN201910874939A CN110572841A CN 110572841 A CN110572841 A CN 110572841A CN 201910874939 A CN201910874939 A CN 201910874939A CN 110572841 A CN110572841 A CN 110572841A
Authority
CN
China
Prior art keywords
sensor node
node
networking
gateway node
information
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
CN201910874939.3A
Other languages
Chinese (zh)
Other versions
CN110572841B (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.)
Henan Shiyou Information Technology Co Ltd
Original Assignee
Henan Shiyou Information 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 Henan Shiyou Information Technology Co Ltd filed Critical Henan Shiyou Information Technology Co Ltd
Priority to CN201910874939.3A priority Critical patent/CN110572841B/en
Publication of CN110572841A publication Critical patent/CN110572841A/en
Application granted granted Critical
Publication of CN110572841B publication Critical patent/CN110572841B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W24/00Supervisory, monitoring or testing arrangements
    • H04W24/02Arrangements for optimising operational condition
    • 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/0209Power saving arrangements in terminal devices
    • H04W52/0212Power saving arrangements in terminal devices managed by the network, e.g. network or access point is master and terminal is slave
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W84/00Network topologies
    • H04W84/18Self-organising networks, e.g. ad-hoc networks or sensor networks
    • 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

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Mobile Radio Communication Systems (AREA)

Abstract

The invention discloses a networking method of a master-slave low-power wireless ad hoc network, which comprises the following steps: the gateway node is electrified and initialized, and the sensor node is electrified and initialized; the gateway node actively sends a broadcast awakening command to the sensor node to awaken the sensor node; the gateway node issues roll call instructions, and each sensor node sends own address to the gateway node; the gateway node issues a networking instruction, and each sensor node sends information of the sensor node and the sensor nodes adjacent to the sensor node to the gateway node; the gateway node actively registers the information of each sensor node; after the gateway node finishes registering the address of the sensor node, the gateway node sends a networking end command, and the sensor node enters a low power consumption mode. The invention has the advantages of high networking speed and low power consumption of the sensor nodes.

Description

Networking method of master-slave low-power-consumption wireless ad hoc network
Technical Field
the invention belongs to the technical field of wireless ad hoc networks, and particularly relates to an ad hoc method of a master-slave low-power-consumption ad hoc network.
Background
the wireless ad hoc network is a temporary multi-hop autonomous system consisting of a group of movable nodes with wireless receiving and transmitting devices, does not depend on preset infrastructure, and has the characteristics of temporary networking, quick expansion, no control center, strong survivability and the like. The wireless ad hoc network node antenna can quickly receive wireless signals of adjacent nodes, and the router nodes of the nodes start a routing algorithm according to the positions of the adjacent nodes at that time, automatically adjust the communication relation among the nodes and form a new network topology structure.
the wireless sensing network is mainly applied to data acquisition requiring periodic reading of real-time data of all sensor nodes in the network, such as temperature, humidity, flow, pressure, flow rate, air indexes and the like. In the wireless sensor ad hoc network, sensor products of all nodes often cannot be powered by mains supply, but are powered by batteries, and the traditional ad hoc network technology is long in communication time and large in data packet, so that the power consumption of the sensor nodes is large, the requirements cannot be met by battery power supply, and the popularization and application of the sensor ad hoc network are limited.
At present, the sensor node only stores own information and does not have information of nearby nodes, and in addition, when the wireless networking is carried out at present, the address (number) of the installed sensor node needs to be manually registered in advance; the manually registered sensor node address needs to be input into a base network management node in advance or downloaded to a network management node remotely, and when a certain node needs to be replaced, the network needs to be registered again, which is very inconvenient.
Disclosure of Invention
the invention aims to provide a networking method of a master-slave low-power consumption wireless ad hoc network, which has high networking speed and low power consumption.
Based on the above purposes, the invention adopts the following technical scheme: a networking method of a master-slave low-power wireless ad hoc network comprises the following steps:
The gateway node is electrified and initialized, and the sensor node is electrified and initialized;
The gateway node actively sends a broadcast awakening instruction to the sensor node;
After receiving a broadcast awakening instruction sent by a gateway node, each sensor node is turned on to be wireless and enters a receiving mode;
If the set first preset time is up, the gateway node issues a roll call instruction;
The sensor node judges whether a roll call instruction is received within a first preset time;
if a roll call instruction is received within a first preset time, the sensor node uploads the address of the sensor node and the information of the uplink and downlink signal strength to the gateway node, and the gateway node actively registers the address of each sensor node and the corresponding uplink and downlink signal strength; when the sensor node uploads the own address and the information of the uplink and downlink signal strength to the gateway node, the sensor node also receives the address of the sensor node adjacent to the sensor node and the information of the uplink and downlink signal strength, and stores the received correct information;
If the set second preset time is up, the gateway node issues a networking instruction;
The sensor node judges whether a networking instruction is received within second preset time;
If a networking instruction is received within a second preset time, the sensor node uploads the address of the sensor node and the information of the uplink and downlink signal strength to the gateway node, and uploads the stored address of the adjacent sensor node and the information of the uplink and downlink signal strength; the gateway node analyzes and processes the received information and determines the whole network topology structure;
if the set third preset time is up, the gateway node issues a networking ending command, and the gateway node enters a sampling mode;
the sensor node judges whether a networking end command is received within a third preset time;
if a networking ending instruction is received within a third preset time, closing the wireless network and entering a low power consumption mode; if the networking ending command issued by the gateway node is not received within the third preset time, the sensor node actively enters a low power consumption mode, and networking is finished.
further, if the sensor node does not receive the roll call instruction within the first preset time, and does not receive the address, the uplink signal strength information and the downlink signal strength information uploaded to the gateway node by the proximity sensor node, entering a low power consumption mode;
if the sensor node does not receive the roll call instruction within the first preset time, but receives the information that the adjacent sensor node uploads the address of the sensor node and the strength of the uplink and downlink signals to the gateway node, the sensor node does not receive the roll call instruction and uploads the address of the sensor node and the strength of the uplink and downlink signals to the gateway node, and meanwhile, the received correct information of the adjacent sensor node is stored.
Further, if the sensor node does not receive the networking instruction within a second preset time, and meanwhile, if the address, the uplink signal strength information and the downlink signal strength information uploaded to the gateway node by the proximity sensor node are not received, the sensor node which does not receive the networking instruction enters a low power consumption mode;
if the sensor node does not receive the networking instruction within the second preset time, but receives the information uploaded by the proximity sensor node to the gateway node, the sensor node does not receive the networking instruction and uploads the address, the uplink signal strength and the downlink signal strength of the sensor node to the gateway node, and meanwhile, the sensor node uploads the address, the uplink signal strength and the downlink signal strength of the proximity sensor node which are stored by the sensor node.
further, the sensor node entering the low power consumption mode wakes up the sensor node in the low power consumption mode until a preset wake-up condition is triggered, the sensor node starts wireless transmission, receives a setting and a command issued by the gateway node, and uploads data information.
Further, after networking is finished, the gateway node and the sensor node are both in a sampling mode; if the gateway node is in the sampling mode, issuing a command for requesting to read the sampled data information at regular time according to preset sampling time;
judging whether a corresponding sensor node receives an instruction for requesting to read the sampled data information within preset sampling time;
If an instruction for requesting to read the sampled data information is received within the preset sampling time, the corresponding sensor node uploads the acquired data information according to the request instruction;
If the instruction of requesting to read the sampled data information is not received within the preset sampling time, the corresponding sensor node actively uploads the data information acquired by the corresponding sensor node;
after receiving the data information uploaded by the corresponding sensor node, the gateway node responds to the corresponding sensor node with confirmation information, and after receiving the confirmation response of the gateway node, the corresponding sensor node enters a low power consumption mode;
If the corresponding sensor node still does not receive the 'confirmation' response of the gateway node after the preset response time, the corresponding sensor node actively enters a low power consumption mode.
further, after the gateway node is powered on and initialized, whether network networking of the gateway node is finished or not is judged, and if the networking is finished, a preset sampling mode is entered;
if the group is not completed or a new networking command is received, the gateway node actively sends a broadcast awakening command to the sensor node and enters a networking mode.
Further, after the sensor node is powered on and initialized, whether the hardware of the sensor node is normal or not and whether a received instruction is not completed or not are judged;
If the hardware is normal and no unfinished instruction exists, when a new instruction sent by the gateway node is received, corresponding information is sent to the gateway node according to the content of the new instruction;
If the hardware is normal but has an unfinished instruction, when a new instruction sent by a gateway node is received, executing work corresponding to the unfinished instruction and storing corresponding data information, then executing work corresponding to the new instruction, finishing the new instruction and storing corresponding data information;
and if the hardware is abnormal, fault information is produced, and the fault information is sent to the gateway node when an instruction sent by the gateway node is received.
Further, when the gateway node registers information of the newly added sensor node, after the newly added sensor node is installed, the active uploading function of the newly added sensor node is awakened, the newly added sensor node uploads the address information of the newly added sensor node, after receiving the uploaded information of the newly added sensor node, the gateway node registers the newly added sensor node and sends confirmation information to the newly added sensor node, and the newly added sensor node is successfully added.
further, the gateway node is powered by mains electricity.
further, the gateway node is configured with a high gain antenna.
Furthermore, the communication data of the gateway node and the sensor node adopts hexadecimal data, the address of the sensor node is 12 bits, and BCD codes are adopted for storage.
Compared with the prior art, the invention has the beneficial effects that:
1. After the sensor nodes are deployed, when the gateway node initiates networking, the gateway node quickly and automatically registers the addresses of the sensor nodes by combining the address wildcard under the condition that the address wildcard of the sensor nodes is not preset in advance and utilizing a wireless conflict mechanism, thereby avoiding the traversal address investigation and registration and greatly improving the networking speed; and after the address is registered, all the sensor nodes close wireless monitoring and enter a low power consumption mode, and only when the corresponding trigger conditions are met and the sensor nodes are awakened, the sensor nodes are opened wirelessly, data are sent, and the setting and the command issued by the gateway node are received, so that the power consumption of the sensor nodes in the mode is low.
2. The invention utilizes the function of the standby channel of the wireless sensor network, and the standby channel is started when the wireless sensor network is blocked.
3. each sensor node stores the address and the signal strength of the adjacent sensor node and allows updating at any time, so that each sensor node has the function of autonomously improving the network; when a certain sensor node is replaced, all sensor nodes are not started to carry out secondary networking, the active uploading function of the newly added sensor node is awakened after the newly added sensor node is installed, the newly added sensor node uploads the address information of the newly added sensor node, the gateway node registers the newly added sensor node after receiving the uploading information of the newly added sensor node, confirmation information is sent to the newly added sensor node, the newly added sensor node is added successfully, the newly added sensor node enters a low-power-consumption mode after receiving the response of the gateway node, the data information of the newly added sensor node is uploaded after being awakened, and if the newly added sensor node does not receive a request reading sampling data instruction sent by the gateway node within preset time, the data information of the newly added sensor node is uploaded actively and is consistent with the working principle of the functions of other sensor nodes.
5. The sensor node in the invention optimizes and stores the acquired data, and can spontaneously transmit the data to the gateway node according to the preset time at irregular time when the data acquisition request command issued by the gateway node is not received after the preset time is exceeded.
6. the sensor node is in a low power consumption mode most of the time, wherein the sampling mode is also in a low power consumption state for sampling, the average power consumption of the whole sensor node unit is less than 30uA, and a 18505 lithium argon battery can work for many years.
drawings
FIG. 1 is a schematic diagram of a network topology of the present invention;
fig. 2 is a flow chart of initialization self-checking of gateway nodes and sensor nodes in the invention.
Detailed Description
the present invention will be described in further detail with reference to the accompanying drawings, which are included to illustrate preferred embodiments of the present invention.
as shown in fig. 1-2, a method for networking a master-slave low-power wireless ad hoc network includes a gateway node, a sensor node, and a wireless transceiver device, wherein the wireless transceiver device employs an existing wireless transceiver.
The master-slave low-power consumption wireless ad hoc network method comprises the following steps: initialization: initializing a gateway node and a sensor node, and if all the nodes are normal, finishing the initialization;
Networking mode: the gateway node actively sends a broadcast awakening instruction to the sensor node;
After receiving a broadcast awakening instruction sent by a gateway node, each sensor node is turned on to be wireless and enters a receiving mode;
If the set first preset time is up, the gateway node issues a roll call instruction;
The sensor node judges whether a roll call instruction is received within a first preset time;
If a roll call instruction is received within a first preset time, the sensor node uploads the address of the sensor node and the information of the uplink and downlink signal strength to the gateway node, and the gateway node actively registers the address of each sensor node and the corresponding uplink and downlink signal strength; when the sensor node uploads the own address and the information of the uplink and downlink signal strength to the gateway node, the sensor node also receives the address of the sensor node adjacent to the sensor node and the information of the uplink and downlink signal strength, and stores the received correct information;
If the set second preset time is up, the gateway node issues a networking instruction;
The sensor node judges whether a networking instruction is received within second preset time;
if a networking instruction is received within a second preset time, the sensor node uploads the address of the sensor node and the information of the uplink and downlink signal strength to the gateway node, and uploads the stored address of the adjacent sensor node and the information of the uplink and downlink signal strength; the gateway node analyzes and processes the received information and determines the whole network topology structure;
If the set third preset time is up, the gateway node issues a networking end command, and the gateway node enters a low power consumption mode (sampling mode);
the sensor node judges whether a networking end command is received within a third preset time;
If a networking ending instruction is received within a third preset time, closing the wireless network and entering a low power consumption mode (sampling mode); if the networking ending command issued by the gateway node is not received within the third preset time, the sensor node actively enters a low power consumption mode, and networking is finished. The sensor node entering the low power consumption mode (sampling mode) wakes up the sensor node in the low power consumption mode (sampling mode) until a preset wake-up condition is triggered, the sensor node starts wireless transmission, receives a setting and a command issued by the gateway node, and uploads data information. The preset awakening conditions comprise an alarm clock, wireless awakening and the like, and the wireless awakening mode is adopted in the invention.
In the invention, if the sensor node does not receive the roll call instruction within a first preset time and does not receive the address, uplink and downlink signal strength information uploaded to the gateway node by the proximity sensor node, the sensor node enters a low power consumption mode;
if the sensor node does not receive the roll call instruction within the first preset time, but receives the information of the self address and the uplink and downlink signal strength uploaded to the gateway node by the adjacent sensor node, the sensor node does not receive the roll call instruction and uploads the self address and the uplink and downlink signal strength uploaded to the gateway node by the sensor node, and meanwhile, the received correct information of the adjacent sensor node is stored.
when each sensor node receives a broadcast awakening command issued by a gateway node, the invention not only sends the own address and the information of the uplink and downlink signal intensity to the gateway node, but also receives the address of the adjacent sensor node and the information of the uplink and downlink signal intensity, and judges whether the received information is correct or not according to the internal protocol of the sensor node, if the received information is judged to be correct, the received information is stored, and if the received information is judged to be wrong, the received information is discarded. Therefore, the address and the signal strength of each sensor node can be stored by the adjacent sensor nodes, and basic data are prepared for the later multistage network.
in the invention, if the sensor node does not receive the networking instruction within the second preset time, and meanwhile, if the address, the uplink signal strength information and the downlink signal strength information uploaded to the gateway node by the adjacent sensor node are not received, the sensor node which does not receive the networking instruction enters a low power consumption mode; if the sensor node does not receive the networking instruction within the second preset time, but receives the information uploaded by the adjacent sensor node to the gateway node, and the address, the uplink signal strength and the downlink signal strength of the sensor node, which are not received by the networking instruction, are uploaded to the gateway node, and the address, the uplink signal strength and the downlink signal strength of the adjacent sensor node are stored.
after networking is completed, the gateway node and the sensor node are both in a sampling mode.
sampling mode: the gateway node issues a command for requesting to read the information of the sampled data at regular time according to the preset sampling time;
Judging whether a corresponding sensor node receives an instruction for requesting to read the sampled data information within preset sampling time;
If an instruction for requesting to read the sampled data information is received within the preset sampling time, the corresponding sensor node uploads the acquired data information according to the request instruction;
If the instruction of requesting to read the sampled data information is not received within the preset sampling time, the corresponding sensor node actively uploads the data information acquired by the corresponding sensor node; after receiving the data information uploaded by the corresponding sensor node, the gateway node responds to the corresponding sensor node with confirmation information, and after receiving the confirmation response of the gateway node, the corresponding sensor node enters a low power consumption mode; if the corresponding sensor node still does not receive the 'confirmation' response of the gateway node after the preset response time, the corresponding sensor node actively enters a low power consumption mode.
In the sampling mode, only when the corresponding trigger condition is met and the sensor node is awakened, the wireless sensor node is turned on, data is sent, and the setting and the command issued by the gateway node are received. In the sampling mode, when the sensor node does not receive a request reading sampling data instruction sent by the gateway node after the preset time, the sensor node can transmit data to the gateway node spontaneously according to the preset time at random.
the sensor node is in a low power consumption mode most of the time, wherein the sampling mode is also in a low power consumption state for sampling, the average power consumption of the whole sensor node unit is less than 30uA, and a 18505 lithium argon battery can work for many years to optimally store the acquired data.
in the invention, after the gateway node is electrified and initialized, whether the network networking of the gateway node is finished or not is judged, and if the networking is finished, a preset sampling mode is entered; if the group is not completed or a new networking command is received, the gateway node actively sends a broadcast awakening command to the sensor node and enters a networking mode.
after the sensor node is electrified and initialized, whether the hardware is normal or not and whether a received instruction is not completed or not can be judged; if the gateway node networking is completed at this time, the gateway node is in the sampling mode.
In a gateway node sampling mode: when the sensor node initializes self-checking, if the hardware is normal and has no unfinished instruction, when a new instruction is sent out by the gateway node, corresponding information is sent to the gateway node according to the content of the new instruction;
If the hardware is normal but has an unfinished instruction, when a new instruction sent by a gateway node is received, executing work corresponding to the unfinished instruction and storing corresponding data information, then executing work corresponding to the new instruction, finishing the new instruction and storing corresponding data information;
and if the hardware is abnormal, fault information is produced, and the fault information is sent to the gateway node when an instruction sent by the gateway node is received.
the sensor nodes are arranged according to actual requirements, and after the sensor nodes are electrified and initialized, whether own hardware is normal or not and whether received instructions are not completed or not are judged; if the networking of the gateway node is not completed or a new networking command is received, namely the gateway node is in the networking mode: if the hardware of the sensor node is normal, no matter whether an unfinished instruction exists or not, when a broadcast awakening instruction sent by the gateway node is received, address information is sent to the gateway node and is consistent with a normal networking principle, if the hardware is abnormal, no matter whether the unfinished instruction exists or not, fault information is produced, and when the instruction sent by the gateway node is received, the fault information is sent to the gateway node.
the working modes of the sensor node in the invention comprise a transmitting mode, a receiving mode, a sleep mode, a sampling mode and a low power consumption mode.
And (3) a transmitting mode: the sensor nodes transmit data wirelessly, the power consumption of the mode is maximum, and the current is at least dozens of milliamperes;
a receiving mode: the sensor nodes receive data wirelessly, and the power consumption of the mode is slightly smaller, and the current is generally several milliamperes.
A sleep mode: in this mode, the sensor node may be awakened wirelessly, the power consumption of this mode is very low, generally several microamps, and the sensor is set to enter the sleep mode when the factory leaves the factory.
low power consumption mode: in this mode, the sensor node is not awake, the sensor node does not sample data, and the wireless also enters sleep mode.
sampling mode: in this mode, the sensor nodes perform corresponding data sampling, and the power consumption varies according to different sensor types. After the sensor node is awakened when the gateway node is networked, the sensor node enters a low power consumption mode, namely a low power consumption sampling mode.
When networking, the gateway node actively sends out a broadcast awakening command to awaken the sensor node in the low power consumption mode, and then roll calling registration is carried out on the sensor node. The awakened sensor node enters the low power consumption mode, namely the low power consumption sampling mode, and the gateway node in the invention adopts mains supply for power supply, does not need to consider entering the low power consumption mode, and can monitor and receive data information uploaded by the sensor node in real time.
In addition, the gateway node is also provided with a high-gain antenna which can cover all the sensor nodes and accurately receive the data information uploaded by each sensor node at any time.
when a certain sensor is replaced or a sensor node is newly added, all sensors do not need to be started to conduct new networking. That is, when the gateway node registers information of a newly added sensor node, after the installation of the newly added sensor node is completed, the active uploading function of the newly added sensor node is awakened, the newly added sensor node uploads the address information of the newly added sensor node, after receiving the uploaded information of the newly added sensor node, the gateway node registers the newly added sensor node and sends confirmation information to the newly added sensor node, and the newly added sensor node is successfully added.
the principle of the working mode of the newly added sensor node is consistent with that of the pre-existing sensor node, and in the gateway node networking mode, the newly added sensor node uploads own information after receiving an instruction sent by the gateway node, receives information of a sensor node close to the newly added sensor node, and stores correct information. In the sampling mode, the newly added sensor node does not receive a new sampling data reading instruction requested by the gateway node in the preset sampling time, and then actively uploads the information of the newly added sensor node.
In order to save electricity, when the newly added sensor node sends the own address, the uplink signal intensity information and the downlink signal intensity information to the gateway node, and when the sensor node adjacent to the newly added sensor node receives the data information uploaded to the gateway node by the newly added sensor node, the address, the downlink signal intensity information and the uplink signal intensity information of the newly added sensor node are not stored.
according to the invention, only when the gateway node or a large number of sensor nodes are replaced due to problems, all the sensor nodes are started from a new network, so that the time and times of transmitting by each sensor node are greatly reduced, and the effect of reducing the average power consumption is achieved.
The communication data of the gateway node and the sensor node in the invention adopts hexadecimal data, and the networking process can be optimized by the communication method. The sensor node address is 12 bits and is stored by adopting BCD codes. That is, 6 bytes of data "XX XX XX XX XX XX", each "XX" ranging from 00 to 99. Each sensor node address supports wildcards'”,“the hexadecimal code of "is: 0x3F, that is, each indeterminate address byte is available "for example, when the address of the node with the number "112233445566" is replaced by the "3F", any byte of six address bytes is replaced by the broadcast meter reading address "3F", the corresponding node also considers to call the address of itself, and must make a corresponding response, and during the response, the actual single address of itself is put into a return data frame to upload (for example, a command of the "11223344553F" address is received, the nodes with the addresses ranging from "112233445500" to "112233445599" consider to communicate with themselves and need to make corresponding responses, a command of the "3F 01" address is received, and the nodes with the addresses ranging from "000000000001" to "999999999901" need to make corresponding responses). Meanwhile, the gateway node is used as an initiator to actively apply for address registration, and in the process of address registration, the sensor node is used for supporting abbreviated meter reading, so that the address of the whole network node can be automatically logged, the deviation caused by manual logging can be avoided, and the working efficiency is improved.
before the invention works, the system initialization comprises the following steps: initializing a gateway node and a sensor node (oscillator initialization, memory initialization, interrupt initialization, timer initialization, port initialization, hardware self-checking and peripheral self-checking), if all the nodes are normal, finishing initialization, and entering a networking mode or a sampling mode; and if the initialization process is abnormal, producing fault information and reporting the fault information to the server.
the above description is only for the purpose of illustrating the preferred embodiments of the present invention and is not to be construed as limiting the invention, and any modifications, equivalents, improvements and the like that fall within the spirit and principle of the present invention are intended to be included therein.

Claims (10)

1. A networking method of a master-slave low-power consumption wireless ad hoc network is characterized in that: the master-slave low-power wireless ad hoc network comprises a gateway node and a sensor node, and the master-slave low-power wireless ad hoc network method comprises the following steps:
the gateway node is electrified and initialized, and the sensor node is electrified and initialized;
the gateway node actively sends a broadcast awakening instruction to the sensor node;
after receiving a broadcast awakening instruction sent by a gateway node, each sensor node is turned on to be wireless and enters a receiving mode;
if the set first preset time is up, the gateway node issues a roll call instruction;
The sensor node judges whether a roll call instruction is received within a first preset time;
if a roll call instruction is received within a first preset time, the sensor node uploads the address of the sensor node and the information of the uplink and downlink signal strength to the gateway node, and the gateway node actively registers the address of each sensor node and the corresponding uplink and downlink signal strength; when the sensor node uploads the own address and the information of the uplink and downlink signal strength to the gateway node, the sensor node also receives the address of the sensor node adjacent to the sensor node and the information of the uplink and downlink signal strength, and stores the received correct information;
If the set second preset time is up, the gateway node issues a networking instruction;
the sensor node judges whether a networking instruction is received within second preset time;
If a networking instruction is received within a second preset time, the sensor node uploads the address of the sensor node and the information of the uplink and downlink signal strength to the gateway node, and uploads the stored address of the adjacent sensor node and the information of the uplink and downlink signal strength; the gateway node analyzes and processes the received information and determines the whole network topology structure;
if the set third preset time is up, the gateway node issues a networking ending command, and the gateway node enters a sampling mode;
The sensor node judges whether a networking end command is received within a third preset time;
If a networking ending instruction is received within a third preset time, closing the wireless network and entering a low power consumption mode; if the networking ending command issued by the gateway node is not received within the third preset time, the sensor node actively enters a low power consumption mode, and networking is finished.
2. the method for networking of a master-slave low power consumption wireless ad hoc network according to claim 3, wherein: if the sensor node does not receive the roll call instruction within the first preset time and does not receive the address, the uplink signal intensity information and the downlink signal intensity information uploaded to the gateway node by the adjacent sensor node, entering a low power consumption mode;
If the sensor node does not receive the roll call instruction within the first preset time, but receives the information that the adjacent sensor node uploads the address of the sensor node and the strength of the uplink and downlink signals to the gateway node, the sensor node does not receive the roll call instruction and uploads the address of the sensor node and the strength of the uplink and downlink signals to the gateway node, and meanwhile, the received correct information of the adjacent sensor node is stored.
3. The method for networking of a master-slave low power consumption wireless ad hoc network according to claim 3, wherein: if the sensor node does not receive the networking instruction within the second preset time, and meanwhile, if the address, the uplink signal strength information and the downlink signal strength information uploaded to the gateway node by the adjacent sensor node are not received, the sensor node which does not receive the networking instruction enters a low power consumption mode;
If the sensor node does not receive the networking instruction within the second preset time, but receives the information uploaded by the proximity sensor node to the gateway node, the sensor node does not receive the networking instruction and uploads the address, the uplink signal strength and the downlink signal strength of the sensor node to the gateway node, and meanwhile, the sensor node uploads the address, the uplink signal strength and the downlink signal strength of the proximity sensor node which are stored by the sensor node.
4. the method for networking of a master-slave low power consumption wireless ad hoc network according to claim 2, wherein: and the sensor node entering the low power consumption mode wakes up the sensor node in the low power consumption mode until a preset wake-up condition is triggered, the sensor node starts wireless transmission, receives a setting and a command issued by the gateway node and uploads data information.
5. The method for networking of a master-slave low power consumption wireless ad hoc network according to claim 4, wherein: after networking is finished, the gateway node and the sensor node are both in a sampling mode; if the gateway node is in the sampling mode, issuing a command for requesting to read the sampled data information at regular time according to preset sampling time;
Judging whether a corresponding sensor node receives an instruction for requesting to read the sampled data information within preset sampling time;
if an instruction for requesting to read the sampled data information is received within the preset sampling time, the corresponding sensor node uploads the acquired data information according to the request instruction;
If the instruction of requesting to read the sampled data information is not received within the preset sampling time, the corresponding sensor node actively uploads the data information acquired by the corresponding sensor node;
after receiving the data information uploaded by the corresponding sensor node, the gateway node responds to the corresponding sensor node with confirmation information, and after receiving the confirmation response of the gateway node, the corresponding sensor node enters a low power consumption mode;
If the corresponding sensor node still does not receive the 'confirmation' response of the gateway node after the preset response time, the corresponding sensor node actively enters a low power consumption mode.
6. the method for networking in a master-slave low power consumption wireless ad hoc network according to claim 5, wherein: after the gateway node is electrified and initialized, judging whether the network networking of the gateway node is finished or not, and if the networking is finished, entering a preset sampling mode;
If the group is not completed or a new networking command is received, the gateway node actively sends a broadcast awakening command to the sensor node and enters a networking mode.
7. the method of networking for a wireless ad hoc network of claim 6, wherein: after the sensor node is electrified and initialized, whether own hardware is normal or not and whether a received instruction is not completed or not are judged;
if the hardware is normal and no unfinished instruction exists, when a new instruction sent by the gateway node is received, corresponding information is sent to the gateway node according to the content of the new instruction;
If the hardware is normal but has an unfinished instruction, when a new instruction sent by a gateway node is received, executing work corresponding to the unfinished instruction and storing corresponding data information, then executing work corresponding to the new instruction, finishing the new instruction and storing corresponding data information;
And if the hardware is abnormal, fault information is produced, and the fault information is sent to the gateway node when an instruction sent by the gateway node is received.
8. The method of networking for a wireless ad hoc network of claim 7, wherein: when the gateway node registers information of the newly added sensor node, after the newly added sensor node is installed, the active uploading function of the newly added sensor node is awakened, the newly added sensor node uploads the address information of the newly added sensor node, the gateway node registers the newly added sensor node after receiving the uploaded information of the newly added sensor node, confirmation information is sent to the newly added sensor node, and the newly added sensor node is successfully added.
9. A method for networking in a master-slave low power consumption wireless ad hoc network as claimed in any one of claims 1 to 8, characterized in that: the gateway node is powered by mains supply; the gateway node is configured with a high gain antenna.
10. the method for networking in a master-slave low power wireless ad hoc network of claim 9, wherein: the communication data of the gateway node and the sensor node adopts hexadecimal data, the address of the sensor node is 12 bits, and BCD codes are adopted for storage.
CN201910874939.3A 2019-09-17 2019-09-17 Networking method of master-slave low-power-consumption wireless ad hoc network Active CN110572841B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201910874939.3A CN110572841B (en) 2019-09-17 2019-09-17 Networking method of master-slave low-power-consumption wireless ad hoc network

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201910874939.3A CN110572841B (en) 2019-09-17 2019-09-17 Networking method of master-slave low-power-consumption wireless ad hoc network

Publications (2)

Publication Number Publication Date
CN110572841A true CN110572841A (en) 2019-12-13
CN110572841B CN110572841B (en) 2022-08-12

Family

ID=68780455

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201910874939.3A Active CN110572841B (en) 2019-09-17 2019-09-17 Networking method of master-slave low-power-consumption wireless ad hoc network

Country Status (1)

Country Link
CN (1) CN110572841B (en)

Cited By (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111683400A (en) * 2020-06-09 2020-09-18 哈尔滨希塔慧网科技有限公司 Ultra-low power consumption wireless network two-way communication method with short downlink response time delay
CN112218280A (en) * 2020-10-16 2021-01-12 北京杰睿中恒科技有限公司 Method for improving communication efficiency of local network by using parallel communication mode
CN112437484A (en) * 2020-10-16 2021-03-02 山东大学 Networking method for underground engineering geological exploration wireless seismograph and wireless seismograph
CN112863237A (en) * 2021-01-07 2021-05-28 上海镭芯微电子股份有限公司 Wireless networking method and system of parking space detection device
CN113347591A (en) * 2021-08-05 2021-09-03 四川省公路规划勘察设计研究院有限公司 LoRa gateway, control method and field engineering structure monitoring system
CN113472431A (en) * 2021-06-25 2021-10-01 中航光电科技股份有限公司 Novel chain type optical communication network with double main frameworks

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106170142A (en) * 2016-06-29 2016-11-30 慧感(上海)物联网科技有限公司 A kind of low-consumption wireless Sensor Network network-building method
CN106900042A (en) * 2017-03-24 2017-06-27 浙江理工大学 A kind of sensor node of tree-shaped sensor network MANET
CN107148069A (en) * 2017-03-24 2017-09-08 浙江理工大学 The MANET and low power consumption data of a kind of tree-shaped sensor network collect method
CN110072247A (en) * 2019-04-19 2019-07-30 武汉所为科技有限公司 A kind of LoRa network of low-power consumption and real-time

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106170142A (en) * 2016-06-29 2016-11-30 慧感(上海)物联网科技有限公司 A kind of low-consumption wireless Sensor Network network-building method
CN106900042A (en) * 2017-03-24 2017-06-27 浙江理工大学 A kind of sensor node of tree-shaped sensor network MANET
CN107148069A (en) * 2017-03-24 2017-09-08 浙江理工大学 The MANET and low power consumption data of a kind of tree-shaped sensor network collect method
CN110072247A (en) * 2019-04-19 2019-07-30 武汉所为科技有限公司 A kind of LoRa network of low-power consumption and real-time

Cited By (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111683400A (en) * 2020-06-09 2020-09-18 哈尔滨希塔慧网科技有限公司 Ultra-low power consumption wireless network two-way communication method with short downlink response time delay
CN112218280A (en) * 2020-10-16 2021-01-12 北京杰睿中恒科技有限公司 Method for improving communication efficiency of local network by using parallel communication mode
CN112437484A (en) * 2020-10-16 2021-03-02 山东大学 Networking method for underground engineering geological exploration wireless seismograph and wireless seismograph
CN112863237A (en) * 2021-01-07 2021-05-28 上海镭芯微电子股份有限公司 Wireless networking method and system of parking space detection device
CN113472431A (en) * 2021-06-25 2021-10-01 中航光电科技股份有限公司 Novel chain type optical communication network with double main frameworks
CN113472431B (en) * 2021-06-25 2022-05-13 中航光电科技股份有限公司 Novel chain type optical communication network with double main frameworks
CN113347591A (en) * 2021-08-05 2021-09-03 四川省公路规划勘察设计研究院有限公司 LoRa gateway, control method and field engineering structure monitoring system

Also Published As

Publication number Publication date
CN110572841B (en) 2022-08-12

Similar Documents

Publication Publication Date Title
CN110572841B (en) Networking method of master-slave low-power-consumption wireless ad hoc network
CN111836277B (en) Lora communication method, lora node and Lora communication system
US7450627B2 (en) Wireless communication synchronization
CN103237337B (en) A kind of wireless senser adaptive network dormancy control method
WO2016192172A1 (en) Implementation method of low power consumption internet of things based on proxy apparatus
CN109862068A (en) A kind of LORA data acquisition control system based on TDMA
US20200305229A1 (en) Wireless sensor management method, and wireless communication system
US20100008272A1 (en) Communication protocol for low-power network applications and a network of sensors using the same
US20060242127A1 (en) Field sensing network
WO2016106730A1 (en) Sleeping and awakening method and apparatus for master-slave network, and power-saving system for master-slave network
CN106900042B (en) Sensor node of tree-type sensor network ad hoc network
CN105451310A (en) Sensor energy saving method of available Wi-Fi in internet of things and deriving method thereof
CN107534941A (en) The system of communication on network
CN109104704B (en) Application of environment regulation and control system for aquaculture Internet of things and regulation and control method
WO2018112749A1 (en) Low power consumption communication method and device based on micro-energy collection network
CN105611614B (en) Method and system for self-feedback dormancy awakening of routing node for wireless monitoring
CN111405640A (en) Low-power-consumption wireless networking communication method
CN115643595A (en) Wide-band and narrow-band integrated ad hoc network communication device and control method thereof
TWI674018B (en) Method and apparatus for providing power saving optimization for wlan ap
CN105119726A (en) Wireless sensor network node rapid awakening method and apparatus thereof
Song et al. Research on SMAC protocol for WSN
CN102547938B (en) Router, wireless sensor network and method for monitoring terminal nodes
US20200314744A1 (en) Low powered wireless sensor network that optimizes energy consumption in battery operated sensor nodes
CN204836236U (en) Low -power consumption thing networking framework based on act on behalf of equipment
CN108810842B (en) Wireless sensor network node and MAC protocol method for node

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