Keywords

1 Introduction

With the improvement of people’s living standards, people have set higher demands on food. Quinoa is not only rich in nutrients of all kinds for human needs, but also possesses high-quality proteins close to the amino acid composition of human body. It is an important function to increase the nutritional value of food for the population food. In the meantime [1], the development of the quinoa industry can reduce the human demand for animal protein to a certain extent, thereby reducing the input of livestock, pens and human resources in the breeding industry, the occupation of cultivated land in the breeding grounds, and the pollution of animal excrement to the environment [2].

Based on this, this project designs and develops a set of traceability system of quinoa based on Internet of Things. The system core technology and equipment for independent development, the overall high level of technology, and complete sets of equipment costs and prices much lower than similar foreign products, with the support of specialized software, the monitoring data can be quantified, scientific decision-making [3]. Provide a typical demonstration reference for the traditional agricultural production manual mode to the agricultural informationization, intelligent and large-scale production mode transformation.

1.1 The Research Status

LIN Fengsheng and FU Xiang introduce through the analysis on the whole circulation process for imported food, a quality safety traceability system based on quality safety critical control point analysis was proposed [4] in《Quality Traceability System for Imported Food Based on Critical Control Point Analysis》, FENG Chun-wei and GONG You-hui introduce a fruit and vegetable traceability system on the strength of the Internet of things (IoT) technology and the GPS and 3G/4G technology was designed [5] in《Design on IoT-based Fruit and Vegetable Traceability System》.

2 Main Research Content

Based on the Internet of Things technology, this project has perfected a set of traceability system for quality monitoring records analysis of quinoa planting, processing, transporting and warehousing processes. The project focuses more on the planting and processing of quinoa, collecting, transmitting and storing the data of the key processes such as quinoa planting and processing through the Internet of Things technology so that the products have a unique identification throughout the process and are added The early warning system to ensure the controllable operation of product quality. The main technologies of this project include the following aspects.

2.1 Planting Process Can Be Controlled

In quinoa is adopting the data entry of planting stage, using the mature technology of Internet of things will quinoa grown stage of resource allocation and other important information into the database, the data in the process of planting and processing real-time monitoring, calculated by the system science, irrigation, fertilization and pesticide dosage, promoting the scientific and standardized planting quinoa production [6, 7].

Use at present relatively mature and stable ZigBee transmission technology in the field of network communication, at the same time establish a wireless sensor network to complete the quinoa growth environment of soil temperature, soil humidity, illumination, temperature, air temperature, air humidity, and crop status and automatic data acquisition of agricultural information. Field workbench USES solar power systems provide energy, the use of GPRS network communication to transmit data through the network to the server, the server for data receiving, parsing, storage, forwarding, etc.

2.2 The Whole Process of Data Monitoring

The traceability system supported by the database, using the unique identification code, by marking a design and labeled data interaction to complete the underlying structures of the traceability system. In logistics link to use automatic qr code identification record all data information, realize the traceability of the product, at the same time, using a large amount of data to support the warning system for the whole digital early warning information.

2.3 Key Information Traceability

Establish a traceability website, use the database to organize the above information storage, through the product above the unique identification code can be queried on the network quinoa products in the planting, processing and transportation links and other important information, making quinoa food safety is not It is an empty talk.

3 Stem Design

The system mainly includes hardware layer, network layer, data layer and display layer, a total of five aspects. Among them, the hardware layer mainly includes various types of sensors during the quinoa growing stage and RFID and two-dimensional code scanning equipment installed on per processing equipment during the quinoa processing. The hardware layer is mainly responsible for all aspects of the basic data acquisition. The network layer mainly includes zigbee transmission network and GPRS transmission gateway, which is mainly responsible for transmitting the basic data stably and efficiently to the server. The data layer mainly includes quinoa traceability server and database, receives a large amount of basic data through the server, parses, organizes and analyzes and finally stores it into the database, supplemented by a small amount of manual data entry to provide complete data support for the entire traceability system. The display layer mainly includes the data display set up by the quinoa cultivation site and the quinoa traceability website. Data display real-time display of the basic data, but also for quinoa planting workers to provide real-time warning information. The Traceability Web site provides a stable and secure check-in point for end consumers who purchase quinoa products. Quercetin can be found on the website using the unique identification code on the quinoa bag to find out where the quinoa is grown, produced, and shipped of the important information.

