CN202433041U - Greenhouse environment monitoring system - Google Patents

Greenhouse environment monitoring system Download PDF

Info

Publication number
CN202433041U
CN202433041U CN2012200210330U CN201220021033U CN202433041U CN 202433041 U CN202433041 U CN 202433041U CN 2012200210330 U CN2012200210330 U CN 2012200210330U CN 201220021033 U CN201220021033 U CN 201220021033U CN 202433041 U CN202433041 U CN 202433041U
Authority
CN
China
Prior art keywords
unit
task
data
measurement unit
monitoring system
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Expired - Fee Related
Application number
CN2012200210330U
Other languages
Chinese (zh)
Inventor
曾宇
宋永端
王艳辉
昝宝亮
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
University of Electronic Science and Technology of China
Original Assignee
University of Electronic Science and Technology of China
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by University of Electronic Science and Technology of China filed Critical University of Electronic Science and Technology of China
Priority to CN2012200210330U priority Critical patent/CN202433041U/en
Application granted granted Critical
Publication of CN202433041U publication Critical patent/CN202433041U/en
Anticipated expiration legal-status Critical
Expired - Fee Related legal-status Critical Current

Links

Images

Landscapes

  • Selective Calling Equipment (AREA)

Abstract

The utility model relates to a greenhouse environment monitoring system, which comprises an upper computer and a lower computer. The greenhouse environment monitoring system is characterized in that the upper computer and the lower computer establish communication connection through an RS232/485 converter; the hardware of the lower computer comprises a main chip unit, a command input unit, a display output unit, a comprehensive measurement unit and a power supply module; the main chip unit is connected with the command input unit, the display output unit, the RS232/485 converter and the comprehensive measurement unit respectively; the power supply unit is connected with the main chip unit and the comprehensive measurement unit respectively and powers the main chip unit and the comprehensive measurement unit; the comprehensive measurement unit comprises an air temperature and moisture sensor, a carbon dioxide sensor, a circuit amplification current and an A/D conversion chip; and the carbon dioxide sensor is connected with the main chip unit and powers the main chip unit through the circuit amplification current and the A/D conversion chip. The greenhouse environment monitoring system has the benefits of monitoring various greenhouse environment values and responding to system input commands in real time.

Description

