1、1Research on the Application of IOT in smart garden projectAbstract: For artificial irrigation in excess or deficiency, not timely and other shortcomings, the paper expounds the application in agricultural and landscape irrigation system based on the wireless sensor network and single chip computer;
2、 at the same time the paper designed system architecture of automatic irrigation system based on wireless sensor network. The hardware of the system adopts CC2430 single chip microcomputer as control core, by the real-time acquisition and processing of data in wireless sensor networks, the control d
3、ata by wireless way is sent to the irrigation controller. The system can real-time monitor the soil temperature and humidity changes, r realize fine flower required and efficient use of water resources. Keywords: Wireless sensor network; MCU;GPRS; automatic sprinkler 0 Introductions The low utilizat
4、ion ratio of the garden water resources and the shortage and waste of water resources coexist in china 1. 2It is the main problem facing the development of gardens. The soil moisture in certain rate guarantee crops survival and soil moisture of excessive rate will cause the garden crop root rot. The
5、 fundamental way to solve the above problems is the development of rational irrigation; improve the utilization of water resources in order to achieve the best economic and ecological benefits. However, at present Chinese in landscape water-saving irrigation is obviously less than 2. Is mainly refle
6、cted in the follow: 1)At present, irrigation control system mainly use wired mode, adopting field bus and serial bus technology, not only need the wiring high cost and not easy to place, and the system installation and maintenance costs are high; 2) The control algorithm for the automatic sprinkler
7、and drip irrigation garden control system most simple, that can not timely appropriate amount water according to the temperature and humidity of soil and plant water needs, so, it leads to the waste of water resources, and may cause the death of plants because of insufficient water or water. Aiming
8、at the existing disadvantages of artificial irrigation, people gradually began to explore the irrigation automation journey; garden soil moisture information is one of 3the research focuses. Remote sensing humidity for garden soil is continuous, multi point, quickly and accurately collecting soil mo
9、isture values, and provides a scientific basis management for prevent drought. The system takes MCU and wireless sensor network as the core, design an automatic sprinkling system based on water-saving landscape soil humidity information, the system has unattended, control precision, stable work, and
10、 has the advantages of saving labor and saving water resource. Therefore, this paper designed a system by low power wireless sensor network node and ZigBee network structure, at the same time, and introduce temperature and humidity fuzzy control algorithm in the design of the software, improving the
11、 flexibility and control accuracy of the system, and achieve the fine difference flower required and the efficient use of water resources. 1 The overall design of the system The system transmits data through wireless sensor network information, microcontroller as the core to control the irrigation p
12、rocess. With humidity, rainfall, flows sensor to detect the humidity of the soil, the weather, rain water flow velocity information, then send information to the microcontroller through the transmission of wireless sensor 4network. MCU control AC relay, relay on the solenoid valve open, high pressur
13、e water will spray automatically through the nozzle. In order to meet the special circumstances demand, the system used with a manual switch and automatic switch combination, and have alarm horn for accidental water when, at the same time with silencer switch used in a closed alarm horn at conscious
14、ness condition. The core of the system is controlled by SCM subsystem and wireless sensor network for information collection and transmission. The composition of the entire system is as shown in figure 1. Fig.1 The structure of the system control 2 Design of sensor node The hardware design of each s
15、ub node is as shown in Fig. 2 , it is compose of small wireless chip CC2430 with low power consumption, temperature, humidity, electromagnetic valve. The basic work flow of this system mainly includes power on initialization, data acquisition, power supply module and data receiving and sending etc.
16、When the system power on and start the procedure to configure the ports, the basic work flow as shown in figure 3. Selection of the temperature and humidity sensor and parameters, the system uses TDR-3A. 5Soil temperature and humidity sensor, the sensor can also measure the temperature and humidity,
17、 with proper sealing, environment landscape soil waterproof, precision characteristics, is an ideal instrument for measuring soil temperature and humidity. Humidity measurement range is 0 100% (m3/m3). Precision is 0 50% range: 2%; temperature range: -40 80 , precision: 0.2 ; Output current is 4 20m
18、A current loop. Fig.2 Design of sensor node Fig.3 the flow chart of sensor node 3 The hardware design of the gateway The hardware design of the gateway is as shown in figure 4. The hardware of the system adopts modular design, storage and processing module based on ARM9 processor, the other part lon
19、ely design functions of different functional modules, and which divided into data aggregation and network access module, on this basis, with the ZigBee communication module, WiFi communication module can adapt to the mobile information collection. If in order to enhance the real-time information whe
20、never and wherever possible collaboration and mobile terminal gateway between the view, the need to increase the GPRS/3G communication module; further in order to increase the 6inspection supervision on the mobile terminal users, the need to increase the Bluetooth communication module or RFID module
21、 to read and write; while increasing LCD display module can enhance the human-computer interaction. This paper is based on multi access network gateway in the verification, to adapt to the need of the system function of cutting the corresponding. Fig.4 Hardware design of gateway 3.1 The software str
22、ucture of the gateway The software structure of the gateway is as shown in figure 5. Because access to support a variety of ways, especially the WiFi and ZigBee network. Therefore the gateway need to rely on embedded operating system as the support, the protocol has been driven and implemented; data
23、base software is another aspect to consider, for the storage of the data information, database accession will simplify its management operation, improve the efficiency of the development, the logarithm according to extended support format also. On the basis of the information,we establish the identi
24、ty authentication, data cache based on application specific protocol method. Fig.5 Software structure of gateway module 3.2 Intelligent mobile terminal The Android mobile phone system has occupied most of the 7mobile phone market, so the intelligent mobile terminal using Android system mobile phone
25、or handheld devices. Mobile terminal software architecture is shown in figure 6. Fig.6 Software structure of mobile terminal 4 Software design and implementation of gateway module Internet gateway has access to extensive,as the ZigBee network communication and other network interface in information
26、acquisition system, it is the important composition part of communication system. It needs information collection to provide support for the identity authentication, message view, and it should be delivered a message, uniform complete protocol conversion and data format, and the ZigBee network, Wi-F
27、i, serial port and TCP/IP protocol effectively integrated, unified messaging, so that other functional communication and system to achieve a more convenient. 4.1 DM9000A As shown in Figure 7 flow of DM9000A driver, it is divided into two parts as main program and the interrupt program. The main prog
28、ram is responsible for the initialization of DM9000A and the detection card, card access parameters. Interrupt service program is responsible for identifying the interrupt source and complete the relevant operation to process queries. 8Specific procedures are as described in Fig. 7 (a) and (b) shown
29、. 4.2 Driver development of 3G LC6311 communication module Manager for WindowsCE equipment complete the driver loading, unloading and other management, realize the communication with LC63n function interface driver program provided by USBD. The LC63n module for USB devices, the user process can be a
30、ccessed through the USB device file and LC63n communication module. But in the actual operation, is to access the LC63n through virtual serial form, this is because the virtual serial port operation than USB simple operation. Because the use of virtual serial port communication. Fig.7 DM9000 Address
31、 flow chart Implementation of driver function has two ways: one is driven by the module loading; two is the kernel directly load driver. The wireless network driver loads on the use of the latter. When the USB interface of LC63H device is inserted into the host, the specific process system load entr
32、ance point function, which is as shown in figure 8. Fig.8 the driver flowchart of system load 5 The actual application and verification The system studied in the ecological garden. The garden use the ground fixed spray irrigation and drip irrigation system, 9in accordance with the garden crops set s
33、ensor nodes in different deployment, each node is responsible for monitoring a regional soil temperature and humidity conditions. At the same time, each region by the competent power delivery and distribution pipe network of the branch pipe, each electromagnetic valve is connected with the irrigatio
34、n controller, drip irrigation and spray time is controlled by a controller for each road. Practice shows that the choice of the distance between nodes is 220 meters is the best, garden area is 1000 square meters, single bit error rate is 2%, in addition the system electromagnetic valve control preci
35、sion, better system stability. 6 Conclusions This paper puts forward the wireless sensor network technology scheme for automatic control field of garden water-saving irrigation, and design a set of landscape irrigation system based on wireless sensor network. The system has strong flexibility, safet
36、y and reliability, low power consumption, no need manual operation, avoid the wired access tedious and pitfalls can work stably for a long time, is a complement to the wired control mode. At the same time the paper for landscape irrigation system in the software based on the fuzzy 10control of tempe
37、rature and humidity based algorithm, so that the system has higher reliability, practicability, and improves the efficiency of using landscape control system is practical and irrigation water. Wireless sensor network can not only used in gardens, agricultural fields in the sensor data acquisition, m
38、eter reading, battery valve remote control, there are broad prospects for Home Furnishing intelligent, automatic meter reading, remote monitoring and other fields. Reference 1 Mitra A, Najjar W, Bhuyan L.Compiling PCRE to FPGA for aceelerating SNORT IDSJ.In Proeeedings of the 3rd ACM/IEEE Symposium
39、On Achiteeture for networking and communication systems, Deeember, 2007 2 Bispo J C, Sourdis I, Cardoso J M.Vassiliadis S.Regular expression matehing for reconfigurable Packet inspectionJ.In IEEE International Conference on Field Programmable Technology (FPT06), Dee.2006:119-126 3 Cho Y H, Mangione-Smith W H.A partemmatching coproeessor for network seeurityC.In Proceedings of the 42nd Alinual Conf.onDesign Automation (DAC05), Jun.2005:234-239 4 Paolieri M, Bonesan I, Santambrogio M D.ReCPU:a Parallel and Pipelined Architecture for Regular Expression