CN113705258B - Method for exchanging data between reader and RFID tag - Google Patents
Method for exchanging data between reader and RFID tag Download PDFInfo
- Publication number
- CN113705258B CN113705258B CN202110979015.7A CN202110979015A CN113705258B CN 113705258 B CN113705258 B CN 113705258B CN 202110979015 A CN202110979015 A CN 202110979015A CN 113705258 B CN113705258 B CN 113705258B
- Authority
- CN
- China
- Prior art keywords
- reader
- rfid tag
- rfid
- instruction
- epc
- 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
Links
Images
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06K—GRAPHICAL DATA READING; PRESENTATION OF DATA; RECORD CARRIERS; HANDLING RECORD CARRIERS
- G06K7/00—Methods or arrangements for sensing record carriers, e.g. for reading patterns
- G06K7/10—Methods or arrangements for sensing record carriers, e.g. for reading patterns by electromagnetic radiation, e.g. optical sensing; by corpuscular radiation
- G06K7/10009—Methods 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/10198—Methods 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 setting parameters for the interrogator, e.g. programming parameters and operating modes
-
- Y—GENERAL 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
- Y02—TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
- Y02D—CLIMATE 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/00—Reducing energy consumption in communication networks
- Y02D30/70—Reducing energy consumption in communication networks in wireless communication networks
Landscapes
- Health & Medical Sciences (AREA)
- Toxicology (AREA)
- Physics & Mathematics (AREA)
- Engineering & Computer Science (AREA)
- Electromagnetism (AREA)
- General Health & Medical Sciences (AREA)
- Artificial Intelligence (AREA)
- Computer Vision & Pattern Recognition (AREA)
- General Physics & Mathematics (AREA)
- Theoretical Computer Science (AREA)
- Near-Field Transmission Systems (AREA)
Abstract
The invention discloses a data exchange method between a reader and an RFID tag, which relates to the technical field of RFID data processing and solves the technical problem of low throughput rate of the existing data exchange, and comprises a selection stage and a inventory stage; in the selection stage, a reader sends a Select instruction to an RFID tag, a downlink control command is embedded in the Select instruction, the RFID tag group is divided in the stage, and one RFID tag group is selected to enter the inventory stage; in the inventory stage, a reader acquires an EPC from the RFID tag entering the inventory stage, the EPC represents an electronic product code, uplink data is embedded in the EPC, and the reader performs read-write operation according to the acquired RFID tag selected by the EPC; the invention has the advantages of high specific throughput rate and high data exchange efficiency.
Description
Technical Field
The invention relates to the technical field of RFID data processing, in particular to the technical field of a data exchange method between a reader and an RFID tag.
Background
RFID is a technology for achieving the purpose of identification by directly and non-contact data communication between a reader and a tag. With the high-speed development of digital technology applications such as 5G, cloud computing, big data, sensors and the like, the RFID system is applied to the scale of RFID, and has wide application in the aspects of identity recognition, logistics, traffic, anti-counterfeiting, food, asset management and the like.
In the conventional technology, in communication between the reader and the RFID tag, the reader and the RFID tag exchange data by using a Read/Write instruction in the Access stage, however, the throughput is not high in this way, and the data exchange capability and throughput have yet to be improved.
Through improving the communication mode, the throughput rate and the efficiency of data exchange can be improved.
Disclosure of Invention
The invention aims at: the invention provides a data exchange method between a reader and an RFID label in order to solve the technical problems.
The invention adopts the following technical scheme for realizing the purposes:
a data exchange method between reader and RFID label includes selecting stage, inventory stage;
in the selection stage, a reader sends a Select instruction to an RFID tag, a downlink control command is embedded in the Select instruction, the RFID tag group is divided in the stage, and one RFID tag group is selected to enter the inventory stage;
in the inventory phase, a reader acquires an EPC from the RFID tag entering the inventory phase, the EPC represents an electronic product code, uplink data is embedded in the EPC, and the reader performs read-write operation according to the RFID tag selected by the acquired EPC.
Preferably, the inventory phase comprises the following specific steps:
step S1: a reader sends a Query instruction to the RFID tags, wherein the Query instruction comprises Q, and the value of Q is the number of the RFID tags estimated by the reader;
step S2: RFID tag is 0 to 2 Q -1 generating a random number, the tag with the generated random number 0 replying to the reader to the RN16, otherwise not replying;
step S3: if the RFID tags reply and enter the step S6, if no RFID tags reply and enter the step S4, if a plurality of RFID tags reply and collide, a QueryAjust instruction is sent by a reader to modify Q and return to the step S2;
step S4: the reader sends a QueryRep instruction to the RFID tag, the random number generated by the RFID tag receiving the QueryRep instruction is reduced by 1, the tag with the random number of 0 replies RN16 to the reader, and otherwise, the tag does not reply;
step S5: if there is RFID label to reply to enter step S6, if there is no RFID label to reply or if multiple RFID labels reply and collide, the reader sends QueryAjust instruction to modify Q to return to step S2;
step S6: and the reader receives the RN16 instruction, sends an ACK instruction to the RFID tag, and the RFID replies the EPC instruction.
Preferably, the fields of the Select instruction include Command, target, action, memBank, pointer, length, mask, truncate and CRC-16.
Preferably, the specific method for embedding the downlink control command in the Select instruction is that the downlink control command is written into the Mask field of the Select instruction, and the MemBank field is set to 01, that is, the EPC is selected as a Mask storage area on an RFID tag.
The beneficial effects of the invention are as follows:
by embedding a downlink control command in the Select instruction and uplink data in the EPC, the data throughput efficiency between the reader and the RFID is improved, and compared with the traditional data exchange method, the access phase is not required to be entered; the step of the inventory phase avoids the occurrence of conflict, so that the data exchange is orderly carried out, invalid exchange is avoided, and the efficiency is further improved; the downlink control command is embedded in the Mask field of the Select, so that the implementation is simple, the popularization is easy, and the application range is wide; setting the Member field to select the EPC as a mask storage area, and embedding uplink data is simple and convenient.
Drawings
Fig. 1 is a schematic diagram of data exchange between a reader and an RFID tag of example 1.
Detailed Description
For the purpose of making the objects, technical solutions and advantages of the embodiments of the present invention more apparent, the technical solutions of the embodiments of the present invention will be clearly and completely described below with reference to the accompanying drawings in the embodiments of the present invention, and it is apparent that the described embodiments are some embodiments of the present invention, but not all embodiments of the present invention. The components of the embodiments of the present invention generally described and illustrated in the figures herein may be arranged and designed in a wide variety of different configurations.
Thus, the following detailed description of the embodiments of the invention, as presented in the figures, is not intended to limit the scope of the invention, as claimed, but is merely representative of selected embodiments of the invention. 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.
Example 1
As shown in fig. 1, the embodiment provides a method for exchanging data between a reader and an RFID tag, which includes a selection stage and a inventory stage;
in the selection stage, a reader sends a Select instruction to an RFID tag, a downlink control command is embedded in the Select instruction, the RFID tag group is divided in the stage, and one RFID tag group is selected to enter the inventory stage;
specifically, in this embodiment, preferably, the specific steps of the inventory phase are:
step S1: a reader sends a Query instruction to the RFID tags, wherein the Query instruction comprises Q, and the value of Q is the number of the RFID tags estimated by the reader;
step S2: RFID tag is 0 to 2 Q -1 generating a random number, the tag with the generated random number 0 replying to the reader to the RN16, otherwise not replying;
step S3: if the RFID tags reply and enter the step S6, if no RFID tags reply and enter the step S4, if a plurality of RFID tags reply and collide, a QueryAjust instruction is sent by a reader to modify Q and return to the step S2;
step S4: the reader sends a QueryRep instruction to the RFID tag, the random number generated by the RFID tag receiving the QueryRep instruction is reduced by 1, the tag with the random number of 0 replies RN16 to the reader, and otherwise, the tag does not reply;
step S5: if there is RFID label to reply to enter step S6, if there is no RFID label to reply or if multiple RFID labels reply and collide, the reader sends QueryAjust instruction to modify Q to return to step S2;
step S6: and the reader receives the RN16 instruction, sends an ACK instruction to the RFID tag, and the RFID replies the EPC instruction.
In the inventory phase, a reader acquires an EPC from an RFID tag entering the inventory phase, the EPC represents an electronic product code, and returned uplink data is embedded in the EPC; and the reader performs read-write operation on the RFID tag according to the acquired EPC.
As a preferred solution of this embodiment, the fields of the Select instruction include Command, target, action, memBank, pointer, length, mask, truncate and CRC-16, and the fields of the Select instruction and their respective bits refer to table 1 below, where the Select instruction is marked with a Command field with a content of 1010, the MemBank field is used to Select a storage area on the RFID tag for the Mask, the Pointer field specifies an offset of the Mask in the corresponding storage area, that is to say, indicates that the Mask will be aligned from there, the Length field specifies a Length of the Mask, the unit is bit, and Mask is Mask, and in this embodiment, the RFID tag is not required to reply after the reader issues the Select instruction:
table 1: select instruction field
Specifically, the specific method for embedding the downlink control command in the Select instruction may be that the downlink control command is written into the Mask field of the Select instruction, the Mask field may be specified according to a user requirement, where the MemBank field is set to 01, that is, the EPC is selected as a Mask storage area on the RFID tag, the tag extracts the field to parse, and the downlink control command is transmitted to a sensor to be read, so as to achieve control over the sensor, and the sensor embeds the returned data into the EPC according to the field setting. In the data exchange flow, the reader compares the received EPC with the Mask set in advance, and the EPC passing the comparison is sent to the remote computer.
Claims (3)
1. A data exchange method between a reader and an RFID tag is characterized by comprising a selection stage and a inventory stage,
in the selection stage, a reader sends a Select instruction to an RFID tag, a downlink control command is embedded in the Select instruction, the RFID tag group is divided in the stage, and one RFID tag group is selected to enter the inventory stage;
in the inventory phase, a reader acquires an EPC from an RFID tag entering the inventory phase, the EPC represents an electronic product code, and uplink data is embedded in the EPC; the reader performs data reading and writing operation on the RFID tags selected by the acquired EPC;
the inventory phase comprises the following specific steps:
step S1: a reader sends a Query instruction to the RFID tags, wherein the Query instruction comprises Q, and the value of Q is the number of the RFID tags estimated by the reader;
step S2: RFID tag is 0 to 2 Q -1 generating a random number, the tag with the generated random number 0 replying to the reader to the RN16, otherwise not replying;
step S3: if the RFID tags reply and enter the step S6, if no RFID tags reply and enter the step S4, if a plurality of RFID tags reply and collide, a QueryAjust instruction is sent by a reader to modify Q and return to the step S2;
step S4: the reader sends a QueryRep instruction to the RFID tag, the random number generated by the RFID tag receiving the QueryRep instruction is reduced by 1, the tag with the random number of 0 replies RN16 to the reader, and otherwise, the tag does not reply;
step S5: if there is RFID label to reply to enter step S6, if there is no RFID label to reply or if multiple RFID labels reply and collide, the reader sends QueryAjust instruction to modify Q to return to step S2;
step S6: and the reader receives the RN16 instruction, sends an ACK instruction to the RFID tag, and the RFID replies the EPC instruction.
2. The method of claim 1, wherein the fields of the Select instruction include Command, target, action, memBank, pointer, length, mask, truncate and CRC-16.
3. The method for exchanging data between a reader and an RFID tag according to claim 2, wherein the specific method for embedding the downlink control command in the Select command is to write the downlink control command into the Mask field of the Select command, and set the MemBank field to 01, i.e. Select the EPC as a Mask storage area on the RFID tag.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202110979015.7A CN113705258B (en) | 2021-08-24 | 2021-08-24 | Method for exchanging data between reader and RFID tag |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202110979015.7A CN113705258B (en) | 2021-08-24 | 2021-08-24 | Method for exchanging data between reader and RFID tag |
Publications (2)
Publication Number | Publication Date |
---|---|
CN113705258A CN113705258A (en) | 2021-11-26 |
CN113705258B true CN113705258B (en) | 2023-05-16 |
Family
ID=78654532
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN202110979015.7A Active CN113705258B (en) | 2021-08-24 | 2021-08-24 | Method for exchanging data between reader and RFID tag |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN113705258B (en) |
Citations (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN111343617A (en) * | 2020-01-20 | 2020-06-26 | 太原理工大学 | EPC protocol improvement method for improving CRFID data transmission rate |
CN112836535A (en) * | 2019-11-25 | 2021-05-25 | 珠海晶通科技有限公司 | Rapid inventory method for radio frequency identification electronic tag |
Family Cites Families (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101944171B (en) * | 2010-07-08 | 2013-02-13 | 电子科技大学 | Multi-tag identification method of RFID reader |
CN103984976B (en) * | 2013-02-08 | 2017-06-30 | 台湾开发建设股份有限公司 | Method, device and system for using electronic tag |
CN107832649B (en) * | 2017-11-03 | 2020-12-18 | 锐捷网络股份有限公司 | Label inventory method and equipment |
CN109472177B (en) * | 2018-11-06 | 2022-02-22 | 南京杰思微电子技术有限公司 | Inventory method capable of reading TID (terminal identification) number of electronic tag |
CN109598164A (en) * | 2018-12-03 | 2019-04-09 | 南京航空航天大学 | A kind of intelligent commodity shelf system based on RFID |
-
2021
- 2021-08-24 CN CN202110979015.7A patent/CN113705258B/en active Active
Patent Citations (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN112836535A (en) * | 2019-11-25 | 2021-05-25 | 珠海晶通科技有限公司 | Rapid inventory method for radio frequency identification electronic tag |
CN111343617A (en) * | 2020-01-20 | 2020-06-26 | 太原理工大学 | EPC protocol improvement method for improving CRFID data transmission rate |
Also Published As
Publication number | Publication date |
---|---|
CN113705258A (en) | 2021-11-26 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
EP1914659B1 (en) | Bi-slot tree based tag identification method in RFID systems | |
US7612672B2 (en) | Query tree based tag identification method in RFID systems | |
US20150213293A1 (en) | Radio frequency identification readers, methods and computer program products for adjusting a query command slot-counter parameter q | |
US8002173B2 (en) | Automatic data collection device, method and article | |
CN106650530A (en) | Enhanced quad-tree anti-collision algorithm suitable for RFID system | |
CN100407229C (en) | Non-contact IC tag system | |
CN102024163A (en) | Anti-collision method with packet previewing mechanism | |
CN102708341A (en) | Label anti-collision method for radio frequency identification (RFID) system | |
CN109472177B (en) | Inventory method capable of reading TID (terminal identification) number of electronic tag | |
EP2244205B1 (en) | Communication method for radio frequency identification | |
CN106886727A (en) | A kind of method of ultrahigh frequency electronic tag memory batch write-in | |
CN103218635B (en) | A kind of RFID anti-collision method based on mixing multiway tree search | |
CN113705258B (en) | Method for exchanging data between reader and RFID tag | |
Choi et al. | Scanning-Based Pre-Processing for En hanced Tag Anti-Collision Protocols | |
Wang et al. | A physical layer network coding based tag anti-collision algorithm for rfid system | |
CN101414345B (en) | Method and system for answering radio frequency identification signal, label and reader | |
CN107451635B (en) | Ultrahigh frequency RFID system | |
Liu et al. | A fast and stable anti-collision algorithm for the EPCglobal UHF Class 1 Generation 2 standard | |
Wang et al. | A capture-aware and blocking binary tree protocol for RFID tag identification | |
CN118519969B (en) | Digital storage management system and device for positioning type entity files | |
CN113268999B (en) | RFID anti-collision method based on continuous time slot grouping in storage environment | |
Tan | Dynamic Tree Based Anti-Collision Algorithm for RFID System | |
Mvoulabolo et al. | Performance analysis of binary search based RFID anti-collision algorithms | |
Yan | Full Permutation Based Binary Search (FP-BS) Anti-collision Algorithm for RFID | |
Wang et al. | Research on multi tag anti-collision algorithm based on RFID system |
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 |