CN114140133B - Method for processing tracing data - Google Patents

Method for processing tracing data Download PDF

Info

Publication number
CN114140133B
CN114140133B CN202111406263.9A CN202111406263A CN114140133B CN 114140133 B CN114140133 B CN 114140133B CN 202111406263 A CN202111406263 A CN 202111406263A CN 114140133 B CN114140133 B CN 114140133B
Authority
CN
China
Prior art keywords
data
commodity
circulation
identification data
manufacturer
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
CN202111406263.9A
Other languages
Chinese (zh)
Other versions
CN114140133A (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.)
Xindian Zhilian Beijing Technology Co ltd
Original Assignee
Xindian Zhilian Beijing Technology 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 Xindian Zhilian Beijing Technology Co ltd filed Critical Xindian Zhilian Beijing Technology Co ltd
Priority to CN202111406263.9A priority Critical patent/CN114140133B/en
Publication of CN114140133A publication Critical patent/CN114140133A/en
Application granted granted Critical
Publication of CN114140133B publication Critical patent/CN114140133B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06QINFORMATION AND COMMUNICATION TECHNOLOGY [ICT] SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES; SYSTEMS OR METHODS SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES, NOT OTHERWISE PROVIDED FOR
    • G06Q30/00Commerce
    • G06Q30/018Certifying business or products
    • G06Q30/0185Product, service or business identity fraud
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • 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
    • G06K17/0029Methods 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 the arrangement being specially adapted for wireless interrogation of grouped or bundled articles tagged with wireless record carriers
    • 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
    • G06Q10/00Administration; Management
    • G06Q10/08Logistics, e.g. warehousing, loading or distribution; Inventory or stock management
    • G06Q10/083Shipping
    • G06Q10/0833Tracking

