CN107071729B - Wireless grain condition measurement and control sensor node positioning system - Google Patents

Wireless grain condition measurement and control sensor node positioning system Download PDF

Info

Publication number
CN107071729B
CN107071729B CN201710219503.1A CN201710219503A CN107071729B CN 107071729 B CN107071729 B CN 107071729B CN 201710219503 A CN201710219503 A CN 201710219503A CN 107071729 B CN107071729 B CN 107071729B
Authority
CN
China
Prior art keywords
sensor
node
nodes
module
condition measurement
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.)
Active
Application number
CN201710219503.1A
Other languages
Chinese (zh)
Other versions
CN107071729A (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 Normal University
Original Assignee
Henan Normal University
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 Normal University filed Critical Henan Normal University
Priority to CN201710219503.1A priority Critical patent/CN107071729B/en
Publication of CN107071729A publication Critical patent/CN107071729A/en
Application granted granted Critical
Publication of CN107071729B publication Critical patent/CN107071729B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W4/00Services specially adapted for wireless communication networks; Facilities therefor
    • H04W4/02Services making use of location information
    • H04W4/023Services making use of location information using mutual or relative location information between multiple location based services [LBS] targets or of distance thresholds
    • GPHYSICS
    • G01MEASURING; TESTING
    • G01DMEASURING NOT SPECIALLY ADAPTED FOR A SPECIFIC VARIABLE; ARRANGEMENTS FOR MEASURING TWO OR MORE VARIABLES NOT COVERED IN A SINGLE OTHER SUBCLASS; TARIFF METERING APPARATUS; MEASURING OR TESTING NOT OTHERWISE PROVIDED FOR
    • G01D21/00Measuring or testing not otherwise provided for
    • G01D21/02Measuring two or more variables by means not covered by a single other subclass
    • GPHYSICS
    • G08SIGNALLING
    • G08CTRANSMISSION SYSTEMS FOR MEASURED VALUES, CONTROL OR SIMILAR SIGNALS
    • G08C17/00Arrangements for transmitting signals characterised by the use of a wireless electrical link
    • G08C17/02Arrangements for transmitting signals characterised by the use of a wireless electrical link using a radio link
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W64/00Locating users or terminals or network equipment for network management purposes, e.g. mobility management
    • H04W64/003Locating users or terminals or network equipment for network management purposes, e.g. mobility management locating network equipment
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W84/00Network topologies
    • H04W84/18Self-organising networks, e.g. ad-hoc networks or sensor networks

Abstract

The invention discloses a wireless grain condition measurement and control sensor node positioning system which comprises a grain condition measurement and control host, grain condition measurement and control extensions, auxiliary positioning routes and sensor nodes, wherein the grain condition measurement and control host is arranged in a control room, the grain condition measurement and control extensions and the auxiliary positioning routes are respectively arranged at different positions in each grain bin, the sensor nodes are inserted into grains in each grain bin in a rectangular array distribution mode, the grain condition measurement and control host is in bidirectional wireless communication with the grain condition measurement and control extensions, and the grain condition measurement and control extensions are respectively in bidirectional wireless communication with the auxiliary positioning routes and the sensor nodes. The invention saves the installation flow of equipment, saves the expenditure of purchasing the temperature measuring cable, reduces the maintenance cost of the equipment, and ensures safer and more reliable positioning.

Description

Wireless grain condition measurement and control sensor node positioning system
Technical Field
The invention belongs to the technical field of sensor node positioning systems, and particularly relates to a wireless grain condition measurement and control sensor node positioning system.
Background
The national grain reserve work is the basis of national strategic reserve, the national grain reserve warehouse bears the task of safely storing grains, and timely monitors grain condition information such as temperature and humidity of grains and the like, and plays a vital role in safely storing grains. The Chinese is a large agricultural country, and the grain reserve has great demands in various areas of the Chinese. National grain reserves are also provided with reserves all over the country, and although the water content of the grains in the warehouse is smaller, the grains piled together can also breathe to release heat and water, and if not treated in time, the grains can be mildewed and damaged by worms. By monitoring the temperature and humidity of grains, the grains are kept in a safe range, which is the basis of safe grain storage.
Early grain depot temperature and humidity monitoring is completed manually, time and labor are wasted, and accuracy and instantaneity are poor. With the development of electronic technology in recent years, the digital automatic temperature measurement equipment replaces the early manual temperature measurement. At present, the grain depot temperature measurement is mainly connected to the extensions of all grain depots in a wireless mode through the duty room, and the extensions arranged in the grain depot are connected with the temperature sensor in a wired mode. In order to sense the temperature at a specific position in the grain depot, the temperature sensor is required to be corresponding to the position of the grain depot, the DS18B20 single-bus digital temperature sensor is adopted in many cases, the temperature measurement precision is high, and the two-wire parasitic power supply mode can be adopted for power supply, so that the cost of a cable is greatly saved; and simultaneously, the serial number representing the position can be written in an epom register of the upper limit alarm value and the lower limit alarm value provided inside the DS18B 20. Before installation, serial numbers are written into the enoms in different DS18B20 sensors according to a certain position sequence, and the temperature is read out and the position information stored in the sensors is read out at the same time, so that the temperature and the grain depot position information can be corresponding.
But the scheme that uses at present is that the cable connection is adopted between sensor and the extension, because the grain depot area is great, needs longer temperature measurement cable, not only greatly increased cable cost, but also inconvenient installation is also very inconvenient operation. Meanwhile, because the single bus mode is adopted, a plurality of sensors are required to be packaged into a thick protective sleeve for corrosion prevention, the length of the cable and the number of the sensors inside the cable are required to be customized, and the construction period is prolonged. More importantly, if one sensor is damaged in one temperature measuring cable, the whole temperature measuring cable needs to be replaced, so that the maintenance cost is greatly increased, and meanwhile, professional maintenance personnel are required to replace the temperature measuring cable, so that the operation and maintenance costs are relatively high.
Disclosure of Invention
The invention provides a wireless grain condition measurement and control sensor node positioning system for overcoming the defects of the prior art, wherein the sensor nodes are powered by lithium batteries, the sensor nodes and the grain condition measurement and control extensions are in two-way wireless communication, each group of sensor nodes are independent, the sensor nodes can be directly arranged in a granary at equal intervals according to a rectangular array, no professional is required to install and debug, no special customization of a temperature measuring cable according to the size of the granary is required, each sensor node is identical, if the sensor nodes are damaged, the standby sensor nodes can be directly replaced, meanwhile, the manual advance writing of position information to each sensor node is not required, the sensor nodes can automatically perform RSSI positioning, a sensor node distribution diagram is generated, the installation flow of equipment is greatly saved, the expenditure of purchasing the temperature measuring cable is saved, the equipment maintenance cost is reduced, and the positioning is safer and more reliable.
The invention adopts the following technical scheme for solving the technical problems, and is characterized by comprising a grain condition measurement and control host, a grain condition measurement and control extension, an auxiliary positioning route and sensor nodes, wherein the grain condition measurement and control host is arranged in a control room, the grain condition measurement and control extension and the auxiliary positioning route are respectively arranged at different positions in each granary, the sensor nodes are inserted in grains in each granary in a rectangular array distribution mode, the grain condition measurement and control host is in bidirectional wireless communication with the grain condition measurement and control extension, and the grain condition measurement and control extension is respectively in bidirectional wireless communication with the auxiliary positioning route and the sensor nodes;
the grain condition measurement and control extension comprises a singlechip, a solar charging module, a power module, a residual electric quantity detection module, a Zigbee wireless communication module, a high-power wireless transceiver module and a humidity sensor, wherein the singlechip is respectively connected with the solar charging module, the power module, the residual electric quantity detection module, the Zigbee wireless communication module, the high-power wireless transceiver module and the humidity sensor through circuits, the solar charging module is used for charging the power module of the grain condition measurement and control extension, the power module is used for storing electric energy generated by the solar charging module and providing electric energy for the whole grain condition measurement and control extension, the residual electric quantity detection module is used for detecting the residual electric quantity of the power module in the grain condition measurement and control extension and sending alarm signals to the singlechip when the residual electric quantity of the power module is lower than a set threshold value, the Zigbee wireless communication module is used for bi-directionally wirelessly communicating with sensor nodes and auxiliary positioning routes inside the grain bin, meanwhile measuring RSSI values of sensor nodes corresponding to specific IDs, the high-power wireless transceiver module is used for bi-directionally wirelessly communicating with the grain condition measurement and control host, receiving control commands from the grain condition measurement and control host and uploading temperature and humidity data and sensor node positioning information to the grain condition measurement and control host, and measuring humidity sensor nodes are used for measuring relative humidity values inside and outside the grain bin;
the auxiliary positioning route comprises a singlechip, a solar charging module, a power module, a residual electric quantity detection module and a Zigbee wireless communication module, wherein the singlechip is respectively connected with the solar charging module, the power module, the residual electric quantity detection module and the Zigbee wireless communication module through circuits, the solar charging module is used for charging the power module of the auxiliary positioning route, the power module is used for storing electric energy generated by the solar charging module and providing electric energy for the whole auxiliary positioning route, the residual electric quantity detection module is used for detecting the residual electric quantity of the power module in the auxiliary positioning route and sending an alarm signal to the singlechip when the residual electric quantity of the power module is lower than a set threshold value, and the Zigbee wireless communication module is used for carrying out bidirectional wireless communication on the auxiliary grain condition measurement and control extension and the sensor node and simultaneously measuring the RSSI value of the sensor node corresponding to a specific ID;
the sensor node comprises a singlechip, a Zigbee wireless communication module, a power supply module, a residual electric quantity detection module, a DS18B20 sensor and an indicator light module, wherein the singlechip is respectively connected with the Zigbee wireless communication module, the power supply module, the residual electric quantity detection module, the DS18B20 sensor and the indicator light module through circuits, the power supply module is used for providing electric energy for the whole sensor node, the residual electric quantity detection module is used for detecting the residual electric quantity of the power supply module in the sensor node, the Zigbee wireless communication module is used for forming a wireless sensor network to carry out bidirectional data transmission, namely, two sensor nodes are determined as a beacon node 1 and a beacon node 2 according to a grain condition measurement and control extension, an auxiliary positioning route and the sensor node with a known position, the beacon node respectively carries out bidirectional wireless communication with sensor nodes of surrounding neighbors to find 1-2 unknown sensor node IDs with largest RSSI values as nearest neighbor nodes of the beacon node, if the beacon node has only one unknown nearest neighbor node, the position of the beacon node can be directly determined, when the beacon node has two nearest neighbor nodes, the RSSI values between the beacon node and the two nearest neighbor nodes of the beacon node 1 are respectively measured through the communication between the beacon node 2 and the two nearest neighbor nodes of the beacon node 1, the positions of the beacon node and the beacon node are determined according to the relative sizes of the RSSI values, the RSSI values between the beacon node 1 and the two nearest neighbor nodes of the beacon node 2 are respectively measured through the communication between the beacon node 1 and the two nearest neighbor nodes, the corresponding specific positions of the two unknown nearest neighbor node IDs of the beacon node 2 are determined according to the relative sizes of the RSSI values, and the DS18B20 sensor is used for measuring grain temperature information of different heights of specific positions.
The invention relates to an operation method of a wireless grain condition measurement and control sensor node positioning system, which is characterized in that grain condition measurement and control extensions and auxiliary positioning routes are respectively arranged at two corners of a rectangular granary, and 1-25 sensor nodes are arranged in the granary according to a rectangular array distribution mode, wherein the specific positioning process of each sensor node is as follows:
(1) After the sensor nodes are arranged, networking is automatically carried out according to a networking protocol, cluster head nodes are selected, when the sensor nodes are required to be positioned, a command of searching nearest neighbor nodes is broadcasted to the sensor nodes in the whole granary through a grain condition measurement and control extension, the sensor nodes receive the command of searching nearest neighbor nodes, the transmitting power of a Zigbee wireless communication module is adjusted to be the lowest, the radius of communication is reduced, 50 specific data are sequentially transmitted to the periphery under the coordination command of the cluster head nodes, wherein a data packet comprises IDs of sensor nodes at a transmitting end, the surrounding sensor nodes which receive signals, grain condition measurement and control extension and auxiliary positioning routes record RSSI values for 50 times, then average values are obtained and stored in a neighbor node list, and finally a plurality of nodes with strongest RSSI values and similar values are found in the neighbor node list to be used as own nearest neighbor nodes, and the number of the nearest neighbor nodes of one sensor node is 1-4;
(2) Each sensor node obtains the ID of the nearest neighbor node of the sensor node, and then one nearest neighbor node obtained by the grain condition measurement and control extension is the sensor node in the No. 1 position, and similarly, the sensor node in the No. 5 position is determined by the auxiliary positioning route, and the No. 1 position and the No. 5 position and the ID of the corresponding sensor node are written into a database;
(3) Selecting sensor nodes at the positions 1 and 5 as beacon nodes, wherein the beacon nodes are respectively provided with 2 nearest neighbor nodes, the nearest neighbor nodes 1 are respectively provided with 2 and 6 RSSI values between the nearest neighbor nodes and the beacon nodes 5, the RSSI values between the nearest neighbor nodes 1 and the beacon nodes 6 are respectively measured by the nodes 1 and 6, the measuring process is also to obtain an average value of 50 times, the sensor node with the larger RSSI value is the sensor node at the position 2, the sensor node with the smaller RSSI value is the sensor node at the position 6, the sensor nodes respectively provided with the positions 4 and 10 are respectively determined by the same, and then the sensor node IDs of the determined positions and the corresponding position serial numbers are respectively stored in a system database;
(4) Repeating the step (3) to select the sensor nodes at the positions No. 2 and No. 4 as beacon nodes, determining the sensor nodes at the positions No. 3 and No. 9, wherein the sensor node at the position No. 3 is the nearest neighbor node at the positions No. 2 and No. 4, the rest nearest neighbor node at the position No. 3 is the sensor node at the position No. 8, and storing the sensor node IDs at the determined positions and the corresponding position serial numbers thereof into a system database respectively;
(5) Through the steps, the positions of two rows of sensor nodes closest to the grain condition measurement and control extension and the auxiliary positioning route can be determined, then the No. 6 and No. 10 position sensor nodes are selected as beacon nodes, the sensor nodes at the No. 11 and No. 15 positions are determined in the step (3), and the sensor node IDs at the determined positions and the corresponding position serial numbers are stored in a system database respectively;
(6) Repeating the steps (3), (4) and (5) until the position information of all the sensor nodes is determined, and ending the positioning process of the whole sensor network.
Compared with the prior art, the invention has the following beneficial effects:
1. by adopting the wireless grain condition measurement and control sensor node positioning system, only grain condition measurement and control extensions and auxiliary positioning routes are required to be installed on specific corners of rectangular granaries, complicated equipment wiring, installation and debugging work by professionals are not required, and other positioning modules are not required to be added to sensor nodes;
2. the grain condition measurement and control system in the present stage needs to write the position information in the warehouse where the sensor is located by a professional when the system is installed, and the position information of the sensor needs to be rewritten once equipment is replaced;
3. the sensor nodes are arranged after each grain warehouse entry, heavy temperature measuring cables do not need to be dragged to move on the grain plane, and only single sensor nodes are arranged in the grain warehouse in a mode of uniformly-spaced rectangular array distribution, so that the sensor nodes are more convenient and quicker than the prior art by adopting wired connection, the sensor nodes can be directly moved outside the grain warehouse before the grains are delivered out of the warehouse, and the wired temperature measuring cables are prevented from being wound in the grain warehouse to affect other operations;
4. the temperature measuring cable needs to be customized according to the grain depot size at present, and once one of a plurality of sensor nodes in one cable is damaged, the whole temperature measuring cable needs to be replaced, so that time is wasted, the wireless grain condition measurement and control sensor node positioning system only needs to replace the damaged sensor node by taking the spare sensor node, professional operation is not needed, rewiring is not needed, and the wireless grain condition measurement and control sensor node positioning system is lower in cost and higher in efficiency.
Drawings
FIG. 1 is a schematic diagram of the granary equipment distribution of the wireless grain condition measurement and control sensor node positioning system of the present invention;
FIG. 2 is a general module connection diagram of the wireless grain condition measurement and control sensor node positioning system of the invention;
FIG. 3 is a block diagram of the grain condition measuring and controlling extension set in the present invention;
FIG. 4 is a block diagram illustrating the positioning-assisted routing of the present invention;
fig. 5 is a block diagram of a sensor node according to the present invention.
In the figure: 1. grain condition measurement and control extension, 2, auxiliary positioning route, 3, sensor node.
Detailed Description
The details of the present invention are described in detail with reference to the accompanying drawings. The wireless grain condition measurement and control sensor node positioning system comprises a grain condition measurement and control host, a grain condition measurement and control extension 1, an auxiliary positioning route 2 and a sensor node 3, wherein the grain condition measurement and control host is arranged in a control room, the grain condition measurement and control extension 1 and the auxiliary positioning route 2 are respectively arranged at different positions in each granary, the sensor node 3 is inserted into grains in each granary in a rectangular array distribution mode, the grain condition measurement and control host is in bidirectional wireless communication with the grain condition measurement and control extension 1, and the grain condition measurement and control extension 1 is respectively in bidirectional wireless communication with the auxiliary positioning route 2 and the sensor node 3;
the grain condition measurement and control extension comprises a singlechip, a solar charging module, a power module, a residual electric quantity detection module, a Zigbee wireless communication module, a high-power wireless transceiver module and a humidity sensor, wherein the singlechip is respectively connected with the solar charging module, the power module, the residual electric quantity detection module, the Zigbee wireless communication module, the high-power wireless transceiver module and the humidity sensor through circuits, the solar charging module is used for charging the power module of the grain condition measurement and control extension, the power module is used for storing electric energy generated by the solar charging module and providing electric energy for the whole grain condition measurement and control extension, the residual electric quantity detection module is used for detecting the residual electric quantity of the power module in the grain condition measurement and control extension and sending alarm signals to the singlechip when the residual electric quantity of the power module is lower than a set threshold value, the Zigbee wireless communication module is used for bi-directionally wirelessly communicating with sensor nodes and auxiliary positioning routes inside the grain bin, meanwhile measuring RSSI values of sensor nodes corresponding to specific IDs, the high-power wireless transceiver module is used for bi-directionally wirelessly communicating with the grain condition measurement and control host, receiving control commands from the grain condition measurement and control host and uploading temperature and humidity data and sensor node positioning information to the grain condition measurement and control host, and measuring humidity sensor nodes are used for measuring relative humidity values inside and outside the grain bin;
the auxiliary positioning route comprises a singlechip, a solar charging module, a power module, a residual electric quantity detection module and a Zigbee wireless communication module, wherein the singlechip is respectively connected with the solar charging module, the power module, the residual electric quantity detection module and the Zigbee wireless communication module through circuits, the solar charging module is used for charging the power module of the auxiliary positioning route, the power module is used for storing electric energy generated by the solar charging module and providing electric energy for the whole auxiliary positioning route, the residual electric quantity detection module is used for detecting the residual electric quantity of the power module in the auxiliary positioning route and sending an alarm signal to the singlechip when the residual electric quantity of the power module is lower than a set threshold value, and the Zigbee wireless communication module is used for carrying out bidirectional wireless communication on the auxiliary grain condition measurement and control extension and the sensor node and simultaneously measuring the RSSI value of the sensor node corresponding to a specific ID;
the sensor node comprises a singlechip, a Zigbee wireless communication module, a power supply module, a residual electric quantity detection module, a DS18B20 sensor and an indicator light module, wherein the singlechip is respectively connected with the Zigbee wireless communication module, the power supply module, the residual electric quantity detection module, the DS18B20 sensor and the indicator light module through circuits, the power supply module is used for providing electric energy for the whole sensor node, the residual electric quantity detection module is used for detecting the residual electric quantity of the power supply module in the sensor node, the Zigbee wireless communication module is used for forming a wireless sensor network to carry out bidirectional data transmission, namely, two sensor nodes are determined as a beacon node 1 and a beacon node 2 according to a grain condition measurement and control extension, an auxiliary positioning route and the sensor node with a known position, the beacon node respectively carries out bidirectional wireless communication with sensor nodes of surrounding neighbors to find 1-2 unknown sensor node IDs with largest RSSI values as nearest neighbor nodes of the beacon node, if the beacon node has only one unknown nearest neighbor node, the position of the beacon node can be directly determined, when the beacon node has two nearest neighbor nodes, the RSSI values between the beacon node and the two nearest neighbor nodes of the beacon node 1 are respectively measured through the communication between the beacon node 2 and the two nearest neighbor nodes of the beacon node 1, the positions of the beacon node and the beacon node are determined according to the relative sizes of the RSSI values, the RSSI values between the beacon node 1 and the two nearest neighbor nodes of the beacon node 2 are respectively measured through the communication between the beacon node 1 and the two nearest neighbor nodes, the corresponding specific positions of the two unknown nearest neighbor node IDs of the beacon node 2 are determined according to the relative sizes of the RSSI values, and the DS18B20 sensor is used for measuring grain temperature information of different heights of specific positions.
The grain condition measurement and control extension is arranged on one corner of the rectangular granary, the solar charging module is used for charging the power supply module, the possibility of lightning strike caused by mains supply is reduced, meanwhile, the installation is convenient, and the high-capacity lithium battery is used for storing energy. The high-power wireless transceiver module is in wireless two-way communication with the grain condition measurement and control host, and meanwhile, various parameter information of the equipment and data measured by the sensor nodes are transmitted back to the grain condition measurement and control host in the control room. The grain condition measurement and control extension can position and collect data of sensor nodes of the whole granary under the cooperation of the auxiliary positioning route, so that the problem that corresponding position information needs to be written into each sensor node in the prior art when the sensor nodes are installed is solved, and the phenomenon that heavy temperature measuring cables are dragged to move back and forth when the sensor nodes are arranged is avoided.
The auxiliary positioning route is arranged at a position which is a certain distance away from the grain condition measurement and control extension machine and is used for carrying out auxiliary positioning on the sensor nodes and receiving the data information of the sensor nodes.
And each sensor node is provided with a unique ID number, after grains are put in storage, the plane of the top layer of the grains is leveled, then the sensor nodes are arranged in the rectangular grain bin at the same interval (generally 3-5 m), wherein the temperature measuring cable part of the sensor nodes is vertically inserted into the grain pile, and the top of the sensor nodes is left outside the grain pile. After the sensor nodes are arranged, the system initialization can automatically position the specific position inside the warehouse where the sensor nodes are located, and the sensor ID and the position serial number inside the warehouse are correspondingly stored in a database; when data acquisition is needed, the sensor node sends the temperature data and the ID of the sensor node to a host of the control room, and the host restores the temperature data of the sensor node to a specific position in the three-dimensional graph by contrasting the position information in the database.
The specific operation process of the invention is as follows: grain condition measurement and control extensions and auxiliary positioning routes are respectively installed on two corners of a rectangular granary, sensor nodes No. 1-25 are arranged in the granary according to a rectangular array distribution mode, and the specific positioning process of each sensor node is as follows:
(1) After the sensor nodes are arranged, networking is automatically carried out according to a networking protocol, cluster head nodes are selected, when the sensor nodes are required to be positioned, a command of searching nearest neighbor nodes is broadcasted to the sensor nodes in the whole granary through a grain condition measurement and control extension, the sensor nodes receive the command of searching nearest neighbor nodes, the transmitting power of a Zigbee wireless communication module is adjusted to be the lowest, the radius of communication is reduced, 50 specific data are sequentially transmitted to the periphery under the coordination command of the cluster head nodes, wherein a data packet comprises IDs of sensor nodes at a transmitting end, the surrounding sensor nodes which receive signals, grain condition measurement and control extension and auxiliary positioning routes record RSSI values for 50 times, then average values are obtained and stored in a neighbor node list, and finally a plurality of nodes with strongest RSSI values and similar values are found in the neighbor node list to be used as own nearest neighbor nodes, and the number of the nearest neighbor nodes of one sensor node is 1-4;
(2) Each sensor node obtains the ID of the nearest neighbor node of the sensor node, and then one nearest neighbor node obtained by the grain condition measurement and control extension is the sensor node in the No. 1 position, and similarly, the sensor node in the No. 5 position is determined by the auxiliary positioning route, and the No. 1 position and the No. 5 position and the ID of the corresponding sensor node are written into a database;
(3) Selecting sensor nodes at the positions 1 and 5 as beacon nodes, wherein the beacon nodes are respectively provided with 2 nearest neighbor nodes, the nearest neighbor nodes 1 are respectively provided with 2 and 6 RSSI values between the nearest neighbor nodes and the beacon nodes 5, the RSSI values between the nearest neighbor nodes 1 and the beacon nodes 6 are respectively measured by the nodes 1 and 6, the measuring process is also to obtain an average value of 50 times, the sensor node with the larger RSSI value is the sensor node at the position 2, the sensor node with the smaller RSSI value is the sensor node at the position 6, the sensor nodes respectively provided with the positions 4 and 10 are respectively determined by the same, and then the sensor node IDs of the determined positions and the corresponding position serial numbers are respectively stored in a system database;
(4) Repeating the step (3) to select the sensor nodes at the positions No. 2 and No. 4 as beacon nodes, determining the sensor nodes at the positions No. 3 and No. 9, wherein the sensor node at the position No. 3 is the nearest neighbor node at the positions No. 2 and No. 4, the rest nearest neighbor node at the position No. 3 is the sensor node at the position No. 8, and storing the sensor node IDs at the determined positions and the corresponding position serial numbers thereof into a system database respectively;
(5) Through the steps, the positions of two rows of sensor nodes closest to the grain condition measurement and control extension and the auxiliary positioning route can be determined, then the No. 6 and No. 10 position sensor nodes are selected as beacon nodes, the sensor nodes at the No. 11 and No. 15 positions are determined in the step (3), and the sensor node IDs at the determined positions and the corresponding position serial numbers are stored in a system database respectively;
(6) Repeating the steps (3), (4) and (5) until the position information of all the sensor nodes is determined, and ending the positioning process of the whole sensor network.
In the invention, all the sensor nodes are powered by the lithium battery, and the energy is limited in spite of the low-power design, and the sensor nodes are selected as the beacon nodes in turn in the positioning process, so that the situation that the power consumption is overlarge due to the fact that the same sensor node is selected as the beacon node for many times is avoided, the node dies due to energy exhaustion too early, and the working time of the whole system is prolonged.
When the battery power of a certain sensor node is lower than a threshold value, a charging request command is sent to a grain measurement and control host in a control room through a grain measurement and control extension, or when the certain sensor node is damaged, a computer monitoring picture of the control room reports the position information of the sensor node to be replaced to a worker, when the worker needs to replace the sensor node, the replaced sensor node is selected to input a replacement command, indicator lamps on the sensor nodes in the surrounding area of the replaced node are all flashed, and if the replaced sensor can normally receive the command, the indicator lamps can be lightened, so that the replacement is convenient to work and find. When the standby node is arranged at the replaced node position, surrounding nearest neighbor nodes measure RSSI values through interactive communication with the standby node, when the surrounding nearest neighbor nodes measure the RSSI values to be similar, the replacement of the sensor nodes is considered to be successful, the ID information of the sensor nodes at the replaced position of the database can be automatically updated, and the indicator lights of surrounding flickering sensor nodes are automatically turned off.
While the basic principles of the invention have been shown and described, there are various changes and modifications to the invention, which fall within the scope of the invention as hereinafter claimed, without departing from the spirit and scope of the invention.

Claims (1)

1. The operation method of the wireless grain condition measurement and control sensor node positioning system is characterized in that the wireless grain condition measurement and control sensor node positioning system comprises a grain condition measurement and control host, a grain condition measurement and control extension, an auxiliary positioning route and sensor nodes, wherein the grain condition measurement and control host is arranged in a control room, the grain condition measurement and control extension and the auxiliary positioning route are respectively arranged at different positions in each granary, the sensor nodes are inserted into grains in each granary in a rectangular array distribution mode, the grain condition measurement and control host is in bidirectional wireless communication with the grain condition measurement and control extension, and the grain condition measurement and control extension is respectively in bidirectional wireless communication with the auxiliary positioning route and the sensor nodes;
the grain condition measurement and control extension machine comprises a single chip microcomputer, a solar charging module, a power module, a residual electric quantity detection module, a Zigbee wireless communication module, a high-power wireless transceiver module and a humidity sensor, wherein the single chip microcomputer is connected with the solar charging module, the power module, the residual electric quantity detection module, the Zigbee wireless communication module, the high-power wireless transceiver module and the humidity sensor through circuits respectively, the solar charging module is used for charging the power module of the grain condition measurement and control extension machine, the power module is used for storing electric energy generated by the solar charging module and providing electric energy for the whole grain condition measurement and control extension machine, the residual electric quantity detection module is used for detecting the residual electric quantity of the power module in the grain condition measurement and control extension machine, sending an alarm signal to the single chip microcomputer when the residual electric quantity of the power module is lower than a set threshold value, the Zigbee wireless communication module is used for bidirectional wireless communication with sensor nodes and auxiliary positioning routes inside the grain bin, RSSI values corresponding to the sensor nodes with specific IDs are measured, and the high-power wireless transceiver module is used
The humidity sensor is used for measuring the relative humidity value inside and outside the granary;
the auxiliary positioning route comprises a singlechip, a solar charging module, a power module, a residual electric quantity detection module and a Zigbee wireless communication module, wherein the singlechip is respectively connected with the solar charging module, the power module, the residual electric quantity detection module and the Zigbee wireless communication module through circuits, the solar charging module is used for charging the power module of the auxiliary positioning route, the power module is used for storing electric energy generated by the solar charging module and providing electric energy for the whole auxiliary positioning route, the residual electric quantity detection module is used for detecting the residual electric quantity of the power module in the auxiliary positioning route and sending an alarm signal to the singlechip when the residual electric quantity of the power module is lower than a set threshold value, and the Zigbee wireless communication module is used for carrying out bidirectional wireless communication on the auxiliary grain condition measurement and control extension and the sensor node and simultaneously measuring the RSSI value of the sensor node corresponding to a specific ID;
the sensor node comprises a singlechip, a Zigbee wireless communication module, a power supply module, a residual electric quantity detection module, a DS18B20 sensor and an indicator light module, wherein the singlechip is respectively connected with the Zigbee wireless communication module, the power supply module, the residual electric quantity detection module, the DS18B20 sensor and the indicator light module through circuits, the power supply module is used for providing electric energy for the whole sensor node, the residual electric quantity detection module is used for detecting the residual electric quantity of the power supply module in the sensor node, the Zigbee wireless communication module is used for forming a wireless sensor network to carry out bidirectional data transmission, two sensor nodes are determined as a beacon node 1 and a beacon node 2 according to a grain condition measurement and control extension, an auxiliary positioning route and the sensor node with a known position, the beacon node respectively carries out bidirectional wireless communication with the sensor nodes of the surrounding neighbors to find 1-2 unknown sensor node IDs with the largest RSSI values as the nearest neighbor nodes of the beacon node, if the beacon node has only one unknown nearest neighbor node, the position of the beacon node can be directly determined, when the beacon node has two nearest neighbor nodes, the RSSI values between the beacon node and the two nearest neighbor nodes of the beacon node 1 are respectively measured through the communication between the beacon node 2 and the two nearest neighbor nodes of the beacon node 1, the positions of the beacon node and the two nearest neighbor nodes are determined according to the relative sizes of the RSSI values, the RSSI values between the beacon node 1 and the two nearest neighbor nodes of the beacon node 2 are respectively measured through the communication between the beacon node 1 and the two nearest neighbor nodes according to the relative sizes of the RSSI values, and the DS18B20 sensor is used for measuring the grain temperature information of different heights of specific positions
Grain condition measurement and control extensions and auxiliary positioning routes are respectively installed on two corners of a rectangular granary, sensor nodes No. 1-25 are arranged in the granary according to a rectangular array distribution mode, and the specific positioning process of each sensor node is as follows:
(1) After the sensor nodes are arranged, networking is automatically carried out according to a networking protocol, cluster head nodes are selected, when the sensor nodes are required to be positioned, a command of searching nearest neighbor nodes is broadcasted to the sensor nodes in the whole granary through a grain condition measurement and control extension, the sensor nodes adjust the transmitting power of a Zigbee wireless communication module to be the lowest after receiving the command of searching nearest neighbor nodes, the radius of communication is reduced, 50 specific data are sequentially transmitted to the periphery under the coordination command of the cluster head nodes, wherein a data packet comprises the ID of a sensor node at a transmitting end, the surrounding sensor nodes receiving signals, the grain condition measurement and control extension and the auxiliary positioning route record the RSSI value for 50 times, the average value is calculated and stored in a neighbor node list, and finally, a plurality of nodes with the strongest RSSI value and similar values are found in a plurality of neighbor node lists and are regarded as the nearest neighbor nodes of the sensor nodes, and one sensor node
The number of nearest neighbor nodes of the point is 1-4;
(2) Each sensor node obtains the ID of the nearest neighbor node of the sensor node, and then one nearest neighbor node obtained by the grain condition measurement and control extension is the sensor node in the No. 1 position, and similarly, the sensor node in the No. 5 position is determined by the auxiliary positioning route, and the No. 1 position and the No. 5 position and the ID of the corresponding sensor node are written into a database;
(3) Selecting sensor nodes at the positions 1 and 5 as beacon nodes, wherein the beacon nodes are respectively provided with 2 nearest neighbor nodes, the nearest neighbor nodes 1 are respectively provided with 2 and 6 RSSI values between the nearest neighbor nodes and the beacon nodes 5, the RSSI values between the nearest neighbor nodes 1 and the beacon nodes 6 are respectively measured by the nodes 1 and 6, the measuring process is also to obtain an average value of 50 times, the sensor node with the larger RSSI value is the sensor node at the position 2, the sensor node with the smaller RSSI value is the sensor node at the position 6, the sensor nodes respectively provided with the positions 4 and 10 are respectively determined by the same, and then the sensor node IDs of the determined positions and the corresponding position serial numbers are respectively stored in a system database;
(4) Repeating the step (3) to select the sensor nodes at the positions No. 2 and No. 4 as beacon nodes, determining the sensor nodes at the positions No. 3 and No. 9, wherein the sensor node at the position No. 3 is the nearest neighbor node at the positions No. 2 and No. 4, the rest nearest neighbor node at the position No. 3 is the sensor node at the position No. 8, and storing the sensor node IDs at the determined positions and the corresponding position serial numbers thereof into a system database respectively;
(5) Through the steps, the positions of two rows of sensor nodes closest to the grain condition measurement and control extension and the auxiliary positioning route can be determined, then the No. 6 and No. 10 position sensor nodes are selected as beacon nodes, the sensor nodes at the No. 11 and No. 15 positions are determined in the step (3), and the sensor node IDs at the determined positions and the corresponding position serial numbers are stored in a system database respectively;
(6) Repeating the steps (3), (4) and (5) until the position information of all the sensor nodes is determined, and ending the positioning process of the whole sensor network;
when the battery capacity of a certain sensor node is lower than a threshold value, a charging request command is sent to a grain condition measurement and control host in a control room through a grain condition measurement and control extension, or when a certain sensor node is damaged, a computer monitoring picture of the control room reports position information of the sensor node to be replaced to a worker, when the worker needs to replace the sensor node, the replaced sensor node is selected to input a replacement command, indicator lamps on the sensor nodes in the surrounding area of the replaced node are all flashed, the replaced sensor can also light up own indicator lamps if the replaced sensor can normally receive the command, the replacement is convenient to search for, when the standby node is arranged at the position of the replaced node, surrounding nearest neighbor nodes measure RSSI values through interactive communication with the standby node, when the surrounding nearest neighbor nodes measure RSSI values are similar, the replacement of the sensor node is considered successful, the ID information of the sensor node at the replaced position can be automatically updated, and the indicator lamps of the surrounding flashed sensor node can be automatically extinguished.
CN201710219503.1A 2017-04-06 2017-04-06 Wireless grain condition measurement and control sensor node positioning system Active CN107071729B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201710219503.1A CN107071729B (en) 2017-04-06 2017-04-06 Wireless grain condition measurement and control sensor node positioning system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201710219503.1A CN107071729B (en) 2017-04-06 2017-04-06 Wireless grain condition measurement and control sensor node positioning system

Publications (2)

Publication Number Publication Date
CN107071729A CN107071729A (en) 2017-08-18
CN107071729B true CN107071729B (en) 2023-07-11

Family

ID=59602976

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201710219503.1A Active CN107071729B (en) 2017-04-06 2017-04-06 Wireless grain condition measurement and control sensor node positioning system

Country Status (1)

Country Link
CN (1) CN107071729B (en)

Families Citing this family (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107920335B (en) * 2017-10-30 2020-12-11 湘潭大学 Networking and communication method of intelligent street lamp
CN113534854A (en) * 2021-09-15 2021-10-22 江苏中信博新能源科技股份有限公司 Photovoltaic tracking support matrix position generation method and system

Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101984726A (en) * 2010-10-29 2011-03-09 宁波思博达电子科技有限公司 Grain condition measurement and control system based on wireless sensor network
WO2015085793A1 (en) * 2013-12-13 2015-06-18 中国科学院沈阳自动化研究所 Low power consumption networking method of 802.15.4e wireless device that takes power based on 4-20ma loop

Family Cites Families (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101350635A (en) * 2008-09-05 2009-01-21 清华大学 Method for self-locating sensor network node within sparseness measuring set base on shortest path
CN202818382U (en) * 2012-08-31 2013-03-20 魏亚东 Grain condition measurement and control system based on wireless sensor network and cloud computation
CN103558559A (en) * 2013-11-12 2014-02-05 上海电机学院 System and method for monitoring state of charge of wireless sensor
CN104883737A (en) * 2015-06-04 2015-09-02 杭州电子科技大学 Hybrid location method for wireless sensor network

Patent Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101984726A (en) * 2010-10-29 2011-03-09 宁波思博达电子科技有限公司 Grain condition measurement and control system based on wireless sensor network
WO2015085793A1 (en) * 2013-12-13 2015-06-18 中国科学院沈阳自动化研究所 Low power consumption networking method of 802.15.4e wireless device that takes power based on 4-20ma loop

Also Published As

Publication number Publication date
CN107071729A (en) 2017-08-18

Similar Documents

Publication Publication Date Title
CN110821566B (en) Fault monitoring system and method for mine shaft
KR101036582B1 (en) Photovoltaic streetlight management system using mobile communication terminal having short-range wireless communication function
CN108909514A (en) More AGV power management systems and method based on automatic battery replacement
CN101937216B (en) Mine underground intelligent wireless monitoring and positioning system
CN107071729B (en) Wireless grain condition measurement and control sensor node positioning system
CN202818382U (en) Grain condition measurement and control system based on wireless sensor network and cloud computation
CN104168148A (en) Multi-interface data collecting device and method
CN103312772A (en) Data acquisition system applied to internet of things and corresponding device
CN207010361U (en) A kind of power automation dispatching control device
CN1987049A (en) Radio network system for underwell temporary construction spot safety monitoring of coal mine
CN111221287A (en) Dam safety monitoring system and method based on Internet of things
CN210534355U (en) Ground meteorological environment monitoring and early warning device
CN203257469U (en) Mine monitoring system based on hybrid sensing network
CN103514729A (en) Wireless sensor network based intelligent transformer substation environment monitoring system
CN109119175A (en) A kind of nuclear power plant containment shell DEFORMATION MONITORING SYSTEM
CN209168754U (en) A kind of nuclear power plant containment shell DEFORMATION MONITORING SYSTEM
CN202083950U (en) Automatic safety monitoring and digital management system for reservoir earth dam
CN206932411U (en) A kind of grain depot temperature measurement node alignment system
CN111025051B (en) Intelligent operation and inspection system and method based on wireless sensor network equipment
CN108990003B (en) Network floor system
CN109059793A (en) Wireless laser matrix for earth surface area Deformation Observation monitors system and method
CN101798019B (en) Material monitoring device based on wireless sensing network
CN212931679U (en) Concrete temperature measurement system based on loRa
CN210534609U (en) Ground meteorological environment monitoring and control device
CN107807208A (en) A kind of gas alarm control system

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