【正文】
E AND PRINCIPLE The most marked feature of the distribution bined and intelligent control system greenhouse is that of incorporating with data acquisition, control and management as a whole,module bination, simple structure,convenient humanputer interaction,and using technology of intelligent expert fuzzy control,which can adapt to a variety of crop management control in basic structure of the system is shown in . The structure of the distributed system is posed of two layers:the upper and the topprice PC is taken as the host to make system management and experts fuzzy operation in intelligent,and to provide a friendly humanputer interface,and to realize the united monitoring and management of greenhouse。a module of soil moisture content will be added in the middle of the greenhouse according to the actual condition。and the PC is placed in the main entrance to the greenhouse. III . HARDWARE DESIGN A. The CP and munication system In the distributed system of data acquisition and control,as the micro control unit is limited in data storage and slow in calculating of plex functions,so PC is used and the masterslave module is adopted in the system,that is a system of,taking PC as the host and taking the SCM systems located in the scene as slave. In this distributed system,munication is the key to ,the serial port of PC is standard RS232,of which transmission distance is in agriculture control munication distance is of tens of meters or several kilometers, so RS232/RS485 converter is used to achieve munication between the PC and reduce investment,both considering the user convenience and friendly humanputer interaction,lowprice PC of above 486 and below PIV is adopted。it has fullscale calibration,secondline digital output,and humidity measuring range of 0~100% RH,temperature measurement range of 40℃ ~+℃ ,humidity measurement accuracy of 177。 ℃ ,the response time of 4s. The illuminance sensor of JY1TBQ6 of silicon photovoltaic detection is used Light measurement range is 0~200,000 Lux。measurement error is less than 2%。output signal can be directly send to the A/D of the SCM after being amplified to 0~4V. Modules accept the instructions form the the Upper,and output via the output circuit .The output circuit consists of optical isolation,the signal driver and the output relays. C. The measurement and control modules of soil moisture Water is a polar medium, the dielectric constant of the soil containing water is mainly determined by the water,when water content is different,the wave impedance is soil moisture is measured by standing wave radio method in this system. Based on the theory of Engineering Electromagic Field,for lossy medium,the electromagic wave impedance as follows: Z0=√μ /ε (1+jλ /(ωε )) Where μ is medium permeability,and μ of soil is μ≈μ 0 is the vacuum permeability。λ is medium conductivity。and can create dynamic images and charts in accordance with the layout of equipment in the scene。and can achieve fuzzy control of greenhouse parameters by using the history curve of environment parameters stored in the specific database and adopting the agricultural expert system. The software of SCM of the slave is developed by Keil C51 to achieve realtime collecting,processing,uploading of the parameters and accept the fuzzy control instructions from the host puter and plete local control of the device. A. Program design of the control module The software of the subslave machine of soil moisture module,that include the main function,subroutines of data acquisition and processing,interrupt handling and municating etc,read the value of standing wave voltage through the parallel data port and obtained the value of soil moisture content by function calculating. The software of the slave machine of monitoring an