Block chain agricultural product traceability system and traceability method based on electronic scale nodes
Technical Field
The invention relates to an agricultural product traceability system and a traceability method, in particular to a block chain agricultural product traceability system and a traceability method based on electronic scale nodes.
Background
The blockchain is a novel application mode of computer technologies such as distributed data storage, point-to-point transmission, a consensus mechanism, an encryption algorithm and the like, and is essentially a decentralized database. The representative items using the blockchain as the underlying technology include bitcoin, ether house, etc., and a large number of applications based on the blockchain technology have appeared in recent years, relating to the social field, the game field, the commodity tracing, etc. In the application of the existing block chain technology, the access cost of the nodes is high, each node needs to be correspondingly configured, at least one piece of software needs to be installed, and the use cost is high for a user; meanwhile, in a commodity traceability scene, because an industrial chain relates to a wide field, the block chain data chaining is used, and only the fact that the chaining data cannot be tampered can be ensured, but how to ensure the authenticity of the chaining data still has difficulty.
The pork production quality safety is related to the physical health of consumers and is closely related to social food safety. With the importance of society and consumers on food safety, the pork production information tracing needs to be improved urgently, and the existing pork production information tracing information is single and is easy to tamper. Consumers can only know the production date of pork by providing information according to shops, but the consumers can not know the pork variety, the stage of pork cultivation, safety of feed eaten by pigs, perfect quarantine of pigs and the like.
Disclosure of Invention
The invention aims to overcome the defects in the prior art and provide a block chain agricultural product traceability system and a traceability method based on electronic scale nodes.
The purpose of the invention can be realized by the following technical scheme:
the utility model provides a block chain agricultural product traceability system based on electronic scale node, the system include a plurality of electronic scales of tracing to the source, agricultural product identity coding module, obtain module, processing module, cochain module and mobile terminal, a plurality of electronic scales of tracing to the source in be equipped with block chain link point module, a plurality of electronic scales of tracing to the source in block chain link point module communication intercommunication form the block chain.
Preferably, the traceability electronic scale comprises a processor, and an electronic weighing module, an agricultural product information input module and a traceability code sending module which are respectively connected with the processor, wherein the electronic weighing module is used for weighing sold agricultural products, the agricultural product information input module is used for inputting the weight of the sold agricultural products and the identity identification code corresponding to the agricultural products, the block chain link point module comprises a memory and a wireless communication module used for performing block chain communication, the agricultural product traceability information is stored in the memory, and the traceability code sending module is used for generating traceability query image code labels of the sold agricultural products according to the agricultural product traceability information.
Preferably, the traceability code-sending module is a two-dimensional code label generation module, and the traceability code-sending module generates a two-dimensional code label containing traceability information of sold agricultural products according to the agricultural product traceability information in the memory.
Preferably, agricultural product traceability information in the block chain link point module of each traceability electronic scale is synchronously stored and can not be modified.
Preferably, the wireless communication module is a WIFI communication module.
Preferably, the agricultural product identity coding module generates an identity code unique to each agricultural product and an identification tag containing the identity code, and the identification tag is bound with the corresponding agricultural product.
Preferably, the system further comprises a logistics package marking module, and the logistics package marking module is used for marking the corresponding identification code of the agricultural product on the package of the slaughtered and subpackaged agricultural product.
Preferably, the mobile terminal is configured to scan and read the image code information on the tracing query image code label.
Preferably, the acquisition module is configured to acquire agricultural product production process information, the processing module is configured to package the agricultural product production process information to obtain agricultural product traceability information, and the uplink module is configured to send and store the agricultural product traceability information to the block link point module of each traceability electronic scale.
Preferably, the obtaining module comprises a feed information obtaining submodule for obtaining feed production information of agricultural products of a feed factory, a feeding information obtaining submodule for obtaining feeding information of a farm, a quarantine information obtaining submodule for obtaining quarantine information in a breeding process and a slaughter information obtaining submodule for obtaining slaughter records of the slaughter farm.
Preferably, the agricultural product feed production information comprises feed raw material information, feed formula information and feed production information.
Preferably, the agricultural product feeding information comprises farm information, agricultural product batch and variety information, feeding records, immunity records and treatment records.
Preferably, the agricultural product quarantine information comprises a pre-slaughter quarantine result, a post-slaughter quarantine result and quarantine certification information.
A block chain agricultural product traceability method based on electronic scale nodes is based on the block chain agricultural product traceability system based on the electronic scale nodes, and the traceability method comprises the following steps: and generating an agricultural product identity identification code and an identification label, binding the identification label with the agricultural product, sending and storing agricultural product traceability information to the block chain link point module of each traceability electronic scale, and when the agricultural product is sold, acquiring the agricultural product traceability information of the sold agricultural product by the traceability electronic scales and generating traceability query code labels for the mobile terminal to conduct traceability query.
Preferably, the tracing method specifically comprises the steps of:
s1: the agricultural product identity coding module generates a unique identity identification code of each agricultural product and an identification label containing the identity identification code, and the identification label is bound with the corresponding agricultural product;
s2: the acquisition module acquires information of a production process of agricultural products;
s3: the processing module packages and processes information in the production process of agricultural products to obtain agricultural product traceability information, the chain loading module sends and stores the agricultural product traceability information to the block chain link point module of each traceability electronic scale, and the agricultural product traceability information stored in the block chain link point module of each traceability electronic scale is synchronously stored and cannot be modified;
s4: weighing the sold agricultural products by the tracing electronic scale, and inputting the weight of the sold agricultural products and the identity identification code of the agricultural products;
s5: the tracing electronic scale acquires the agricultural product tracing information corresponding to the agricultural product according to the identity identification code of the sold agricultural product and generates a tracing inquiry image code label of the sold agricultural product;
s6: and the mobile terminal scans and reads the image code information on the traceability query image code label to obtain the traceability information of the agricultural product corresponding to the sold agricultural product.
Compared with the prior art, the invention has the following advantages:
(1) the block chain agricultural product traceability system based on the electronic scale nodes can record agricultural product traceability information from the whole process of agricultural product production, and the whole block chain penetrates through a feed factory, a breeding farm, a slaughter house and a sales store, so that key production data chaining on the whole agricultural product industrial chain is ensured, the reliability of data authenticity is improved, the traceability information is tamper-proof and queryable, the understanding of consumers on the product traceability information can be improved, and the reliability and the safety of the agricultural product data information are improved;
(2) the traceable electronic scale is used as a node of the whole block chain system, the specification of the traceable electronic scale is uniform, the block chain access cost is reduced, and the stability of the node is improved;
(3) the block chain function is integrated into the tracing electronic scale of the retail store, extra tracing equipment and operation are not needed, a user can conveniently and quickly perform tracing query by using the mobile terminal, and convenience of the tracing query is improved.
Drawings
FIG. 1 is a schematic structural diagram of a block chain agricultural product traceability system based on electronic scale nodes according to the present invention;
FIG. 2 is a schematic structural diagram of an agricultural product traceability electronic scale of the present invention;
fig. 3 is a flowchart of a block chain agricultural product tracing method based on electronic scale nodes according to the present invention.
The system comprises an electronic weighing module 1, an agricultural product information input module 2, a traceability code sending module 3, a block chain link point module 4, a memory 5, a storage 6, a wireless communication module 7, a processor 8, an agricultural product identity coding module 9, an acquisition module 10, a processing module 11, a chain winding module 12, a logistics package marking module 13, a traceability electronic scale 14, a traceability query graph code label 15 and a mobile terminal.
Detailed Description
The invention is described in detail below with reference to the figures and specific embodiments. Note that the following description of the embodiments is merely a substantial example, and the present invention is not intended to be limited to the application or the use thereof, and is not limited to the following embodiments.
Examples
A block chain agricultural product traceability system based on electronic scale nodes is shown in figure 2 and comprises a plurality of traceability electronic scales 13, an agricultural product identity coding module 8, an acquisition module 9, a processing module 10, an upper chain module 11 and a mobile terminal 15, wherein block chain node modules 4 are arranged in the traceability electronic scales 13, and the block chain link modules 4 in the traceability electronic scales 13 are communicated to form a block chain.
Specifically, as shown in fig. 1, the traceability electronic scale 13 includes a processor 7, and an electronic weighing module 1, an agricultural product information recording module 2, and a traceability code sending module 3 which are respectively connected to the processor 7, where the electronic weighing module 1 is used to weigh a sold agricultural product, the agricultural product information recording module 2 is used to record the weight of the sold agricultural product and the identification code corresponding to the agricultural product, the block chain link point module 4 includes a memory 5 and a wireless communication module 6 used to perform block chain communication, the memory 5 stores traceability information of the agricultural product, the traceability code sending module 3 is used to generate a traceability query map code label 14 of the sold agricultural product according to the traceability information of the agricultural product, and the traceability information of the agricultural product in the block chain link point module 4 of each traceability electronic scale 13 is synchronously stored and cannot be modified.
Furthermore, the traceability code-sending module 3 is a two-dimensional code label generation module, the traceability code-sending module 3 generates a two-dimensional code label containing traceability information of sold agricultural products according to the agricultural product traceability information in the memory 5, and the wireless communication module 6 is a WIFI communication module.
For the traceability system, an agricultural product identity coding module 8 generates an unique identity identification code of each agricultural product and an identification tag containing the identity identification code, the identification tag is bound with a corresponding agricultural product, an obtaining module 9 is used for obtaining agricultural product production process information, a processing module 10 is used for packaging and processing the agricultural product production process information to obtain agricultural product traceability information, an uplink module 11 is used for sending and storing the agricultural product traceability information to a block chain link point module 4 of each traceability electronic scale 13, and a mobile terminal 15 scans and reads image code information on a traceability query image code tag 14, wherein in the embodiment, the mobile terminal 15 is a mobile phone or a handheld device capable of reading and displaying the image code information.
In an embodiment of the invention, the system further comprises a logistics package marking module 12, and the logistics package marking module 12 is used for marking an identification code corresponding to the agricultural product on the package of the slaughtered and subpackaged agricultural product.
Further, the obtaining module 9 includes a feed information obtaining submodule for obtaining feed production information of agricultural products of a feed factory, a feeding information obtaining submodule for obtaining feeding information of a farm, a quarantine information obtaining submodule for obtaining quarantine information in a breeding process, and a slaughter information obtaining submodule for obtaining slaughter records of a slaughter house.
In this embodiment, the identification tag is an RFID tag containing an identification code, the RFID tag is bound to a corresponding agricultural product, the feeding information obtaining sub-module includes an RFID reader-writer, and the feeding information obtaining sub-module reads and writes the RFID tag of each agricultural product through the RFID reader-writer and transmits feeding information corresponding to the agricultural product to the processing module 10.
Specifically, the agricultural product feed production information comprises feed raw material information, feed formula information and feed production information, the agricultural product feeding information comprises farm information, agricultural product batch and variety information, feeding records, immunity records and treatment records, and the agricultural product quarantine information comprises pre-slaughter quarantine results, post-slaughter quarantine results and quarantine certification information.
A block chain agricultural product tracing method based on electronic scale nodes comprises the following steps: and generating an agricultural product identity identification code and an identification label, binding the agricultural product identity identification code and the identification label with the agricultural product, sending and storing agricultural product traceability information to the block chain link point module 4 of each traceability electronic scale 13, obtaining the agricultural product traceability information of the sold agricultural product by the traceability electronic scales 13 when the agricultural product is sold, and generating a traceability query code label for the mobile terminal 15 to perform traceability query.
Further, as shown in fig. 3, a concrete step of tracing agricultural products in a block chain based on electronic scale nodes is as follows:
s1: the agricultural product identity coding module 8 generates a unique identity identification code of each agricultural product and an identification label containing the identity identification code, and binds the identification label with the corresponding agricultural product;
s2: the acquisition module 9 acquires information of the production process of agricultural products;
s3: the processing module 10 packages and processes information of the agricultural product production process to obtain agricultural product traceability information, the chain loading module 11 sends and stores the agricultural product traceability information to the block chain link point module 4 of each traceability electronic scale 13, and the agricultural product traceability information stored in the block chain link point module 4 of each traceability electronic scale 13 is synchronously stored and cannot be modified;
s4: the tracing electronic scale 13 weighs the sold agricultural products, and the weight of the sold agricultural products and the identity identification code of the agricultural products are recorded;
s5: the tracing electronic scale 13 acquires the agricultural product tracing information corresponding to the agricultural product according to the identity identification code of the sold agricultural product, and generates a tracing inquiry image code label 14 of the sold agricultural product;
s6: the mobile terminal 15 scans and reads the image code information on the traceability query image code label 14, and obtains the traceability information of the agricultural product corresponding to the sold agricultural product.
In one embodiment of the present invention, after step S3 is completed, the logistics package marking module 12 marks the identification code of the agricultural product on the package of the slaughtered and separated agricultural product, and then transports the package to the sales department.
The embodiments described above are described to facilitate an understanding and use of the invention by those skilled in the art. It will be readily apparent to those skilled in the art that various modifications to these embodiments may be made, and the generic principles described herein may be applied to other embodiments without the use of the inventive faculty. Therefore, the present invention is not limited to the above embodiments, and those skilled in the art should make improvements and modifications within the scope of the present invention based on the disclosure of the present invention.