Landscapes

  • Engineering & Computer Science (AREA)
  • Business, Economics & Management (AREA)
  • Physics & Mathematics (AREA)
  • Economics (AREA)
  • Theoretical Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Development Economics (AREA)
  • Entrepreneurship & Innovation (AREA)
  • Marketing (AREA)
  • General Business, Economics & Management (AREA)
  • Strategic Management (AREA)
  • Tourism & Hospitality (AREA)
  • Quality & Reliability (AREA)
  • Operations Research (AREA)
  • Human Resources & Organizations (AREA)
  • Accounting & Taxation (AREA)
  • Finance (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • General Engineering & Computer Science (AREA)
  • Cash Registers Or Receiving Machines (AREA)
  • Management, Administration, Business Operations System, And Electronic Commerce (AREA)

Abstract

The embodiment of the invention relates to a method for processing tracing data, which comprises the following steps: identifying the packaging type of the current commodity to generate first type data; reading first identification data when the first type data is a box type; performing first validity verification, and tracing to generate first tracing data if the verification is successful; identifying the verification mode of the packaged commodity when the first type data is the packaged type; reading second identification data and performing second validity verification if the verification mode is the first verification mode, and tracing to generate second tracing data if the verification mode is successful; if the verification mode is the second verification mode, reading the first NDEF data and performing third validity verification, and if the verification is successful, tracing to generate third tracing data; generating first two-dimensional code data when the first type data is a box type; performing a fourth validity verification; and if the verification is successful, tracing to generate fourth tracing data. The integrity of the tracing data can be improved and the authenticity of the tracing data can be guaranteed.

Description

Method for processing tracing data
Technical Field
The invention relates to the technical field of data processing, in particular to a method for processing source tracing data.
Background
A traceability mechanism is established for regular tobacco commodities circulating in the market, and a good prevention effect can be achieved for fake and counterfeit commodities. The tobacco commodity tracing technical scheme commonly used at present is that two-dimensional codes are printed on different packages (box packaging, strip packaging and box packaging) of commodities, and corresponding manufacturer information and circulation information are traced through identification of the two-dimensional codes. In practical application, we find that there are certain technical defects in this operation mode: 1) in the process of warehousing and logistics, if the circulation information of commodities needs to be obtained in time, two-dimensional code scanning, identification and recording are required to be carried out on each package manually, so that the labor cost of information tracing and recording is increased undoubtedly, the efficiency is low, and the method is not feasible basically under the condition of more cargoes; 2) the two-dimensional code is printed pattern information, and basically has no technical threshold for imitating the two-dimensional code, so that once the two-dimensional code on the commodity package is copied, counterfeit and shoddy commodities can be successfully mixed into the circulation field, and traceability information can be successfully obtained.
In order to solve the technical defects, the following improvements are made on the existing tobacco product traceability technical scheme: 1. radio Frequency Identification (RFID) tags are used for replacing original two-dimensional codes on the boxed commodities, and the RFID tags have a long-distance communication function, so that Identification information of all boxed commodities can be acquired in real time by only providing one corresponding RFID tag reading device in the warehousing and logistics processes, and manual code scanning operation one by one is not needed; 2. near Field Communication (NFC) tags are used for replacing original two-dimensional codes on the strip-packaged commodities, and because the NFC chip adopts ciphertext data storage and has an encryption/decryption function, a legality verification mechanism based on a security key and a security algorithm can be realized between a system and the NFC tags, and a technical threshold for breaking the mechanism is very high, so that the difficulty in realizing counterfeit and shoddy commodity copying through a non-formal channel is greatly improved, and the security of a tracing system is enhanced; 3) when the commodity is packaged and delivered from a factory, the related box-packaged RFID tag, the strip-packaged NFC tag and the box-packaged two-dimensional code data are subjected to associated binding, and the binding relation is stored in a commodity tag binding database, so that all tracing information associated with any one data item can be obtained at any time after the commodity is delivered from the factory; 4) in the circulation process of the boxed, stripped and boxed commodities, the information of the time, the position and the processing mechanism of the current circulation is collected once to form corresponding boxed, stripped and boxed circulation data every time the circulation is carried out, and the collected boxed, stripped and boxed circulation data are stored into corresponding boxed, stripped and boxed commodity circulation databases. Based on the improvements, a more complete and more authenticity-guaranteed traceability mechanism can be provided for the final client.
Disclosure of Invention
The invention aims to provide a traceability data processing method, an electronic device and a computer readable storage medium aiming at the defects of the prior art, and provides a corresponding legitimacy verification mechanism and a traceability data generation mechanism for three tobacco commodity packaging types (box packaging, strip packaging and box packaging) on the basis of the technical improvement. The integrity of the tracing data can be improved and the authenticity of the tracing data can be guaranteed through the method and the device.
In order to achieve the above object, a first aspect of the embodiments of the present invention provides a method for processing source tracing data, where the method includes:
identifying the packaging type of the current commodity to generate corresponding first type data;
when the first type data is a packing type, reading the identification information of the packing RFID label of the current commodity to generate corresponding first identification data; performing first validity verification processing according to the first identification data, and if the first validity verification processing is successful, performing first commodity information traceability processing according to the first identification data to generate corresponding first traceability data;
when the first type data is a strip type, identifying a preset strip commodity verification mode; if the strip commodity verification mode is the first verification mode, reading the identification information of the strip NFC label of the current commodity to generate corresponding second identification data, and performing second legality verification processing according to the second identification data, and if the second legality verification processing is successful, performing second commodity information traceability processing according to the second identification data to generate corresponding second traceability data; if the stripped commodity verification mode is a second verification mode, reading NDEF data information of the stripped NFC label to generate corresponding first NDEF data, and performing third legality verification processing according to the first NDEF data, and if the third legality verification processing is successful, performing third commodity information traceability processing according to the first NDEF data to generate corresponding third traceability data;
When the first type data is a box type, analyzing the two-dimensional code of the two-dimensional code label of the current commodity to generate corresponding first two-dimensional code data; performing fourth validity verification processing according to the first two-dimensional code data; and if the fourth validity verification processing is successful, performing fourth commodity information traceability processing according to the first two-dimensional code data to generate corresponding fourth traceability data.
Preferably, the performing the first validity verification processing according to the first identification data, and if the first validity verification processing is successful, performing the first commodity information traceability processing according to the first identification data to generate corresponding first traceability data specifically includes:
inquiring a preset commodity label binding database according to the first identification data, and if commodity box RFID identification data matched with the first identification data does not exist in the database, the first validity verification processing fails; if the database has commodity packing RFID identification data matched with the first identification data, the first validity verification processing is successful;
if the first validity verification processing is successful, inquiring the commodity label binding database according to the first identification data to obtain commodity manufacturer identification data bound with the commodity label binding database so as to generate first manufacturer identification data; inquiring a preset manufacturer database according to the first manufacturer identification data to obtain manufacturer information data corresponding to the first manufacturer identification data to generate first manufacturer information data; inquiring a preset boxed commodity circulation database according to the first identification data to obtain a boxed circulation data set corresponding to the first identification data, and generating a first boxed circulation data set; and the first tracing data is formed by the first manufacturer information data and the first packing circulation data set.
Preferably, the performing the second validity verification processing according to the second identification data specifically includes:
based on a data encryption mechanism of a preset first symmetric key algorithm, carrying out encryption calculation on the second identification data by using a preset main key, and taking an encryption result as a first session key; random number generation processing is carried out to obtain first random number data; writing the first random number data into a random number storage area of the strip NFC label; reading ciphertext storage information from the ciphertext storage area of the strip NFC tag to generate corresponding first ciphertext data; based on a data decryption mechanism of a preset second symmetric key algorithm, the first session key is used for carrying out decryption calculation on the first ciphertext data, and a decryption result is used as first plaintext data; if the first plaintext data is not matched with the first random number data, the second validity verification processing fails, and if the first plaintext data is matched with the first random number data, the second validity verification processing succeeds;
the calculation processing process of the first ciphertext data specifically includes: after the strip NFC tag acquires the first random number data from the random number storage area, based on a data encryption mechanism of the second symmetric key algorithm, a second session key preset locally is used for carrying out encryption calculation on the first random number data, and an encryption result is used as the first ciphertext data; and storing the first ciphertext data as ciphertext storage information into the ciphertext storage area.
Preferably, the tracing to the source processing of the second commodity information according to the second identification data to generate corresponding second tracing data specifically includes:
inquiring a preset commodity label binding database according to the second identification data to obtain commodity box RFID identification data and commodity manufacturer identification data bound with the second identification data so as to generate corresponding first RFID identification data and second manufacturer identification data;
inquiring a preset manufacturer database according to the second manufacturer identification data, and acquiring manufacturer information data corresponding to the second manufacturer identification data to generate second manufacturer information data;
inquiring a preset boxed commodity circulation database according to the first RFID identification data to obtain a boxed circulation data set corresponding to the first RFID identification data, and generating a second boxed circulation data set;
inquiring a preset strip commodity circulation database according to the second identification data, obtaining a strip circulation data set corresponding to the second identification data, and generating a first strip circulation data set;
and the second traceability data is formed by the second manufacturer information data, the second packing circulation data set and the first packing circulation data set.
Preferably, the performing of the third legality verification processing according to the first NDEF data specifically includes:
Querying a preset commodity label binding database according to the first NDEF data, and if commodity stripped NDEF data matched with the first NDEF data do not exist in the database, failing to perform the third legality verification processing; and if the commodity stripped NDEF data matched with the first identification data exists in the database, the third legality verification processing is successful.
Preferably, the tracing processing of the third commodity information according to the first NDEF data to generate corresponding third tracing data specifically includes:
inquiring a preset commodity label binding database according to the first NDEF data to obtain commodity box RFID identification data and commodity manufacturer identification data bound with the commodity box RFID binding database to generate corresponding second RFID identification data and third manufacturer identification data;
inquiring a preset manufacturer database according to the third manufacturer identification data, and acquiring manufacturer information data corresponding to the third manufacturer identification data to generate third manufacturer information data;
inquiring a preset boxed commodity circulation database according to the second RFID identification data to obtain a boxed circulation data set corresponding to the second RFID identification data, and generating a third boxed circulation data set;
querying a preset carton package circulation database according to the first NDEF data to obtain a carton package circulation data set corresponding to the carton package circulation database, and generating a second carton package circulation data set;
And forming the third traceability data by the third manufacturer information data, the third boxed circulation data set and the second striped circulation data set.
Preferably, the performing the fourth validity verification processing according to the first two-dimensional code data specifically includes:
querying a preset commodity label binding database according to the first two-dimensional code data, and if no commodity box-packaged two-dimensional code data matched with the first two-dimensional code data exists in the database, failing to verify the validity of the fourth data; and if the two-dimensional code data matched with the first two-dimensional code data exist in the database, the fourth validity verification processing is successful.
Preferably, the tracing fourth commodity information according to the first two-dimensional code data to generate corresponding fourth tracing data specifically includes:
inquiring a preset commodity label binding database according to the first two-dimensional code data to obtain commodity box RFID identification data, commodity strip NFC identification data and commodity manufacturer identification data bound with the first two-dimensional code data to generate corresponding third RFID identification data, first NFC identification data and fourth manufacturer identification data;
inquiring a preset manufacturer database according to the fourth manufacturer identification data to obtain manufacturer information data corresponding to the preset manufacturer database and generate fourth manufacturer information data;
Inquiring a preset boxed commodity circulation database according to the third RFID identification data, obtaining a boxed circulation data set corresponding to the third RFID identification data, and generating a fourth boxed circulation data set;
querying a preset strip commodity circulation database according to the first NFC identification data to obtain a strip circulation data set corresponding to the first NFC identification data, and generating a third strip circulation data set;
inquiring a preset boxed commodity circulation database according to the first two-dimensional code data to obtain a boxed circulation data set corresponding to the first two-dimensional code data, and generating a first boxed circulation data set;
and the fourth traceability data is formed by the fourth manufacturer information data, the fourth boxed circulation data set, the third boxed circulation data set and the first boxed circulation data set.
A second aspect of an embodiment of the present invention provides an electronic device, including: a memory, a processor, and a transceiver;
the processor is configured to be coupled to the memory, read and execute instructions in the memory, so as to implement the method steps of the first aspect;
the transceiver is coupled to the processor, and the processor controls the transceiver to transmit and receive messages.
A third aspect of embodiments of the present invention provides a computer-readable storage medium, which stores computer instructions that, when executed by a computer, cause the computer to execute the instructions of the method according to the first aspect.
The embodiment of the invention provides a method for processing traceability data, electronic equipment and a computer readable storage medium, and provides a corresponding legitimacy check mechanism and a traceability data generation mechanism for three commodity packaging types (box packaging, carton packaging and box packaging). The integrity of the tracing data is improved and the authenticity of the tracing data is guaranteed.
Drawings
Fig. 1 is a schematic diagram of a source data processing method according to an embodiment of the present invention;
fig. 2 is a schematic structural diagram of an electronic device according to a second embodiment of the present invention.
Detailed Description
In order to make the objects, technical solutions and advantages of the present invention clearer, the present invention will be described in further detail with reference to the accompanying drawings, and it is apparent that the described embodiments are only a part of the embodiments of the present invention, not all of the embodiments. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present invention.
When the tobacco commodity is subjected to traceability data query, traceability data related to the current tobacco commodity can be obtained through the traceability data processing method provided by the embodiment of the invention; in the process of processing data traceability, the method provided by the embodiment of the invention can carry out corresponding validity check based on different commodity packaging types, thereby ensuring the authenticity of the traceability object; after the validity is successfully verified, more comprehensive traceability information can be obtained based on the preset binding relationship of box packaging, strip packaging and box packaging, so that the integrity of traceability data is guaranteed; fig. 1 is a schematic diagram of a method for processing source tracing data according to an embodiment of the present invention, as shown in fig. 1, the method mainly includes the following steps:
step 1, identifying the packaging type of a current commodity to generate corresponding first type data;
the first type data comprises a packing type, a strip packing type and a box packing type.
Here, the first type data regards the current tobacco product as a packaged product when the first type data is a packaged type, and regards the current tobacco product as a boxed product when the first type data is a boxed type.
Step 2, when the first type data is a packing type, reading identification information of a packing RFID label of the current commodity to generate corresponding first identification data; and performing first validity verification processing according to the first identification data, and if the first validity verification processing is successful, performing first commodity information traceability processing according to the first identification data to generate corresponding first traceability data.
Here, the validity of the boxed goods is verified in the current step, and if the verification rule is satisfied, the manufacturer information and the history circulation information of the boxed goods are further acquired to generate corresponding goods traceability information, namely first traceability data.
Further, reading the identification information of the packaged RFID tag of the current commodity to generate corresponding first identification data specifically includes:
and reading data of the UID storage area of the current box-packed RFID label through the RFID label reading terminal to generate first identification data.
Here, in the embodiment of the present invention, the UID storage area of each packaged RFID tag stores a unique UID information, and the UID information of the packaged RFID tag of each packaged product is read out and bound with the current packaged product when each packaged product leaves a factory, so that the first identification data is actually the UID information of the packaged RFID tag.
Further, a first validity verification process is performed according to the first identification data, and if the first validity verification process is successful, a first commodity information traceability process is performed according to the first identification data to generate corresponding first traceability data, which specifically includes:
step A1, querying a preset commodity label binding database according to the first identification data, wherein if the database does not contain commodity box RFID identification data matched with the first identification data, the first validity verification processing fails; if the database has the commodity boxed RFID identification data matched with the first identification data, the first validity verification processing is successful;
The commodity label binding database comprises a plurality of commodity label binding data records; the commodity label binding data record comprises commodity box RFID identification data, commodity manufacturer identification data bound with the commodity box RFID identification data, a plurality of commodity strip NFC data groups bound with the commodity box RFID identification data, and a plurality of commodity box two-dimensional code data bound with each commodity strip NFC data group; the commodity strip package NFC data group comprises commodity strip package NFC identification data and commodity strip package NDEF data;
here, each commodity label binding data record corresponds to a group of binding association relations, and the binding relations include the binding relations between one boxed commodity and a manufacturer corresponding to the boxed commodity, the binding relations between the boxed commodity and a plurality of strip commodities in the boxed commodity, and the binding relations between each strip commodity and a plurality of box commodities in the boxed commodity; the commodity box RFID identification data corresponds to UID information of the box RFID label; the NFC label used in the embodiment of the invention can store two kinds of Data which can identify the current NFC label, one kind of Data is UID information stored in a UID storage area, the other kind of Data is NDEF information with a specified message header stored in an NDEF storage area in an NFC Data Exchange Format (NDEF), each commodity strip-packaged NFC Data set corresponds to one strip-packaged NFC label, the commodity strip-packaged NFC identification Data of the Data set corresponds to the UID information of the strip-packaged NFC label, and the commodity strip-packaged NDEF Data of the Data set corresponds to the NDEF information with the specified message header on the strip-packaged NFC label; each commodity box-packed two-dimensional code data corresponds to a box-packed two-dimensional code label;
When a preset commodity label binding database is inquired according to the first identification data, counting the total number of commodity label binding data records matching the commodity box RFID identification data in the commodity label binding database with the first identification data; if the total number is 0, it indicates that the commodity boxed RFID identification data matched with the first identification data does not exist in the database, the corresponding first validity verification processing fails, and then the corresponding RFID identification error warning processing flow is switched to for processing; if the total number is not 0, it indicates that the commodity boxed RFID identification data matched with the first identification data exists in the database, the corresponding first validity verification processing is successful, and then the step A2 is carried out to continue processing;
step A2, if the first validity verification process is successful, inquiring the commodity label binding database according to the first identification data to obtain the commodity manufacturer identification data bound with the commodity label binding database and generate first manufacturer identification data; inquiring a preset manufacturer database according to the first manufacturer identification data to obtain manufacturer information data corresponding to the first manufacturer identification data to generate first manufacturer information data; inquiring a preset boxed commodity circulation database according to the first identification data to obtain a boxed circulation data set corresponding to the first identification data, and generating a first boxed circulation data set; a first traceability data is formed by a first manufacturer information data and a first packing circulation data set;
The factory database comprises a plurality of factory data records; the manufacturer data record comprises manufacturer identification data and manufacturer information data;
the boxed commodity circulation database comprises a plurality of boxed circulation data records; the boxed circulation data record comprises boxed RFID identification data and boxed circulation data set; the boxed circulation data set comprises a plurality of boxed circulation data; the box-packed circulation data comprises box-packed circulation time data, box-packed circulation mechanism data and box-packed circulation position data;
here, each case circulation data record corresponds to a case RFID tag of a case commodity; the boxed RFID identification data is UID information of the corresponding boxed RFID label; each piece of packing circulation data in the packing circulation data set corresponds to a circulation node of the packing commodity, wherein time information, namely packing circulation time data, position information, namely packing circulation position data, and mechanism information, namely packing circulation mechanism data, related to the circulation are included, and the circulation mechanism is actually a circulation operation mechanism (department, personnel), such as a warehouse, a fleet, a retail store, a counter and the like;
after the first validity verification processing is successful, commodity manufacturer identification data recorded by the commodity label binding data of which the commodity box RFID identification data is matched with the first identification data is extracted from the commodity label binding database as first manufacturer identification data; then, factory information data of a factory data record of which the factory identification data are matched with the first factory identification data are extracted from a factory database and serve as the first factory information data; and extracting a packing circulation data set of the packing circulation data record with the RFID identification data matched with the first identification data from the packing commodity circulation database as a first packing circulation data set.
Step 3, when the first type data is a strip type, identifying a preset strip commodity verification mode; if the strip commodity verification mode is the first verification mode, reading the identification information of the strip NFC label of the current commodity to generate corresponding second identification data, and performing second legality verification processing according to the second identification data, and if the second legality verification processing is successful, performing second commodity information traceability processing according to the second identification data to generate corresponding second traceability data; if the stripped commodity verification mode is the second verification mode, the NDEF data information of the stripped NFC tag is read to generate corresponding first NDEF data, third legality verification processing is conducted according to the first NDEF data, and if the third legality verification processing is successful, third commodity information source tracing processing is conducted according to the first NDEF data to generate corresponding third source tracing data.
Here, the current step divides the legitimacy verification and traceability data processing flow for the packaged goods into two processing flows based on the packaged goods verification mode: a first and a second legality verification and tracing data processing flow.
First legality verification and source tracing data processing flow
The process comprises the following steps: and reading the identification information of the strip NFC label of the current commodity to generate corresponding second identification data, and performing second legality verification processing according to the second identification data, wherein if the second legality verification processing is successful, performing second commodity information traceability processing according to the second identification data to generate corresponding second traceability data.
Further, reading the identification information of the strip NFC tag of the current commodity to generate corresponding second identification data specifically includes:
and performing data reading on the UID storage area of the current strip NFC label through the NFC label reading terminal to generate second identification data.
Here, in the embodiment of the present invention, a unique UID information is stored in the UID storage area of each strip-packaged NFC tag, and when each strip-packaged product is packaged, the UID information of the strip-packaged NFC tag of the strip-packaged product is read and bound to the current strip-packaged product, so that the second identification data is actually the UID information of the strip-packaged NFC tag, and when each strip-packaged product is packaged, the identification data is bound to the packaged RFID tag corresponding to the packaged product.
Further, performing a second validity verification process according to the second identification data specifically includes:
step B1, based on the data encryption mechanism of the preset first symmetric key algorithm, using the preset master key to encrypt the second identification data, and using the encrypted result as the first session key;
wherein, the first symmetric key algorithm at least comprises a national secret SM1 algorithm;
here, when or before binding each strip NFC tag with a corresponding box RFID tag, the implementation of the present invention also loads a second session key in advance into a key storage area of the strip NFC tag, where the second session key is obtained by encrypting, by using a preset master key, UID information of the strip NFC tag by using a data encryption mechanism based on a first symmetric key algorithm, and the second session key of each strip NFC tag is different because the UID information of each strip NFC tag is different; if the current packaged NFC tag is a legal tag, the first session key calculated in the current step should be consistent with the second session key inside the packaged NFC tag;
Step B2, performing random number generation processing to obtain first random number data;
step B3, writing the first random number data into the random number storage area of the strip NFC label; reading ciphertext storage information from a ciphertext storage area of the strip NFC tag to generate corresponding first ciphertext data;
the calculation processing process of the first ciphertext data specifically comprises the following steps: after the bar NFC tag acquires the first random number data from the random number storage area, based on a data encryption mechanism of a preset second symmetric key algorithm, the first random number data is encrypted and calculated by using a locally preset second session key, and an encryption result is used as first ciphertext data; storing the first ciphertext data serving as ciphertext storage information into a ciphertext storage area; the second symmetric key algorithm at least comprises a national secret SM7 algorithm;
step B4, based on the data decryption mechanism of the second symmetric key algorithm, using the first session key to perform decryption calculation on the first ciphertext data, and using the decryption result as first plaintext data;
here, if the current bar-mounted NFC tag is a legal tag, the first session key should be consistent with the second session key, and a plaintext obtained by decrypting the first ciphertext data using the first session key should be consistent with an original encrypted plaintext corresponding to the first ciphertext data, that is, the first random number data;
In step B5, if the first plaintext data does not match the first random number data, the second validity verification process fails, and if the first plaintext data matches the first random number data, the second validity verification process succeeds.
If the current packaged NFC tag is a legal tag, the first plaintext data and the first random number data should be matched, so if the current packaged NFC tag is not a legal tag, the current packaged NFC tag may be considered as a non-legal NFC tag, the corresponding second validity verification process fails, and then the corresponding NFC tag error warning process flow should be switched to for processing; if the two are matched, the corresponding second validity verification processing is successful, and the second commodity information source tracing processing is continued according to the second identification data to generate corresponding second source tracing data.
Further, performing a second commodity information tracing process according to the second identification data to generate corresponding second tracing data, specifically including:
step C1, querying a preset commodity label binding database according to the second identification data, and acquiring commodity box RFID identification data and commodity manufacturer identification data bound with the preset commodity label binding database to generate corresponding first RFID identification data and second manufacturer identification data;
Here, after the second validity verification processing is successful, first, a commodity label binding data record with commodity package NFC identification data matched with the second identification data is recorded as a matching record from the commodity label binding database; extracting commodity boxed RFID identification data from the matching record to serve as first RFID identification data; and extracting commodity manufacturer identification data from the matching record to serve as second manufacturer identification data;
step C2, inquiring a preset manufacturer database according to the second manufacturer identification data, obtaining manufacturer information data corresponding to the second manufacturer identification data, and generating second manufacturer information data;
here, factory information data of a factory data record in which the factory identification data matches the second factory information data is extracted from the factory database as second factory information data;
step C3, inquiring a preset boxed commodity circulation database according to the first RFID identification data, obtaining a boxed circulation data set corresponding to the first RFID identification data, and generating a second boxed circulation data set;
extracting a packing circulation data set of a packing circulation data record with the packing RFID identification data matched with the first RFID identification data from the packing commodity circulation database as a second packing circulation data set;
Step C4, querying a preset strip package circulation database according to the second identification data, obtaining a strip package circulation data set corresponding to the second identification data, and generating a first strip package circulation data set;
the carton turnover database comprises a plurality of carton turnover data records; the strip circulation data records comprise strip NFC identification data, strip NDEF data and a strip circulation data set; the strip circulation data set comprises a plurality of strip circulation data; the strip circulation data comprises strip circulation time data, strip circulation mechanism data and strip circulation position data;
here, each strip package circulation data record corresponds to a strip package NFC tag of a strip package commodity; the strip-packaged NFC identification data is UID information of the corresponding strip-packaged NFC label, and the strip-packaged NDEF data is NDEF information with a specified message header in the corresponding strip-packaged NFC label; each piece of circulation data in the piece of circulation data set corresponds to a circulation node of the piece of commodity, wherein time information, namely piece of circulation time data, position information, namely piece of circulation position data, and mechanism information, namely piece of circulation mechanism data, related to the circulation are included, and the circulation mechanism is actually a circulation operation mechanism (department, personnel), such as a retail store, a counter, a shelf and the like;
Here, a strip package circulation data set of strip package circulation data records with strip package NFC identification data matched with the second identification data is extracted from a strip package commodity circulation database and serves as a first strip package circulation data set;
and step C5, forming second traceability data by the second manufacturer information data, the second box-packed circulation data set and the first packing circulation data set.
Here, the second containerization circulation data set is a circulation data set before the current strip goods are separated from the bound containerized goods, the first containerization circulation data set is a circulation data set after the current strip goods are separated from the bound containerized goods, and the second containerization circulation data set and the first containerization circulation data set are combined together to obtain the most complete circulation data set of the current strip goods.
(II) first legality verification and source tracing data processing flow
The process comprises the following steps: and reading the NDEF data information of the strip NFC tag to generate corresponding first NDEF data, and performing third legality verification processing according to the first NDEF data, wherein if the third legality verification processing is successful, performing third commodity information source tracing processing according to the first NDEF data to generate corresponding third source tracing data.
Further, reading NDEF data information of the strip NFC tag of the current product to generate corresponding first NDEF data specifically includes:
and the NFC tag reading terminal reads the NDEF information with the appointed message header in the NDEF storage area of the current strip-mounted NFC tag to generate first NDEF data.
Here, when or before each strip NFC tag is bound to a corresponding box RFID tag, the present invention also pre-allocates a unique NDEF information with an assigned header and stores the NDEF information in the NDEF storage area of the strip NFC tag, where the NDEF information may also be used to uniquely identify the strip NFC tag; the NDEF information is designed for some specific application scenarios where data encryption calculation cannot be performed; when each strip packaged commodity is boxed, the NDEF information is bound with the boxed RFID tag corresponding to the boxed commodity.
Further, performing third legality verification processing according to the first NDEF data specifically includes:
querying a preset commodity label binding database according to the first NDEF data, and if no commodity packaged NDEF data matched with the first NDEF data exists in the database, failing to perform third legitimacy verification processing; and if the commodity packaged NDEF data matched with the first identification data exists in the database, the third legality verification processing is successful.
When a preset commodity label binding database is inquired according to the first NDEF data, all commodity label binding data records with commodity strip NDEF data matched with the first NDEF data in the database are recorded as matching records, and the total number of the matching records is counted; if the total number is 0, the database does not have commodity packaged NDEF data matched with the first NDEF data, the corresponding third validity verification processing fails, and the subsequent processing is carried out by the corresponding NFC label error warning processing flow; if the total number is not 0, it is indicated that commodity packaged NDEF data matched with the first NDEF data exists in the database, and the corresponding third validity verification processing is successful, and then the third commodity information source tracing processing is continued to be performed according to the first NDEF data to generate corresponding third source tracing data.
Further, performing a third commodity information traceability process according to the first NDEF data to generate corresponding third traceability data, specifically including:
step D1, querying a preset commodity label binding database according to the first NDEF data, and acquiring commodity box RFID identification data and commodity manufacturer identification data bound with the preset commodity label binding database to generate corresponding second RFID identification data and third manufacturer identification data;
Here, after the third validity verification processing is successful, first, a commodity label binding data record with commodity packaged NDEF data matched with the first NDEF data is recorded as a matching record from a commodity label binding database; extracting commodity boxed RFID identification data from the matching record to serve as second RFID identification data; and extracting commodity manufacturer identification data from the matching record as third manufacturer identification data;
step D2, inquiring a preset manufacturer database according to the third manufacturer identification data, obtaining manufacturer information data corresponding to the preset manufacturer database, and generating third manufacturer information data;
here, factory information data of a factory data record in which the factory identification data matches the third factory information data is extracted from the factory database as third factory information data;
step D3, inquiring a preset boxed commodity circulation database according to the second RFID identification data, obtaining a boxed circulation data set corresponding to the second RFID identification data, and generating a third boxed circulation data set;
extracting a packing circulation data set of a packing circulation data record with the packing RFID identification data matched with the second RFID identification data from the packing commodity circulation database as a third packing circulation data set;
Step D4, querying a preset carton package circulation database according to the first NDEF data, obtaining a carton package circulation data set corresponding to the carton package circulation database, and generating a second carton package circulation data set;
extracting a strip circulation data set of strip circulation data records of which strip NDEF data are matched with the first NDEF data from a strip commodity circulation database to serve as a second strip circulation data set;
and D5, forming third traceability data by the third manufacturer information data, the third boxed circulation data set and the second cased circulation data set.
Here, the third containerized circulation data set is a circulation data set before the current packaged goods are separated from the bound containerized goods, the second containerized circulation data set is a circulation data set after the current packaged goods are separated from the bound containerized goods, and the most complete circulation data set of the current packaged goods can be obtained by combining the third containerized circulation data set and the second containerized circulation data set.
Step 4, when the first type data is a box type, analyzing the two-dimensional code codes of the two-dimensional code labels of the current commodities to generate corresponding first two-dimensional code data; performing fourth validity verification processing according to the first two-dimensional code data; and if the fourth validity verification processing is successful, performing fourth commodity information traceability processing according to the first two-dimensional code data to generate corresponding fourth traceability data.
Further, analyzing the two-dimensional code of the two-dimensional code label of the current commodity to generate corresponding first two-dimensional code data specifically includes:
and performing pattern scanning and two-dimensional code identification on the printed pattern of the two-dimensional code label of the current boxed commodity through a two-dimensional code scanning terminal to generate first two-dimensional code data.
Here, a printed pattern of a two-dimensional code label is provided on a packaging box of each boxed product in the embodiment of the present invention, and when the box-packaged product is sealed, two-dimensional code data corresponding to the two-dimensional code pattern needs to be bound with an NFC label of a currently packaged strip-packaged product.
Further, performing a fourth validity verification process according to the first two-dimensional code data specifically includes:
querying a preset commodity label binding database according to the first two-dimensional code data, and if no commodity box-packed two-dimensional code data matched with the first two-dimensional code data exists in the database, failing to perform the fourth validity verification processing; and if the two-dimensional code data matched with the first two-dimensional code data exist in the database, the fourth validity verification processing is successful.
When a preset commodity label binding database is inquired according to the first two-dimensional code data, commodity label binding data records with commodity box-packaged two-dimensional code data matched with the first two-dimensional code data in the database are recorded as matching records, and the total number of the matching records is counted; if the total number is 0, it is indicated that the two-dimensional code data matched with the first two-dimensional code data does not exist in the database, the corresponding fourth validity verification processing fails, and the corresponding two-dimensional code label error warning processing flow is subsequently switched to for processing; if the total number is not 0, it is indicated that the two-dimensional code data matched with the first two-dimensional code data exist in the database, and the corresponding fourth validity verification processing is successful, and then the fourth commodity information tracing processing is continuously performed according to the first two-dimensional code data to generate corresponding fourth tracing data.
Further, performing a fourth commodity information traceability process according to the first two-dimensional code data to generate corresponding fourth traceability data, specifically comprising:
step E1, querying a preset commodity label binding database according to the first two-dimensional code data, and acquiring commodity box RFID identification data, commodity strip NFC identification data and commodity manufacturer identification data which are bound with the database to generate corresponding third RFID identification data, first NFC identification data and fourth manufacturer identification data;
after the fourth validity verification processing is successful, firstly, recording a commodity label binding data record with the commodity box-packaged two-dimensional code data matched with the first two-dimensional code data as a matching record from a commodity label binding database; extracting commodity boxed RFID identification data from the matching record to serve as third RFID identification data; extracting commodity stripped NFC identification data from the matching record to serve as first NFC identification data; and extracting commodity manufacturer identification data from the matching record to serve as fourth manufacturer identification data;
step E2, inquiring a preset manufacturer database according to the fourth manufacturer identification data, obtaining manufacturer information data corresponding to the preset manufacturer database, and generating fourth manufacturer information data;
Here, factory information data of a factory data record in which the factory identification data matches the fourth factory information data is extracted from the factory database as fourth factory information data;
step E3, querying a preset boxed commodity circulation database according to the third RFID identification data, obtaining a boxed circulation data set corresponding to the preset boxed commodity circulation database, and generating a fourth boxed circulation data set;
here, a packing circulation data set of the packing circulation data record in which the packing RFID identification data matches the third RFID identification data is extracted from the packing commodity circulation database as a fourth packing circulation data set;
step E4, querying a preset strip package commodity circulation database according to the first NFC identification data, obtaining a strip package circulation data set corresponding to the first NFC identification data, and generating a third strip package circulation data set;
extracting a strip circulation data set of strip circulation data records with strip NFC identification data matched with the first NFC identification data from a strip commodity circulation database to serve as a third strip circulation data set;
step E5, inquiring a preset boxed commodity circulation database according to the first two-dimensional code data, obtaining a boxed circulation data set corresponding to the first two-dimensional code data, and generating a first boxed circulation data set;
The boxed commodity circulation database comprises a plurality of boxed circulation data records; the box-packed circulation data record comprises box-packed two-dimensional code data and a box-packed circulation data set; the boxed circulation data set comprises a plurality of boxed circulation data; the box circulation data comprises box circulation time data, box circulation mechanism data and box circulation position data;
here, each boxed circulation data record corresponds to a boxed two-dimensional code label of a boxed commodity; the boxed two-dimensional code data correspond to the boxed two-dimensional code labels one by one; each piece of boxed circulation data in the boxed circulation data set corresponds to a circulation node of the boxed commodity, wherein time information, namely boxed packing circulation time data, position information, namely boxed circulation position data, and mechanism information, namely boxed circulation mechanism data, related to the circulation are included, and the circulation mechanism is actually a circulation operation mechanism (department and personnel), such as a retail store, a counter, a goods shelf, an automatic shopping machine, a teller and the like;
extracting a box-packed circulation data set of box-packed circulation data records with box-packed two-dimensional code data matched with the first two-dimensional code data from a box-packed commodity circulation database to serve as a first box-packed circulation data set;
And step E6, forming fourth traceability data by the fourth manufacturer information data, the fourth box-packaged circulation data set, the third box-packaged circulation data set and the first box-packaged circulation data set.
The fourth boxed circulation data set is a circulation data set before the packaged goods sealed and stored in the current boxed goods are separated from the bound boxed goods, the third boxed circulation data set is a circulation data set after the packaged goods sealed and stored in the current boxed goods are separated from the bound boxed goods, the first boxed circulation data set is a circulation data set after the current boxed goods are separated from the bound boxed goods, and the most complete circulation data set of the current boxed goods can be obtained by combining the fourth boxed circulation data set, the third boxed circulation data set and the first boxed circulation data set.
Fig. 2 is a schematic structural diagram of an electronic device according to a second embodiment of the present invention. The electronic device may be the terminal device or the server, or may be a terminal device or a server connected to the terminal device or the server and implementing the method according to the embodiment of the present invention. As shown in fig. 2, the electronic device may include: a processor 301 (e.g., CPU), memory 302, transceiver 303; the transceiver 303 is coupled to the processor 301, and the processor 301 controls transceiving operation of the transceiver 303. Various instructions may be stored in memory 302 for performing various processing functions and implementing the processing steps described in the foregoing method embodiments. Preferably, the electronic device according to an embodiment of the present invention further includes: a power supply 304, a system bus 305, and a communication port 306. The system bus 305 is used to implement communication connections between the elements. The communication port 306 is used for connection communication between the electronic device and other peripherals.
The system bus 305 mentioned in fig. 2 may be a Peripheral Component Interconnect (PCI) bus, an Extended Industry Standard Architecture (EISA) bus, or the like. The system bus may be divided into an address bus, a data bus, a control bus, and the like. For ease of illustration, only one thick line is shown in FIG. 2, but that does not indicate only one bus or one type of bus. The communication interface is used for realizing communication between the database access device and other equipment (such as a client, a read-write library and a read-only library). The Memory may include a Random Access Memory (RAM) and may also include a Non-Volatile Memory (Non-Volatile Memory), such as at least one disk Memory.
The Processor may be a general-purpose Processor, including a Central Processing Unit (CPU), a Network Processor (NP), a Graphics Processing Unit (GPU), and the like; but also Digital Signal Processors (DSPs), Application Specific Integrated Circuits (ASICs), Field Programmable Gate Arrays (FPGAs) or other Programmable logic devices, discrete Gate or transistor logic devices, discrete hardware components.
It should be noted that the embodiment of the present invention also provides a computer-readable storage medium, in which instructions are stored, and when the computer-readable storage medium runs on a computer, the computer is caused to execute the method and the processing procedure provided in the above embodiment.
The embodiment of the present invention further provides a chip for executing the instruction, where the chip is configured to execute the processing steps described in the foregoing method embodiment.
The embodiment of the invention provides a method for processing traceability data, electronic equipment and a computer readable storage medium, and provides a corresponding legitimacy check mechanism and a traceability data generation mechanism for three commodity packaging types (box packaging, carton packaging and box packaging). The integrity of the tracing data is improved and the authenticity of the tracing data is guaranteed.
Those of skill would further appreciate that the various illustrative components and algorithm steps described in connection with the embodiments disclosed herein may be implemented as electronic hardware, computer software, or combinations of both, and that the components and steps of the various examples have been described above generally in terms of their functionality in order to clearly illustrate this interchangeability of hardware and software. Whether such functionality is implemented as hardware or software depends upon the particular application and design constraints imposed on the technical solution. Skilled artisans may implement the described functionality in varying ways for each particular application, but such implementation decisions should not be interpreted as causing a departure from the scope of the present invention.
The steps of a method or algorithm described in connection with the embodiments disclosed herein may be embodied in hardware, a software module executed by a processor, or a combination of the two. A software module may reside in Random Access Memory (RAM), memory, Read Only Memory (ROM), electrically programmable ROM, electrically erasable programmable ROM, registers, hard disk, a removable disk, a CD-ROM, or any other form of storage medium known in the art.
The above-mentioned embodiments are intended to illustrate the objects, technical solutions and advantages of the present invention in further detail, and it should be understood that the above-mentioned embodiments are merely exemplary embodiments of the present invention, and are not intended to limit the scope of the present invention, and any modifications, equivalent substitutions, improvements and the like made within the spirit and principle of the present invention should be included in the scope of the present invention.

