A vegetable quality safety traceability system based on the Internet of Things and its use method

By using the combination of Internet of Things technology and blockchain technology in the vegetable production and sales process, the quality and safety traceability of vegetables in the entire process is achieved, which solves the problems of high detection cost and difficulty in traceability in the existing technology, and improves the safety of traceability. sex and effectiveness.

CN118096186BActive Publication Date: 2025-01-21CAIMADAME ENTERPRISE MANAGEMENT CO LTD

Patent Information

Application Number
CN202410241592.X
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2024-03-04
Publication Date
2025-01-21
Estimated Expiration
2044-03-04

AI Technical Summary

Technical Problem

The existing technology is difficult to achieve quality and safety traceability of the entire process of vegetables from sowing to selling, resulting in high testing costs and difficult traceability.

Method used

A vegetable quality and safety traceability system based on the Internet of Things is used to collect and record information on the entire vegetable process through the connection of vegetable planting control terminals, transportation and warehousing control terminals, inspection control terminals, sales control terminals and the BaaS blockchain platform, and through the district Blockchain technology is used for data storage and traceability.

Benefits of technology

It realizes the traceability of vegetables throughout the entire process from sowing to sales, reduces testing costs, improves the safety and effectiveness of traceability, and increases the transparency of product quality management through the classification of vegetable quality evaluation indexes.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118096186B_ABST
    Figure CN118096186B_ABST
Patent Text Reader

Abstract

The present invention discloses a vegetable quality safety traceability system based on the Internet of Things and a method for using the system, comprising: a vegetable planting control terminal, a vegetable transportation and storage control terminal 1, a vegetable transportation and storage control terminal 2, a vegetable detection control terminal, a vegetable sales control terminal, a BaaS blockchain platform and a client mobile terminal; the vegetable planting control terminal is used for collecting information on the process from sowing to picking and packaging of vegetables; the vegetable transportation and storage control terminal 1 is used for collecting information on the transportation process of vegetables from a planting base to storage; the vegetable transportation and storage control terminal 2 is used for collecting information on the process from warehousing to shipping of vegetables; the BaaS blockchain platform is used for recording information on the entire process of vegetables from sowing, growth, picking, packaging, transportation, warehousing, market detection and sale, and realizes supervision and rating of the entire process from sowing to sales of vegetables through a QR code authorization method, thereby ensuring the safety and effectiveness of vegetable quality traceability.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the field of vegetable quality and safety traceability, and in particular to a vegetable quality and safety traceability system based on the Internet of Things and a method of using the system. Background Art

[0002] The quality and safety of vegetables is a major issue concerning the national economy and people's livelihood. However, due to the short time period for vegetables to be put on the market and the relatively long supply chain from growth to circulation, it is difficult to effectively supervise each production and circulation link, resulting in high testing costs and difficulty in traceability.

[0003] With the development of science and technology, vegetable quality traceability has also emerged based on the Internet of Things technology traceability method, such as Chinese patent CN110580627A discloses a vegetable quality and safety traceability system based on the Internet of Things, which mainly detects and traces pesticide residues. For example, Chinese patent CN113203436A discloses a farmland vegetable quality and safety real-time detection system and method, which mainly detects the quality and safety of vegetables during the growth process, and cannot achieve the whole process detection and traceability from farmland to sale. Therefore, how to effectively use the Internet of Things technology, introduce blockchain technology, and use the vegetable quality evaluation index formula to trace and evaluate the information of the whole process of vegetables from sowing, growth, picking, packaging, transportation, warehousing, market detection and sale is a technical problem that urgently needs to be solved. Summary of the invention

[0004] In view of this, the present invention proposes a vegetable quality and safety traceability system based on the Internet of Things and a use method thereof to solve the existing vegetable quality and safety traceability problem.

[0005] The technical solution of the present invention is implemented as follows: On the one hand, the present invention provides a vegetable quality and safety traceability system based on the Internet of Things, which includes a vegetable planting control terminal, a vegetable transportation and storage control terminal 1, a vegetable transportation and storage control terminal 2, a vegetable detection control terminal, a vegetable sales control terminal, a BaaS blockchain platform and a customer mobile terminal;

[0006] The vegetable planting control terminal is connected to the 4G / 5G network of the BaaS blockchain platform to collect information about the entire process of vegetable planting, harvesting, and packaging, and send the data information to the BaaS blockchain platform in HTTP protocol;

[0007] The vegetable transportation and storage control terminal 1 is connected to the 4G / 5G network of the BaaS blockchain platform, and is used to collect information about the entire transportation process of vegetables from the planting base to the storage, and send the data information to the BaaS blockchain platform in HTTP protocol;

[0008] The vegetable transportation and storage control terminal 2 is connected to the 4G / 5G network of the BaaS blockchain platform, and is used to collect information about the entire process from the entry to the exit of vegetables, and send the data information to the BaaS blockchain platform in HTTP protocol;

[0009] The vegetable detection control terminal is connected to the 4G / 5G network of the BaaS blockchain platform to collect information on pesticide residues and heavy metal toxic substances in vegetables before they enter the market, and send the data information to the BaaS blockchain platform in HTTP protocol;

[0010] The vegetable sales control terminal is connected to the 4G / 5G network of the BaaS blockchain platform, and is used to collect basic information about vegetables from the time they enter the market until they are sold, and send the data information to the BaaS blockchain platform in HTTP protocol;

[0011] The BaaS blockchain platform is connected to the 4G / 5G network of the customer's mobile phone terminal, so that the customer's mobile phone terminal can communicate with the BaaS blockchain platform by scanning a code, displaying the quality grade of vegetables through the mobile phone and recording in detail the entire process information of vegetables from sowing, growth, picking, packaging, transportation, warehousing, market inspection and sale.

[0012] Preferably, the vegetable planting control terminal includes an air temperature and humidity probe, a light intensity probe, a CO2 concentration probe, a soil temperature and humidity probe, a heavy metal concentration probe, a pesticide residue biological probe, a GPS / BD locator, an enable / disable button, a barcode scanner, an MCU controller, a micro printer and a 4G / 5G module;

[0013] The air temperature and humidity probe, the light intensity probe, the CO2 concentration probe, the soil temperature and humidity probe, the heavy metal concentration probe, and the pesticide residue biological probe are respectively connected to the AD port of the MCU controller, and are used to receive air temperature and humidity, light intensity, CO2 concentration, soil temperature and humidity, heavy metal concentration, and pesticide residue degree signals and send the signals to the MCU controller via the AD port at 0-10V or 4-20mA;

