Container grain storage status coding blockchain data collection equipment and method
By adopting the container grain reserve status coding blockchain data collection method in the grain industry, the problem of lack of effective data collection in the grain industry is solved, the traceability of grain quality and the efficiency of food safety supervision are achieved, and the industry's progress is promoted. healthy development.
Patent Information
- Application Number
- CN202010000794.7
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2020-01-02
- Publication Date
- 2024-08-23
- Estimated Expiration
- 2040-01-02
AI Technical Summary
The existing technology lacks an effective data collection method for container grain reserve status in the grain industry, making it difficult to trace grain quality and affecting food safety and industry management efficiency.
The container grain reserve status coding blockchain data collection method is used to obtain quality, quantity, temperature, humidity, insect status and gas data through sensor equipment and IoT multi-function gateways, generate traceability codes and publish them on the blockchain to ensure Data traceability and security.
It achieves full data collection and traceability of grain reserve status, improves the efficiency and transparency of food safety supervision, clarifies responsibilities, and promotes the healthy and orderly development of the industry.
Smart Images

Figure CN111242530B
Abstract
Description
Technical Field
[0001] The present invention relates to the field of grain logistics technology, and in particular to a method, device and system for collecting data on a blockchain for coding grain reserve status in containers. Background Art
[0002] At present, many countries and regions around the world have established special departments, formulated relevant laws and regulations on food safety, and established food traceability systems to supervise, track and trace the food production process.
[0003] At present, the need to carry out quality traceability of grain and oil products is extremely urgent, which will also have a huge impact on the development of the food industry.
[0004] At present, management departments at all levels in the domestic grain industry have begun attempts to trace the industry based on cloud platforms and big data. However, due to the fact that common problems in the application of cloud computing technology in the grain industry have not yet been resolved, the supporting role of advanced information technology for the industry has been restricted. Summary of the invention
[0005] In view of the deficiencies in the prior art, the present invention provides a method, device and system for collecting container grain reserve status coded blockchain data to solve the current problem of lack of container grain reserve status data.
[0006] In a first aspect, the present invention provides a method for collecting data on a blockchain for coding the state of grain reserves in a container, comprising:
[0007] The quality data, quantity data, storage location data, temperature data, humidity data, insect data and gas data of the grain in each warehouse are obtained from the sensor equipment for container grain storage and the multifunctional gateway of the Internet of Things installed in each warehouse;
[0008] According to the inventory identification code compilation rules, based on the quality data, quantity data, storage location data, temperature data, humidity data, insect data and gas data, a container grain storage status traceability code for each storage location is generated;
[0009] For any container grain reserve status traceability code, generate coded blockchain data and publish it on the coded blockchain.
[0010] Furthermore, the container grain reserve status coding blockchain data collection method includes:
[0011] The traceability code of any container grain reserve status generates coded blockchain data and publishes it on the coded blockchain, including:
[0012] The container grain reserve status traceability code is compressed into a transaction summary through a hash function;
[0013] Perform a signature operation on the user private key of the source node that generates the status traceability code and the transaction summary to generate a transaction signature;
[0014] Broadcasting the transaction signature and public key to all surrounding nodes so that each surrounding node can read the transaction signature and public key;
[0015] Each peripheral node retrieves the data location information corresponding to the transaction signature in its locally stored copy of the blockchain to verify the transaction signature;
[0016] The peripheral node that passes the verification first will save the transaction signature corresponding to the container grain reserve code on the coded blockchain.
[0017] Furthermore, the container grain reserve status coding blockchain data collection method,
[0018] The sensor equipment for containerized grain storage and the multifunctional gateway of the Internet of Things set in each warehouse are used to obtain the quality data, quantity data, storage location data, temperature data, humidity data, insect data and gas data of the grain in each warehouse, including:
[0019] The multifunctional gateway of the Internet of Things receives the original quality data, original storage location data, original quantity data, original temperature data, original humidity data, original insect condition data and original gas data sent by the sensor equipment for container grain storage through the switchable RS232 / 485 interface, filters out the noise of the signal, and transmits the filtered signal to the embedded industrial control mainboard; after the industrial control mainboard receives the data, it converts the original quality data, original storage location data, original quantity data, original temperature data, original humidity data, original insect condition data and original gas data sent by the sensor equipment for container grain storage into quality data, quantity data, storage location data, temperature data, humidity data, insect condition data and gas data in a preset protocol format according to the configuration of the webservice service program running on the mainboard.
[0020] Furthermore, the container grain reserve status coding blockchain data collection method,
[0021] The inventory identification code compilation rules are used to generate the container grain storage status traceability code for each warehouse according to the quality data, quantity data, storage location data, temperature data, humidity data, insect data and gas data, including:
[0022] Taking cargo location as a unit, generating fields of each reserve status traceability code that complies with the inventory identification code compilation rules according to the quality data, quantity data, storage location data, temperature data, humidity data, insect data and gas data;
[0023] The fields of the reserve status traceability code include: reserve grain identification code, root code, current code, root cargo location information, root code mark, current cargo location information, attribute information, social credit code, business number, cargo location code, cargo location entry time, cargo location exit time, and reserve status;
[0024] Among them, the reserve grain identification code field is composed of the root code and the current code;
[0025] The root code is composed of the root cargo location information and the root code mark;
[0026] The root cargo location information is the initial cargo location code information of the reserve grain. When determining the initial cargo location code information of the reserve grain, if the grain is mixed from different sources to form a cargo location, the initial cargo location code of the grain with the longest age shall be taken; if the grain of the same age from different sources is mixed to form a cargo location, the initial cargo location code of the grain with the largest quantity proportion shall be taken.
[0027] Furthermore, the container grain reserve status coding blockchain data collection method,
[0028] The types of grains in the warehouse include: wheat, soybeans, corn, indica rice, and japonica rice;
[0029] The quality data of grain in the warehouse includes:
[0030] Data corresponding to five indicators: the rough rice rate, color and smell, moisture, impurities and yellow rice;
[0031] Data corresponding to five indicators of wheat: bulk density, imperfect kernels, color and smell, moisture and impurities; data corresponding to three indicators: color and smell, gluten water absorption and tasting score;
[0032] Data corresponding to 6 indicators of corn: bulk density, imperfect kernels, moldy kernels, color and odor, moisture and impurities; data corresponding to 2 indicators: color and odor, and fatty acid value of corn;
[0033] The data corresponding to the five indicators of soybean purity rate, broken grains, color and smell, moisture and impurities; the data corresponding to the three indicators of soybean color and smell, crude fatty acid value and protein solubility ratio.
[0034] In a second aspect, the present invention provides a container grain reserve status coding blockchain data collection device, comprising:
[0035] The container food storage status data acquisition unit is used to:
[0036] The quality data, quantity data, storage location data, temperature data, humidity data, insect data and gas data of the grain in each warehouse are obtained from the sensor equipment for container grain storage and the multifunctional gateway of the Internet of Things installed in each warehouse;
[0037] The reserve status traceability code generation unit is used to:
[0038] According to the inventory identification code compilation rules, based on the quality data, storage location data, quantity data, temperature data, humidity data, insect data and gas data, a container grain storage status traceability code for each storage location is generated;
[0039] Coded blockchain data generation unit, used for:
[0040] For any container grain reserve status traceability code, generate coded blockchain data and publish it on the coded blockchain.
[0041] Furthermore, the container grain storage status coding blockchain data collection device,
[0042] Coded blockchain data generation unit, used for:
[0043] The container grain reserve status traceability code is compressed into a transaction summary through a hash function;
[0044] Perform a signature operation on the user private key of the source node that generates the status traceability code and the transaction summary to generate a transaction signature;
[0045] Broadcasting the transaction signature and public key to all surrounding nodes so that each surrounding node can read the transaction signature and public key;
[0046] Each peripheral node retrieves the data location information corresponding to the transaction signature in its locally stored copy of the blockchain to verify the transaction signature;
[0047] The peripheral node that passes the verification first will save the transaction signature corresponding to the container grain reserve code on the coded blockchain.
[0048] Furthermore, the container grain storage status coding blockchain data collection device,
[0049] The container food storage status data acquisition unit is used to:
[0050] The multifunctional gateway of the Internet of Things receives the original quality data, original quantity data, original storage location data, original temperature data, original humidity data, original insect condition data and original gas data sent by the sensor equipment for container grain storage through the switchable RS232 / 485 interface, filters out the noise of the signal, and transmits the filtered signal to the embedded industrial control mainboard; after the industrial control mainboard receives the data, it converts the original quality data, original quantity data, original temperature data, original humidity data, original insect condition data and original gas data sent by the sensor equipment for container grain storage into quality data, quantity data, storage location data, temperature data, humidity data, insect condition data and gas data in a preset protocol format according to the configuration of the webservice service program running on the mainboard.
[0051] Furthermore, the container grain reserve status coding blockchain data collection device and the reserve status traceability code generation unit are used to:
[0052] Taking cargo location as a unit, generating fields of each reserve status traceability code that complies with the inventory identification code compilation rules according to the quality data, storage location data, quantity data, temperature data, humidity data, insect data and gas data;
[0053] The fields of the reserve status traceability code include: reserve grain identification code, root code, current code, root cargo location information, root code mark, current cargo location information, attribute information, social credit code, business number, cargo location code, cargo location entry time, cargo location exit time, and reserve status;
[0054] Among them, the reserve grain identification code field is composed of the root code and the current code;
[0055] The root code is composed of the root cargo location information and the root code mark;
[0056] The root cargo location information is the initial cargo location code information of the reserve grain. When determining the initial cargo location code information of the reserve grain, if the grain is mixed from different sources to form a cargo location, the initial cargo location code of the grain with the longest age shall be taken; if the grain of the same age from different sources is mixed to form a cargo location, the initial cargo location code of the grain with the largest quantity proportion shall be taken.
[0057] In a third aspect, the present invention provides a container grain reserve status coding blockchain data collection system, comprising:
[0058] Sensor equipment and IoT multi-functional gateways for containerized food storage installed in each warehouse;
[0059] A backend platform connected to each coded blockchain node;
[0060] The back-end platform receives the quality data, quantity data, storage location data, temperature data, humidity data, insect data and gas data of the grain in each storage location sent by the multifunctional gateway of the Internet of Things;
[0061] According to the inventory identification code compilation rules, based on the quality data, storage location data, quantity data, temperature data, humidity data, insect data and gas data, a container grain storage status traceability code for each storage location is generated;
[0062] Each coded blockchain node generates coded blockchain data based on the container grain reserve status traceability code generated by the back-end platform to which it is connected, and publishes it on the coded blockchain.
[0063] The container grain reserve status coding blockchain data collection method, device and system provided by the present invention collect and aggregate quality data, quantity data, storage location data, temperature data, humidity data, insect data and gas data of different grain varieties through various information sensor devices and multifunctional gateways of the Internet of Things, and use the container grain reserve status coding module to extract, encrypt and publish reserve status transactions to the blockchain. Based on inventory identification codes and streaming data collection and processing technology, the grain quality tracing technology is studied, and a grain storage quantity and quality tracing system is established, laying a technical foundation for building a grain storage quality tracing and information service platform and realizing cross-provincial policy grain tracing. BRIEF DESCRIPTION OF THE DRAWINGS
[0064] A more complete understanding of exemplary embodiments of the present invention may be obtained by referring to the following drawings:
[0065] Figure 1 This is a flow chart of a method for collecting data on a blockchain for coding the state of grain reserves in containers according to a preferred embodiment of the present invention;
[0066] Figure 2 It is a schematic diagram of the composition of a container grain reserve status coding blockchain data collection device according to a preferred embodiment of the present invention;
[0067] Figure 3 It is a schematic diagram of the blockchain data publishing process of the method for collecting blockchain data on the status of grain reserves in containers according to the preferred embodiment of the present invention;
[0068] Figure 4 It is a flowchart of the blockchain data publishing process of the container grain reserve status coding blockchain data collection method of the preferred implementation mode of the present invention, and the method completes the reimbursement closed loop within the system. DETAILED DESCRIPTION
[0069] Now, exemplary embodiments of the present invention are described with reference to the accompanying drawings. However, the present invention can be implemented in many different forms and is not limited to the embodiments described herein. These embodiments are provided to disclose the present invention in detail and completely and to fully convey the scope of the present invention to those skilled in the art. The terms used in the exemplary embodiments shown in the accompanying drawings are not intended to limit the present invention. In the accompanying drawings, the same units / elements are marked with the same reference numerals.
[0070] Unless otherwise specified, the terms (including technical terms) used herein have the commonly understood meanings to those skilled in the art. In addition, it is understood that the terms defined in commonly used dictionaries should be understood to have the same meanings as those in the context of the relevant fields, and should not be understood as idealized or overly formal meanings.
[0071] In traditional agriculture, the industrial chain is very long, including dozens of links and multiple trading parties from planting to sales. In such a scenario, the transactions between each trading party are profit-oriented and there is no mutual trust, so the entire market is fragmented and disordered. How to use technical means to promote the healthy and orderly development of the agricultural industrial chain, and then ensure the safe supply of food to end consumers, is an urgent problem to be solved.
[0072] By studying grain quality traceability technology, we can achieve recordable grain production, queryable information, trackable flow, and traceable quality, which is expected to solve the problem of the difficulty in locating and tracking the causes of grain quality problems. In addition, achieving grain quality traceability makes responsibilities clearer, which can deter individuals, enterprises, and organizations with bad intentions or low management levels, avoid bad money driving out good money, and create a virtuous cycle of industry atmosphere.
[0073] like Figure 1 As shown, an embodiment of the present invention provides a method for collecting data on a blockchain for coding the state of grain reserves in a container, comprising:
[0074] Step S100: obtaining the quality data, storage location data, quantity data, temperature data, humidity data, insect data and gas data of the grain in each warehouse from the container grain storage sensor equipment and the IoT multifunctional gateway set in each warehouse;
[0075] Step S200: generating a container grain reserve status traceability code for each warehouse location according to the inventory identification code compilation rules and the quality data, quantity data, storage location data, temperature data, humidity data, insect data and gas data;
[0076] Step S300: Generate coded blockchain data for any container grain reserve status traceability code and publish it on the coded blockchain.
[0077] Furthermore, if Figure 3 and Figure 4 As shown, the container grain reserve status coding blockchain data collection method of this embodiment includes:
[0078] The traceability code of any container grain reserve status generates coded blockchain data and publishes it on the coded blockchain, including:
[0079] The container grain reserve status traceability code is compressed into a transaction summary through a hash function;
[0080] Perform a signature operation on the user private key of the source node that generates the status traceability code and the transaction summary to generate a transaction signature;
[0081] Broadcasting the transaction signature and public key to all surrounding nodes so that each surrounding node can read the transaction signature and public key;
[0082] Each peripheral node retrieves the data location information corresponding to the transaction signature in its locally stored copy of the blockchain to verify the transaction signature;
[0083] The peripheral node that passes the verification first will save the transaction signature corresponding to the container grain reserve code on the coded blockchain.
[0084] Specifically, the peripheral node that passes the verification first saves the transaction signature and public key corresponding to the container grain reserve code on the coded blockchain; other peripheral nodes download the transaction signature and public key from the coded blockchain and save them in their local copies.
[0085] Furthermore, the container grain reserve status coding blockchain data collection method of this embodiment,
[0086] The sensor equipment for containerized grain storage and the multifunctional gateway of the Internet of Things set in each warehouse are used to obtain the quality data, storage location data, quantity data, temperature data, humidity data, insect data and gas data of the grain in each warehouse, including:
[0087] The multifunctional gateway of the Internet of Things receives the original quality data, original storage location data, original quantity data, original temperature data, original humidity data, original insect condition data and original gas data sent by the sensor equipment for container grain storage through the switchable RS232 / 485 interface, filters out the noise of the signal, and transmits the filtered signal to the embedded industrial control mainboard; after the industrial control mainboard receives the data, it converts the original quality data, original quantity data, original storage location data, original temperature data, original humidity data, original insect condition data and original gas data sent by the sensor equipment for container grain storage into quality data, storage location data, quantity data, temperature data, humidity data, insect condition data and gas data in a preset protocol format according to the configuration of the webservice service program running on the mainboard.
[0088] Furthermore, the container grain reserve status coding blockchain data collection method of this embodiment,
[0089] The inventory identification code compilation rules are used to generate the container grain storage status traceability code for each warehouse location according to the quality data, storage location data, quantity data, temperature data, humidity data, insect data and gas data, including:
[0090] Taking cargo location as a unit, generating fields of each reserve status traceability code that complies with the inventory identification code compilation rules according to the quality data, quantity data, storage location data, temperature data, humidity data, insect data and gas data;
[0091] The fields of the reserve status traceability code include: reserve grain identification code, root code, current code, root cargo location information, root code mark, current cargo location information, attribute information, social credit code, business number, cargo location code, cargo location entry time, cargo location exit time, and reserve status;
[0092] Among them, the reserve grain identification code field is composed of the root code and the current code;
[0093] The root code is composed of the root cargo location information and the root code mark;
[0094] The root cargo location information is the initial cargo location code information of the reserve grain. When determining the initial cargo location code information of the reserve grain, if the grain is mixed from different sources to form a cargo location, the initial cargo location code of the grain with the longest age shall be taken; if the grain of the same age from different sources is mixed to form a cargo location, the initial cargo location code of the grain with the largest quantity proportion shall be taken.
[0095] Furthermore, the container grain reserve status coding blockchain data collection method of this embodiment,
[0096] The types of grains in the warehouse include: wheat, soybeans, corn, indica rice, and japonica rice;
[0097] The quality data of grain in the warehouse includes:
[0098] Data corresponding to five indicators: rice roughness rate, color and smell, moisture, impurities and yellow rice;
[0099] Data corresponding to five indicators of wheat: bulk density, imperfect kernels, color and smell, moisture and impurities; data corresponding to three indicators: color and smell, gluten water absorption and tasting score;
[0100] Data corresponding to 6 indicators of corn: bulk density, imperfect kernels, moldy kernels, color and odor, moisture and impurities; data corresponding to 2 indicators: color and odor, and fatty acid value of corn;
[0101] The data corresponding to the five indicators of soybean purity rate, broken grains, color and smell, moisture and impurities; the data corresponding to the three indicators of soybean color and smell, crude fatty acid value and protein solubility ratio.
[0102] In summary, the container grain reserve status coding blockchain data collection method of the embodiment of the present invention is based on inventory identification codes and streaming data collection and processing technology, studies grain quality traceability technology, and establishes a grain storage quantity and quality traceability system, which lays a technical foundation for building a grain storage quality traceability and information service platform and realizing cross-provincial policy grain traceability.
[0103] The container grain reserve status coding blockchain data collection method of the embodiment of the present invention collects and aggregates quality data, quantity data, storage location data, temperature data, humidity data, insect data and gas data of different grain varieties through various information sensor devices and the Internet of Things multi-functional gateway, and utilizes the container grain reserve status coding module to extract, encrypt and publish reserve status transactions to the blockchain.
[0104] like Figure 2 As shown, the container grain reserve status coding blockchain data collection device of the embodiment of the present invention includes:
[0105] The container food storage status data acquisition unit 10 is used to:
[0106] The quality data, quantity data, storage location data, temperature data, humidity data, insect data and gas data of the grain in each warehouse are obtained from the sensor equipment for container grain storage and the multifunctional gateway of the Internet of Things installed in each warehouse;
[0107] The reserve status traceability code generating unit 20 is used for:
[0108] According to the inventory identification code compilation rules, based on the quality data, storage location data, quantity data, temperature data, humidity data, insect data and gas data, a container grain storage status traceability code for each storage location is generated;
[0109] The coded blockchain data generation unit 30 is used to:
[0110] For any container grain reserve status traceability code, generate coded blockchain data and publish it on the coded blockchain.
[0111] Furthermore, the container grain storage status coding blockchain data collection device of this embodiment,
[0112] Coded blockchain data generation unit, used for:
[0113] The container grain reserve status traceability code is compressed into a transaction summary through a hash function;
[0114] Perform a signature operation on the user private key of the source node that generates the status traceability code and the transaction summary to generate a transaction signature;
[0115] Broadcasting the transaction signature and public key to all surrounding nodes so that each surrounding node can read the transaction signature and public key;
[0116] Each peripheral node retrieves the data location information corresponding to the transaction signature in its locally stored copy of the blockchain to verify the transaction signature;
[0117] The peripheral node that passes the verification first will save the transaction signature corresponding to the container grain reserve code on the coded blockchain.
[0118] Furthermore, the container grain storage status coding blockchain data collection device of this embodiment,
[0119] The container food storage status data acquisition unit is used to:
[0120] The multifunctional gateway of the Internet of Things receives the original quality data, original quantity data, original temperature data, original humidity data, original insect condition data and original gas data sent by the sensor equipment for container grain storage through the switchable RS232 / 485 interface, filters out the noise of the signal, and transmits the filtered signal to the embedded industrial control mainboard; after the industrial control mainboard receives the data, it converts the original quality data, original quantity data, original temperature data, original humidity data, original insect condition data and original gas data sent by the sensor equipment for container grain storage into quality data, quantity data, temperature data, humidity data, insect condition data and gas data in a preset protocol format according to the configuration of the webservice service program running on the mainboard.
[0121] Furthermore, the container grain storage status coding blockchain data collection device of this embodiment,
[0122] The reserve status traceability code generating unit is used to:
[0123] Taking cargo location as a unit, generating fields of each reserve status traceability code that complies with the inventory identification code compilation rules according to the quality data, quantity data, storage location data, temperature data, humidity data, insect data and gas data;
[0124] The fields of the reserve status traceability code include: reserve grain identification code, root code, current code, root cargo location information, root code mark, current cargo location information, attribute information, social credit code, business number, cargo location code, cargo location entry time, cargo location exit time, and reserve status;
[0125] Among them, the reserve grain identification code field is composed of the root code and the current code;
[0126] The root code is composed of the root cargo location information and the root code mark;
[0127] The root cargo location information is the initial cargo location code information of the reserve grain. When determining the initial cargo location code information of the reserve grain, if the grain is mixed from different sources to form a cargo location, the initial cargo location code of the grain with the longest age shall be taken; if the grain of the same age from different sources is mixed to form a cargo location, the initial cargo location code of the grain with the largest quantity proportion shall be taken.
[0128] The container grain reserve status coding blockchain data collection system of the embodiment of the present invention includes:
[0129] Sensor equipment and IoT multi-functional gateways for containerized food storage installed in each warehouse;
[0130] A backend platform connected to each coded blockchain node;
[0131] The back-end platform receives the quality data, quantity data, storage location data, temperature data, humidity data, insect data and gas data of the grain in each storage location sent by the multifunctional gateway of the Internet of Things;
[0132] According to the inventory identification code compilation rules, based on the quality data, quantity data, storage location data, temperature data, humidity data, insect data and gas data, a container grain storage status traceability code for each storage location is generated;
[0133] Each coded blockchain node generates coded blockchain data based on the container grain reserve status traceability code generated by the back-end platform connected to it, and publishes it on the coded blockchain.
[0134] Specifically, a container grain reserve status coding blockchain data collection system according to an embodiment of the present invention includes:
[0135] 1. Sensor equipment for containerized food storage
[0136] Containerized grain storage status data includes: grain quality information, grain quantity information, storage location information and storage environment information.
[0137] (1) Grain quality information. Specific data on various quality indicators of reserve grains are obtained through moisture sensors, spectral online sensor equipment and laboratory testing equipment. Specifically, the grain quality indicators of different grain varieties are as follows:
[0138] 1.1) Rice quality has five indicators: roughness rate, color and smell, moisture, impurities and yellow rice.
[0139] 1.2) Wheat quality has five indicators, including bulk density, imperfect kernels, color and smell, moisture and impurities. Quality has three indicators, including color and smell, gluten water absorption and tasting score.
[0140] 1.3) Corn quality has six indicators including bulk density, imperfect kernels, moldy kernels, color and smell, moisture and impurities, while corn quality has three indicators including color and smell, fatty acid value.
[0141] 1.4) Soybean quality has five indicators, including pure grain rate, broken kernels, color and smell, moisture and impurities, while soybean quality has three indicators, including color and smell, crude fatty acid value and protein solubility ratio.
[0142] (2) Grain quantity information. Grain quantity information is mainly obtained based on pressure sensors. For four different grain crops, namely rice, wheat, corn and soybeans, a data fusion model is established to process the obtained pressure sensor data to obtain the grain quantity of each cargo position. Then, by real-time monitoring of the grain quantity of each cargo position, the long-term fluctuation data of grain storage in each cargo position is obtained.
[0143] (3) Storage environment information: The environmental factors of various grain warehouses are obtained through temperature sensors, humidity sensors, grain insect sensors, and grain gas sensors.
[0144] (4) Storage location information. The geographical location data of each grain storage container is obtained through the BDS / GPS dual-mode receiving module. Among them, ATGM332D is a highly sensitive BDS / GPS dual-mode receiver module that supports single-system positioning and dual-system joint positioning of GPS and BDS, and uses the serial port UART to output positioning information.
[0145] 2. Containerized food storage IoT multifunctional gateway
[0146] The multifunctional IoT gateway for containerized grain storage collects and aggregates quality data, quantity data, geographic location data, temperature data, humidity data, insect data, and gas data of different grain varieties.
[0147] The hardware part of the IoT multifunctional gateway includes high-performance embedded industrial control motherboard, switching power supply, power control module, battery pack, RJ45 network port module, signal conversion board, LED display panel, etc. The software part includes embedded WINDOWS operating system, webservice service program, etc. The IoT multifunctional gateway receives data from various grain reserve status acquisition devices at the container site through the switchable RS232 / 485 interface, and uniformly controls various grain reserve status acquisition devices.
[0148] Specifically, after the IoT multifunctional gateway receives the data sent by the sensor through the switchable RS232 / 485 interface, it filters out the signal noise and transmits the filtered signal to the embedded industrial control mainboard; after the industrial control mainboard receives the data, it converts the data of different protocol types into unified protocol data that can be understood by the back-end platform according to the configuration of the webservice service program running on the mainboard, and uploads this information to the back-end platform through the RJ45 network port via the local area network.
[0149] When the back-end platform wants to send data or instructions to external devices, it only needs to send unified data or instructions to the gateway; the IoT multifunctional gateway will convert the data or instructions into data of different protocol types according to the configuration of the webservice service program, and send them to each external device (i.e., various grain reserve status acquisition devices) respectively. In this way, the back-end platform can communicate with devices of different communication protocols and different data types from different manufacturers in a unified way and manage them in a unified manner.
[0150] The IoT multifunctional gateway uses a power management module and can operate normally when connected to 220V AC.
[0151] The IoT multifunctional gateway runs on an embedded Windows operating system. The back-end platform can access the gateway remotely at any time through the network, so the webservice program can be upgraded and reconfigured at any time to adapt to newly added external devices with different communication methods.
[0152] The IoT multifunctional gateway supports the EWF system protection function. When an unexpected situation occurs and damages the gateway's system, software, and data, EWF will automatically restore the gateway to its previous normal state, thereby improving the gateway's reliability.
[0153] 3. Coding of containerized grain reserves
[0154] After signing a sales contract in the grain production area, the grain purchasing and sales company can start reporting data regularly after confirming the cargo location information of the current contract. The reported data includes the grain reserve status data reported through the container grain reserve IoT multifunctional gateway and the manual data reporting.
[0155] The grain reserve status identification code refers to the grain reserve status identification code of the container grain for different reserve purposes such as purchase, storage and sale at the place of production. The following is the specific definition of each field in the grain reserve status traceability code. Preferably, the grain reserve status traceability code is a number represented by 256 bits.
[0156] a) Food reserve status identification code
[0157] English name: GrainReserveTracingCode
[0158] Short name: GSTC
[0159] Definition: A unique identifier for a storage location during the storage process.
[0160] Data type: composite
[0161] Note: Required; maximum number of occurrences is 1.
[0162] Sub-element: Reserve grain identification code = root code + current code
[0163] Extended Barthel paradigm: GSTC = RtTC, PrTC
[0164] b) Root code
[0165] English name: RootTracingCode
[0166] Short name: RtTC
[0167] Definition: Identity information of stored food
[0168] Data type: composite
[0169] Note: Required; maximum number of occurrences is 1
[0170] Sub-element: root code = root location information + root code mark
[0171] Extended Barthel paradigm: RtTC = RtCI, RtFlg
[0172] c) Root location information
[0173] English Name: RootCargoInformation
[0174] Short name: RtCI
[0175] Definition: Initial cargo location code information of stored grain
[0176] Data type: composite
[0177] Range: See Type Entity
[0178] Cargo location information <<Data type>>; if the grain is mixed from different sources to form a cargo location, the initial cargo location code of the grain with the longest age will be used; if the grain of the same age from different sources is mixed to form a cargo location, the initial cargo location code of the grain with the largest quantity will be used.
[0179] Note: Required; maximum number of occurrences is 1
[0180] d) Social Credit Code
[0181] English name: certificateforUniformSocialCreditCode
[0182] Short name: cUCC
[0183] Definition: Unified social credit code of grain storage or storage agency enterprises
[0184] Data type: character
[0185] Value range: consists of 18 Arabic numerals or uppercase English letters.
[0186] Note: Required; maximum number of occurrences is 1
[0187] e) Cargo location code
[0188] English name: cargoCode
[0189] Short name: cgCd
[0190] Definition: The storage location number of the stored food
[0191] Data type: character
[0192] Value range: free text, consisting of 11 digits in 4 sections, including enterprise warehouse code + warehouse code + granary code + cargo location code. The warehouse code, warehouse code, and granary code are respectively composed of 3-digit Arabic numeral sequence codes, and the cargo location code is composed of 2-digit Arabic numeral sequence codes.
[0193] Note: Required; maximum number of occurrences is 1
[0194] f) Storage time
[0195] English name: cargoEntryTime
[0196] Short name: cEnT
[0197] Definition: The time when the grain reserve is put into storage
[0198] Data type: Date and time
[0199] Range: According to GB / T 7408-2005, the format is CCYY-MM-DD-hh-mm
[0200] Note: Required; maximum number of occurrences is 1
[0201] g) Time of cargo delivery
[0202] English name: cargoExitTime
[0203] Short name: cExT
[0204] Definition: The time when the grain reserve is released from the warehouse
[0205] Data type: Date and time
[0206] Range: According to GB / T 7408-2005, the format is CCYY-MM-DD-hh-mm
[0207] Note: Required; maximum number of occurrences is 1
[0208] h) Root code mark
[0209] English name: rootFlag
[0210] Short name: rtFlg
[0211] Definition: Marks whether the purchased grain enters the storage link directly from the field production link for the first time, that is, it is purchased through grain brokers or directly from farmers, farms, agricultural cooperatives, etc.
[0212] Data type: character
[0213] Value range: 0-original, that is, the batch of grain is clearly sold directly from the field into the storage link; 1-non-original, that is, the batch of grain is of unknown origin.
[0214] Note: Required; maximum number of occurrences is 1
[0215] i) Current code
[0216] English name: PresentTracingCode
[0217] Short name: PrTC
[0218] Definition: Current information on food reserves
[0219] Data type: composite
[0220] Note: Required; maximum number of occurrences is 1
[0221] Sub-element: Current code = current location information + attribute information
[0222] Extended Barthel Paradigm: PrTC = PrCI, AttInfo
[0223] j) Current cargo location information
[0224] English name: PresentCargoInformation
[0225] Short name: PrCI
[0226] Definition: Current cargo location code information of stored grain
[0227] Data type: composite
[0228] Value range: See type entity.Storage location information <<Data type>>
[0229] Note: Required; maximum number of occurrences is 1
[0230] Sub-element: Current cargo location information = social credit code + business number + cargo location code + cargo location entry time + cargo location exit time + reserve status
[0231] Extended Barthel paradigm: PrCI = cUCC, plnCd, cgCd, cEnt, cExT, cSAf
[0232] k)Business number
[0233] English name: planCode
[0234] Short name: plnCd
[0235] Definition: The plan number, contract number, internal business number of the enterprise, and the corresponding business number batch code issued by the superior grain administrative department that are followed when purchasing the current reserve grain.
[0236] Data type: character
[0237] Value range: free text, variable length. It consists of two codes: plan document number / contract number / enterprise internal business number+batch code. When the grain stored in the cargo location is policy grain, the plan document number is used; when the grain stored in the cargo location is non-policy grain, the contract number is used; when there is no plan document number or contract number for the grain stored in the cargo location, the enterprise internal business number is used.
[0238] Note: Required; maximum number of occurrences is 1
[0239] l) Reserve status
[0240] English name: cargoStorageAttributeInformation
[0241] Short name: cSAF
[0242] Definition: Food storage location attributes, including procurement, inventory and sales
[0243] Data type: character
[0244] Value range: 1-Purchase, 2-Inventory, 3-Sales
[0245] Note: Required; maximum number of occurrences is 2
[0246] m) Attribute information
[0247] English name: AttributeInformation
[0248] Short name: AttInfo
[0249] Definition: The grain attribute information when the current grain storage location is sealed
[0250] Data type: composite
[0251] Note: Required; maximum number of occurrences is 1
[0252] Sub-element: Attribute information = grain nature + business number + quantity + variety code + origin code + production year + grade code
[0253] Extended Barthel Form: AttInfo = grPrp, qty, kndCd, prdDC, prdYr, clsCd
[0254] n) Nature of food
[0255] English name: grainProperty
[0256] Short name: grPrp
[0257] Definition: The nature of the current grain storage space when it is sealed
[0258] Data type: character
[0259] Value range: Grain nature code <<Code table>>
[0260] Note: Required; maximum number of occurrences is 1
[0261] Table 1 Grain property code table
[0262]
[0263]
[0264] o) Quantity
[0265] English name: quantity
[0266] Short name: qty
[0267] Definition: The storage quantity of the current grain reserve when the warehouse is sealed
[0268] Data type: Numeric
[0269] Value range: Number, reserved to 3 decimal places, in tons
[0270] Note: Required; maximum number of occurrences is 1
[0271] p) Product code
[0272] English name: kindCode
[0273] Short name: kndCd
[0274] Definition: Types of food currently in reserve
[0275] Data type: character
[0276] Value range: Variety code <<code table>>
[0277] Note: Required; maximum number of occurrences is 1
[0278] Table 2 Variety code table
[0279] Type code Name of grain variety 10 wheat 21 Indica 23 Japonica rice 30 corn 40 Soybean
[0280] q) Origin code
[0281] English name: producingDistrictCode
[0282] Short name: prdDC
[0283] Definition: The production place of the current reserve grain. If the current reserve grain is a mixture of grains from different sources, the production place of the grain with the longest age among the source grains shall be taken, down to the county level.
[0284] Data type: character
[0285] Value range: The names of counties in my country are implemented in accordance with GB / T 2260, and are taken from the "digital code" in the code tables of provinces, autonomous regions, municipalities directly under the central government, and special administrative regions in Tables 2 to 35, which are 6 digits.
[0286] The origin code of imported grains shall be implemented in accordance with GB / T 2659-2000, and shall be selected from the "digital code" in the name code table of countries and regions in the world, with 3 digits and "000" added in front, for a total of 6 digits. For example, Canada's "digital code" is 124, and its import grain origin code is 000124.
[0287] Note: Optional; maximum number of occurrences is N.
[0288] Table 3 Wheat quality code table
[0289] Code grade unit index 1 ≥720 g / L Test weight 2 ≥685 g / L Test weight 3 ≥650 g / L Test weight 4 ≥620 g / L Test weight 5 ≥590 g / L Test weight 6 <590 g / L Test weight 1 ≤4.0 % Imperfect Grain 2 ≤6.0 % Imperfect Grain 3 ≤8.0 % Imperfect Grain 4 ≤10.0 % Imperfect Grain 5 ≤15.0 % Imperfect Grain 6 >15.0 % Imperfect Grain 1 ≤1.0 % Impurities 2 >1.0 % Impurities 1 ≤2.0 % Mold grains 2 >2.0 % Mold grains 1 ≤14.0 % Moisture 2 >14.0 % Moisture 1 normal - Smell, color 2 Abnormal - Smell, color
[0290] Table 4 Corn quality code table
[0291]
[0292]
[0293] Table 5 Indica rice quality code table
[0294] Code grade unit index 1 ≥79 % Roughness 2 ≥77 % Roughness 3 ≥75 % Roughness 4 ≥73 % Roughness 5 ≥71 % Roughness 6 <71 % Roughness 1 ≥79 % Whole head rice rate 2 ≥77 % Whole head rice rate 3 ≥75 % Whole head rice rate 4 ≥73 % Whole head rice rate 5 ≥71 % Whole head rice rate 6 <71 % Whole head rice rate 1 ≤1.0 % Impurities 2 >1.0 % Impurities 1 ≤12.5 % Moisture 2 >12.5 % Moisture 1 ≤1.5 % Yellow rice 2 >1.5 % Yellow rice 1 ≤2.0 % Brown rice 2 >2.0 % Brown rice 1 ≤5.0 % Intermixing rate 2 >5.0 % Intermixing rate 1 normal - Smell, color 2 Abnormal - Smell, color
[0295] Table 6 Japonica rice quality code table
[0296]
[0297]
[0298] Table 7 Soybean quality code table
[0299]
[0300]
[0301] r) Year of production
[0302] English name: producingYear
[0303] Short name: prdYr
[0304] Definition: The production year of the current reserve grain; if the current reserve grain is a mixed storage of grains from different sources, the production year of the grain with the longest age among the source grains shall be taken. If the production year of imported grain cannot be determined, the import year of the batch of grain shall be regarded as its production year.
[0305] Data type: Date
[0306] Range: According to GB / T 7408-2005, the format is CCYY
[0307] Note: Required; maximum number of occurrences is 1
[0308] s) Quality Code
[0309] English name: classCode
[0310] Short name: clsCd
[0311] Definition: The level of the current grain storage space when it is sealed
[0312] Data type: character
[0313] Value range: Quality code <<code table>>
[0314] Note: Required; maximum number of occurrences is 1
[0315] 4. Blockchain publication, verification and storage of container grain reserve coding transactions
[0316] The back-end platform uses the grain reserve IoT multifunctional gateway and the container grain reserve status coding module to extract, encrypt, and publish reserve status transactions to the blockchain module, including:
[0317] The back-end platform uses a hash function to encode the containerized food reserves and compresses them into a transaction summary to facilitate subsequent calculations and transmission.
[0318] The backend platform performs a signature operation on the user's private key and the transaction summary to obtain the transaction signature; and saves the transaction signature in the storage node;
[0319] The backend platform broadcasts the transaction signature and public key to all surrounding nodes for verification. Each surrounding node needs to synchronize the blockchain status by reading the blockchain layer.
[0320] The verification node retrieves the data location information corresponding to the user's signature in the local data blockchain copy; the verification node returns the verification result to the user;
[0321] The first peripheral node that passes the verification will store the transaction summary information corresponding to the container grain reserve code;
[0322] After completion, the surrounding node will broadcast the transaction summary information corresponding to the container food reserve code to all surrounding verification nodes.
[0323] It should be understood that the above description is a data verification step for a single container grain reserve record; when the number of currently accumulated container grain reserve records is sufficient, the step of starting the container grain reserve record to enter the blockchain and store it in the form of a public ledger is initiated. The embodiment of the present invention does not involve the content of public ledger accounting.
[0324] The container grain reserve coding transaction blockchain data collection method, device and system of the embodiments of the present invention are based on the inventory identification code principle, integrate various quality sensors, quantity sensors and environmental sensors for obtaining the reserve status of container bulk grain, and use the reserve Internet of Things multi-functional gateway, combined with manual reporting of information, to collect, clean and assemble the reserve status traceability code on the back-end platform, thereby facilitating the collection of unified standardized information in all links of grain circulation.
[0325] The publishing transaction of the container grain reserve status traceability code information is verified, and the verified container grain reserve status traceability code is encrypted and stored in the blockchain, which can realize the whole data collection and traceability of container grain in the logistics process.
[0326] The container grain reserve coding transaction blockchain data collection method, device and system of the embodiments of the present invention collect and aggregate quality data, quantity data, temperature data, humidity data, insect data and gas data of different grain varieties through various information sensor devices and the Internet of Things multi-functional gateway; the container grain reserve status coding module generates a reserve status traceability code; the generated reserve status traceability code is encrypted as a reserve status transaction and published to the blockchain module.
[0327] The container grain reserve status coding module can support the merging of multiple upstream goods into one cargo location to generate a traceability code, and also supports a single shipment being decomposed into multiple downstream shipments.
[0328] The above is only a preferred specific embodiment of the present invention, but the protection scope of the present invention is not limited thereto. Any changes or substitutions that can be easily thought of by a person skilled in the art within the technical scope disclosed by the present invention should be included in the protection scope of the present invention. Therefore, the protection scope of the present invention should be based on the protection scope of the claims.
[0329] The invention has been described above with reference to a few embodiments. However, it is known to a person skilled in the art that other embodiments than the ones disclosed above are equally within the scope of the invention, as defined by the appended patent claims.
[0330] Generally, all terms used in the claims are to be interpreted according to their ordinary meaning in the technical field, unless explicitly defined otherwise herein. All references to "a / / the [means, component, etc.]" are to be openly interpreted as at least one instance of a means, component, etc., unless explicitly stated otherwise. The steps of any method disclosed herein do not necessarily have to be performed in the exact order disclosed, unless explicitly stated otherwise.
Claims
1. A method for collecting data on the blockchain for coding the state of grain reserves in containers, characterized in that: include: The quality data, quantity data, storage location data, temperature data, humidity data, insect data and gas data of the grain in each warehouse are obtained from the sensor equipment for container grain storage and the multifunctional gateway of the Internet of Things installed in each warehouse; the geographical location data of each grain storage container is obtained as the storage location data through the BDS / GPS dual-mode receiving module; The sensor equipment for containerized grain storage and the multifunctional gateway of the Internet of Things set in each warehouse are used to obtain the quality data, quantity data, storage location data, temperature data, humidity data, insect data and gas data of the grain in each warehouse, including: The multifunctional Internet of Things gateway receives the original quality data, original quantity data, original storage location data, original temperature data, original humidity data, original insect condition data and original gas data sent by the sensor device for container grain storage through the switchable RS232 / 485 interface, filters out the noise of the signal, and transmits the filtered signal to the embedded industrial control mainboard; after the industrial control mainboard receives the data, according to the configuration of the webservice service program running on the mainboard, the original quality data, original quantity data, original temperature data, original humidity data, original insect condition data and original gas data sent by the sensor device for container grain storage are converted into quality data, quantity data, storage location data, temperature data, humidity data, insect condition data and gas data in a preset protocol format; wherein the multifunctional Internet of Things gateway comprises an embedded industrial control mainboard, an RJ45 network port module, an embedded WINDOWS operating system and a webservice service program; According to the inventory identification code compilation rules, based on the quality data, quantity data, storage location data, temperature data, humidity data, insect data and gas data, a container grain storage status traceability code for each storage location is generated; The inventory identification code compilation rules are used to generate the container grain storage status traceability code for each warehouse location according to the quality data, storage location data, quantity data, temperature data, humidity data, insect data and gas data, including: Taking cargo location as a unit, generating fields of each reserve status traceability code that complies with the inventory identification code compilation rules according to the quality data, quantity data, storage location data, temperature data, humidity data, insect data and gas data; The fields of the reserve status traceability code include: reserve grain identification code, root code, current code, root cargo location information, root code mark, current cargo location information, attribute information, social credit code, business number, cargo location code, cargo location entry time, cargo location exit time, and reserve status; Among them, the reserve grain identification code field is composed of the root code and the current code; The root code is composed of the root cargo location information and the root code mark; The root cargo location information is the initial cargo location code information of the reserve grain. When determining the initial cargo location code information of the reserve grain, if the grain is mixed from different sources to form a cargo location, the initial cargo location code of the grain with the longest age is used; if the grain of the same age from different sources is mixed to form a cargo location, the initial cargo location code of the grain with the largest quantity is used; Generate coded blockchain data for any container grain reserve status traceability code and publish it on the coded blockchain; The traceability code of any container grain reserve status generates coded blockchain data and publishes it on the coded blockchain, including: The container grain reserve status traceability code is compressed into a transaction summary through a hash function; Perform a signature operation on the user private key of the source node that generates the status traceability code and the transaction summary to generate a transaction signature; Broadcasting the transaction signature and public key to all surrounding nodes so that each surrounding node can read the transaction signature and public key; Each peripheral node retrieves the data location information corresponding to the transaction signature in its locally stored copy of the blockchain to verify the transaction signature; The peripheral node that passes the verification first will save the transaction signature corresponding to the container grain reserve code on the coded blockchain.
2. The method for collecting container grain reserve status coded blockchain data according to claim 1 is characterized in that: The types of grains in the warehouse include: wheat, soybeans, corn, indica rice, and japonica rice; The quality data of grain in the warehouse includes: Data corresponding to five indicators: the rough rice rate, color and smell, moisture, impurities and yellow rice; Data corresponding to five indicators of wheat: bulk density, imperfect kernels, color and smell, moisture and impurities; data corresponding to three indicators: color and smell, gluten water absorption and tasting score; Data corresponding to 6 indicators of corn: bulk density, imperfect kernels, moldy kernels, color and odor, moisture and impurities; data corresponding to 2 indicators: color and odor, and fatty acid value of corn; The data corresponding to the five indicators of soybean purity rate, broken grains, color and smell, moisture and impurities; the data corresponding to the three indicators of soybean color and smell, crude fatty acid value and protein solubility ratio.
3. A container grain storage status coding blockchain data collection device, characterized in that: include: The container food storage status data acquisition unit is used to: The quality data, quantity data, storage location data, temperature data, humidity data, insect data and gas data of the grain in each warehouse are obtained from the sensor equipment for container grain storage and the multifunctional gateway of the Internet of Things installed in each warehouse; the geographical location data of each grain storage container is obtained as the storage location data through the BDS / GPS dual-mode receiving module; The container food storage status data acquisition unit is used to: The multifunctional Internet of Things gateway receives the original quality data, original storage location data, original quantity data, original temperature data, original humidity data, original insect condition data and original gas data sent by the sensor equipment for container grain storage through the switchable RS232 / 485 interface, filters out the noise of the signal, and transmits the filtered signal to the embedded industrial control mainboard; after the industrial control mainboard receives the data, it converts the original quality data, original quantity data, original temperature data, original humidity data, original insect condition data and original gas data sent by the sensor equipment for container grain storage into quality data, quantity data, storage location data, temperature data, humidity data, insect condition data and gas data in a preset protocol format according to the configuration of the webservice service program running on the mainboard; wherein the multifunctional Internet of Things gateway includes an embedded industrial control mainboard, an RJ45 network port module, an embedded WINDOWS operating system and a webservice service program; The reserve status traceability code generation unit is used to: According to the inventory identification code compilation rules, based on the quality data, storage location data, quantity data, temperature data, humidity data, insect data and gas data, a container grain storage status traceability code for each storage location is generated; The reserve status traceability code generating unit is used to: Taking cargo location as a unit, generating fields of each reserve status traceability code that complies with the inventory identification code compilation rules according to the quality data, quantity data, storage location data, temperature data, humidity data, insect data and gas data; The fields of the reserve status traceability code include: reserve grain identification code, root code, current code, root cargo location information, root code mark, current cargo location information, attribute information, social credit code, business number, cargo location code, cargo location entry time, cargo location exit time, and reserve status; Among them, the reserve grain identification code field is composed of the root code and the current code; The root code is composed of the root cargo location information and the root code mark; The root cargo location information is the initial cargo location code information of the reserve grain. When determining the initial cargo location code information of the reserve grain, if the grain is mixed from different sources to form a cargo location, the initial cargo location code of the grain with the longest age is used; if the grain of the same age from different sources is mixed to form a cargo location, the initial cargo location code of the grain with the largest quantity is used; Coded blockchain data generation unit, used for: Generate coded blockchain data for any container grain reserve status traceability code and publish it on the coded blockchain; Coded blockchain data generation unit, used for: The container grain reserve status traceability code is compressed into a transaction summary through a hash function; Perform a signature operation on the user private key of the source node that generates the status traceability code and the transaction summary to generate a transaction signature; Broadcasting the transaction signature and public key to all surrounding nodes so that each surrounding node can read the transaction signature and public key; Each peripheral node retrieves the data location information corresponding to the transaction signature in its locally stored copy of the blockchain to verify the transaction signature; The peripheral node that passes the verification first will save the transaction signature corresponding to the container grain reserve code on the coded blockchain.
4. A container grain reserve status coding blockchain data collection system, characterized in that: Used to implement the container grain reserve status coding blockchain data collection method as claimed in claim 1, the collection system includes: Sensor equipment and IoT multi-functional gateways for containerized food storage installed in each warehouse; A backend platform connected to each coded blockchain node; The back-end platform receives the quality data, quantity data, storage location data, temperature data, humidity data, insect data and gas data of the grain in each storage location sent by the multifunctional gateway of the Internet of Things; According to the inventory identification code compilation rules, based on the quality data, storage location data, quantity data, temperature data, humidity data, insect data and gas data, a container grain storage status traceability code for each storage location is generated; Each coded blockchain node generates coded blockchain data based on the container grain reserve status traceability code generated by the back-end platform connected to it, and publishes it on the coded blockchain.
