CN115630656B - Processing method for activating NFC label issuing data - Google Patents

Processing method for activating NFC label issuing data Download PDF

Info

Publication number
CN115630656B
CN115630656B CN202210994829.2A CN202210994829A CN115630656B CN 115630656 B CN115630656 B CN 115630656B CN 202210994829 A CN202210994829 A CN 202210994829A CN 115630656 B CN115630656 B CN 115630656B
Authority
CN
China
Prior art keywords
tag
activation
data
state
data block
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
CN202210994829.2A
Other languages
Chinese (zh)
Other versions
CN115630656A (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 CN202210994829.2A priority Critical patent/CN115630656B/en
Publication of CN115630656A publication Critical patent/CN115630656A/en
Application granted granted Critical
Publication of CN115630656B publication Critical patent/CN115630656B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06KGRAPHICAL DATA READING; PRESENTATION OF DATA; RECORD CARRIERS; HANDLING RECORD CARRIERS
    • G06K7/00Methods or arrangements for sensing record carriers, e.g. for reading patterns
    • G06K7/10Methods or arrangements for sensing record carriers, e.g. for reading patterns by electromagnetic radiation, e.g. optical sensing; by corpuscular radiation
    • G06K7/10009Methods or arrangements for sensing record carriers, e.g. for reading patterns by electromagnetic radiation, e.g. optical sensing; by corpuscular radiation sensing by radiation using wavelengths larger than 0.1 mm, e.g. radio-waves or microwaves
    • G06K7/10257Methods or arrangements for sensing record carriers, e.g. for reading patterns by electromagnetic radiation, e.g. optical sensing; by corpuscular radiation sensing by radiation using wavelengths larger than 0.1 mm, e.g. radio-waves or microwaves arrangements for protecting the interrogation against piracy attacks
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F21/00Security arrangements for protecting computers, components thereof, programs or data against unauthorised activity
    • G06F21/60Protecting data
    • G06F21/604Tools and structures for managing or administering access control systems
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W8/00Network data management
    • H04W8/22Processing or transfer of terminal data, e.g. status or physical capabilities
    • H04W8/24Transfer of terminal data
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W8/00Network data management
    • H04W8/22Processing or transfer of terminal data, e.g. status or physical capabilities
    • H04W8/24Transfer of terminal data
    • H04W8/245Transfer of terminal data from a network towards a terminal
    • 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

Abstract

The embodiment of the invention relates to a processing method for activating NFC label issuing data, which comprises the following steps: the label activating device carries out label identification processing to be activated on the first batch of labels to generate a corresponding first identification list; transmitting a first local activation application instruction carrying a first identification list to a remote issuing data server; receiving a first configuration list returned by the issuing data server; performing local activation processing of issuing data on the first batch of tags according to the first configuration list to generate a corresponding first activation list; transmitting a first remote activation application instruction carrying a first activation list to an issuing data server; and displaying the remote activation result returned by the issuing data server. The NFC tag management method and the NFC tag management system can help solve the problem that the data risk of the filling data of the issuer is intercepted by the manufacturer, and can also ensure that the NFC tag cannot be rewritten after being activated.

Description

Processing method for activating NFC label issuing data
Technical Field
The invention relates to the technical field of data processing, in particular to a processing method for activating NFC label issuing data.
Background
Data release of the near field communication (Near Field Communication, NFC) tag includes two steps of release data filling and release data activation; the issuing data filling refers to writing data which needs to be written into the NFC tag into an issuing data storage area of the NFC tag in a block storage mode; the step of issuing data activation is to activate the data record corresponding to the NFC label after completing data filling in a data background so that the anti-counterfeiting traceability system can call the record to query information. We have found that this conventional data distribution process has a problem: after filling of the distribution data, the filling data is not limited in reading, and there is a risk that the manufacturer obtains the distribution manufacturer filling data.
To solve this problem, we have made the following improvements to issue data filling: the data block access status of the data storage block where some critical issue data is located in the issue data storage area is set to an unreadable and writable status in the last step of the filling. The manufacturer cannot directly obtain the internal data of the tag through the data block read instruction. Because we have modified the issue data filling process, the modification of the conventional issue data activation process is correspondingly required.
Disclosure of Invention
The invention aims at overcoming the defects of the prior art and provides a processing method for activating NFC label issuing data, electronic equipment and a computer readable storage medium; firstly, checking whether a data block access state of a designated data storage block on a tag is in an unreadable and writable state or not through interaction of tag activation equipment and an NFC tag, and if so, regarding the data block access state as the tag to be activated; the label activating device interacts with the remote issuing data server to obtain the identification information of the data blocks to be activated on each label to be activated; the local activation of the tag is completed by the interaction between the tag activation equipment and the NFC tag, and the data block access state of each corresponding data block on the NFC tag is set to be a readable and unwritable state; and then, through the interaction between the tag activation equipment and the issuing data server, the tag issuing data record corresponding to the locally activated NFC tag in the background tag issuing database is synchronously activated. The invention can solve the problem of data risk of the filling data of the publisher intercepted by the producer through the cooperation with the improvement scheme of the filling of the publishing data; in addition, the invention can also ensure that the NFC label can not be rewritten after being activated, thereby further improving the data security of the NFC label.
To achieve the above object, a first aspect of an embodiment of the present invention provides a processing method for activating NFC tag issuance data, where the method includes:
the label activating device carries out label identification processing to be activated on the first batch of labels to generate a corresponding first identification list;
transmitting a first local activation application instruction carrying the first identification list to a remote issuing data server; receiving a first configuration list returned by the issuing data server;
performing local activation processing of issuing data on the first batch of tags according to the first configuration list to generate a corresponding first activation list;
transmitting a first remote activation application instruction carrying the first activation list to the issuing data server; and displaying the remote activation result returned by the issuing data server.
Preferably, the first batch of tags includes a plurality of first NFC tags; the first NFC tag comprises a UID storage area and an issuing data storage area; the UID storage area is used for storing tag UID data, and the issuing data storage area is used for storing tag issuing data; the issuing data storage area comprises a plurality of data storage blocks, and each data storage block corresponds to a data block identifier and a data block access state; the data block access states include a readable and writable state, a readable and non-writable state, a non-readable and writable state, and a non-readable and non-writable state;
The first identification list includes a plurality of first tag identification data;
the first configuration list comprises a plurality of first configuration records; the first configuration record comprises a first tag identification field and a first data block identification field; the first data block identification field includes a plurality of first data block identifications;
the first activation list includes a plurality of first activation records; the first activation record includes a second tag identification field and a first activation status field; the first activation status field includes a local activation status and a local deactivation status.
Preferably, the tag activation apparatus performs tag identification processing to be activated on the first lot of tags to generate a corresponding first identification list, and specifically includes:
the tag activation equipment takes a locally preset data block check identifier as a current check identifier; transmitting a data block reading instruction carrying the current checking identification to each first NFC tag of the first batch of tags, and receiving a first instruction execution state returned by the current first NFC tag; if the first instruction execution state is an unreadable state, sending a UID reading instruction to the current first NFC tag, receiving a second instruction execution state and second instruction return data which are returned by the current first NFC tag, and if the second instruction execution state is a successful state, taking the second instruction return data as the corresponding first tag identification data; and the corresponding first identification list is formed by all the obtained first tag identification data.
Further preferably, the method further comprises:
the first NFC tag identifies a sending instruction of the tag activation device;
when the sending instruction is the data block reading instruction, extracting the current checking identification from the data block reading instruction; the data storage block with the data block identification matched with the current check identification in the issuing data storage area is used as a corresponding current data storage block; identifying the access state of the data block of the current data storage block; if the data block access state is an unreadable state, the first instruction execution state which is specifically set to be the unreadable state is returned to the tag activation equipment; if the data block access state is an unreadable and unwritable state, the first instruction execution state which is specifically set to be the error data block state is returned to the tag activation equipment; if the data block access state is a readable and writable state or a readable and unwritable state, extracting first instruction return data corresponding to the storage content composition of the current data storage block, and sending the first instruction execution state and the first instruction return data which are specifically set to be successful states back to the tag activation equipment;
And when the sending instruction is the UID reading instruction, extracting the tag UID data of the UID storage area as corresponding second instruction return data, and sending the second instruction execution state and the second instruction return data which are specifically set to be successful states back to the tag activation equipment.
Preferably, after the first local activation application instruction carrying the first identification list is sent to a remote issuing data server, the method further includes:
the issuing data server receives the first local activation application instruction sent by the tag activation equipment; extracting the first identification list from the first local activation application instruction;
traversing each first tag identification data of the first identification list; traversing, namely taking the first tag identification data which is currently traversed as corresponding current tag identification data; inquiring a preset label issuing database, and taking a label issuing data record with a label identification field matched with the current label identification data as a corresponding current label issuing data record; identifying whether the label activation state field of the current label issuing data record is in a remote non-activation state or not; if yes, the current tag identification data is used as a corresponding first tag identification field, each issuing data block identification of the issuing data block identification field of the current tag issuing data record is extracted to be used as a corresponding first data block identification, all the obtained first data block identifications form a corresponding first data block identification field, and the obtained first tag identification field and the obtained first data block identification field form a corresponding first configuration record; wherein the tag issuance database comprises a plurality of the tag issuance data records; the tag issuance data record includes the tag identification field, the tag activation status field, and the issuance data block identification field; the tag activation status field includes a remote activation status and a remote deactivation status; the distribution data block identification field includes a plurality of the distribution data block identifications;
And when the traversal is finished, the obtained first configuration records form the corresponding first configuration list and the corresponding first configuration list is returned to the tag activation equipment.
Preferably, the generating a corresponding first activation list according to the local activation processing of the first lot tag issue data by the first configuration list specifically includes:
the tag activation device traverses the first configuration record of the first configuration list; traversing, namely taking the first configuration record of the current traversal as a corresponding current configuration record, taking the first tag identification field and the first data block identification field of the current configuration record as corresponding current tag identifications and current data block identification sets, and taking the first NFC tag, of which the tag UID data is matched with the current tag identifications, in the first batch of tags as a corresponding current NFC tag; performing data block activation processing on the current NFC tag according to the current data block identification set; setting the corresponding first activation state field as a local activation state if the data block activation processing is successful, and setting the corresponding first activation state field as a local non-activation state if the data block activation processing is failed; and the current tag identification is used as the corresponding second tag identification field; the second tag identification field and the first activation state field are obtained to form a corresponding first activation record; and when the traversal is finished, the corresponding first activation list is formed by all the obtained first activation records.
Further, the performing data block activation processing on the current NFC tag according to the current data block identifier set specifically includes:
the tag activation device polls the first data block identifier of the current data block identifier set; when polling, the first data block identifier of the current polling is used as a corresponding current data block identifier, a data block activation instruction carrying the current data block identifier is sent to the current NFC tag, and a third instruction execution state returned by the current NFC tag is received; and when the polling is finished, confirming whether all the obtained execution states of the third instructions are successful, if so, confirming that the data block activation processing is successful, and if not, confirming that the data block activation processing is failed.
Further preferably, the method further comprises:
the current NFC tag identifies a sending instruction of the tag activation device;
when the sending instruction is the data block activating instruction, extracting the current data block identifier from the data block activating instruction; the data storage block with the data block identification matched with the current data block identification in the issuing data storage area is used as a corresponding current data storage block; identifying the access state of the data block of the current data storage block; if the data block access state is an unreadable state or a readable and unwritable state, setting the data block access state to be a readable and unwritable state, and sending the third instruction execution state which is specifically set to be a successful state back to the tag activation equipment; and if the data block access state is a readable and writable state or an unreadable and unwritable state, sending the third instruction execution state which is specifically set to be the error data block state back to the tag activation equipment.
Preferably, after the first remote activation application instruction carrying the first activation list is sent to the issuing data server, the method further includes:
the issuing data server receives the first remote activation application instruction sent by the tag activation equipment; extracting the first activation list from the first remote activation application instruction; and taking the first activation record with the first activation state field in the first activation list as a local activation state as a corresponding second activation record;
taking each second activation record as a corresponding current activation record, and taking the second tag identification field of the current activation record as corresponding current tag identification data; in a preset label issuing database, a label issuing data record with a label identification field matched with the current label identification data is used as a corresponding current label issuing data record; updating the label activation state field of the current label issuing data record into a remote activation state; if the updating is successful, setting the corresponding first record updating state as a successful state, and if the updating is failed, setting the corresponding first record updating state as a failed state; wherein the tag issuance database comprises a plurality of the tag issuance data records; the tag issuance data record includes the tag identification field, the tag activation status field, and an issuance data block identification field; the tag activation status field includes a remote activation status and a remote deactivation status; the distribution data block identification field includes a plurality of distribution data block identifications;
If all the obtained first record updating states are successful states, the remote activating result which is specifically set to be successful in remote updating is sent back to the tag activating device; if at least one of the first record updating states is a failure state, extracting the second tag identification field of the second activation record corresponding to the first record updating state in the failure state to serve as a corresponding first failure tag identification, and forming the corresponding remote activation result by all the obtained first failure tag identifications to be sent back to the tag activation equipment.
A second aspect of an embodiment of the present invention provides an electronic device, including: memory, processor, and transceiver;
the processor is configured to couple to the memory, and read and execute the instructions in the memory, so as to implement the method steps described in the first aspect;
the transceiver is coupled to the processor and is controlled by the processor to transmit and receive messages.
A third aspect of the embodiments of the present invention provides a computer-readable storage medium storing computer instructions that, when executed by a computer, cause the computer to perform the method of the first aspect described above.
The embodiment of the invention provides a processing method for activating NFC label issuing data, electronic equipment and a computer readable storage medium; firstly, checking whether a data block access state of a designated data storage block on a tag is in an unreadable and writable state or not through interaction of tag activation equipment and an NFC tag, and if so, regarding the data block access state as the tag to be activated; the label activating device interacts with the remote issuing data server to obtain the identification information of the data blocks to be activated on each label to be activated; the local activation of the tag is completed by the interaction between the tag activation equipment and the NFC tag, and the data block access state of each corresponding data block on the NFC tag is set to be a readable and unwritable state; and then, through the interaction between the tag activation equipment and the issuing data server, the tag issuing data record corresponding to the locally activated NFC tag in the background tag issuing database is synchronously activated. The invention solves the problem of data risk of the filling data of the issuer intercepted by the producer through the cooperation of the invention and the improvement scheme of the filling of the issuing data; in addition, the invention can also ensure that the NFC label can not be rewritten after being activated, thereby improving the data security of the NFC label.
Drawings
Fig. 1 is a schematic diagram of a processing method for activating NFC tag issuing data according to a first embodiment of the present invention;
fig. 2 is a schematic structural diagram of an electronic device according to a second embodiment of the present invention.
Detailed Description
In order to make the objects, technical solutions and advantages of the present invention 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.
An embodiment of the present invention provides a method for activating NFC tag issue data, as shown in fig. 1, which is a schematic diagram of a method for activating NFC tag issue data, and the method mainly includes the following steps:
step 1, label activating equipment carries out label identification processing to be activated on a first batch of labels to generate a corresponding first identification list;
wherein the first lot of tags comprises a plurality of first NFC tags; the first NFC tag comprises a UID storage area and an issuing data storage area; the UID storage area is used for storing tag UID data, and the issuing data storage area is used for storing tag issuing data; the issuing data storage area comprises a plurality of data storage blocks, and each data storage block corresponds to one data block identifier and one data block access state; the data block access states include a readable writable state, a readable non-writable state, a non-readable writable state, and a non-readable non-writable state;
The first identification list includes a plurality of first tag identification data;
here, the memory area of each first NFC tag has two parts: the tag issuing system comprises a UID storage area and an issuing data storage area, wherein the UID storage area is used for storing tag UID data, and the issuing data storage area is used for storing tag issuing data and consists of a plurality of data storage blocks; the NFC tag of the embodiment of the invention distributes a block identifier, namely a data block identifier, and a block access state, namely a data block access state, for each data storage block, wherein the data block access state comprises four states: a readable/writable state, a readable/non-writable state, a non-readable/writable state, and a non-readable/non-writable state, wherein the readable/writable state indicates that the storage content of the corresponding data storage block can be read or rewritten, the readable/non-writable state indicates that the storage content of the corresponding data storage block can be read or rewritten, and the non-readable/non-writable state indicates that the storage content of the corresponding data storage block cannot be read or rewritten; the first lot tag comprises a plurality of first NFC tags, but in extreme cases the first lot tag may also comprise only one NFC tag; the first batch of tags are a batch of NFC tags which have completed the filling of the release data, and the tags have the characteristics that the data block access states of some data storage blocks of key release data in the release data storage areas on the tags are set to be in unreadable and writable states in the last step of the filling of the release data; if each label in the first batch of labels completes the last step of data filling and is not yet activated, the data block access state of some data storage blocks on each first NFC label is in an unreadable and writable state, but in the actual production process, labels which are activated, deactivated or have not yet completed the last step of data filling are mixed in each batch of labels due to misoperation and other reasons, and in order to avoid the conditions of repeated activation or early activation and the like, the embodiment of the invention confirms the labels to be activated of the first batch of labels through the current step 1, and the first identification list is a confirmation result; each first tag identification data in the first identification list corresponds to UID information of one NFC tag which can be activated;
The specific implementation steps of the step 1 are as follows:
the tag activation equipment takes a locally preset data block check identifier as a current check identifier; transmitting a data block reading instruction carrying a current checking identifier to each first NFC tag of the first batch of tags, and receiving a first instruction execution state returned by the current first NFC tag; if the first instruction execution state is an unreadable state, sending a UID reading instruction to the current first NFC tag, receiving a second instruction execution state and second instruction return data which are returned by the current first NFC tag, and if the second instruction execution state is a successful state, taking the second instruction return data as corresponding first tag identification data; and forming a corresponding first identification list by all the obtained first tag identification data.
Here, the locally preset data block check identifier is a data block identifier parameter preset on the tag activation apparatus, which parameter can be set according to the storage plan of the issuing data storage area, and conventionally, a data block identifier of a data storage block which is commonly used but not used for storing security data such as a key or password is selected from the issuing data storage area as the data block check identifier; if the first NFC tag completes the last step of issuing data filling and is not activated yet, the data block access state of the data storage block corresponding to the data block check mark on the tag is necessarily an unreadable and writable state; based on the characteristics, the embodiment of the invention confirms whether the current tag is the tag to be activated or not through interaction between the tag activation equipment and the first NFC tag based on the data block reading instruction, and when the first NFC tag is confirmed to be the tag to be activated, namely, the first instruction execution state is the unreadable state, the UID reading instruction is sent to the first NFC tag to further obtain UID information of the tag to be activated, namely, the first tag identification data.
The specific implementation step of the step 1 is a processing step of the tag activation device side during interaction, and the following steps A1-A3 are processing steps of the first NFC tag side during interaction;
the method of the embodiment of the invention further comprises the following steps:
step A1, a first NFC tag identifies a sending instruction of tag activation equipment;
a2, when the sending instruction is a data block reading instruction, extracting a current checking identification from the data block reading instruction; the data storage block with the data block identification matched with the current checking identification in the issuing data storage area is used as the corresponding current data storage block; identifying the data block access state of the current data storage block; if the access state of the data block is the unreadable state, the first instruction execution state which is specifically set to be the unreadable state is returned to the tag activation equipment; if the data block access state is an unreadable or unwritable state, the first instruction execution state which is specifically set as the error data block state is returned to the tag activation equipment; if the access state of the data block is a readable and writable state or a readable and non-writable state, extracting the storage content of the current data storage block to form corresponding first instruction return data, and returning the first instruction execution state and the first instruction return data which are specifically set to be successful states to the tag activation equipment;
And A3, when the sending instruction is a UID reading instruction, extracting the tag UID data of the UID storage area as corresponding second instruction return data, and returning the second instruction execution state and the second instruction return data which are specifically set to be successful states to the tag activation equipment.
Step 2, a first local activation application instruction carrying a first identification list is sent to a remote issuing data server; receiving a first configuration list returned by the issuing data server;
wherein the first configuration list comprises a plurality of first configuration records; the first configuration record includes a first tag identification field and a first data block identification field; the first data block identification field includes a plurality of first data block identifications.
Here, in the embodiment of the present invention, the tag activation device interacts with the remote issuing data server to obtain the identification information of the data block to be activated on each tag to be activated, that is, the first configuration list; each first configuration record in the first configuration list corresponds to a first NFC tag, a first tag identification field is UID information corresponding to the NFC tag, and a first data block identification field is a data block identification set corresponding to a data storage block on the NFC tag, the data block access state of which is to be activated/updated; the current step 2 is a processing step of the interactive time stamp activating device side, and the following steps B1-B3 are processing steps of the remote issuing data server side during interaction;
After sending a first local activation application instruction carrying a first identification list to a remote issuing data server, the embodiment of the invention further comprises:
step B1, an issuing data server receives a first local activation application instruction sent by a tag activation device; extracting a first identification list from a first local activation application instruction;
step B2, traversing each first tag identification data of the first identification list; traversing, namely taking the first tag identification data of the current traversal as corresponding current tag identification data; inquiring a preset label issuing database, and taking a label issuing data record with a label identification field matched with the current label identification data as a corresponding current label issuing data record; and identifying whether a tag activation status field of the current tag issuance data record is a remote deactivation status; if yes, the current tag identification data is used as a corresponding first tag identification field, each issuing data block identification of the issuing data block identification field of the current tag issuing data record is extracted to be used as a corresponding first data block identification, all the obtained first data block identifications form a corresponding first data block identification field, and the obtained first tag identification field and the first data block identification field form a corresponding first configuration record;
The label issuing database comprises a plurality of label issuing data records; the tag release data record includes a tag identification field, a tag activation status field, and a release data block identification field; the tag activation status field includes a remote activation status and a remote deactivation status; the distribution data block identification field includes a plurality of distribution data block identifications;
here, the tag issuing database on the issuing data server side is used for storing information of all NFC tags which have completed the last step of issuing data filling, and each tag issuing data record corresponds to one NFC tag; the tag identification field is UID information corresponding to the NFC tag; the label activation state field indicates that the corresponding NFC label has completed label activation when the label activation state field is in a remote activation state, and indicates that the corresponding NFC label has not completed label activation when the label activation state field is in a remote deactivation state; the issuing data block identification field stores the data block identifications of all data storage blocks which correspond to the data block access states to be updated on the NFC tag when the tag is activated;
and B3, when the traversal is finished, forming a corresponding first configuration list by all the obtained first configuration records, and sending the corresponding first configuration list back to the tag activation equipment.
Step 3, performing local activation processing of issuing data on the first batch of tags according to the first configuration list to generate a corresponding first activation list;
Wherein the first activation list includes a plurality of first activation records; the first activation record includes a second tag identification field and a first activation status field; the first activation status field includes a local activation status and a local deactivation status;
the method specifically comprises the following steps: the tag activation equipment traverses a first configuration record of the first configuration list; traversing, namely taking a first configuration record of current traversing as a corresponding current configuration record, taking a first tag identification field and a first data block identification field of the current configuration record as corresponding current tag identifications and a current data block identification set, and taking a first NFC tag with tag UID data matched with the current tag identifications in the first batch of tags as a corresponding current NFC tag; performing data block activation processing on the current NFC tag according to the current data block identification set; setting a corresponding first activation state field as a local activation state if the data block activation processing is successful, and setting a corresponding first activation state field as a local non-activation state if the data block activation processing is failed; the current tag identification is used as a corresponding second tag identification field; and the second label identification field and the first activation state field form a corresponding first activation record; when the traversal is finished, forming a corresponding first activation list by all the obtained first activation records;
Here, in the current step, the tag activation device interacts with the first NFC tags corresponding to the first configuration records according to the first configuration list, and realizes local activation of the tags by setting the data block access states of the data storage blocks corresponding to the current data block identifier set on the first NFC tags to readable and non-writable states, and performs statistics on success or failure states of local activation of all the first NFC tags corresponding to the first configuration list to generate a first activation list;
the data block activation processing is performed on the current NFC tag according to the current data block identifier set, and specifically includes:
the tag activation equipment polls a first data block identifier of the current data block identifier set; when polling, the first data block identifier of the current polling is used as the corresponding current data block identifier, a data block activation instruction carrying the current data block identifier is sent to the current NFC tag, and a third instruction execution state returned by the current NFC tag is received; when the polling is finished, confirming whether all the obtained execution states of the third instructions are successful, if so, confirming that the data block activation processing is successful, and if not, confirming that the data block activation processing is failed;
The tag activation device generates a data block activation instruction based on each first data block identifier in the current data block identifier set, sends the data block activation instruction to the current NFC tag, completes updating of the data block access state of the data storage block corresponding to each first data block identifier through interaction with the data block activation instruction of the current NFC tag, counts all update states, namely third instruction execution states, and if all third instruction execution states are successful states, confirms that the data block activation process is successful to identify that the local activation of the current NFC tag is successful, otherwise, identifies that the local activation of the current NFC tag is failed through confirming that the data block activation process is failed.
The implementation step of the step 3 is a processing step of the tag activation device side during interaction, and the following steps C1-C2 are processing steps of the current NFC tag side during interaction;
the method of the embodiment of the invention further comprises the following steps:
step C1, the current NFC tag identifies a sending instruction of the tag activation equipment;
step C2, when the sending instruction is a data block activating instruction, extracting a current data block identifier from the data block activating instruction; and taking the data storage block with the data block identification matched with the current data block identification in the issuing data storage area as the corresponding current data storage block; identifying the data block access state of the current data storage block; if the data block access state is an unreadable state or a readable and writable state, setting the data block access state as a readable and writable state, and sending a third instruction execution state which is specifically set as a success state back to the tag activation equipment; if the data block access state is a readable and writable state or an unreadable and writable state, a third instruction execution state which is specifically set to be an error data block state is returned to the tag activation apparatus.
Step 4, sending a first remote activation application instruction carrying a first activation list to an issuing data server; and displaying the remote activation result returned by the issuing data server.
Here, through the interaction between the tag activation device and the issuing data server, the embodiment of the invention synchronously activates the tag issuing data record corresponding to the locally activated NFC tag in the background tag issuing database, and displays the synchronous activation result, namely the remote activation result; the current step 4 is a processing step of the tag activation device side during interaction, and the following steps D1 to D3 are processing steps of the remote issuing data server side during interaction;
after sending a first remote activation application instruction carrying a first activation list to an issuing data server, the embodiment of the invention further comprises:
step D1, the issuing data server receives a first remote activation application instruction sent by the tag activation equipment; extracting a first activation list from a first remote activation application instruction; and taking a first activation record with a first activation state field in the first activation list as a local activation state as a corresponding second activation record;
here, the second activation record is an activation record corresponding to the NFC tag that successfully completes the local activation;
Step D2, taking each second activation record as a corresponding current activation record, and taking a second tag identification field of the current activation record as corresponding current tag identification data; in the label issuing database, a label issuing data record with a label identification field matched with the current label identification data is used as a corresponding current label issuing data record; updating the label activation state field of the current label issuing data record into a remote activation state; if the updating is successful, setting the corresponding first record updating state as a successful state, and if the updating is failed, setting the corresponding first record updating state as a failed state;
step D3, if all the obtained first record updating states are successful states, a remote activating result which is specifically set as successful remote updating is sent back to the tag activating equipment; if at least one first record updating state is a failure state, extracting a second tag identification field of a second activation record corresponding to the first record updating state which is the failure state as a corresponding first failure tag identification, and forming a corresponding remote activation result by all the obtained first failure tag identifications to send back to the tag activation equipment.
In addition, it should be noted that, when displaying the remote activation result, the tag activation device also extracts each first failure tag identifier in the remote activation result that is not successful in remote update as a corresponding reset tag identifier, and extracts a second tag identifier field of the first activation record in which the first activation state field in the first activation list is in a local inactive state as a corresponding reset tag identifier; extracting a first data block identification field of a first configuration record, in which a first tag identification field in a first configuration list is matched with each reset tag identification, as a corresponding reset tag data block identification set; and resetting the data block access states of all the data storage blocks matched with the corresponding reset tag data block identification sets on the first NFC tag corresponding to each reset tag identification to an unreadable and writable state. In this way, the data block access state of the data storage blocks of all the first NFC tags which are failed in the secondary activation (including the local activation failure and the remote activation failure) can be restored to the state when the last step of filling the release data is completed, so that no readable risk exists in the release data of all the first NFC tags which are failed in the activation.
When the data block access states of all the data storage blocks matched with the corresponding reset tag data block identification sets on the first NFC tag corresponding to each reset tag identification are reset to the unreadable and writable state:
the processing steps of the label activating device side comprise: the tag activation device takes a first NFC tag corresponding to the current reset tag identifier and a reset tag data block identifier set as a corresponding current NFC tag and current data block identifier set; traversing each first data block identifier of the current data block identifier set, taking the first data block identifier of the current traversal as a corresponding current data block identifier, sending a data block deactivation instruction carrying the current data block identifier to the current NFC tag, and receiving a fourth instruction execution state returned by the current NFC tag;
the corresponding processing steps of the current NFC label side comprise: the current NFC tag identifies a sending instruction of the tag activation equipment; when the sending instruction is a data block deactivation instruction, extracting a current data block identifier from the data block deactivation instruction; and resetting the data block access state of the data storage block with the data block identification matched with the current data block identification in the issuing data storage area to an unreadable and writable state, and sending back a fourth instruction execution state of the specific successful state to the tag activation equipment when the data block access state is successfully reset.
Fig. 2 is a schematic structural diagram of an electronic device according to a second embodiment of the present invention. The electronic device may be a terminal device or a server for implementing the method of the embodiment of the present invention, or may be a terminal device or a server for implementing the method of the embodiment of the present invention, which is connected to the foregoing terminal device or server. As shown in fig. 2, the electronic device may include: a processor 301 (e.g., a CPU), a memory 302, a transceiver 303; the transceiver 303 is coupled to the processor 301, and the processor 301 controls the transceiving actions of the transceiver 303. The memory 302 may store various instructions for performing the various processing functions and implementing the processing steps described in the method embodiments previously described. Preferably, the electronic device according to the embodiment of the present invention further includes: a power supply 304, a system bus 305, and a communication port 306. The system bus 305 is used to implement communication connections between the elements. The communication port 306 is used for connection communication between the electronic device and other peripheral devices.
The system bus 305 referred to in fig. 2 may be a peripheral component interconnect standard (Peripheral Component Interconnect, PCI) bus, or an extended industry standard architecture (Extended Industry Standard Architecture, EISA) bus, or the like. The system bus may be classified into an address bus, a data bus, a control bus, and the like. For ease of illustration, the figures are shown with only one bold line, but not with only one bus or one type of bus. The communication interface is used to enable communication between the database access apparatus and other devices (e.g., clients, read-write libraries, and read-only libraries). The Memory may comprise random access Memory (Random Access Memory, RAM) and may also include Non-Volatile Memory (Non-Volatile Memory), such as at least one disk Memory.
The processor may be a general-purpose processor, including a central processing unit (Central Processing Unit, CPU), a network processor (Network Processor, NP), a graphics processor (Graphics Processing Unit, GPU), etc.; but also digital signal processors (Digital Signal Processor, DSP), application specific integrated circuits (Application Specific Integrated Circuit, ASIC), field programmable gate arrays (Field Programmable Gate Array, FPGA) or other programmable logic devices, discrete gate or transistor logic devices, discrete hardware components.
It should be noted that, the embodiments of the present invention also provide a computer readable storage medium, where instructions are stored, when the computer readable storage medium runs on a computer, to cause the computer to perform the method and the process provided in the above embodiments.
The embodiment of the invention also provides a chip for running the instructions, and the chip is used for executing the processing steps described in the embodiment of the method.
The embodiment of the invention provides a processing method for activating NFC label issuing data, electronic equipment and a computer readable storage medium; firstly, checking whether a data block access state of a designated data storage block on a tag is in an unreadable and writable state or not through interaction of tag activation equipment and an NFC tag, and if so, regarding the data block access state as the tag to be activated; the label activating device interacts with the remote issuing data server to obtain the identification information of the data blocks to be activated on each label to be activated; the local activation of the tag is completed by the interaction between the tag activation equipment and the NFC tag, and the data block access state of each corresponding data block on the NFC tag is set to be a readable and unwritable state; and then, through the interaction between the tag activation equipment and the issuing data server, the tag issuing data record corresponding to the locally activated NFC tag in the background tag issuing database is synchronously activated. The invention solves the problem of data risk of the filling data of the issuer intercepted by the producer through the cooperation of the invention and the improvement scheme of the filling of the issuing data; in addition, the invention can also ensure that the NFC label can not be rewritten after being activated, thereby improving the data security of the NFC label.
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 (3)

1. A processing method for activating NFC tag issuance data, the method comprising:
the label activating device carries out label identification processing to be activated on the first batch of labels to generate a corresponding first identification list;
transmitting a first local activation application instruction carrying the first identification list to a remote issuing data server; receiving a first configuration list returned by the issuing data server;
performing local activation processing of issuing data on the first batch of tags according to the first configuration list to generate a corresponding first activation list;
transmitting a first remote activation application instruction carrying the first activation list to the issuing data server; displaying the remote activation result returned by the issuing data server;
wherein, the liquid crystal display device comprises a liquid crystal display device,
the first lot tag includes a plurality of first NFC tags; the first NFC tag comprises a UID storage area and an issuing data storage area; the UID storage area is used for storing tag UID data, and the issuing data storage area is used for storing tag issuing data; the issuing data storage area comprises a plurality of data storage blocks, and each data storage block corresponds to a data block identifier and a data block access state; the data block access states include a readable and writable state, a readable and non-writable state, a non-readable and writable state, and a non-readable and non-writable state;
The first identification list includes a plurality of first tag identification data;
the first configuration list comprises a plurality of first configuration records; the first configuration record comprises a first tag identification field and a first data block identification field; the first data block identification field includes a plurality of first data block identifications;
the first activation list includes a plurality of first activation records; the first activation record includes a second tag identification field and a first activation status field; the first activation status field includes a local activation status and a local deactivation status;
the label activating device performs label identification processing to be activated on the first batch of labels to generate a corresponding first identification list, and specifically comprises the following steps:
the tag activation equipment takes a locally preset data block check identifier as a current check identifier; transmitting a data block reading instruction carrying the current checking identification to each first NFC tag of the first batch of tags, and receiving a first instruction execution state returned by the current first NFC tag; if the first instruction execution state is an unreadable state, sending a UID reading instruction to the current first NFC tag, receiving a second instruction execution state and second instruction return data which are returned by the current first NFC tag, and if the second instruction execution state is a successful state, taking the second instruction return data as the corresponding first tag identification data; and the corresponding first identification list is formed by all the obtained first tag identification data;
The method further comprises the steps of:
the first NFC tag identifies a sending instruction of the tag activation device;
when the sending instruction is the data block reading instruction, extracting the current checking identification from the data block reading instruction; the data storage block with the data block identification matched with the current check identification in the issuing data storage area is used as a corresponding current data storage block; identifying the access state of the data block of the current data storage block; if the data block access state is an unreadable state, the first instruction execution state which is specifically set to be the unreadable state is returned to the tag activation equipment; if the data block access state is an unreadable and unwritable state, the first instruction execution state which is specifically set to be the error data block state is returned to the tag activation equipment; if the data block access state is a readable and writable state or a readable and unwritable state, extracting first instruction return data corresponding to the storage content composition of the current data storage block, and sending the first instruction execution state and the first instruction return data which are specifically set to be successful states back to the tag activation equipment;
When the sending instruction is the UID reading instruction, extracting the tag UID data of the UID storage area as corresponding second instruction return data, and sending the second instruction execution state and the second instruction return data which are specifically set to be successful states back to the tag activation equipment;
after the first local activation application instruction carrying the first identification list is sent to a remote issuing data server, the method further comprises:
the issuing data server receives the first local activation application instruction sent by the tag activation equipment; extracting the first identification list from the first local activation application instruction;
traversing each first tag identification data of the first identification list; traversing, namely taking the first tag identification data which is currently traversed as corresponding current tag identification data; inquiring a preset label issuing database, and taking a label issuing data record with a label identification field matched with the current label identification data as a corresponding current label issuing data record; identifying whether the label activation state field of the current label issuing data record is in a remote non-activation state or not; if yes, the current tag identification data is used as a corresponding first tag identification field, each issuing data block identification of the issuing data block identification field of the current tag issuing data record is extracted to be used as a corresponding first data block identification, all the obtained first data block identifications form a corresponding first data block identification field, and the obtained first tag identification field and the obtained first data block identification field form a corresponding first configuration record; wherein the tag issuance database comprises a plurality of the tag issuance data records; the tag issuance data record includes the tag identification field, the tag activation status field, and the issuance data block identification field; the tag activation status field includes a remote activation status and a remote deactivation status; the distribution data block identification field includes a plurality of the distribution data block identifications;
When the traversal is finished, the first configuration list corresponding to all the obtained first configuration records is formed and returned to the tag activation equipment;
the generating a corresponding first activation list by performing local activation processing of issuing data on the first lot of tags according to the first configuration list specifically includes:
the tag activation device traverses the first configuration record of the first configuration list; traversing, namely taking the first configuration record of the current traversal as a corresponding current configuration record, taking the first tag identification field and the first data block identification field of the current configuration record as corresponding current tag identifications and current data block identification sets, and taking the first NFC tag, of which the tag UID data is matched with the current tag identifications, in the first batch of tags as a corresponding current NFC tag; performing data block activation processing on the current NFC tag according to the current data block identification set; setting the corresponding first activation state field as a local activation state if the data block activation processing is successful, and setting the corresponding first activation state field as a local non-activation state if the data block activation processing is failed; and the current tag identification is used as the corresponding second tag identification field; the second tag identification field and the first activation state field are obtained to form a corresponding first activation record; when the traversing is finished, forming a corresponding first activation list by all the obtained first activation records;
The data block activation processing is performed on the current NFC tag according to the current data block identifier set, and specifically includes:
the tag activation device polls the first data block identifier of the current data block identifier set; when polling, the first data block identifier of the current polling is used as a corresponding current data block identifier, a data block activation instruction carrying the current data block identifier is sent to the current NFC tag, and a third instruction execution state returned by the current NFC tag is received; when the polling is finished, confirming whether all the obtained execution states of the third instructions are successful states, if so, confirming that the data block activation processing is successful, and if not, confirming that the data block activation processing is failed;
the method further comprises the steps of:
the current NFC tag identifies a sending instruction of the tag activation device;
when the sending instruction is the data block activating instruction, extracting the current data block identifier from the data block activating instruction; the data storage block with the data block identification matched with the current data block identification in the issuing data storage area is used as a corresponding current data storage block; identifying the access state of the data block of the current data storage block; if the data block access state is an unreadable state or a readable and unwritable state, setting the data block access state to be a readable and unwritable state, and sending the third instruction execution state which is specifically set to be a successful state back to the tag activation equipment; if the data block access state is a readable and writable state or an unreadable and unwritable state, sending the third instruction execution state which is specifically set to be the error data block state back to the tag activation equipment;
After the first remote activation application instruction carrying the first activation list is sent to the issuing data server, the method further includes:
the issuing data server receives the first remote activation application instruction sent by the tag activation equipment; extracting the first activation list from the first remote activation application instruction; and taking the first activation record with the first activation state field in the first activation list as a local activation state as a corresponding second activation record;
taking each second activation record as a corresponding current activation record, and taking the second tag identification field of the current activation record as corresponding current tag identification data; in a preset label issuing database, a label issuing data record with a label identification field matched with the current label identification data is used as a corresponding current label issuing data record; updating the label activation state field of the current label issuing data record into a remote activation state; if the updating is successful, setting the corresponding first record updating state as a successful state, and if the updating is failed, setting the corresponding first record updating state as a failed state; wherein the tag issuance database comprises a plurality of the tag issuance data records; the tag issuance data record includes the tag identification field, the tag activation status field, and an issuance data block identification field; the tag activation status field includes a remote activation status and a remote deactivation status; the distribution data block identification field includes a plurality of distribution data block identifications;
If all the obtained first record updating states are successful states, the remote activating result which is specifically set to be successful in remote updating is sent back to the tag activating device; if at least one of the first record updating states is a failure state, extracting the second tag identification field of the second activation record corresponding to the first record updating state in the failure state to serve as a corresponding first failure tag identification, and forming the corresponding remote activation result by all the obtained first failure tag identifications to be sent back to the tag activation equipment.
2. An electronic device, comprising: memory, processor, and transceiver;
the processor is configured to couple to the memory, read and execute the instructions in the memory to implement the method steps of claim 1;
the transceiver is coupled to the processor and is controlled by the processor to transmit and receive messages.
3. A computer-readable storage medium storing computer instructions that, when executed by a computer, cause the computer to perform the instructions of the method of claim 1.
CN202210994829.2A 2022-08-18 2022-08-18 Processing method for activating NFC label issuing data Active CN115630656B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202210994829.2A CN115630656B (en) 2022-08-18 2022-08-18 Processing method for activating NFC label issuing data

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202210994829.2A CN115630656B (en) 2022-08-18 2022-08-18 Processing method for activating NFC label issuing data

Publications (2)

Publication Number Publication Date
CN115630656A CN115630656A (en) 2023-01-20
CN115630656B true CN115630656B (en) 2023-06-27

Family

ID=84902476

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202210994829.2A Active CN115630656B (en) 2022-08-18 2022-08-18 Processing method for activating NFC label issuing data

Country Status (1)

Country Link
CN (1) CN115630656B (en)

Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN114492489A (en) * 2022-01-24 2022-05-13 芯电智联(北京)科技有限公司 NFC label verification system based on dynamic data
CN115796217A (en) * 2022-11-11 2023-03-14 芯电智联(北京)科技有限公司 Activation system of NFC (near field communication) anti-counterfeit label

Family Cites Families (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
EP2538641A1 (en) * 2011-06-23 2012-12-26 Swisscom AG Secure tag management method and system
CN103413161B (en) * 2013-07-30 2018-04-27 复旦大学 A kind of method of changeable electronic tag and switching for safe mode
CN103413165B (en) * 2013-08-07 2017-08-25 歌尔股份有限公司 Control the method and controlled NFC label of NFC label
US10747968B2 (en) * 2017-11-22 2020-08-18 Jeffrey S. Melcher Wireless device and selective user control and management of a wireless device and data
CN110097653A (en) * 2018-09-20 2019-08-06 长城汽车股份有限公司 The Activiation method and device of electronic tag
CN111092719B (en) * 2018-10-23 2022-11-15 中国银联股份有限公司 Label data refreshing method and system, payment method and system

Patent Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN114492489A (en) * 2022-01-24 2022-05-13 芯电智联(北京)科技有限公司 NFC label verification system based on dynamic data
CN115796217A (en) * 2022-11-11 2023-03-14 芯电智联(北京)科技有限公司 Activation system of NFC (near field communication) anti-counterfeit label

Also Published As

Publication number Publication date
CN115630656A (en) 2023-01-20

Similar Documents

Publication Publication Date Title
TWI695318B (en) Method, device and electronic equipment for updating application program on user terminal
JPH10171681A (en) Object-oriented device management system
CN108416657B (en) Order generation method and equipment based on consultation service
CN110046029A (en) Data processing method and device applied to multi-level buffer in cluster
CN103391222A (en) System and method for monitoring web service
CN110956436A (en) Data management method, device and system for welding production line
CN112733206A (en) Resource allocation method, device, server and medium
CN105324752A (en) Systems, methods, and computer program products for managing service upgrades
CN115633338B (en) NFC tag data updating processing method, NFC tag data updating processing equipment and storage medium
CN107423620B (en) Management method and device for storage server service process
CN115630656B (en) Processing method for activating NFC label issuing data
CN105631644B (en) Equipment production control method and NFC intelligent terminal
CN110599133A (en) Data processing method and device based on block chain network and storage medium
CN111931885B (en) Method and device for processing product logistics information
CN114580597A (en) Production label supplementing method for NFC anti-counterfeiting label
CN114596165A (en) Block chain system and method for registering, selling and managing financial products
CN111586078A (en) 8583 message inline transaction simulation tool
CN106775588A (en) A kind of firmware upgrade method based on principal and subordinate processor framework
CN111414151B (en) Page generation method and device for process application, electronic equipment and storage medium
CN111666132A (en) Distributed transaction implementation method, device, computer system and readable storage medium
JP2006252262A (en) Maintenance support system, maintenance support method, maintenance terminal, and program using ic label
CN113762821B (en) Cargo information processing method, device, equipment and storage medium
CN114756291B (en) Hardware self-adaption method and device
CN111563092B (en) Public service data updating method and device
CN112702200B (en) Alliance link point management system, method and device, electronic equipment and storage medium

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