[0014] The GPS / BD locator is connected to the TTL serial port 1 of the MCU controller, and is used to receive GPS or Beidou satellite positioning information and current time information and send the information to the MCU controller in TTL serial port mode;

[0015] The enable / disable button is connected to the I / O port of the MCU controller, and is used by the vegetable farmer to enable the vegetable planting control terminal when sowing and disable the vegetable planting control terminal when picking, and send the status information to the MCU controller in the form of high and low levels of the I / O port;

[0016] The barcode scanner is connected to the TTL serial port 2 of the MCU controller, and is used to scan and identify the information of the QR code on the vegetable seed package and send the information to the MCU controller in TTL serial port mode;

[0017] The micro printer is connected to the TTL serial port 3 of the MCU controller, and is used to receive the randomly generated two-dimensional code information sent by the MCU controller and print the information on the vegetable product packaging;

[0018] The MCU controller is connected to the TTL serial port 4 of the 4G / 5G module, and is used to receive the electrical signals sent by all probes and convert the electrical signals into digital signals through the MCU controller. At the same time, it receives the GPS / BD locator signal, the barcode scanner signal and the randomly generated QR code 1 information and sends them to the BaaS blockchain platform through the 4G / 5G module.

[0019] The vegetable transportation and storage control terminal 1 and the vegetable transportation and storage control terminal 2 include an air temperature and humidity probe, a GPS / BD locator, a barcode scanner, an MCU controller, a micro printer and a 4G / 5G module;

[0020] The air temperature and humidity probe is connected to the AD port of the MCU controller, and is used to receive air temperature and humidity signals and send the signals to the MCU controller via the AD port at 0-10V or 4-20mA;

[0021] The GPS / BD locator is connected to the TTL serial port 1 of the MCU controller, and is used to receive GPS or Beidou satellite positioning information and current time information and send the information to the MCU controller in TTL serial port mode;

[0022] The barcode scanner is connected to the TTL serial port 2 of the MCU controller, and is used to scan and identify the information of the QR code on the vegetable packaging and send the information to the MCU controller in TTL serial port mode;

[0023] The micro printer is connected to the TTL serial port 3 of the MCU controller, and is used to receive the randomly generated two-dimensional code information sent by the MCU controller and print the information on the vegetable commodity packaging when the vegetable transportation is completed or the warehouse is completed, replacing the original two-dimensional code information;

[0024] The MCU controller is connected to the TTL serial port 4 of the 4G / 5G module, and is used to receive the electrical signal sent by the air temperature and humidity probe and convert the electrical signal into a digital signal through the MCU controller, and at the same time receive the GPS / BD locator signal, the barcode scanner signal and the randomly generated QR code information and send them to the BaaS blockchain platform through the 4G / 5G module.

[0025] Preferably, the vegetable transport and storage control terminal 1 and the vegetable transport and storage control terminal 2 include an air temperature and humidity probe, a GPS / BD locator, a barcode scanner, an MCU controller, a micro printer and a 4G / 5G module;

[0026] The air temperature and humidity probe is connected to the AD port of the MCU controller, and is used to receive air temperature and humidity signals and send the signals to the MCU controller via the AD port at 0-10V or 4-20mA;

[0027] The GPS / BD locator is connected to the TTL serial port 1 of the MCU controller, and is used to receive GPS or Beidou satellite positioning information and current time information and send the information to the MCU controller in TTL serial port mode;

[0028] The barcode scanner is connected to the TTL serial port 2 of the MCU controller, and is used to scan and identify the information of the QR code on the vegetable packaging and send the information to the MCU controller in TTL serial port mode;

[0029] The micro printer is connected to the TTL serial port 3 of the MCU controller, and is used to receive the randomly generated two-dimensional code information sent by the MCU controller and print the information on the vegetable commodity packaging when the vegetable transportation is completed or the warehouse is completed, replacing the original two-dimensional code information;

[0030] The MCU controller is connected to the TTL serial port 4 of the 4G / 5G module, and is used to receive the electrical signal sent by the air temperature and humidity probe and convert the electrical signal into a digital signal through the MCU controller, and at the same time receive the GPS / BD locator signal, the barcode scanner signal and the randomly generated QR code information and send them to the BaaS blockchain platform through the 4G / 5G module.

[0031] Preferably, the vegetable detection control terminal includes a pesticide residue biological probe, a heavy metal ion concentration probe, a GPS / BD locator, a barcode scanner, an MCU controller, a micro printer and a 4G / 5G module;

[0032] The pesticide residue biological probe and the heavy metal ion concentration probe are connected to the AD port of the MCU controller to receive air temperature and humidity signals and send the signals to the MCU controller via the AD port at 0-10V or 4-20mA;

[0033] The GPS / BD locator is connected to the TTL serial port 1 of the MCU controller, and is used to receive GPS or Beidou satellite positioning information and current time information and send the information to the MCU controller in TTL serial port mode;

[0034] The barcode scanner is connected to the TTL serial port 2 of the MCU controller, and is used to scan and identify the information of the QR code on the vegetable packaging and send the information to the MCU controller in TTL serial port mode;

[0035] The micro printer is connected to the TTL serial port 3 of the MCU controller, and is used to receive the randomly generated two-dimensional code information sent by the MCU controller and print out the information on the vegetable commodity packaging when the vegetables enter the market after completing the pesticide residue detection and heavy metal ion detection, replacing the original two-dimensional code information;

[0036] The MCU controller is connected to the TTL serial port 4 of the 4G / 5G module, and is used to receive the electrical signals sent by the pesticide residue biological probe and the heavy metal ion concentration probe and convert the electrical signals into digital signals through the MCU controller, and at the same time receive the GPS / BD locator signal, the barcode scanning gun signal and the randomly generated QR code information and send them to the BaaS blockchain platform through the 4G / 5G module.

[0037] Preferably, the vegetable sales control terminal includes a GPS / BD locator, a barcode scanner, an MCU controller and a 4G / 5G module;

[0038] The GPS / BD locator is connected to the TTL serial port 1 of the MCU controller, and is used to receive GPS or Beidou satellite positioning information and current time information and send the information to the MCU controller in TTL serial port mode;

[0039] The barcode scanner is connected to the TTL serial port 2 of the MCU controller, and is used to scan and identify the information of the QR code on the vegetable packaging and send the information to the MCU controller in TTL serial port mode;

[0040] The MCU controller is connected to the TTL serial port 3 of the 4G / 5G module, and is used to receive the barcode scanning gun signal and the randomly generated QR code information and send it to the BaaS blockchain platform through the 4G / 5G module.

