CN116629903B - Commodity anti-counterfeiting Internet of things traceability recognition system based on blockchain data - Google Patents

Commodity anti-counterfeiting Internet of things traceability recognition system based on blockchain data Download PDF

Info

Publication number
CN116629903B
CN116629903B CN202310886456.1A CN202310886456A CN116629903B CN 116629903 B CN116629903 B CN 116629903B CN 202310886456 A CN202310886456 A CN 202310886456A CN 116629903 B CN116629903 B CN 116629903B
Authority
CN
China
Prior art keywords
checking
data
code
unit
link
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN202310886456.1A
Other languages
Chinese (zh)
Other versions
CN116629903A (en
Inventor
汪家宝
曹健
马岳清
岳翔宇
陈芳
张巍
张清雅
周雨寒
黄白珏
吴可越
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Nanjing Radio And Television Technology Development Co ltd
Nanjing Broadcast Television Group Co ltd
Original Assignee
Nanjing Radio And Television Technology Development Co ltd
Nanjing Broadcast Television Group Co ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Nanjing Radio And Television Technology Development Co ltd, Nanjing Broadcast Television Group Co ltd filed Critical Nanjing Radio And Television Technology Development Co ltd
Priority to CN202310886456.1A priority Critical patent/CN116629903B/en
Publication of CN116629903A publication Critical patent/CN116629903A/en
Application granted granted Critical
Publication of CN116629903B publication Critical patent/CN116629903B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06QINFORMATION AND COMMUNICATION TECHNOLOGY [ICT] SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES; SYSTEMS OR METHODS SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES, NOT OTHERWISE PROVIDED FOR
    • G06Q30/00Commerce
    • G06Q30/018Certifying business or products
    • G06Q30/0185Product, service or business identity fraud
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/20Information retrieval; Database structures therefor; File system structures therefor of structured data, e.g. relational data
    • G06F16/23Updating
    • G06F16/2358Change logging, detection, and notification
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/20Information retrieval; Database structures therefor; File system structures therefor of structured data, e.g. relational data
    • G06F16/27Replication, distribution or synchronisation of data between databases or within a distributed database system; Distributed database system architectures therefor
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/90Details of database functions independent of the retrieved data types
    • G06F16/95Retrieval from the web
    • G06F16/955Retrieval from the web using information identifiers, e.g. uniform resource locators [URL]
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06KGRAPHICAL DATA READING; PRESENTATION OF DATA; RECORD CARRIERS; HANDLING RECORD CARRIERS
    • G06K17/00Methods or arrangements for effecting co-operative working between equipments covered by two or more of main groups G06K1/00 - G06K15/00, e.g. automatic card files incorporating conveying and reading operations
    • G06K17/0022Methods or arrangements for effecting co-operative working between equipments covered by two or more of main groups G06K1/00 - G06K15/00, e.g. automatic card files incorporating conveying and reading operations arrangements or provisious for transferring data to distant stations, e.g. from a sensing device
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/01Protocols
    • H04L67/10Protocols in which an application is distributed across nodes in the network
    • H04L67/104Peer-to-peer [P2P] networks
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/01Protocols
    • H04L67/10Protocols in which an application is distributed across nodes in the network
    • H04L67/1097Protocols in which an application is distributed across nodes in the network for distributed storage of data in networks, e.g. transport arrangements for network file system [NFS], storage area networks [SAN] or network attached storage [NAS]
    • YGENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
    • Y02TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
    • Y02PCLIMATE CHANGE MITIGATION TECHNOLOGIES IN THE PRODUCTION OR PROCESSING OF GOODS
    • Y02P90/00Enabling technologies with a potential contribution to greenhouse gas [GHG] emissions mitigation
    • Y02P90/30Computing systems specially adapted for manufacturing

Abstract

The application provides a commodity anti-counterfeiting Internet of things traceability identification system based on blockchain data, which relates to the technical field of commodity anti-counterfeiting and comprises a data generation module, a blockchain storage module, a device end, a user end and a terminal processor, wherein the data generation module is used for generating anti-counterfeiting data for commodities and sending the data, the blockchain storage module is used for storing the anti-counterfeiting data of the commodities, the device end is used for embedding the anti-counterfeiting data into the commodities, the user end is used for carrying out anti-counterfeiting checking operation on the commodities by a user, and the terminal processor is used for analyzing whether the data is abnormal or not.

Description

Commodity anti-counterfeiting Internet of things traceability recognition system based on blockchain data
Technical Field
The application relates to the technical field of commodity anti-counterfeiting, in particular to a commodity anti-counterfeiting Internet of things traceability identification system based on blockchain data.
Background
The commodity anti-counterfeiting technology refers to the application of anti-counterfeiting technology on commodities to prevent counterfeiting, piracy and counterfeit commodities and ensure the rights and interests of consumers and brands, and common commodity anti-counterfeiting technology comprises bar codes, two-dimensional codes, RFID (radio frequency identification) and other electronic tag technologies, watermarks and other physical anti-counterfeiting technologies, passwords, fingerprints, face recognition and other biological recognition technologies and the like, and along with the development and innovation of technologies, the commodity anti-counterfeiting technology is also updated continuously so as to improve the safety and anti-counterfeiting capability of the commodities;
in the prior art, a physical anti-counterfeiting technology is generally added to the commodity, the commodity is marked with a label or a specific mark as an anti-counterfeiting means, the method is low in safety and easy to imitate, for example, in the patent of the application with the application publication number of CN106529975A, a commodity anti-counterfeiting method is disclosed, the scheme is that only a two-dimensional code is used as the anti-counterfeiting mark of the commodity, in the prior art of commodity anti-counterfeiting based on the Internet, the safety of information storage is low, the encryption measure of data is insufficient, the generation of unique identification data in the commodity anti-counterfeiting technology is not complex enough, the unique identification data is easy to imitate, in addition, the prior art of commodity anti-counterfeiting lacks inspection of anti-counterfeiting data after the commodity anti-counterfeiting processing is finished, error data can possibly appear, and the prior art of commodity anti-counterfeiting technology is insufficient in safety of information storage, insufficient complexity of data generation and data inspection is not timely, and the commodity anti-counterfeiting technology is easy to be cracked, and the problem of data is easy to appear in error.
Disclosure of Invention
Aiming at the defects of the prior art, the application provides a commodity anti-counterfeiting Internet of things traceability recognition system based on blockchain data, which can generate a unique random code of a product through generating time, a product code and a postal code, generate a trusted timestamp for the commodity through an authoritative trusted timestamp mechanism, protect commodity anti-counterfeiting data through adding the trusted timestamp to the random code, store the random code and the trusted timestamp through a blockchain storage technology, and provide an anti-counterfeiting data checking entrance for a user through an NFC technology so as to solve the problems that the existing commodity anti-counterfeiting technology is insufficient in information storage security, insufficient in data generation complexity and insufficient in data checking time, and the commodity anti-counterfeiting technology is easy to crack and the data is easy to error.
In order to achieve the above object, the present application is realized by the following technical scheme: in a first aspect, the application provides a commodity anti-counterfeiting Internet of things traceability identification system based on blockchain data, which comprises a data generation module, a blockchain storage module, a device end, a user end and a terminal processor; the equipment end, the user end, the data generation module and the block chain storage module are respectively connected with the terminal processor in a data mode;
the data generation module comprises a data generation unit, a data binding unit, a data transfer unit, a checking link sending unit and a data checking unit; the data generation unit is used for generating a random code and a trusted time stamp; the data binding unit binds the random code and the trusted timestamp with the device UID of the NFC unit; the data transfer unit is used for calling the blockchain storage module to store the binding data in a uplink manner; the checking link sending unit is used for generating a checking link and sending the checking link to the code writing unit; the data checking unit is used for establishing an internet checking entrance and displaying checking results;
the block chain storage module is used for storing data and marking the data as storage data, wherein the storage data comprises a random code generated by an Internet platform, a trusted time stamp and a device UID;
the equipment end comprises a code writing unit and an NFC unit, wherein the code writing unit is used for writing a checking link which is bound with a random code and a trusted timestamp into the NFC unit; the NFC unit is used for storing a checking link;
the terminal processor comprises a code writing detection unit and a checking detection unit, wherein the code writing detection unit is used for detecting whether a checking link written in the NFC unit by the code writing unit is effective or not and testing whether the NFC unit is readable or not; the checking detection unit is used for reading the checking link and accessing the checking link, acquiring a checking result and judging whether the checking result is correct or not;
the user terminal is used for reading the checking link stored in the NFC unit, browsing the checking link through the Internet, accessing the data checking unit and displaying the checking result.
Further, the data generating unit is configured with a data generating policy, the data generating policy comprising:
obtaining the current time, integrating the current time to be accurate to the minute, removing units, and marking the first two digits to be the generation time;
acquiring a postal code of a commodity production place and acquiring a product code;
multiplying 10000 the postal code and adding the generated time to obtain a primary code, and calculating the primary code through a random code formula to obtain a random code of the commodity;
the random code formula is configured to:the method comprises the steps of carrying out a first treatment on the surface of the Wherein S is a random code, C is a primary code, B is a product code,a is a postal code, alpha is a random code generation coefficient, and beta is a random code generation parameter;
establishing network connection with the Internet, and accessing a third party trusted time stamp service center;
connecting a trusted timestamp generation interface;
a trusted timestamp is generated for the commodity.
Further, the data transfer unit comprises a repeater, wherein the repeater is used for connecting the blockchain storage module and sending the device UID, the random code corresponding to the device and the trusted timestamp.
Further, the data inspection unit includes a computer inspection program for establishing a communication connection with the internet and designing an inspection page, and the user inspects the device by accessing the inspection page.
Further, the blockchain storage module includes a blockchain memory for receiving and storing a random code, a trusted timestamp, and a device UID; marking the acquired data as stored data;
further, the code writing unit comprises a communicator, a code writing device and a code reading device, wherein the communicator is used for establishing communication connection with the NFC unit; the code writer is used for writing the checking link which is generated by the data generation module and is bound with the random code and the trusted timestamp into the NFC unit; the code reader is used for reading the check link in the NFC unit.
Further, the client includes an NFC code reader, where the NFC code reader is configured to read the ping link stored in the NFC unit, browse the ping link through the internet, access the data ping unit, and display a ping result.
Further, the write code detection unit is configured with a write code detection policy, the write code detection policy including:
writing a checking link to the NFC unit through the code writer;
reading the checking link stored in the NFC unit through the code reader;
connecting to the Internet, accessing the checking link, acquiring webpage return data, and outputting a code writing normal signal if the return data is normal; if the returned data is abnormal, outputting a code writing abnormal signal.
Further, the inspection detection unit is configured with an inspection detection policy, the inspection detection policy including:
reading the checking link stored in the NFC unit through the code reader;
accessing the ping link through the internet;
obtaining a checking result in the webpage, wherein the checking result comprises a checking trade name, a checking product code, a checking commodity model, a checking production batch, checking times and checking blockchain certificate numbers of corresponding commodities; and reading a device database to obtain device information of the corresponding device, wherein the device information comprises an actual trade name, an actual product code, an actual commodity model, an actual production batch and an actual blockchain certificate number.
Further, the inspection detection policy further includes: comparing the inspected trade name with the actual trade name, comparing the inspected product code with the actual product code, comparing the inspected commodity model with the actual commodity model, comparing the inspected production batch with the actual production batch, and comparing the inspected blockchain certificate number with the certificate number in the actual blockchain certificate number; if the comparison results are all the same, outputting a checking normal signal; if the comparison results are different, outputting an abnormal checking signal;
if the abnormal checking signal is output, an information correction signal is sent to the maintenance end.
Further, the user terminal is configured with a user checking policy, where the user checking policy includes:
the user obtains the checking link stored in the NFC unit through the code reader;
the user accesses the checking link through the Internet;
reading a random code and a trusted timestamp bound in the checking link;
reading a block chain storage module, comparing the random code and the trusted time stamp with stored data, and if the block chain storage module has the same random code and the same trusted time stamp, acquiring a corresponding device UID;
reading a device database, comparing the device UID with the device database, and if the device database has the same device UID, acquiring corresponding device information and displaying the corresponding device information in a checking page;
acquiring the IP address of a user, acquiring the provincial information of the user through an IP positioning program, recording the access time, and inputting the access time and the provincial information into a user checking database; the user can read the user checking database and derive the history checking record of the corresponding device through the 'check inquiry record' button;
and adding 1 to the checking number value to obtain new checking number and updating the new checking number into the checking page.
In a second aspect, the application provides a commodity anti-counterfeiting internet of things traceability identification method based on blockchain data, which comprises the following steps:
step S1, generating a random code and a trusted time stamp;
step S2, binding the random code and the trusted timestamp with the device UID of the NFC device;
s3, invoking a blockchain memory to store the data in a uplink manner, and marking the data as stored data, wherein the stored data comprises a random code generated by an Internet platform, a trusted time stamp and a device UID;
step S4, generating a checking link, establishing an Internet checking entrance and displaying a checking result;
step S5, writing the checking link with the random code and the trusted timestamp into the NFC equipment, and storing the checking link;
step S6, detecting whether the checking link written in the NFC equipment by the code writer is valid or not, and testing whether the NFC equipment is readable or not;
step S7, reading the checking link and accessing the checking link to acquire a checking result, and judging whether the checking result is correct or not;
step S8, reading the checking link stored in the NFC equipment, browsing the checking link through the Internet, accessing the data checking terminal and displaying the checking result.
The application has the beneficial effects that: according to the application, the current time, the product code and the postal code are acquired, the unique random code of the product is obtained by designing a specific calculation mode, the trusted timestamp is generated for the product by a third party trusted timestamp authority, and the commodity anti-counterfeiting data is protected by adding the trusted timestamp into the random code, so that the storage safety of the anti-counterfeiting data and the credibility of the anti-counterfeiting data are improved;
according to the application, the random code and the trusted time stamp of the commodity are stored by the blockchain storage technology, the random code and the trusted time stamp which are transmitted when a user examines the anti-counterfeiting data are received, and are compared and searched with the stored data in the blockchain storage module, so that the corresponding device UID can be found, the anti-counterfeiting data of the device can be obtained by searching the device database, and the security of the anti-counterfeiting data storage and the accuracy of searching the anti-counterfeiting data are improved;
according to the application, the NFC technology is used for embedding the random code and the trusted timestamp of the commodity into the commodity, and a user can sweep the code of the commodity by using the equipment with the NFC code sweeping function to read the random code and the trusted timestamp of the commodity, so that the convenience of anti-counterfeiting inspection and the safety of data storage are improved;
according to the application, the checking link is read immediately after the checking link is embedded into the commodity, the anti-counterfeiting data is analyzed after the anti-counterfeiting data is obtained by checking the readability of the checking link, the data in the equipment database is compared, whether the anti-counterfeiting data is wrong or not is checked, and the anti-counterfeiting data is corrected in time, so that the accuracy of the anti-counterfeiting data and the feasibility of anti-counterfeiting checking are improved.
Additional aspects of the application will be set forth in part in the description which follows and, in part, will be obvious from the description, or may be learned by practice of the application.
Drawings
Other features, objects and advantages of the present application will become more apparent upon reading of the detailed description of non-limiting embodiments, given with reference to the accompanying drawings in which:
FIG. 1 is a schematic block diagram of a system of the present application;
FIG. 2 is a flow chart of the steps of the method of the present application;
FIG. 3 is a diagram illustrating the generation of a random code according to the present application;
fig. 4 is a connection block diagram of an electronic device in a third embodiment of the present application.
Detailed Description
It should be noted that the following detailed description is exemplary and is intended to provide further explanation of the application. Unless defined otherwise, all technical and scientific terms used herein have the same meaning as commonly understood by one of ordinary skill in the art to which this application belongs.
It is noted that the terminology used herein is for the purpose of describing particular embodiments only and is not intended to be limiting of exemplary embodiments according to the present application.
Embodiments of the application and features of the embodiments may be combined with each other without conflict.
Example 1
Referring to fig. 1, the application provides a commodity anti-counterfeiting internet of things traceability identification system based on blockchain data, which is characterized in that a unique random code of a product is generated by generating time, a product code and a postal code, then a trusted time stamp is generated for the commodity by an authoritative trusted time stamp mechanism, the commodity anti-counterfeiting data is protected by adding the trusted time stamp to the random code, meanwhile, the random code and the trusted time stamp are stored by a blockchain storage technology, and an anti-counterfeiting data checking entrance is provided for a user by an NFC technology, so that the problems that the existing commodity anti-counterfeiting technology is insufficient in information storage safety, insufficient in data generation complexity and insufficient in time are solved, and the commodity anti-counterfeiting technology is easy to crack and data is easy to generate errors.
The commodity anti-counterfeiting Internet of things traceability identification system based on the blockchain data comprises a data generation module, a blockchain storage module, a device end, a user end and a terminal processor; the device side, the user side, the data generation module and the blockchain storage module are respectively connected with the terminal processor in a data mode;
the data generation module comprises a data generation unit, a data binding unit, a data transfer unit, a checking link sending unit and a data checking unit; the data generation unit is used for generating a random code and a trusted time stamp; the data binding unit binds the random code and the trusted timestamp with the device UID of the NFC unit; the data transfer unit is used for calling the block chain storage module to store the binding data in a uplink manner; the checking link sending unit is used for generating a checking link and sending the checking link to the code writing unit; the data checking unit is used for establishing an internet checking entrance and displaying checking results;
in the specific application, the data binding unit and the checking link sending unit are computer background programs;
the data generation unit is configured with a data generation policy including:
referring to fig. 3, the current time is obtained, the current time is integrated into a consecutive number by removing units after being accurate to be divided, and the first two digits are removed and marked as the generation time;
acquiring a postal code of a commodity production place and acquiring a product code;
multiplying 10000 the postal code and adding the generated time to obtain a primary code, and calculating the primary code through a random code formula to obtain a random code of the commodity;
the random code formula is configured as:the method comprises the steps of carrying out a first treatment on the surface of the Wherein S is a random code, C is a primary code, B is a product code, A is a postal code, alpha is a random code generation parameter, and beta is a random code generation parameter;
in a specific application, alpha is set to 10, beta is set to 2, the current time is 2023, 5, 28, 13 and 26 minutes, the generation time is 2305281326, the postal code of the commodity production place is 409000, the product code B is 1584769854, and the primary code C is 6395281326 by inserting the postal code into the generation time; then the random code S is 191333557360 by calculation;
establishing network connection with the Internet, and accessing a third party trusted time stamp service center;
connecting a trusted timestamp generation interface;
generating a trusted timestamp for the commodity;
in the specific application, a joint trust time stamp service center is accessed, a trusted time stamp generating interface is connected, and the trusted time stamp generated for the commodity is 2023/05/29 15:39:43+08 '-00'.
The data transfer unit comprises a repeater, wherein the repeater is used for connecting the blockchain storage module and sending the device UID, the random code corresponding to the device and the trusted timestamp;
in a specific application, the transponder is a computer data transmission program.
The data checking unit includes a computer checking program for establishing communication connection with the internet and designing a checking page, and the user checks the device by accessing the checking page;
in a specific application, the computer inspection program is a designed browser web page.
The blockchain storage module comprises a blockchain memory, wherein the blockchain memory is used for receiving and storing random codes, trusted time stamps and device UIDs; marking the acquired data as stored data;
in particular applications, the blockchain memory is implemented using existing blockchain memory.
The code writing unit comprises a communicator, a code writing device and a code reading device, wherein the communicator is used for establishing communication connection with the NFC unit; the code writer is used for writing the checking link which is generated by the data generation module and is bound with the random code and the trusted timestamp into the NFC unit; the code reader is used for reading the checking link in the NFC unit;
in specific application, the communicator adopts the existing data transmitter, the code writer adopts the existing code writer, the code reader adopts the existing code reader, and the NFC unit is the existing NFC chip.
The user terminal comprises an NFC code reader, wherein the NFC code reader is used for reading the checking link stored in the NFC unit, browsing the checking link through the Internet, accessing the data checking unit and displaying a checking result;
in a specific application, the NFC code reader is a smart phone with an NFC code reading function.
The write code detection unit is configured with a write code detection policy including:
writing a checking link to the NFC unit through the code writer;
reading the checking link stored in the NFC unit through the code reader;
connecting to the Internet, accessing the checking link, acquiring webpage return data, and outputting a code writing normal signal if the return data is normal; if the returned data is abnormal, outputting a code writing abnormal signal;
in a specific application, a checking link is written into the NFC unit through the code writer, the checking link stored in the NFC unit is read through the code reader, the checking link is accessed, the condition that the webpage return data is normal is obtained, and a code writing normal signal is output.
The inspection detection unit is configured with an inspection detection policy including:
reading the checking link stored in the NFC unit through the code reader;
accessing the ping link through the internet;
obtaining checking results in the webpage, wherein the checking results comprise checking trade names, checking product codes, checking commodity models, checking production batches, checking times and checking blockchain certificate numbers of corresponding commodities; the equipment database is read, equipment information of corresponding equipment is obtained, and the equipment information comprises an actual trade name, an actual product code, an actual commodity model, an actual production batch and an actual blockchain certificate number;
in a specific application, accessing a checking link to obtain a checking commodity name of a square-top tablet, checking a product code of 1584769854, checking a commodity model of 203, checking a production batch of 1063, checking times of 6 times, and checking a blockchain certificate number of 154672; reading a device database to obtain the actual commodity name of a square tombstone, the actual product code of 1584769854, the actual commodity model of 204, the actual production batch of 1063 and the actual blockchain certificate number of 154622;
comparing the inspected trade name with the actual trade name, comparing the inspected product code with the actual product code, comparing the inspected commodity model with the actual commodity model, comparing the inspected production batch with the actual production batch, and comparing the inspected blockchain certificate number with the actual blockchain certificate number; acquiring all comparison results, and outputting a checking normal signal if all the comparison results are the same in content; if the comparison result comprises comparison results with different contents, outputting an abnormal checking signal;
if the abnormal checking signal is output, an information correction signal is sent to a maintenance end;
in the specific application, comparing the inspected trade name with the actual trade name to obtain a comparison result with the same content; comparing the content of the checking product code with that of the actual product code to obtain a comparison result with the same content; comparing the checked commodity model with the actual commodity model to obtain a comparison result with different contents; comparing the content of the checked production batch with that of the actual production batch to obtain a comparison result with the same content; comparing the checking blockchain certificate number with the actual blockchain certificate number to obtain a comparison result that the contents are different; and (3) outputting an abnormal checking signal and sending an information correction signal to a maintenance end when the comparison result comprises different data sets.
The user terminal is configured with a user checking strategy, and the user checking strategy comprises the following steps:
the user obtains the checking link stored in the NFC unit through the code reader;
the user accesses the checking link through the Internet;
reading a random code and a trusted timestamp bound in the checking link;
reading a block chain storage module, comparing the random code and the trusted time stamp with stored data, and if the block chain storage module has the same random code and the same trusted time stamp, acquiring a corresponding device UID;
reading a device database, comparing the device UID with the device database, and if the device database has the same device UID, acquiring corresponding device information and displaying the corresponding device information in a checking page;
in a specific application, the random code read by the user into the checking link is 191333557360, and the trusted timestamp is 2023/05/29 15:39:43+08 '00'; the method comprises the steps of reading a block chain storage module, and comparing a random code, a trusted timestamp and stored data to obtain a device UID of 100336763; reading a device database, and comparing to obtain that the device UID in the device database is 100336763, wherein the reading device information is displayed in a page, specifically: trade name: a square tombstone board; product code: 1584769854; commodity model: 203, a base station; production batch: 1063; blockchain certificate number: 154622; number of inspection: 6, preparing a base material;
acquiring the IP address of a user, acquiring the provincial information of the user through an IP positioning program, recording the access time, and inputting the access time and the provincial information into a user checking database; the user can read the user checking database and derive the history checking record of the corresponding device through the 'check inquiry record' button;
adding 1 to the checking number value to obtain new checking number and updating the new checking number into the checking page;
in a specific application, the IP address of the user is 192.168.2.105, the province and city of the user are obtained through an IP positioning program, the province and city of the Anhui province are named as province and city information, the access time is 2023, 5 months, 30 days, 9:54, and the access time and the province and city information are input into a user checking database; and when the inspection times is 6, changing the inspection times to 7 and updating the inspection times into the inspection page.
Example two
Referring to fig. 2, the application provides a commodity anti-counterfeiting internet of things traceability identification method based on blockchain data, which comprises the following steps:
step S1, generating a random code and a trusted time stamp;
step S1 comprises the following sub-steps:
step S101, obtaining the current time, integrating the current time to be accurate until the current time is divided, removing units to be integrated into a coherent number, and marking the two digits to be removed to generate time;
step S102, acquiring a postal code of a commodity production place and acquiring a product code;
step S103, multiplying 10000 the postal code and adding the generated time to obtain a primary code, and calculating the primary code through a random code formula to obtain a random code of the commodity;
the random code formula is configured to:the method comprises the steps of carrying out a first treatment on the surface of the Wherein S is a random code, C is a primary code, B is a product code, A is a postal code, alpha is a random code generation coefficient, and beta is a random code generation parameter;
step S104, establishing network connection with the Internet, and accessing a third party trusted time stamp service center;
step S105, connecting a trusted timestamp generation interface to generate a trusted timestamp for the commodity;
step S2, binding the random code and the trusted timestamp with the device UID of the NFC device;
s3, invoking a blockchain memory to store the data in a uplink manner, and marking the data as stored data, wherein the stored data comprises a random code generated by an Internet platform, a trusted time stamp and a device UID;
step S3 comprises the following sub-steps:
step S301, connecting a block chain memory and transmitting a device UID, a random code corresponding to the device and a trusted time stamp;
step S302, a random code, a trusted time stamp and a device UID are received and stored; marking the acquired data as stored data;
step S4, generating a checking link, establishing an Internet checking entrance and displaying a checking result;
step S4 comprises the following sub-steps:
step S401, generating a checking link;
step S402, establishing communication connection with the Internet, designing a checking page, and checking the equipment by a user by accessing the checking page;
step S5, writing the checking link with the random code and the trusted timestamp into the NFC equipment, and storing the checking link;
step S5 comprises the following sub-steps:
step S501, establishing communication connection with NFC equipment;
step S502, writing a checking link which is bound with a random code and a trusted time stamp into the NFC equipment;
step S503, storing a ping link in the NFC device;
step S6, detecting whether the checking link written in the NFC equipment by the code writer is valid or not, and testing whether the NFC equipment is readable or not;
step S6 comprises the following sub-steps:
step S601, writing a checking link to the NFC equipment;
step S602, reading a checking link stored in the NFC equipment;
step S603, connecting to the Internet, accessing the checking link, acquiring webpage return data, and outputting a code writing normal signal if the return data is normal; if the returned data is abnormal, outputting a code writing abnormal signal;
step S7, reading the checking link and accessing the checking link to acquire a checking result, and judging whether the checking result is correct or not;
step S7 comprises the following sub-steps:
step S701, reading a ping link stored in the NFC device;
step S702, accessing a checking link;
step S703, obtaining inspection results in the web page, wherein the inspection results comprise inspection trade names, inspection product codes, inspection commodity models, inspection production batches, inspection times and inspection blockchain certificate numbers of corresponding commodities; the equipment database is read, equipment information of corresponding equipment is obtained, and the equipment information comprises an actual trade name, an actual product code, an actual commodity model, an actual production batch and an actual blockchain certificate number;
step S704, comparing the inspected trade name with the actual trade name, comparing the inspected product code with the actual product code, comparing the inspected commodity model with the actual commodity model, comparing the inspected production batch with the actual production batch, and comparing the inspected blockchain certificate number with the certificate number in the actual blockchain certificate number; if the comparison results are all the same, outputting a checking normal signal; if the comparison results are different, outputting an abnormal checking signal;
step S705, if the abnormal checking signal is output, the information correction signal is sent to the maintenance end;
step S8, reading the checking link stored in the NFC equipment, browsing the checking link through the Internet, accessing the data checking terminal and displaying the checking result;
step S8 comprises the following sub-steps:
step S801, acquiring a checking link stored in NFC equipment;
step S801, accessing the checking link;
step S801, reading a random code bound in a checking link and a trusted timestamp;
step S801, a block chain memory is read, a random code and a trusted time stamp are compared with stored data, and if the block chain memory has the same random code and trusted time stamp, a corresponding device UID is obtained;
step S801, a device database is read, the device UID is compared with the device database, and if the device UID is the same as the device UID in the device database, corresponding device information is obtained and displayed in a checking page;
step S802, acquiring a user IP address, acquiring provincial and urban information of the user through an IP positioning program, recording the access time, and inputting the access time and the provincial and urban information into a user checking database; the user can read the user checking database and derive the history checking record of the corresponding device through the 'check inquiry record' button;
step S802, the checking number value is added with 1 to obtain new checking number and updated into the checking page.
Example III
Referring to fig. 4, in a third aspect, the present application provides an electronic device 90, including a processor 901 and a memory 902, the memory 902 storing computer readable instructions which, when executed by the processor 901, perform the steps of any of the methods described above. Through the above technical solutions, the processor 901 and the memory 902 are interconnected and communicate with each other through a communication bus and/or other form of connection mechanism (not shown), and the memory 902 stores a computer program executable by the processor 901, which when the electronic device 90 is running, is executed by the processor 901 to perform the method in any of the alternative implementations of the above embodiments when executed, so as to implement the following functions: generating a random code and a trusted time stamp, binding the random code and the trusted time stamp with a device UID of the NFC device, calling a blockchain memory to store the data in a uplink mode, marking the data as stored data, generating a checking link, establishing an Internet checking entrance, and displaying a checking result.
Example IV
In a fourth aspect, the present application provides a storage medium having stored thereon a computer program which, when executed by a processor, performs the steps of any of the methods described above. By the above technical solution, the computer program, when executed by the processor, performs the method in any of the alternative implementations of the above embodiments to implement the following functions: generating a random code and a trusted time stamp, binding the random code and the trusted time stamp with a device UID of the NFC device, calling a blockchain memory to store the data in a uplink mode, marking the data as stored data, generating a checking link, establishing an Internet checking entrance, and displaying a checking result.
Working principle: firstly, a unique random code and a trusted time stamp are generated for the commodity through a data generation unit, then the random code and the trusted time stamp are bound with a checking link through a data binding unit, the checking link is sent to a blockchain storage module through a data transfer unit and stored, then the checking link is sent to a code writing unit through a checking link sending unit, the checking link is written into an NFC unit for storage through a code writing unit, the NFC unit is embedded into the commodity, whether the written checking link can be normally accessed or anti-counterfeiting data is detected to be normal through a code writing detection unit and a checking detection unit, a data checking unit is used for establishing a checking entrance for a user, and finally the user scans the code through an NFC code scanning device and accesses the data checking unit for anti-counterfeiting checking.
It will be appreciated by those skilled in the art that embodiments of the present application may be provided as a method, system, or computer program product. Accordingly, the present application may take the form of an entirely hardware embodiment, an entirely software embodiment or an embodiment combining software and hardware aspects. Furthermore, the present application may take the form of a computer program product embodied on one or more computer-usable storage media having computer-usable program code embodied therein. The storage medium may be implemented by any type or combination of volatile or nonvolatile Memory devices, such as static random access Memory (Static Random Access Memory, SRAM), electrically erasable Programmable Read-Only Memory (Electrically Erasable Programmable Read-Only Memory, EEPROM), erasable Programmable Read-Only Memory (Erasable Programmable Red Only Memory, EPROM), programmable Read-Only Memory (PROM), read-Only Memory (ROM), magnetic Memory, flash Memory, magnetic disk, or optical disk. These computer program instructions may also be stored in a computer-readable memory that can direct a computer or other programmable data processing apparatus to function in a particular manner, such that the instructions stored in the computer-readable memory produce an article of manufacture including instruction means which implement the function specified in the flowchart flow or flows and/or block diagram block or blocks.
The above examples are only specific embodiments of the present application, and are not intended to limit the scope of the present application, but it should be understood by those skilled in the art that the present application is not limited thereto, and that the present application is described in detail with reference to the foregoing examples: any person skilled in the art may modify or easily conceive of the technical solution described in the foregoing embodiments, or perform equivalent substitution of some of the technical features, while remaining within the technical scope of the present disclosure; such modifications, changes or substitutions do not depart from the spirit and scope of the technical solutions of the embodiments of the present application, and are intended to be included in the scope of the present application. Therefore, the protection scope of the present application shall be subject to the protection scope of the claims.

Claims (11)

1. The commodity anti-counterfeiting Internet of things traceability recognition system based on the blockchain data is characterized by comprising a data generation module, a blockchain storage module, a device end, a user end and a terminal processor; the equipment end, the user end, the data generation module and the block chain storage module are respectively connected with the terminal processor in a data mode;
the data generation module comprises a data generation unit, a data binding unit, a data transfer unit, a checking link sending unit and a data checking unit; the data generation unit is used for generating a random code and a trusted time stamp; the data binding unit binds the random code and the trusted timestamp with the device UID of the NFC unit; the data transfer unit is used for calling the blockchain storage module to store the binding data in a uplink manner; the checking link sending unit is used for generating a checking link and sending the checking link to the code writing unit; the data checking unit is used for establishing an internet checking entrance and displaying checking results;
the block chain storage module is used for storing data and marking the data as storage data, wherein the storage data comprises a random code generated by an Internet platform, a trusted time stamp and a device UID;
the equipment end comprises a code writing unit and an NFC unit, wherein the code writing unit is used for writing a checking link which is bound with a random code and a trusted timestamp into the NFC unit; the NFC unit is used for storing a checking link;
the terminal processor comprises a code writing detection unit and a checking detection unit, wherein the code writing detection unit is used for detecting whether a checking link written in the NFC unit by the code writing unit is effective or not and testing whether the NFC unit is readable or not; the checking detection unit is used for reading the checking link and accessing the checking link, acquiring a checking result and judging whether the checking result is correct or not;
the user terminal is used for reading the checking link stored in the NFC unit, browsing the checking link through the Internet, accessing the data checking unit and displaying the checking result;
the data generation unit is configured with a data generation policy including:
obtaining the current time, integrating the current time to be accurate to the minute, removing units, and marking the first two digits to be the generation time;
acquiring a postal code of a commodity production place and acquiring a product code;
multiplying 10000 the postal code and adding the generated time to obtain a primary code, and calculating the primary code through a random code formula to obtain a random code of the commodity;
the random code formula is configured to:the method comprises the steps of carrying out a first treatment on the surface of the Wherein S is a random code, C is a primary code, B is a product code, A is a postal code, alpha is a random code generation coefficient, and beta is a random code generation parameter;
establishing network connection with the Internet, and accessing a third party trusted time stamp service center;
connecting a trusted timestamp generation interface;
a trusted timestamp is generated for the commodity.
2. The anti-counterfeiting internet of things traceability recognition system based on the blockchain data according to claim 1, wherein the data transfer unit comprises a repeater, and the repeater is used for connecting a blockchain storage module and sending a device UID, a random code corresponding to the device and a trusted timestamp.
3. The blockchain data-based commodity anti-counterfeiting internet of things traceability recognition system according to claim 2, wherein the data checking unit comprises a computer checking program for establishing a communication connection with the internet and designing a checking page, and the user checks the device by accessing the checking page.
4. The anti-counterfeiting internet of things traceability identification system based on blockchain data according to claim 3, wherein the blockchain storage module comprises a blockchain memory, wherein the blockchain memory is used for receiving and storing a random code, a trusted timestamp and a device UID; the acquired data is marked as stored data.
5. The anti-counterfeiting internet of things traceability recognition system based on blockchain data according to claim 4, wherein the code writing unit comprises a communicator, a code writing device and a code reading device, and the communicator is used for establishing communication connection with the NFC unit; the code writer is used for writing the checking link which is generated by the data generation module and is bound with the random code and the trusted timestamp into the NFC unit; the code reader is used for reading the check link in the NFC unit.
6. The blockchain data-based commodity anti-counterfeiting internet of things traceability recognition system according to claim 5, wherein the user terminal comprises an NFC reader for reading a ping link stored in the NFC unit, browsing the ping link through the internet and accessing the data ping unit, and displaying a ping result.
7. The blockchain data-based commodity anti-counterfeiting internet of things traceability identification system according to claim 6, wherein the writing code detection unit is configured with a writing code detection strategy, and the writing code detection strategy comprises:
writing a checking link to the NFC unit through the code writer;
reading the checking link stored in the NFC unit through the code reader;
connecting to the Internet, accessing the checking link, acquiring webpage return data, and outputting a code writing normal signal if the return data is normal; if the returned data is abnormal, outputting a code writing abnormal signal.
8. The blockchain data-based commodity anti-counterfeiting internet of things traceability identification system according to claim 7, wherein the inspection detection unit is configured with an inspection detection policy, the inspection detection policy comprising:
reading the checking link stored in the NFC unit through the code reader;
accessing the ping link through the internet;
obtaining a checking result in the webpage, wherein the checking result comprises a checking trade name, a checking product code, a checking commodity model, a checking production batch, checking times and checking blockchain certificate numbers of corresponding commodities; and reading a device database to obtain device information of the corresponding device, wherein the device information comprises an actual trade name, an actual product code, an actual commodity model, an actual production batch and an actual blockchain certificate number.
9. The blockchain data-based commodity anti-counterfeiting internet of things traceability identification system according to claim 8, wherein the inspection and detection strategy further comprises: comparing the inspected trade name with the actual trade name, comparing the inspected product code with the actual product code, comparing the inspected commodity model with the actual commodity model, comparing the inspected production batch with the actual production batch, and comparing the inspected blockchain certificate number with the certificate number in the actual blockchain certificate number; if the comparison results are all the same, outputting a checking normal signal; if the comparison results are different, outputting an abnormal checking signal;
if the abnormal checking signal is output, an information correction signal is sent to the maintenance end.
10. The blockchain data-based commodity anti-counterfeiting internet of things traceability identification system according to claim 9, wherein the user terminal is configured with a user checking policy, the user checking policy comprises:
the user obtains the checking link stored in the NFC unit through the code reader;
the user accesses the checking link through the Internet;
reading a random code and a trusted timestamp bound in the checking link;
reading a block chain storage module, comparing the random code and the trusted time stamp with stored data, and if the block chain storage module has the same random code and the same trusted time stamp, acquiring a corresponding device UID;
reading a device database, comparing the device UID with the device database, and if the device database has the same device UID, acquiring corresponding device information and displaying the corresponding device information in a checking page;
acquiring the IP address of a user, acquiring the provincial information of the user through an IP positioning program, recording the access time, and inputting the access time and the provincial information into a user checking database; the user can read the user checking database and derive the history checking record of the corresponding device through the 'check inquiry record' button;
and adding 1 to the checking number value to obtain new checking number and updating the new checking number into the checking page.
11. The method of the anti-counterfeiting internet of things traceability identification system for commodities based on blockchain data according to any one of claims 1 to 10, comprising the following steps:
step S1, generating a random code and a trusted time stamp;
step S2, binding the random code and the trusted timestamp with the device UID of the NFC device;
s3, invoking a blockchain memory to store the data in a uplink manner, and marking the data as stored data, wherein the stored data comprises a random code generated by an Internet platform, a trusted time stamp and a device UID;
step S4, generating a checking link, establishing an Internet checking entrance and displaying a checking result;
step S5, writing the checking link with the random code and the trusted timestamp into the NFC equipment, and storing the checking link;
step S6, detecting whether the checking link written in the NFC equipment by the code writer is valid or not, and testing whether the NFC equipment is readable or not;
step S7, reading the checking link and accessing the checking link to acquire a checking result, and judging whether the checking result is correct or not;
step S8, reading the checking link stored in the NFC equipment, browsing the checking link through the Internet, accessing the data checking terminal and displaying the checking result.
CN202310886456.1A 2023-07-19 2023-07-19 Commodity anti-counterfeiting Internet of things traceability recognition system based on blockchain data Active CN116629903B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202310886456.1A CN116629903B (en) 2023-07-19 2023-07-19 Commodity anti-counterfeiting Internet of things traceability recognition system based on blockchain data

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202310886456.1A CN116629903B (en) 2023-07-19 2023-07-19 Commodity anti-counterfeiting Internet of things traceability recognition system based on blockchain data

Publications (2)

Publication Number Publication Date
CN116629903A CN116629903A (en) 2023-08-22
CN116629903B true CN116629903B (en) 2023-09-15

Family

ID=87621524

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202310886456.1A Active CN116629903B (en) 2023-07-19 2023-07-19 Commodity anti-counterfeiting Internet of things traceability recognition system based on blockchain data

Country Status (1)

Country Link
CN (1) CN116629903B (en)

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105139061A (en) * 2015-10-08 2015-12-09 安徽省农业科学院农业经济与信息研究所 Crop seed electronic code generation method and source tracing supervision system thereof
CN109102046A (en) * 2018-08-08 2018-12-28 深圳市喆道科技有限公司 Novel Internet anti-counterfeiting system and method
CN111368952A (en) * 2020-03-06 2020-07-03 永正信息技术(南京)有限公司 E-commerce platform source-tracing anti-counterfeiting system and method based on NFC technology and block chain technology
CN114549016A (en) * 2020-11-26 2022-05-27 南京链威客网络科技有限公司 Anti-counterfeiting tracing system based on block chain technology
CN116228257A (en) * 2022-12-20 2023-06-06 广州市汇方锐展计算机技术服务有限公司 Method and device for acquiring article traceability data, computer equipment and storage medium

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US11810179B2 (en) * 2018-04-10 2023-11-07 Rogerio Passy Method for tracking products using distributed, shared registration bases and random numbers generated by quantum processes

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105139061A (en) * 2015-10-08 2015-12-09 安徽省农业科学院农业经济与信息研究所 Crop seed electronic code generation method and source tracing supervision system thereof
CN109102046A (en) * 2018-08-08 2018-12-28 深圳市喆道科技有限公司 Novel Internet anti-counterfeiting system and method
CN111368952A (en) * 2020-03-06 2020-07-03 永正信息技术(南京)有限公司 E-commerce platform source-tracing anti-counterfeiting system and method based on NFC technology and block chain technology
CN114549016A (en) * 2020-11-26 2022-05-27 南京链威客网络科技有限公司 Anti-counterfeiting tracing system based on block chain technology
CN116228257A (en) * 2022-12-20 2023-06-06 广州市汇方锐展计算机技术服务有限公司 Method and device for acquiring article traceability data, computer equipment and storage medium

Non-Patent Citations (2)

* Cited by examiner, † Cited by third party
Title
A Blockchain-Based Traceability System in Agri-Food SME: Case Study of a Traditional Bakery;Luisanna Cocco等;《IEEE Access》;第9卷;62899-62915 *
基于地理位置解析的种子溯源双向动态交互模型及实现;方钰等;《农业工程学报》;第33卷(第24期);207-214 *

Also Published As

Publication number Publication date
CN116629903A (en) 2023-08-22

Similar Documents

Publication Publication Date Title
CN108922012B (en) Invoice checking method without leakage of original information based on block chain technology
CN112036901A (en) Method for protecting supply chain data in block chain and system for recording supply chain information
TWI614636B (en) Content verification method based on digital signature code
CN116091068B (en) Method for providing physical asset original authentication service by using decentralised identifier and heterogeneous tokens
CN111784361A (en) Product tracing method, device, system and storage medium
US20130126619A1 (en) Method and system for certifying contact information
US9473303B2 (en) Method and system for product authentication
CN105096134A (en) Security scheme for authenticating digital entities and aggregate object origins
CN107730385A (en) Simulation process method, apparatus, storage medium and the computer equipment of sequence information
CN105046504A (en) Multiple key checking, inspection and forgery prevention source forming method and forgery prevention label
CN102375941A (en) Method and system for validating chip validity by utilizing graphical chip
US11810179B2 (en) Method for tracking products using distributed, shared registration bases and random numbers generated by quantum processes
JP7385700B2 (en) Information processing system and information processing method
CN110443077A (en) Processing method, device and the electronic equipment of digital asset
CN110113329A (en) A kind of verification method and device of identifying code
US20160100299A1 (en) Communication Method And System To Process And Control The Legality Of Products
CN116629903B (en) Commodity anti-counterfeiting Internet of things traceability recognition system based on blockchain data
CN111611465B (en) Product detection system, method, device, computer equipment and storage medium
CN1776721A (en) General anticounterfeiting method and system
CN112884487A (en) Oiling machine mobile anti-theft intelligent management platform based on Internet +
CN114008606A (en) Management device, management system, management method, management program, and recording medium
KR102185613B1 (en) Standard linkage system for private real estate transaction information network and integrated real estate trade support sysyem of ministry of land, infrastructure and transport and the operation method thereof
WO2017180479A1 (en) System and method for product authentication and anti-counterfeiting
CN110321529A (en) Frame character displaying method, device, computer equipment and storage medium
CN103996139A (en) Credit self-guarantee platform web server, and credit self-guarantee system and method

Legal Events

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