The overall design of the system as shown below (Fig. 1):

Fig. 1.
figure 1

System main architecture diagram

3.1 Hardware Layer

The main role of the hardware layer is responsible for the detection of quinoa planting and other related aspects of the data. It consists of soil sensors, air sensors, light sensors, water temperature sensors, several smart switches, several environmental monitoring cameras placed in quinoa fields and several processing monitoring cameras placed in the processing sites, sensors for collecting other parameters, Sensor and data transmission port one by one corresponding to the Zigbee nodes together.

Some of these data acquisition ranges are shown in the following table (Table 1).

Table 1. Measurement data sheet

3.2 Network Layer

The main function of the network layer is to collect the data collected by the hardware layer and send it to the server quickly and stably. Through Zigbee node self-organizing network will be carried by each node data aggregated to the Zigbee gateway, the Zigbee gateway will be aggregated data sent to the GPRS gateway. The format that the GPRS gateway converts the data into the byte array is sent to the server via the network.

3.3 Data Layer

The main function of the data layer is to receive, organize, analyze, store and forward data. Data layer by the server and database composed of two parts. After the server receives the data sent by the GPRS gateway, the server analyzes the data, analyzes it and stores it in the database. The main function of the database is to store all the data generated from all traceability systems and provide data support for early warning and intelligent control of traceability systems.

3.3.1 The Server

Server is mainly composed of two modules, respectively is data reception processing module and data sending module.

Data receiving and processing module of the main workflow: First, the server to open a dedicated Socket monitoring function, the establishment of a data transmission between the TCP/IP data transmission connection. Then, the data observing node collects the data to its designated GPRS gateway through the wireless network, and finally sends the collected environment data to the specified IP address (i.e., the IP address of the server) [8, 9]. In order to achieve the function of sending data sent by the data sending gateway at any time. Finally, the accepted data is processed and stored in the database, and displayed on the server side. So as to achieve the remote monitoring of quinoa growing environment-related data results.

Some of these data processing rules are shown in the following table (Table 2):

Table 2. Data analysis table

Data sending module: in order to reach the timely detection of environmental data, data needs to be sent to the corresponding screen at the same time for technical personnel in time to see. So the server will also need a data interface, through the Socket and TCP/TP protocol to establish server and display the transport connection, according to a specified transport protocol to forward the server receives the data to the display.

Server history data query results as shown below (Fig. 2):

Fig. 2.
figure 2

Historical data query

3.4 Display Layer

Display layer mainly by the work of the display screen and quinoa traceability site consists of two parts. Work display and then receive the server to send the relevant parameters of the data and warning information after the data is displayed on the led display for staff and farmers to view; quinoa traceability site is mainly used to display information related to quinoa, such as quinoa nutrition Value, quinoa cultivation methods, quinoa food practices and other relevant information. One of the more important functions is to provide consumers and other quinoa users with a traceability query that can be queried through the identification code on the quinoa bag to find that quinoa reaches the consumer’s hands from planting to growth to production and delivery.

The traceability of query result display as shown in the figure below (Fig. 3):

Fig. 3.
figure 3

The query result

4 Summary

4.1 The Main Achievement of This Article

The system uses GPS, sensor technology and wireless network technology to set up a wireless sensor network for the production monitoring of quinoa to realize the real-time collection and storage of quinoa planting production environment information; establish the early warning model of quinoa disease based on data mining; Real-time collection of data, historical data and models and other data to establish relevant database 4; integrated WebGIS, GPS, data mining, expert systems and Internet of Things technology, developed a quinoa traceability system based on the Internet of Things.

4.2 The Next Step

  • The equipment cost is higher, higher energy consumption wireless sensor network (WSN), the next step “towards low cost and high reliability, energy-saving, environmentally friendly and intelligent five direction.

  • The precision of forecasting model is not very high, the next step according to the data, the improved model, improve the model accuracy.

  • The system functions and drawbacks, as further application, constantly improve and improve the system.