[0041] Furthermore, the MCU controller hardware is composed of STM32F407VET6 and its conditioning circuit, and is compiled using KeiluVision5 software.

[0042] On the other hand, the present invention provides a method for using a vegetable quality and safety traceability system based on the Internet of Things; the method comprises the following steps:

[0043] S1. Press the enable button, and the vegetable planting control terminal sends the QR code on the vegetable seed package, GPS / BD positioning, current time, air temperature, air humidity, light intensity, CO2 concentration, soil temperature, soil humidity, heavy metal concentration, and pesticide residue information to the IP address and port number of the BaaS blockchain platform every 60 minutes until the disable button is pressed when the vegetables are picked. The vegetable packaging QR code 1 is randomly generated and printed, and the QR code 1 is sent to the BaaS blockchain platform at the same time;

[0044] S2. The BaaS blockchain platform receives information until it receives the QR code 1 information on the vegetable packaging, and calculates the vegetable planting time T a , average air temperature Average air humidity Average light intensity Average CO2 concentration Average soil temperature Average soil moisture Average heavy metal concentration Average pesticide residue level Information, authorizing the vegetable transport storage control terminal 1 installed on the transport vehicle to start working;

[0045] S3. The vegetable transport storage control terminal 1 scans the QR code 1 with a barcode scanner to confirm that the vegetables have entered the transport vehicle and sends the vehicle GPS / BD location, current time, compartment air temperature, and compartment air humidity information to the IP address and port number of the BaaS blockchain platform every 60 minutes until the barcode scanner scans the QR code again until the vegetables leave the vehicle. Then, a new vegetable packaging QR code 2 is randomly generated and printed to replace QR code 1, and QR code 2 is sent to the BaaS blockchain platform at the same time;

[0046] S4. After receiving the information, the BaaS blockchain platform calculates the vegetable transportation time T after receiving the new vegetable packaging QR code 2 information. b , average cabin air temperature Average cabin air humidity Authorize the vegetable transport storage control terminal 2 installed in the warehouse to start working;

[0047] S5. The vegetable transport storage control terminal 2 scans the QR code 2 with a barcode scanner to confirm that the vegetables have entered the warehouse and sends the warehouse GPS / BD location, current time, warehouse air temperature, and warehouse air humidity information to the IP address and port number of the BaaS blockchain platform every 60 minutes until the barcode scanner scans the QR code 2 again before the vegetables are shipped out of the warehouse. Then, a new vegetable packaging QR code 3 is randomly generated and printed to replace the QR code 2, and the QR code 3 is sent to the BaaS blockchain platform at the same time;

[0048] S6. After receiving the information, the BaaS blockchain platform calculates the vegetable transportation time T after receiving the new vegetable packaging QR code 3 information. c , Average warehouse air temperature Average cabin air humidity Authorize the vegetable detection control terminal installed at the market entrance to start working;

[0049] S7. The vegetable detection control terminal scans QR code 3 with a barcode scanner to confirm that the vegetables have entered the market and sends the market GPS / BD location, current time, pesticide residue level and heavy metal ion concentration to the IP address and port number of the BaaS blockchain platform, then randomly generates and prints a new vegetable packaging QR code 4 to replace QR code 3, and sends QR code 4 to the BaaS blockchain platform at the same time;

[0050] S8. The BaaS blockchain platform receives information until it receives the new QR code 4 information on the vegetable packaging and records the pesticide residue level Heavy metal ion concentration Authorize the vegetable sales control terminal installed at the seller to start working;

[0051] S9. The vegetable sales control terminal scans the QR code 4 through a barcode scanner to confirm that the vegetables have entered the seller and sends the seller's GPS / BD location and current time to the IP address and port number of the BaaS blockchain platform;

[0052] S10.BaaS blockchain platform will T a , T b , T c Substitute the vegetable quality evaluation index formula and calculate the quality evaluation index, and classify the vegetable quality grades according to the results;

[0053] S11. Customers use their mobile phones to scan the QR code 4 to trace the entire process of vegetable planting, growth, picking, packaging, transportation, storage, market testing and sales, as well as the quality of the vegetables.

[0054] The vegetable quality safety traceability system based on the Internet of Things and the use method thereof of the present invention have the following beneficial effects compared with the prior art:

[0055] (1) The vegetable planting control terminal, vegetable transportation and storage control terminal, vegetable inspection control terminal, and vegetable sales control terminal are used to realize the traceability of the entire process of vegetable planting, growth, picking, packaging, transportation, storage, market inspection, and sales;

[0056] (2) Using the QR code authorization method in blockchain technology, an enterprise-level alliance chain management system was established to conduct safe and effective supervision of the vegetable circulation process;

[0057] (3) A vegetable quality evaluation index formula was constructed, and vegetables were graded according to the vegetable quality evaluation index. The vegetables can then be queried and traced through the customer’s mobile phone. BRIEF DESCRIPTION OF THE DRAWINGS

[0058] In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings required for use in the embodiments or the description of the prior art will be briefly introduced below. Obviously, the drawings described below are only some embodiments of the present invention. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying creative work.

[0059] Figure 1 This is a structural diagram of the vegetable quality and safety traceability system based on the Internet of Things of the present invention;

[0060] Figure 2 This is a structural diagram of the vegetable planting control terminal of the present invention;

[0061] Figure 3 This is a structural diagram of the vegetable transportation and storage control terminal of the present invention;

[0062] Figure 4 This is a structural diagram of the vegetable detection control terminal of the present invention;

[0063] Figure 5 This is a structural diagram of the vegetable sales control terminal of the present invention;

[0064] Figure 6 The present invention is a workflow diagram of the vegetable quality and safety traceability system based on the Internet of Things and its use method. DETAILED DESCRIPTION

[0065] The following will be combined with the embodiments of the present invention to clearly and completely describe the technical solutions in the embodiments of the present invention. Obviously, the described embodiments are only part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of the present invention.

[0066] Embodiment 1

[0067] like Figure 1-5 As shown, a vegetable quality and safety traceability system based on the Internet of Things of the present invention includes a vegetable planting control terminal, a vegetable transportation and storage control terminal 1, a vegetable transportation and storage control terminal 2, a vegetable detection control terminal, a vegetable sales control terminal, a BaaS blockchain platform and a customer mobile terminal;

[0068] The vegetable transportation and storage control terminal 1 is connected to the 4G / 5G network of the BaaS blockchain platform, and is used to collect information about the entire transportation process of vegetables from the planting base to the storage, and send the data information to the BaaS blockchain platform in HTTP protocol;