Claims (9)

1. A method for processing source tracing data is characterized by comprising the following steps:
identifying the packaging type of the current commodity to generate corresponding first type data;
when the first type data is a packing type, reading the identification information of the packing RFID label of the current commodity to generate corresponding first identification data; performing first validity verification processing according to the first identification data, and if the first validity verification processing is successful, performing first commodity information traceability processing according to the first identification data to generate corresponding first traceability data;
When the first type data is a strip type, identifying a preset strip commodity verification mode; if the strip-packaged commodity verification mode is the first verification mode, reading the identification information of the strip-packaged NFC label of the current commodity to generate corresponding second identification data, and performing second legality verification processing according to the second identification data, and if the second legality verification processing is successful, performing second commodity information traceability processing according to the second identification data to generate corresponding second traceability data; if the stripped commodity verification mode is a second verification mode, reading NDEF data information of the stripped NFC label to generate corresponding first NDEF data, and performing third legality verification processing according to the first NDEF data, and if the third legality verification processing is successful, performing third commodity information traceability processing according to the first NDEF data to generate corresponding third traceability data;
when the first type data is a box type, analyzing the two-dimensional code of the two-dimensional code label of the current commodity to generate corresponding first two-dimensional code data; performing fourth validity verification processing according to the first two-dimensional code data; if the fourth validity verification processing is successful, performing fourth commodity information traceability processing according to the first two-dimensional code data to generate corresponding fourth traceability data;
Wherein, the performing the second validity verification processing according to the second identification data specifically includes:
based on a data encryption mechanism of a preset first symmetric key algorithm, carrying out encryption calculation on the second identification data by using a preset main key, and taking an encryption result as a first session key; random number generation processing is carried out to obtain first random number data; writing the first random number data into a random number storage area of the strip NFC label; ciphertext storage information is read from a ciphertext storage area of the strip NFC tag to generate corresponding first ciphertext data; based on a data decryption mechanism of a preset second symmetric key algorithm, the first session key is used for carrying out decryption calculation on the first ciphertext data, and a decryption result is used as first plaintext data; if the first plaintext data is not matched with the first random number data, the second validity verification processing fails, and if the first plaintext data is matched with the first random number data, the second validity verification processing succeeds;
the calculation processing process of the first ciphertext data specifically includes: after the strip NFC tag acquires the first random number data from the random number storage area, based on a data encryption mechanism of the second symmetric key algorithm, a second session key preset locally is used for carrying out encryption calculation on the first random number data, and an encryption result is used as the first ciphertext data; and storing the first ciphertext data as ciphertext storage information into the ciphertext storage area.
2. The method for processing tracing data according to claim 1, wherein the performing of the first validity verification processing according to the first identification data, and if the first validity verification processing is successful, performing the tracing processing of the first commodity information according to the first identification data to generate corresponding first tracing data specifically includes:
querying a preset commodity label binding database according to the first identification data, and if commodity box RFID identification data matched with the first identification data does not exist in the database, failing to perform the first validity verification processing; if the database has commodity packing RFID identification data matched with the first identification data, the first validity verification processing is successful;
if the first validity verification processing is successful, inquiring the commodity label binding database according to the first identification data to obtain commodity manufacturer identification data bound with the commodity label binding database so as to generate first manufacturer identification data; inquiring a preset manufacturer database according to the first manufacturer identification data, and acquiring manufacturer information data corresponding to the manufacturer database to generate first manufacturer information data; inquiring a preset boxed commodity circulation database according to the first identification data to obtain a boxed circulation data set corresponding to the first identification data, and generating a first boxed circulation data set; and the first tracing data is formed by the first manufacturer information data and the first packing circulation data set.
3. The method for processing traceability data as claimed in claim 1, wherein the performing traceability processing on the second commodity information according to the second identification data to generate corresponding second traceability data specifically comprises:
inquiring a preset commodity label binding database according to the second identification data to obtain commodity box RFID identification data and commodity manufacturer identification data bound with the second identification data so as to generate corresponding first RFID identification data and second manufacturer identification data;
inquiring a preset manufacturer database according to the second manufacturer identification data, and acquiring manufacturer information data corresponding to the second manufacturer identification data to generate second manufacturer information data;
inquiring a preset boxed commodity circulation database according to the first RFID identification data, obtaining a boxed circulation data set corresponding to the first RFID identification data, and generating a second boxed circulation data set;
querying a preset strip commodity circulation database according to the second identification data, obtaining a strip circulation data set corresponding to the second identification data, and generating a first strip circulation data set;
and the second traceability data is formed by the second manufacturer information data, the second packing circulation data set and the first packing circulation data set.
4. The method for processing the source tracing data according to claim 1, wherein the performing of the third legality verification processing according to the first NDEF data specifically includes:
querying a preset commodity label binding database according to the first NDEF data, and if commodity stripped NDEF data matched with the first NDEF data do not exist in the database, failing to perform the third legality verification processing; and if the commodity stripped NDEF data matched with the first identification data exists in the database, the third legality verification processing is successful.
5. The method for processing traceability data of claim 1, wherein the traceability processing of third commodity information according to the first NDEF data to generate corresponding third traceability data specifically comprises:
inquiring a preset commodity label binding database according to the first NDEF data to obtain commodity box RFID identification data and commodity manufacturer identification data bound with the commodity box RFID binding database to generate corresponding second RFID identification data and third manufacturer identification data;
inquiring a preset manufacturer database according to the third manufacturer identification data to obtain manufacturer information data corresponding to the third manufacturer identification data to generate third manufacturer information data;
Inquiring a preset boxed commodity circulation database according to the second RFID identification data, obtaining a boxed circulation data set corresponding to the second RFID identification data, and generating a third boxed circulation data set;
querying a preset carton package circulation database according to the first NDEF data to obtain a carton package circulation data set corresponding to the carton package circulation database, and generating a second carton package circulation data set;
and forming the third traceability data by the third manufacturer information data, the third boxed circulation data set and the second striped circulation data set.
6. The method for processing traceable data according to claim 1, wherein performing a fourth validity verification process according to the first two-dimensional code data specifically includes:
inquiring a preset commodity label binding database according to the first two-dimensional code data, and if no commodity box-packed two-dimensional code data matched with the first two-dimensional code data exists in the database, failing to verify the fourth validity; and if the two-dimensional code data matched with the first two-dimensional code data exist in the database, the fourth validity verification processing is successful.
7. The method for processing traceability data as claimed in claim 1, wherein the performing traceability processing on fourth commodity information according to the first two-dimensional code data to generate corresponding fourth traceability data specifically comprises:
Inquiring a preset commodity label binding database according to the first two-dimensional code data to obtain commodity box-packed RFID identification data, commodity strip-packed NFC identification data and commodity manufacturer identification data which are bound with the first two-dimensional code data so as to generate corresponding third RFID identification data, first NFC identification data and fourth manufacturer identification data;
inquiring a preset manufacturer database according to the fourth manufacturer identification data, and acquiring manufacturer information data corresponding to the preset manufacturer database to generate fourth manufacturer information data;
inquiring a preset boxed commodity circulation database according to the third RFID identification data, obtaining a boxed circulation data set corresponding to the third RFID identification data, and generating a fourth boxed circulation data set;
inquiring a preset strip commodity circulation database according to the first NFC identification data to obtain a strip circulation data set corresponding to the first NFC identification data, and generating a third strip circulation data set;
inquiring a preset boxed commodity circulation database according to the first two-dimensional code data to obtain a boxed circulation data set corresponding to the first two-dimensional code data, and generating a first boxed circulation data set;
and the fourth traceability data is formed by the fourth manufacturer information data, the fourth boxed circulation data set, the third boxed circulation data set and the first boxed circulation data set.
8. An electronic device, comprising: a memory, a processor, and a transceiver;
the processor is used for being coupled with the memory, reading and executing the instructions in the memory to realize the method steps of any one of claims 1 to 7;
the transceiver is coupled to the processor, and the processor controls the transceiver to transmit and receive messages.
9. A computer-readable storage medium having stored thereon computer instructions which, when executed by a computer, cause the computer to perform the method of any of claims 1-7.
CN202111406263.9A 2021-11-24 2021-11-24 Method for processing tracing data Active CN114140133B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202111406263.9A CN114140133B (en) 2021-11-24 2021-11-24 Method for processing tracing data

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202111406263.9A CN114140133B (en) 2021-11-24 2021-11-24 Method for processing tracing data

