A kind of agricultural greenhouse low-consumption wireless TT&C systemTechnical field
The present invention relates to precision agriculture technology field, particularly relate to a kind of agricultural greenhouse low-consumption wireless TT&C system.
Background technology
Current China agricultural by traditional intensive cultivation mode to intelligent modern agriculture transition; the feature of intelligent modern agriculture is by various modernization monitoring means; intelligent measurement and control is realized to the growth and development process of crop and environmental element; according to the actual conditions of each planter units; meticulously adjust every utilization of resources amount exactly, a kind of agricultural practices that saving resource is preserved the ecological environment while obtaining production peak and maximum economic benefit.
Internet of Things is called as the third wave of infotech, and in application agriculturally, technology of Internet of things will promote that traditional agriculture is to the transformation of modern agriculture greatly, and namely warmhouse booth intelligent observing and controlling system is an imbody of this kind of application.This type systematic continues to monitor the environmental parameter in warmhouse booth by various kinds of sensors, and controls corresponding feedback system in real time after processing by analysis, and the crop in warmhouse booth is in the environment of an optimum growth all the time.
In addition, domestic warmhouse booth, some due to region larger, peasant household generally can be divided into the different crop of multiple ecological region planting according to demand, like this, because Different Crop is different to the requirement of best humiture growing environment, add the trend that water-fertilizer integral is irrigated, Different Crop is to the difference of nutrient demand, and TT&C system will accomplish meticulousr control for Different Crop zones of different, and this just needs the TT&C system simultaneously supporting more Controlling vertex and low-power consumption.
This type systematic existing, the wired mode of most employing is powered and transmission sensor Monitoring Data, as " a kind of agricultural greenhouse temperature and humidity monitoring system " that number of patent application is CN201310335933, but this mode difficult wiring and affect Cotton Varieties by Small Farming Households operation on the one hand, on the other hand, sensor can only be disposed at the edge in booth surrounding, plot mostly, certainly will affect the accuracy of institute's image data like this, validity.
And for example number of patent application is " a kind of novel solar energy wireless sensor network system " of CN201320023281, have employed wireless way for transmitting Sensor monitoring data and utilize solar powered, this type systematic is applied in the field environment such as land for growing field crops, forest mostly, if be arranged on by solar panels in booth, charge efficiency is relatively low, and for having the radio fest and control node of controlling functions, it is larger that its wireless radio frequency modules is in listening state power consumption always, if meet the continuous print cloudy day, the power-off of radio fest and control node just may be there is and out-of-work situation.
Summary of the invention
Based on above existing problem, the invention provides a kind of agricultural greenhouse low-consumption wireless TT&C system, technical scheme is as follows:
A kind of agricultural greenhouse low-consumption wireless TT&C system, is provided with environmental detection sensor, terminal works system and the remote web server be connected successively, gateway and radio fest and control node in agricultural greenhouse; Radio fest and control node periodically gathers the environmental detection sensor data of monitored agricultural greenhouse, and is uploaded to gateway, receives the control command of the terminal works system that gateway is sent simultaneously, and the work of control terminal work system; Gateway receives the environment measuring data of each radio fest and control node and is forwarded to remote web server, sends control command according to default upper lower limit value or the peasant household operation on gateway of user to radio fest and control node simultaneously; Remote web server receives from the environmental detection sensor data of gateway forwards and the status data of terminal works system, and the control operation of peasant household on webpage is sent to gateway.
In above-mentioned agricultural greenhouse low-consumption wireless TT&C system, environmental detection sensor comprises one or more combinations in aerial temperature and humidity sensor, soil humidity sensor or soil temperature sensor.
In above-mentioned agricultural greenhouse low-consumption wireless TT&C system, aerial temperature and humidity sensor is SHT11 type, and soil humidity sensor is FDS-100 type, and soil temperature sensor is PT100 type.
In above-mentioned agricultural greenhouse low-consumption wireless TT&C system, terminal works system comprises any one or several combinations in drip irrigation system, sprinkling system and ventilating system.
In above-mentioned agricultural greenhouse low-consumption wireless TT&C system, radio fest and control node comprises powered battery module, ZigBee wireless module and the environmental detection sensor be connected with ZigBee wireless module respectively, terminal works Systematical control electromagnetic valve switch module and dormancy awakening module, wherein, described powered battery module (employing lithium battery) powers periodically to the unit of radio fest and control node by dormancy awakening module; Dormancy awakening module work mode is: radio fest and control node periodically powers on every some seconds and wakes up, in the wake-up states of a few tens of milliseconds, send sensing data and complete and the reception of gateway commands is performed, then notify that the timer of dormancy awakening module starts timing, and cut off battery to the power supply of whole node to save energy consumption by dormancy awakening module, timing opens the power supply to radio fest and control node to rear dormancy awakening module, makes it power on and wakes up and enter working cycle next time.
In above-mentioned agricultural greenhouse low-consumption wireless TT&C system, data memory module, LCD touch screen, ZigBee telegon, 3G wireless communication module and power module that gateway comprises main control module and is connected with main control module; Main control module is the data of detecting sensor and the comparison of preset value environmentally, the work of control of intelligent terminal work system, all control commands issuing radio fest and control node are kept in simultaneously, wait for that radio fest and control node powers on and wake up rear when initiatively inquiring gateway, then to send; LCD Touch Screen is used for the status data of environmental detection sensor parameter in real-time display booth and terminal works system, and is realized the work presetting and directly control the terminal works system of each radio fest and control Nodes of the environmental parameter upper lower limit value in each plot by main control module.Data memory module is used for historical data being carried out storage for inquiring about afterwards; 3G wireless communication module, for being transferred to remote web server by the sensing data of booth and each gauge tap state synchronized.
In above-mentioned agricultural greenhouse low-consumption wireless TT&C system, the ZigBee coordinator module in gateway forms a star-like ZigBee wireless network with multiple radio fest and control node.
In above-mentioned agricultural greenhouse low-consumption wireless TT&C system, ZigBee telegon and radio fest and control node all adopt the CC2530 chip of TI company, and described wireless network adopts 2.4G frequency range.
In above-mentioned agricultural greenhouse low-consumption wireless TT&C system, remote web server can supply the environmental sensor data in each plot and the state of terminal works system in peasant household's real-time query booth, and the work of remote control terminal work system.
In above-mentioned agricultural greenhouse low-consumption wireless TT&C system, every only monitoring agricultural greenhouse is distributed with several radio fest and control nodes, wherein same plot environmental parameter collection and control to be realized by same radio fest and control node to the drip irrigation in this plot.
The Advantageous Effects that the present invention has is as follows:
1, present invention achieves the meticulous farming of intellectuality of warmhouse booth, facilitate the operation of peasant household on access terminals, alleviate the output that workload also effectively improves crops.
2, the present invention uses wireless network transmissions measuring and control data, and uses lithium battery to power for radio fest and control node, facilitates user installation without the need to doing further transformation to booth, and with low costly meets agricultural application truth; Newly-increased radio fest and control node directly powers on and gets final product access network, easy to use, extensibility is strong; Monitoring function and controlling functions are combined, decreases wireless network node number total in booth, enhance network communication efficiency.Peasant household can observe Monitoring Data and by touch-screen transmit button control command, also can check Monitoring Data by the mode at remote access Web interface on mobile phone or on computer or send control command on the on-the-spot gateway display screen of booth, simple to operation.
3, radio fest and control node of the present invention takes power-saving working mode, measuring and controlling node is in off-position at ordinary times, and rely on the timing function work of dormancy awakening module, wake up by periodically powering on, greatly save energy consumption, make more than the sustainable work one-year age of employing one piece of lithium battery, substantially meet the demand of agricultural greenhouse.
4, the present invention considers that the wireless network architecture in agricultural greenhouse applied environment is relatively simple, and it is relatively low to the requirement of real-time controlled, second, the control lag of level was acceptable, for realizing the object of low-consumption wireless observing and controlling, the transmission of the Sensor monitoring data timing of radio fest and control node and radio fest and control node are postponed reception two functions to the control command that gateway issues combined by dormancy mechanism, solve radio fest and control node in the problem using continuous firing in powered battery situation.
Accompanying drawing explanation
Fig. 1 is a kind of agricultural greenhouse low-consumption wireless TT&C system structural schematic block diagram.
Fig. 2 is radio fest and control node structure schematic block diagram.
Fig. 3 is radio fest and control node procedure process flow diagram.
Fig. 4 is gateway architecture schematic block diagram.
Reference numeral is: 1-Remote WEB server; 2-gateway; 3-wireless network.
Embodiment
As shown in Figure 1, native system forms by three parts the remote web server 1 comprising and connecting successively, gateway 2 and radio fest and control node; Radio fest and control node periodically gathers the environmental detection sensor data of monitored agricultural greenhouse, and is uploaded to gateway 2, receives the control command of the terminal works system that gateway 2 is sent simultaneously, and the work of control terminal work system; Gateway 2 is responsible for reception data to show in the mode of graphical interfaces, and observing and controlling information and remote web server 1 are synchronously got up, gateway 2 receives the environment measuring data of each radio fest and control node and is forwarded to remote web server 1, sends control command according to default upper lower limit value or the peasant household operation on gateway 2 of user to radio fest and control node simultaneously; Remote web server 1 receives the status data of environmental detection sensor data and the terminal works system forwarded from gateway 2, and the control operation of peasant household on webpage is sent to gateway 2.
Wherein environmental detection sensor comprises one or more combinations in aerial temperature and humidity sensor, soil humidity sensor or soil temperature sensor.Terminal works system comprises any one or several combinations in drip irrigation system, sprinkling system and ventilating system.Environmental detection sensor and terminal works system are all arranged in agricultural greenhouse.
Multiple radio fest and control nodes in booth form a ZigBee wireless network 3 with the ZigBee coordinator module in gateway 2, the sensor data information collected is sent to gateway 2 by ZigBee wireless network 3 by each radio fest and control node at regular intervals, gateway 2 will be shown to after these data processings in the LCD screen that carries in real time, and the solenoid control order that transmitting terminal work system is used is as required to radio fest and control node.Gateway 2 sets up data cube computation by 3G wireless network 3 with remote web server 1, uploads the monitor value of each radio fest and control node of booth in real time, and forwards the control command from remote web server 1 to radio fest and control node.
As shown in Figure 2, radio fest and control node comprises ZigBee wireless module, aerial temperature and humidity sensor, soil temperature-moisture sensor, powered battery module, solenoid valve module, dormancy awakening module, the numerical value read from aerial temperature and humidity sensor and soil temperature-moisture sensor is sent to the ZigBee telegon of gateway by ZigBee wireless module by ZigBee wireless network, and according to being received from the switch of control command Controlling solenoid valve module of ZigBee telegon, powered battery module is that each parts are powered.
Wherein the low-power consumption of radio fest and control node is realized by dormancy awakening mechanism, specific as follows: radio fest and control node is after powering on or waking up, first gateway 2 whether is had to be handed down to the control command of oneself to the inquiry of ZigBee telegon, if had, first receive order and Controlling solenoid valve switch, then read the sensor values of this node and be sent to gateway; Sensing data is sent out if, directly not upper; Send successfully, radio fest and control node notice dormancy awakening module cuts off battery to the power supply of self to enter dormant state, now, the timer of dormancy awakening module starts timing, certain hour (some seconds) later timer triggers Interruption, this look-at-me controls the relay closes of dormancy awakening module, thus radio fest and control node is powered on wake up to enter working cycle next time.
Wherein ZigBee wireless module adopts the CC2530 chip of TI and runs Z-Stack protocol stack, integrated 8051 kernels of CC2530 and a 2.4G radio-frequency (RF) transceiver, can also meet low cost and low-power consumption except practical function requires; Aerial temperature and humidity sensor adopts SHT11; The collection of soil moisture adopts FDS-100; The collection of the soil moisture adopts PT1000; Powered battery module comprises chargeable lithium cell and the DC-DC module of one piece of 12V1800mAh; Dormancy awakening module comprises timer circuit and one for controlling the DC12V relay switch that whole measuring and controlling node is powered; Solenoid valve adopts direct current 12V solenoid valve, is mainly used in the Kai Heguan of control terminal work system.
As shown in Figure 3, the working mechanism of control module is as follows: after powering on or waking up, first inquires whether gateway 2 has the control command of this node, if having, takes orders and performs, and then sends sensing data to gateway 2.Data send measuring and controlling node successfully and notify that the timer of dormancy awakening module starts timing and pilot relay cuts off battery module to the power supply of whole node, now only has dormancy awakening module still in work, adopt relay to cut off the continuous drain that battery powered mode effectively can remove DC-DC module etc., when timer timing to after then close the relay switch of dormancy awakening module and whole radio fest and control node powered on wake up.
Timer every 10s wake on wireless measuring and controlling node once, each continuous firing is less than 100ms, maximum operating currenbt is less than 50mA, the power consumption of the whole measuring and controlling node of dormancy awakening module work is only had in uA rank when being in dormant state, under the lithium battery power supply of one piece of 12V 1800mAh, more than the sustainable work one-year age of radio fest and control node, substantially meet the demand of agricultural greenhouse.
As shown in Figure 4, described gateway 2 comprises main control module (i.e. processor unit), memory module, LCD touch screen, ZigBee telegon, 3G wireless communication module, relay switch, power module.After ZigBee telegon receives the temperature-humidity monitoring data of certain radio fest and control node, give processor unit and do data processing, then to upgrade on gateway 2 display screen and to write memory module, when gateway 2 is in intelligent control mode, can according to making a decision the humiture bound changing radio fest and control node institute's observing and controlling plot in advance, as: when the soil moisture in certain plot is lower than pre-determined lower limit, gateway 2 sends to this plot radio fest and control node and opens drip irrigation order, until when after a period of time, soil moisture value is increased to preset upper limit value, gateway 2 sends and closes drip irrigation order.When the air humidity average of radio fest and control nodes all in certain moment booth is lower than preset value, gateway 2 is opened its relay switch controlling booth sprinkling system and is opened sprinkling system, until monitor value closes sprinkling system higher than during preset upper limit value.When peasant household needs the drip irrigation switch in field control plot, at the main interface of gateway 2 screen, directly click corresponding control knob and send control command to this plot radio fest and control node.
Gateway program is run under a linux operating system, GUI is based on embedded QT platform development, the radio fest and control nodes that gateway application can be disposed according to booth is automatically in the ground block graphics of the corresponding number of main Interface debond of gateway, and various places block number and actual wireless measuring and controlling node are number consistent, each ground block graphics all shows soil moisture value, soil moisture value and this plot drip irrigation shift knob, plot figure ground look is in normal range for green represents, and redness represents the abnormal needs of this plot institute observing and controlling envirment factor and processes in time.User interface of software is friendly, facilitate peasant household's execute-in-place.The ventilating system, sprinkling system etc. of the relay module major control booth of gateway adopt the equipment of wired mode connection in addition.3G wireless communication module realizes gateway and remote web server realizes data interaction.Gateway adopts mains-supplied.
Wherein processor unit adopts the AM3359 microprocessor of TI company ARM Cortex-A8, and ZigBee telegon adopts the CC2530. power module of TI that 220V civil power is converted to 5V direct current.Gateway program is run under a linux operating system, and treatment scheme is as follows: after gateway 2 receives the sensing data of radio fest and control node, and real-time update to display screen is synchronized to remote web server by 3G wireless communication module; And if gateway 2 judges that sensing data transfinites, or user directly sends control command by mode such as operation touch screen or Web interface etc. to radio fest and control node, now control command is temporarily stored in pending command list (CLIST) by gateway 2, until after gateway receives the inquiry of this radio fest and control node, this order is just sent to this measuring and controlling node by gateway 2, receive this node on renewal display screen after confirming on off state and by state synchronized to remote web server.
Remote web server 1 is responsible for the measuring and control data of gateway in booth to be synchronized on Web server to show, and provides a kind of peasant household on mobile phone, computer, use browser and observing and controlling means capable of making remote access.Remote web server 1 comprises communication service, database, three, Web interface part.Wherein communication service to receive from realtime curve such as the booth sensing data of gateway and each electromagnetic valve switch states on Web interface, then data is stored in database for the inquiry of historical data.Accordingly, the user control command received is sent to gateway downwards by communication service by Web interface.In addition, whether Web server can transfinite to user according to sensor values and send inform by short message.