[0069] The vegetable transportation and storage control terminal 2 is connected to the 4G / 5G network of the BaaS blockchain platform, and is used to collect information about the entire process from the entry to the exit of vegetables, and send the data information to the BaaS blockchain platform in HTTP protocol;

[0070] The vegetable detection control terminal is connected to the 4G / 5G network of the BaaS blockchain platform to collect information on pesticide residues and heavy metal toxic substances in vegetables before they enter the market, and send the data information to the BaaS blockchain platform in HTTP protocol;

[0071] The vegetable sales control terminal is connected to the 4G / 5G network of the BaaS blockchain platform, and is used to collect basic information about vegetables from the time they enter the market until they are sold, and send the data information to the BaaS blockchain platform in HTTP protocol;

[0072] The BaaS blockchain platform is connected to the 4G / 5G network of the customer's mobile phone terminal, so that the customer's mobile phone terminal can communicate with the BaaS blockchain platform by scanning a code, displaying the quality grade of vegetables through the mobile phone and recording in detail the entire process information of vegetables from sowing, growth, picking, packaging, transportation, warehousing, market inspection and sale.

[0073] This system uses vegetable planting control terminals, vegetable transportation and storage control terminals, vegetable detection control terminals, vegetable sales control terminals, BaaS blockchain platform and customer mobile terminals to realize a vegetable quality and safety traceability system based on the Internet of Things. The system combines the Internet of Things technology and blockchain technology, and realizes the supervision and rating of the entire process of vegetables from sowing to sales through QR code authorization, ensuring the safety and effectiveness of vegetable quality traceability; through design, simulation and verification, a modular product is formed, which can realize rapid transplantation between different platforms and accelerate the product development process.

[0074] The vegetable planting control terminal includes an air temperature and humidity probe, a light intensity probe, a CO2 concentration probe, a soil temperature and humidity probe, a heavy metal concentration probe, a pesticide residue biological probe, a GPS / BD locator, an enable / disable button, a barcode scanner, an MCU controller, a micro printer and a 4G / 5G module;

[0075] The air temperature and humidity probe, the light intensity probe, the CO2 concentration probe, the soil temperature and humidity probe, the heavy metal concentration probe, and the pesticide residue biological probe are respectively connected to the AD port of the MCU controller, and are used to receive air temperature and humidity, light intensity, CO2 concentration, soil temperature and humidity, heavy metal concentration, and pesticide residue degree signals and send the signals to the MCU controller via the AD port at 0-10V or 4-20mA;

[0076] The GPS / BD locator is connected to the TTL serial port 1 of the MCU controller, and is used to receive GPS or Beidou satellite positioning information and current time information and send the information to the MCU controller in TTL serial port mode;

[0077] The enable / disable button is connected to the I / O port of the MCU controller, and is used by the vegetable farmer to enable the vegetable planting control terminal when sowing and disable the vegetable planting control terminal when picking, and send the status information to the MCU controller in the form of high and low levels of the I / O port;

[0078] The barcode scanner is connected to the TTL serial port 2 of the MCU controller, and is used to scan and identify the information of the QR code on the vegetable seed package and send the information to the MCU controller in TTL serial port mode;

[0079] The micro printer is connected to the TTL serial port 3 of the MCU controller, and is used to receive the randomly generated two-dimensional code information sent by the MCU controller and print the information on the vegetable product packaging;

[0080] The MCU controller is connected to the TTL serial port 4 of the 4G / 5G module, and is used to receive the electrical signals sent by all probes and convert the electrical signals into digital signals through the MCU controller. At the same time, it receives the GPS / BD locator signal, the barcode scanner signal and the randomly generated QR code 1 information and sends them to the BaaS blockchain platform through the 4G / 5G module.

[0081] The vegetable transportation and storage control terminal 1 and the vegetable transportation and storage control terminal 2 include an air temperature and humidity probe, a GPS / BD locator, a barcode scanner, an MCU controller, a micro printer and a 4G / 5G module;

[0082] The air temperature and humidity probe is connected to the AD port of the MCU controller, and is used to receive air temperature and humidity signals and send the signals to the MCU controller via the AD port at 0-10V or 4-20mA;

[0083] The GPS / BD locator is connected to the TTL serial port 1 of the MCU controller, and is used to receive GPS or Beidou satellite positioning information and current time information and send the information to the MCU controller in TTL serial port mode;

[0084] The barcode scanner is connected to the TTL serial port 2 of the MCU controller, and is used to scan and identify the information of the QR code on the vegetable packaging and send the information to the MCU controller in TTL serial port mode;

[0085] The micro printer is connected to the TTL serial port 3 of the MCU controller, and is used to receive the randomly generated two-dimensional code information sent by the MCU controller and print the information on the vegetable commodity packaging when the vegetable transportation is completed or the warehouse is completed, replacing the original two-dimensional code information;

[0086] The MCU controller is connected to the TTL serial port 4 of the 4G / 5G module, and is used to receive the electrical signal sent by the air temperature and humidity probe and convert the electrical signal into a digital signal through the MCU controller, and at the same time receive the GPS / BD locator signal, the barcode scanner signal and the randomly generated QR code information and send them to the BaaS blockchain platform through the 4G / 5G module.

[0087] The vegetable transport and storage control terminal 1 and the vegetable transport and storage control terminal 2 include an air temperature and humidity probe, a GPS / BD locator, a barcode scanner, an MCU controller, a micro printer and a 4G / 5G module;

[0088] The air temperature and humidity probe is connected to the AD port of the MCU controller, and is used to receive air temperature and humidity signals and send the signals to the MCU controller via the AD port at 0-10V or 4-20mA;

[0089] The GPS / BD locator is connected to the TTL serial port 1 of the MCU controller, and is used to receive GPS or Beidou satellite positioning information and current time information and send the information to the MCU controller in TTL serial port mode;

[0090] The barcode scanner is connected to the TTL serial port 2 of the MCU controller, and is used to scan and identify the information of the QR code on the vegetable packaging and send the information to the MCU controller in TTL serial port mode;

[0091] The micro printer is connected to the TTL serial port 3 of the MCU controller, and is used to receive the randomly generated two-dimensional code information sent by the MCU controller and print the information on the vegetable commodity packaging when the vegetable transportation is completed or the warehouse is completed, replacing the original two-dimensional code information;

[0092] The MCU controller is connected to the TTL serial port 4 of the 4G / 5G module, and is used to receive the electrical signal sent by the air temperature and humidity probe and convert the electrical signal into a digital signal through the MCU controller, and at the same time receive the GPS / BD locator signal, the barcode scanner signal and the randomly generated QR code information and send them to the BaaS blockchain platform through the 4G / 5G module.

