Design and Implementation of Agriculture Industrialization APP Based on Industrial 4

This paper designs and implements a wisdom agriculture platform client based on Android. According to the need of wisdom agriculture and achieve goal of agricultural industrialization, combined with mode of operation of agricultural production, this paper analyses agricultural production related business processes and information systems process from services provided the supplier's perspective. The system realizes the data synchronization between server and client and the real-time monitoring and control of the production condition of each greenhouse. At the same time it provides real-time production of the majority farmers for agricultural experts and leadership and improves the efficiency of agricultural management.


Introduction
With the integration of information technology and industrial technology, the Deep interleaving of Network, computer technology, information technology, software and automation technology to create a new value model.We call the virtual network -physical system industry 4.The system is associated with resource, information, goods and people.It will promote the formation of a new platform for information and physical systems.The new information system platform can connect all the people, objects and systems.It will provide a comprehensive, fast, safe and reliable service and application business processes.And it will support the mobile terminal devices and the collaborative manufacturing, service, analysis and forecasting processes of the business networks.
In the new era, the goal of agricultural industrialization is to make agricultural production and management intelligent, convenient, scientific and efficient.It can provide farmers with agricultural production related information, so as to establish market-oriented, specialized agriculture, improve the efficiency of agricultural production, and realize the modernization of agriculture.As a large agricultural country, it is important to make full use of the limited resources to develop the agricultural industry and improve the grain yield.
Our government attaches great importance to the development of agriculture in our country.With the continuous development of the Internet of things technology, more and more technology is also applied to agricultural production.At present intelligent agriculture has achieved the monitoring of the various indicators of agricultural greenhouses, and it promotes the development of agricultural industry.However, these platforms transmit to the farmer's information in a single, fragmented and so on, and they cannot provide a strong guidance to farmers.So the role of intelligent agriculture will be greatly reduced.Therefore, a rapid configuration, rapid implementation, rapid application, rapid and effective agricultural information technology application platform will be very obvious advantages.

System Framework Design
The so-called wisdom agricultural solutions is the system can automatically open or close the specified equipment by collecting the environmental parameters such as temperature, soil temperature, CO2 concentration, humidity signal, illumination, humidity and dew point temperature.It can be processed at any time according to user needs.It provides a scientific basis for the automatic monitoring of ecological information, the automatic control and intelligent management of the environment.And it can realize remote control of temperature and humidity in greenhouse by collecting data such as temperature sensor and transmitting data through wireless signal transceiver module.
From the need of wisdom agriculture and the goal of agricultural industrialization, combined with mode of operation of agricultural production, it analysis agricultural production related business processes and information systems process from the perspective of the service provider.At the same time it takes into account the actual demand of agriculture and information transfer between the two sides of the supply and demand in the planning of its management system, and it highlights the business characteristics of wisdom agriculture.
The whole system framework as shown below: Figure 1.System Framework Server: It is mainly responsible for the management of the system users, the current data collection.it is responsible for adapting the protocol connection between various clients, and It can feed the data which the client needs back to the client through the protocol interface.It can also receive control information from the client and control the corresponding control unit.
Client: It is responsible for displaying and controlling the data and status of the system, including the implementation of data curve charts, historical data show and manual control.
The communication protocol format: It includes JSON and SOAP two data format protocol.This has nothing to do with the specific communication mode.
Communication mode: It includes HTTP and SOCKET two communication modes.
The log module: The log function of server is used to record the information of client, operation type, operation time and other relevant information.It can also browse logs.

The Design of The Server Module
The design of the server module as shown below: This paper focuses on the design and implementation of the client, so the server part is not the focus of this paper.

The Design Of The Client Module
The design of the client module as shown below: Figure 3. the ClientModule

Functional Design
The user module: This includes user registration, login, etc.
Administrator permissions: It can be manually controlled and finish each sensor's threshold setting.
Environmental indicators: It can display the current value of all sensor data in real time, and it can be judged that an alarm is needed according to each sensor threshold.
The data chart: This includes real-time data show and historical data show.
Automatic and manual control switch: it provides two control modes, one is automatic control and the other is manual control.The function can be set in the system settings.
Sensor threshold setting: The client can set the maximum and minimum values for each sensor.The system will be based on the threshold to judge whether to enter the alarm state.
The communication module: The client can choose to communicate with the server using HTTP or SOCKET.
The protocol request module: The client can choose to interact with the server using the JSON or SOAP data format protocol.

The Protocol Interface Design
Communication between the client and the server uses the answer mode.That is, the client sends a request, the server receives it and it responds based on query results.For example, in the HTTP communication mode, the SOAP request content of the user login should be: Url agricultural monitoring data and the guidance of the development of intelligent agriculture.This paper hopes to make up for the deficiency of the existing market products, at the same time, it is close to the actual needs of the agricultural industry, and it can effectively promote the process of the intelligent agricultural development and promote the rapid development of the agricultural industry management, production, transportation, processing.