Specific embodiment
The invention will be further described with the following Examples.
Fig. 1 shows a kind of medical storage condition regulator control system of real-time intelligent of an illustrative embodiment of the invention
Structural schematic block diagram.As shown in Figure 1, present embodiments providing a kind of medical storage condition regulator control system of real-time intelligent, this is
System includes environment real time monitoring subsystem 1, analysis processing device 2, regulation device 3.
The environment real time monitoring subsystem 1 includes aggregation node and multiple sensors being deployed in medical storage area
Node, the transmission range of oneself is adjusted to maximum by sensor node when initial, if sensor node to aggregation node distance not
More than the currently transmitted distance of sensor node, the environmental data of acquisition is directly sent to aggregation node by sensor node, no
Then, the environmental data of acquisition is sent to next-hop node by sensor node, by environmental data in the form of through multi-hop transmission
It is sent to aggregation node;The aggregation node and the analysis processing device 2 communicate to connect, and received environmental data is sent
To the analysis processing device 2.
The analysis processing device 2 is analyzed and processed environmental data, when environmental data exceeds pre-set level threshold value
Corresponding control instruction is generated, and controls the operation of regulation device 3 according to control instruction, to adjust the ring in medical storage area
Border.
In a kind of mode that can be realized, which includes temperature adjustment module, moisture adjustment module, such as Fig. 2
Shown, analysis processing device 2 includes memory 10, processor 20, the first controller 30 and second controller 40, wherein the first control
Device 30 processed, second controller 40 input terminal all connect with processor 20, the output end and temperature of the first controller 30 adjust mould
Block connection, the output end of second controller 40 are connect with moisture adjustment module;The memory 10 stores pre-set level threshold value,
Memory 10 and processor 20 communicate to connect.
Wherein, the sensor node includes temperature sensor, humidity sensor.To which the environmental data includes each
Monitor temperature environment data, the humidity environment data of position.In one embodiment, which includes multiple temperature
Degree adjusts unit, wherein the monitored position of each sensor node is arranged a thermostat unit, and the first controller 30 and
Each thermostat unit communication connection.Likewise, the moisture adjustment module may include multiple humidity adjustment units, wherein each biography
Sensor node one humidity adjustment unit of monitored position setting, and second controller 40 and each humidity adjustment unit communication link
It connects.
The regulative mode of temperature can are as follows: when analysis processing device 2 analyzes environmental data, the temperature of some monitoring position
When environmental data exceeds corresponding temperature threshold, processor 20 will generate the control instruction for adjusting temperature to the first controller 30,
The control instruction may include the identification information of the thermostat unit of control operation, temperature adjusting information etc., thus the first control
Device 30 controls corresponding thermostat unit according to the control instruction and runs, so that neighbouring temperature meets the temperature and adjusts letter
Breath.Similarly, the mode that the regulative mode of settable humidity is adjusted such as above-mentioned temperature.
Preferably, the thermostat unit is air-conditioning equipment, the humidity adjustment unit is drying equipment.
In the mode that another kind can be realized, the first controller 30 and second controller 40 can be integrated into the same control
Device processed, so that the operation of temperature adjustment module and moisture adjustment module is all controlled by the same controller.
In a kind of mode that can be realized, which may also include other modules that can be used for adjusting environment, example
Such as luminance adjustment module, ventilation parameters module.According to the increase of module in regulation device 3, the analysis processing device 2 can
Add third controller, the 4th controller etc..
The above embodiment of the present invention realizes the prison to medical storage condition based on wireless sensor network technology
It surveys, and can automatically control the operation of regulation device 3 according to the environmental data monitored, realize in medical storage area
The intelligent control of environment.
In a kind of mode that can be realized, if neighbor node is other sensings in sensor node communication range
Device node, when network is initial, sensor node obtains information of neighbor nodes by information exchange and constructs neighbor node collection;Sensing
Device node selects a neighbor node as next-hop node from its neighbor node concentration, comprising:
(1) sensor node is concentrated from its neighbor node and selects a hop neighbor section closer apart from aggregation node relative to it
Alternately node is put, alternate node collection is constructed;
(2) sensor node sends solicited message to each alternate node, and each alternate node receives the solicited message
Calculate the transfer capability value of itself afterwards and feed back to sensor node, the solicited message include each alternate node total bandwidth and
Initial spatial cache, sensor node i neighbor node quantity and corresponding node identification;
(3) sensor node selects the maximum alternate node of transfer capability value as next from current alternate node concentration
Hop node;
Wherein, the calculation formula of the transfer capability value are as follows:
In formula, RijFor the transfer capability value of the alternate node j of sensor node i, BiFor total band of the alternate node j
Width, UjFor the initial spatial cache of the alternate node j, niThe alternate node number concentrated for the alternate node of sensor node i
Amount, BqThe total bandwidth of q-th of alternate node, U are concentrated for the alternate node of sensor node iqFor the alternative section of sensor node i
Point concentrates the initial spatial cache of q-th of alternate node;HiFor the neighbor node quantity of sensor node i, HjFor the alternative section
The neighbor node quantity of point j, Hi∩HjBy the quantity of sensor node i and alternate node the j common neighbor node possessed, h1、
h2For preset impact factor, meet h1+h2=1;s1、s2For preset weight coefficient, meet s1+s2=1.
The present embodiment innovatively sets the index of transfer capability value, and sensor node will be relative to its distance convergence section
A closer hop neighbor node alternately node is put, constructs alternate node collection, and send solicited message to each alternate node, by
Alternate node calculates transfer capability value according to own resource situation and with the similarity situation of sensor node, is needing to select
When next-hop node, sensor node selects the maximum alternate node of transfer capability value as under from current alternate node concentration
One hop node.
The present embodiment is conducive to balance the resource utilization of each sensor node, to balance the energy consumption of each sensor node
And load, the generation of network congestion phenomenon is reduced, improves performance of the network in terms of environmental data transmission, is further conducive to prolong
The service life of long wireless sensor network.The present embodiment is forwarded the calculating of ability value by alternate node oneself, relative to by passing
The mode of sensor node unified calculation, improves the efficiency of next-hop node selection, balances computing cost.
In one embodiment, sensor node concentrates choosing from current alternate node again every a period Δ t
The maximum alternate node of transfer capability value is selected as next-hop node;Next-hop node judges certainly every period Δ t/2
Whether body meets relay condition, if not meeting, next-hop node sends feedback information to corresponding upper hop sensor node, receives
The transfer capability value of the next-hop node is updated to the upper hop sensor node of feedback information.
In the present embodiment, sensor node concentrates selection to turn from current alternate node again every a period Δ t
The maximum alternate node of ability value is sent out as next-hop node, realizes the update of next-hop node, is conducive to maximize Horizon
Weigh the resource utilization of each sensor node.
The relay condition are as follows:
In formula, PaFor the current remaining of next-hop node a, Pa0For the primary power of the next-hop node a, KaFor
Environmental data packet quantity in the cache list of the next-hop node a, PTFor the energy of one environmental data packet of preset forwarding
Consumption, PminFor the preset energy lower limit for keeping transfer capability;baFor the remaining bandwidth of the next-hop node a, saUnder described
The remaining cache space of one hop node a, MaThe upper hop sensor node quantity of the next-hop node a, bminFor preset association
Lower band needed for helping a sensor node forwarding environmental data, sminA sensor node forwarding is assisted to be preset
Spatial cache lower limit needed for environmental data,To judge value function, when
When,WhenWhen,
Further, the present embodiment innovatively sets the calculation formula of relay condition, and next-hop node is every one
Period Δ t/2 judges whether itself meets relay condition, if not meeting, next-hop node is to corresponding upper hop sensor section
Point sends feedback information, and the upper hop sensor node for receiving feedback information updates the transfer capability value of the next-hop node, real
The update of the transfer capability value of alternate node is showed.
The present embodiment can effectively ensure that the next-hop node of sensor node can have enough resources to execute ring always
The task of border data forwarding improves the reliability of environmental data transmission.
Wherein, Δ t is preset time threshold.As a preferred embodiment, sensor node is provided with timing
Device, for carrying out the timing of period Δ t or period Δ t/2.
In one embodiment, the upper hop sensor node for receiving feedback information, it is next to update this according to the following formula
The transfer capability value of hop node:
In formula, RdvIt (z) is the next-hop node v of upper hop sensor node d in the z times updated transfer capability value,
RdvIt (z-1) is the next-hop node v in the z-1 times updated transfer capability value, RdqFor upper hop sensor node d's
The initial transfer capability value of q-th of alternate node, ndThe alternate node number concentrated for the alternate node of upper hop sensor node d
Amount, k are preset ability attenuation coefficient, and the value range of k is [0.2,0.3];
When the updated transfer capability value of an alternate node of sensor node is lower than preset transfer capability value lower limit
When, which is concentrated from the alternate node of oneself and is rejected by sensor node.
The present embodiment devises the more new formula of the transfer capability value of next-hop node, and further contemplates alternate node
Update status for forwarding adverse effect, i.e., when an alternate node of sensor node updated transfer capability value is low
When preset transfer capability value lower limit, which is concentrated from the alternate node of oneself and is rejected by sensor node.
The present embodiment can remove those alternate nodes for not having enough resources and can not accessing new environmental data stream, and effective guarantee can
The alternate node of choosing has the task of enough resource performing environment data forwardings, improves the reliability of environmental data transmission, and
The quantity that alternate node concentrates alternate node is reduced, the routing cost in whole network is advantageously reduced.
Through the above description of the embodiments, those skilled in the art can be understood that it should be appreciated that can
To realize the embodiments described herein with hardware, software, firmware, middleware, code or its any appropriate combination.For hardware
It realizes, processor can be realized in one or more the following units: specific integrated circuit, digital signal processor, number letter
Number processing equipment, field programmable gate array, processor, controller, microcontroller, microprocessor, is set programmable logic device
Count other electronic units or combinations thereof for realizing functions described herein.For software implementations, the part of embodiment or complete
Portion's process can instruct relevant hardware to complete by computer program.When realization, above procedure can be stored in meter
It instructs in calculation machine readable medium or as the one or more on computer-readable medium or code is transmitted.It is computer-readable
Medium includes computer storage media and communication media, and wherein communication media includes convenient for passing from a place to another place
Send any medium of computer program.Storage medium can be any usable medium that computer can access.It is computer-readable
Medium can include but is not limited to random access memory, read-only memory mirror image, band Electrically Erasable Programmable Read-Only Memory or its
His disc storage, disk storage media or other magnetic storage facilities or it can be used in carrying or storing that there is instruction or ring
The desired program code of border data structure form simultaneously can be by any other medium of computer access.
Finally it should be noted that the above embodiments are merely illustrative of the technical solutions of the present invention, rather than the present invention is protected
The limitation of range is protected, although explaining in detail referring to preferred embodiment to the present invention, those skilled in the art are answered
Work as understanding, it can be with modification or equivalent replacement of the technical solution of the present invention are made, without departing from the reality of technical solution of the present invention
Matter and range.