[0093] The vegetable detection control terminal includes a pesticide residue biological probe, a heavy metal ion concentration probe, a GPS / BD locator, a barcode scanner, an MCU controller, a micro printer and a 4G / 5G module;

[0094] The pesticide residue biological probe and the heavy metal ion concentration probe are connected to the AD port of the MCU controller to receive air temperature and humidity signals and send the signals to the MCU controller via the AD port at 0-10V or 4-20mA;

[0095] The GPS / BD locator is connected to the TTL serial port 1 of the MCU controller, and is used to receive GPS or Beidou satellite positioning information and current time information and send the information to the MCU controller in TTL serial port mode;

[0096] The barcode scanner is connected to the TTL serial port 2 of the MCU controller, and is used to scan and identify the information of the QR code on the vegetable packaging and send the information to the MCU controller in TTL serial port mode;

[0097] The micro printer is connected to the TTL serial port 3 of the MCU controller, and is used to receive the randomly generated two-dimensional code information sent by the MCU controller and print out the information on the vegetable commodity packaging when the vegetables enter the market after completing the pesticide residue detection and heavy metal ion detection, replacing the original two-dimensional code information;

[0098] The MCU controller is connected to the TTL serial port 4 of the 4G / 5G module, and is used to receive the electrical signals sent by the pesticide residue biological probe and the heavy metal ion concentration probe and convert the electrical signals into digital signals through the MCU controller, and at the same time receive the GPS / BD locator signal, the barcode scanning gun signal and the randomly generated QR code information and send them to the BaaS blockchain platform through the 4G / 5G module.

[0099] The vegetable sales control terminal includes a GPS / BD locator, a barcode scanner, an MCU controller and a 4G / 5G module;

[0100] The GPS / BD locator is connected to the TTL serial port 1 of the MCU controller, and is used to receive GPS or Beidou satellite positioning information and current time information and send the information to the MCU controller in TTL serial port mode;

[0101] The barcode scanner is connected to the TTL serial port 2 of the MCU controller, and is used to scan and identify the information of the QR code on the vegetable packaging and send the information to the MCU controller in TTL serial port mode;

[0102] The MCU controller is connected to the TTL serial port 3 of the 4G / 5G module, and is used to receive the barcode scanning gun signal and the randomly generated QR code information and send it to the BaaS blockchain platform through the 4G / 5G module.

[0103] The MCU controller hardware is composed of STM32F407VET6 and its conditioning circuit, and is compiled using KeiluVision 5 software.

[0104] The vegetable planting control terminal, vegetable transportation and storage control terminal, vegetable detection control terminal, vegetable sales control terminal, BaaS blockchain platform and customer mobile terminal in this embodiment realize a vegetable quality and safety traceability system based on the Internet of Things. The system combines the Internet of Things technology and the blockchain technology, and realizes the supervision and rating of the entire process of vegetables from sowing to sales through the QR code authorization method, thereby ensuring the safety and effectiveness of vegetable quality traceability; through design, simulation and verification, a modular product is formed, which can realize rapid transplantation between different platforms and accelerate the product development process.

[0105] Embodiment 2

[0106] A method for using a vegetable quality and safety traceability system based on the Internet of Things is provided, which uses the vegetable quality and safety traceability system based on the Internet of Things as described in Example 1, and includes the following steps:

[0107] S1. Press the enable button, and the vegetable planting control terminal sends the QR code on the vegetable seed package, GPS / BD positioning, current time, air temperature, air humidity, light intensity, CO2 concentration, soil temperature, soil humidity, heavy metal concentration, and pesticide residue information to the IP address and port number of the BaaS blockchain platform every 60 minutes until the disable button is pressed when the vegetables are picked. The vegetable packaging QR code 1 is randomly generated and printed, and the QR code 1 is sent to the BaaS blockchain platform at the same time;

[0108] S2. The BaaS blockchain platform receives information until it receives the QR code 1 information on the vegetable packaging, and calculates the vegetable planting time T a , average air temperature Average air humidity Average light intensity Average CO2 concentration Average soil temperature Average soil moisture Average heavy metal concentration Average pesticide residue level Information, authorizing the vegetable transport storage control terminal 1 installed on the transport vehicle to start working;

[0109] S3. The vegetable transport storage control terminal 1 scans the QR code 1 with a barcode scanner to confirm that the vegetables have entered the transport vehicle and sends the vehicle GPS / BD location, current time, compartment air temperature, and compartment air humidity information to the IP address and port number of the BaaS blockchain platform every 60 minutes until the barcode scanner scans the QR code again until the vegetables leave the vehicle. Then, a new vegetable packaging QR code 2 is randomly generated and printed to replace QR code 1, and QR code 2 is sent to the BaaS blockchain platform at the same time;

[0110] S4. After receiving the information, the BaaS blockchain platform calculates the vegetable transportation time T after receiving the new vegetable packaging QR code 2 information. b , average cabin air temperature Average cabin air humidity Authorize the vegetable transport storage control terminal 2 installed in the warehouse to start working;

[0111] S5. The vegetable transport storage control terminal 2 scans the QR code 2 with a barcode scanner to confirm that the vegetables have entered the warehouse and sends the warehouse GPS / BD location, current time, warehouse air temperature, and warehouse air humidity information to the IP address and port number of the BaaS blockchain platform every 60 minutes until the barcode scanner scans the QR code 2 again before the vegetables are shipped out of the warehouse. Then, a new vegetable packaging QR code 3 is randomly generated and printed to replace the QR code 2, and the QR code 3 is sent to the BaaS blockchain platform at the same time;

[0112] S6. After receiving the information, the BaaS blockchain platform calculates the vegetable transportation time T after receiving the new vegetable packaging QR code 3 information. c , Average warehouse air temperature Average cabin air humidity Authorize the vegetable detection control terminal installed at the market entrance to start working;

[0113] S7. The vegetable detection control terminal scans QR code 3 with a barcode scanner to confirm that the vegetables have entered the market and sends the market GPS / BD location, current time, pesticide residue level and heavy metal ion concentration to the IP address and port number of the BaaS blockchain platform, then randomly generates and prints a new vegetable packaging QR code 4 to replace QR code 3, and sends QR code 4 to the BaaS blockchain platform at the same time;

[0114] S8. The BaaS blockchain platform receives information until it receives the new QR code 4 information on the vegetable packaging and records the pesticide residue level Heavy metal ion concentration Authorize the vegetable sales control terminal installed at the seller to start working;

