Wireless monitor system and monitoring method based on homeostasis of load
Technical field
The invention belongs to monitoring and the communications fields of meeting an urgent need safely, more particularly to a kind of based on the wireless of homeostasis of load
Monitoring system and monitoring method.
Background technique
With the fast development of wireless sensor network (WSN), which has penetrated into all trades and professions, especially one
Monitoring in a little industrial parks to different situations, once emergency case occurs, an efficient monitoring system just seems especially heavy
It wants.At present for the research of WSN substantially to communicate quickly, for the purpose of network life is long and at low cost.The mode master of formation
Sub-clustering is then carried out according to algorithms of different, routes association between last cluster head to select monitoring node suitable cluster head first
View selection optimal path forwarding information, finally realizes optimal purpose.So for the research of WSN can from the selection of cluster head,
Communication lines between the formation of cluster, cluster head are carried out by this several respect.The selection of early stage cluster head has scholar to propose LEACH agreement, every wheel
Communication all selects each monitoring node, one 0 to 1 random number is generated for each node, with specific threshold value
It is compared, selects which node as cluster head according to result, but this method does not account for the consumption of energy, DEEC algorithm
The consumption that energy is considered on the basis of LEACH plays certain effect for the extension of network life, cluster-dividing method
Research is more popular at present, but is all based on overall time consideration, will not be according to practical feelings in communication process later
Condition carries out balancing dynamic load again, and network performance, the selection of a more good load balance are influenced after number of communications increase
Primary study is needed, the research of the Routing Protocol between cluster head is mainly according to distance, hop count etc. between cluster head dump energy, cluster head
Factor forms objective function, obtains optimal solution using some algorithms, these algorithms mainly have particle swarm algorithm (PSO), heredity to calculate
Method (GA), ant group algorithm etc..
Using gateway node as cluster head, during being monitored to industrial park, different gateway sections after communicating every time
The dump energy and surroundings nodes of point all change to its load, if not re-starting the selection of cluster, certainly will influence
The communication efficiency and network life of whole network, in order to solve the energy and load imbalance of cluster head and cluster after fixed sub-clustering
Problem, monitoring system and the monitoring method for inventing a set of homeostasis of load are necessary.
Summary of the invention
In view of the foregoing deficiencies of prior art, the purpose of the present invention is to provide a kind of based on homeostasis of load
Wireless monitor system and monitoring method, for solve in the prior art fix sub-clustering after the energy and load imbalance of cluster head and cluster
The problem of.
In order to achieve the above objects and other related objects, the present invention provides a kind of wireless monitor based on homeostasis of load
System, including monitoring center, optical fiber, transmission base station, multiple gateway nodes and multiple sense nodes;
The monitoring center, which is used to receive, to be transmitted the data information come from transmission base station and handles data information;
The transmission base station includes optical fiber switch, is transmitted for receiving the information of gateway node transmission, and by optical fiber
To monitoring center;
The gateway node is deployed in monitoring region, and communication radius R and primary power E are all larger than sense node, can
To communicate with multiple sense nodes, the information that sense node is sent is received, information is merged and is forwarded to transmission base station;
The sense node is deployed in monitoring region, and sense node is communicated with gateway node, between sense node
Without communication, the information monitored is sent corresponding gateway node, sense node root after each communication by sense node
Corresponding gateway node is re-assigned to according to dump energy and the load balancing dynamic of gateway node.
As a kind of preferred embodiment of the wireless monitor system of the invention based on homeostasis of load, the monitoring center
Including multiple stage computers or server.
As a kind of preferred embodiment of the wireless monitor system of the invention based on homeostasis of load, the gateway node
It include: microprocessor, memory, wireless transceiver, sensor and power supply, wherein sensor in the gateway node,
Wireless transceiver is connected with microprocessor and memory;The wireless transceiver is for sending and receiving radio magnetic wave;It is described
Microprocessor and memory handle the operation of control wireless transceiver and sensor for storing received data;The electricity
Source is for providing electric energy.
As a kind of preferred embodiment of the wireless monitor system of the invention based on homeostasis of load, the sense node
It include: microprocessor, memory, wireless transceiver, sensor and power supply, wherein sensor in the sense node,
Wireless transceiver is connected with microprocessor and memory;The wireless transceiver is for sending and receiving radio magnetic wave;It is described
Temperature, humidity, the gas concentration information of sensor perception ambient enviroment in sense node;The microprocessor and memory are used
In the received data of storage, and handle the operation of control wireless transceiver and sensor;The power supply is for providing electric energy.
The present invention also provides a kind of wireless monitoring methods based on homeostasis of load, comprising steps of
1) M gateway node, N number of sense node and several transmission base stations are disposed according to monitoring region actual conditions;
2) gateway node periodically sends the self information including id information, and sense node receives corresponding information,
The gateway section being calculated in self communication radius is carried out according to the id information of the communication radius r of itself and gateway node
Point;
3) sense node send include load information self information, gateway node receives corresponding information, to information into
Row fusion calculation, sense node are assigned to corresponding gateway node according to data processed result for the first time;
4) sense node monitors peripheral information, senses corresponding information, is sent to corresponding gateway node, gateway node
It is forwarded to transmission base station after handling information, transmits base station for information and monitoring center, monitoring center is transmitted to by optical fiber
Information is handled;
5) sense node is dynamically assigning to corresponding gateway node according to the dump energy and load capacity of gateway node;
6) repeat step 4) and 5).
As a kind of preferred embodiment of the wireless monitoring method of the invention based on homeostasis of load, step 3) include with
Lower step:
3-1) sensing node and gateway node primary power are respectively EsAnd Eg, the initial load of sense node is set as W, logical
Believe that radius is r, sense node receives the id information that gateway node is sent, calculate gateway node and sense node away from
Different sense nodes are successively calculated at a distance from gateway node if l < r, sense node belong to the gateway node from for l,
Obtain which gateway node is different sense nodes belong to;
3-2) for being pertaining only to the sense node set of gateway node a, these sense nodes are distributed to gateway node a;
3-3) calculate different sense nodes is to the total load of gateway node aWherein Ps(a) it indicates
Different sense nodes belong to falling for gateway node number for the load contribution probability of gateway node a for s-th of sense node
Number, 0≤Ps(a)≤1, s-th of sense node is pertaining only to P when gateway node as(a)=1, s-th of sense node is not belonging to gateway
P when node as(a)=0;
3-4) successively calculate M1Total load d=(the d of a gateway node1, d2......dM1);
3-5) sense node b compares this M1The total load of a node selects the smallest gateway node m of total load to be added;
3-6) the more total load of new gateway node m is dm=dm+W-Pb(m)*W;
3-7) update other M1The total load of -1 gateway node is dx'=dx-Px(m) * W, wherein (x=1,
2......M1)∪(x≠m);
The corresponding distance of difference gateway node where 3-8) other sense nodes for belonging to multiple gateway nodes compare oneself
D selects the corresponding gateway node of the smallest distance d to be added;
3-9) according to step 3-1)~3-8) method obtain the sense node that other belong to multiple gateway nodes and finally select
The gateway node selected, until all sense nodes are assigned.
As a kind of preferred embodiment of the wireless monitoring method of the invention based on homeostasis of load, step 5) include with
Lower step:
5-1) dump energy after M gateway node first run communication is respectively { Eres1、Eres2、Eres3…EresM, N number of sense
Node is answered, each sense node initial load is all the same, becomes a after communicating for the first times(t) (s=1,2 ... N), difference induction section
Point load changes as every wheel communicates, and calculates separately different gateway node g for the residual energy of the sense node s in communication radius
The ratio of amount and loadWherein (g=1,2 ... M), Ps(g) belong to for s-th of sense node
The probability of gateway node g, 0≤Ps(g)≤1;
The corresponding f (g) of the more different gateway nodes of sense node a for 5-2) belonging to M1 gateway node, selects maximum f
(g) corresponding gateway node h is added;
5-3) update
5-4) update remaining M1-1 gateway node(x=1,
2......M1)∪(x≠h);
5-5) other sense nodes for belonging to multiple gateway nodes compare the f (g) of different gateway nodes where oneself, selection
The corresponding gateway node of maximum f (g) is added;
5-6) according to step 5-1)~5-5) method, obtain the sense node final choice for belonging to multiple gateway nodes
Gateway node, until all sense nodes are assigned.
As described above, the present invention provides a kind of wireless monitor system and monitoring method based on homeostasis of load, it is described
Monitoring system includes monitoring center, optical fiber, transmission base station, multiple gateway nodes and multiple sense nodes;The monitoring center
For receiving the data information transmitted from transmission base station and handling data information;The transmission base station includes optical fiber
Interchanger for receiving the information of gateway node transmission, and is transferred to monitoring center by optical fiber;The gateway node is deployed in
It monitors in region, communication radius R and primary power E are all larger than sense node, can communicate with multiple sense nodes, receive sense
The information for answering node to send merges information and is forwarded to transmission base station;The sense node is deployed in monitoring region,
Sense node is communicated with gateway node, and without communication between sense node, sense node sends the information monitored
To corresponding gateway node, sense node after each communication according to dump energy and the load balancing dynamic of gateway node again
It is assigned to corresponding gateway node.The invention has the following advantages:
1) present invention distributes monitoring node to accordingly using monitoring node to the load contribution of different gateway nodes for the first time
Gateway node realizes network load balancing;
2) present invention in each communication according to the dump energy of gateway node and monitoring node to its load balancing angle
Degree carries out redistributing monitoring node, can extend network life to greatest extent;
3) present invention is compared with fixed cluster-dividing method, due to can dynamically change the quantity of monitoring node, so that network is logical
Letter efficiency is greatly improved.
Detailed description of the invention
Fig. 1 is shown as a kind of structural schematic diagram of wireless monitor system based on homeostasis of load of the invention.
Fig. 2 is shown as a kind of flow diagram of wireless monitoring method based on homeostasis of load of the invention.
Fig. 3 is shown as a kind of distribution monitoring node for the first time of wireless monitoring method based on homeostasis of load of the invention
Techniqueflow schematic diagram.
Fig. 4 is shown as a kind of dynamic allocation monitoring node of wireless monitoring method based on homeostasis of load of the invention
Techniqueflow schematic diagram.
Component label instructions
1 monitoring center
2 optical fiber
3 transmission base stations
4 gateway nodes
5 sense nodes
Specific embodiment
Illustrate embodiments of the present invention below by way of specific specific example, those skilled in the art can be by this specification
Other advantages and efficacy of the present invention can be easily understood for disclosed content.The present invention can also pass through in addition different specific realities
The mode of applying is embodied or practiced, the various details in this specification can also based on different viewpoints and application, without departing from
Various modifications or alterations are carried out under spirit of the invention.
Please refer to FIG. 1 to FIG. 4.It should be noted that diagram provided in the present embodiment only illustrates this in a schematic way
The basic conception of invention, only shown in schema then with related component in the present invention rather than package count when according to actual implementation
Mesh, shape and size are drawn, when actual implementation kenel, quantity and the ratio of each component can arbitrarily change for one kind, and its
Assembly layout kenel may also be increasingly complex.
It is provided in a kind of wireless monitor system based on homeostasis of load, including monitoring as shown in Figure 1, the present embodiment is bright
The heart 1, optical fiber 2, transmission base station 3, multiple gateway nodes 4 and multiple sense nodes 5;The monitoring center 1 is for receiving from biography
The data information come is transmitted in defeated base station 3 and data information is handled;The transmission base station 3 includes optical fiber switch, is used
Monitoring center 1 is transferred in the information for receiving the transmission of gateway node 4, and by optical fiber 2;The gateway node 4 is deployed in monitoring
In region, communication radius R and primary power E are all larger than sense node 5, can communicate with multiple sense nodes 5, receive induction
The information that node 5 is sent merges information and is forwarded to transmission base station 3;The sense node 5 is deployed in monitoring region
In, sense node 5 is communicated with gateway node 4, without communication between sense node 5, the letter that sense node 5 will monitor
Breath is sent to corresponding gateway node 4, and sense node 5 is equal according to the dump energy of gateway node 4 and load after each communication
Weighing apparatus dynamic is re-assigned to corresponding gateway node 4.
As an example, the monitoring center 1 includes multiple stage computers or server.
As an example, the gateway node 4 includes: microprocessor, memory, wireless transceiver, sensor, Yi Ji electricity
Source, wherein sensor, wireless transceiver in the gateway node 4 are connected with microprocessor and memory;The wireless receiving and dispatching
Device is for sending and receiving radio magnetic wave;The microprocessor and memory handle control for storing received data
The operation of wireless transceiver and sensor;The power supply is for providing electric energy.
As an example, the sense node 5 includes: microprocessor, memory, wireless transceiver, sensor, Yi Ji electricity
Source, wherein sensor, wireless transceiver in the sense node 5 are connected with microprocessor and memory;The wireless receiving and dispatching
Device is for sending and receiving radio magnetic wave;Temperature, the humidity, gas of sensor perception ambient enviroment in the sense node 5
Bulk concentration information;The microprocessor and memory handle control wireless transceiver and sensing for storing received data
The operation of device;The power supply is for providing electric energy.
Specifically, as shown in Figure 1, the sense node 5 and gateway node 4 are according to monitoring region actual conditions carry out portion
Administration, the sense node in two round overlappings belong to multiple gateway nodes, and only the sense node in a circle is pertaining only to
One gateway node, after distributing the affiliated gateway node of monitoring node for the first time, the information monitored is sent net by sense node
Artis 4, gateway node carry out information to be processed and forwarded to transmission base station 3, and information is transmitted by optical fiber 2 in transmission base station 3
To monitoring center 1, the monitoring node 5 that multiple gateway nodes are belonged to after communication is dynamically assigning to accordingly according to energy and load balance
Gateway node.
As shown in Figure 2 to 4, the present embodiment also provides a kind of wireless monitoring method based on homeostasis of load, including
Step:
As shown in Fig. 2, carrying out step 1) first, M gateway node, N number of induction are disposed according to monitoring region actual conditions
Node and several transmission base stations.
As shown in Fig. 2, then carrying out step 2), gateway node periodically sends the self information including id information, feels
It answers node to receive corresponding information, be calculated certainly according to the id information of the communication radius r of itself and gateway node
Gateway node within the scope of body communication radius.
As shown in Fig. 2, then carrying out step 3), sense node sends the self information including load information, gateway node
Corresponding information is received, fusion calculation is carried out to information, sense node is assigned to accordingly for the first time according to data processed result
Gateway node.
Specifically, as shown in figure 3, step 3) the following steps are included:
Step 3-1), sensing node and gateway node primary power are respectively EsAnd Eg, the initial load of sense node is set as
W, communication radius are r, and sense node receives the id information that gateway node is sent, calculates gateway node and sense node
Distance be l, if l < r, sense node belong to the gateway node, successively calculate different sense nodes and gateway node
Distance, obtains which gateway node is different sense nodes belong to;
Step 3-2), for being pertaining only to the sense node set of gateway node a, these sense nodes are distributed to gateway node
a;
Step 3-3), calculate different sense nodes is to the total load of gateway node aWherein Ps
(a) indicate that different sense nodes for the load contribution probability of gateway node a, belong to gateway node for s-th of sense node
Several inverses, 0≤Ps(a)≤1, s-th of sense node is pertaining only to P when gateway node as(a)=1, s-th of sense node does not belong to
P when gateway node as(a)=0;
Step 3-4), successively calculate M1Total load d=(the d of a gateway node1, d2......dM1);
Step 3-5), sense node b compares this M1The total load of a node selects the smallest gateway node m of total load to add
Enter;
Step 3-6), the more total load of new gateway node m is dm=dm+W-Pb(m)*W;
Step 3-7), update other M1The total load of -1 gateway node is dx'=dx-Px(m) * W, wherein (x=1,
2......M1)∪(x≠m);
Step 3-8), different gateway nodes where other sense nodes for belonging to multiple gateway nodes compare oneself are corresponding
Distance d selects the corresponding gateway node of the smallest distance d to be added;
Step 3-9), according to step 3-1)~step 3-8) method obtain other induction sections for belonging to multiple gateway nodes
The gateway node of point final choice, until all sense nodes are assigned.
As shown in Fig. 2, then carrying out step 4), sense node monitors peripheral information, senses corresponding information, is sent to
Corresponding gateway node, gateway node are forwarded to transmission base station after handling information, transmit base station for information and pass through optical fiber
It is transmitted to monitoring center, monitoring center handles information.
As shown in Fig. 2, then carrying out step 5), sense node is according to the dump energy and load capacity of gateway node dynamic
It is assigned to corresponding gateway node.
Specifically, as shown in figure 4, step 5) the following steps are included:
Step 5-1), the dump energy after M gateway node first run communication is respectively { Eres1、Eres2、Eres3…EresM, N
A sense node, each sense node initial load is all the same, becomes a after communicating for the first times(t) (s=1,2 ... N), the not same feeling
It answers node load to change as every wheel communicates, calculates separately different gateway node g for the surplus of the sense node s in communication radius
The ratio of complementary energy and loadWherein (g=1,2 ... M), PsIt (g) is s-th of sense node category
In the probability of gateway node g, 0≤Ps(g)≤1;
Step 5-2), belong to the corresponding f (g) of the more different gateway nodes of sense node a of M1 gateway node, selection is most
The corresponding gateway node h of big f (g) is added;
Step 5-3), it updates
Step 5-4), update remaining M1-1 gateway node(x=1,
2......M1)∪(x≠h);
Step 5-5), other sense nodes for belonging to multiple gateway nodes compare the f of different gateway nodes where oneself
(g), the corresponding gateway node of maximum f (g) is selected to be added;
Step 5-6), according to step 5-1)~step 5-5) method, obtain the sense node for belonging to multiple gateway nodes
The gateway node of final choice, until all sense nodes are assigned.
As shown in Fig. 2, finally carrying out step 6), repeat step 4) and step 5).
As described above, the present invention provides a kind of wireless monitor system and monitoring method based on homeostasis of load, it is described
Monitoring system includes monitoring center, optical fiber, transmission base station, multiple gateway nodes and multiple sense nodes;The monitoring center
For receiving the data information transmitted from transmission base station and handling data information;The transmission base station includes optical fiber
Interchanger for receiving the information of gateway node transmission, and is transferred to monitoring center by optical fiber;The gateway node is deployed in
It monitors in region, communication radius R and primary power E are all larger than sense node, can communicate with multiple sense nodes, receive sense
The information for answering node to send merges information and is forwarded to transmission base station;The sense node is deployed in monitoring region,
Sense node is communicated with gateway node, and without communication between sense node, sense node sends the information monitored
To corresponding gateway node, sense node after each communication according to dump energy and the load balancing dynamic of gateway node again
It is assigned to corresponding gateway node.The invention has the following advantages:
1) present invention distributes monitoring node to accordingly using monitoring node to the load contribution of different gateway nodes for the first time
Gateway node realizes network load balancing;
2) present invention in each communication according to the dump energy of gateway node and monitoring node to its load balancing angle
Degree carries out redistributing monitoring node, can extend network life to greatest extent;
3) present invention is compared with fixed cluster-dividing method, due to can dynamically change the quantity of monitoring node, so that network is logical
Letter efficiency is greatly improved.
So the present invention effectively overcomes various shortcoming in the prior art and has high industrial utilization value.
The above-described embodiments merely illustrate the principles and effects of the present invention, and is not intended to limit the present invention.It is any ripe
The personage for knowing this technology all without departing from the spirit and scope of the present invention, carries out modifications and changes to above-described embodiment.Cause
This, institute is complete without departing from the spirit and technical ideas disclosed in the present invention by those of ordinary skill in the art such as
At all equivalent modifications or change, should be covered by the claims of the present invention.