A kind of greenhouse monitoring system
Technical field
The utility model relates to a kind of technical field of greenhouse monitoring system, particularly has a whole set of greenhouse monitoring system of multiple function.
Background technology
At present; Modern greenhouse develops towards the direction of intensification, scale; Requirement for the greenhouse intelligent management improves day by day, is the basic premise of greenhouse, booth high yield to the monitoring of greenhouse data (like air themperature, air humidity, gas concentration lwevel etc.).Traditional greenhouse monitoring system slave computer partial function is simple; Usually can only realize collection, the transmitting function of data; Only can carry out the input of system control command and the output of execution result by host computer; The function that does not have greenhouse localization operation and show is unfavorable for field control, has the single shortcoming of control mode.Traditional greenhouse monitoring system is only monitored aerial temperature and humidity mostly, and in fact is not quite similar in the requirement for carbon dioxide of the different growth phases of crops, has the single shortcoming of monitoring variable.Traditional greenhouse monitoring system slave computer software adopts the working method of single task, AM/BAM, has the not strong shortcoming of real-time.
The utility model content
The purpose of the utility model is in order to overcome the shortcoming that traditional greenhouse monitoring system control mode is single, monitoring variable is single, a kind of greenhouse monitoring system to be provided.
To achieve these goals; The technical scheme of the utility model is: a kind of greenhouse monitoring system; Comprise host computer and slave computer; It is characterized in that; Said host computer and slave computer establish a communications link through the RS232/485 converter, and the hardware components of said slave computer comprises master chip unit, command input unit, demonstration output unit, composite measurement unit and power module, and said master chip unit is connected with the composite measurement unit with command input unit, demonstration output unit, RS232/485 converter respectively; Said power module is connected with the composite measurement unit with the master chip unit respectively and for it power supply is provided; Said composite measurement unit comprises aerial temperature and humidity sensor, carbon dioxide sensor, circuit amplified current and A/D conversion chip, and said carbon dioxide sensor is connected with the master chip unit with the A/D conversion chip through the circuit amplified current and for it provides transducing signal, said aerial temperature and humidity sensor directly is connected with the master chip unit and for it transducing signal is provided.
The beneficial effect of the utility model is: to three shortcomings that traditional greenhouse monitoring system control mode is single, monitoring variable is single, real-time is not strong; The utility model adopts the System and method for that adapts; Overcome above-mentioned shortcoming from the unification of hardware and software aspect respectively; The utlity model has the function of localization system operation or master system operation, can monitor the multiple environment value in greenhouse, real-time response system input command.In addition, host computer can also carry out data storage, recall, and the utility model also has the advantage that hardware and software is convenient to upgrade.
Description of drawings
Fig. 1 is the system construction drawing of the utility model;
Fig. 2 is a slave computer operating system initialization process flow diagram;
Fig. 3 is a UC/OS-II embedded OS task graph of a relation;
Fig. 4 is a serial ports ISR process flow diagram;
Fig. 5 is the upper computer software structural drawing;
Fig. 6 is that the upper computer software function is divided synoptic diagram.
Embodiment
Below in conjunction with accompanying drawing and specific embodiment the utility model is further described.
At first introduce the system architecture of the utility model, shown in accompanying drawing 1, the utility model system architecture mainly comprises host computer and slave computer part.Host computer adopts PC, is connected with the slave computer master chip through the RS232/485 converter, makes communication distance can reach 1200 meters.Lower computer hardware partly comprises master chip unit, command input unit, demonstration output unit, composite measurement unit, power module.
Below, also can implement the utility model for the ease of those of ordinary skill in the art's understanding, the concrete condition of each unit of said system slave computer and module is done further detailed description:
Master chip unit: as the acp chip of slave computer.Present embodiment is selected ARM-7 family chip LPC2100 for use, and this chip has advantages such as high security and high reliability.
Command input unit: be applicable to the input of localization system order.Present embodiment selects for use the peripheral hardware button to cooperate the 74HC148 scrambler to realize, can practice thrift chip pin, and the employing priority encoder carries out the peripheral hardware keyboard-coding but not button directly connects the connected mode of master chip pin, for the System Expansion upgrading provides redundant.
Show output unit: be used for showing and output in localization.The data that show and export are sent through serial ports by host computer, adopt LCD1602 LCD, hummer and LED lamp in the present embodiment.The LCD1602 LCD can be used for the information of real-time display environment data and other host computer requirements demonstration, then reports to the police through hummer and LED lamp when the environment measurement value surpasses warning value.
Composite measurement unit: be the direct perception part of greenhouse value, form by aerial temperature and humidity sensor and carbon dioxide sensor, circuit amplified current and A/D conversion chip.Select SHT75 humidity sensor measurement aerial temperature and humidity data in the present embodiment for use; SHT75 is the numeric type sensor; Be the sensor of being produced by sensirion company advanced in the world, measurement range is wide, can in-40 ℃ to+123.8 ℃ scope, use; The precision high level error is less than ± 1.8%RH, and is low in energy consumption; Select for use the MG811 sensor as carbon dioxide sensor; MG811 is the analogue type sensor; Output voltage signal needs that the signal that collects is sent into current-amplifying device and amplifies, and through A/D converter simulating signal is transferred to afterwards and sends into the LPC2100 master chip after the digital signal and handle; SHT75 is a digital sensor; Can directly image data be sent into the LPC2100 master chip, the utility model provides the processing scheme of numeric type sensor and analogue type sensor, can be convenient to the later stage dilatation.
Power module: the system of being used to provides working power.Present embodiment adopts the external power supply power supply, is respectively the power supply of master chip and carbon dioxide sensor.
Further understand the utility model for the ease of those of ordinary skill in the art, introduce the method that the utility model and system adapt below, mainly comprise: step 1: the slave computer os-task makes up; Step 2: the differentiation of the different communication data streams of upper and lower computer; Step 3: the communication between the slave computer multitask; Step 4: upper computer software makes up.
Further understand the utility model for the ease of those of ordinary skill in the art; At first introduce step 1: the slave computer os-task makes up: the slave computer software operating system of native system adopts μ C/OS-II; It is transplantable, implantable ROM's, but cutting; Preemptive type, real-time multi-task operating system kernel.It is widely used in microprocessor, microcontroller and digital signal processing, and it is high to have the efficient of execution, and it is little to take up room, the characteristics that real-time is good.
The slave computer main program flow chart is shown in accompanying drawing 2.At first carry out the initialization kernel, set up system-level statistics task and idle task, carry out the initialization system parameter subsequently, confirm the timing parameter and the various hardware parameter of system, also comprise system resources such as the needed space of task run, global variable.Initialization serial ports, LCD are then carried out the serial ports initialization operation, as confirming communication baud rate, confirm the demonstration rule of liquid crystal device etc.
Set up main task subsequently; And it is made as limit priority; Main task is accomplished the work of setting up of remaining user-level task, carries out among the μ C/OS-II OSStart () function then control is returned operating system nucleus, and after this system resource of slave computer is distributed by μ C/OS-II operating system.
System builds together and founds 10 user-level task, and its priority is as follows with its major function from high to low:
1) main task is set up other tasks successively;
2) external interrupt task is judged and is pressed key class, and carries out corresponding operating according to pressing key class;
3) warning task is carried out warning function according to the host computer alert message, comprises and lights the LED lamp, makes the hummer sound that gives the alarm;
4) task that resets is carried out the slave computer reset function;
5) serial ports receives task, judges that host computer transmits the data stream kind, judges the order kind of external button;
6) serial data sends task, through polling mode data is sent to host computer;
7) humiture data acquisition task is used to gather SHT75 humiture data;
8) gas concentration lwevel acquisition tasks is used to gather the dense carbon dioxide degrees of data;
9) automatic acquisition tasks is gathered environmental data automatically and is uploaded to host computer by predetermined period;
10) liquid crystal display shows task, according to host computer institute data flow transmitted, starts liquid crystal display and shows corresponding data.
Further understand the utility model for the ease of those of ordinary skill in the art, introduce step 2 below: the differentiation of the different communication data streams of upper and lower computer:
Construct different " sign initial character " and be used to distinguish the various communication data streams between host computer and the slave computer, the each complete communication data stream length of regulation is 8 bytes, and this is that liquid crystal display shows that task determines by the maximum task of traffic.First byte is the sign initial character; All the other bytes are the data stream contents serial data; The reception task can be carried out the decode operation of order according to different sign initial characters; And the certain bits of signal quantity set is carried out set operation according to decoded result, show task then also need decoded data be sent into the particular message mailbox if decoded result is a liquid crystal display.
The serial communication data stream sign initial character that native system is set is as shown in the table:
Data flow direction The data stream kind The sign initial character
Slave computer->host computer The humiture data ‘A’
Slave computer->host computer The dense carbon dioxide degrees of data ‘B’
Slave computer->host computer The input of peripheral hardware button ‘C’
Host computer->slave computer Carry out automatic acquisition tasks ‘a’
Host computer->slave computer Carry out humiture data acquisition task ‘b’
Host computer->slave computer The execution task that resets ‘c’
Host computer->slave computer Liquid crystal display is answered video data ‘d’
Host computer->slave computer Warning message ‘e’
Further understand the utility model for the ease of those of ordinary skill in the art, will introduce step 3 below: the communication between the slave computer multitask.System constructing message queue array 1, signal quantity set, message mailbox 1, message queue array 2 and message mailbox 2 be used for the communication between multitask.Accompanying drawing 3 is UC/OS-II embedded OS task graphs of a relation, has described the information source and the whereabouts of above-mentioned medium of communication, will set forth the means of communication of the slave computer multitask of the utility model from the information source and the whereabouts of five medium of communications below:
1, the message queue array 1: the information source of message queue array 1 is serial ports ISR, and the information flow whereabouts is that serial ports receives an assignment.Specifically describe: serial ports ISR synoptic diagram is shown in accompanying drawing 4.For simplify the function of serial ports ISR as far as possible, enable to have the very short processing time, the character stream that serial ports ISR only sends host computer send into message queue array 1 in, it is 30 that present embodiment is provided with this array size.Data stream is accomplished in one of the each acceptance of serial ports ISR; Promptly 8 bytes are sent message, each 4 bytes to message queue 1 at twice continuously; Because the length of message pointer is 4 bytes just; 8 bytes that then partial data flowed are divided into two sections and send into the message pointer position, save the message content array like this, can accelerate serial ports interrupt task processing speed.
2, signal quantity set: the information source of signal quantity set is that serial ports receives task, automatic acquisition tasks and external interrupt task, and the information flow whereabouts is that liquid crystal display shows task, automatic acquisition tasks, the task that resets, warning task, gas concentration lwevel acquisition tasks and humiture data acquisition task.
Specifically describe: serial data receives task can carry out decode operation according to the differentiating method of the different communication data streams of aforesaid upper and lower computer; And the certain bits of signal quantity set is carried out set operation according to decoded result; Construct the communication of a signal quantity set Sem_Flag realization multitask; The task, warning task, liquid crystal of resetting had a high regard for affair, or two bits in acquisition tasks, gas concentration lwevel acquisition tasks, respectively related this signal quantity set set of landmarks of humiture collection task automatically, when related data bit when being 1 then corresponding task ready.The every incidence relation of characteristic events group of different task and signal quantity set is as follows in this instance:
OS_FLAGFLAGS is every Corresponding task The set operation source
The 0th Humiture data acquisition task Serial ports receives task
The 1st Humiture data acquisition task The external interrupt task
The 2nd The gas concentration lwevel acquisition tasks Serial ports receives task
The 3rd The gas concentration lwevel acquisition tasks The external interrupt task
The 4th Automatic acquisition tasks Serial ports receives task
The 5th Automatic acquisition tasks The external interrupt task
The 6th Task resets Serial ports receives task
The 7th Task resets The external interrupt task
The 8th The warning task Serial ports receives task
The 9th The LCDs task Serial ports receives task
The set of landmarks position of the signal quantity set that the task of wherein reporting to the police and LCDs task are asked is merely able to sent by the serial ports task, promptly whether reports to the police and liquid crystal display data should be definite by host computer.All the other tasks can start through host computer or peripheral hardware button jointly.
0 to 9 any one is 1 among the OS_FLAGFLAGS; Then start being associated of task; The zero clearing work of signal quantity set set of landmarks is by should the response task accomplishing, and zero clearing work must at first accomplish in the porch of corresponding task, thus the error running when avoiding recall.
Automatically acquisition tasks is comparatively special, and it can gather the data of Temperature Humidity Sensor, carbon dioxide sensor with specific period, has both needed the signal of waiting signal quantity set, again need be with the set of signal quantity set when being triggered.
3, message mailbox 1:
The information source of message mailbox 1 is that serial ports receives task, and the information whereabouts is that liquid crystal display shows task.
Specifically describe: when serial ports reception task adopts the differentiating method of the different communication data streams of aforesaid upper and lower computer to carry out decode operation, if decoded result is liquid crystal display demonstration task then also need decoded data be sent into message mailbox 1.The data volume that liquid crystal display demonstration required by task is wanted is bigger, can not only operate through the information of signal quantity set, thereby especially construct message mailbox 1.
4, the message queue array 2:
The information source of message queue array 2 is the external interrupt subroutine, and the information whereabouts is the external interrupt task.
Specifically describe: simplify the function of external interrupt subroutine among the embodiment as far as possible, make it only to accomplish the position of button number being sent into message pointer in the message queue array 2, take to pretend to be the mode of message pointer to save the message array equally.The external interrupt task is then carried out decode operation according to the message pointer content of message array 2; At first decoded result is delivered to host computer; Promptly notify host computer to carry out which kind of button operation, subsequently according to the relevant bits set of decoded result to the characteristic events group of signal quantity set.
5, message mailbox 2:
The information source of message mailbox 2 is gas concentration lwevel acquisition tasks, humiture data acquisition task and external interrupt task, and the information whereabouts is that serial data sends task.
Specifically describe: gas concentration lwevel acquisition tasks, humiture data acquisition task, external interrupt task need transfer data to host computer; These three tasks are sent required transmission data into message mailbox 2; Whether message mailbox 2 in case for or not empty, and then the serial data task of sending is sent data stream according to the mode of poll.
Further understand the utility model for the ease of those of ordinary skill in the art, will introduce step 5 below: upper computer software makes up:
Host computer communicates through serial ports and master chip unit.Upper computer software utilizes Microsoft Visual Studio2008 development environment, adopts C# language to realize.
The upper computer software function is divided synoptic diagram shown in accompanying drawing 5, mainly comprises following functional module: operation of serial-port, data manipulation, command selection, warning processing and data storage.The SerialPort control that the exploitation of serial communication modular adopts C# to carry is realized.Wherein data storage function adopts the ADO.NET mode to connect the realization of Access database.
The upper computer software structural drawing is shown in accompanying drawing 6, and system's upper computer software structure is divided into three parts: 1) visualization interface, 2) database, 3) daemon software.
Wherein system database adopts the Access database, and datasheet table of design has " date ", " time ", " temperature value ", " humidity value " and " gas concentration lwevel " five in database.The sensing data that collects deposits in the table after being converted into actual numerical value, and the calling system time covers timestamp simultaneously.Be guaranteeing data security property, the visualized operation interface is merely able to realize the inquiry and the form derivation of data, and data write operation is accomplished according to serial data by the backstage code automatically.Visualization interface is mutual through daemon software and database, and the stream data transmission of slave computer and host computer is also accomplished through daemon software.
Those of ordinary skill in the art will appreciate that embodiment described here is in order to help the principle of reader understanding's the utility model, should to be understood that the protection domain of the utility model is not limited to such special statement and embodiment.Those of ordinary skill in the art can make various other various concrete distortion and combinations that do not break away from the utility model essence according to disclosed these teachings of the utility model, and these distortion and combination are still in the protection domain of the utility model.