[0115] S9. The vegetable sales control terminal scans the QR code 4 through a barcode scanner to confirm that the vegetables have entered the seller and sends the seller's GPS / BD location and current time to the IP address and port number of the BaaS blockchain platform;

[0116] S10.BaaS blockchain platform will T a , T b , T c Substitute the vegetable quality evaluation index formula and calculate the quality evaluation index, and classify the vegetable quality grades according to the results;

[0117] S11. Customers use their mobile phones to scan the QR code 4 to trace the entire process of vegetable planting, growth, picking, packaging, transportation, storage, market testing and sales, as well as the quality of the vegetables.

[0118] Among them, the vegetable quality evaluation index formula is ,and Q a +Q b +Q c +Q d =1, here, Indicates that the parameters collected by the vegetable planting control terminal correspond to the 1st to 8th average data, A i Indicates that the parameters collected by the vegetable planting control terminal correspond to the 1st to 8th theoretical data, T a Indicates the vegetable planting time, T a Indicates the theoretical time for vegetable planting, Q ia Indicates the weights of the parameters collected by the vegetable planting control terminal corresponding to the 1st to 8th data, Q a It indicates the weight of vegetable planting control terminal in the vegetable quality evaluation index. Indicates that the parameters collected by the vegetable transport storage control terminal 1 correspond to the average data from the first to the second, B i Indicates that the parameters collected by the vegetable transport storage control terminal 1 correspond to the first to the second theoretical data, T b represents the transportation time of vegetables, T b0 represents the theoretical time of vegetable transportation, Q ib Indicates the weight of the parameters collected by the vegetable transport storage control terminal 1 corresponding to the first to second data, Q b It represents the weight of vegetable transportation and storage control terminal 1 in the vegetable quality evaluation index, The parameters collected by the vegetable transport storage control terminal 2 correspond to the average data from the first to the second, C i Indicates that the parameters collected by the vegetable transport storage control terminal 2 correspond to the first to the second theoretical data, T c Represents the storage time of vegetables, T c0represents the theoretical storage time of vegetables, Q ic Indicates the weight of the parameters collected by the vegetable transport storage control terminal 2 corresponding to the first to second data, Q c It represents the weight of vegetable transport storage control terminal 2 in the vegetable quality evaluation index, Indicates that the parameters collected by the vegetable detection control terminal correspond to the first to second average concentration data, D i Indicates that the parameters collected by the vegetable detection control terminal correspond to the first to second theoretical maximum allowable concentration data, Q id Indicates the weight of the parameters collected by the vegetable detection control terminal corresponding to the first to second data, Q d It indicates the weight of vegetable detection and control terminal in the vegetable quality evaluation index;

[0119] The vegetable quality grade is as follows: vegetables with a quality grade index greater than or equal to 0.9 are classified as special grade, vegetables with a quality grade index greater than or equal to 0.7 and less than 0.9 are classified as grade 1, and the rest are classified as grade 2.

[0120] like Figure 6 As shown, the vegetable planting control terminal monitors the process information of vegetables from sowing to picking and sends it to the blockchain platform, prints QR code 1, and the blockchain platform calculates the average values ​​of various parameters sent by the vegetable planting control terminal, and authorizes the vegetable transportation and warehousing control terminal to start working. The vegetable transportation and warehousing control terminal 1 monitors the information of the vegetable transportation process and sends it to the blockchain platform. Print QR code 2 to replace QR code 1, and the blockchain platform calculates the average values ​​of various parameters sent by the vegetable transportation and warehousing control terminal 1. The vegetable transportation and warehousing control terminal 2 is authorized to start working. The vegetable transportation and warehousing control terminal 2 monitors the information of the vegetable storage process and sends it to the blockchain platform. Print QR code 3 to replace QR code 2, and the blockchain platform calculates the average values ​​of various parameters sent by the vegetable transportation and warehousing control terminal, authorizes the vegetable detection control terminal to start working, and the vegetable detection control terminal monitors the information of the vegetable detection process and sends it to the blockchain platform. Print QR code 4 to replace QR code 3, and the blockchain platform records the parameter information sent by the vegetable detection control terminal, and authorizes the vegetable sales control terminal to start working. The vegetable sales control terminal monitors the information of the vegetable sales process and sends it to the blockchain platform. The blockchain platform calculates the vegetable quality evaluation index and divides the vegetable quality grade. The customer scans QR code 4 with a mobile phone to trace the vegetable information and quality.

[0121] The method for using the vegetable quality and safety traceability system based on the Internet of Things in this embodiment is completed in standard C language, adopts a modular design method, and uses vegetable planting control terminals, vegetable transportation and storage control terminals, vegetable detection control terminals, vegetable sales control terminals, BaaS blockchain platform and customer mobile terminals to achieve vegetable quality and safety traceability, and combines Internet of Things technology with blockchain technology. Through the QR code authorization method, it realizes the supervision and rating of the entire process from sowing to sales of vegetables, ensuring the safety and effectiveness of vegetable quality traceability.

[0122] The above description is only a preferred embodiment of the present invention and is not intended to limit the present invention. Any modifications, equivalent substitutions, improvements, etc. made within the spirit and principles of the present invention should be included in the protection scope of the present invention.

Claims

