CN113780495B - NFC tag data writing method and terminal - Google Patents

NFC tag data writing method and terminal Download PDF

Info

Publication number
CN113780495B
CN113780495B CN202111019303.4A CN202111019303A CN113780495B CN 113780495 B CN113780495 B CN 113780495B CN 202111019303 A CN202111019303 A CN 202111019303A CN 113780495 B CN113780495 B CN 113780495B
Authority
CN
China
Prior art keywords
ciphertext
nfc
produced
writing
uid
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
CN202111019303.4A
Other languages
Chinese (zh)
Other versions
CN113780495A (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 CN202111019303.4A priority Critical patent/CN113780495B/en
Publication of CN113780495A publication Critical patent/CN113780495A/en
Application granted granted Critical
Publication of CN113780495B publication Critical patent/CN113780495B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06KGRAPHICAL DATA READING; PRESENTATION OF DATA; RECORD CARRIERS; HANDLING RECORD CARRIERS
    • G06K17/00Methods or arrangements for effecting co-operative working between equipments covered by two or more of main groups G06K1/00 - G06K15/00, e.g. automatic card files incorporating conveying and reading operations
    • G06K17/0022Methods or arrangements for effecting co-operative working between equipments covered by two or more of main groups G06K1/00 - G06K15/00, e.g. automatic card files incorporating conveying and reading operations arrangements or provisious for transferring data to distant stations, e.g. from a sensing device
    • G06K17/0029Methods or arrangements for effecting co-operative working between equipments covered by two or more of main groups G06K1/00 - G06K15/00, e.g. automatic card files incorporating conveying and reading operations arrangements or provisious for transferring data to distant stations, e.g. from a sensing device the arrangement being specially adapted for wireless interrogation of grouped or bundled articles tagged with wireless record carriers
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06KGRAPHICAL DATA READING; PRESENTATION OF DATA; RECORD CARRIERS; HANDLING RECORD CARRIERS
    • G06K19/00Record carriers for use with machines and with at least a part designed to carry digital markings
    • G06K19/06Record carriers for use with machines and with at least a part designed to carry digital markings characterised by the kind of the digital marking, e.g. shape, nature, code
    • G06K19/067Record carriers with conductive marks, printed circuits or semiconductor circuit elements, e.g. credit or identity cards also with resonating or responding marks without active components
    • G06K19/07Record carriers with conductive marks, printed circuits or semiconductor circuit elements, e.g. credit or identity cards also with resonating or responding marks without active components with integrated circuit chips
    • G06K19/073Special arrangements for circuits, e.g. for protecting identification code in memory
    • G06K19/07309Means for preventing undesired reading or writing from or onto record carriers
    • YGENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
    • Y02TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
    • Y02PCLIMATE CHANGE MITIGATION TECHNOLOGIES IN THE PRODUCTION OR PROCESSING OF GOODS
    • Y02P90/00Enabling technologies with a potential contribution to greenhouse gas [GHG] emissions mitigation
    • Y02P90/30Computing systems specially adapted for manufacturing

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Hardware Design (AREA)
  • General Engineering & Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Theoretical Computer Science (AREA)
  • Computer Security & Cryptography (AREA)
  • Microelectronics & Electronic Packaging (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Storage Device Security (AREA)

Abstract

The invention discloses a writing method and a terminal of NFC tag data, wherein UIDs of each NFC to be produced are obtained according to a plurality of received tag data writing requests of NFC to be produced; generating ciphertext calculation instructions comprising a plurality of UIDs according to the UIDs, and sending the ciphertext calculation instructions to a background server; receiving calculation completion information corresponding to the ciphertext calculation instruction sent by the background server, and acquiring ciphertext corresponding to the UID according to the calculation completion information; writing the ciphertext into the key area of the NFC to be produced based on the UID according to the received seal start information of the NFC to be produced, obtaining the NFC to be produced after the ciphertext is written, realizing batch writing of NFC tag data, shortening the writing period of the NFC tag data without making issuing equipment according to the packaging form and interval of the NFC, and simply and effectively improving the writing efficiency of the NFC tag data.

Description

NFC tag data writing method and terminal
Technical Field
The present invention relates to the field of NFC chip technologies, and in particular, to a method and a terminal for writing NFC tag data.
Background
NFC (Near Field Communication ) technology is evolved from non-contact radio frequency identification (RFID, radio Frequency IDentification) technology, combines the functions of an induction card reader, an induction card and point-to-point on a single chip, can identify and exchange data with compatible equipment in a short distance, and is suitable for being used in product external package anti-counterfeiting tracing.
NFC electronic tags are increasingly widely applied to the fields of commodity circulation, anti-counterfeiting traceability and the like, and a radio frequency electromagnetic field is adopted between NFC and a mobile phone with an NFC function as a carrier for energy and information transmission.
At present, data of an NFC electronic tag comprises a UID and a key area, wherein the UID is used as a unique identifier of the NFC tag, the NFC electronic tag is burned out from factory, anyone (including a developer) cannot change and can only read, and the data of the key area is written through an NFC read-write device, as shown in fig. 3, the flow is as follows:
(1) The NFC reading and writing device reads an NFC tag;
(2) The NFC read-write equipment acquires the UID of the NFC tag;
(3) The NFC read-write equipment returns the UID of the NFC tag to the background server;
(4) The background server stores the UID of the NFC tag and calculates a corresponding ciphertext according to a specific algorithm;
(5) The background server transmits the corresponding ciphertext to the NFC read-write equipment;
(6) The NFC reader device writes the ciphertext to a key region in the corresponding NFC tag, typically a secure region (unreadable region) of the NFC tag.
The NFC read-write equipment is utilized for reading the UID of each tag, and then corresponding operation, namely one-to-one data release, is carried out, and when the number of the tags is large, the writing mode has the following problems:
(1) The efficiency is low, namely the ciphertext of each label is written in, the processes (1) to (6) are required to be repeated, and the time period is long;
(2) The reliability and stability requirements for the read-write equipment in the writing process are high;
(3) If batch reading and writing are performed, special reading and writing equipment is required to be manufactured, and when batch reading and writing are performed, the placement form and the distance of the labels are required to be considered, as shown in fig. 4 and 5, the NFC label strip in fig. 5 is formed after the processing is completed, and the distance between each two labels, the label size and the like can influence the batch reading and writing efficiency of the NFC card reader;
(4) Different requirements are placed on tag data issuing equipment, and modulation is required for the equipment, so that the efficiency is low.
In addition, the above NFC tag data issue is to perform the tag issue flow after the NFC tag processing is completed, so as to implement writing of tag data, as shown in fig. 6, since writing of tag data is performed one by one, the period is long, and in a mass application environment, there are problems and risks that the efficiency is low and the tag is easily disabled by different environments.
Disclosure of Invention
The technical problems to be solved by the invention are as follows: the writing method and the terminal for the NFC tag data can simply and effectively improve the writing efficiency of the NFC tag data.
In order to solve the technical problems, the invention adopts a technical scheme that:
a writing method of NFC tag data, comprising:
acquiring UIDs of all NFC to be produced according to a plurality of received tag data writing requests of NFC to be produced;
generating ciphertext calculation instructions comprising a plurality of UIDs according to the UIDs, and sending the ciphertext calculation instructions to a background server;
receiving calculation completion information corresponding to the ciphertext calculation instruction sent by the background server, and acquiring ciphertext corresponding to the UID according to the calculation completion information;
and writing the ciphertext into the key area of the NFC to be produced based on the UID according to the received seal start information of the NFC to be produced, so as to obtain the NFC to be produced after the ciphertext is written.
In order to solve the technical problems, the invention adopts another technical scheme that:
a write terminal for NFC tag data, comprising a memory, a processor and a computer program stored on the memory and executable on the processor, the processor implementing the following steps when executing the computer program:
acquiring UIDs of all NFC to be produced according to a plurality of received tag data writing requests of NFC to be produced;
generating ciphertext calculation instructions comprising a plurality of UIDs according to the UIDs, and sending the ciphertext calculation instructions to a background server;
receiving calculation completion information corresponding to the ciphertext calculation instruction sent by the background server, and acquiring ciphertext corresponding to the UID according to the calculation completion information;
and writing the ciphertext into the key area of the NFC to be produced based on the UID according to the received seal start information of the NFC to be produced, so as to obtain the NFC to be produced after the ciphertext is written.
The invention has the beneficial effects that: according to the received label data writing requests of the NFC to be produced, the UIDs of each NFC to be produced are obtained, ciphertext calculation instructions are generated according to the UIDs, the instructions are sent to a background server, calculation completion information sent by the background server is received, ciphertext corresponding to the UIDs is obtained according to the calculation completion information, when the seal start information of the NFC to be produced is received, ciphertext is written into a key area of the NFC to be produced based on the UIDs, unlike the prior art, after the processing of the NFC labels is completed, label issuing processes are carried out one by one, all the UIDs of the NFC to be produced are obtained in batches in the NFC production stage, the corresponding ciphertext is calculated by the background server, after the ciphertext calculation is completed, the ciphertext is written into the key area in batches in the seal measurement stage of the NFC, batch writing of NFC label data is achieved, equipment is not required to be issued according to the encapsulation form and interval of the NFC, the period of NFC label data writing is shortened, and therefore the writing efficiency of the NFC label data is improved simply and effectively.
Drawings
Fig. 1 is a step flowchart of a writing method of NFC tag data according to an embodiment of the present invention;
fig. 2 is a schematic structural diagram of an NFC tag data writing terminal according to an embodiment of the present invention;
fig. 3 is a schematic diagram of a step of writing NFC tag data in the prior art;
fig. 4 is a schematic diagram of NFC tag placement locations for NFC tag data writing in the prior art;
fig. 5 is a schematic flow chart of NFC tag data writing in the prior art;
fig. 6 is a schematic diagram illustrating a phase of writing NFC tag data in the prior art;
fig. 7 is a flow chart of a writing method of NFC tag data according to an embodiment of the present invention;
fig. 8 is a schematic diagram illustrating steps in a writing method of NFC tag data according to an embodiment of the present invention;
fig. 9 is a schematic stage diagram of a writing method of NFC tag data according to an embodiment of the present invention.
Detailed Description
In order to describe the technical contents, the achieved objects and effects of the present invention in detail, the following description will be made with reference to the embodiments in conjunction with the accompanying drawings.
Referring to fig. 1, an embodiment of the present invention provides a method for writing NFC tag data, including:
acquiring UIDs of all NFC to be produced according to a plurality of received tag data writing requests of NFC to be produced;
generating ciphertext calculation instructions comprising a plurality of UIDs according to the UIDs, and sending the ciphertext calculation instructions to a background server;
receiving calculation completion information corresponding to the ciphertext calculation instruction sent by the background server, and acquiring ciphertext corresponding to the UID according to the calculation completion information;
and writing the ciphertext into the key area of the NFC to be produced based on the UID according to the received seal start information of the NFC to be produced, so as to obtain the NFC to be produced after the ciphertext is written.
From the above description, the beneficial effects of the invention are as follows: according to the received label data writing requests of the NFC to be produced, the UIDs of each NFC to be produced are obtained, ciphertext calculation instructions are generated according to the UIDs, the instructions are sent to a background server, calculation completion information sent by the background server is received, ciphertext corresponding to the UIDs is obtained according to the calculation completion information, when the seal start information of the NFC to be produced is received, ciphertext is written into a key area of the NFC to be produced based on the UIDs, unlike the prior art, after the processing of the NFC labels is completed, label issuing processes are carried out one by one, all the UIDs of the NFC to be produced are obtained in batches in the NFC production stage, the corresponding ciphertext is calculated by the background server, after the ciphertext calculation is completed, the ciphertext is written into the key area in batches in the seal measurement stage of the NFC, batch writing of NFC label data is achieved, equipment is not required to be issued according to the encapsulation form and interval of the NFC, the period of NFC label data writing is shortened, and therefore the writing efficiency of the NFC label data is improved simply and effectively.
Further, the calculation completion information includes an encrypted ciphertext corresponding to the UID;
the obtaining the ciphertext corresponding to the UID according to the calculation completion information includes:
acquiring a preset decryption algorithm;
and decrypting the encrypted ciphertext corresponding to the UID according to the preset decryption algorithm to obtain the ciphertext corresponding to the UID.
As can be seen from the above description, the background server encrypts the UID and the ciphertext corresponding to the UID by using a preset encryption algorithm, decrypts the encrypted ciphertext corresponding to the UID by using a preset decryption algorithm after receiving, prevents the ciphertext from being leaked during data transmission, and ensures the safety of data transmission, thereby improving the reliability of NFC.
Further, the writing the ciphertext into the key area of the NFC to be produced based on the UID according to the received seal start information of the NFC to be produced includes:
acquiring UIDs of the NFC to be produced according to the received seal detection starting information of the NFC to be produced;
obtaining ciphertext corresponding to the UID according to the UID query;
and writing the ciphertext into the key area of the NFC to be produced.
As can be seen from the above description, the UID of the NFC to be produced is obtained in batch in the seal phase of the NFC to be produced, then the corresponding ciphertext is obtained according to the UID query, and finally the ciphertext is written into the key area, thereby realizing batch writing of the NFC tag data.
Further, the writing the ciphertext into the key area of the NFC to be produced based on the UID according to the received seal start information of the plurality of NFC to be produced, and obtaining the NFC to be produced after writing the ciphertext includes:
checking the ciphertext of the key area of the NFC to be produced after the ciphertext is written in to obtain a checking result;
generating verification data according to the verification result;
and writing the verification data into the storage area to be produced with NFC after the ciphertext is written.
As can be seen from the above description, after writing of the ciphertext is completed, the ciphertext in the key area is verified, verification data is generated according to the verification result, the verification data is written into the storage area to be produced by NFC, and subsequently, in the NFC tag verification stage, the writing condition of the ciphertext of the NFC tag can be checked according to the verification data, so as to determine whether the NFC tag is legal, and further ensure the safety and reliability of the NFC tag.
Further, the verifying the ciphertext of the key area to be produced with the NFC after the ciphertext is written, and obtaining a verification result includes:
reading the ciphertext of the key area of the NFC to be produced after the ciphertext is written in to obtain a ciphertext to be verified;
acquiring the UID of the NFC to be produced after the ciphertext is written;
judging whether the ciphertext to be checked is consistent with the ciphertext corresponding to the UID obtained according to the calculation completion information, if so, checking successfully, and if not, checking failed.
As can be seen from the above description, when the ciphertext to be verified is verified, the ciphertext to be verified is compared with the ciphertext corresponding to the UID obtained according to the calculation completion information, if the ciphertext is consistent with the ciphertext, the ciphertext is written in error, and if the ciphertext is inconsistent with the ciphertext, the ciphertext is written in error, and the verification fails, so that the accuracy of writing the NFC tag data is ensured.
Referring to fig. 2, another embodiment of the present invention provides a writing terminal of NFC tag data, including a memory, a processor, and a computer program stored on the memory and capable of running on the processor, where the processor implements the following steps when executing the computer program:
acquiring UIDs of all NFC to be produced according to a plurality of received tag data writing requests of NFC to be produced;
generating ciphertext calculation instructions comprising a plurality of UIDs according to the UIDs, and sending the ciphertext calculation instructions to a background server;
receiving calculation completion information corresponding to the ciphertext calculation instruction sent by the background server, and acquiring ciphertext corresponding to the UID according to the calculation completion information;
and writing the ciphertext into the key area of the NFC to be produced based on the UID according to the received seal start information of the NFC to be produced, so as to obtain the NFC to be produced after the ciphertext is written.
From the above description, the beneficial effects of the invention are as follows: according to the received label data writing requests of the NFC to be produced, the UIDs of each NFC to be produced are obtained, ciphertext calculation instructions are generated according to the UIDs, the instructions are sent to a background server, calculation completion information sent by the background server is received, ciphertext corresponding to the UIDs is obtained according to the calculation completion information, when the seal start information of the NFC to be produced is received, ciphertext is written into a key area of the NFC to be produced based on the UIDs, unlike the prior art, after the processing of the NFC labels is completed, label issuing processes are carried out one by one, all the UIDs of the NFC to be produced are obtained in batches in the NFC production stage, the corresponding ciphertext is calculated by the background server, after the ciphertext calculation is completed, the ciphertext is written into the key area in batches in the seal measurement stage of the NFC, batch writing of NFC label data is achieved, equipment is not required to be issued according to the encapsulation form and interval of the NFC, the period of NFC label data writing is shortened, and therefore the writing efficiency of the NFC label data is improved simply and effectively.
Further, the calculation completion information includes an encrypted ciphertext corresponding to the UID;
the obtaining the ciphertext corresponding to the UID according to the calculation completion information includes:
acquiring a preset decryption algorithm;
and decrypting the encrypted ciphertext corresponding to the UID according to the preset decryption algorithm to obtain the ciphertext corresponding to the UID.
As can be seen from the above description, the background server encrypts the UID and the ciphertext corresponding to the UID by using a preset encryption algorithm, decrypts the encrypted ciphertext corresponding to the UID by using a preset decryption algorithm after receiving, prevents the ciphertext from being leaked during data transmission, and ensures the safety of data transmission, thereby improving the reliability of NFC.
Further, the writing the ciphertext into the key area of the NFC to be produced based on the UID according to the received seal start information of the NFC to be produced includes:
acquiring UIDs of the NFC to be produced according to the received seal detection starting information of the NFC to be produced;
obtaining ciphertext corresponding to the UID according to the UID query;
and writing the ciphertext into the key area of the NFC to be produced.
As can be seen from the above description, the UID of the NFC to be produced is obtained in batch in the seal phase of the NFC to be produced, then the corresponding ciphertext is obtained according to the UID query, and finally the ciphertext is written into the key area, thereby realizing batch writing of the NFC tag data.
Further, the writing the ciphertext into the key area of the NFC to be produced based on the UID according to the received seal start information of the plurality of NFC to be produced, and obtaining the NFC to be produced after writing the ciphertext includes:
checking the ciphertext of the key area of the NFC to be produced after the ciphertext is written in to obtain a checking result;
generating verification data according to the verification result;
and writing the verification data into the storage area to be produced with NFC after the ciphertext is written.
As can be seen from the above description, after writing of the ciphertext is completed, the ciphertext in the key area is verified, verification data is generated according to the verification result, the verification data is written into the storage area to be produced by NFC, and subsequently, in the NFC tag verification stage, the writing condition of the ciphertext of the NFC tag can be checked according to the verification data, so as to determine whether the NFC tag is legal, and further ensure the safety and reliability of the NFC tag.
Further, the verifying the ciphertext of the key area to be produced with the NFC after the ciphertext is written, and obtaining a verification result includes:
reading the ciphertext of the key area of the NFC to be produced after the ciphertext is written in to obtain a ciphertext to be verified;
acquiring the UID of the NFC to be produced after the ciphertext is written;
judging whether the ciphertext to be checked is consistent with the ciphertext corresponding to the UID obtained according to the calculation completion information, if so, checking successfully, and if not, checking failed.
As can be seen from the above description, when the ciphertext to be verified is verified, the ciphertext to be verified is compared with the ciphertext corresponding to the UID obtained according to the calculation completion information, if the ciphertext is consistent with the ciphertext, the ciphertext is written in error, and if the ciphertext is inconsistent with the ciphertext, the ciphertext is written in error, and the verification fails, so that the accuracy of writing the NFC tag data is ensured.
The writing method and the terminal of the NFC tag data of the present invention can be applied to issuing of NFC tag data, and the following description will be given by specific embodiments:
example 1
Referring to fig. 1 and 7-8, a writing method of NFC tag data in this embodiment includes:
s1, acquiring UIDs of all NFC to be produced according to received tag data writing requests of a plurality of NFC to be produced;
specifically, as shown in fig. 7 and 8, in the chip processing stage, acquiring the UID of each NFC to be produced according to the received tag data writing requests of the NFC to be produced;
or, customizing a plurality of UIDs of the NFC to be produced in each batch in advance, and directly acquiring the customized UIDs of each NFC to be produced according to the received tag data writing requests of the NFC to be produced;
or in a testing stage after chip processing, acquiring UIDs of each NFC to be produced according to the received tag data writing requests of the NFC to be produced;
s2, generating ciphertext calculation instructions comprising a plurality of UIDs according to the UIDs, and sending the ciphertext calculation instructions to a background server;
specifically, as shown in fig. 7 and 8, the ciphertext calculation instruction is sent to a background server in an intranet;
or encrypting a plurality of UIDs included in the ciphertext calculation instruction by using a first preset encryption algorithm, and then sending the ciphertext calculation instruction to a background server so as to ensure the security of the UID transmission process;
wherein the first preset encryption algorithm is a simple encryption algorithm, such as an exclusive or encryption algorithm, an MD5 encryption algorithm, and the like;
after receiving the ciphertext calculation instruction, the background server firstly uses a preset decryption algorithm corresponding to the first preset encryption algorithm to decrypt if the UID in the instruction is encrypted, and then uses a second preset encryption algorithm to encrypt each UID as a plaintext to obtain a ciphertext corresponding to each UID;
the background server encrypts the ciphertext corresponding to the UID by using the first preset encryption algorithm to obtain an encrypted ciphertext corresponding to the UID, and sends calculation completion information comprising the encrypted ciphertext corresponding to the UID to a chip production factory, or directly sends calculation completion information comprising the ciphertext corresponding to the UID to the chip production factory in an intranet or through a physical means without encryption;
the second preset encryption algorithm includes, but is not limited to, a national secret SM1 algorithm, a national secret SM2 algorithm, a national secret SM3 algorithm, a national secret SM4 algorithm, a national secret SM5 algorithm, a national secret SM6 algorithm, a national secret SM7 algorithm, other symmetric algorithms, and asymmetric algorithms;
s3, receiving calculation completion information corresponding to the ciphertext calculation instruction sent by the background server, and acquiring ciphertext corresponding to the UID according to the calculation completion information;
and S4, writing the ciphertext into the key area of the NFC to be produced based on the UID according to the received seal start information of the NFC to be produced, and obtaining the NFC to be produced after writing the ciphertext.
Example two
Referring to fig. 7-9, the present embodiment further defines how to obtain the ciphertext corresponding to the UID and write the ciphertext into the key area based on the first embodiment, specifically:
the calculation completion information comprises an encrypted ciphertext corresponding to the UID;
the obtaining the ciphertext corresponding to the UID according to the calculation completion information includes:
as shown in fig. 7 and 8, a preset decryption algorithm is obtained;
wherein the preset decryption algorithm corresponds to the first preset encryption algorithm;
decrypting the encrypted ciphertext corresponding to the UID according to the preset decryption algorithm to obtain the ciphertext corresponding to the UID;
the writing the ciphertext into the key area of the NFC to be produced based on the UID according to the received seal start information of the NFC to be produced includes:
acquiring UIDs of the NFC to be produced according to the received seal detection starting information of the NFC to be produced;
specifically, as shown in fig. 7 and 8, in the chip sealing stage, the UID of each NFC to be produced is obtained according to the received sealing start information of the NFC to be produced;
obtaining ciphertext corresponding to the UID according to the UID query;
writing the ciphertext into the key area to be produced NFC corresponding to the UID;
specifically, the ciphertext may be written into the key area of the NFC to be produced by using a test procedure in the seal phase, as shown in fig. 9.
Example III
Referring to fig. 8, the present embodiment further defines how to verify the ciphertext based on the first embodiment or the second embodiment, specifically:
s5, checking the ciphertext of the key area to be produced of the NFC after the ciphertext is written in, and obtaining a checking result;
specifically, reading the ciphertext of the key area of the NFC to be produced after the ciphertext is written in to obtain the ciphertext to be verified;
acquiring the UID of the NFC to be produced after the ciphertext is written;
judging whether the ciphertext to be checked is consistent with the ciphertext corresponding to the UID obtained according to the calculation completion information, if so, checking successfully, and if not, checking failed;
generating verification data according to the verification result;
writing the verification data into a storage area to be produced by NFC after the ciphertext is written, as shown in figure 8;
the ciphertext corresponding to the UID, which is obtained according to the calculation completion information, is sent by a background server, so that the ciphertext corresponding to the UID, which is obtained according to the calculation completion information, is used as a standard ciphertext for comparing with the ciphertext to be checked;
setting 2 BIT byte BITs in a storage area of the NFC to be produced for storing check data;
the verification data comprises 00, 01, 10 and 11, wherein the verification data is 00, the ciphertext is not written into the key area, the verification data is 01, the ciphertext is written into the key area but not verified, the verification data is 10, the ciphertext is written into the key area, the ciphertext is successfully verified, the verification data is 11, the ciphertext is written into the key area but fails to verify, and the ciphertext needs to be rewritten;
when NFC label verification is carried out, firstly, reading and verifying the verification data of the NFC storage area, if the verification data is 10, the subsequent label verification process can be started, if the verification data is other, the NFC is not legal, and the verification process is terminated.
Example IV
Referring to fig. 2, an NFC tag data writing terminal includes a memory, a processor, and a computer program stored in the memory and capable of running on the processor, where the processor implements each step in the NFC tag data writing method in the first, second or third embodiments when executing the computer program.
In summary, according to the method and the terminal for writing the NFC tag data provided by the invention, the UID of each NFC to be produced is obtained according to the received tag data writing requests of the plurality of NFC to be produced; generating ciphertext calculation instructions comprising a plurality of UIDs according to the UIDs, and sending the ciphertext calculation instructions to a background server; receiving calculation completion information corresponding to the ciphertext calculation instruction sent by the background server, and acquiring ciphertext corresponding to the UID according to the calculation completion information; writing the ciphertext into the key area of the NFC to be produced based on the UID according to the received seal start information of the NFC to be produced, obtaining the NFC to be produced after the ciphertext is written, and after the ciphertext is written, verifying the ciphertext of the key area of the NFC to be produced after the ciphertext is written, so as to obtain a verification result; generating verification data according to the verification result; writing the verification data into the storage area of the NFC to be produced after writing the ciphertext, and checking the ciphertext writing condition of the NFC tag according to the verification data in the NFC tag verification stage to judge whether the NFC tag is legal or not, so that the safety and the reliability of the NFC tag are further ensured; all UIDs of the NFC to be produced are obtained in batches in the NFC production stage and sent to a background server to calculate corresponding ciphertext, after ciphertext calculation is completed, the ciphertext is written into a key area in batches in the NFC sealing stage, batch writing of NFC tag data is achieved, issuing equipment is not required to be formulated according to the NFC packaging form and interval, the period of writing of NFC tag data is shortened, and therefore writing efficiency of NFC tag data is improved simply and effectively.
The foregoing description is only illustrative of the present invention and is not intended to limit the scope of the invention, and all equivalent changes made by the specification and drawings of the present invention, or direct or indirect application in the relevant art, are included in the scope of the present invention.

Claims (4)

1. A method for writing NFC tag data, comprising:
acquiring UIDs of all NFC to be produced according to a plurality of received tag data writing requests of NFC to be produced;
generating ciphertext calculation instructions comprising a plurality of UIDs according to the UIDs, and sending the ciphertext calculation instructions to a background server;
receiving calculation completion information corresponding to the ciphertext calculation instruction sent by the background server, and acquiring ciphertext corresponding to the UID according to the calculation completion information;
writing the ciphertext into the key area of the NFC to be produced based on the UID according to the received seal start information of the NFC to be produced, and obtaining the NFC to be produced after the ciphertext is written;
the writing the ciphertext into the key area of the NFC to be produced based on the UID according to the received seal start information of the NFC to be produced includes:
acquiring UIDs of the NFC to be produced according to the received seal detection starting information of the NFC to be produced;
obtaining ciphertext corresponding to the UID according to the UID query;
writing the ciphertext into the key area of the NFC to be produced;
the writing the ciphertext into the key area of the NFC to be produced based on the UID according to the received seal start information of the NFC to be produced, and the obtaining of the NFC to be produced after the writing of the ciphertext comprises the following steps:
checking the ciphertext of the key area of the NFC to be produced after the ciphertext is written in to obtain a checking result;
generating verification data according to the verification result;
writing the verification data into a storage area to be produced NFC after the ciphertext is written;
and verifying the ciphertext of the key area of the NFC to be produced after the ciphertext is written in, wherein the obtaining of the verification result comprises the following steps:
reading the ciphertext of the key area of the NFC to be produced after the ciphertext is written in to obtain a ciphertext to be verified;
acquiring the UID of the NFC to be produced after the ciphertext is written;
judging whether the ciphertext to be checked is consistent with the ciphertext corresponding to the UID obtained according to the calculation completion information, if so, checking successfully, and if not, checking failed;
generating verification data according to the verification result; and writing the verification data into the storage area to be produced by NFC after writing the ciphertext, and checking the ciphertext writing condition of the NFC tag according to the verification data in the NFC tag verification stage to judge whether the NFC tag is legal or not.
2. The method for writing NFC tag data according to claim 1, wherein the calculation completion information includes an encrypted ciphertext corresponding to the UID;
the obtaining the ciphertext corresponding to the UID according to the calculation completion information includes:
acquiring a preset decryption algorithm;
and decrypting the encrypted ciphertext corresponding to the UID according to the preset decryption algorithm to obtain the ciphertext corresponding to the UID.
3. A write terminal for NFC tag data, comprising a memory, a processor and a computer program stored on the memory and executable on the processor, characterized in that the processor implements the following steps when executing the computer program:
acquiring UIDs of all NFC to be produced according to a plurality of received tag data writing requests of NFC to be produced;
generating ciphertext calculation instructions comprising a plurality of UIDs according to the UIDs, and sending the ciphertext calculation instructions to a background server;
receiving calculation completion information corresponding to the ciphertext calculation instruction sent by the background server, and acquiring ciphertext corresponding to the UID according to the calculation completion information;
writing the ciphertext into the key area of the NFC to be produced based on the UID according to the received seal start information of the NFC to be produced, and obtaining the NFC to be produced after the ciphertext is written;
the writing the ciphertext into the key area of the NFC to be produced based on the UID according to the received seal start information of the NFC to be produced includes:
acquiring UIDs of the NFC to be produced according to the received seal detection starting information of the NFC to be produced;
obtaining ciphertext corresponding to the UID according to the UID query;
writing the ciphertext into the key area of the NFC to be produced;
the writing the ciphertext into the key area of the NFC to be produced based on the UID according to the received seal start information of the NFC to be produced, and the obtaining of the NFC to be produced after the writing of the ciphertext comprises the following steps:
checking the ciphertext of the key area of the NFC to be produced after the ciphertext is written in to obtain a checking result;
generating verification data according to the verification result;
writing the verification data into a storage area to be produced NFC after the ciphertext is written;
and verifying the ciphertext of the key area of the NFC to be produced after the ciphertext is written in, wherein the obtaining of the verification result comprises the following steps:
reading the ciphertext of the key area of the NFC to be produced after the ciphertext is written in to obtain a ciphertext to be verified;
acquiring the UID of the NFC to be produced after the ciphertext is written;
judging whether the ciphertext to be checked is consistent with the ciphertext corresponding to the UID obtained according to the calculation completion information, if so, checking successfully, and if not, checking failed;
generating verification data according to the verification result; and writing the verification data into the storage area to be produced by NFC after writing the ciphertext, and checking the ciphertext writing condition of the NFC tag according to the verification data in the NFC tag verification stage to judge whether the NFC tag is legal or not.
4. A writing terminal of NFC tag data according to claim 3, wherein the calculation completion information includes an encrypted ciphertext corresponding to the UID;
the obtaining the ciphertext corresponding to the UID according to the calculation completion information includes:
acquiring a preset decryption algorithm;
and decrypting the encrypted ciphertext corresponding to the UID according to the preset decryption algorithm to obtain the ciphertext corresponding to the UID.
CN202111019303.4A 2021-09-01 2021-09-01 NFC tag data writing method and terminal Active CN113780495B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202111019303.4A CN113780495B (en) 2021-09-01 2021-09-01 NFC tag data writing method and terminal

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202111019303.4A CN113780495B (en) 2021-09-01 2021-09-01 NFC tag data writing method and terminal

Publications (2)

Publication Number Publication Date
CN113780495A CN113780495A (en) 2021-12-10
CN113780495B true CN113780495B (en) 2023-07-21

Family

ID=78840538

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202111019303.4A Active CN113780495B (en) 2021-09-01 2021-09-01 NFC tag data writing method and terminal

Country Status (1)

Country Link
CN (1) CN113780495B (en)

Families Citing this family (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN114580597B (en) * 2022-03-08 2022-11-29 芯电智联(北京)科技有限公司 Production label supplementing method for NFC (near field communication) anti-counterfeit label
CN116976368A (en) * 2022-04-22 2023-10-31 青岛海尔科技有限公司 Data tag generation method and device, storage medium and electronic device
CN114928839A (en) * 2022-05-10 2022-08-19 四川虹美智能科技有限公司 Anti-counterfeiting authentication system and method for NFC label

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101216897A (en) * 2008-01-15 2008-07-09 陆航程 A coding and preparation method for the multiple cross-validation of RFID compounding labels and its system
CN202584165U (en) * 2011-12-27 2012-12-05 国民技术股份有限公司 IC card production testing system
CN109635610A (en) * 2018-12-11 2019-04-16 北京智芯微电子科技有限公司 The read-write system and method for RFID tag data
CN112994893A (en) * 2021-02-08 2021-06-18 无锡众星微系统技术有限公司 Secret key burning method in chip production test stage

Family Cites Families (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US9160542B2 (en) * 2013-03-18 2015-10-13 Lenovo Enterprise Solutions (Singapore) Pte. Ltd. Authorizing use of a test key signed build
GB2581861B (en) * 2018-09-14 2022-10-05 Sino Ic Tech Co Ltd IC Test Information Management System Based on Industrial Internet

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101216897A (en) * 2008-01-15 2008-07-09 陆航程 A coding and preparation method for the multiple cross-validation of RFID compounding labels and its system
CN202584165U (en) * 2011-12-27 2012-12-05 国民技术股份有限公司 IC card production testing system
CN109635610A (en) * 2018-12-11 2019-04-16 北京智芯微电子科技有限公司 The read-write system and method for RFID tag data
CN112994893A (en) * 2021-02-08 2021-06-18 无锡众星微系统技术有限公司 Secret key burning method in chip production test stage

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
"射频芯片自动测试系统设计与实现";熊迁;《中国优秀硕士学位论文全文数据库(信息科技辑)》(第2015年第03期);第I135-225页 *

Also Published As

Publication number Publication date
CN113780495A (en) 2021-12-10

Similar Documents

Publication Publication Date Title
CN113780495B (en) NFC tag data writing method and terminal
US8947211B2 (en) Communication data protection method based on symmetric key encryption in RFID system, and apparatus for enabling the method
CN102576397B (en) The checking of token and data integrity protection
CN104217327A (en) Financial IC (integrated circuit) card Internet terminal and trading method thereof
CN113792561B (en) NFC electronic tag verification method and terminal
US11373169B2 (en) Web-based activation of contactless cards
CN102855574A (en) Method and system for identifying commodity information based on NFC (Near Field Communication)
CN103714295A (en) Financial integrated circuit card personalized data detecting method and system
CN104217335A (en) Storing device and method for commodity authenticity verification information, and commodity authenticity verification method
CN102662874B (en) Double-interface encryption memory card and management method and system of data in double-interface encryption memory card
EP2701101B1 (en) Information processing devices and information processing methods
CN202870898U (en) Radio frequency-based commodity information identification system
JP2015103048A (en) Authenticated body, authentication system, and authentication method
CN102346862A (en) Authentication method and device of contactless card
CN102867260A (en) Bluetooth-based commodity information identification method and system
US11216799B1 (en) Secure generation of one-time passcodes using a contactless card
KR20230174217A (en) Technology that leverages resource locators through contactless cards to perform a series of actions
CN204066182U (en) A kind of financial IC card internet terminal
CN114981828A (en) Technique for controlling an applet for a contactless card
US20230188340A1 (en) Key recovery based on contactless card authentication
US20230065643A1 (en) Devices and techniques to perform entropy-based randomness via a contactless card
CN101625727B (en) Radio frequency identification tag and operating method thereof
CN117835232A (en) Method for transmitting service data based on dynamic NFC tag and system architecture thereof
CA3220529A1 (en) Server-side redirect of uniform resource locator generated by contactless card

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