Claims (1)

1. greenhouse monitoring system; Comprise host computer and slave computer; It is characterized in that; Said host computer and slave computer establish a communications link through the RS232/485 converter; The hardware components of said slave computer comprises master chip unit, command input unit, demonstration output unit, composite measurement unit and power module; Said master chip unit is connected with the composite measurement unit with command input unit, demonstration output unit, RS232/485 converter respectively, and said power module is connected with the composite measurement unit with the master chip unit respectively and for it provides power supply, said composite measurement unit comprises aerial temperature and humidity sensor, carbon dioxide sensor, circuit amplified current and A/D conversion chip; Said carbon dioxide sensor is connected with the master chip unit with the A/D conversion chip through the circuit amplified current and for it provides transducing signal, said aerial temperature and humidity sensor directly is connected with the master chip unit and for it transducing signal is provided.
CN2012200210330U 2012-01-17 2012-01-17 Greenhouse environment monitoring system Expired - Fee Related CN202433041U (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN2012200210330U CN202433041U (en) 2012-01-17 2012-01-17 Greenhouse environment monitoring system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN2012200210330U CN202433041U (en) 2012-01-17 2012-01-17 Greenhouse environment monitoring system

Publications (1)

Publication Number Publication Date
CN202433041U true CN202433041U (en) 2012-09-12

Family

ID=46782481

Family Applications (1)

Application Number Title Priority Date Filing Date
CN2012200210330U Expired - Fee Related CN202433041U (en) 2012-01-17 2012-01-17 Greenhouse environment monitoring system

Country Status (1)

Country Link
CN (1) CN202433041U (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104515544A (en) * 2013-09-27 2015-04-15 罗斯蒙特公司 Non-intrusive sensor system
CN106226469A (en) * 2016-07-07 2016-12-14 钟林超 A kind of warmhouse booth gas detecting display device

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104515544A (en) * 2013-09-27 2015-04-15 罗斯蒙特公司 Non-intrusive sensor system
CN104515544B (en) * 2013-09-27 2019-07-02 罗斯蒙特公司 Non-invasive sensors system
CN106226469A (en) * 2016-07-07 2016-12-14 钟林超 A kind of warmhouse booth gas detecting display device
CN106226469B (en) * 2016-07-07 2018-06-15 江苏吉华电子科技有限公司 A kind of greenhouse gas detects display device

Similar Documents

Publication Publication Date Title
CN201215495Y (en) Economic multifunctional agricultural environmental information collecting device
CN102322895A (en) Environmental monitoring substation based on Internet of Things and design method thereof
CN202735787U (en) Electric power information machine room environment real-time monitoring system
CN203894423U (en) Small-scale weather station
CN202856999U (en) Wireless sensor network gateway
CN203759525U (en) Digital remote control system based on tablet PC
CN102539646A (en) Real-time online analyzer for measuring water content in greenhouse soil
CN102538877A (en) Greenhouse environment monitoring system and communicating method thereof
CN202433041U (en) Greenhouse environment monitoring system
CN201673594U (en) Wireless sensing device and sensing system
CN103475728A (en) Orchard ecological environment remote monitoring system based on wireless sensor network
CN203338545U (en) A household environment wireless monitoring system
CN207799397U (en) A kind of GPRS types RTU with suspend mode revival function
CN202635267U (en) Wireless sensor network (WSN)-based irrigation regulating system for campus landscaping
CN202648706U (en) Comprehensive environment monitoring instrument
CN102053286A (en) Meteorological information acquisition real-time communication and processing system
CN103123268A (en) Comprehensive environmental monitor
CN203799254U (en) Breeding shed wireless sensor network node controlling device
CN203811807U (en) Wireless ultrasonic ranging system based on CC2530 single-chip microcomputer
CN103207582A (en) Wireless paperless recording instrument based on 3G (third-generation telecommunication)/Beidou satellite communication technology
CN201935911U (en) Real-time online analyzer used for measuring soil moisture of greenhouse
CN202855056U (en) Orchard planting monitoring system
CN201134148Y (en) Wireless multifunctional sensor node for marine vehicle
CN203414788U (en) Novel off-site integrated wireless monitoring device
CN206248145U (en) A kind of environment multipoint wireless detection means

Legal Events

Date Code Title Description
C14 Grant of patent or utility model
GR01 Patent grant
CF01 Termination of patent right due to non-payment of annual fee

Granted publication date: 20120912

Termination date: 20150117

EXPY Termination of patent right or utility model