1. A vegetable quality and safety traceability method based on the Internet of Things, characterized by: The steps include: S1. Press the enable button, and the vegetable planting control terminal sends the QR code on the vegetable seed package, GPS / BD positioning, current time, air temperature, air humidity, light intensity, CO2 concentration, soil temperature, soil humidity, heavy metal concentration, and pesticide residue information to the IP address and port number of the BaaS blockchain platform every 60 minutes until the disable button is pressed when the vegetables are picked. The vegetable packaging QR code 1 is randomly generated and printed, and the QR code 1 is sent to the BaaS blockchain platform at the same time; S2. The BaaS blockchain platform receives information until it receives the QR code 1 information on the vegetable packaging, and calculates the vegetable planting time T a , average air temperature Average air humidity Average light intensity Average CO2 concentration Average soil temperature Average soil moisture Average heavy metal concentration Average pesticide residue level Information, authorizing the vegetable transport storage control terminal 1 installed on the transport vehicle to start working; S3. The vegetable transport storage control terminal 1 scans the QR code 1 with a barcode scanner to confirm that the vegetables have entered the transport vehicle and sends the vehicle GPS / BD location, current time, compartment air temperature, and compartment air humidity information to the IP address and port number of the BaaS blockchain platform every 60 minutes until the barcode scanner scans the QR code again until the vegetables leave the vehicle. Then, a new vegetable packaging QR code 2 is randomly generated and printed to replace QR code 1, and QR code 2 is sent to the BaaS blockchain platform at the same time; S4. After receiving the information, the BaaS blockchain platform calculates the vegetable transportation time T after receiving the new vegetable packaging QR code 2 information. b , average cabin air temperature Average cabin air humidity Authorize the vegetable transport storage control terminal 2 installed in the warehouse to start working; S5. The vegetable transport storage control terminal 2 scans the QR code 2 with a barcode scanner to confirm that the vegetables have entered the warehouse and sends the warehouse GPS / BD location, current time, warehouse air temperature, and warehouse air humidity information to the IP address and port number of the BaaS blockchain platform every 60 minutes until the barcode scanner scans the QR code 2 again before the vegetables are shipped out of the warehouse. Then, a new vegetable packaging QR code 3 is randomly generated and printed to replace the QR code 2, and the QR code 3 is sent to the BaaS blockchain platform at the same time; S6. After receiving the information, the BaaS blockchain platform calculates the vegetable storage time T after receiving the new vegetable packaging QR code 3 information. c , Average warehouse air temperature Average cabin air humidity Authorize the vegetable detection control terminal installed at the market entrance to start working; S7. The vegetable detection control terminal scans QR code 3 with a barcode scanner to confirm that the vegetables have entered the market and sends the market GPS / BD location, current time, pesticide residue level and heavy metal ion concentration to the IP address and port number of the BaaS blockchain platform, then randomly generates and prints a new vegetable packaging QR code 4 to replace QR code 3, and sends QR code 4 to the BaaS blockchain platform at the same time; S8. The BaaS blockchain platform receives information until it receives the new QR code 4 information on the vegetable packaging and records the pesticide residue level Heavy metal ion concentration Authorize the vegetable sales control terminal installed at the seller to start working; S9. The vegetable sales control terminal scans the QR code 4 through a barcode scanner to confirm that the vegetables have entered the seller and sends the seller's GPS / BD location and current time to the IP address and port number of the BaaS blockchain platform; S10.BaaS blockchain platform will T a , T b , T c Substitute the vegetable quality evaluation index formula and calculate the vegetable quality evaluation index, and divide the vegetable quality grades according to the results; the vegetable quality evaluation index formula is and Q a +Q b +Q c +Q d =1, here, Indicates that the parameters collected by the vegetable planting control terminal correspond to the 1st to 8th average data, A i Indicates that the parameters collected by the vegetable planting control terminal correspond to the 1st to 8th theoretical data, T a Indicates the vegetable planting time, T a0 Indicates the theoretical time for vegetable planting, Q ia Indicates the weights of the parameters collected by the vegetable planting control terminal corresponding to the 1st to 8th data, Q a It indicates the weight of vegetable planting control terminal in the vegetable quality evaluation index. Indicates that the parameters collected by the vegetable transport storage control terminal 1 correspond to the average data from the first to the second, B i Indicates that the parameters collected by the vegetable transport storage control terminal 1 correspond to the first to the second theoretical data, T b represents the transportation time of vegetables, T b0 represents the theoretical time of vegetable transportation, Q ib Indicates the weight of the parameters collected by the vegetable transport storage control terminal 1 corresponding to the first to second data, Q b It represents the weight of vegetable transportation and storage control terminal 1 in the vegetable quality evaluation index, The parameters collected by the vegetable transport storage control terminal 2 correspond to the average data from the first to the second, C i Indicates that the parameters collected by the vegetable transport storage control terminal 2 correspond to the first to the second theoretical data, T c Represents the storage time of vegetables, T c0 represents the theoretical storage time of vegetables, Q ic Indicates the weight of the parameters collected by the vegetable transport storage control terminal 2 corresponding to the first to second data, Q c It represents the weight of vegetable transportation and storage control terminal 2 in the vegetable quality evaluation index, Indicates that the parameters collected by the vegetable detection control terminal correspond to the first to second average concentration data, D i Indicates that the parameters collected by the vegetable detection control terminal correspond to the first to second theoretical maximum allowable concentration data, Q id Indicates the weight of the parameters collected by the vegetable detection control terminal corresponding to the first to second data, Q d It indicates the weight of vegetable detection and control terminal in the vegetable quality evaluation index; The vegetable quality grade classification method is to classify vegetables with a quality grade index greater than or equal to 0.9 as special grade, vegetables with a quality grade index greater than or equal to 0.7 and less than 0.9 as grade 1, and the rest as grade 2; S11. Customers use their mobile phones to scan the QR code 4 to trace the entire process of vegetable planting, growth, picking, packaging, transportation, storage, market testing and sales, as well as the quality of the vegetables.

2. A vegetable quality and safety traceability system based on the Internet of Things, which adopts the method according to claim 1; characterized in that: It mainly includes vegetable planting control terminal, vegetable transportation and storage control terminal 1, vegetable transportation and storage control terminal 2, vegetable detection control terminal, vegetable sales control terminal, BaaS blockchain platform and customer mobile terminal; The vegetable planting control terminal is connected to the 4G / 5G network of the BaaS blockchain platform to collect information about the entire process of vegetable planting, harvesting, and packaging, and send the data information to the BaaS blockchain platform in HTTP protocol; The vegetable transportation and storage control terminal 1 is connected to the 4G / 5G network of the BaaS blockchain platform, and is used to collect information about the entire transportation process of vegetables from the planting base to the storage, and send the data information to the BaaS blockchain platform in HTTP protocol; The vegetable transportation and storage control terminal 2 is connected to the 4G / 5G network of the BaaS blockchain platform, and is used to collect information about the entire process from the entry to the exit of vegetables, and send the data information to the BaaS blockchain platform in HTTP protocol; The vegetable detection control terminal is connected to the 4G / 5G network of the BaaS blockchain platform to collect information on pesticide residues and heavy metal toxic substances in vegetables before they enter the market, and send the data information to the BaaS blockchain platform in HTTP protocol; The vegetable sales control terminal is connected to the 4G / 5G network of the BaaS blockchain platform, and is used to collect basic information about vegetables from the time they enter the market until they are sold, and send the data information to the BaaS blockchain platform in HTTP protocol; The BaaS blockchain platform is connected to the 4G / 5G network of the customer's mobile phone terminal, so that the customer's mobile phone terminal can communicate with the BaaS blockchain platform by scanning a code, displaying the quality grade of vegetables through the mobile phone and recording in detail the entire process information of vegetables from sowing, growth, picking, packaging, transportation, warehousing, market inspection and sale.

