CN115796217B - NFC anti-counterfeiting label activation system - Google Patents

NFC anti-counterfeiting label activation system Download PDF

Info

Publication number
CN115796217B
CN115796217B CN202211415277.1A CN202211415277A CN115796217B CN 115796217 B CN115796217 B CN 115796217B CN 202211415277 A CN202211415277 A CN 202211415277A CN 115796217 B CN115796217 B CN 115796217B
Authority
CN
China
Prior art keywords
tag
data
card reader
nfc
record
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
CN202211415277.1A
Other languages
Chinese (zh)
Other versions
CN115796217A (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 CN202211415277.1A priority Critical patent/CN115796217B/en
Publication of CN115796217A publication Critical patent/CN115796217A/en
Application granted granted Critical
Publication of CN115796217B publication Critical patent/CN115796217B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • 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
    • Y02DCLIMATE CHANGE MITIGATION TECHNOLOGIES IN INFORMATION AND COMMUNICATION TECHNOLOGIES [ICT], I.E. INFORMATION AND COMMUNICATION TECHNOLOGIES AIMING AT THE REDUCTION OF THEIR OWN ENERGY USE
    • Y02D30/00Reducing energy consumption in communication networks
    • Y02D30/70Reducing energy consumption in communication networks in wireless communication networks

Landscapes

  • Cash Registers Or Receiving Machines (AREA)

Abstract

The embodiment of the invention relates to an activation system of an NFC anti-counterfeiting label, which comprises the following components: the system comprises a first driving belt, a first card reader, a second card reader, a third card reader, a fourth card reader, a fifth card reader, a first server and a first encryption machine. The system can achieve the purposes of shortening the average processing period of a single NFC label and improving the activation quantity of the label in unit time.

Description

NFC anti-counterfeiting label activation system
Technical Field
The invention relates to the technical field of data processing, in particular to an activation system of an NFC anti-counterfeiting label.
Background
The production activity of the near field communication (Near Field Communication, NFC) anti-counterfeiting label comprises a production data activation link, and the production data activation link is responsible for activating a batch of NFC anti-counterfeiting labels one by one. In activating the tags one by one, the correctness of all known production data (such as tag identification data, tag application data, tag key data, etc.) on the tags is verified, and then corresponding activation data (such as tag password and tag activation flag, etc.) is written to the tags. When the current label manufacturer activates the labels one by one in the production data activation link, a single card reader activation mode is adopted for processing conventionally. The single-card reader activation mode is that an NFC card reader is preset on a production transmission belt, a batch of single labels of NFC anti-counterfeiting labels are transmitted to the NFC card reader one by the transmission belt according to preset transmission speed and pause time, known production data verification and activation data writing operation are carried out on the current label by the NFC card reader in a single pause period, and the next label is transmitted to the NFC card reader to be stopped when the pause period is finished until the last label of the batch of NFC anti-counterfeiting labels is activated. It has been found through practice that this single reader activation approach does not result in a high number of tag activations that can be accomplished per unit time because only one NFC reader is operated in a single step.
Disclosure of Invention
The invention aims at overcoming the defects of the prior art, and provides an activation system of an NFC anti-counterfeiting label, which comprises the following components: the system comprises a first driving belt, a first card reader, a second card reader, a third card reader, a fourth card reader, a fifth card reader, a first server and a first encryption machine. The system can process the five stages executed on a single NFC card reader: (1) a tag identification data verification processing step, (2) a tag application data verification processing step, (3) a tag key data verification processing step, (4) a tag password data writing processing step and (5) a tag activation flag data writing processing step, and decomposing the tag identification data verification processing step and the tag activation flag data writing processing step to five card readers for executing respectively; therefore, after five NFC labels are transmitted on the first transmission belt, synchronous operation of different stages of processing steps of the five NFC labels can be realized, the processing effect is similar to synchronous operation of five stages of processing steps of one NFC label, and the processing effect is equivalent to shortening the average processing period of a single NFC label; that is, the system of the invention can achieve the purposes of shortening the average processing period of a single NFC label and improving the activation quantity of the label in unit time.
To achieve the above object, an embodiment of the present invention provides an activation system of an NFC security tag, where the system includes: the device comprises a first transmission belt, a first card reader, a second card reader, a third card reader, a fourth card reader, a fifth card reader, a first server and a first encryption machine;
placing an NFC label on the first transmission belt; five NFC card readers are sequentially and equidistantly arranged above the first transmission belt and are respectively the first, second, third, fourth and fifth card readers, and the arrangement distance between adjacent card readers in the first, second, third, fourth and fifth card readers is a preset single-step transmission distance; the first, second, third, fourth and fifth card readers are respectively connected with the first server; the first server is connected with the first encryption machine;
the first transmission belt is used for sequentially passing the NFC label under the first, second, third, fourth and fifth card readers according to a preset first transmission speed along the transmission direction from the first card reader to the fifth card reader; and pausing at the transmission starting moment according to the preset single-step pause time; and in the transmission process, one single step pause is performed every time the single step transmission interval is transmitted, and the pause time of each single step pause is set as the single step pause time; at most one NFC label is stopped under the first, second, third, fourth or fifth card readers when the first transmission belt is stopped at a single step;
The first card reader is used for carrying out label identification data verification processing on the NFC label stopped under the card reader in a linkage way with the first server;
the second card reader is used for carrying out label application data verification processing on the NFC label stopped under the card reader in a linkage way with the first server;
the third card reader is used for carrying out tag key data verification processing on the NFC tag which is stopped below the card reader in a linkage way with the first server and the first encryption machine;
the fourth card reader is used for carrying out tag password data writing processing on the NFC tag which is stopped under the card reader in a linkage way with the first server;
and the fifth card reader is used for carrying out tag activation mark data writing processing on the NFC tag stopped under the card reader in linkage with the first server.
Preferably, a first tag database is preset on the first server side; the first tag database comprises a plurality of first tag records; the first tag record comprises a first tag identification data field, a first tag application data field, a first tag password data field, a first tag sequence number field and a first tag state field; each first tag record corresponds to one NFC tag, the first tag identification data field and the first tag application data field of each first tag record are respectively tag identification data and tag application data which are written on the corresponding NFC tag, and the first tag password data field of each first tag record is tag password data to be written on the corresponding NFC tag; initializing the first tag sequence number field of each first tag record to be null; the first tag status field of each first tag record comprises a first status bit, a second status bit, a third status bit, a fourth status bit and a fifth status bit, wherein the first, second, third, fourth and fifth status bits comprise a first status bit mark and a second status bit mark, and the first, second, third, fourth and fifth status bits are preset as the second status bit mark by default;
The first encryptor side presets a second tag database; the second tag database includes a plurality of second tag records; the second tag record includes a second tag identification data field and a first tag key data field; each second tag record corresponds to one NFC tag, and the second tag identification data field and the first tag key data field of each second tag record are tag identification data and tag key data written in the corresponding NFC tag respectively;
the first card reader is further used for initializing a first serial number to be 0 at the transmission starting moment of the first transmission belt; the second card reader is further used for initializing a second serial number to be 0 at the transmission starting moment of the first transmission belt; the third card reader is further used for initializing a third serial number to be 0 at the transmission starting moment of the first transmission belt; the fourth card reader is further used for initializing a fourth serial number to be 0 at the transmission starting moment of the first transmission belt; the fifth card reader is further configured to initialize a fifth serial number to be 0 at a transmission start time of the first transmission belt.
Preferably, the first card reader is specifically configured to detect, during verification processing of the tag identification data, whether the NFC tag is stopped under the card reader in each single-step stopping process of the first driving belt, so as to generate a corresponding first detection result; if the first detection result is that the first detection result exists, adding 1 to the first sequence number; sending a first tag identification reading instruction to the NFC tag which is stopped downwards by the card reader, and receiving first identification data returned by the NFC tag; and sending the first card reader data carrying the first serial number and the first identification data to the first server.
Preferably, the first server is specifically configured to receive the first card reader data sent by the first card reader during verification processing of the tag identification data; extracting the first serial number and the first identification data from the first card reader data; querying the first tag database, and taking the first tag record matched with the first tag identification data field and the first identification data in the first tag database as a corresponding current matching record; and when the current matching record is not empty, setting the first tag sequence number field of the current matching record as the first sequence number, and updating the first status bit of the first tag status field of the current matching record as a first status bit mark.
Preferably, the second card reader is specifically configured to detect, in each single-step pause process of the first driving belt, whether the NFC tag is in a pause under the card reader when the tag applies data verification processing, so as to generate a corresponding second detection result; if the second detection result is that the second detection result exists, adding 1 to the second sequence number; sending a first tag application reading instruction to the NFC tag which is stopped downwards by the card reader, and receiving first application data returned by the NFC tag; and sending second card reader data carrying the second serial number and the first application data to the first server.
Preferably, the first server is specifically configured to receive the second card reader data sent by the second card reader when the tag applies data verification processing; extracting the second serial number and the first application data from the second card reader data; querying the first tag database, and taking the first tag record in the first tag database, in which the first tag sequence number field is matched with the second sequence number and the first tag application data field is matched with the first application data, as a corresponding current matching record; and updating the second status bit of the first tag status field of the current matching record to a first status bit flag when the current matching record is not empty.
Preferably, the third card reader is specifically configured to detect, during verification processing of the tag key data, whether the NFC tag is stopped under the card reader in each single-step stopping process of the first driving belt, so as to generate a corresponding third detection result; if the third detection result is that the third detection result exists, adding 1 to the third sequence number; sending a first tag key reading instruction to the NFC tag with the card reader stopped downwards, and receiving first key data returned by the NFC tag; and calling a local random number module to generate a random number as a corresponding first random number; performing data encryption processing on the first random number by using the first key data based on a preset encryption algorithm to generate corresponding first encrypted data; and transmitting third card reader data carrying the third serial number, the first random number and the first encrypted data to the first server.
Preferably, the first server is specifically configured to receive the third card reader data sent by the third card reader during verification processing of the tag key data; extracting the third serial number, the first random number and the first encrypted data from the third card reader data; querying the first tag database, and taking the first tag record matched with the first tag sequence number field and the third sequence number in the first tag database as a corresponding current matching record; when the current matching record is not empty, extracting the first tag identification data field of the current matching record as corresponding current identification data; the first data verification instruction carrying the current identification data, the first random number and the first encrypted data is sent to the first encryption machine, and a first data verification state returned by the first encryption machine is received; and updating the third status bit of the first tag status field of the current matching record to a first status bit flag when the first data verification status is a successful status.
Preferably, the first encryptor is specifically configured to receive the first data verification instruction sent by the first server during the verification processing of the tag key data; extracting the current identification data, the first random number and the first encrypted data from the first data verification instruction; inquiring the second tag database, and recording the second tag record matched with the current identification data in the second tag identification data field in the second tag database as a corresponding current record; when the current record is not empty, extracting the first tag key data field of the current record as a corresponding current key; based on a decryption algorithm matched with an encryption algorithm preset by the third card reader, performing data decryption processing on the first encrypted data by using the current key to generate corresponding first plaintext data; setting the corresponding first data verification state as a successful state when the first plaintext data is matched with the first random number; and sending the first data verification state back to the first server.
Preferably, the fourth card reader is specifically configured to detect, during writing processing of the tag password data, whether the NFC tag is stopped under the card reader in each single step stopping process of the first driving belt, so as to generate a corresponding fourth detection result; if the fourth detection result is that the fourth detection result exists, adding 1 to the fourth sequence number; transmitting the data of the fourth card reader carrying the fourth serial number to the first server, and receiving the first password data returned by the first server; sending a first tag password writing instruction carrying the first password data to the NFC tag with the card reader down pause, and receiving a first instruction state returned by the NFC tag; when the first instruction state is a successful state, a first label password reading instruction is sent to the NFC label, and second password data returned by the NFC label is received; and transmitting fourth second card reader data carrying the fourth serial number and the second password data to the first server.
Preferably, the first server is specifically configured to identify, when the tag password data is written, current card reader data sent by the fourth card reader;
When the current card reader data is the fourth first card reader data, extracting the fourth serial number from the fourth first card reader data; querying the first tag database, and taking the first tag record matched with the first tag sequence number field and the fourth sequence number in the first tag database as a corresponding current matching record; if the current matching record is not empty, extracting the first tag password data field of the current matching record as corresponding first password data, and sending the first password data back to the fourth card reader;
when the current card reader data is the fourth second card reader data, the fourth serial number and the second password data are extracted from the fourth second card reader data; querying the first tag database, and taking the first tag record in the first tag database, in which the first tag serial number field is matched with the fourth serial number and the first tag password data field is matched with the second password data, as a corresponding current matching record; and updating the fourth status bit of the first tag status field of the current matching record to a first status bit flag when the current matching record is not empty.
Preferably, the fifth card reader is specifically configured to detect, during the writing process of the tag activation flag data, whether the NFC tag is stopped under the card reader in each single step stopping process of the first driving belt, so as to generate a corresponding fifth detection result; if the fifth detection result is that the fifth detection result exists, adding 1 to the fifth sequence number; transmitting fifth card reader data carrying the fifth serial number to the first server, and receiving a first authorization state returned by the first server; when the first authorization state is an authorization passing state, a first tag activation instruction is sent to the NFC tag which is stopped downwards by the card reader, and a second instruction state returned by the NFC tag is received; when the second instruction state is a successful state, a first activation state reading instruction is sent to the NFC tag, and first activation flag data returned by the NFC tag is received; and when the first activation flag data is matched with a preset activation flag, transmitting fifth second card reader data carrying the fifth serial number to the first server.
Preferably, the first server is specifically configured to identify, when the tag activation flag data is written, current card reader data sent by the fifth card reader;
When the current card reader data is the fifth card reader data, extracting the fifth serial number from the fifth card reader data; inquiring the first tag database, and taking the first tag record matched with the first tag sequence number field and the fifth sequence number in the first tag database as a corresponding current matching record; and when the current matching record is not empty, identifying whether the first, second, third and fourth status bits of the first tag status field of the current matching record are all first status bit flags; if the first, second, third and fourth status bits are all the first status bit marks, setting the corresponding first authorization status as an authorization passing status, and sending the first authorization status back to the fifth card reader;
when the current card reader data is the fifth second card reader data, extracting the fifth serial number from the fifth second card reader data; inquiring the first tag database, and taking the first tag record matched with the first tag sequence number field and the fifth sequence number in the first tag database as a corresponding current matching record; and when the current matching record is not empty, setting the fifth status bit of the first tag status field of the current matching record as a first status bit flag.
The embodiment of the invention provides an activation system of an NFC anti-counterfeiting label, which comprises the following steps: the system comprises a first driving belt, a first card reader, a second card reader, a third card reader, a fourth card reader, a fifth card reader, a first server and a first encryption machine. The system can process the five stages executed on a single NFC card reader: (1) a tag identification data verification processing step, (2) a tag application data verification processing step, (3) a tag key data verification processing step, (4) a tag password data writing processing step and (5) a tag activation flag data writing processing step, and decomposing the tag identification data verification processing step and the tag activation flag data writing processing step to five card readers for executing respectively; therefore, after five NFC labels are transmitted on the first transmission belt, synchronous operation of different stages of processing steps of the five NFC labels can be realized, the processing effect is similar to synchronous operation of five stages of processing steps of one NFC label, and the processing effect is equivalent to shortening the average processing period of a single NFC label; that is, the average processing period of a single NFC label is shortened, and the activation quantity of the label in unit time is increased through the system.
Drawings
Fig. 1 is a schematic structural diagram of an activation system of an NFC anti-counterfeit label according to an embodiment of the present invention.
Detailed Description
In order to make the objects, technical solutions and advantages of the present invention more apparent, the present invention will be described in further detail below with reference to the accompanying drawings, and it is apparent that the described embodiments are only some embodiments of the present invention, not all embodiments. All other embodiments, which can be made by those skilled in the art based on the embodiments of the invention without making any inventive effort, are intended to be within the scope of the invention.
Fig. 1 is a schematic structural diagram of an activation system of an NFC anti-counterfeit label according to an embodiment of the present invention, where, as shown in fig. 1, the activation system of an NFC anti-counterfeit label includes: a first drive belt 10, a first reader 11, a second reader 12, a third reader 13, a fourth reader 14, a fifth reader 15, a first server 16, and a first encryptor 17.
The first belt 10 is provided with an NFC tag 2 to be activated; five NFC card readers, namely a first card reader 11, a second card reader 12, a third card reader 13, a fourth card reader 14 and a fifth card reader 15, are sequentially and equidistantly arranged above the first transmission belt 10; the arrangement space between adjacent card readers in the first card reader 11, the second card reader 12, the third card reader 13, the fourth card reader 14 and the fifth card reader 15 is a preset single-step transmission space; the first card reader 11, the second card reader 12, the third card reader 13, the fourth card reader 14 and the fifth card reader 15 are respectively connected with the first server 16; the first server 16 is connected to a first encryptor 17.
The first driving belt 10 is used for sequentially passing the NFC tag 2 under the first card reader 11, the second card reader 12, the third card reader 13, the fourth card reader 14 and the fifth card reader 15 at a preset first driving speed along the driving direction from the first card reader 11 to the fifth card reader 15; and pausing at the transmission starting moment according to the preset single-step pause time; and in the transmission process, one single step pause is performed every single step transmission interval, and the pause time of each single step pause is set as the single step pause time; at most one NFC tag 2 is stopped under the first reader 11, the second reader 12, the third reader 13, the fourth reader 14 and the fifth reader 15 at each single pause of the first belt 10.
It should be noted that, a first tag database is preset on the first server 16 side; the first tag database comprises a plurality of first tag records; the first tag record includes a first tag identification data field, a first tag application data field, a first tag password data field, a first tag sequence number field, and a first tag status field; each first tag record corresponds to one NFC tag 2 to be activated, the first tag identification data field and the first tag application data field of each first tag record are respectively tag identification data and tag application data written in the corresponding NFC tag 2, and the first tag password data field of each first tag record is tag password data to be written in the corresponding NFC tag 2; the first tag sequence number field of each first tag record is initialized to be empty; the first tag status field of each first tag record includes a first status bit, a second status bit, a third status bit, a fourth status bit, and a fifth status bit, each of the first, second, third, fourth, and fifth status bits including a first status bit flag and a second status bit flag, the first, second, third, fourth, and fifth status bits default to be preset as the second status bit flag.
It should be noted that, a second tag database is preset on the first encryptor 17 side; the second tag database comprises a plurality of second tag records; the second tag record includes a second tag identification data field and a first tag key data field; each second tag record corresponds to an activated NFC tag 2, and the second tag identification data field and the first tag key data field of each second tag record are tag identification data and tag key data written on the corresponding NFC tag 2, respectively.
Here, in the embodiment of the present invention, when a batch of NFC tags 2 to be activated is to be activated, tag identification data, tag application data and tag key data that have been written on the batch of NFC tags are known each time, where the tag identification data is UID (User Identification) data of the NFC tag and the tag application data is NDEF (NFC Data Exchange Format) data of the NFC tag; in addition, tag password data to be written to the batch of NFC tags is also known;
before the batch activation, a corresponding first tag database is created on the first server 16 side for NFC tags of the current batch, a corresponding first tag record is created in the first tag database for each NFC tag 2, and a first tag identification data field, a first tag application data field and a first tag password data field of each first tag record are set based on tag identification data, tag application data and tag password data known by each tag; in addition, the embodiment of the invention creates a first label serial number field initialized to be empty in each first label record for the subsequent activation processing; a first tag status field containing five status bits (first, second, third, fourth and fifth status bits) is also created in each first tag record for subsequent activation processing, where the five status bits include two status flag values (first and second status bit flags), and the embodiment of the present invention specifies that the five status bits correspond to five stages of the activation processing steps of NFC tag 2 respectively: (1) the embodiment of the invention provides that when the first, second, third, fourth or fifth status bit is a second status bit mark, the corresponding processing step is not successfully ended, otherwise, the corresponding processing step is successfully ended if the first, second, third, fourth or fifth status bit is a first status bit mark;
In addition, before the batch activation, a corresponding second tag database is also created on the first encryptor 17 side for the NFC tags in the current batch, a corresponding second tag record is created in the second tag database for each NFC tag 2, and the second tag identification data field and the first tag key data field of each second tag record are set based on the tag identification data and the tag key data known by each tag.
The first card reader 11 is used for initializing the first serial number to 0 at the start time of the transmission of the first transmission belt 10. The second card reader 12 is used to initialize the second serial number 0 at the start of the drive of the first drive belt 10. The third card reader 13 is used for initializing the third serial number to 0 at the start of the transmission of the first transmission belt 10. The fourth card reader 14 is used to initialize the fourth serial number 0 at the start of the drive of the first drive belt 10. The fifth card reader 15 is used for initializing the fifth serial number to 0 at the start of the transmission of the first transmission belt 10.
Here, in the embodiment of the present invention, the five NFC readers, that is, the first reader 11, the second reader 12, the third reader 13, the fourth reader 14, and the fifth reader 15, respectively correspond to one NFC tag serial number, that is, the first, second, third, fourth, and fifth serial numbers; because each NFC tag 2 to be activated sequentially passes through the five NFC readers by the transmission of the first transmission belt 10, the first transmission belt 10 of the embodiment of the present invention can ensure that each NFC tag 2 can perform a single-step pause with a preset single-step pause duration every time it reaches under one NFC reader, and further, the subsequent steps can further know that each NFC reader performs a 1 adding operation on the corresponding first, second, third, fourth or fifth serial number every time it detects that the NFC tag 2 under one new pause reaches under the NFC reader, so that the first, second, third, fourth and fifth serial numbers generated when the same NFC tag 2 sequentially reaches the first, second, third, fourth and fifth readers 11, 13, 14 and 15 are the same serial number value.
The first card reader 11 is further used for performing tag identification data verification processing on the NFC tag 2 stopped under the card reader in linkage with the first server 16.
In a specific implementation manner of the embodiment of the present invention, the first card reader 11 is specifically configured to detect, during each single step pause process of the first belt 10, whether the NFC tag 2 is in a pause under the card reader to generate a corresponding first detection result when tag identification data verification is processed; if the first detection result is that the first detection result exists, adding 1 to the first sequence number; the method comprises the steps that a first tag identification reading instruction is sent to an NFC tag 2 which is stopped downwards by a card reader, and first identification data sent back by the NFC tag 2 is received; and transmits the first card reader data carrying the first serial number and the first identification data to the first server 16.
In a specific implementation manner of the embodiment of the present invention, the first card reader 11 is specifically configured to, when detecting whether there is a pause in the NFC tag 2 under the card reader, poll whether there is a new NFC tag 2 entering into the space below, and when finding that there is a new entering NFC tag 2, finish polling, establish connection with the current NFC tag 2, and set a corresponding first detection result as present. Here, the processing flow of polling the NFC reader and the NFC tag is a public standard flow, and specific reference may be made to standards such as ISO14443, ISO15693, ISO18092 or ISO21481, which are not further described herein. It should be noted that, the embodiment of the present invention further supports another sensor-based NFC tag detection mode, in which the first card reader 11 of the embodiment of the present invention further includes a first photosensitive sensor; the first photosensitive sensor is used for detecting whether an object is stopped below the first card reader 11, and sending a corresponding first signal to the first card reader 11 once the object is stopped; the first card reader 11 is configured to set the corresponding first detection result to be present when receiving the first signal sent by the first photosensitive sensor.
The NFC tag 2 according to the embodiment of the present invention supports a plurality of operation instructions for reading from and writing to a tag, such as the first tag identification reading instruction described above, and the first tag application reading instruction, the first tag key reading instruction, the first tag password writing instruction, the first tag password reading instruction, the first tag activation instruction, the first activation state reading instruction, and the like mentioned below. When receiving the first tag identification reading instruction sent by the first card reader 11, the NFC tag 2 extracts the locally stored tag identification data as corresponding first identification data and sends the corresponding first identification data back to the first card reader 11.
In another specific implementation manner of the embodiment of the present invention, the first server 16 is specifically configured to receive the first card reader data sent by the first card reader 11 during verification processing of the tag identification data; extracting a first serial number and first identification data from the first card reader data; inquiring a first tag database, and taking a first tag record matched with first tag identification data fields and first identification data in the first tag database as a corresponding current matching record; and when the current matching record is not empty, setting a first tag sequence number field of the current matching record as a first sequence number, and updating a first state bit of a first tag state field of the current matching record as a first state bit mark.
Here, if the current matching record is not empty, it indicates that there is a first tag record matching the first identification data in the first tag database, that is, the verification result of the tag identification of the NFC tag 2 currently under the first card reader 11 at the front end is successful, that is, the tag identification data verification process is successful, where the first server 16 sets the first tag sequence number field of the current matching record to the first sequence number, and updates the first status bit of the first tag status field to the first status bit flag.
The second card reader 12 is further configured to perform tag application data verification processing on the NFC tag 2 stopped under the card reader in linkage with the first server 16.
In another specific implementation manner of the embodiment of the present invention, the second card reader 12 is specifically configured to detect, during each single step pause process of the first belt 10, whether the NFC tag 2 is in a pause under the card reader to generate a corresponding second detection result when the tag application data verification process is performed; if the second detection result is that the second detection result exists, adding 1 to the second serial number; the method comprises the steps that a first tag application reading instruction is sent to an NFC tag 2 which is stopped downwards by a card reader, and first application data returned by the NFC tag 2 is received; and transmits second card reader data carrying the second serial number and the first application data to the first server 16.
Here, the processing manner of detecting whether the NFC tag 2 has a pause under the card reader by the second card reader 12 is similar to the processing manner of detecting whether the NFC tag 2 has a pause under the card reader by the first card reader 11, and two detection manners are also supported: the detection mode of the NFC card reader for polling the NFC tag and the detection mode based on the photosensitive sensor are not repeatedly described herein; it should be noted that, when the second detection result is presence, it indicates that the second card reader 12 has established a connection with the NFC tag 2 that is stopped under the card reader.
When receiving the first tag application reading instruction sent by the second card reader 12, the NFC tag 2 in the embodiment of the present invention extracts locally stored tag application data as corresponding first application data and sends the first application data back to the second card reader 12.
In another specific implementation manner of the embodiment of the present invention, the first server 16 is specifically configured to receive the second card reader data sent by the second card reader 12 during the verification process of the tag application data; extracting a second serial number and first application data from the second card reader data; inquiring a first tag database, and taking a first tag record in which a first tag sequence number field in the first tag database is matched with a second sequence number and a first tag application data field is matched with first application data as a corresponding current matching record; and updating the second status bit of the first tag status field of the current matching record to the first status bit flag when the current matching record is not empty.
Here, it can be known from the foregoing that when the first card reader 11 and the first server 16 are linked to perform the tag identification data verification process on one NFC tag 2, the first tag sequence number field of the first tag record corresponding to the one NFC tag 2 in the first tag database is set to be the corresponding first sequence number, and the first sequence number and the second sequence number corresponding to the same NFC tag 2 are equal from the foregoing, so when the first server 16 receives the second card reader data sent by the second card reader 12, the corresponding current matching record, which is the corresponding first tag record corresponding to the one NFC tag 2, can be located by querying the first tag database based on the second sequence number and the first application data; if the current matching record is not empty, it indicates that the first tag record corresponding to the NFC tag 2 is successfully located and the application data is successfully compared, which means that the tag application data verification process is successful, so the first server 16 updates the second status bit of the first tag status field of the current matching record to the first status bit flag.
The third card reader 13 is further used for performing tag key data verification processing on the NFC tag 2 stopped below the card reader in linkage with the first server 16 and the first encryptor 17.
In another specific implementation manner of the embodiment of the present invention, the third card reader 13 is specifically configured to detect, during verification processing of tag key data, whether the NFC tag 2 is stopped under the card reader in each single step stopping process of the first belt 10, so as to generate a corresponding third detection result; if the third detection result is that the third detection result exists, adding 1 to the third sequence number; the method comprises the steps that a first tag key reading instruction is sent to an NFC tag 2 which is stopped downwards by a card reader, and first key data sent back by the NFC tag 2 are received; and calling a local random number module to generate a random number as a corresponding first random number; performing data encryption processing on the first random number by using first key data based on a preset encryption algorithm to generate corresponding first encrypted data; and transmits third card reader data carrying the third serial number, the first random number and the first encrypted data to the first server 16.
Here, the processing manner of detecting whether the NFC tag 2 has a pause under the card reader by the third card reader 13 is similar to the processing manner of detecting whether the NFC tag 2 has a pause under the card reader by the first card reader 11, and two detection manners are also supported: the detection mode of the NFC card reader for polling the NFC tag and the detection mode based on the photosensitive sensor are not repeatedly described herein; it should be noted that, when the third detection result is that there is a third detection result, it is indicated that the third card reader 13 has established a connection with the NFC tag 2 that is stopped under the card reader.
When receiving the first tag key reading instruction sent by the third card reader 13, the NFC tag 2 in the embodiment of the present invention extracts the locally stored tag key data as corresponding first key data and sends the first key data back to the third card reader 13. It should be noted that, in the embodiment of the present invention, the NFC tag 2 only responds to the first tag key reading instruction to return the locally stored tag key data to the card reader when the locally stored tag activation flag data (the data includes an activated state and an inactivated state, and is default to the inactivated state) is not in the activated state, and does not respond to the instruction if the locally stored tag activation flag data of the NFC tag 2 is in the activated state. Currently, since the activation of the NFC tag 2 has not been completed, the locally stored tag activation flag data is still in a default inactive state, so that the locally stored tag key data may be extracted as corresponding first key data back to the third reader 13. After obtaining the first key data, the third card reader 13 performs a random number generation process based on a random number module implemented by self-contained hardware or software to obtain a random number, i.e. a first random number; performing data encryption processing on the first random number by using first key data based on a preset encryption algorithm to generate corresponding first encrypted data, wherein the preset encryption algorithm defaults to a national encryption SM1 encryption algorithm; and then, the third card reader data carrying the third serial number, the first random number and the first encrypted data is sent to the first server 16, so that the first server 16 can verify the key data of the NFC tag 2 at the server side.
In another specific implementation manner of the embodiment of the present invention, the first server 16 is specifically configured to receive the third card reader data sent by the third card reader 13 during verification processing of the tag key data; extracting a third serial number, a first random number and first encrypted data from the third card reader data; inquiring a first tag database, and taking a first tag record matched with a first tag sequence number field and a third sequence number in the first tag database as a corresponding current matching record; when the current matching record is not empty, extracting a first tag identification data field of the current matching record as corresponding current identification data; the first data verification instruction carrying the current identification data, the first random number and the first encrypted data is sent to the first encryptor 17, and the first data verification state returned by the first encryptor 17 is received; and when the first data verification state is a successful state, updating a third state bit of the first tag state field of the current matching record to a first state bit mark.
In another specific implementation manner of the embodiment of the present invention, the first encryptor 17 is specifically configured to receive a first data verification instruction sent by the first server 16 during verification processing of tag key data; extracting current identification data, a first random number and first encrypted data from the first data verification instruction; inquiring a second tag database, and recording a second tag record matched with the current identification data in a second tag identification data field in the second tag database as a corresponding current record; when the current record is not empty, extracting a first tag key data field of the current record to serve as a corresponding current key; and based on a decryption algorithm matched with an encryption algorithm preset by the third card reader 13, performing data decryption processing on the first encrypted data by using the current key to generate corresponding first plaintext data; setting a corresponding first data verification state as a successful state when the first plaintext data is matched with the first random number; and returns the first data verification status to the first server 16.
Here, it can be known from the foregoing that when the first card reader 11 and the first server 16 are linked to perform the tag identification data verification process on one NFC tag 2, the first tag sequence number field of the first tag record corresponding to the one NFC tag 2 in the first tag database is set to the corresponding first sequence number, and the first sequence number and the third sequence number corresponding to the same NFC tag 2 are equal from the foregoing, so when the first server 16 receives the third card reader data sent by the third card reader 13, the corresponding current matching record, which is the corresponding first tag record corresponding to the one NFC tag 2, can be located by querying the first tag database based on the third sequence number; if the current matching record is not empty, the first label record corresponding to the NFC label 2 is successfully positioned; subsequently, the first server 16 obtains tag identification data of the NFC tag 2, i.e., current identification data, by reading the recorded first tag identification data field, and sends a first data verification instruction carrying the current identification data, the first random number, and the first encrypted data to the first encryptor 17 for performing user key validity verification. After receiving the first data verification instruction, the first encryptor 17 queries the second tag database based on the current identification data in the instruction to locate a second tag record corresponding to the NFC tag 2, namely a current record; the first tag key data field recorded at present is used as tag key data of the NFC tag 2, namely a current key; based on a decryption algorithm which is a national encryption SM1 decryption algorithm and is matched with an encryption algorithm which is a national encryption SM1 encryption algorithm preset by the third card reader 13, performing data decryption processing on the first encrypted data by using a current key to obtain corresponding first plaintext data; if the first plaintext data matches the first random number, it is indicated that the first key data obtained at the third card reader 13 side is identical to the current key stored at the first encryptor 17 side, and at this time, the first encryptor 17 returns a first data verification status set to a successful status to the first server 16. When the first server 16 receives the first data verification state set to the successful state, it confirms that the tag key data verification process of the NFC tag 2 is successful, so that the third status bit of the first tag status field of the current matching record is updated to the first status bit flag.
The fourth card reader 14 is further used for performing tag password data writing processing on the NFC tag 2 stopped below the card reader in linkage with the first server 16.
In another specific implementation manner of the embodiment of the present invention, the fourth card reader 14 is specifically configured to detect, during each single step pause process of the first belt 10, whether the NFC tag 2 is in a pause under the card reader during the tag password data writing process, so as to generate a corresponding fourth detection result; if the fourth detection result is that the fourth detection result exists, adding 1 to the fourth sequence number; transmitting the fourth card reader data carrying the fourth serial number to the first server 16, and receiving the first password data returned by the first server 16; the method comprises the steps that a first tag password writing instruction carrying first password data is sent to an NFC tag 2 which is stopped downwards by a card reader, and a first instruction state returned by the NFC tag 2 is received; when the first instruction state is a successful state, a first label password reading instruction is sent to the NFC label 2, and second password data returned by the NFC label 2 is received; and transmits fourth second card reader data carrying a fourth serial number and second password data to the first server 16.
Here, the processing manner of detecting whether the NFC tag 2 has a pause under the card reader by the fourth card reader 14 is similar to the processing manner of detecting whether the NFC tag 2 has a pause under the card reader by the first card reader 11, and two detection manners are also supported: the detection mode of the NFC card reader for polling the NFC tag and the detection mode based on the photosensitive sensor are not repeatedly described herein; it should be noted that, when the fourth detection result is presence, it indicates that the fourth card reader 14 has established a connection with the NFC tag 2 that is stopped under the card reader.
The fourth card reader 14 of the embodiment of the present invention sends the fourth card reader data carrying the fourth serial number to the first server 16 so as to obtain the tag password data of the NFC tag 2, i.e. the first password data, from the server; after receiving the first password data returned from the first server 16, the fourth card reader 14 writes the first password data to the NFC tag 2 through the first tag password writing instruction. When receiving a first tag password writing instruction sent by the fourth card reader 14, the NFC tag 2 in the embodiment of the present invention extracts first password data from the instruction and stores the first password data into a locally preset password data storage data block, and returns a first instruction state set as a successful state to the fourth card reader 14 when the data storage of the password data storage data block is successful. When receiving the first command status returned from the NFC tag 2 and set to the successful status, the fourth card reader 14 reads the stored tag password data, i.e. the second password data, from the NFC tag 2 by the first tag password reading command. When receiving a first tag password reading instruction sent by the fourth card reader 14, the NFC tag 2 in the embodiment of the present invention performs data reading processing on a locally preset password data storage data block and returns the read data as corresponding second password data to the fourth card reader 14. After receiving the second password data returned from NFC tag 2, fourth reader 14 sends the second password data to first server 16 together with the fourth serial number for background tag password verification.
In another specific implementation manner of the embodiment of the present invention, the first server 16 is specifically configured to identify, during the writing process of the tag password data, the current card reader data sent by the fourth card reader 14;
when the current card reader data is fourth card reader data, a fourth serial number is extracted from the fourth card reader data; inquiring a first tag database, and taking a first tag record matched with a first tag sequence number field and a fourth sequence number in the first tag database as a corresponding current matching record; if the current matching record is not empty, extracting a first tag password data field of the current matching record as corresponding first password data, and sending the first password data back to the fourth card reader 14;
when the current card reader data is fourth second card reader data, fourth serial number and second password data are extracted from the fourth second card reader data; inquiring a first tag database, and taking a first tag record in the first tag database, in which a first tag serial number field is matched with a fourth serial number and a first tag password data field is matched with second password data, as a corresponding current matching record; and when the current matching record is not empty, updating the fourth state bit of the first tag state field of the current matching record to be a first state bit mark.
Here, it can be known from the foregoing that when the first card reader 11 performs the tag identification data verification processing on one NFC tag 2 in linkage with the first server 16, the first tag sequence number field of the first tag record corresponding to the one NFC tag 2 in the first tag database is set to the corresponding first sequence number, and the first sequence number and the fourth sequence number corresponding to the same NFC tag 2 are equal from the foregoing, so when the first server 16 receives the fourth card reader data sent by the fourth card reader 14, the corresponding current matching record, which is the corresponding first tag record corresponding to the one NFC tag 2, can be located by querying the first tag database based on the fourth sequence number; if the current matching record is not empty, it indicates that the positioning of the first tag record corresponding to the NFC tag 2 is successful, and then the first server 16 extracts the first tag password data field of the current matching record as corresponding first password data to send back to the fourth card reader 14;
in addition, when receiving the fourth second card reader data sent by the fourth card reader 14, the first server 16 queries the first tag database through the fourth serial number and the second password data to obtain a corresponding current matching record, and if the current matching record is not empty, it indicates that there is a first tag record corresponding to the NFC tag 2 in the first tag database, and the tag password data in the record is consistent with the uploaded second password data, at this time, the first server 16 confirms that the writing process of the tag password data is successful, so that the fourth status bit of the first tag record corresponding to the NFC tag 2, that is, the first tag status field of the current matching record, is updated to the first status bit flag.
The fifth card reader 15 is further used for performing tag activation flag data writing processing on the NFC tag 2 stopped below the card reader in linkage with the first server 16.
In another specific implementation manner of the embodiment of the present invention, the fifth card reader 15 is specifically configured to detect, during each single step pause process of the first belt 10, whether the NFC tag 2 is in a pause under the card reader during the tag activation flag data writing process, to generate a corresponding fifth detection result; if the fifth detection result is that the fifth detection result exists, adding 1 to the fifth sequence number; transmitting fifth card reader data carrying a fifth serial number to the first server 16, and receiving a first authorization state returned by the first server 16; when the first authorization state is an authorization passing state, a first tag activation instruction is sent to the NFC tag 2 which is stopped down by the card reader, and a second instruction state returned by the NFC tag 2 is received; when the second instruction state is a successful state, a first activation state reading instruction is sent to the NFC tag 2, and first activation flag data sent back by the NFC tag 2 is received; and transmits fifth card reader data carrying a fifth serial number to the first server 16 when the first activation flag data matches a preset activation flag.
Here, the processing manner of detecting whether the NFC tag 2 has a pause under the card reader by the fifth card reader 15 is similar to the processing manner of detecting whether the NFC tag 2 has a pause under the card reader by the first card reader 11, and two detection manners are also supported: the detection mode of the NFC card reader for polling the NFC tag and the detection mode based on the photosensitive sensor are not repeatedly described herein; it should be noted that, when the fifth detection result is that there is a fifth detection result, it is indicated that the fifth card reader 15 has established a connection with the NFC tag 2 that is stopped under the card reader.
The fifth card reader 15 of the embodiment of the present invention sends fifth card reader data carrying a fifth serial number to the first server 16 so as to obtain activation authorization data, i.e. a first authorization state, of the NFC tag 2 from the server; after receiving the first authorization status returned from the first server 16, the fifth card reader 15 locally activates the NFC tag 2 through the first tag activation instruction if the first authorization status is an authorization passing status. When receiving the first tag activation instruction sent by the fifth card reader 15, the NFC tag 2 in the embodiment of the present invention changes the locally stored tag activation flag data from the default inactive state to the activated state, and returns a second instruction state set as a successful state to the fifth card reader 15 when the tag activation flag data is successfully modified. When receiving the second command status returned by the NFC tag 2 and set to the successful status, the fifth card reader 15 reads the stored tag activation flag data, i.e. the first activation flag data, from the NFC tag 2 according to the first activation status reading command. When receiving a first activation state reading instruction sent by the fifth card reader 15, the NFC tag 2 in the embodiment of the present invention sets activation flag data according to locally stored tag activation flag data, if the tag activation flag data is in an inactive state, sets the first activation flag data as a preset inactive flag, if the tag activation flag data is in an activated state, sets the first activation flag data as a preset activation flag, and sends the obtained first activation flag data back to the fifth card reader 15. After receiving the first activation flag data returned from the NFC tag 2, the fifth card reader 15 matches the first activation flag data with a preset activation flag, and if the matching of the first activation flag data with the preset activation flag indicates that the local activation process of the NFC tag 2 is successful, the fifth card reader data carrying the fifth serial number needs to be sent to the first server 16 to inform that the NFC tag at the front end of the background has completed the tag activation.
In another specific implementation manner of the embodiment of the present invention, the first server 16 is specifically configured to identify, during the writing process of the tag activation flag data, current card reader data sent by the fifth card reader 15;
when the current card reader data is fifth card reader data, a fifth serial number is extracted from the fifth card reader data; inquiring a first tag database, and taking a first tag record matched with a first tag sequence number field and a fifth sequence number in the first tag database as a corresponding current matching record; and when the current matching record is not empty, identifying whether the first, second, third and fourth status bits of the first tag status field of the current matching record are all the first status bit marks; if the first, second, third and fourth status bits are all the first status bit flags, setting the corresponding first authorization status as an authorization passing status, and sending the first authorization status back to the fifth card reader 15;
when the current card reader data is fifth second card reader data, a fifth serial number is extracted from the fifth second card reader data; inquiring a first tag database, and taking a first tag record matched with a first tag sequence number field and a fifth sequence number in the first tag database as a corresponding current matching record; and when the current matching record is not empty, setting a fifth state bit of the first tag state field of the current matching record as a first state bit mark.
Here, it can be known from the foregoing that when the first card reader 11 and the first server 16 are linked to perform the tag identification data verification process on one NFC tag 2, the first tag serial number field of the first tag record corresponding to the one NFC tag 2 in the first tag database is set to the corresponding first serial number, and the first serial number and the fifth serial number corresponding to the same NFC tag 2 are equal from the foregoing, so when the first server 16 receives the fifth card reader data sent by the fifth card reader 15, the corresponding current matching record, which is the corresponding first tag record corresponding to the one NFC tag 2, can be located by querying the first tag database based on the fifth serial number; if the current matching record is not empty, it indicates that the positioning of the first tag record corresponding to the NFC tag 2 is successful, then the first server 16 determines whether the first, second, third and fourth status bits of the first tag status field of the current matching record are all the first status bit marks by identifying whether the first, second, third and fourth status bits of the first tag status field of the current matching record are all the first status bit marks, so as to determine whether the first four phases of processing steps ((1) tag identification data verification processing steps, (2) tag application data verification processing steps, (3) tag key data verification processing steps, (4) tag password data writing processing steps) are successful, and if the first, second, third and fourth status bits are all the first status bit marks, it indicates that the first four phases of processing steps of the first NFC tag 2 are all successful, and the last tag activation processing can be performed, at this time, the first server 16 returns a first authorization state set to an authorization passing state to the fifth card reader 15 to activate the fifth card reader 15 to perform corresponding local activation;
In addition, when receiving the fifth second card reader data sent by the fifth card reader 15, the first server 16 queries the first tag database based on the fifth serial number to locate the corresponding first tag record corresponding to the NFC tag 2, that is, the corresponding current matching record, and if the current matching record is not empty, it indicates that the positioning of the first tag record corresponding to the NFC tag 2 is successful, and then the first server 16 sets the fifth status bit of the first tag status field of the current matching record as the first status bit flag.
The embodiment of the invention provides an activation system of an NFC anti-counterfeiting label, which comprises the following steps: the system comprises a first driving belt, a first card reader, a second card reader, a third card reader, a fourth card reader, a fifth card reader, a first server and a first encryption machine. The system can process the five stages executed on a single NFC card reader: (1) a tag identification data verification processing step, (2) a tag application data verification processing step, (3) a tag key data verification processing step, (4) a tag password data writing processing step and (5) a tag activation flag data writing processing step, and decomposing the tag identification data verification processing step and the tag activation flag data writing processing step to five card readers for executing respectively; therefore, after five NFC labels are transmitted on the first transmission belt, synchronous operation of different stages of processing steps of the five NFC labels can be realized, the processing effect is similar to synchronous operation of five stages of processing steps of one NFC label, and the processing effect is equivalent to shortening the average processing period of a single NFC label; that is, the average processing period of a single NFC label is shortened, and the activation quantity of the label in unit time is increased through the system.
Those of skill would further appreciate that the various illustrative elements 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 various illustrative elements and steps are described above generally in terms of function in order to clearly illustrate the 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 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, in a software module executed by a processor, or in a combination of the two. The software modules may be disposed 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 foregoing description of the embodiments has been provided for the purpose of illustrating the general principles of the invention, and is not meant to limit the scope of the invention, but to limit the invention to the particular embodiments, and any modifications, equivalents, improvements, etc. that fall within the spirit and principles of the invention are intended to be included within the scope of the invention.

Claims (13)

1. An activation system for an NFC security tag, the system comprising: the device comprises a first transmission belt, a first card reader, a second card reader, a third card reader, a fourth card reader, a fifth card reader, a first server and a first encryption machine;
placing an NFC label on the first transmission belt; five NFC card readers are sequentially and equidistantly arranged above the first transmission belt and are respectively the first, second, third, fourth and fifth card readers, and the arrangement distance between adjacent card readers in the first, second, third, fourth and fifth card readers is a preset single-step transmission distance; the first, second, third, fourth and fifth card readers are respectively connected with the first server; the first server is connected with the first encryption machine;
the first transmission belt is used for sequentially passing the NFC label under the first, second, third, fourth and fifth card readers according to a preset first transmission speed along the transmission direction from the first card reader to the fifth card reader; and pausing at the transmission starting moment according to the preset single-step pause time; and in the transmission process, one single step pause is performed every time the single step transmission interval is transmitted, and the pause duration of each single step pause is set as the single step pause duration; at most one NFC label is stopped under the first, second, third, fourth or fifth card readers when the first transmission belt is stopped at a single step;
The first card reader is used for carrying out label identification data verification processing on the NFC label stopped under the card reader in a linkage way with the first server;
the second card reader is used for carrying out label application data verification processing on the NFC label stopped under the card reader in a linkage way with the first server;
the third card reader is used for carrying out tag key data verification processing on the NFC tag which is stopped below the card reader in a linkage way with the first server and the first encryption machine;
the fourth card reader is used for carrying out tag password data writing processing on the NFC tag which is stopped under the card reader in a linkage way with the first server;
and the fifth card reader is used for carrying out tag activation mark data writing processing on the NFC tag stopped under the card reader in linkage with the first server.
2. The activation system of an NFC security tag of claim 1, wherein,
the first server side presets a first tag database; the first tag database comprises a plurality of first tag records; the first tag record comprises a first tag identification data field, a first tag application data field, a first tag password data field, a first tag sequence number field and a first tag state field; each first tag record corresponds to one NFC tag, the first tag identification data field and the first tag application data field of each first tag record are respectively tag identification data and tag application data which are written on the corresponding NFC tag, and the first tag password data field of each first tag record is tag password data to be written on the corresponding NFC tag; initializing the first tag sequence number field of each first tag record to be null; the first tag status field of each first tag record comprises a first status bit, a second status bit, a third status bit, a fourth status bit and a fifth status bit, wherein the first, second, third, fourth and fifth status bits comprise a first status bit mark and a second status bit mark, and the first, second, third, fourth and fifth status bits are preset as the second status bit mark by default;
The first encryptor side presets a second tag database; the second tag database includes a plurality of second tag records; the second tag record includes a second tag identification data field and a first tag key data field; each second tag record corresponds to one NFC tag, and the second tag identification data field and the first tag key data field of each second tag record are tag identification data and tag key data written in the corresponding NFC tag respectively;
the first card reader is further used for initializing a first serial number to be 0 at the transmission starting moment of the first transmission belt; the second card reader is further used for initializing a second serial number to be 0 at the transmission starting moment of the first transmission belt; the third card reader is further used for initializing a third serial number to be 0 at the transmission starting moment of the first transmission belt; the fourth card reader is further used for initializing a fourth serial number to be 0 at the transmission starting moment of the first transmission belt; the fifth card reader is further configured to initialize a fifth serial number to be 0 at a transmission start time of the first transmission belt.
3. The activation system of an NFC security tag of claim 2, wherein,
The first card reader is specifically configured to detect whether the NFC tag is stopped under the card reader in each single-step stopping process of the first driving belt to generate a corresponding first detection result when the tag identification data is verified; if the first detection result is that the first detection result exists, adding 1 to the first sequence number; sending a first tag identification reading instruction to the NFC tag which is stopped downwards by the card reader, and receiving first identification data returned by the NFC tag; and sending the first card reader data carrying the first serial number and the first identification data to the first server.
4. The activation system of an NFC anti-counterfeiting label according to claim 3, wherein,
the first server is specifically configured to receive the first card reader data sent by the first card reader during verification processing of the tag identification data; extracting the first serial number and the first identification data from the first card reader data; querying the first tag database, and taking the first tag record matched with the first tag identification data field and the first identification data in the first tag database as a corresponding current matching record; and when the current matching record is not empty, setting the first tag sequence number field of the current matching record as the first sequence number, and updating the first status bit of the first tag status field of the current matching record as a first status bit mark.
5. The activation system of an NFC security tag of claim 2, wherein,
the second card reader is specifically configured to detect whether the NFC tag is in a pause under the card reader in each single-step pause process of the first driving belt when the tag application data verification process is performed, so as to generate a corresponding second detection result; if the second detection result is that the second detection result exists, adding 1 to the second sequence number; sending a first tag application reading instruction to the NFC tag which is stopped downwards by the card reader, and receiving first application data returned by the NFC tag; and sending second card reader data carrying the second serial number and the first application data to the first server.
6. The activation system of an NFC security tag of claim 5,
the first server is specifically configured to receive the second card reader data sent by the second card reader when the tag application data verification process is performed; extracting the second serial number and the first application data from the second card reader data; querying the first tag database, and taking the first tag record in the first tag database, in which the first tag sequence number field is matched with the second sequence number and the first tag application data field is matched with the first application data, as a corresponding current matching record; and updating the second status bit of the first tag status field of the current matching record to a first status bit flag when the current matching record is not empty.
7. The activation system of an NFC security tag of claim 2, wherein,
the third card reader is specifically configured to detect whether the NFC tag is stopped under the card reader in each single-step stopping process of the first driving belt to generate a corresponding third detection result when the tag key data is verified; if the third detection result is that the third detection result exists, adding 1 to the third sequence number; sending a first tag key reading instruction to the NFC tag with the card reader stopped downwards, and receiving first key data returned by the NFC tag; and calling a local random number module to generate a random number as a corresponding first random number; performing data encryption processing on the first random number by using the first key data based on a preset encryption algorithm to generate corresponding first encrypted data; and transmitting third card reader data carrying the third serial number, the first random number and the first encrypted data to the first server.
8. The activation system of an NFC security tag of claim 7,
the first server is specifically configured to receive the third card reader data sent by the third card reader during verification processing of the tag key data; extracting the third serial number, the first random number and the first encrypted data from the third card reader data; querying the first tag database, and taking the first tag record matched with the first tag sequence number field and the third sequence number in the first tag database as a corresponding current matching record; when the current matching record is not empty, extracting the first tag identification data field of the current matching record as corresponding current identification data; the first data verification instruction carrying the current identification data, the first random number and the first encrypted data is sent to the first encryption machine, and a first data verification state returned by the first encryption machine is received; and updating the third status bit of the first tag status field of the current matching record to a first status bit flag when the first data verification status is a successful status.
9. The activation system of an NFC security tag of claim 8,
the first encryptor is specifically configured to receive the first data verification instruction sent by the first server during the verification processing of the tag key data; extracting the current identification data, the first random number and the first encrypted data from the first data verification instruction; inquiring the second tag database, and recording the second tag record matched with the current identification data in the second tag identification data field in the second tag database as a corresponding current record; when the current record is not empty, extracting the first tag key data field of the current record as a corresponding current key; based on a decryption algorithm matched with an encryption algorithm preset by the third card reader, performing data decryption processing on the first encrypted data by using the current key to generate corresponding first plaintext data; setting the corresponding first data verification state as a successful state when the first plaintext data is matched with the first random number; and sending the first data verification state back to the first server.
10. The activation system of an NFC security tag of claim 2, wherein,
the fourth card reader is specifically configured to detect whether the NFC tag is stopped under the card reader in each single-step stopping process of the first driving belt to generate a corresponding fourth detection result when the tag password data is written into the fourth card reader; if the fourth detection result is that the fourth detection result exists, adding 1 to the fourth sequence number; transmitting the data of the fourth card reader carrying the fourth serial number to the first server, and receiving the first password data returned by the first server; sending a first tag password writing instruction carrying the first password data to the NFC tag with the card reader down pause, and receiving a first instruction state returned by the NFC tag; when the first instruction state is a successful state, a first label password reading instruction is sent to the NFC label, and second password data returned by the NFC label is received; and transmitting fourth second card reader data carrying the fourth serial number and the second password data to the first server.
11. The activation system of an NFC security tag of claim 10,
The first server is specifically configured to identify current card reader data sent by the fourth card reader during the writing process of the tag password data;
when the current card reader data is the fourth first card reader data, extracting the fourth serial number from the fourth first card reader data; querying the first tag database, and taking the first tag record matched with the first tag sequence number field and the fourth sequence number in the first tag database as a corresponding current matching record; if the current matching record is not empty, extracting the first tag password data field of the current matching record as corresponding first password data, and sending the first password data back to the fourth card reader;
when the current card reader data is the fourth second card reader data, the fourth serial number and the second password data are extracted from the fourth second card reader data; querying the first tag database, and taking the first tag record in the first tag database, in which the first tag serial number field is matched with the fourth serial number and the first tag password data field is matched with the second password data, as a corresponding current matching record; and updating the fourth status bit of the first tag status field of the current matching record to a first status bit flag when the current matching record is not empty.
12. The activation system of an NFC security tag of claim 2, wherein,
the fifth card reader is specifically configured to detect, during the writing process of the tag activation flag data, whether the NFC tag is stopped under the card reader in each single step stopping process of the first driving belt, so as to generate a corresponding fifth detection result; if the fifth detection result is that the fifth detection result exists, adding 1 to the fifth sequence number; transmitting fifth card reader data carrying the fifth serial number to the first server, and receiving a first authorization state returned by the first server; when the first authorization state is an authorization passing state, a first tag activation instruction is sent to the NFC tag which is stopped downwards by the card reader, and a second instruction state returned by the NFC tag is received; when the second instruction state is a successful state, a first activation state reading instruction is sent to the NFC tag, and first activation flag data returned by the NFC tag is received; and when the first activation flag data is matched with a preset activation flag, transmitting fifth second card reader data carrying the fifth serial number to the first server.
13. The activation system of an NFC security tag of claim 12, wherein,
the first server is specifically configured to identify current card reader data sent by the fifth card reader during the writing process of the tag activation flag data;
when the current card reader data is the fifth card reader data, extracting the fifth serial number from the fifth card reader data; inquiring the first tag database, and taking the first tag record matched with the first tag sequence number field and the fifth sequence number in the first tag database as a corresponding current matching record; and when the current matching record is not empty, identifying whether the first, second, third and fourth status bits of the first tag status field of the current matching record are all first status bit flags; if the first, second, third and fourth status bits are all the first status bit marks, setting the corresponding first authorization status as an authorization passing status, and sending the first authorization status back to the fifth card reader;
when the current card reader data is the fifth second card reader data, extracting the fifth serial number from the fifth second card reader data; inquiring the first tag database, and taking the first tag record matched with the first tag sequence number field and the fifth sequence number in the first tag database as a corresponding current matching record; and when the current matching record is not empty, setting the fifth status bit of the first tag status field of the current matching record as a first status bit flag.
CN202211415277.1A 2022-11-11 2022-11-11 NFC anti-counterfeiting label activation system Active CN115796217B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202211415277.1A CN115796217B (en) 2022-11-11 2022-11-11 NFC anti-counterfeiting label activation system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202211415277.1A CN115796217B (en) 2022-11-11 2022-11-11 NFC anti-counterfeiting label activation system

Publications (2)

Publication Number Publication Date
CN115796217A CN115796217A (en) 2023-03-14
CN115796217B true CN115796217B (en) 2023-05-23

Family

ID=85437102

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202211415277.1A Active CN115796217B (en) 2022-11-11 2022-11-11 NFC anti-counterfeiting label activation system

Country Status (1)

Country Link
CN (1) CN115796217B (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN115630656B (en) * 2022-08-18 2023-06-27 芯电智联(北京)科技有限公司 Processing method for activating NFC label issuing data

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
KR20120035012A (en) * 2010-10-04 2012-04-13 주식회사 케이티 Near field communication device capable of recharging card, and method of operating near field communication device
CN109313630A (en) * 2016-04-18 2019-02-05 B·E·乔恩提加德 Multistage Control, variable access, multi-user's situation intelligence communication platform
CN113222522A (en) * 2020-10-27 2021-08-06 深圳市芯中芯科技有限公司 Intelligent child time management card punching system and method
CN113457113A (en) * 2021-06-30 2021-10-01 南京邮电大学 Card game anti-cheating system and method based on NFC technology
CN114462560A (en) * 2020-10-21 2022-05-10 华为技术有限公司 Analog card switching method, electronic equipment and communication system

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
AU2002950973A0 (en) * 2002-08-22 2002-09-12 Magellan Technology Pty Ltd A radio frequency identification ("rfid") device

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
KR20120035012A (en) * 2010-10-04 2012-04-13 주식회사 케이티 Near field communication device capable of recharging card, and method of operating near field communication device
CN109313630A (en) * 2016-04-18 2019-02-05 B·E·乔恩提加德 Multistage Control, variable access, multi-user's situation intelligence communication platform
CN114462560A (en) * 2020-10-21 2022-05-10 华为技术有限公司 Analog card switching method, electronic equipment and communication system
CN113222522A (en) * 2020-10-27 2021-08-06 深圳市芯中芯科技有限公司 Intelligent child time management card punching system and method
CN113457113A (en) * 2021-06-30 2021-10-01 南京邮电大学 Card game anti-cheating system and method based on NFC technology

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
校园一卡通数据容灾建设;韩立峰;荣娟;;信息技术(12);全文 *

Also Published As

Publication number Publication date
CN115796217A (en) 2023-03-14

Similar Documents

Publication Publication Date Title
US11275911B2 (en) Tag, related method and system for identifying and/or authenticating objects
EP1755061B1 (en) Protection of non-promiscuous data in an RFID transponder
US7461788B2 (en) Information reading apparatus and information reading system
CN104809618B (en) Antifake method for products based on electronic tag
CN115796217B (en) NFC anti-counterfeiting label activation system
CN101283381A (en) A dynamic transaction card and a method of writing information to the same
CN105225359B (en) Based on Quick Response Code without card withdrawal method and finger print identifying server
CN102855574A (en) Method and system for identifying commodity information based on NFC (Near Field Communication)
US20060080548A1 (en) User authentication apparatus, electronic equipment, and a storage medium embodying a user authentication program
EP2297667A1 (en) System of providing a fixed identification of a transponder while keeping privacy and avoiding tracking
CN202870900U (en) NFC (Near Field Communication)-based commodity information identification system
US20050134436A1 (en) Multiple RFID anti-collision interrogation method
CN103366194A (en) Stamp identification and recording system
US9495570B2 (en) Method for authenticating an RFID tag
KR100848791B1 (en) Tag data recording and obtaining method which security verification are capable, tag data recording and obtaining apparatus
CN111310875A (en) Reagent detection system, method, computer device and readable storage medium
CN104424453B (en) System and method for verifying non-contact inductive label
CN201352363Y (en) Identity multiple checking and verifying system
CN102945384A (en) Method for enhancing high-frequency RFID (radio frequency identification) safety
CN109741067B (en) Data processing method and device based on IC card unlocking
CN113095844A (en) Anti-counterfeiting method and device, storage medium and terminal
CN110971410A (en) User information verification method, intelligent terminal and computer readable storage medium
CN117057372B (en) Multi-target identification method based on radio frequency identification technology
CN107657755A (en) A kind of system for taking express delivery suitable for identity card
CN103700180B (en) Holder is carried out the system and method for identification by a kind of ATM

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