Publications (2)

Publication Number Publication Date
CN114140133A CN114140133A (en) 2022-03-04
CN114140133B true CN114140133B (en) 2022-06-14

Family

ID=80391349

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202111406263.9A Active CN114140133B (en) 2021-11-24 2021-11-24 Method for processing tracing data

Country Status (1)

Country Link
CN (1) CN114140133B (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN116911339B (en) * 2023-07-13 2024-04-16 芯电智联(北京)科技有限公司 Prestressed steel cylinder concrete pipe tracing method based on radio frequency tag

Family Cites Families (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105469132A (en) * 2016-01-13 2016-04-06 上海众烁信息科技有限公司 Duplicate coding internet of things traceability security label and 2-dimensional bar code security traceability method
CN106548354A (en) * 2016-10-10 2017-03-29 广州智慧城市发展研究院 A kind of commodity traceability system
CN110046917A (en) * 2019-04-22 2019-07-23 江苏万佳科技开发股份有限公司 A kind of product false proof traceability system and anti-fake source tracing method
CN113627958B (en) * 2021-08-25 2023-09-26 芯电智联(北京)科技有限公司 NFC anti-counterfeiting tracing method and server

Also Published As

Publication number Publication date
CN114140133A (en) 2022-03-04

Similar Documents

Publication Publication Date Title
US11429921B2 (en) Tracking shipments with a local and remote blockchain
CN102831529B (en) A kind of commodity information identification method based on radio frequency and system
CN108595980B (en) Method and device for protecting commodity traceability information
CN111414429B (en) Block chain-based commodity information management method, electronic equipment and storage medium
CN113627958B (en) NFC anti-counterfeiting tracing method and server
CN109951427B (en) Product tracing method and system and cloud tracing platform
US9473303B2 (en) Method and system for product authentication
CN102855574A (en) Method and system for identifying commodity information based on NFC (Near Field Communication)
CN102063633A (en) Anti-counterfeiting method based on radio frequency identification technology
CN114140132B (en) Anti-counterfeiting tracing system
CN104240095A (en) Two-dimensional code anti-fake method and system based on domain name
CN102855577A (en) Multiple merchandise anti-counterfeiting verification method based on cloud computing
Saeed et al. An NFC based consumer-level counterfeit detection framework
US10911242B2 (en) Authentication in distribution systems
CN202870900U (en) NFC (Near Field Communication)-based commodity information identification system
CN109360008B (en) Product anti-counterfeiting authentication updating method and system
CN111414430A (en) Commodity information management method based on block chain, electronic device and storage medium
KR100512064B1 (en) contactless type communication tag and portable tag reader for verifying a genuine article
CN114186653B (en) Method, device, equipment and storage medium for performing logistics electronic contract
CN114140133B (en) Method for processing tracing data
CN116029745A (en) Digital label anti-counterfeiting tracing method, device and system based on blockchain
CN105427112A (en) Encryption two-dimension code technology-based label anti-fake system and method thereof
CN106339888A (en) RFID wine product all-round anti-fake monitoring method
JP2020197937A (en) Authenticity determining apparatus, authenticity determining system, and authenticity determining method
CN109886685A (en) A kind of commodity tracing system and method based on block chain

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