Summary of the invention
For this purpose, the embodiment of the present invention provides a kind of remote supervisory and control(ling) equipment that liquid manure integral type is irrigated, to solve the prior art
In due to system is run caused by monitoring environment is complicated and sensing network data redudancy is big confidentiality, data acquisition
Reliability and data transmission safety the problems such as.
To achieve the goals above, the embodiment of the present invention provides the following technical solutions:
A kind of remote supervisory and control(ling) equipment that liquid manure integral type is irrigated, including PLC controller, sensor controller and wireless data sending
Terminal, which is characterized in that the control terminal three-way electromagnetic valve of the PLC controller is connected with water pump, the interaction end of the PLC controller
Mouth is connected with scene collection control computer by OPC serial ports, and the signal end of the PLC controller is whole with wireless data sending by RS485
End is connected, and the inside of the PLC controller is additionally provided with control circuit, and the control terminal and sensor of the control circuit control
Device is connected, and the signal end of the sensor controller is connected with data fusion module, the control terminal of the sensor controller
It is also connected with sensing switch control circuit.
The embodiment of the present invention is further characterized in that the control circuit includes fixed relay and triggers triode, described
The output end of fixed relay is connected by control route with the collector for triggering triode, the transmitting of the triggering triode
Pole is directly grounded, and the base stage of the triggering triode is connected in series with first resistor and second resistance, the first resistor respectively
Be connected with control signal wire between second resistance, the collector of the triggering triode be also respectively connected the first diode and
Second diode is set as being connected in parallel between first diode and the second diode, the conducting of first diode
End is also connected in series with 3rd resistor, and the control terminal of the fixed relay is connected with row's needle.
The embodiment of the present invention is further characterized in that the sensing switch control circuit includes the first triode and the two or three
The base stage of pole pipe, first triode is connected by the 4th resistance with the control terminal of sensor controller, and the described 1st
The collector of pole pipe is connected separately with the 5th resistance and the 6th resistance, and the other end of the 5th resistance is connected with power supply, described
The other end of 6th resistance is connected with the second transistor base, and the collector of second triode is controlled to a power supply, institute
The emitter for stating the second triode is connected with PLC controller.
The embodiment of the present invention is further characterized in that the data fusion module is calculated using the data fusion based on cluster-based techniques
Method calculates sensor node, analysis node energy and threshold values size.
The embodiment of the present invention is further characterized in that, the data anastomosing algorithm the following steps are included:
S1, Q different particles of initialization, each particle indicates a kind of possible sub-clustering mode, while initializing maximum
Cycle-index Max;
S2 calculates each particle p (p=1,2,3 ... Q), finds out particle optimal value;
S3 determines the individual optimal value of each particle and the optimal value of population in population;
S4 in candidate cluster head, is searched apart from shortest position according to the various data informations of population optimal value more new sensor
It sets, while particle location information is modified, executes this step again and find optimal value M.
The embodiment of the present invention is further characterized in that sub-clustering mode uses improved DCHS algorithm in the step S1, false
If in sensing network G including N number of node, pre-defined to be divided into K cluster, the number between one (0,1) is randomly generated in each node,
If the value of certain node selection is less than threshold values T (n), which is candidate cluster head, and cluster head generates in candidate cluster head, then:
Wherein p sensing node is selected as the probability of candidate cluster head;R is the number recycled at present;G isIt is never selected as waiting in wheel
Select the node set of cluster head, En_currentAnd En_maxRespectively indicate the present energy and primary power of the node, rsIndicate continuous
It is not selected as the number of candidate cluster head.
The embodiment of the present invention is further characterized in that optimal value is calculated using PSO algorithm in the step S2, it is assumed that in population
Different particles indicates different cluster structured, and objective function result indicates the cluster structured performance, initializes m grain first
Son is a population, finds out optimal solution, guarantees the minimum of target function value, objective function is as follows:
Cost=β f1+(1-β)f2
Wherein, f1Indicate node compactness, d (ni, CHP, K) indicate node and cluster head relative distance, | CP, K| it is the cluster
The quantity of interior nodes, f2Indicate that the energy height of cluster head, β indicate the weight coefficient between the different factors.
The embodiment of the present invention is further characterized in that, is counted again to cluster interior nodes in the step S3 using DFACT algorithm
According to fusion, if the in-degree degree that goes out of node is Deg, while remembering that Loop is the maximum value of data fusion cycle-index, and merge knot
Fruit cluster head is that each sensing node distributes a time delay MergeD, distributed within the MergeD time connection time delay ConnD with
One fusion time delay AggD:
Wherein, the height for the Data Fusion Tree that algorithm generates in MAX_DEPTH cluster.
The embodiment of the present invention is further characterized in that the DFACT algorithm in the S3 uses sum function for data fusion letter
It counts, then data fusion function y (t) are as follows:
Wherein, di(t) data that sensing node i is collected into t moment in cluster are indicated
The embodiment of the present invention has the advantages that
(1) remote supervisory and control(ling) equipment and method that liquid manure integral type of the invention is irrigated can reduce workload, the section of measurement
About cost, improve working efficiency, the agriculture scene of effective solution obtain on the spot the limitations of data with when ductility, can be accurate
Environment around acquisition crops in real time obtains the real time status, environmental data and control scene at machine work scene in time
Equipment, the Intellectualized monitoring under reaching unattended;
(2) remote supervisory and control(ling) equipment and method that liquid manure integral type of the invention is irrigated, using constructing Data Fusion Tree in cluster
Combination based on mobile agent model between cluster, reduces network congestion, and balanced node energy consumption improves the Life Cycle of network
Phase, and by the delay of construction Data Fusion Tree reduction data communication, the efficiency of condition monitoring can not only be improved, and can be right
The safe condition of monitoring device makes accurate judgement, reduces node energy consumption, extends network lifecycle, protect the safety of data
Property.
Specific embodiment
Embodiments of the present invention are illustrated by particular specific embodiment below, those skilled in the art can be by this explanation
Content disclosed by book is understood other advantages and efficacy of the present invention easily, it is clear that described embodiment is the present invention one
Section Example, instead of all the embodiments.Based on the embodiments of the present invention, those of ordinary skill in the art are not doing
Every other embodiment obtained under the premise of creative work out, shall fall within the protection scope of the present invention.
As shown in Figure 1, the present invention provides the remote supervisory and control(ling) equipment that a kind of liquid manure integral type is irrigated, including PLC controller
1, sensor controller 7 and Wireless Data Transmission Terminal 5, the control terminal three-way electromagnetic valve 2 of the PLC controller 1 are connected with water pump 3, institute
The interaction port for stating PLC controller 1 is connected with scene collection control computer 4, the signal end of the PLC controller 1 by OPC serial ports
It is connected by RS485 with Wireless Data Transmission Terminal 5, the inside of the PLC controller 1 is additionally provided with control circuit 6, the control
The control terminal of circuit 6 is connected with sensor controller 7, and the signal end of the sensor controller 7 is connected with data fusion mould
The control terminal of block 9, the sensor controller 7 is also connected with sensing switch control circuit 8.
In the present embodiment, whole equipment is designed for the control of farmland large area planting area crop irrigation, will
Computer networking technology, automatic control technology, artificial intelligence technology, database technology are combined, and number is functionally realized
Show according to acquisition, network transmission, data with storage, Data Analysis Services, irrigation decision and man-machine interface etc., in wireless sense network
On the basis of network, system is made of sensing layer, network layer, application layer.
In the present embodiment, according to the low-power consumption of wireless sensing node, low cost and the flexible design principle of operability, application
Miniature GPRS intelligence sensing node combination soil humidity sensor obtains agricultural land soil humidity information, provides section for Precision Irrigation
It learns, comprehensive foundation, the soil temperature-moisture sensor in addition to obtaining agricultural land soil soil moisture content, the equipment of sensing layer further includes sensor
Controller 7, sensor controller 7 can issue action command to actuator, complete to irrigate.
In the present embodiment, sensor is controlled using sensor controller 7 and acquires soil information, be not only transmitted to only scene collection control
Computer 4 can also pass to remote control center by wide area network, breach territory restriction, enhance the flexibility of irrigation, agriculture
Family can grasp farmland at home at any time needs regimen condition, makes irrigation guidance.
In the present embodiment, PLC controller 1 uses S7-200 series small PLCCPU226 controller, has powerful operation
Function;With input filter and pulse capture function, using the centrifugal miniature fresh water pump 3 of ZDK type.
In the present embodiment, sensor controller 7 uses regular hexagon deployment way placement sensor, realizes sensing network
Topological structure can adjust the concentration of sensor as needed, and the utilization rate of the sensing node in network's coverage area is higher,
The power loss of single sensing node is smaller, extends network lifecycle.
As shown in Fig. 2, the control circuit 6 includes fixed relay M and triggering triode Q1, the fixed relay M
Output end by control route with trigger triode Q1 collector be connected, it is described trigger triode Q1 emitter it is direct
It is grounded GND, the base stage of the triggering triode Q1 is connected in series with first resistor R1 and second resistance R2, first electricity respectively
Control signal wire PL1 is connected between resistance R1 and second resistance R2, the collector of the triggering triode Q1 is also respectively connected
First diode D1 and the second diode D2, is set as being connected in parallel between the first diode D1 and the second diode D2,
The conduction terminal of the first diode D1 is also connected in series with 3rd resistor R3, and the control terminal of the fixed relay M is connected with
Arrange needle JP1.
In the present embodiment, the triggering triode Q1 inside control circuit 6 uses the positive-negative-positive of low level triggering, controls in PLC
Relay can just move when device 1 exports low level
In the present embodiment, anti-parallel diodes are formed between the first diode D1 and the second diode D2, are acted on: three
One diode of both ends reverse parallel connection of pole pipe, can be effectively prevented and switch to release conditions by being attracted in relay, and coil generates
Counter electromotive force so that the electric current in coil is mutated, without continuous current circuit protect circuit, be easy to cause punch-through, in turn
Cause the serious consequence that device is burnt.
In the present embodiment, the fixed relay M of control circuit 6 drives realization process: defeated when 1 electrification reset of PLC controller
Pin is placed in high level out, and positive-negative-positive triggering triode Q1 is in reverse blocking state, relay M attonity, as control terminal P1.X
When pin output is low level, triggering triode Q1 switchs on state by off state, relay SL-SRD coil obtain it is electric, after
Electric appliance acts, while the indicator light in parallel with relay lights, and load equipment is turned on, when control control terminal P1.X pin
When output gets higher level, triggering triode Q1 is changed by state, relay SL-SRD deactivation coil point, simultaneously by state
Indicator light in parallel with relay extinguishes, and shows relay coil power loss, load equipment is closed.This process passes through defeated for single-chip microcontroller
High-low voltage driving relay completes the overall process of control facility switching out.
As shown in figure 3, the sensing switch control circuit 8 includes the first triode Q11 and the second triode Q12, institute
The base stage for stating the first triode Q11 is connected by the 4th resistance R4 with the control terminal of sensor controller, the one or three pole
The collector of pipe Q11 is connected separately with the 5th resistance R5 and the 6th resistance R6, and the other end of the 5th resistance R5 is connected with electricity
Source VCC, the other end of the 6th resistance R6 are connected with the second triode Q12 base stage, the current collection of the second triode Q12
Pole is connected with power supply VCC, and the emitter of the second triode Q12 is connected with PLC controller.
In the present embodiment, since soil moisture is not necessarily to stringent real-time measurement in actual monitoring, it is only necessary to as desired
Timing uploads data, this sensor maximum current reaches, and acquisition node is using solar powered, and electricity is limited, institute
To devise the switching circuit of probe power for such situation, convenient for the power consumption control of system, sensing switch control electricity
Selection wire jumper is devised in road 8, it can be achieved that power supply selection, the controlled selection of power supply, output partial pressure selection function.
The data fusion module 9 calculates sensor node using the data anastomosing algorithm based on cluster-based techniques,
Analysis node energy and threshold values size.
In the present embodiment, (abbreviation DFACT) algorithm is merged using based on cluster structured wireless sensor network data,
DFACT algorithm reduces network congestion using the combination based on mobile agent model between Data Fusion Tree and cluster is constructed in cluster,
Balanced node energy consumption improves Network morals, and the delay of data communication, algorithm are reduced by construction Data Fusion Tree
Using particle group optimizing (abbreviation PSO) algorithm optimization sub-clustering mode, intra-cluster distance is minimized, node energy and surrounding are comprehensively considered
The influence of node selects cluster head, is carried out data transmission in cluster by constructing Data Fusion Tree, and encrypt to the data of transmission,
By local updating code key in cluster and using the characteristic of Data Fusion Tree, under the premise of spending less energy, protection is because passing
Sense node is captured and the safety for the data that may be stolen, and the data fusion between cluster passes through under the model based on mobile agent
Algorithms selection optimal path finds out optimal routing node sequence.
The data anastomosing algorithm the following steps are included:
S1, Q different particles of initialization, each particle indicates a kind of possible sub-clustering mode, while initializing maximum
Cycle-index Max;
S2 calculates each particle p (p=1,2,3 ... Q), finds out particle optimal value;
S3 determines the individual optimal value of each particle and the optimal value of population in population;
S4 in candidate cluster head, is searched apart from shortest position according to the various data informations of population optimal value more new sensor
It sets, while particle location information is modified, executes this step again and find optimal value M.
In the present embodiment, it is cluster by the node division in sensor network, i.e., there will be the associated node of certain characteristic attributes
Set, has each clustered round a cluster head, i.e. aggregators, remaining member node, that is, sensing node, according to certain algorithm picks
Certain node is cluster head in cluster, for managing and controlling to sensing node in cluster, while carrying out the fusion of information collection and data
Processing, in each cluster, by some sensing node of algorithm picks as cluster head, cluster head merges the data of sensing node, with
Other cluster heads carry out data fusion and forward again, save network energy, number on the basis of network cluster dividing, between cluster head and cluster head
The computation model based on mobile agent is selected according to transmission, QS node calculates the path of initial mobile agent according to global information,
All cluster heads, i.e. aggregators are successively accessed, result is finally returned into QS node, when wireless sensor network popularization
When, it is cluster structured to be more conducive to network sensing node management, there is preferable scalability, for whole network, without dimension
The routing route of the complicated node data transmission of shield, reduces the complexity for calculating communicating route.
Sub-clustering mode uses improved DCHS algorithm in the step S1, it is assumed that and it include N number of node in sensing network G,
Pre-defined to be divided into K cluster, the number between one (0,1) is randomly generated in each node, if the value of certain node selection is less than valve
Value T (n), then the node is candidate cluster head, and cluster head generates in candidate cluster head, then:
Wherein p sensing node is selected as the probability of candidate cluster head;R is the number recycled at present;G isIt is never selected as waiting in wheel
Select the node set of cluster head, En_currentAnd En_maxRespectively indicate the present energy and primary power of the node, rsIndicate continuous
It is not selected as the number of candidate cluster head.
Optimal value is calculated using PSO algorithm in the step S2, it is assumed that different particles indicates different sub-clusterings in population
Structure, objective function result indicate the cluster structured performance, and initializing m particle first is a population, find out optimal solution,
Guarantee the minimum of target function value, objective function is as follows:
Cost=β f1+(1-β)f2
Wherein, f1Indicate node compactness, d (ni, CHP, K) indicate node and cluster head relative distance, | CP, K| it is the cluster
The quantity of interior nodes, f2Indicate that the energy height of cluster head, β indicate the weight coefficient between the different factors.
In the present embodiment, cluster is splitted the network by PSO algorithm, reaches the consumption for reducing cluster self-energy, equalising network
Energy extends the purpose of network lifecycle, improves the reasonability of algorithm.
Data fusion is carried out to cluster interior nodes again using DFACT algorithm in the step S3, if node goes out in-degree degree
For Deg, while remembering that Loop is the maximum value of data fusion cycle-index, and fusion results cluster head is each sensing node distribution one
A time delay MergeD distributes an a connection time delay ConnD and fusion time delay AggD within the MergeD time:
Wherein, the height for the Data Fusion Tree that algorithm generates in MAX_DEPTH cluster.
In the present embodiment, when node number under attack increases, Loop value is accordingly reduced, higher to obtain accuracy
Fusion results.
DFACT algorithm in the S3 uses sum function for data fusion function, then data fusion function y (t) are as follows:
Wherein, di(t) data that sensing node i is collected into t moment in cluster are indicated.
In the present embodiment, the hop count h value for the Congestion Level SPCC for mitigating network, the transmission of cluster internal segment point data is selected as 1,
In the MergeD period, by TAG algorithm construction data fusion balanced binary tree, data fusion is carried out to father node i in child node
When, write down the child node number deg of father node ii, node i distributes the memory headroom that size is 1bit and is used to record
The cycle-index loop of the data fusion of the node, after Data Fusion Tree construction complete, note loop is 1, logical in node connection
In the letter stage, to reduce the collision generated by data communication, the ConnD period is uniformly divided into tpPiece, most by Data Fusion Tree
Big height MAX_DEPTH determines that the number of the timeslice of distribution, node i distribute the height that 1b memory is used to memory node
depthi,
The timeslice t that is distributed in ConnD of sensing node first1It is interior, allow node degiIt is randomly choosed for 0 sensing node
Time is connected to its father node, and writes down degiFor the height depth of 0 nodeiIt is 0, the height of father node is then denoted as
1, until the node for allowing the height of node to be MAX_DEPTH is ganged up within the time of its distribution with cluster head, node is tested first
Demonstrate,prove the height depth of oneselfiWhether be less than MAX_DEPTH, when node height be MAX_DEPTH, that is, indicate the node be cluster
Head, without request send data, in Lifetime section, only need to receive data, within the AggD time, from bottom sensing node to
Father node carries out data fusion operation layer by layer, and final cluster head obtains the fusion results of all node datas, while leader cluster node will
The cycle-index loop of data fusion increases by 1, for the security risk for solving wireless network data transmission, adds to communication data
Close calculating, using random key distribution mechanism, to guarantee that security risk that cluster interior nodes occur does not influence in other clusters code key more
Newly, the consumption of node resource is reduced, each fasciation possesses K code key at a code key pond in pond, cluster interior nodes are from this code key
K code key is randomly selected in pond, by sharing code key, prevents communication data from maliciously being stolen, if loop value is equal to or more than
Loop is then updated the code key pond in the cluster.Simultaneously because the characteristics of balanced binary tree, when a certain node occur it is abnormal,
It such as cannot normally be connected to or maliciously be intercepted and captured, can all cause the variation of a certain subtree height of Data Fusion Tree, i.e. left and right subtree
Difference in height be greater than 1 when, regenerate partial equilibrium binary tree, and update code key pond.
In the present embodiment, by the way that the efficiency of condition monitoring can not only be improved to wireless sensor network node progress sub-clustering,
And accurate judgement can be made to the safe condition of monitoring device, node energy consumption is reduced, network lifecycle is extended, protects number
According to safety.
Although above having used general explanation and specific embodiment, the present invention is described in detail, at this
On the basis of invention, it can be made some modifications or improvements, this will be apparent to those skilled in the art.Therefore,
These modifications or improvements without departing from theon the basis of the spirit of the present invention are fallen within the scope of the claimed invention.