A kind of warmhouse booth environmental monitoring system and method for supervising thereof with long-range demarcation and redundant network
Technical field
The present invention relates to a kind of warmhouse booth environmental monitoring system and method for supervising thereof, relate in particular to a kind of warmhouse booth environmental monitoring system and method for supervising thereof with long-range demarcation and redundant network.
Background technology
At present, conventional Agricultural Environmental Monitoring system is mostly set up radio sensing network by ZigBee, bluetooth or wifi technology, by the PC that has connected 3G network as control end.Radio sensing network detects agricultural environment production factors, image data is sent on the PC of the 3G network that has connected GRPS, after PC receives image data, sending controling instruction feeds back to each terminal node to control corresponding equipment, realizes the object of remote monitoring.
With regard to environment measuring radio sensing network common on market, there is the defect of two aspects, for there is the unsettled problem of building network in one; It is two single for realizing the sensor that same environmental parameter gathers, the problem that has detection error and cannot calibrate; The relatively large deviation that above-mentioned two problems has directly caused agricultural environment data monitoring to exist, generates and causes damage to crops.First, network construction failure, must cause whole Agricultural Environmental Monitoring system normally to move, cause monitoring function to lose, make peasant lack necessary Agricultural Environmental Monitoring data, may occur the maloperation to crops, serious also can produce Crop damage; Secondly, data acquisition is the basis of peasant to crop growth environment judgement, if there is mistake gathering link, also can cause peasant to do the crop growth environment judgement that makes the mistake, and very easily causes Crop damage.
Conventional wireless network is by wifi, Bluetooth technology building network, reduced to a certain extent the stability of networking, in existing Wireless Network, ZigBee technology is a kind of stable the short distance wireless communication technology of low cost, low-power consumption, networking based on IEEE802.15.4 standard.Can adopt point-to-point, Star Network, tree network structure, there is stronger portability, support in theory 65000 nodes, after by amplifier, can realize the radio transmission range of several kilometers.GPRS technology is a kind of networking rapidly in addition, in the cheap network technology of net, has transfer rate fast, the technical advantage that networking is stable at any time.Mobile phone uses generally at present in addition, has good Portability.By transmitting-receiving note, send instruction in addition, be easily understood, simple to operate, be more suitable in the crowd of know-how weakness.
Chinese Patent Application No. is that 201020700584.0 utility model patent discloses a kind of greenhouse wireless remote plant eco-physiology monitoring system based on ZigBee, 3G network, comprise ZigBee-network and GPRS part, realized the function of plant physiology ecological monitoring, yet, this patent is used PC as terminal monitoring equipment, operation easier is larger, not portable, the problem that cannot use in the area that there is no broadband, simultaneously, this patent does not overcome the unsettled problem of building network, and realizes the single problem of sensor that same environmental parameter gathers.
Summary of the invention
For addressing the above problem, the present invention proposes a kind of warmhouse booth environmental monitoring system and method for supervising thereof with long-range demarcation and redundant network, improved the stability of networking in existing Agricultural Environmental Monitoring, overcome the single problem of sensor that same environmental parameter gathers that realizes, thereby guaranteed stability and the reliability of agricultural environment data acquisition and demonstration, reduced the deviation producing in factor data collection and transmitting procedure and the Crop damage causing.
For achieving the above object, the present invention adopts following technical scheme: a kind of warmhouse booth environmental monitoring system, comprising: terminal node, and described terminal node, comprises sensor sequence, first processor, actuator and the first wireless communication link; Sensor sequence is connected with first processor, the real-time Data Transmission of the warmhouse booth environmental element that sensor sequence gathers is to first processor, described first processor is built-in with database, the reference data of internal database storage warmhouse booth environmental element, described actuator is also connected with first processor, and the data of first processor output transfer to telegon by the first wireless communication link;
Telegon, described telegon comprises the second wireless communication link and the second processor;
Display terminal, described display terminal is for showing the output information of the second processor;
Communication terminal, described communication terminal carries Monitoring Data information in the mode of note;
Described sensor sequence comprises following sensor: for detection of the sets of temperature sensors of warmhouse booth chamber interior and external temperature, for detection of the humidity sensor group of warmhouse booth interior humidity, for detection of the gas concentration lwevel sensor group of gas concentration lwevel in warmhouse booth, for detection of the light intensity sensor group of the intensity of illumination in warmhouse booth, for detection of the moisture transducer of the soil water content in warmhouse booth and for detection of the sensor for detecting rain of rainfall;
Above-mentioned at least two sensors compositions all selecting different model for realizing the sensor group of same warmhouse booth environmental element detection, one of them sensor is as detecting sensor, remaining sensor is as reference sensor, and reference sensor is in order to realize the long-range demarcation of detecting sensor;
Described actuator, comprises motor drive module and connected motor;
Described the first wireless communication link and the second wireless communication link include ZigBee short-range wireless networks module and GPRS remote wireless network module;
ZigBee short-range wireless networks module networking in the first wireless communication link and the second wireless communication link forms ZigBee short-range wireless networks, GPRS remote wireless network module networking in the first wireless communication link and the second wireless communication link forms GPRS remote wireless network, wherein, GPRS remote wireless network is as the redundant network of ZigBee short-range wireless networks.
Further, described warmhouse booth environmental element comprises: intensity of illumination, the soil water content in warmhouse booth and rainfall in warmhouse booth chamber interior and external temperature, warmhouse booth interior humidity, warmhouse booth in gas concentration lwevel, warmhouse booth.
Apply above-mentioned warmhouse booth environmental monitoring system, realize a kind of warmhouse booth environment control method, comprise the following steps:
A, sensor sequence gather the real time data of warmhouse booth environmental element;
Reference sensor in b, sensor group carries out long-range demarcation to detecting sensor;
C, the real time data of the warmhouse booth environmental element of sensor sequence collection is carried out to pre-service with generating digital amount data;
D, first processor receive the real time data of the warmhouse booth environmental element of digital quantity, and the reference data of the warmhouse booth environmental element of storing in this image data and internal database is compared; If exist sensor sequence collection the real-time number of warmhouse booth environmental element exceed the deviation range of reference data, proceed to step e, if the real time data of the warmhouse booth environmental element of sensor sequence collection all falls in the scope of reference data, proceed to step g;
If the indoor temperature value of the warmhouse booth in e first processor judgement warmhouse booth environmental element is higher than the reference value of the indoor temperature of the warmhouse booth in internal database, proceed to step f1, if the indoor temperature value of the warmhouse booth in judgement warmhouse booth environmental element equals the reference value of the indoor temperature of the warmhouse booth in internal database, proceed to step g, if the indoor temperature value of the warmhouse booth in judgement warmhouse booth environmental element, lower than the reference value of the indoor temperature of the warmhouse booth in internal database, proceeds to step f2;
F1, first processor output control information are to actuator, and the motor drive module drive motor in actuator moves, and motor drags the internal temperature that heat emission fan moves to reduce warmhouse booth, proceeds to step g;
F2, first processor stop exporting control information to actuator, make motor in closed condition, proceed to step g;
ZigBee short-range wireless networks module in g, the first radio communication chain circuit and the ZigBee short-range wireless networks module in the second radio communication chain circuit are carried out networking, real-time Data Transmission to the second processor of the warmhouse booth environmental element sensor sequence of first processor output being gathered by ZigBee short-range wireless networks, proceeds to step h1, if the failure of the ZigBee short-range wireless networks module networking in the ZigBee short-range wireless networks module in the first radio communication chain circuit and the second radio communication chain circuit, the GPRS remote wireless network module in the first radio communication chain circuit and the GPRS remote wireless network module in the second radio communication chain circuit are carried out networking, the second processor by GPRS remote wireless network to the first processor sending controling instruction in terminal node, first processor inputs to the second processor by the real time data of the warmhouse booth environmental element of sensor sequence collection by GPRS remote wireless network, proceed to step h2,
The real time data of the greenhouse-environment key element of the sensor sequence collection of h1, the second processor output shows in display terminal by ZigBee short-range wireless networks, and proceeds to step h2;
The real time data of the greenhouse-environment key element of the sensor sequence collection of h2, the second processor output is sent to communication terminal to show by GPRS remote wireless network in the mode of GSM note.
Further, the step of described long-range demarcation is as follows:
Detecting sensor and reference sensor gather respectively some groups of the real time datas of warmhouse booth environmental element, the data that gather compare in first processor, if the relative error of the data that the data that detecting sensor gathers and reference sensor gather surpasses 3%, detecting sensor is proofreaied and correct to processing.
Further, the computing formula of the deviation range of described reference data is:
(x
1-x
1×5%)~(x
1+x
1×5%)
Wherein, x
1for the reference data in internal database.
Further, cellphone subscriber controls to send the instruction that motor opens, stops by GPRS remote wireless network in the mode of GSM note.
Beneficial effect: the present invention arranges the first wireless communication link in each terminal node, the second wireless communication link is set in telegon, thereby make the real time data of the warmhouse booth environmental element that gathered by sensor sequence, by terminal node, transfer to telegon, and by telegon output display information, at display terminal and communication terminal, show, thereby realized the monitoring function of native system.Two-way communication link, when networking is selected, be take ZigBee short-range wireless networks as main, after ZigBee short-range wireless networks networking failure, selects GPRS remote wireless network as backup network networking, thereby has improved stability and the reliability of network construction.
For realizing the sensor group of same function, all select at least two sensors of different model to form, one of them sensor is as detecting sensor, and remaining sensor is as reference sensor, and reference sensor is in order to realize the long-range demarcation of detecting sensor; Be that reference sensor carries out long-range demarcation to detecting sensor, the realization of this function, make the sensor in sensor sequence, important environmental factor being detected there is the function of demarcating and proofreading and correct, thereby, reduce single-sensor and detected the data deviation causing, improved stability and the reliability of data source.
Native system improves the data source harvester of existing warmhouse booth environmental monitoring system and networking link, obtained the warmhouse booth environmental monitoring system that a kind of data acquisition and transmission reliability are high, accuracy collection and the transmission of data, must give peasant in greenhouse crops incubation with judgment basis more accurately, thereby reduced the Crop damage that factor data obtains and transmission deviation causes misinterpretation and cause.
In addition, the second wireless communication link is set in telegon, in order to receive the data message that in each terminal node, the first wireless communication link sends, thereby the function of realized One's name is legion, the data message of terminal node being managed by wireless network in each warmhouse booth disperseing that distributes concentratedly, compared to prior art, a large amount of networks and management resource have been saved.
Accompanying drawing explanation
The structured flowchart of Tu1Wei medium temperature chamber of the present invention greenhouse-environment supervisory system.
Embodiment
Below in conjunction with the drawings and the specific embodiments, the present invention is further described.
Embodiment 1:
A warmhouse booth environmental monitoring system, comprising: terminal node, and described terminal node, comprises sensor sequence, first processor, actuator and the first wireless communication link; Sensor sequence is connected with first processor, the real-time Data Transmission of the warmhouse booth environmental element that sensor sequence gathers is to first processor, described first processor is built-in with database, the reference data of internal database storage warmhouse booth environmental element, described actuator is also connected with first processor, and the data of first processor output transfer to telegon by the first wireless communication link;
Telegon, described telegon comprises the second wireless communication link and the second processor;
Display terminal, described display terminal is for showing the output information of the second processor;
Communication terminal, described communication terminal carries Monitoring Data information in the mode of note;
Described sensor sequence comprises following sensor: for detection of the sets of temperature sensors of warmhouse booth chamber interior and external temperature, for detection of the humidity sensor group of warmhouse booth interior humidity, for detection of the gas concentration lwevel sensor group of gas concentration lwevel in warmhouse booth, for detection of the light intensity sensor group of the intensity of illumination in warmhouse booth, for detection of the moisture transducer of the soil water content in warmhouse booth and for detection of the sensor for detecting rain of rainfall;
Above-mentioned at least two sensors compositions all selecting different model for realizing the sensor group of same warmhouse booth environmental element detection, one of them sensor is as detecting sensor, remaining sensor is as reference sensor, and reference sensor is in order to realize the long-range demarcation of detecting sensor; Adopt the sensor of mentioned kind, can do comprehensive detection to booth indoor environment factor, such sensor combinations is comparatively reasonable, can realize important parameter and improve its measuring accuracy because thering is long-range calibrating function, the sensor of not realizing all measuring abilities in the present invention all adopts sensor group, some minor effect factors detect and only adopt a sensor, thereby have reduced the quantity of sensor, have saved to a certain extent the energy.
Reference sensor carries out long-range demarcation to detecting sensor, the realization of this function, make the sensor in sensor sequence, important environmental factor being detected there is the function of demarcating and proofreading and correct, thereby, reduce single-sensor and detected the data deviation causing, improved stability and the reliability of data source, from data source header guaranteed data acquisition precisely, thereby avoided the accuracy in factor data source low and cause to the disconnected Crop damage causing of the erroneous judgement of crop build environment.
Described actuator, comprises motor drive module and connected motor, and application actuator is adjusted temperature parameter, thereby makes the present invention realize automatic control function, has improved the automatization level of agricultural monitoring system.
Described the first wireless communication link and the second wireless communication link include ZigBee short-range wireless networks module and GPRS remote wireless network module;
ZigBee short-range wireless networks module networking in the first wireless communication link and the second wireless communication link forms ZigBee short-range wireless networks, GPRS remote wireless network module networking in the first wireless communication link and the second wireless communication link forms GPRS remote wireless network, wherein, GPRS remote wireless network is as the redundant network of ZigBee short-range wireless networks.
The present invention arranges the first wireless communication link in each terminal node, the second wireless communication link is set in telegon, thereby make the real time data of the warmhouse booth environmental element that gathered by sensor sequence, by terminal node, transfer to telegon, and by telegon output display information, at display terminal and communication terminal, show, thereby realized the monitoring function of native system.Two-way communication link is when networking is selected, take ZigBee short-range wireless networks as main, after ZigBee short-range wireless networks networking failure, select GPRS remote wireless network as backup network networking, thereby improved stability and the reliability of network construction, and then reduced the risk of Crop damage.
In addition, the second wireless communication link is set in telegon, in order to receive the data message that in each terminal node, the first wireless communication link sends, thereby the function of realized One's name is legion, the data message of terminal node being managed by wireless network in each warmhouse booth disperseing that distributes concentratedly, compared to prior art, a large amount of networks and management resource have been saved.
Described warmhouse booth environmental element comprises: intensity of illumination, the soil water content in warmhouse booth and rainfall in warmhouse booth chamber interior and external temperature, warmhouse booth interior humidity, warmhouse booth in gas concentration lwevel, warmhouse booth.
Apply above-mentioned warmhouse booth environmental monitoring system, realize a kind of warmhouse booth environment control method, comprise the following steps:
A, sensor sequence gather the real time data of warmhouse booth environmental element;
Reference sensor in b, sensor group carries out long-range demarcation to detecting sensor;
C, the real time data of the warmhouse booth environmental element of sensor sequence collection is carried out to pre-service with generating digital amount data;
D, first processor receive the real time data of the warmhouse booth environmental element of digital quantity, and the reference data of the warmhouse booth environmental element of storing in this image data and internal database is compared; If exist sensor sequence collection the real-time number of warmhouse booth environmental element exceed the deviation range of reference data, proceed to step e, if the real time data of the warmhouse booth environmental element of sensor sequence collection all falls in the scope of reference data, proceed to step g; The computing formula of the deviation range of described reference data is:
(x
1-x
1×5%)~(x
1+x
1×5%)
Wherein, x
1for the reference data in internal database.
If the indoor temperature value of the warmhouse booth in e first processor judgement warmhouse booth environmental element is higher than the reference value of the indoor temperature of the warmhouse booth in internal database, proceed to step f1, if the indoor temperature value of the warmhouse booth in judgement warmhouse booth environmental element equals the reference value of the indoor temperature of the warmhouse booth in internal database, proceed to step g, if the indoor temperature value of the warmhouse booth in judgement warmhouse booth environmental element, lower than the reference value of the indoor temperature of the warmhouse booth in internal database, proceeds to step f2;
F1, first processor output control information are to actuator, and the motor drive module drive motor in actuator moves, and motor drags the internal temperature that heat emission fan moves to reduce warmhouse booth, proceeds to step g;
F2, first processor stop exporting control information to actuator, make motor in closed condition, proceed to step g;
ZigBee short-range wireless networks module in g, the first radio communication chain circuit and the ZigBee short-range wireless networks module in the second radio communication chain circuit are carried out networking, real-time Data Transmission to the second processor of the warmhouse booth environmental element sensor sequence of first processor output being gathered by ZigBee short-range wireless networks, proceeds to step h1, if the failure of the ZigBee short-range wireless networks module networking in the ZigBee short-range wireless networks module in the first radio communication chain circuit and the second radio communication chain circuit, the GPRS remote wireless network module in the first radio communication chain circuit and the GPRS remote wireless network module in the second radio communication chain circuit are carried out networking, the second processor by GPRS remote wireless network to the first processor sending controling instruction in terminal node, first processor inputs to the second processor by the real time data of the warmhouse booth environmental element of sensor sequence collection by GPRS remote wireless network, proceed to step h2,
The real time data of the greenhouse-environment key element of the sensor sequence collection of h1, the second processor output shows in display terminal by ZigBee short-range wireless networks, and proceeds to step h2;
The real time data of the greenhouse-environment key element of the sensor sequence collection of h2, the second processor output is sent to communication terminal to show by GPRS remote wireless network in the mode of GSM note.
In the present embodiment, the step of described long-range demarcation is as follows:
Detecting sensor and reference sensor gather respectively some groups of the real time datas of greenhouse-environment key element, the data that gather compare in first processor, if the relative error of the data that the data that detecting sensor gathers and reference sensor gather surpasses 3%, detecting sensor is proofreaied and correct to processing.
Sets of temperature sensors comprises Pt100 temperature sensor and 18B20 temperature sensor, Pt100 temperature sensor is as detecting sensor, 18B20 temperature sensor is as reference sensor, enable Pt100 temperature sensor measurement warmhouse booth chamber interior and external temperature, several all after dates, enable Pt100 temperature sensor and 18B20 temperature sensor, two kinds of temperature sensors are measured warmhouse booth inside and external temperature simultaneously, if the relative error of the measured value of the measured value of 18B20 temperature sensor and Pt100 temperature sensor surpasses 3%, according to the temperature of Pt100 and the resistance table of comparisons, Pt100 temperature sensor is carried out to resistance compensation, the resistance of Pt100 while again demarcating 0 ℃, thereby realize the correction of Pt100 temperature sensor, after correction, 18B20 temperature sensor cuts out, completed the long-range demarcation of 18B20 temperature sensor to Pt100 temperature sensor, if the relative error of the measured value of the measured value of 18B20 temperature sensor and Pt100 temperature sensor is no more than 3%, directly close 18B20 temperature sensor.
Humidity sensor group comprises HR202 resistance type humidity sensor and DHT11 digital hygro sensor, HR202 resistance type humidity sensor is as detecting sensor, DHT11 digital hygro sensor is as reference sensor, enable HR202 resistance type humidity sensor and measure warmhouse booth interior humidity, several all after dates, enable HR202 resistance type humidity sensor and DHT11 digital hygro sensor, two kinds of humidity sensors are measured warmhouse booth interior humidity simultaneously, if the relative error of the measured value of the measured value of DHT11 digital hygro sensor and HR202 resistance type humidity sensor surpasses 3%, according to the humidity of HR202 and the resistance table of comparisons, HR202 resistance type humidity sensor is carried out to resistance compensation, the resistance of HR202 while again demarcating 20%RH, thereby realizing HR202 resistance type humidity sensor proofreaies and correct, after correction, DHT11 digital hygro sensor is closed, completed the long-range demarcation of DHT11 digital hygro sensor to HR202 resistance type humidity sensor, if the relative error of the measured value of the measured value of DHT11 digital hygro sensor and HR202 resistance type humidity sensor is no more than 3%, directly close DHT11 digital hygro sensor.
Gas concentration lwevel sensor group comprises the hot conduction-type carbon dioxide gas sensor of MD62 and MG811 carbon dioxide sensor, the hot conduction-type carbon dioxide gas sensor of MD62 is as detecting sensor, MG811 carbon dioxide sensor is as reference sensor, enable the hot conduction-type carbon dioxide gas sensor of MD62 and measure gas concentration lwevel in warmhouse booth, several all after dates, enable the hot conduction-type carbon dioxide gas sensor of MD62 and MG811 carbon dioxide sensor, two kinds of gas concentration lwevel sensors are measured gas concentration lwevel in warmhouse booth simultaneously, if the relative error of the measured value of the hot conduction-type carbon dioxide gas sensor of the measured value of MG811 carbon dioxide sensor and MD62 surpasses 3%, by move gas concentration lwevel sensor calibration program on first processor, the resistance of the hot conduction-type carbon dioxide gas sensor of MD62 while again demarcating 1250ppm, thereby realize the correction of the hot conduction-type carbon dioxide gas sensor of MD62, after correction, MG811 carbon dioxide sensor is closed, completed the long-range demarcation of MG811 carbon dioxide sensor M to the hot conduction-type carbon dioxide gas sensor of D62, the relative error of the measured value of the hot conduction-type carbon dioxide gas sensor of the measured value of MG811 carbon dioxide sensor and MD62 is no more than 3%, directly close MG811 carbon dioxide sensor.
Light intensity sensor group comprises GL5626 photosensitive resistance sensor and BH1750FVI intensity of illumination sensor, GL5626 photosensitive resistance sensor is as detecting sensor, BH1750FVI intensity of illumination sensor is as reference sensor, enable GL5626 photosensitive resistance sensor and measure the intensity of illumination in warmhouse booth, several all after dates, enable GL5626 photosensitive resistance sensor and BH1750FVI intensity of illumination sensor, two kinds of intensity of illumination sensors are measured the intensity of illumination in warmhouse booth simultaneously, if the relative error of the measured value of BH1750FVI intensity of illumination sensor and the measured value of GL5626 photosensitive resistance sensor surpasses 3%, according to the resistance of photoresistance and the intensity of illumination table of comparisons, GL5626 photosensitive resistance sensor is carried out to resistance compensation, while again demarcating 10000LX photoresistance resistance, thereby realize the correction of GL5626 photosensitive resistance sensor, after correction, BH1750FVI intensity of illumination sensor cuts out, completed the long-range demarcation of BH1750FVI intensity of illumination sensor to GL5626 photosensitive resistance sensor, if the relative error of the measured value of BH1750FVI intensity of illumination sensor and the measured value of GL5626 photosensitive resistance sensor is no more than 3%, directly close BH1750FVI intensity of illumination sensor.
In the present embodiment, described first processor and the second processor are STM32 processor, described ZigBee short-range wireless networks module is CC2430 module, described GPRS remote wireless network module is SIM900A module, described communication terminal is mobile phone, and the mode that cellphone subscriber can GSM note controls to send the instruction that motor opens, stops by GPRS remote wireless network.