Agricultural product quality safety tracing system, method and device
By pasting QR codes on agricultural products and realizing networking of off-site servers, the problems of information opacity and traceability chain breaks are solved, and the rapid and accurate traceability of agricultural products' full life cycle data is achieved, and traceability efficiency and accuracy are improved. Provides comprehensive quality and safety information.
Patent Information
- Application Number
- CN202411361550.6
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-09-27
- Publication Date
- 2025-01-14
AI Technical Summary
The traditional agricultural product traceability system faces the problems of information opacity and traceability chain breaks, which makes it difficult for consumers to understand the entire life cycle of agricultural products and determine their quality and safety status.
By pasting QR codes on agricultural products, we can realize off-site networking between the sales server and the farmer, supply side, and production and processing side. After scanning the QR code, we can obtain data from each server and build complete quality and safety traceability data and feed it to Query the client.
It realizes rapid and accurate traceability of agricultural product life cycle data, improves traceability efficiency and accuracy, and provides consumers with comprehensive quality and safety information.
Smart Images

Figure CN119313356A_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the field of agricultural product management, and in particular to an agricultural product quality and safety tracing system, method and device. Background Art
[0002] In the modern agricultural production and circulation system, the quality and safety of agricultural products are the focus of consumers' attention. However, the traditional agricultural product traceability system faces many challenges. First, information opacity is a major problem. The production process of agricultural products involves multiple links, including planting, breeding, harvesting, processing, transportation and sales, etc. Each link may affect the quality and safety of agricultural products, and accordingly involves multiple responsible ends such as agricultural producers, suppliers, production processors and sellers. Due to information opacity, it is difficult for consumers to understand the full life cycle information of agricultural products, and it is impossible to determine the true quality and safety status of agricultural products. Secondly, the break in the traceability chain is also a serious problem. Since agricultural products involve multiple participants and multiple links in the production, processing and sales process, the traceability chain is often easy to break, resulting in the inability to accurately trace the source and flow of agricultural products. Different participants and links make it impossible to share and integrate data, and it is impossible to achieve quality and safety traceability throughout the life cycle. Summary of the invention
[0003] To solve the above problems, the present invention provides a system, method and device for tracing the quality and safety of agricultural products, which can realize rapid and accurate tracing of agricultural product data throughout its life cycle through remote networking, thereby improving the efficiency and accuracy of tracing.
[0004] In a first aspect, the technical solution of the present invention provides a system for tracing the quality and safety of agricultural products, comprising: QR code: affixed to agricultural products, containing sales identification information; Sales-end server: It forms a remote network with the farmer-end server, supply-end server, and production and processing server, receives the traceability query request sent by the query client after scanning the QR code, and obtains the farmer-end data, supply-end data, and production and processing data from the farmer-end server, supply-end server, and production and processing server respectively according to the sales-end identification information contained in the traceability query request, and forms complete quality and safety traceability data with the sales-end data and feeds back to the query client.
[0005] In a second aspect, the technical solution of the present invention provides a method for tracing the quality and safety of agricultural products, comprising the following steps: Receive a traceability query request sent by a query client after scanning a QR code; Parsing the traceability query request to obtain the sales end identification information contained in the traceability query request; According to the sales end identification information, farmer-end data, supply-end data and production and processing end data are obtained from the farmer-end server, the supply-end server and the production and processing end server respectively; The data obtained from each server and the sales end data form complete quality and safety traceability data and are fed back to the query client.
[0006] In an optional implementation, before receiving the traceability query request sent by the query client after scanning the QR code, the following steps are also included: Receive production and processing end identification information of batch products sent by the production and processing end; Parse the identification information of the production and processing end to obtain the corresponding identification information of the farmer end and the identification information of the supply end; Construct sales end identification information for each product produced by each batch of products; Construct an identification mapping table by combining the sales-end identification information with the corresponding farmer-end identification information, supply-end identification information, and production and processing-end identification information; Save the identity mapping table.
[0007] In an optional implementation, the farmer-side data, the supply-side data and the production and processing-side data are obtained from the farmer-side server, the supply-side server and the production and processing-side server respectively according to the sales-side identification information, specifically including: Get the pre-stored identification mapping table; Based on the identification mapping table, the corresponding farmer-side identification information, the supply-side identification information and the production and processing-side identification information are obtained according to the sales-side identification information; Send connection requests to the farmer-side server, the supply-side server, and the production and processing-side server respectively; After the connection is successful, a data acquisition request containing their respective identification information is sent to the farmer-side server, the supply-side server, and the production and processing-side server respectively; Receive farmer-side data, supply-side data and production and processing-side data fed back by farmer-side servers, supply-side servers and production and processing-side servers.
[0008] In an optional implementation, before receiving the traceability query request sent by the query client after scanning the QR code, the following steps are also included: Configure the connection priorities of the farmer-side server, supply-side server, and production and processing-side server.
[0009] In an optional implementation, sending connection requests to the farmer-side server, the supply-side server, and the production and processing-side server respectively includes: Send connection requests to the farmer-side server, the supply-side server, and the production and processing-side server respectively according to the pre-configured connection priority; After a preset time interval, check whether the server with the highest connection priority is successfully connected; If the connection is not successful, a connection request is sent to the server with the second highest connection priority, and after a preset time interval, the server with the second highest connection priority is detected whether the connection is successful. If the connection is not successful, a connection request is sent to the server with the third highest connection priority, and after a preset time interval, the server with the third highest connection priority is detected whether the connection is successful. If the connection is not successful, a connection request is sent again to the server with the highest connection priority; Similarly, if a server fails to connect after N attempts, a connection failure alarm will be recorded and displayed.
[0010] In an optional implementation, after recording and displaying the connection failure alarm, the following steps are also included: Feedback the query client with a prompt indicating failure in obtaining security traceability data, and provide a re-query interface.
[0011] In an optional implementation, the farmer-side data includes product planting environment data and product planting process data; the supply-side data includes logistics data and transportation process data; the production and processing-side data includes product processing environment data and product processing process data; and the sales-side data includes product launch time and product sales time.
[0012] In a third aspect, the technical solution of the present invention provides a device for tracing the quality and safety of agricultural products, comprising: Query request receiving module: receiving the traceability query request sent by the query client after scanning the QR code; Identification information acquisition module: parses the traceability query request and obtains the sales end identification information contained in the traceability query request; Security data acquisition module: acquires farmer-side data, supply-side data and production and processing-side data from farmer-side server, supply-side server and production and processing-side server respectively according to sales-side identification information; Safety data feedback module: The data obtained from each server and the sales end data form a complete quality and safety traceability data and feedback it to the query client.
[0013] In an optional embodiment, the device further comprises: Identification mapping module: receiving the production and processing end identification information of batch products sent by the production and processing end; parsing the production and processing end identification information to obtain the corresponding farmer-end identification information and supply-end identification information contained therein; constructing the sales-end identification information for each product generated by each batch of products; constructing an identification mapping table with the sales-end identification information and the corresponding farmer-end identification information, supply-end identification information, and production and processing end identification information; and saving the identification mapping table.
[0014] The agricultural product quality and safety tracing system, method and device provided by the present invention have the following beneficial effects compared with the prior art: the servers of each participant are remotely networked in advance, the query client scans the QR code to send a query request to the sales server, and the sales server sends a data acquisition request to the remaining participant servers respectively, thereby obtaining safety tracing data from each participant. The present invention uses the QR code as the information entry and combines the distributed server networking technology to achieve rapid and accurate tracing of agricultural product data throughout its life cycle, greatly improving the efficiency and accuracy of tracing and providing consumers with comprehensive agricultural product quality and safety information. BRIEF DESCRIPTION OF THE DRAWINGS
[0015] In order to more clearly illustrate the embodiments of the present invention or the technical solutions of 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.
[0016] Figure 1 The present invention provides a schematic block diagram of the structure of an agricultural product quality and safety traceability system.
[0017] Figure 2 The present invention provides a flowchart of a method for tracing agricultural product quality and safety.
[0018] Figure 3 The present invention is a schematic block diagram of the structure of an agricultural product quality and safety tracing device provided by an embodiment of the present invention. DETAILED DESCRIPTION
[0019] In order to enable those skilled in the art to better understand the scheme of the present invention, the present invention is further described in detail below in conjunction with the accompanying drawings and specific implementation methods. Obviously, the described embodiments are only part of the embodiments of the present invention, rather than all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without making creative work are within the scope of protection of the present invention.
[0020] Unless otherwise defined, all technical and scientific terms used herein have the same meaning as those commonly understood by those skilled in the art of the present invention. The terms used in the specification of the present invention herein are only for the purpose of describing specific embodiments and are not intended to limit the present invention.
[0021] Figure 1The present invention provides a schematic block diagram of a system for tracing agricultural product quality and safety provided by an embodiment of the present invention. The system includes a QR code and a sales-end server. The QR code is pasted on the agricultural product. The QR code is made by the sales end and contains the sales-end identification information. The sales-end server is remotely networked with the farmer-end server, the supply-end server, and the production and processing-end server.
[0022] The user scans the QR code through the query client and sends a tracking query request to the sales server. The sales server receives the traceability query request sent by the query client after scanning the QR code, and obtains the farmer-side data, supply-side data and production and processing data from the farmer-side server, supply-side server and production and processing server respectively according to the sales identification information contained in the traceability query request, and forms a complete quality and safety traceability data with the sales data and feeds it back to the query client.
[0023] Exemplarily, the user scans the QR code through a mobile phone, and the scanned information is transmitted to the sales server. The sales server parses the sales identification information contained in the QR code, and then obtains the farmer identification information, the supply identification information, and the production and processing identification information based on the sales identification information. Through the remote networking structure, the data acquisition request is sent to the farmer server, the supply server, and the production and processing server respectively, thereby obtaining the farmer data, the supply data, and the production and processing data. In addition, the sales server obtains the sales data stored in itself, and the sales data, the farmer data, the supply data, and the production and processing data form a complete quality and safety traceability data feedback to the user's mobile phone, and the user can view the agricultural product quality and safety traceability data from the mobile phone.
[0024] Figure 2 The figure is a flow chart of a method for tracing agricultural product quality and safety provided by an embodiment of the present invention. The method for tracing agricultural product quality and safety provided by an embodiment of the present invention is executed by a computer device, and accordingly, the device for tracing agricultural product quality and safety runs in the computer device. Figure 1 The execution subject can be a device for tracing the quality and safety of agricultural products. According to different requirements, the order of the steps in the flow chart can be changed, and some can be omitted.
[0025] like Figure 2 As shown, the method includes the following steps.
[0026] S1, receiving a traceability query request sent by a query client after scanning a QR code.
[0027] The user scans the QR code pasted on the agricultural product through the query client, and the scanned information is sent to the sales server, which receives the traceability query request.
[0028] S2, parsing the traceability query request to obtain the sales end identification information contained in the traceability query request.
[0029] The QR code pasted on the agricultural product includes sales end identification information. The sales end server parses the traceability query request to obtain the sales end identification information contained in the traceability query request.
[0030] S3, obtaining farmer-side data, supply-side data and production and processing-side data from the farmer-side server, supply-side server and production and processing-side server respectively according to the sales-side identification information.
[0031] This embodiment obtains corresponding data from the corresponding server according to the identification information of each participant terminal. Accordingly, this embodiment pre-stores an identification mapping table and obtains corresponding identification information according to the identification mapping table.
[0032] This embodiment further includes the following steps before step S1.
[0033] S0.1, receiving the production and processing end identification information of the batch products sent by the production and processing end.
[0034] S0.2, parse the production and processing end identification information, and obtain the corresponding farmer end identification information and supply end identification information contained therein.
[0035] S0.3, construct sales-end identification information for each product produced by each batch of products.
[0036] S0.4, construct an identification mapping table by combining the sales-end identification information with the corresponding farmer-end identification information, supply-end identification information, and production and processing-end identification information.
[0037] S0.5, save the identification mapping table.
[0038] It should be noted that farmers configure farmer-side identification information for each batch of their products, suppliers configure supply-side identification information for each batch of their products, and manufacturers configure production and processing-side identification information for each batch of their products, and each link obtains the identification information of the previous link, and then the manufacturer sends the production and processing-side identification information, the corresponding farmer-side identification information and the supply-side identification information to the sales-side identification information. Thus, the sales end obtains the farmer-side identification information, the supply-side identification information, and the production and processing-side identification information, and at the same time constructs the sales-side identification information for each product generated by each batch of products, and constructs an identification mapping table with the sales-side identification information and the corresponding farmer-side identification information, the supply-side identification information, and the production and processing-side identification information.
[0039] This embodiment achieves detailed tracking of the entire life cycle of the product by constructing a mapping table containing identification information of the production and processing end, the farmer end, the supply end, and the sales end, so as to improve the traceability of the product. In this embodiment, the identification information of each link of the supply chain can be effectively integrated and managed, so that the transparency of the supply chain is increased, thereby optimizing supply chain management and improving operational efficiency. At the same time, the establishment of the identification mapping table promotes information sharing and collaborative work between upstream and downstream of the supply chain. All participants can quickly obtain the required information, reduce information asymmetry, strengthen cooperation, and improve the response speed of the overall supply chain.
[0040] This embodiment obtains farmer-side data, supply-side data and production and processing-side data from the farmer-side server, supply-side server and production and processing-side server respectively according to the sales-side identification information, and specifically includes the following steps.
[0041] S3.1, obtain a pre-stored identification mapping table.
[0042] S3.2, based on the identification mapping table, obtain the corresponding farmer-side identification information, supply-side identification information and production and processing-side identification information according to the sales-side identification information.
[0043] S3.3, sends connection requests to the farmer-side server, the supply-side server, and the production and processing-side server respectively.
[0044] S3.4, after the connection is successful, a data acquisition request containing their respective identification information is sent to the farmer-side server, the supply-side server, and the production and processing-side server respectively.
[0045] S3.5, receiving the farmer-side data, supply-side data and production and processing-side data fed back by the farmer-side server, supply-side server and production and processing-side server.
[0046] This embodiment pre-configures the connection priorities of the farmer-side server, the supply-side server, and the production and processing-side server, and sends a connection request to each server according to the connection priority. Step S3.3 specifically includes the following steps.
[0047] S3.3.1, send connection requests to the farmer-side server, the supply-side server, and the production and processing-side server respectively according to the pre-configured connection priority.
[0048] S3.3.2, after a preset time interval, check whether the server with the highest connection priority is successfully connected.
[0049] S3.3.3, if the connection is not successful, send a connection request to the server with the second highest connection priority, and after a preset time interval, check whether the server with the second highest connection priority is successfully connected. If the connection is not successful, send a connection request to the server with the third highest connection priority, and after a preset time interval, check whether the server with the third highest connection priority is successfully connected. If the connection is not successful, send a connection request to the server with the highest connection priority again.
[0050] S3.3.4, and so on. If a server fails to connect after N attempts, a connection failure alarm will be recorded and displayed.
[0051] After recording and displaying the connection failure alarm, this embodiment feeds back a prompt of failure to obtain security traceability data to the query client and provides a re-query interface.
[0052] This embodiment ensures that connection requests are sent to each server in an orderly manner through the pre-configured connection priority, and preferentially attempts to connect to servers that are more likely to succeed, thereby improving the overall connection efficiency and stability. Through the intelligent connection retry mechanism, unnecessary repeated connection attempts are avoided, the utilization of system resources is optimized, and it is ensured that the system can still maintain high performance and stability when there is high concurrency or partial server failure. And by setting the number of retries and recording connection failure alarms, the system can automatically retry when facing server failures or network problems, enhancing the system's fault tolerance and self-recovery capabilities. And ensure that even when there is a problem with the server connection, the system can give feedback in time and provide a re-query interface, thereby reducing the user's waiting time and inconvenience and improving the user experience. In addition, the recording of connection failure alarms in this embodiment not only helps the system to find problems in time, but also provides data basis for subsequent troubleshooting and repair, which is convenient for technical personnel to quickly locate problems and take corresponding solutions.
[0053] S4, the data obtained from each server and the sales end data form a complete quality and safety traceability data and feed it back to the query client.
[0054] This embodiment combines farmer-side data, supply-side data, production and processing-side data, and sales-side data to form complete quality and safety traceability data and feeds it back to the query client, so that users can trace the product's safety data throughout its life cycle.
[0055] The farmer-side data in this embodiment includes product planting environment data (including temperature, humidity, etc.) and product planting process data (including fertilization and drug use records, etc.); the supply-side data includes logistics data and transportation process data (including temperature, humidity, etc.); the production and processing end data includes product processing environment data (including temperature, humidity, etc.) and product processing process data; the sales-side data includes product launch time and product sales time.
[0056] An embodiment of a method for tracing the quality and safety of agricultural products is described in detail above. Based on the method for tracing the quality and safety of agricultural products described in the above embodiment, an embodiment of the present invention further provides an agricultural product quality and safety tracing device corresponding to the method.
[0057] Figure 3 The present invention provides a schematic block diagram of the structure of an agricultural product quality and safety traceability device. The agricultural product quality and safety traceability device can be divided into multiple functional modules according to the functions it performs. The module referred to in the present invention refers to a series of computer program segments that can be executed by at least one processor and can complete fixed functions, which are stored in a memory.
[0058] Query request receiving module: receives the traceability query request sent by the query client after scanning the QR code.
[0059] Identification information acquisition module: parses the traceability query request and obtains the sales end identification information contained in the traceability query request.
[0060] Security data acquisition module: According to the sales end identification information, farmer-side data, supply-side data and production and processing end data are obtained from the farmer-side server, supply-side server and production and processing end server respectively.
[0061] Safety data feedback module: The data obtained from each server and the sales end data form a complete quality and safety traceability data and feedback it to the query client.
[0062] In an optional embodiment, the device also includes an identification mapping module: receiving production and processing end identification information of batch products sent by the production and processing end; parsing the production and processing end identification information to obtain the corresponding farmer-end identification information and supply-end identification information contained therein; constructing sales-end identification information for each product generated by each batch of products; constructing an identification mapping table of the sales-end identification information with the corresponding farmer-end identification information, supply-end identification information, and production and processing end identification information; and saving the identification mapping table.
[0063] In an optional embodiment, the device also includes a priority configuration module: configuring the connection priorities of the farmer-side server, the supply-side server, and the production and processing-side server.
[0064] The agricultural product quality and safety traceability device of this embodiment is used to implement the aforementioned agricultural product quality and safety traceability method. Therefore, the specific implementation method of the device can be seen in the embodiment part of the agricultural product quality and safety traceability method in the previous text. Therefore, its specific implementation method can refer to the description of the corresponding embodiments of each part, and will not be introduced in detail here.
[0065] In addition, since the agricultural product quality and safety traceability device of this embodiment is used to implement the aforementioned agricultural product quality and safety traceability method, its function corresponds to that of the aforementioned method and will not be described in detail here.
[0066] The above disclosure is only a preferred embodiment of the present invention, but the present invention is not limited thereto. Any non-creative changes that can be thought of by a person skilled in the art, as well as several improvements and modifications made without departing from the principle of the present invention, should fall within the protection scope of the present invention.
Claims
1. An agricultural product quality and safety traceability system, characterized in that: include, QR code: affixed to agricultural products, containing sales identification information; Sales-end server: It forms a remote network with the farmer-end server, supply-end server, and production and processing server, receives the traceability query request sent by the query client after scanning the QR code, and obtains the farmer-end data, supply-end data, and production and processing data from the farmer-end server, supply-end server, and production and processing server respectively according to the sales-end identification information contained in the traceability query request, and forms complete quality and safety traceability data with the sales-end data and feeds back to the query client.
2. A method for tracing the quality and safety of agricultural products, characterized in that: The following steps are involved: Receive a traceability query request sent by a query client after scanning a QR code; Parsing the traceability query request to obtain the sales end identification information contained in the traceability query request; According to the sales end identification information, farmer-end data, supply-end data and production and processing end data are obtained from the farmer-end server, the supply-end server and the production and processing end server respectively; The data obtained from each server and the sales end data form complete quality and safety traceability data and are fed back to the query client.
3. The agricultural product quality and safety traceability method according to claim 2, characterized in that: Before receiving the traceability query request sent by the query client after scanning the QR code, the following steps are also included: Receive production and processing end identification information of batch products sent by the production and processing end; Parse the identification information of the production and processing end to obtain the corresponding identification information of the farmer end and the identification information of the supply end; Construct sales end identification information for each product produced by each batch of products; Construct an identification mapping table by combining the sales-end identification information with the corresponding farmer-end identification information, supply-end identification information, and production and processing-end identification information; Save the identity mapping table.
4. The agricultural product quality and safety traceability method according to claim 3, characterized in that: According to the sales end identification information, the farmer end data, the supply end data and the production and processing end data are obtained from the farmer end server, the supply end server and the production and processing end server respectively, including: Get the pre-stored identification mapping table; Based on the identification mapping table, the corresponding farmer-side identification information, the supply-side identification information and the production and processing-side identification information are obtained according to the sales-side identification information; Send connection requests to the farmer-side server, the supply-side server, and the production and processing-side server respectively; After the connection is successful, a data acquisition request containing their respective identification information is sent to the farmer-side server, the supply-side server, and the production and processing-side server respectively; Receive farmer-side data, supply-side data and production and processing-side data fed back by farmer-side servers, supply-side servers and production and processing-side servers.
5. The agricultural product quality and safety traceability method according to claim 4, characterized in that: Before receiving the traceability query request sent by the query client after scanning the QR code, the following steps are also included: Configure the connection priorities of the farmer-side server, supply-side server, and production and processing-side server.
6. The agricultural product quality and safety traceability method according to claim 5, characterized in that: Send connection requests to the farmer-side server, the supply-side server, and the production and processing-side server respectively, including: Send connection requests to the farmer-side server, the supply-side server, and the production and processing-side server respectively according to the pre-configured connection priority; After a preset time interval, check whether the server with the highest connection priority is successfully connected; If the connection is not successful, a connection request is sent to the server with the second highest connection priority, and after a preset time interval, the server with the second highest connection priority is detected whether the connection is successful. If the connection is not successful, a connection request is sent to the server with the third highest connection priority, and after a preset time interval, the server with the third highest connection priority is detected whether the connection is successful. If the connection is not successful, a connection request is sent again to the server with the highest connection priority; Similarly, if a server fails to connect after N attempts, a connection failure alarm will be recorded and displayed.
7. The agricultural product quality and safety traceability method according to claim 6, characterized in that: After recording and displaying the connection failure warning, the following steps are also included: Feedback the query client with a prompt indicating failure in obtaining security traceability data, and provide a re-query interface.
8. The agricultural product quality and safety traceability method according to claim 7, characterized in that: Farmer-side data includes product planting environment data and product planting process data; supply-side data includes logistics data and transportation process data; production and processing-side data includes product processing environment data and product processing process data; sales-side data includes product launch time and product sales time.
9. A device for tracing the quality and safety of agricultural products, characterized in that: include, Query request receiving module: receiving the traceability query request sent by the query client after scanning the QR code; Identification information acquisition module: parses the traceability query request and obtains the sales end identification information contained in the traceability query request; Security data acquisition module: acquires farmer-side data, supply-side data and production and processing-side data from farmer-side server, supply-side server and production and processing-side server respectively according to sales-side identification information; Safety data feedback module: The data obtained from each server and the sales end data form a complete quality and safety traceability data and feedback it to the query client.
10. The agricultural product quality and safety tracing device according to claim 9, characterized in that: The device also includes, Identification mapping module: receiving the production and processing end identification information of batch products sent by the production and processing end; parsing the production and processing end identification information to obtain the corresponding farmer-end identification information and supply-end identification information contained therein; constructing the sales-end identification information for each product generated by each batch of products; constructing an identification mapping table with the sales-end identification information and the corresponding farmer-end identification information, supply-end identification information, and production and processing end identification information; and saving the identification mapping table.