3. The vegetable quality and safety traceability system based on the Internet of Things as claimed in claim 2 is characterized by: The vegetable planting control terminal includes an air temperature and humidity probe, a light intensity probe, a CO2 concentration probe, a soil temperature and humidity probe, a heavy metal concentration probe, a pesticide residue biological probe, a GPS / BD locator, an enable / disable button, a barcode scanner, an MCU controller, a micro printer and a 4G / 5G module; The air temperature and humidity probe, the light intensity probe, the CO2 concentration probe, the soil temperature and humidity probe, the heavy metal concentration probe, and the pesticide residue biological probe are respectively connected to the AD port of the MCU controller, and are used to receive air temperature and humidity, light intensity, CO2 concentration, soil temperature and humidity, heavy metal concentration, and pesticide residue degree signals and send the signals to the MCU controller via the AD port at 0-10V or 4-20mA; The GPS / BD locator is connected to the TTL serial port 1 of the MCU controller, and is used to receive GPS or Beidou satellite positioning information and current time information and send the information to the MCU controller in TTL serial port mode; The enable / disable button is connected to the I / O port of the MCU controller, and is used by the vegetable farmer to enable the vegetable planting control terminal when sowing and disable the vegetable planting control terminal when picking, and send the status information to the MCU controller in the form of high and low levels of the I / O port; The barcode scanner is connected to the TTL serial port 2 of the MCU controller, and is used to scan and identify the information of the QR code on the vegetable seed package and send the information to the MCU controller in TTL serial port mode; The micro printer is connected to the TTL serial port 3 of the MCU controller, and is used to receive the randomly generated two-dimensional code information sent by the MCU controller and print the information on the vegetable product packaging; The MCU controller is connected to the TTL serial port 4 of the 4G / 5G module, and is used to receive the electrical signals sent by all probes and convert the electrical signals into digital signals through the MCU controller. At the same time, it receives the GPS / BD locator signal, the barcode scanner signal and the randomly generated QR code 1 information and sends them to the BaaS blockchain platform through the 4G / 5G module.

4. The vegetable quality and safety traceability system based on the Internet of Things as claimed in claim 2 is characterized by: The vegetable transportation and storage control terminal 1 and the vegetable transportation and storage control terminal 2 include an air temperature and humidity probe, a GPS / BD locator, a barcode scanner, an MCU controller, a micro printer and a 4G / 5G module; The air temperature and humidity probe is electrically connected to the MCU controller, and is used to receive air temperature and humidity signals and send the signals to the MCU controller via the AD port at 0-10V or 4-20mA; The GPS / BD locator is connected to the TTL serial port 1 of the MCU controller, and is used to receive GPS or Beidou satellite positioning information and current time information and send the information to the MCU controller in TTL serial port mode; The barcode scanner is connected to the TTL serial port 2 of the MCU controller, and is used to scan and identify the information of the QR code on the vegetable packaging and send the information to the MCU controller in TTL serial port mode; The micro printer is connected to the TTL serial port 3 of the MCU controller, and is used to receive the randomly generated two-dimensional code information sent by the MCU controller and print the information on the vegetable commodity packaging when the vegetable transportation is completed or the warehouse is completed, replacing the original two-dimensional code information; The MCU controller is connected to the TTL serial port 4 of the 4G / 5G module, and is used to receive the electrical signal sent by the air temperature and humidity probe and convert the electrical signal into a digital signal through the MCU controller, and at the same time receive the GPS / BD locator signal, the barcode scanner signal and the randomly generated QR code information and send them to the BaaS blockchain platform through the 4G / 5G module.

5. The vegetable quality and safety traceability system based on the Internet of Things as claimed in claim 2 is characterized by: The vegetable detection control terminal includes a pesticide residue biological probe, a heavy metal ion concentration probe, a GPS / BD locator, a barcode scanner, an MCU controller, a micro printer and a 4G / 5G module; The pesticide residue biological probe and the heavy metal ion concentration probe are connected to the AD port of the MCU controller to receive pesticide residue biological signals and heavy metal ion concentration signals, and send the signals to the MCU controller via the AD port at 0-10V or 4-20mA; The GPS / BD locator is connected to the TTL serial port 1 of the MCU controller, and is used to receive GPS or Beidou satellite positioning information and current time information and send the information to the MCU controller in TTL serial port mode; The barcode scanner is connected to the TTL serial port 2 of the MCU controller, and is used to scan and identify the information of the QR code on the vegetable packaging and send the information to the MCU controller in TTL serial port mode; The micro printer is connected to the TTL serial port 3 of the MCU controller, and is used to receive the randomly generated two-dimensional code information sent by the MCU controller and print out the information on the vegetable commodity packaging when the vegetables enter the market after completing the pesticide residue detection and heavy metal ion detection, replacing the original two-dimensional code information; The MCU controller is connected to the TTL serial port 4 of the 4G / 5G module, and is used to receive the electrical signals sent by the pesticide residue biological probe and the heavy metal ion concentration probe and convert the electrical signals into digital signals through the MCU controller, and at the same time receive the GPS / BD locator signal, the barcode scanning gun signal and the randomly generated QR code information and send them to the BaaS blockchain platform through the 4G / 5G module.

6. The vegetable quality and safety traceability system based on the Internet of Things as claimed in claim 2 is characterized by: The vegetable sales control terminal includes a GPS / BD locator, a barcode scanner, an MCU controller and a 4G / 5G module; The GPS / BD locator is connected to the TTL serial port 1 of the MCU controller, and is used to receive GPS or Beidou satellite positioning information and current time information and send the information to the MCU controller in TTL serial port mode; The barcode scanner is connected to the TTL serial port 2 of the MCU controller, and is used to scan and identify the information of the QR code on the vegetable packaging and send the information to the MCU controller in TTL serial port mode; The MCU controller is connected to the TTL serial port 3 of the 4G / 5G module, and is used to receive the barcode scanning gun signal and the randomly generated QR code information and send it to the BaaS blockchain platform through the 4G / 5G module.

Citation Information

Patent Citations

  • Vegetable quality safety traceability system based on Internet of Things

    CN110580627A

  • Farmland vegetable quality safety real-time monitoring system and method

    CN113203436A

  • Quality evaluating method for traceability of agricultural products

    CN104616203A

  • Dish tracing and verification method and system based on block chain

    CN110782256A

  • Vegetable whole-course tracing method

    CN111091389A

Cited By

  • A pesticide residue and agricultural chemical residue full-industry-chain internet of things blockchain tracing system

    CN122948513A