CN111798253A - Agricultural product traceability system based on Internet of things and block chain - Google Patents

Agricultural product traceability system based on Internet of things and block chain Download PDF

Info

Publication number
CN111798253A
CN111798253A CN202010660877.9A CN202010660877A CN111798253A CN 111798253 A CN111798253 A CN 111798253A CN 202010660877 A CN202010660877 A CN 202010660877A CN 111798253 A CN111798253 A CN 111798253A
Authority
CN
China
Prior art keywords
agricultural product
information
block chain
data
module
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN202010660877.9A
Other languages
Chinese (zh)
Inventor
莫铁军
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Yangjiang Intelligent Agricultural Science And Technology Development Co ltd
Original Assignee
Yangjiang Intelligent Agricultural Science And Technology Development Co ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Yangjiang Intelligent Agricultural Science And Technology Development Co ltd filed Critical Yangjiang Intelligent Agricultural Science And Technology Development Co ltd
Priority to CN202010660877.9A priority Critical patent/CN111798253A/en
Publication of CN111798253A publication Critical patent/CN111798253A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06QINFORMATION AND COMMUNICATION TECHNOLOGY [ICT] SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES; SYSTEMS OR METHODS SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES, NOT OTHERWISE PROVIDED FOR
    • G06Q30/00Commerce
    • G06Q30/018Certifying business or products
    • G06Q30/0185Product, service or business identity fraud
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F21/00Security arrangements for protecting computers, components thereof, programs or data against unauthorised activity
    • G06F21/60Protecting data
    • G06F21/62Protecting access to data via a platform, e.g. using keys or access control rules
    • G06F21/6218Protecting access to data via a platform, e.g. using keys or access control rules to a system of files or objects, e.g. local or distributed file system or database
    • G06F21/6227Protecting access to data via a platform, e.g. using keys or access control rules to a system of files or objects, e.g. local or distributed file system or database where protection concerns the structure of data, e.g. records, types, queries
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F21/00Security arrangements for protecting computers, components thereof, programs or data against unauthorised activity
    • G06F21/60Protecting data
    • G06F21/64Protecting data integrity, e.g. using checksums, certificates or signatures
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06QINFORMATION AND COMMUNICATION TECHNOLOGY [ICT] SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES; SYSTEMS OR METHODS SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES, NOT OTHERWISE PROVIDED FOR
    • G06Q50/00Information and communication technology [ICT] specially adapted for implementation of business processes of specific business sectors, e.g. utilities or tourism
    • G06Q50/02Agriculture; Fishing; Forestry; Mining
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/01Protocols
    • H04L67/10Protocols in which an application is distributed across nodes in the network
    • H04L67/1095Replication or mirroring of data, e.g. scheduling or transport for data synchronisation between network nodes
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/01Protocols
    • H04L67/12Protocols specially adapted for proprietary or special-purpose networking environments, e.g. medical networks, sensor networks, networks in vehicles or remote metering networks

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Business, Economics & Management (AREA)
  • Health & Medical Sciences (AREA)
  • General Health & Medical Sciences (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Computer Security & Cryptography (AREA)
  • Software Systems (AREA)
  • Bioethics (AREA)
  • Computer Hardware Design (AREA)
  • Signal Processing (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Economics (AREA)
  • General Business, Economics & Management (AREA)
  • Marketing (AREA)
  • General Engineering & Computer Science (AREA)
  • Strategic Management (AREA)
  • Primary Health Care (AREA)
  • Tourism & Hospitality (AREA)
  • Human Resources & Organizations (AREA)
  • Mining & Mineral Resources (AREA)
  • Marine Sciences & Fisheries (AREA)
  • Entrepreneurship & Innovation (AREA)
  • Accounting & Taxation (AREA)
  • Development Economics (AREA)
  • Finance (AREA)
  • Databases & Information Systems (AREA)
  • Animal Husbandry (AREA)
  • Agronomy & Crop Science (AREA)
  • Life Sciences & Earth Sciences (AREA)
  • Medical Informatics (AREA)
  • Computing Systems (AREA)
  • Management, Administration, Business Operations System, And Electronic Commerce (AREA)

Abstract

The invention relates to the field of reliability systems of block chains, in particular to an agricultural product traceability system based on the Internet of things and a block chain, which comprises a block chain network construction based on a Hyperridge Fabric platform, wherein the block chain network construction comprises a data collection module, a cloud service module, a block chain network module and an application program module; the agricultural product supply chain data are received and converted into the node database and the information database by the application layer, deployment operation is carried out under supervision of the block chain network layer, and agricultural product traceability information query is carried out through the application layer. Information safety management in the whole crop supply chain is realized, so that management and privacy protection of different roles are realized; in order to improve the storage capacity of the system, the cloud service module adopts a multi-mode storage mechanism which combines chain storage and a distributed database with multi-level backup; in order to manage business data and hazard information, improve data reliability and reduce risks, customized intelligent contracts are used to control data reading and writing.

Description

Agricultural product traceability system based on Internet of things and block chain
Technical Field
The invention relates to the field of reliability systems of block chains, in particular to an agricultural product traceability system based on the Internet of things and the block chains.
Background
In recent years, various food safety problems and uguese have arisen, such as mad cow disease, mercury-containing rice, toxic milk powder, illegal cooking oil, bacterially infected spinach, horse meat, uguese and eggs contaminated with fipronil. As a result, the public now pays more attention to food safety. Cereals are basic staple foods, which are considered to be of vital importance for human health and survival. Cereals generally refer to grains, potatoes, legumes and other crops, as well as processed and semi-finished products. The grain supply chain is characterized by long life cycle, complex links, various hazards and heterogeneous information sources. Effective information management throughout the grain supply chain can improve information disclosure and sharing, reduce hazards during production, and ensure food safety.
The existing cereal Internet of things supply chain management system has four main problems. Firstly, there are many participants on the supply chain of the internet of things, and the links across regions are long. Different enterprises and organizations participate in each link of the supply chain, information sharing is not smooth, and data trust problems exist among participants, particularly among non-adjacent links in the supply chain. Therefore, management is complicated, and more effective information management is required. Secondly, the supply chain of the internet of things is a centralized system, and is generally managed by leading enterprises in the grain supply chain. It is mainly supervised by various laws, regulations, policies and regulations at various levels and also depends on the professional moral of the participants. However, at the computer information level, there are problems of information loss and susceptibility to tampering. Third, there are many complex links in the grain supply chain. The information flow between each link is mainly in the form of data (e.g., transaction information and merchandise information) generated by business transactions between different links. The recording of chemical contamination, insect and mold development and quality degradation in the supply chain is incomplete. Currently, there is no complete life cycle tracking and monitoring system that addresses the hazards that affect grain safety. Fourth, most of the basic information is traced through static identification throughout the grain supply chain. However, the dynamic and real-time tracking of the multi-dimensional heterogeneous information is more important throughout the life cycle.
Blockchain technology was originally used in the field of digital currency to guarantee transactions. Since then, blockchains have attracted interest in many industries and have been applied to finance, medicine, government management, property management, and the like. Recently, blockchain techniques have been introduced in the food safety field to track food information. A blockchain is a distributed computing paradigm characterized by decentralization, full network recording, low cost, high efficiency, security, and reliability. Thus, it can reduce management cost, reduce transaction risk, improve information credibility, improve supervision transparency and implement reliable flow. Thus, the use of blockchains in food supply chain information management can potentially eliminate information asymmetries, enable the synchronous updating of information between all nodes, eliminate product quality issues caused by stakeholders, and enhance information credibility. In view of its decentralized nature and the ability to prevent data tampering, blockchains can be viewed as one way to overcome the shortcomings of conventional systems.
The agricultural product traceability system aims to construct an agricultural product traceability system solution based on the Internet of things and a block chain. The crop supply chain management system is mainly used for achieving information safety management in the whole crop supply chain so as to achieve management and privacy protection of different roles. Secondly, to increase the system storage capacity, we propose a multi-mode storage mechanism that combines chained storage and distributed databases with multi-level backup. Thirdly, in order to manage business data and hazard information, improve data reliability and reduce risks, a customized intelligent contract is used to control data reading and writing.
Disclosure of Invention
Based on the above, there is a need to design an agricultural product traceability system based on the internet of things and a blockchain, wherein the agricultural product traceability system is constructed based on a blockchain network of a HyperLegger Fabric platform, and comprises a data collection module, a cloud service module, a blockchain network module and an application program module;
the data collection module is a data collection layer, and the data collection layer is used for reading EPC labels by inserting an EPC coding system to collect data of agricultural product production links, agricultural product storage links, agricultural product processing links, agricultural product Internet of things links and agricultural product marketing links;
the cloud service module is a cloud service layer, the cloud service layer is composed of a node database and an information database, the node database is an independent database of each node in the block chain network and is used for storing data of the whole agricultural product supply chain and data of the block chain network, and the information database is used for storing some data which do not need to be agreed with by the system;
the block chain network module is a block chain network layer, and the block chain layer constructs a block chain network by taking enterprises, supervision departments and third-party research institutions in the agricultural product supply chain as nodes of the block chain and deploys and implements intelligent contracts;
the application program module is an application layer, the application layer is composed of a business system and an application program service system, the business system is developed based on a block chain platform and is mainly used for acquiring and managing key information in a supply chain of agricultural products, and the application service system is used for inquiring and monitoring supply chain information of all roles in the supply chain;
the agricultural product supply chain data are received and converted into the node database and the information database by the application layer, deployment operation is carried out under supervision of the block chain network layer, and agricultural product traceability information query is carried out through the application layer.
Furthermore, the business system comprises an encoding module, a block chain interaction module, a data processing module and a monitoring module.
Further, the coding module allocates codes for the information of the agricultural product supply chain; the block chain interaction module is used for supporting data interaction and intelligent contract deployment; the data processing module is a data interaction channel of a data producer in an agricultural product supply chain; the monitoring module operates to monitor the entire system of the agricultural product supply chain.
Further, the application program service system comprises a business interaction module and a privacy protection module.
Furthermore, the business interaction module performs information interaction with the business system through an interface and processes information in the agricultural product supply chain in a visual mode; the privacy protection module is used for executing authority control on a system user, encryption and decryption of private information and generation of a secret key.
Further, the cloud service module further comprises a redundant database, and the redundant database insertion data algorithm formula is as follows:
Figure BDA0002577924050000041
the agricultural product traceability system based on the Internet of things and the block chain at least comprises the following advantages:
the agricultural product supply chain is characterized by numerous nodes, long supply chain and wide coverage, so that the system is required to break the information isolated island problem among links, promote information connection and realize data exchange;
2, every business in the agricultural supply chain has some sensitive information that cannot be fully revealed (e.g., transaction records and cost information) therefore, it is necessary to sort the information uploaded to the blockchain, rank the information, differentiate its sensitivity, and ensure that the information remains open without disclosing private information;
3, the agricultural product supply chain has a large amount of data of various types, the block chain information is stored in the chain structure consisting of modules, and the data content is stored in the main body of the modules. The system perfects and solves the problems that the size of the module is fixed, a large amount of data is difficult to store, and data explosion is easy to occur. Furthermore, the modules are typically stored in the form of files in a local database at each node in the blockchain network. This is inconvenient for storing pictures, documents and other information;
and 4, information safety management in the whole agricultural product supply chain is realized, so that management and privacy protection of different roles are realized. Secondly, to increase the system storage capacity, we propose a multi-mode storage mechanism that combines chained storage and distributed databases with multi-level backup. Thirdly, in order to manage business data and hazard information, improve data reliability and reduce risks, a customized intelligent contract is used to control data reading and writing.
Drawings
FIG. 1 is a schematic diagram of the agricultural product supply chain of the present invention;
FIG. 2 is a schematic diagram of the security management system of the agricultural product supply chain according to the present invention;
FIG. 3 is a schematic diagram of the encoding display of the present invention;
FIG. 4 is a schematic diagram of a system information execution flow according to the present invention;
FIG. 5 is a schematic diagram of a system intelligent contract of the present invention.
Detailed Description
In order to make the aforementioned objects, features and advantages of the present invention comprehensible, embodiments accompanied with figures are described in detail below. In the following description, numerous specific details are set forth in order to provide a thorough understanding of the present invention. This invention may, however, be embodied in many other forms not specifically set forth herein and many modifications may be made by one skilled in the art without departing from the spirit and scope of the invention.
Meanwhile, in the description of the present invention, unless otherwise explicitly specified or limited, the terms "connected" and "connected" should be interpreted broadly, for example, as being fixedly connected, detachably connected, or integrally connected; the connection can be mechanical connection or electrical connection; may be directly connected or indirectly connected through an intermediate. The specific meanings of the above terms in the present invention can be understood in specific cases by those skilled in the art
Meanwhile, in the description of the present invention, unless otherwise explicitly specified and limited, the terms "left end", "right end", "front end", "rear end", "lower", "upper", "downward", "upward" should be broadly construed, for example, front-back-front-up-down-up-down-left-right with reference to the drawings. The specific meanings of the above terms in the present invention can be understood in specific cases to those skilled in the art.
Referring to fig. 1, fig. 2, fig. 3, and fig. 4, the present invention is an agricultural product traceability system based on the internet of things and a blockchain, the agricultural product traceability system is constructed based on a blockchain network of a hyper-ridger Fabric platform, and the agricultural product traceability system includes a data collection module, a cloud service module, a blockchain network module, and an application program module;
the data collection module is a data collection layer, and the data collection layer is used for reading EPC labels by inserting an EPC coding system to collect data of agricultural product production links, agricultural product storage links, agricultural product processing links, agricultural product Internet of things links and agricultural product marketing links;
wherein, the agricultural product supply chain takes agricultural products and processing products thereof as main carriers. It includes the planting and production of agricultural products, primary agricultural product processing, agricultural product distribution, deep agricultural product processing, and eventual shipping and distribution to consumers. The supply chain uses agricultural product processing enterprises as core nodes, and integrates growers, agricultural product planting enterprises, agricultural product distribution enterprises, logistics enterprises and distributors. These, in conjunction with governments, research institutions and financial institutions, form a network that integrates logistics, traffic, information flow and funding flow. As many businesses participate in the supply chain, the information between nodes is asymmetric. Furthermore, different standards and storage formats can lead to difficulties in transmitting information smoothly, and the information requirements are variable and time dependent. Agricultural product supply chain nodes are independent stakeholders who only focus on data and business processing in their respective domains. Due to the lack of corresponding interface standards and specifications, there is no information sharing or service integration between them, thus forming an "information island". This information islanding problem affects not only enterprise information construction and information sharing throughout the supply chain, but also information supervision and traceability. In the present invention, therefore, we have identified five typical links in the agricultural product supply chain: agricultural product production link (G1), agricultural product storage link (G2), agricultural product processing link (G3), agricultural product logistics and transportation link (G4) and agricultural product marketing link (G5). G1 includes the planting, growing and harvesting of agricultural crops. It is well known that the planting of agricultural crops has seasonal characteristics and, in addition, the purchase of agricultural crops has regional characteristics. G2 includes multi-point and multi-tier storage of agricultural produce and storage of all grades of agricultural produce processed products. G3 relates to the processing of raw materials, including both primary and further processing. G4 covers the entire agricultural product supply chain, including the purchase, storage, processing and distribution of raw materials to consumers; all of which require logistics and transportation. The agricultural product supply chain is a complex network in which the five links are nested and evolve one after another (see fig. 1). Therefore, the information security management system needs to record information of all nodes in the database. The data mainly comprises basic attributes of agricultural products, quality information of the agricultural products, environmental information of each link, a processing process and operating parameters of the agricultural products and management information of each link. To implement an information security management system, data may be collected for each link in the supply chain using internet of things technology. The data collection layer is mainly completed by an electronic tag, various sensors, a bar code scanning gun, a camera, a data terminal and the like.
Where identifying the EPC tag is particularly critical, the agricultural products and their processed products may be mixed together during storage and transportation. The encoding methods used in the traditional supply chain do not meet the unique requirements of the agricultural product supply chain. Therefore, the invention follows the principle of 'one link, one code' when designing a coding system. When product ownership changes in the agricultural product supply chain, the system generates a new product code to mark the current supply chain link and organization of the cereal product according to the current product supply chain link. The EPC is a new generation coding system based on a unified global identification system that can uniquely identify objects in the agricultural product supply chain. By reading the EPC tag, identified agricultural product information may be obtained. The EPC has three coding methods: 64 bits, 96 bits, and 256 bits. Fig. 3). EPC-64 III code consists of four parts: version number, domain name management, object classification and sequence number. Domain name management consists of 26 bits that identify the type of supply chain node business and the business where the grain is located. The 18-bit unified social credit code and 4-bit node type identification code for each business are used in the domain name management field in the code. The object classification has 13 digits in total. Seven bits were used to record the grain categories including raw materials, primary processed products and further processed products. A proper coding information database is established according to the standards of 'food information classification coding and food and processed product classification coding' in the Chinese food industry. Reserving six bits; the sequence number is 23 bits. The first 12 bits are used to record a specific time of the current information, and the last 11 bits are used to record a sequence number of the current information. To ensure that the product data in each link are interrelated, the notion of source code and object code is introduced into the encoding scheme. The source code represents a link previous to the current link and the object code represents the product code of the current link. At the same time, the object code acts as the source code for the next link. The concept of source code and object code is introduced in the coding scheme. The source code represents a link previous to the current link and the object code represents the product code of the current link. At the same time, the object code acts as the source code for the next link. The concept of source code and object code is introduced in the coding scheme. The source code represents a link previous to the current link and the object code represents the product code of the current link. At the same time, the object code acts as the source code for the next link.
The cloud service module is a cloud service layer, the cloud service layer is composed of a node database and an information database, the node database is an independent database of each node in the block chain network and is used for storing data of the whole agricultural product supply chain and data of the block chain network, and the information database is used for storing some data which do not need to be agreed with by the system; the database architecture for agricultural product supply chain information management is constructed by a cloud server. The cloud database has the advantages of being convenient to deploy, complete in safety mechanism, capable of achieving rapid deployment of the database, reducing operation cost and improving resource utilization rate.
The block chain network module is a block chain network layer, and the block chain layer constructs a block chain network by taking enterprises, supervision departments and third-party research institutions in the agricultural product supply chain as nodes of the block chain and deploys and implements intelligent contracts; the intelligent contract is a key part of a block chain driven information management system in an agricultural product supply chain. The whole system needs to realize business logic through intelligent contracts. The intelligent contract is a binding digital protocol with functions of dispersion, self-checking and self-execution. By setting some execution conditions which can be automatically triggered, the method can provide information interaction, value transfer and other functions for users in the block chain network. There are two types of intelligent contracts in this system. Customized intelligent contracts are defined primarily in accordance with relevant laws, regulations and standards. When different conditions are met, different functions will be triggered. As shown in FIG. 5, when information is uploaded, the node will invoke the relevant intelligent contract to process the uploaded data and compare the data to metrics in the information database. If the index does not meet the preset condition, the system executes the preset response rule, uploads the data and reports the adverse event to the supervisor and the enterprise. If the quality index meets the preset condition, the system classifies and uploads the quality index according to the evaluation index in the data. This method allows real-time monitoring of supply chain information. The method can help enterprises and supervision authorities to investigate and process potential safety hazards in time, and quality and safety accidents are avoided. Another intelligent contract is an extended contract. The intelligent contracts are mainly expanded to meet different requirements of different companies in terms of private information and quality standards of agricultural products. By changing the intelligent contract code to meet different requirements, the specific requirements of enterprises in the agricultural product supply chain are met.
Based on the operation mode of the block chain, the information management mechanism of the agricultural product supply chain is realized through an intelligent contract. As described above, production companies create intelligent contracts and then use them to gather information. A data upload process for a product produced by an agricultural product manufacturing enterprise is described. Data entry is accomplished through the application platform. After uniform formatting, the data (production) collection contract will be invoked. Then, the contract calls the related subcontract, and the current enterprise information and the raw material source information are obtained according to the input information and the production index information. If the raw material parameters meet the production specification requirements, the contract will create a destination code corresponding to the currently uploaded data and then check whether the uploaded data meets the requirements of the production process. If the contract is satisfied, the contract will sort the information and upload it into a package. Finally, it will return the message of "uploading successfully", the contract conversation is over. If the requirements are not met, "data exception warning" occurs and exception data is returned. If the raw material does not meet the requirement of the production index, a 'raw material abnormity' notice is sent out, abnormal data is returned, and the contract is terminated.
Algorithm 1 data acquisition contract (production)
Enterprise ID, raw material ID, source code, production time, production process index, test data, product type
Contract conversation: querying enterprise information
Contract calling: query raw material information
Contract calling request: product indicator information
Contract conversation request: information corresponding to Sid code
If the raw material parameter is equal to the target value, then
Creating object code
If the test data is successful, then
Packaging and uploading
Return message "success"
End up
Others
Packaging and uploading data
Return message data abort and complete
Abnormal data
End up
End up
Others
Creating object code
Return message "raw Exception" and complete
Abnormal data
End up
Algorithm 2 shows that each node queries the agricultural product supply chain data through the platform. The logic of the algorithm is applicable to all information query services in the supply chain. And different nodes input query information and information types through the platform and call data query contracts. After the contract receives the data, the contract calls a subordinate information query module to perform information retrieval according to the information type. First, the contract will determine the rights of the current user. If the authority verification is successful, the contract calls a corresponding query module to query information according to the query type. If the target information meets the requirements, the query system will add the number of queries to create a lookup table corresponding to the current information. It will record the query user and query time and finally return the query notification and detailed information. The displayed information is determined according to the authority of the current user. If no corresponding query target exists, a notification message of 'query failure, no record' is returned. If the authorization verification fails, a message "user authorization verification failed" is returned.
Algorithm 2 data query contract
Inputting: querying information, type of information
Contract conversation: information inquiry module
If the privilege is successful, then
Determining query type
Invoking a query module
If the query information is equal to the target value, then
Query counter +
Creating a message query list
Record inquirer and time
Return notification message success and detailed information
End up
Others
Return notice message "query failed, no record"
End up
End up
Others
Return notice message "user authority verification failure"
End up
The application program module is an application layer, the application layer is composed of a business system and an application program service system, the business system is developed based on a block chain platform and is mainly used for acquiring and managing key information in a supply chain of agricultural products, and the application service system is used for inquiring and monitoring supply chain information of all roles in the supply chain;
the agricultural product supply chain data are received and converted into the node database and the information database by the application layer, deployment operation is carried out under supervision of the block chain network layer, and agricultural product traceability information query is carried out through the application layer.
Preferably, the service system comprises an encoding module, a block chain interaction module, a data processing module and a monitoring module.
Preferably, the encoding module assigns codes to the information of the agricultural product supply chain, and creates corresponding codes for the uploaded data by identifying the key information generated in each link of the agricultural product supply chain, so as to facilitate data archiving and query;
the blockchain interaction module supports data interaction and intelligent contract deployment, and the data interaction comprises the construction of a proper blockchain platform to inquire key information in a supply chain. Intelligent contract deployment can ensure the authenticity of data and extend the supply chain information management system by verifying contracts for all roles in the supply chain;
the data processing module is a data interaction channel of a data producer in the agricultural product supply chain, so that all participants can perform data synchronization, a data chain function, a data viewing function and the like;
the monitoring module monitors the operation of the whole system of the agricultural product supply chain, and tracking, risk assessment, prediction and early warning can be realized by analyzing the agricultural product supply chain data stored in the database.
Preferably, the application service system comprises a business interaction module and a privacy protection module.
Preferably, the service interaction module performs information interaction with the service system through an interface, processes information in the agricultural product supply chain in a visual mode, and is an interactive interface for a user to manage the information in the agricultural product supply chain;
the privacy protection module is used for executing authority control on a system user, encryption and decryption of private information and generation of a secret key.
Preferably, the cloud service module further includes a redundant database, and the redundant database insertion data algorithm formula is as follows:
Figure BDA0002577924050000151
the blockchain network is a basis for agricultural product supply chain information management. According to the blockchain principle, each link in the agricultural product supply chain is considered as a node in the blockchain network. Each node has a function of recording information. Each node invokes an intelligent contract deployed in the blockchain network through the business system. After the consensus is achieved, the complete data is stored in the node database, and the hash-encrypted data is stored in the blockchain node in the ledger. The node database is an off-link database for each blockchain node. The node database consists of a main database and a redundant database. The master database stores the complete data uploaded to the system by each node enterprise and the mapping between the current data and the blocks in the blockchain ledger. The main database of each node only stores the supply chain data of the current node enterprise, including the business information, the environment information and the harmful substance information of the enterprise. In order to further ensure the safety and the credibility of the data under the chain, the invention adds a redundant database to store the data backup in the main database of the non-adjacent node. Data in the redundant database can only be written into and cannot be modified. The mapping is composed of a master database of non-adjacent nodes to prevent data tampering;
where k represents the node that needs to be backed up, n represents the number of points in the supply chain, fF represents the forward backup node, fB represents the forward backup node, L "represents a floor, and mod represents the remainder. When n is 5 and n is 6, bidirectional redundant backup is carried out on the same node, so that the unidirectional non-adjacent nodes are used for backup, the k node is backed up to the k-2 and k +3 nodes, the k node is backed up to the data of the k _3 and k +2 nodes, and the grain supply chain information database is mainly used for storing public information required in the operation process of the system, such as enterprise types, product types, evaluation standards and the like.
The block chain network and the node database construct a multi-mode storage mechanism for the grain supply chain, and provide strong data protection for information management. The block chain ensures the traceability and the non-tamper property of the information, and the node database solves the problem of insufficient storage capacity of the block chain. The redundant backup mechanism of the non-adjacent nodes can reduce information tampering caused by the benefits of the adjacent nodes, and the credibility of the data is improved by setting database authority. Meanwhile, the data are stored in the cloud database, so that not only is local resource consumption reduced, but also rapid deployment of the database, remote backup of database deployment and remote backup of database information are realized.
The block chain network based on the HyperLegger Fabric platform uses the website as an information interaction platform to manage the information in the grain supply chain. Enterprises in all links of the agricultural product supply chain will register on the website. Through this website, we provide an authenticated and controlled Web-based API and application programming interface to access the blockchain. All companies in the supply chain must use the web site to manage supply chain information. Figure 4 shows a transaction process.
The above description is only a preferred embodiment of the present invention, the present invention is not limited to the above embodiment, and there may be some slight structural changes in the implementation, and if there are various changes or modifications to the present invention without departing from the spirit and scope of the present invention, and within the claims and equivalent technical scope of the present invention, the present invention is also intended to include those changes and modifications.

Claims (6)

1. An agricultural product traceability system based on the Internet of things and a block chain is characterized in that the system is constructed based on the block chain network of a HyperLegendric Fabric platform, and comprises a data collection module, a cloud service module, a block chain network module and an application program module;
the data acquisition module is a data collection layer, and the data collection layer is used for reading EPC labels by inserting an EPC coding system to collect data of agricultural product production links, agricultural product storage links, agricultural product processing links, agricultural product Internet of things links and agricultural product marketing links;
the cloud service module is a cloud service layer, the cloud service layer is composed of a node database and an information database, the node database is an independent database of each node in a block chain network and is used for storing data of the whole agricultural product supply chain and data of the block chain network, and the information database is used for storing some data which do not need to be identified in a storage system;
the block chain network module is a block chain network layer, and the block chain layer constructs a block chain network by taking enterprises, supervision departments and third-party research institutions in an agricultural product supply chain as nodes of a block chain, and deploys and implements intelligent contracts;
the application program module is an application layer, the application layer is composed of a business system and an application program service system, the business system is developed based on a block chain platform and is mainly used for acquiring and managing key information in an agricultural product supply chain, and the application service system is used for inquiring and monitoring supply chain information of all roles in the supply chain;
the agricultural product supply chain data are received and converted into the node database and the information database by the application layer, deployment operation is carried out under the supervision of the block chain network layer, and agricultural product traceability information query is carried out through the application layer.
2. The agricultural product traceability system based on the internet of things and the block chain as claimed in claim 1, wherein: the business system comprises an encoding module, a block chain interaction module, a data processing module and a monitoring module.
3. The agricultural product traceability system based on the internet of things and the block chain as claimed in claim 2, wherein: the encoding module allocates codes for the information of the agricultural product supply chain; the block chain interaction module supports data interaction and intelligent contract deployment; the data processing module is a data interaction channel of a data producer in the agricultural product supply chain; the monitoring module operates for monitoring an entire system of the agricultural product supply chain.
4. The agricultural product traceability system based on the internet of things and the block chain as claimed in claim 1, wherein: the application program service system comprises a business interaction module and a privacy protection module.
5. The agricultural product traceability system based on the internet of things and the block chain as claimed in claim 4, wherein: the business interaction module is used for carrying out information interaction with the business system through an interface and processing information in the agricultural product supply chain in a visual mode; the privacy protection module is used for executing authority control on a system user, encryption and decryption of private information and generation of a secret key.
6. The agricultural product traceability system based on the internet of things and the block chain as claimed in claim 1, wherein: the cloud service module further comprises a redundant database, and the redundant database insertion data algorithm formula is as follows:
Figure FDA0002577924040000021
CN202010660877.9A 2020-07-09 2020-07-09 Agricultural product traceability system based on Internet of things and block chain Pending CN111798253A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202010660877.9A CN111798253A (en) 2020-07-09 2020-07-09 Agricultural product traceability system based on Internet of things and block chain

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202010660877.9A CN111798253A (en) 2020-07-09 2020-07-09 Agricultural product traceability system based on Internet of things and block chain

Publications (1)

Publication Number Publication Date
CN111798253A true CN111798253A (en) 2020-10-20

Family

ID=72810688

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202010660877.9A Pending CN111798253A (en) 2020-07-09 2020-07-09 Agricultural product traceability system based on Internet of things and block chain

Country Status (1)

Country Link
CN (1) CN111798253A (en)

Cited By (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112465660A (en) * 2020-12-02 2021-03-09 上海嗨酷强供应链信息技术有限公司 Open source block chain traceability system based on superridge framework technology
CN112540338A (en) * 2020-10-23 2021-03-23 国网天津市电力公司 Intelligent electric meter verification system based on block chain technology
CN112633903A (en) * 2020-12-25 2021-04-09 江西裕丰智能农业科技有限公司 Product safety traceability system based on internet of things control
CN114493637A (en) * 2022-01-29 2022-05-13 山东浪潮工业互联网产业股份有限公司 Block chain-based traditional Chinese medicine tracing method, equipment and medium
CN115002161A (en) * 2022-06-09 2022-09-02 北银金融科技有限责任公司 Thing networking finance integrated management system based on block chain
CN115643106A (en) * 2022-12-07 2023-01-24 广东邦盛北斗农业科技有限公司 Agricultural product quality data transmission method based on artificial intelligence and cloud platform
CN117557283A (en) * 2023-12-04 2024-02-13 太仓泽远供应链管理有限公司 Retrospective monitoring system suitable for logistics supply chain monitoring

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107122985A (en) * 2017-05-09 2017-09-01 广东工业大学 A kind of agricultural-product supply-chain traceability system based on Internet of Things and block chain
CN109214750A (en) * 2018-08-14 2019-01-15 广东博云公共平台网络科技有限公司 A kind of method and system based on Internet of Things and block chain technical management agricultural product
CN109784956A (en) * 2019-02-25 2019-05-21 重庆邮电大学 Agricultural product source tracing method based on block chain technology

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107122985A (en) * 2017-05-09 2017-09-01 广东工业大学 A kind of agricultural-product supply-chain traceability system based on Internet of Things and block chain
CN109214750A (en) * 2018-08-14 2019-01-15 广东博云公共平台网络科技有限公司 A kind of method and system based on Internet of Things and block chain technical management agricultural product
CN109784956A (en) * 2019-02-25 2019-05-21 重庆邮电大学 Agricultural product source tracing method based on block chain technology

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
陈宏兴;张红;: "基于动态评分的视频监控中心云存储系统", 可编程控制器与工厂自动化, no. 8 *

Cited By (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112540338A (en) * 2020-10-23 2021-03-23 国网天津市电力公司 Intelligent electric meter verification system based on block chain technology
CN112465660A (en) * 2020-12-02 2021-03-09 上海嗨酷强供应链信息技术有限公司 Open source block chain traceability system based on superridge framework technology
CN112633903A (en) * 2020-12-25 2021-04-09 江西裕丰智能农业科技有限公司 Product safety traceability system based on internet of things control
CN114493637A (en) * 2022-01-29 2022-05-13 山东浪潮工业互联网产业股份有限公司 Block chain-based traditional Chinese medicine tracing method, equipment and medium
CN115002161A (en) * 2022-06-09 2022-09-02 北银金融科技有限责任公司 Thing networking finance integrated management system based on block chain
CN115643106A (en) * 2022-12-07 2023-01-24 广东邦盛北斗农业科技有限公司 Agricultural product quality data transmission method based on artificial intelligence and cloud platform
CN117557283A (en) * 2023-12-04 2024-02-13 太仓泽远供应链管理有限公司 Retrospective monitoring system suitable for logistics supply chain monitoring
CN117557283B (en) * 2023-12-04 2024-04-16 太仓泽远供应链管理有限公司 Retrospective monitoring system suitable for logistics supply chain monitoring

Similar Documents

Publication Publication Date Title
CN111798253A (en) Agricultural product traceability system based on Internet of things and block chain
US11928733B2 (en) Systems and user interfaces for holistic, data-driven investigation of bad actor behavior based on clustering and scoring of related data
US11102224B2 (en) Systems and user interfaces for dynamic and interactive investigation of bad actor behavior based on automatic clustering of related data in various data structures
Phillips et al. Industry classification schemes: An analysis and review
Bendre et al. Analytics, challenges and applications in big data environment: a survey
US7693810B2 (en) Method and system for advanced scenario based alert generation and processing
O'leary The use of social media in the supply chain: Survey and extensions
US20060294095A1 (en) Runtime thresholds for behavior detection
CN109522746A (en) A kind of data processing method, electronic equipment and computer storage medium
US20020059080A1 (en) System, method, and user interface for managing intermediate healthcare facilities over computer networks
Epiphaniou et al. Smart distributed ledger technologies in Industry 4.0: Challenges and opportunities in supply chain management
US20150310457A1 (en) User managed method for capturing and pricing data items to develop a salable digital persona
Zhang et al. A traceability public service cloud platform incorporating IDcode system and colorful QR code technology for important product
CN113094365A (en) Food safety tracing system, method and equipment and readable storage medium
US20140122163A1 (en) External operational risk analysis
Yin et al. Utilizing blockchain technology to manage the dark and bright sides of supply network complexity to enhance supply chain sustainability
CN113434575A (en) Data attribution processing method and device based on data warehouse and storage medium
CN114581111A (en) Chinese herbal medicine tracing system based on block chain and Internet of things
US20220391821A1 (en) Data-driven requirements analysis and matching
Zeng et al. Towards a national infectious disease information infrastructure: a case study in West Nile virus and botulism
Park et al. Cross-boundary information sharing in regulatory contexts: The case of financial markets
ur Rehman et al. Big data analysis and implementation in different areas using IoT
Langabeer Achieving a strategic focus for competitive intelligence
Jha A big data architecture for integration of legacy systems and data
Lynham From data to information

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination