Supply chain asset life cycle management system based on block chain technology
Technical Field
The invention relates to the technical field of supply chain management, in particular to a supply chain asset life cycle management system based on a block chain technology.
Background
The supply chain refers to a functional network structure which is formed by forming intermediate products and final products from kit parts around a core enterprise, and finally sending the products to consumers from a sales network, and connecting suppliers, manufacturers, distributors and end users into a whole.
Because a plurality of links are involved in the supply chain, manufacturers participating in each link of the supply chain are difficult to track the progress of the product from the production completion, detection, transportation and sale of the product, and at present, if the manufacturers need to know the progress of the product, the manufacturers usually need to inquire upstream and downstream manufacturers in the supply chain, so that the efficiency is low and the authenticity of the result is difficult to ensure. And it is difficult for upstream vendors in the supply chain to quickly and accurately know past product manufacturing capability or detection capability or transportation capability or sales capability of each downstream vendor in the market, so that the degree to which each downstream vendor can be trusted cannot be quickly judged, and it is impossible to quickly and reasonably determine which downstream vendor to select as a partner vendor.
Disclosure of Invention
Aiming at the defects in the prior art, the invention aims to provide a supply chain asset life-cycle management system based on a block chain technology, which can be used for tracking the progress of products in a supply chain, carrying out data statistics on the credibility of each manufacturer in the supply chain and ensuring the authenticity of product tracking results and data statistical results.
In order to achieve the purpose, the invention provides the following technical scheme: a supply chain asset life cycle management system based on a block chain technology comprises a block server and a plurality of positioning identification terminals, wherein each product is provided with a positioning tag after being processed, each positioning identification terminal is used for being used by each manufacturer of a supply chain to identify the positioning tag, the block server is in signal connection with each positioning identification terminal, the block server stores terminal information of all the positioning identification terminals, and the terminal information comprises names of the manufacturers using the positioning identification terminals;
the positioning identification terminal comprises a positioning identification module and an information transceiving module, the positioning identification module is used for identifying positioning information of all positioning labels in a preset identification range, the positioning information comprises the serial numbers of the positioning labels, the positions of the positioning labels and terminal information of the positioning identification terminal for identifying the positioning labels, and the information transceiving module responds to a manufacturer instruction to package the positioning information and send the packaging information to the block server;
the block server is configured with a positioning information base, a positioning information duplication checking module, a supply value processing module, a supply value correcting module and an encryption module, wherein the positioning information duplication checking module compares the received new positioning information with the positioning information in the positioning information base, if the number of the positioning tag in the positioning information is the same as the terminal information of the positioning identification terminal for identifying the positioning tag, the new positioning information is deleted, otherwise, the new positioning information is stored in the positioning information base;
the supply value processing module is configured with a supply value processing strategy, a positioning identification terminal which identifies the positioning tag for the last time at present is defined as a current positioning identification terminal, a positioning identification terminal which identifies the positioning tag for the penultimate time at present is defined as an upstream positioning identification terminal, the supply value processing strategy comprises the steps of counting the positioning information which is newly stored in a positioning information base to obtain the terminal information of each current positioning identification terminal, obtaining the identification number value of the positioning tag which is newly identified by each current positioning identification terminal, and calculating the identification number value through a preset manufacturer supply value processing algorithm to obtain the supply value of a manufacturer corresponding to each current positioning identification terminal;
the supply value correction module is configured with a supply value correction strategy, the supply value correction strategy comprises collecting the number of a positioning label in each positioning information newly stored in a positioning information base, searching the terminal information of an upstream positioning identification terminal in the positioning information base according to the number of the positioning label, simultaneously obtaining the searched times value corresponding to each upstream positioning identification terminal, and calculating the searched times value through a preset manufacturer supply value correction algorithm to obtain the feedback value of a manufacturer corresponding to each upstream positioning identification terminal;
the system comprises an encryption module, an encryption module and a block server, wherein the encryption module encrypts positioning information newly stored in a positioning information base through a preset positioning information encryption algorithm to obtain a positioning ciphertext and a positioning key, the encryption module encrypts supply values of various manufacturers through a preset supply value encryption algorithm to obtain a supply value ciphertext and a supply value key, the encryption module encrypts feedback values of various manufacturers through a preset feedback value encryption algorithm to obtain a feedback value ciphertext and a feedback value key, the block server collects the positioning ciphertext, the positioning key, the supply value ciphertext and the supply value key of various manufacturers, the feedback value ciphertext and the feedback value key of various manufacturers, which are generated within a preset interval time, and sends the positioning ciphertext, the positioning key, the supply value ciphertext, the supply value key, the feedback value ciphertext and the supply value key to all positioning identification terminals, and deletes the positioning ciphertext, the positioning key, the supply value ciphertext, the feedback value key, the feedback value ciphertext, the feedback value key and the feedback value key of the block server, Feeding back a value key;
the positioning identification terminal also comprises a decryption module and a trust value module, the decryption module processes the positioning ciphertext and the positioning secret key through a preset positioning information decryption algorithm to obtain positioning information, the decryption module processes the supply value ciphertext and the supply value key of each manufacturer through a preset supply value decryption algorithm to obtain the supply value of each manufacturer, the decryption module processes the feedback value ciphertext and the feedback value key of each manufacturer through a preset feedback value decryption algorithm to obtain the feedback value of each manufacturer, the trust value module is configured with a trust value policy, the trust value policy comprises replacing a newly obtained supply value with an original supply value, replacing a newly obtained feedback value with an original feedback value, and processing the supply value and the feedback value through a preset trust value processing algorithm to obtain a trust value, and replacing the original trust value with the newly obtained trust value.
As a further improvement of the invention, after each product is processed, a scanning tag is configured, the scanning tag corresponds to a positioning tag one to one, the positioning identification terminal is further configured to scan each scanning tag to obtain scanning information, and the scanning information includes the number of the positioning tag;
the positioning identification terminal is also provided with a positioning precision training strategy, the positioning precision training strategy comprises a signal sending step, a signal processing step, a scanning comparison step and a weight correction step, the signal sending step comprises the steps that a positioning label sends positioning information to the positioning identification terminal, and the signal processing step is carried out;
the signal processing step comprises the steps that the positioning identification terminal processes positioning information to obtain a position range corresponding to a positioning label, the position range of the positioning label is compared with a preset identification range, if the position range is completely positioned in the identification range, the positioning label is judged to be positioned in the identification range, if the position range is completely positioned outside the identification range, the positioning label is judged to be positioned outside the identification range, if part of the position range is positioned in the identification range and part of the position range is positioned outside the identification range, the position range is subjected to fuzzy processing through a position fuzzy algorithm to judge whether the positioning label is positioned in the identification range, the position fuzzy algorithm is preset with fuzzy weight, the positioning information of the positioning label positioned in the identification range is stored, and the scanning comparison step is carried out;
the scanning comparison step comprises the steps that the positioning identification terminal scans all scanning labels in a preset identification range to obtain scanning information, the scanning information is compared with the positioning information stored in the signal processing step, deviation information in the positioning information is obtained according to the scanning information, the deviation information comprises numbers of the missing or added positioning labels in the positioning information, if the deviation information does not exist, the positioning precision training strategy is ended, the finally obtained fuzzy weight is set as the weight of the position fuzzy algorithm, and if the deviation information exists, the weight correction step is started;
the weight correction step comprises the steps of adjusting the fuzzy weight of the position fuzzy algorithm according to the deviation information, setting the adjusted fuzzy weight as the weight of the position fuzzy algorithm, and entering the signal processing step.
As a further refinement of the present invention, the vendor supplied value processing algorithm is configured to:
wherein p is a supply value, w 'is a current trust value of a manufacturer, n is an identification number value, a1, a2 and a3 are preset constant values, b1, b2 and b3 are preset weight values, and the current trust value w' of the manufacturer is obtained by the block server side acquiring the trust value stored by any positioning identification terminal.
As a further refinement of the present invention, the vendor supply value correction algorithm is configured to:
wherein q is a feedback value, m is a searched numerical value, and c and d are preset weight values.
As a further improvement of the present invention, the trust value policy further includes saving a supply value replacement time when a newly obtained supply value is replaced with an original supply value, and saving a feedback value replacement time when a newly obtained feedback value is replaced with an original feedback value, wherein the trust value processing algorithm is configured to:
where w is the confidence value, t1 is the time interval value of the last supply value replacement time from the current time of the corresponding vendor, and t2 is the time interval value of the last feedback value replacement time from the current time of the corresponding vendor.
As a further improvement of the present invention, the positioning information encryption algorithm, the supply value encryption algorithm and the feedback value encryption algorithm are all configured as a hash algorithm.
As a further improvement of the invention, the scanning label is configured as a two-dimensional code or a bar code.
The invention has the beneficial effects that: before an upstream manufacturer delivers goods to a downstream manufacturer, the positioning tag of the product is identified through the positioning identification terminal, the identified positioning information is sent to the block server, and the block server encrypts the positioning information and then sends the encrypted positioning information to all the positioning identification terminals, so that an operator of the manufacturer can know the progress of each product in time through the positioning identification terminals, and can ensure that the positioning information is not tampered after the encryption of the block server, and the authenticity of the positioning information is improved.
The block server calculates the supply value of a manufacturer by counting the new delivery quantity of each time of the manufacturer, calculates the feedback value of an upstream manufacturer of the manufacturer, encrypts the supply value and the feedback value and sends the encrypted supply value and feedback value to all the positioning identification terminals, and each positioning identification terminal calculates the trust value of each manufacturer by a trust value strategy, so that the data statistics of the trust degree of each manufacturer in a supply chain is realized, the upstream manufacturer in the supply chain can inquire the trust value to quickly and accurately know the past product manufacturing capability or detection capability or transportation capability or sales capability of each downstream manufacturer, the trusted degree of each downstream manufacturer is quickly judged, and the selection of which downstream manufacturer is used as a cooperative manufacturer is quickly and reasonably determined. The supply value and the feedback value are encrypted through the block server, so that data can be prevented from being tampered, and authenticity of the trust value is guaranteed.
Drawings
FIG. 1 is a schematic diagram of the system of the present invention;
fig. 2 is a flow chart of a positioning accuracy training strategy.
Reference numerals: 1. a block server; 11. a positioning information base; 12. a positioning information duplicate checking module; 13. a supply value processing module; 14. a supply value correction module; 15. an encryption module; 2. positioning an identification terminal; 21. a positioning identification module; 22. an information transceiving module; 23. a decryption module; 24. a trust value module; 3. positioning the label; 4. the label is scanned.
Detailed Description
The present invention will be described in further detail with reference to the accompanying drawings and examples.
Referring to fig. 1 and 2, a supply chain asset life cycle management system based on a block chain technology according to this embodiment includes a block server 1 and a plurality of positioning identification terminals 2, each product is configured with a positioning tag 3 after being processed, each positioning identification terminal 2 is used for being used by each manufacturer of a supply chain to identify the positioning tag 3, the block server 1 is in signal connection with each positioning identification terminal 2, the block server 1 stores terminal information of all the positioning identification terminals 2, the terminal information includes names of manufacturers using the positioning identification terminals 2, that is, each positioning identification terminal 2 is used by a corresponding manufacturer, and the names of manufacturers and the positioning identification terminals 2 used are corresponded.
The positioning identification terminal 2 comprises a positioning identification module 21 and an information transceiving module 22, the positioning identification module 21 is used for identifying positioning information of all positioning tags 3 in a preset identification range, the positioning information comprises the serial numbers of the positioning tags 3, the positions of the positioning tags 3 and terminal information of the positioning identification terminal 2 for identifying the positioning tags 3, and the information transceiving module 22 responds to a manufacturer instruction to package the positioning information and send the packaging information to the block server 1.
For example, the supply chain of the product A is that the product A is delivered to a detector for detection after production is completed, the product A is delivered to a transporter for analysis and transportation after the detector detects the product A, and the product A is delivered to a seller for sale after the transporter completes transportation. After the product A is detected, the product A needs to be delivered to a transport manufacturer, the detection manufacturer places the product A needing to be delivered to a specified identification range area, the positioning identification module 21 identifies the positioning information of all the positioning labels 3 in the preset identification range, and the detection manufacturer enables the information transceiver module 22 to package the positioning information and send the packaging information to the block server 1 through an input instruction after determining that the positioning information is correct.
The block server 1 is configured with a positioning information base 11, a positioning information duplication checking module 12, a supply value processing module 13, a supply value correction module 14 and an encryption module 15, the positioning information duplication checking module 12 compares the received new positioning information with the positioning information in the positioning information base 11, if the number of the positioning tag 3 in the positioning information and the terminal information of the positioning identification terminal 2 for identifying the positioning tag 3 are the same, the new positioning information is deleted, otherwise, the new positioning information is stored in the positioning information base 11.
The positioning information duplication checking module 12 determines whether the received positioning information is new positioning information, and directly deletes the positioning information if the positioning information belongs to the same positioning identification terminal 2 and is obtained by repeatedly scanning the positioning label 3, and stores the positioning information in the positioning information base 11 if the positioning information is not repeatedly scanned.
The supply value processing module 13 is configured with a supply value processing policy, and defines the positioning identification terminal 2 that has identified the positioning tag 3 last time at present as the current positioning identification terminal 2, and defines the positioning identification terminal 2 that has identified the positioning tag 3 last but one time at present as the upstream positioning identification terminal 2, where the current positioning identification terminal 2 is the positioning identification terminal 2 of the current shipment manufacturer, and the upstream positioning identification terminal 2 is the positioning identification terminal 2 of the upstream manufacturer. The supply value processing strategy comprises the steps of counting the positioning information newly stored in the positioning information base 11 to obtain the terminal information of each current positioning identification terminal 2, and obtaining the identification number value of each new positioning identification terminal 2 for identifying the positioning label 3, wherein the identification number value is the number of the positioning labels 3 newly identified by the current positioning terminal at this time, and is the number of the delivered products. And calculating the identification quantity value through a preset manufacturer supply value processing algorithm to obtain the supply value of the manufacturer corresponding to each current positioning identification terminal 2.
The vendor supplied value processing algorithm is configured to:
wherein p is a supply value, w 'is a current trust value of a manufacturer, n is an identification number value, a1, a2 and a3 are preset constant values, b1, b2 and b3 are preset weight values, and the current trust value w' of the manufacturer is obtained by obtaining a trust value stored by any one of the positioning identification terminals 2 by the block server 1. The greater the number of shipments made by the vendor, the greater the supply capability of the vendor, and the greater the supply value.
The supply value correction module 14 is configured with a supply value correction strategy, the supply value correction strategy includes collecting the number of the positioning tag 3 in each positioning information newly stored in the positioning information base 11, searching the terminal information of the upstream positioning identification terminal 2 in the positioning information base 11 according to the number of the positioning tag 3, and obtaining the searched times value corresponding to each upstream positioning identification terminal 2, each searched times value is the number of all products of the shipment belonging to each upstream manufacturer, and the searched times value is calculated through a preset manufacturer supply value correction algorithm to obtain the feedback value of the manufacturer corresponding to each upstream positioning identification terminal 2.
The vendor supplied value correction algorithm is configured to:
wherein q is a feedback value, m is a searched numerical value, and c and d are preset weight values. The shipment of the current manufacturer has an influence on the credibility of the upstream manufacturer, and the more products of the upstream manufacturer are contained in the shipment of the current manufacturer, the higher the feedback value of the upstream manufacturer.
The block server 1 collects the positioning ciphertext, the positioning secret key, the supply value ciphertext and the supply value key of each manufacturer, the feedback value ciphertext and the feedback value key of each manufacturer, which are generated within a preset interval time, and sends the positioning ciphertext, the supply value key of each manufacturer, and the feedback value ciphertext and the feedback value key of each manufacturer to all the positioning identification terminals 2, and deletes the positioning ciphertext, the positioning secret key, the supply value ciphertext, the supply value key, the feedback value key, and the feedback value key of the block server 1, and sends the positioning ciphertext, the positioning secret key, the supply value ciphertext, the supply value key, the feedback value key to all the positioning identification terminals 2, Feeding back a value key; the positioning information encryption algorithm, the supply value encryption algorithm and the feedback value encryption algorithm are all configured as a hash algorithm.
The positioning identification terminal 2 further comprises a decryption module 23 and a trust value module 24, the decryption module 23 processes the positioning ciphertext and the positioning key through a preset positioning information decryption algorithm to obtain positioning information, the decryption module 23 processes the supply value ciphertext and the supply value key of each manufacturer through a preset supply value decryption algorithm to obtain a supply value of each manufacturer, the decryption module 23 processes the feedback value ciphertext and the feedback value key of each manufacturer through a preset feedback value decryption algorithm to obtain a feedback value of each manufacturer, the trust value module 24 is configured with a trust value policy, the trust value policy comprises replacing the newly obtained supply value with the original supply value, storing supply value replacement time, replacing the newly obtained feedback value with the original feedback value, storing feedback value replacement time, and processing the supply value and the feedback value through a preset trust value processing algorithm to obtain a trust value, and replacing the original trust value with the newly obtained trust value.
The trust value processing algorithm is configured to:
where w is the confidence value, t1 is the time interval value of the last supply value replacement time from the current time of the corresponding vendor, and t2 is the time interval value of the last feedback value replacement time from the current time of the corresponding vendor. The supply value can feed back the supply capacity of the manufacturer, the feedback value is further corrected on the supply capacity, and the original trust value is applied to the calculation of the supply value and the feedback value, so that the supply value and the feedback value can influence each other, and therefore the new trust value selects the latest updated value in the supply value and the feedback value.
Operators of any manufacturer can acquire the trust values of all manufacturers through the positioning identification terminal 2, and the supply capacity strength of all manufacturers can be intuitively acquired through comparing the trust values of all upstream manufacturers, so that downstream manufacturers can select proper upstream manufacturers.
Each product is also provided with a scanning label 4 after being processed, the scanning label 4 is configured to be a two-dimensional code or a bar code, the scanning labels 4 correspond to the positioning labels 3 one by one, and the positioning identification terminal 2 is further configured to scan each scanning label 4 to obtain scanning information, wherein the scanning information includes the number of the positioning label 3.
Since the environment in which each manufacturer uses the positioning recognition terminal 2 is different, the recognition accuracy of the positioning recognition terminal 2 is also different, and particularly, the positioning tag 3 located at the edge of the recognition range has a determination error when determining whether it is located within the recognition range. In order to improve the recognition accuracy of the positioning recognition terminal 2, the positioning recognition terminal 2 needs to be periodically adjusted.
Therefore, the positioning recognition terminal 2 is also configured with a positioning accuracy training strategy, and operators of various manufacturers can adjust the positioning accuracy through the positioning accuracy training strategy. The positioning precision training strategy comprises a signal sending step, a signal processing step, a scanning comparison step and a weight correction step, wherein the signal sending step comprises the steps that a positioning label 3 sends positioning information to a positioning identification terminal 2 and enters the signal processing step. I.e. the operator places the product with the positioning tag 3 and the scanning tag 4 around the preset identification range. And the positioning identification terminal 2 is enabled to identify the positioning label 3 to obtain the positioning information.
The signal processing step comprises the steps that the positioning identification terminal 2 processes the positioning information to obtain a position range corresponding to the positioning label 3, the position range of the positioning label 3 is compared with a preset identification range, if the position range is completely positioned in the identification range, the positioning label 3 is judged to be positioned in the identification range, if the position range is completely positioned outside the identification range, the positioning label 3 is judged to be positioned outside the identification range, if part of the position range is positioned in the identification range and part of the position range is positioned outside the identification range, the position range is subjected to fuzzy processing through a position fuzzy algorithm to judge whether the positioning label 3 is positioned in the identification range, the position fuzzy weight is preset in the position fuzzy algorithm, the positioning information of the positioning label 3 positioned in the identification range is stored, and the scanning comparison step is carried out.
The scanning comparison step comprises the step that the positioning identification terminal 2 scans all the scanning labels 4 in the preset identification range to obtain scanning information, and the scanning process can be manually carried out. And comparing the scanning information with the positioning information stored in the signal processing step, obtaining deviation information in the positioning information according to the scanning information, wherein the deviation information comprises the number of the positioning label 3 which is missing or added in the positioning information, finishing the positioning precision training strategy if the deviation information does not exist, setting the finally obtained fuzzy weight as the weight of the position fuzzy algorithm, and entering the weight correction step if the deviation information exists. And when the positioning precision training strategy is finished, substituting the finally obtained weight of the position fuzzy algorithm into the position fuzzy algorithm to obtain the position fuzzy algorithm with higher precision.
The weight correction step comprises the steps that the positioning identification terminal 2 adjusts the fuzzy weight of the position fuzzy algorithm according to the deviation information, the adjusted fuzzy weight is set as the weight of the position fuzzy algorithm, and the signal processing step is carried out.
The above is only a preferred embodiment of the present invention, and the protection scope of the present invention is not limited to the above-mentioned embodiments, and all technical solutions belonging to the idea of the present invention belong to the protection scope of the present invention. It should be noted that modifications and embellishments within the scope of the invention may occur to those skilled in the art without departing from the principle of the invention, and are considered to be within the scope of the invention.