WO2021103116A1 - Method, apparatus and device for reading data of rfid tag, and storage medium - Google Patents

Method, apparatus and device for reading data of rfid tag, and storage medium Download PDF

Info

Publication number
WO2021103116A1
WO2021103116A1 PCT/CN2019/123776 CN2019123776W WO2021103116A1 WO 2021103116 A1 WO2021103116 A1 WO 2021103116A1 CN 2019123776 W CN2019123776 W CN 2019123776W WO 2021103116 A1 WO2021103116 A1 WO 2021103116A1
Authority
WO
WIPO (PCT)
Prior art keywords
electronic tag
data
rfid
reader
tag
Prior art date
Application number
PCT/CN2019/123776
Other languages
French (fr)
Chinese (zh)
Inventor
赵旭
Original Assignee
独角兽网络科技(苏州)有限公司
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 独角兽网络科技(苏州)有限公司 filed Critical 独角兽网络科技(苏州)有限公司
Publication of WO2021103116A1 publication Critical patent/WO2021103116A1/en

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/10198Methods 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
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06KGRAPHICAL DATA READING; PRESENTATION OF DATA; RECORD CARRIERS; HANDLING RECORD CARRIERS
    • G06K17/00Methods or arrangements for effecting co-operative working between equipments covered by two or more of main groups G06K1/00 - G06K15/00, e.g. automatic card files incorporating conveying and reading operations
    • G06K17/0022Methods or arrangements for effecting co-operative working between equipments covered by two or more of main groups G06K1/00 - G06K15/00, e.g. automatic card files incorporating conveying and reading operations arrangements or provisious for transferring data to distant stations, e.g. from a sensing device
    • G06K17/0029Methods or arrangements for effecting co-operative working between equipments covered by two or more of main groups G06K1/00 - G06K15/00, e.g. automatic card files incorporating conveying and reading operations arrangements or provisious for transferring data to distant stations, e.g. from a sensing device the arrangement being specially adapted for wireless interrogation of grouped or bundled articles tagged with wireless record carriers
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06KGRAPHICAL DATA READING; PRESENTATION OF DATA; RECORD CARRIERS; HANDLING RECORD CARRIERS
    • 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/10019Methods 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 resolving collision on the communication channels between simultaneously or concurrently interrogated record carriers.
    • 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

Definitions

  • the present invention relates to the field of communication technology, and in particular to a method, device, equipment and storage medium for reading RFID tag data.
  • RFID Radio Frequency Identification
  • the existing RFID system is shown in Figure 1. It usually includes an electronic tag, a reader, and an antenna (reader antenna, electronic tag antenna) for data communication between the electronic tag and the reader.
  • the electronic tag stores Electronic data in a certain format is used as the identification information to identify the item.
  • the electronic tag is attached to the item to be identified and used as the electronic mark of the item to be identified.
  • the reader sends a command to the electronic tag, and the electronic tag is based on the received
  • the reader instruction of the reader transmits the stored identification data to the reader to realize data communication.
  • the reader reads and decodes the data and then transfers the data to the control device or network for related data processing.
  • the management of the RFID system in the prior art usually relies on the management software on the computer, and the computer has different operating systems in different use environments, such as Windows XP ⁇ Windows Vista ⁇ Windows 7 ⁇ Windows 8 ⁇ Windows 10 and Linux, etc. ,
  • the management software runs in the environment of different systems, and different applications and RFID middleware are needed to realize the management and control of the equipment.
  • customized development is required.
  • the operating system is upgraded, there may be changes in the original application program interface due to the upgrade, resulting in management software incompatibility, non-working, or even management software crashes. It is more difficult for ordinary users to deal with such situations.
  • the present invention provides a method, device, equipment and storage medium for reading RFID tag data.
  • the present invention provides a method for reading RFID tag data, including:
  • the RFID reader is used to find the corresponding electronic tag; select the electronic tag confirmed by the anti-collision operation and authenticate the selected electronic tag;
  • the present invention provides a device for reading RFID tag data, including a configuration module and a reading module, wherein:
  • the configuration module is used to send configuration commands to an RFID reader, and the RFID reader is used to find the corresponding electronic tag; select the electronic tag confirmed by the anti-collision operation and authenticate the selected electronic tag;
  • the reading module is used to receive the data of the above electronic tag when the authentication is passed.
  • the present invention provides an RFID device including: a memory, a processor, and a computer program stored on the memory and capable of running on the processor, and the computer program is implemented when the processor is executed The steps of the method as described in any one of the above.
  • the present invention provides a computer-readable storage medium having a computer program stored on the computer-readable storage medium, and when the computer program is executed by a processor, the steps of the method described in any of the above are implemented.
  • the method, device, device and storage medium for reading RFID tag data provided by the present invention can be adapted to different operating system environments and overcome the problem that existing equipment requires different management programs to control.
  • operating system upgrades may cause Changes in the underlying interface SDK, etc., caused the original management program to fail to work normally.
  • Figure 1 is a structural diagram of an existing RFID system
  • Figure 2 shows the RFID system and its components in an exemplary embodiment of the present invention
  • Figure 3 is a diagram of the RFID reader and electronic tag components in an exemplary embodiment of the present invention.
  • Fig. 4 is a flowchart of reading and writing of RFID tag data in an exemplary embodiment of the present invention.
  • Fig. 5 is an interactive diagram of reading and writing RFID tag data in an exemplary embodiment of the present invention.
  • Fig. 6 is a diagram of a device for reading and writing RFID tag data in an exemplary embodiment of the present invention.
  • the RFID system consists of three parts: an electronic tag, a reader and a terminal.
  • the communication between the terminal and the reader is wired communication, and the communication between the reader and the electronic tag
  • the communication is wireless communication, and the basic communication process is read and write ROM ⁇ antenna ⁇ electronic tag ⁇ output.
  • the wireless communication in the reader is completed through a radio frequency module, which includes a power supply device, a radio frequency oscillator, a radio frequency processor, a radio frequency receiver, and a preamplifier.
  • the radio frequency oscillator generates a signal, modulates the transmitted signal through the radio frequency processor, and sends it to the antenna to send to the electronic tag.
  • the signal sent back from the electronic tag is received by the radio frequency receiver, amplified and sent to the control module for processing.
  • the control module is responsible for communicating with the application system software and controlling the communication between the reader and the electronic tag. It is an important part of the reader.
  • the control module receives the instructions sent by the application system software, and sends it to the radio frequency module for modulation through the signal encoding and encryption, and then sends it to the tag via the antenna. Demodulate, decode and decrypt the signal sent by the electronic tag to the application system software.
  • the operating system of the terminal in this application includes but is not limited to operating systems such as Windows XP ⁇ Windows Vista ⁇ Windows 7 ⁇ Windows 8 ⁇ Windows 10 and Linux.
  • the communication between the terminal and the reader includes, but is not limited to, for example, USB, IEEE Communication protocols such as 1394, Thunderbolt, TCP/IP, UDP, and terminals including but not limited to mobile phones, tablet computers, personal computers, servers, etc. can be configured to execute at least one of the methods provided in the embodiments of the present application.
  • the implementation of the method is introduced below by taking a terminal as an example of the execution subject of the method. It can be understood that the fact that the execution subject of the method is the terminal is only an exemplary description, and should not be understood as a limitation of the method.
  • the electronic tag is the real data carrier of the radio frequency identification system.
  • Each electronic tag has a unique electronic code, which is generally attached to the object to be monitored for wireless data exchange with the reader through electromagnetic waves, and has the functions of intelligent reading and writing and encrypted communication.
  • the electronic tag receives the signal sent by the reader, and converts it into a DC power supply for the circuit in the electronic tag to work.
  • the data is sent back according to the requirements of the reader, and the data is modulated and sent to the reader by the antenna.
  • the frequency band or frequency occupied by system applications is in the ISM (Industrial Scientific Medical) frequency band.
  • ISM International Scientific Medical
  • This frequency band is mainly open to industry, science and medicine. It is used by a major organization without authorization, only a certain transmit power (generally less than 1W) is required, and no interference to other frequency bands is enough.
  • the typical working frequency bands widely adopted by RFID systems internationally include four frequency bands: low frequency, high frequency, ultra high frequency and microwave. They are low frequency 125kHz and 133kHz, high frequency 13.56MHz and 27.12MHz, UHF 433MHz and 860MHz-960MHz, microwave 2.45GHz and 5.8GHz.
  • the working frequency is different, the working principle is also different, the recognition distance is also different, the low frequency recognition distance is closer, the microwave recognition distance is longer.
  • the design of the RFID electronic tag (Tag) in the embodiment of this application mainly includes the following key technologies, coding and modulation, digital modulation, error detection and correction, coding in the baseband, etc.
  • the specific components of each module are shown in Figure 3. Shown.
  • the data transmission between the reader and the transponder requires three modules: transmitter, receiver and information channel.
  • the transmitter is composed of modulator and signal processing.
  • the receiver is composed of demodulation circuit and signal processing in the transponder.
  • the information channel is mainly the medium for information transmission.
  • the data encoding methods involved in this application include PIE code, Manchester code, and Miller. Code, etc.
  • the data modulation methods involved include ASK, unilateral ASK, bilateral ASK, PR-ASK, etc.
  • Electromagnetic energy is emitted into space in the form of electromagnetic waves, and information can be encoded by changing any one or several of the three parameters of electromagnetic waves, namely frequency, power, and phase, and then transmitted to any place in space through electromagnetic waves.
  • information can be encoded by changing any one or several of the three parameters of electromagnetic waves, namely frequency, power, and phase, and then transmitted to any place in space through electromagnetic waves.
  • modulation By encoding the information of the electromagnetic wave, it is modulation, and the carrier is the electromagnetic wave without modulation.
  • the original information can be obtained from the received electromagnetic wave by analyzing the changes in its frequency, phase, and received power. This is demodulation.
  • the modulation method commonly used in RFID is mainly composed of frequency shift keying, amplitude keying and subcarrier.
  • Encoding uses different forms of codes to represent 0 and 1 in binary. Commonly used encoding methods in RFID include Miller code, single-stage return to zero code, MRZ code, differential two-way code, deformed Miller code, Manchester code And other forms.
  • ECC Error Correcting Code, error detection and correction
  • Measures are used to correct the changed data.
  • Commonly used techniques in related technologies include parity checking.
  • the method of parity check includes vertical parity check, horizontal parity check, horizontal and vertical parity check and so on.
  • the longitudinal parity is grouped by characters.
  • the horizontal parity and the longitudinal parity can only detect the encoding errors of the data in the horizontal and vertical directions, and cannot do anything about the error of a certain character.
  • This application combines the parity check methods in the longitudinal direction and the transverse direction to obtain cross-checking. This method has very good error detection performance.
  • Fig. 4 The implementation of the method for outputting RFID tag data provided by the present invention is shown in Fig. 4:
  • S401 Send a signal through the antenna in the reader to search for tags that are sensed in a specific frequency range.
  • the relevant parameters of the RFID reader set the antenna transmission frequency, call the API interface according to the transmission frequency and select the corresponding mode.
  • this application can set the parameters of the RFID device through the supporting management software according to user needs, such as:
  • Working mode It can be configured to read/write RFID tags by triggering or automatically and continuously read RFID tags.
  • Reading frequency band Configure the read RF frequency band standard (840MHz-844.5MHz ⁇ 902MHz-928MHz, etc.) and power sensitivity and other parameters.
  • Reading area you can specify the designated area of the RFID tag to be read, such as the unique identification code TID of the electronic tag, the electronic product code EPC and the reading of user data Userdata;
  • Reading mode The interval time of the output mode can be configured. For example, the same label will not be output repeatedly within a few seconds, and the new label will be output immediately;
  • Output mode You can configure the output data rules and format, such as PS2, HID protocol rules;
  • the electronic tag When the system can read data and there is an electronic tag, the electronic tag receives the command sequence sent. At this time, the electronic tag will transmit the unique identification code stored in the EPROM to the part that needs authentication. Call the void WriteRV (uchar Address, uchar Value) function, send the request command parameter 28H into the input and output data register, and then call the WriteRawRV function to send the request command word 16H. After running, the input and output data will contain the electronic label The unique identification code. Then, call uchar ReadRV (uchar Address) to get the operation result.
  • uchar ReadRV uchar Address
  • S402 Anti-collision operation.
  • This application can choose to call the native API or write the anti-collision algorithm, call this interface, and then the reader can read the current anti-collision electronic tag serial number through its own register.
  • the anti-collision algorithms involved in this application include ALOHA algorithm, binary search algorithm, label estimation algorithm, etc.
  • the algorithm function is stored in the address 0x4000000 in the ROM.
  • the WriteRV function to send the collision parameters to the input and output data register, and then call the WriteRawRV instruction to send the instruction word 80H to the register.
  • the input and output data register stores the result of the collision processing.
  • the result is an 8-byte identification code, which represents the identification code of the electronic tag that the reader should read.
  • S403 Authentication security of the electronic tag After collision processing, the tag number that can be read is obtained, and the authentication step of the RFID reader and electronic tag is entered.
  • the authentication security of RFID readers and electronic tags must comply with the national standard ISO9798. Both the reader and the electronic tag should have the secret key to authenticate each other. In normal mode, both parties have the same Key.
  • the secret key can be generated iteratively by a pseudo-random algorithm, as shown in the following formula:
  • Specify the initial value Key which can be a memory address in the ROM of the reader, where a is the iteration parameter, b is the iteration constant, and m is the numerical control scale. After reaching the designated operating level n, the Key can be obtained.
  • the RFID reader calls the char Pcd Auth Key(uchar*coded) function to verify the secret key to the electronic tag.
  • the electronic tag returns a random number R after the hardware calculations solidified in the ROM, and the reader calls the function char Pcd after receiving R.
  • Auth State (uchar auth_mode, uchar block, uchar*snr) is verified, and then the connection can be established.
  • Select the electronic label and return the relevant information collected by the electronic label mainly returning information such as the unique identification code TID of the electronic label, the electronic product code EPC, and the user data Userdata.
  • S404 Perform security authentication in the reader system to determine the accuracy of the data and the relevant security of the data source. If the certification is passed, the label content can be transmitted. Electronic tags can be divided into different sectors, and different sectors can be read by calling different APIs of the reader. The software part of the RFID reader mainly completes the configuration of the storage content and capacity of each register of the reader.
  • the reader can read and write the electronic tag.
  • This step mainly calls the Write RV function to send the read and write command parameters into the input and output data registers.
  • the read instruction of the electronic tag is 38H
  • the write instruction is 18H
  • the Write Raw Rc function is called to send the operation instruction 16H to the instruction register.
  • the RIFD reader executes it, the data can be obtained in the input and output data registers.
  • the command packet of the terminal corresponds to a command execution result data packet.
  • the application interface layer receives the command packet sent by the terminal, parses the parameters therein, and executes the corresponding callback function according to the analysis result. After the command is executed, the reader will package the execution result and send it to the terminal for processing and display. If the operation is successful, the read electronic label will be output as a label document, and the serial number in the document will be automatically numbered. If the operation fails, it will return failure. And output as a log file.
  • the command packet of this application consists of a 1-byte packet type, a 1-byte packet length, and a variable-length data field.
  • the definition of the command bit field is shown in Table 1 below:
  • terminal system interfaces and read operation functions are listed in Table 2. It should be stated that the definitions here are only exemplary and not restrictive. Those skilled in the art can fully write operation interfaces according to actual data transmission requirements and user needs. Function definition and function description.
  • the communication between the RFID reader and the electronic tag requires a unified data structure, so that the interface function can be used to convert the communication data packet into its own memory data structure during the analysis of the reader, and the communication data packet can be converted through hardware conversion It is converted into instruction data, thus avoiding the data transmission abnormal problem caused by the different firmware version of the data format.
  • the data packet structure is shown in Table 3:
  • communication data packets can be divided into specific categories: FIND, SEND and ACK data packets.
  • FIND FIND
  • SEND SEND
  • ACK ACK
  • Table 4 Data packet type table
  • SEND data packets and ACK data packets are RFID system communication data packets, that is, the reader can send information to the electronic tag through the SEND data packet, or ACK receives the electronic tag data information, and the electronic tag receives the instruction to be executed through the ACK data packet.
  • the relevant data packet of the reader should add the Command command bit, and the electronic tag should add the receiving bit.
  • the packet sent and received by the RFID reader has a unified identification, which is defined as flag1 in the flag bit.
  • the packet type is:
  • the communication data packet type is SEND
  • SEND SEND
  • the RFID reader has established a connection with the electronic tag, and then starts to send commands or data.
  • SEND package normal communication can be carried out between the two.
  • the package should be checked in the middle of the process to ensure some parameters of the data in the process.
  • the package needs to be sent as a data frame, and the content in the package structure can be analyzed when receiving.
  • the main manifestation is the analysis of the packet.
  • the analysis can be carried out through the content in the table item.
  • the data packet types are as follows:
  • the communication data packet type When the communication data packet type is ACK, it indicates the data that can be sent by the tag in the system.
  • the package types are shown in the table.
  • the flag bit of the data packet sent by the electronic label is 2.
  • the communication data packet is of the SEND type, it mainly sends the electronic label to collect data, and its structure is shown in the table.
  • the communication data packet When the communication data packet is of ACK type, it mainly sends the response data packet to the RFID reader. Its structure is shown in the table:
  • the electronic tag is mainly responsible for data collection and data transmission to the reader.
  • the main data collection commands should be issued by the RFID reader.
  • the electronic tag and RFID reader and terminal are shown in Figure 5.
  • the interaction process is:
  • the RFID reader performs power-on reset, sends electromagnetic waves in a specific frequency band, and waits for the electronic tag to respond to the range.
  • the tag is initialized, and the antenna signal of the reader is received when it is working.
  • the hardware circuit parses the data packet and sends an ACK communication data packet to the resolved address, requesting to join the network.
  • the terminal side mainly implements the rule configuration of the reader, such as setting the working parameters of reading RFID tags:
  • Working mode It can be configured to read/write RFID tags by triggering or automatically and continuously read RFID tags.
  • Reading frequency band Configure the read RF frequency band standard (840MHz-844.5MHz ⁇ 902MHz-928MHz, etc.) and power sensitivity and other parameters.
  • Reading area you can specify the designated area of the RFID tag to be read, such as the unique identification code TID of the electronic tag, the electronic product code EPC and the reading of user data Userdata;
  • Reading mode The interval time of the output mode can be configured. For example, the same label will not be output repeatedly within a few seconds, and the new label will be output immediately;
  • Output mode You can configure the output data rules and format, such as PS2, HID protocol rules;
  • the reader/writer reads the electronic tag data according to the configured rules and outputs it to the terminal for processing and display.
  • Fig. 6 is a device for outputting RFID tag data in another exemplary embodiment of the present invention, which includes a search module 61, a selection device 62, an authentication module 63, and an output module 64, wherein:
  • the searching module 61 is used for searching the corresponding electronic label according to the configuration rule
  • the selection module 62 is used to select the electronic tag confirmed by the anti-collision operation
  • the authentication module 63 is used to authenticate the above-mentioned selected electronic tag
  • the operation module 64 is used to output the electronic tag data after passing the authentication.
  • the modules in the device for outputting RFID tag data provided by the embodiments of the present invention can also be used to implement the functions corresponding to the steps of the methods in the foregoing embodiments, which will not be repeated here.
  • An embodiment of the present invention also provides an RFID device, including: a memory, a processor, and a computer program stored in the memory and capable of running on the processor.
  • a computer program stored in the memory and capable of running on the processor.
  • the embodiment of the present invention also provides a computer-readable storage medium, and a computer program is stored on the computer-readable storage medium.
  • a computer program is stored on the computer-readable storage medium.
  • the computer program is executed by a processor, each process of the above-mentioned RFID tag data output method embodiment is realized, and the same can be achieved.
  • the technical effect, in order to avoid repetition, will not be repeated here.
  • the computer-readable storage medium such as read-only memory (Read-Only Memory, ROM for short), random access memory (Random Access Memory, RAM for short), magnetic disk, or optical disk, etc.
  • this application can be provided as methods, systems, or computer program products. Therefore, this application may adopt the form of a complete hardware embodiment, a complete software embodiment, or an embodiment combining software and hardware. Moreover, this application may adopt the form of a computer program product implemented on one or more computer-usable storage media (including but not limited to disk storage, CD-ROM, optical storage, etc.) containing computer-usable program codes.
  • computer-usable storage media including but not limited to disk storage, CD-ROM, optical storage, etc.
  • These computer program instructions can also be stored in a computer-readable memory that can direct a computer or other programmable data processing equipment to work in a specific manner, so that the instructions stored in the computer-readable memory produce an article of manufacture including the instruction device.
  • the device implements the functions specified in one process or multiple processes in the flowchart and/or one block or multiple blocks in the block diagram.
  • These computer program instructions can also be loaded on a computer or other programmable data processing equipment, so that a series of operation steps are executed on the computer or other programmable equipment to produce computer-implemented processing, so as to execute on the computer or other programmable equipment.
  • the instructions provide steps for implementing the functions specified in one process or multiple processes in the flowchart and/or one block or multiple blocks in the block diagram.
  • the computing device includes one or more processors (CPUs), input/output interfaces, network interfaces, and memory.
  • processors CPUs
  • input/output interfaces network interfaces
  • memory volatile and non-volatile memory
  • the memory may include non-permanent memory in computer readable media, random access memory (RAM) and/or non-volatile memory, such as read-only memory (ROM) or flash memory (flash RAM). Memory is an example of computer readable media.
  • RAM random access memory
  • ROM read-only memory
  • flash RAM flash memory
  • Computer-readable media include permanent and non-permanent, removable and non-removable media, and information storage can be realized by any method or technology.
  • the information can be computer-readable instructions, data structures, program modules, or other data.
  • Examples of computer storage media include, but are not limited to, phase change memory (PRAM), static random access memory (SRAM), dynamic random access memory (DRAM), other types of random access memory (RAM), read-only memory (ROM), electrically erasable programmable read-only memory (EEPROM), flash memory or other memory technology, CD-ROM, digital versatile disc (DVD) or other optical storage, Magnetic cassettes, magnetic tape magnetic disk storage or other magnetic storage devices or any other non-transmission media can be used to store information that can be accessed by computing devices. According to the definition in this article, computer-readable media does not include transitory media, such as modulated data signals and carrier waves.

Abstract

A method, apparatus and device for reading data of an RFID tag, and a storage medium, belonging to the technical field of communications. The method specifically comprises: sending a configuration command to an RFID reader, wherein the RFID reader is used for finding a corresponding electronic tag; selecting an electronic tag confirmed by an anti-collision operation and authenticating the selected electronic tag; and when authentication is passed, receiving data of the electronic tag. The method, apparatus and device for reading data of an RFID tag and the storage medium provided can overcome the problem of different management programs being required for controlling an existing device in different operating system environments.

Description

一种读取RFID标签数据的方法、装置、设备和存储介质Method, device, equipment and storage medium for reading RFID tag data 技术领域Technical field
本发明涉及通信技术领域,尤其涉及一种读取RFID标签数据的方法、装置、设备和存储介质。The present invention relates to the field of communication technology, and in particular to a method, device, equipment and storage medium for reading RFID tag data.
背景技术Background technique
目前的随着物联网在各行各业的应用和发展,RFID(Radio Frequency Identification,无线射频识别)技术作为物联网技术的信息终端起到了不可或缺的作用。现有的RFID系统如图1所示,通常包括有电子标签、读写器以及实现电子标签与读写器之间数据通信的天线(读写器天线、电子标签天线),电子标签内存储有一定格式的电子数据,以此作为识别物品的标识信息,应用中电子标签被附在待识别的物品上并作为待识别物品的电子标记,读写器向电子标签发送命令,电子标签根据收到的读写器指令将存储的标识性数据传输给读写器进而实现数据通信,读写器在读取数据并解码后将数据传送至控制设备或者网络进行有关的数据处理。At present, with the application and development of the Internet of Things in various industries, RFID (Radio Frequency Identification) technology has played an indispensable role as an information terminal for the Internet of Things technology. The existing RFID system is shown in Figure 1. It usually includes an electronic tag, a reader, and an antenna (reader antenna, electronic tag antenna) for data communication between the electronic tag and the reader. The electronic tag stores Electronic data in a certain format is used as the identification information to identify the item. In the application, the electronic tag is attached to the item to be identified and used as the electronic mark of the item to be identified. The reader sends a command to the electronic tag, and the electronic tag is based on the received The reader instruction of the reader transmits the stored identification data to the reader to realize data communication. The reader reads and decodes the data and then transfers the data to the control device or network for related data processing.
现有技术中RFID系统的管理通常运行依赖电脑上的管理软件,而电脑在不同的使用环境下,存在不同的操作系统,如Windows XP\Windows Vista\Windows 7\Windows 8\Windows 10和Linux等,管理软件运行在不同系统的环境下,需要不同的应用程序与RFID中间件才能实现对设备的管理和控制,与第三方系统对接时更是需要定制性进行开发。当操作系统升级时,可能存在因升级导致原有应用程序接口变化,导致管理软件不兼容、不工作甚至管理软件崩溃等情况发生,普通的用户处理此类情况,存在较大难度。The management of the RFID system in the prior art usually relies on the management software on the computer, and the computer has different operating systems in different use environments, such as Windows XP\Windows Vista\Windows 7\Windows 8\Windows 10 and Linux, etc. , The management software runs in the environment of different systems, and different applications and RFID middleware are needed to realize the management and control of the equipment. When connecting with third-party systems, customized development is required. When the operating system is upgraded, there may be changes in the original application program interface due to the upgrade, resulting in management software incompatibility, non-working, or even management software crashes. It is more difficult for ordinary users to deal with such situations.
因此,亟待一种能解决上述问题的方案。Therefore, there is an urgent need for a solution that can solve the above-mentioned problems.
发明内容Summary of the invention
为了解决上述问题,本发明提供一种读取RFID标签数据的方法、装置、设备和存储介质。In order to solve the above problems, the present invention provides a method, device, equipment and storage medium for reading RFID tag data.
第一方面,本发明提供一种读取RFID标签数据的方法,包括:In the first aspect, the present invention provides a method for reading RFID tag data, including:
发送配置命令至RFID阅读器,上述RFID阅读器用于查找所对应的电子标签;选定经过防碰撞操作所确认的电子标签并认证上述选定的电子标签;Send a configuration command to the RFID reader, the RFID reader is used to find the corresponding electronic tag; select the electronic tag confirmed by the anti-collision operation and authenticate the selected electronic tag;
当认证通过时,接收上述电子标签的数据。When the authentication is passed, the data of the above electronic tag is received.
第二方面,本发明提供一种读取RFID标签数据的装置,包括有配置模块、读取模块,其中:In a second aspect, the present invention provides a device for reading RFID tag data, including a configuration module and a reading module, wherein:
所述配置模块用于发送配置命令至RFID阅读器,上述RFID阅读器用于查找所对应的电子标签;选定经过防碰撞操作所确认的电子标签并认证上述选定的电子标签;The configuration module is used to send configuration commands to an RFID reader, and the RFID reader is used to find the corresponding electronic tag; select the electronic tag confirmed by the anti-collision operation and authenticate the selected electronic tag;
所述读取模块用于当认证通过时,接收上述电子标签的数据。The reading module is used to receive the data of the above electronic tag when the authentication is passed.
第三方面,本发明提供一种RFID设备,包括:存储器、处理器及存储在所述存储器上并可在所述处理器上运行的计算机程序,所述计算机程序被所述处理器执行时实现如上任一项所述的方法的步骤。In a third aspect, the present invention provides an RFID device including: a memory, a processor, and a computer program stored on the memory and capable of running on the processor, and the computer program is implemented when the processor is executed The steps of the method as described in any one of the above.
第四方面,本发明提供一种计算机可读存储介质,所述计算机可读存储介质上存储有计算机程序,所述计算机程序被处理器执行时实现如上任一项所述的方法的步骤。In a fourth aspect, the present invention provides a computer-readable storage medium having a computer program stored on the computer-readable storage medium, and when the computer program is executed by a processor, the steps of the method described in any of the above are implemented.
采用本发明提供的读取RFID标签数据的方法、装置、设备和存储介质,可以适应不同操作系统环境下,克服现有设备需要不同的管理程序来控制的问题,此外,操作系统升级可能会导致底层接口SDK等变动,致使原有管理程序无法正常工作。The method, device, device and storage medium for reading RFID tag data provided by the present invention can be adapted to different operating system environments and overcome the problem that existing equipment requires different management programs to control. In addition, operating system upgrades may cause Changes in the underlying interface SDK, etc., caused the original management program to fail to work normally.
附图说明Description of the drawings
此处所说明的附图用来提供对本发明的进一步理解,构成本发明的一部 分,本发明的示意性实施例及其说明用于解释本发明,并不构成对本发明的不当限定。在附图中:The drawings described here are used to provide a further understanding of the present invention and constitute a part of the present invention. The exemplary embodiments and descriptions of the present invention are used to explain the present invention, and do not constitute an improper limitation of the present invention. In the attached picture:
图1为现有的RFID系统结构图;Figure 1 is a structural diagram of an existing RFID system;
图2为本发明一示例性实施例中RFID系统及组成;Figure 2 shows the RFID system and its components in an exemplary embodiment of the present invention;
图3为本发明一示例性实施例中RFID读写器与电子标签部件图;Figure 3 is a diagram of the RFID reader and electronic tag components in an exemplary embodiment of the present invention;
图4为本发明一示例性实施例中RFID标签数据读写的流程图。Fig. 4 is a flowchart of reading and writing of RFID tag data in an exemplary embodiment of the present invention.
图5为本发明一示例性实施例中RFID标签数据读写的交互图。Fig. 5 is an interactive diagram of reading and writing RFID tag data in an exemplary embodiment of the present invention.
图6为本发明一示例性实施例中RFID标签数据读写的装置图。Fig. 6 is a diagram of a device for reading and writing RFID tag data in an exemplary embodiment of the present invention.
具体实施方式Detailed ways
为使本发明的目的、技术方案和优点更加清楚,下面将结合本发明具体实施例及相应的附图对本发明技术方案进行清楚、完整地描述。显然,所描述的实施例仅是本发明一部分实施例,而不是全部的实施例。基于本发明中的实施例,本领域普通技术人员在没有做出创造性劳动前提下所获得的所有其他实施例,都属于本发明保护的范围。In order to make the objectives, technical solutions, and advantages of the present invention clearer, the technical solutions of the present invention will be described clearly and completely below in conjunction with specific embodiments of the present invention and the corresponding drawings. Obviously, the described embodiments are only a part of the embodiments of the present invention, rather than all the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by those of ordinary skill in the art without creative work shall fall within the protection scope of the present invention.
本申请应用在如图2所示例的RFID系统中,RFID系统由电子标签、读写器和终端三部分组成,终端与读写器之间的通信为有线通信,读写器和电子标签之间的通信是无线通信,通信基本流程为读写ROM→天线→电子标签→输出。其中,读写器中无线通信通过射频模块完成,射频模块包括有电源装置、射频振荡器、射频处理器、射频接收器、前置放大器。射频振荡器产生信号,通过射频处理器调制发射信号,送往天线发送给电子标签。从电子标签发回的信号,由射频接收器接收并经过放大送往控制模块处理。控制模块负责与应用系统软件进行通信,并且控制读写器和电子标签的通信,是读写器的重要组成部分。控制模块接收应用系统软件发送来的指令,经过信号的编码加密送到射频模块调制经天线发送给标签。对电子标签发来的信号解调、解码、解密传送给应用系统软件。This application is applied to the RFID system as shown in Figure 2. The RFID system consists of three parts: an electronic tag, a reader and a terminal. The communication between the terminal and the reader is wired communication, and the communication between the reader and the electronic tag The communication is wireless communication, and the basic communication process is read and write ROM→antenna→electronic tag→output. Among them, the wireless communication in the reader is completed through a radio frequency module, which includes a power supply device, a radio frequency oscillator, a radio frequency processor, a radio frequency receiver, and a preamplifier. The radio frequency oscillator generates a signal, modulates the transmitted signal through the radio frequency processor, and sends it to the antenna to send to the electronic tag. The signal sent back from the electronic tag is received by the radio frequency receiver, amplified and sent to the control module for processing. The control module is responsible for communicating with the application system software and controlling the communication between the reader and the electronic tag. It is an important part of the reader. The control module receives the instructions sent by the application system software, and sends it to the radio frequency module for modulation through the signal encoding and encryption, and then sends it to the tag via the antenna. Demodulate, decode and decrypt the signal sent by the electronic tag to the application system software.
其中,本申请中终端的操作系统包括而不限于Windows XP\Windows Vista\ Windows 7\Windows 8\Windows 10和Linux等操作系统,终端与读写器之间的通信包括而不限于例如USB、IEEE 1394、Thunderbolt、TCP/IP、UDP等通信协议,终端包括而不限于手机、平板电脑、个人电脑、服务器等能够被配置为执行本申请实施例所提供的方法中的至少一种。为便于描述,下文以该方法的执行主体是以终端为例,对该方法的实施方式进行介绍。可以理解,该方法的执行主体为终端只是一种示例性的说明,并不应理解为对该方法的限定。Among them, the operating system of the terminal in this application includes but is not limited to operating systems such as Windows XP\Windows Vista\ Windows 7\Windows 8\Windows 10 and Linux. The communication between the terminal and the reader includes, but is not limited to, for example, USB, IEEE Communication protocols such as 1394, Thunderbolt, TCP/IP, UDP, and terminals including but not limited to mobile phones, tablet computers, personal computers, servers, etc. can be configured to execute at least one of the methods provided in the embodiments of the present application. For ease of description, the implementation of the method is introduced below by taking a terminal as an example of the execution subject of the method. It can be understood that the fact that the execution subject of the method is the terminal is only an exemplary description, and should not be understood as a limitation of the method.
电子标签(Tag),是射频识别系统真正的数据载体。每个电子标签都有唯一的电子编码,一般附在所要监测的物体上通过电磁波与读写器进行无线数据交换,具有智能读写和加密通信的功能。电子标签接收读写器发来的信号,并转换为直流电源供电子标签内的电路工作,根据读写器的要求送回数据经过调制后由天线发给读写器。The electronic tag (Tag) is the real data carrier of the radio frequency identification system. Each electronic tag has a unique electronic code, which is generally attached to the object to be monitored for wireless data exchange with the reader through electromagnetic waves, and has the functions of intelligent reading and writing and encrypted communication. The electronic tag receives the signal sent by the reader, and converts it into a DC power supply for the circuit in the electronic tag to work. The data is sent back according to the requirements of the reader, and the data is modulated and sent to the reader by the antenna.
所有的电磁通信都是要占用一定的频率和带宽的,RFID通信也不例外,系统应用占据的频段或频点位于ISM(Industrial Scientific Medical)频段,此频段主要是开放给工业、科学和医学三个主要机构使用,无需授权许可,只需要遵守一定的发射功率(一般低于1W),并且不要对其它频段造成干扰即可。目前,RFID系统在国际上广泛采用的典型工作频段有低频、高频、超高频和微波四个频段。分别为低频125kHz和133kHz,高频13.56MHz和27.12MHz、超高频433MHz和860MHz—960MHz,微波2.45GHz和5.8GHz。工作频率的不同,工作原理也不相同,识别距离也有差别,低频识别距离较近,微波识别距离就比较远。All electromagnetic communications need to occupy a certain frequency and bandwidth. RFID communications are no exception. The frequency band or frequency occupied by system applications is in the ISM (Industrial Scientific Medical) frequency band. This frequency band is mainly open to industry, science and medicine. It is used by a major organization without authorization, only a certain transmit power (generally less than 1W) is required, and no interference to other frequency bands is enough. At present, the typical working frequency bands widely adopted by RFID systems internationally include four frequency bands: low frequency, high frequency, ultra high frequency and microwave. They are low frequency 125kHz and 133kHz, high frequency 13.56MHz and 27.12MHz, UHF 433MHz and 860MHz-960MHz, microwave 2.45GHz and 5.8GHz. The working frequency is different, the working principle is also different, the recognition distance is also different, the low frequency recognition distance is closer, the microwave recognition distance is longer.
具体实施例一:Specific embodiment one:
在本申请实施例中的RFID电子标签(Tag)的设计中主要包含了以下关键的技术,编码和调制,数字调制,检错纠错、基带中的编码等技术,具体各模块组成如图3所示。The design of the RFID electronic tag (Tag) in the embodiment of this application mainly includes the following key technologies, coding and modulation, digital modulation, error detection and correction, coding in the baseband, etc. The specific components of each module are shown in Figure 3. Shown.
1.编码和调制1. Coding and modulation
对于RFID系统来说,阅读器和应答器之间的数据传输需要三个方面的模 块:发送器、接收器和信息通道。发送器有调制器和信号处理组成,接收器由应答器中的解调电路和信号处理组成,信息通道主要为信息传输的介质,本申请涉及的数据编码方式有PIE码、曼彻斯特码、米勒码等,涉及的数据调制方式有ASK、单边ASK、双边ASK、PR-ASK等方式。For the RFID system, the data transmission between the reader and the transponder requires three modules: transmitter, receiver and information channel. The transmitter is composed of modulator and signal processing. The receiver is composed of demodulation circuit and signal processing in the transponder. The information channel is mainly the medium for information transmission. The data encoding methods involved in this application include PIE code, Manchester code, and Miller. Code, etc., the data modulation methods involved include ASK, unilateral ASK, bilateral ASK, PR-ASK, etc.
2.数字调制2. Digital modulation
电磁能量通过电磁波的形式发射到空间中,通过改变电磁波的三个参数即频率、功率、相位中的任何一个或者几个就可以实现对信息编码,然后通过电磁波传送到空间中的任何地点。通过对电磁波的信息编码就是调制,载波就是没有调制的电磁波。从接收到的电磁波中通过分析其频率、相位、接受功率的变化可以得到了原来的信息,这就是解调。在RFID中常用的调制方法主要由频移键控,振幅键控和副载波组成。Electromagnetic energy is emitted into space in the form of electromagnetic waves, and information can be encoded by changing any one or several of the three parameters of electromagnetic waves, namely frequency, power, and phase, and then transmitted to any place in space through electromagnetic waves. By encoding the information of the electromagnetic wave, it is modulation, and the carrier is the electromagnetic wave without modulation. The original information can be obtained from the received electromagnetic wave by analyzing the changes in its frequency, phase, and received power. This is demodulation. The modulation method commonly used in RFID is mainly composed of frequency shift keying, amplitude keying and subcarrier.
3.基带中的编码3. Encoding in the baseband
编码是用不同形式的代码来表示二进制中的0和1,在RFID中常用的编码方式有米勒编码、单级性归零码、MRZ码、差动双向码、变形米勒码、曼彻斯特码等形式。Encoding uses different forms of codes to represent 0 and 1 in binary. Commonly used encoding methods in RFID include Miller code, single-stage return to zero code, MRZ code, differential two-way code, deformed Miller code, Manchester code And other forms.
4.检错纠错4. Error detection and correction
在使用RFID技术传输数据时容易受到外界的干扰,导致数据发生改变,使结果产生错误,所以有必要引进ECC(Error Correcting Code,检错纠错)技术,通过检错纠错可以通过采取一定的措施对改变的数据进行校正,相关技术中比较常用的技术包括奇偶校验。奇偶校验的方法又包括纵向奇偶校验,横向奇偶校验,横向纵向奇偶校验等。其中纵向奇偶校验是通过以字符为单位来进行分组的,横向奇偶校验和纵向奇偶校验只能够检查出数据在横向和纵向方向上的编码错误,对于某个字符的错误则无能为力。本申请将纵向方向和横向方向上的奇偶校验方法结合起来,得到交叉校验,这种方法具有非常好的检错性能。When using RFID technology to transmit data, it is easy to be interfered by the outside world, which can cause data to change and cause errors in the results. Therefore, it is necessary to introduce ECC (Error Correcting Code, error detection and correction) technology. Measures are used to correct the changed data. Commonly used techniques in related technologies include parity checking. The method of parity check includes vertical parity check, horizontal parity check, horizontal and vertical parity check and so on. Among them, the longitudinal parity is grouped by characters. The horizontal parity and the longitudinal parity can only detect the encoding errors of the data in the horizontal and vertical directions, and cannot do anything about the error of a certain character. This application combines the parity check methods in the longitudinal direction and the transverse direction to obtain cross-checking. This method has very good error detection performance.
本发明提供一种RFID标签数据输出的方法实现如图4所示:The implementation of the method for outputting RFID tag data provided by the present invention is shown in Fig. 4:
S401:通过读写器中的天线将信号发送出去,查找在特定的频段范围内感应的标签。通过配置RFID读写器相关参数,设定天线发送频率,按照发送频率调用API接口并选择相应模式。S401: Send a signal through the antenna in the reader to search for tags that are sensed in a specific frequency range. By configuring the relevant parameters of the RFID reader, set the antenna transmission frequency, call the API interface according to the transmission frequency and select the corresponding mode.
具体的,本申请可以根据用户需求,通过配套管理软件,设置RFID设备的参数如:Specifically, this application can set the parameters of the RFID device through the supporting management software according to user needs, such as:
工作方式:可以配置通过触发进行RFID标签读\写或者自动连续读取RFID标签的任意一种工作方式进行读\写;Working mode: It can be configured to read/write RFID tags by triggering or automatically and continuously read RFID tags.
读取频段:配置所读取的RF频段标准(840MHz-844.5MHz\902MHz-928MHz等)和功率灵敏度等参数。Reading frequency band: Configure the read RF frequency band standard (840MHz-844.5MHz\902MHz-928MHz, etc.) and power sensitivity and other parameters.
读取区域:可以指定读取的RFID标签的指定区域,如电子标签的唯一标识码TID、电子产品代码EPC以及用户数据Userdata的读取;Reading area: you can specify the designated area of the RFID tag to be read, such as the unique identification code TID of the electronic tag, the electronic product code EPC and the reading of user data Userdata;
读取长度:可以指定进行任意长度、任意起始位置的读取配置;Read length: you can specify the read configuration of any length and any starting position;
读取方式:可以配置输出方式间隔时间,如相同标签在若干秒内不再重复输出,新标签立即输出;Reading mode: The interval time of the output mode can be configured. For example, the same label will not be output repeatedly within a few seconds, and the new label will be output immediately;
输出方式:可以配置输出的数据规则与格式,如PS2、HID的协议规则;Output mode: You can configure the output data rules and format, such as PS2, HID protocol rules;
当系统可以进行数据读取并且有电子标签时,电子标签收到发来的命令序列。此时,电子标签将存储在EPROM的唯一标识码,传送给需要认证部分。调用void WriteRV(uchar Address,uchar Value)函数,将请求命令的参数28H送入输入输出数据寄存器中,然后调用WriteRawRV函数送入请求指令字16H,经过运行后,输入输出数据中就存有电子标签的唯一标识码。接着,再调用uchar ReadRV(uchar Address)获取操作结果。When the system can read data and there is an electronic tag, the electronic tag receives the command sequence sent. At this time, the electronic tag will transmit the unique identification code stored in the EPROM to the part that needs authentication. Call the void WriteRV (uchar Address, uchar Value) function, send the request command parameter 28H into the input and output data register, and then call the WriteRawRV function to send the request command word 16H. After running, the input and output data will contain the electronic label The unique identification code. Then, call uchar ReadRV (uchar Address) to get the operation result.
S402:防碰撞操作,本申请可以选择调用原生API或者进行编写防碰撞算法,调用该接口,然后读写器可以通过自身寄存器读取当前的防碰撞电子标签序列号。本申请涉及的防碰撞算法有ALOHA算法、二进制搜索算法、标签估计算法等。S402: Anti-collision operation. This application can choose to call the native API or write the anti-collision algorithm, call this interface, and then the reader can read the current anti-collision electronic tag serial number through its own register. The anti-collision algorithms involved in this application include ALOHA algorithm, binary search algorithm, label estimation algorithm, etc.
对电子标签的选择碰撞问题会应用对电子标签的选择,并且信息产生碰撞 后信息的记录出现不准确情况。因此,在编写好防碰撞算法后,将算法函数存在ROM内地址0x4000000。产生碰撞问题后,调用WriteRV函数将碰撞参数送入输入输出数据寄存器,接着调用WriteRawRV指令将指令字80H送入寄存器,则经过运行后输入输出数据寄存器中存放有碰撞处理的结果。该结果为一8字节标识码,表示读写器应该进行读取的电子标签标识码。The selection of electronic tags will apply to the selection of electronic tags for collision problems, and the information records will appear inaccurate after collisions. Therefore, after the anti-collision algorithm is programmed, the algorithm function is stored in the address 0x4000000 in the ROM. After the collision problem occurs, call the WriteRV function to send the collision parameters to the input and output data register, and then call the WriteRawRV instruction to send the instruction word 80H to the register. After running, the input and output data register stores the result of the collision processing. The result is an 8-byte identification code, which represents the identification code of the electronic tag that the reader should read.
S403:对电子标签的认证安全在经过碰撞处理后,得到可以进行读取的标签号,进入RFID读写器和电子标签的认证步骤。RFID读写器和电子标签的认证安全要符合国标ISO9798标准,读写器和电子标签两方都应当有认证对方的秘钥。一般模式下,双方具有相同的Key。秘钥可以由伪随机算法迭代生成,见下式:S403: Authentication security of the electronic tag After collision processing, the tag number that can be read is obtained, and the authentication step of the RFID reader and electronic tag is entered. The authentication security of RFID readers and electronic tags must comply with the national standard ISO9798. Both the reader and the electronic tag should have the secret key to authenticate each other. In normal mode, both parties have the same Key. The secret key can be generated iteratively by a pseudo-random algorithm, as shown in the following formula:
Key i=(aKey i-1+b)%m Key i =(aKey i-1 +b)%m
指定初值Key,该值可以为读写器内ROM某一内存地址,其中a为迭代参数,b为迭代常数,m为数控规模。达到指定运行层次n后,即可以获得Key。Specify the initial value Key, which can be a memory address in the ROM of the reader, where a is the iteration parameter, b is the iteration constant, and m is the numerical control scale. After reaching the designated operating level n, the Key can be obtained.
然后RFID读写器调用char Pcd Auth Key(uchar*coded)函数向电子标签验证秘钥,电子标签经过固化在ROM中的硬件计算后返回随机数R,读写器收到R后调用函数char Pcd Auth State(uchar auth_mode,uchar block,uchar*snr)进行验证,之后便可以建立连接。Then the RFID reader calls the char Pcd Auth Key(uchar*coded) function to verify the secret key to the electronic tag. The electronic tag returns a random number R after the hardware calculations solidified in the ROM, and the reader calls the function char Pcd after receiving R. Auth State (uchar auth_mode, uchar block, uchar*snr) is verified, and then the connection can be established.
选定电子标签,并返回电子标签所采集的相关信息,主要返回电子标签的唯一标识码TID、电子产品代码EPC以及用户数据Userdata等信息。Select the electronic label and return the relevant information collected by the electronic label, mainly returning information such as the unique identification code TID of the electronic label, the electronic product code EPC, and the user data Userdata.
S404:在读写器系统内进行安全认证,以确定数据的准确性,以及数据来源具有相关安全性。如果通过了该认证,则可以传输标签内容。电子标签可以分为不同扇区,通过调用读写器不同API读取不同扇区。RFID读写器的软件部分主要完成对读写器各个寄存器的存储内容和容量进行配置。S404: Perform security authentication in the reader system to determine the accuracy of the data and the relevant security of the data source. If the certification is passed, the label content can be transmitted. Electronic tags can be divided into different sectors, and different sectors can be read by calling different APIs of the reader. The software part of the RFID reader mainly completes the configuration of the storage content and capacity of each register of the reader.
对电子标签的读写操作在RFID读写器和电子标签安全认证成功后,读写器可以进行对电子标签的读写操作。这一步主要调用Write RV函数将读写命 令参数送入输入输出数据寄存器中。对电子标签读取指令为38H,写入指令为18H,然后调用Write Raw Rc函数将操作指令16H送入指令寄存器,RIFD读写器执行后即可在输入输出数据寄存器中获得数据。Read and write operations on the electronic tag After the RFID reader and the electronic tag are successfully authenticated, the reader can read and write the electronic tag. This step mainly calls the Write RV function to send the read and write command parameters into the input and output data registers. The read instruction of the electronic tag is 38H, the write instruction is 18H, and then the Write Raw Rc function is called to send the operation instruction 16H to the instruction register. After the RIFD reader executes it, the data can be obtained in the input and output data registers.
进一步地,终端的命令包都对应一个命令执行结果数据包。应用接口层接收终端所发送的命令包,解析其中的参数,根据解析的结果执行相应的回调函数。读写器在命令执行结束后,将执行结果打包发送至终端进行处理和显示,如操作成功,将所读取的电子标签输出为标签文档,文档中的序号自动编号,操作失败,则返回失败并输出为日志文件。通过本申请实施例,无须安装应用软件,克服了现有技术中通过不同的应用程序与RFID中间件才能实现对设备的管理和控制,特别是与第三方系统对接时更是需要定制性进行开发,高效便捷的实现了电子标签数据的自动读写操作。Further, the command packet of the terminal corresponds to a command execution result data packet. The application interface layer receives the command packet sent by the terminal, parses the parameters therein, and executes the corresponding callback function according to the analysis result. After the command is executed, the reader will package the execution result and send it to the terminal for processing and display. If the operation is successful, the read electronic label will be output as a label document, and the serial number in the document will be automatically numbered. If the operation fails, it will return failure. And output as a log file. Through the embodiments of this application, there is no need to install application software, which overcomes the need for device management and control through different applications and RFID middleware in the prior art, especially when interfacing with third-party systems, it requires customized development. , The automatic reading and writing operation of electronic label data is realized efficiently and conveniently.
具体地,本申请屮的命令包由1个字节的包类型、1个字节的包长度和可变长度的数据域组成,命令位字段定义下表1所示:Specifically, the command packet of this application consists of a 1-byte packet type, a 1-byte packet length, and a variable-length data field. The definition of the command bit field is shown in Table 1 below:
表1:应用接口层命令包定义Table 1: Application interface layer command packet definition
Byte1Byte1 Byte2Byte2 Byte[3……N+4]Byte[3……N+4]
命令包类型IDCommand packet type ID 命令包长度LCommand packet length L 命令包有效数据域Command packet valid data field
终端系统接口与读操作功能定义列举如下表2,需要声明的是,此处定义仅仅是示例性而非限定性,本领域技术人员完全可以根据实际数据传输要求以及用户的需要进行写操作接口的函数定义与功能说明。The definitions of terminal system interfaces and read operation functions are listed in Table 2. It should be stated that the definitions here are only exemplary and not restrictive. Those skilled in the art can fully write operation interfaces according to actual data transmission requirements and user needs. Function definition and function description.
表2:读操作命令接口定义Table 2: Definition of read operation command interface
Figure PCTCN2019123776-appb-000001
Figure PCTCN2019123776-appb-000001
Figure PCTCN2019123776-appb-000002
Figure PCTCN2019123776-appb-000002
本申请中RFID读写器和电子标签之间进行通信需要统一的数据结构,这样在读写器解析时可以利用接口函数将通信数据包转化为自身内存数据结构,并且通过硬件转换将通信数据包转化为指令数据,从而避免了数据格式因为固件的版本不同而导致数据传输异常问题。该数据包结构如表3:In this application, the communication between the RFID reader and the electronic tag requires a unified data structure, so that the interface function can be used to convert the communication data packet into its own memory data structure during the analysis of the reader, and the communication data packet can be converted through hardware conversion It is converted into instruction data, thus avoiding the data transmission abnormal problem caused by the different firmware version of the data format. The data packet structure is shown in Table 3:
表3:数据包结构Table 3: Data packet structure
1BYTE1BYTE 1BYTE1BYTE 1BYTE1BYTE NBYTENBYTE 1BYTE1BYTE
长度length 包类型Package type 标签地址Label address 数据data CRCCRC
同时,根据整个过程中系统需要进行相互交互的过程类型以及过程参数,可以将通信数据包分为具体的几类:FIND、SEND和ACK数据包。具体如下表4:At the same time, according to the process types and process parameters that the system needs to interact with each other in the entire process, communication data packets can be divided into specific categories: FIND, SEND and ACK data packets. The details are as follows in Table 4:
表4:数据包类型表Table 4: Data packet type table
Figure PCTCN2019123776-appb-000003
Figure PCTCN2019123776-appb-000003
SEND数据包和ACK数据包为RFID系统通信数据包,即读写器可以通过SEND数据包将信息发送给电子标签,或者ACK接收电子标签数据信息,电子标签则通过ACK数据包接收需要执行指令。实际应用环境下,读写器的相关数据包应该添加Command命令位,电子标签添加接收位。SEND data packets and ACK data packets are RFID system communication data packets, that is, the reader can send information to the electronic tag through the SEND data packet, or ACK receives the electronic tag data information, and the electronic tag receives the instruction to be executed through the ACK data packet. In the actual application environment, the relevant data packet of the reader should add the Command command bit, and the electronic tag should add the receiving bit.
进一步地,读写器数据包RFID读写器发送和接收的包具有统一的标识,在标志位定义为flag1。当通信类型为FIND时,其包类型为:Further, the packet sent and received by the RFID reader has a unified identification, which is defined as flag1 in the flag bit. When the communication type is FIND, the packet type is:
Figure PCTCN2019123776-appb-000004
Figure PCTCN2019123776-appb-000004
Figure PCTCN2019123776-appb-000005
Figure PCTCN2019123776-appb-000005
当通信数据包类型为SEND时,即为RFID读写器已经和电子标签建立连接,然后开始发送命令或者数据。有了SEND包,两者之间就可以进行正常通信。同时,该包应该在中间的过程进行检查,保证数据在过程中的一些参数。另外,当通信时,需要将该包装成数据帧发送,在接收的时候就可以对该包结构中的内容进行分析。When the communication data packet type is SEND, it means that the RFID reader has established a connection with the electronic tag, and then starts to send commands or data. With the SEND package, normal communication can be carried out between the two. At the same time, the package should be checked in the middle of the process to ensure some parameters of the data in the process. In addition, when communicating, the package needs to be sent as a data frame, and the content in the package structure can be analyzed when receiving.
在接收端,主要表现的利用为对该包的分析,分析可以通过表项中的内容进行,其数据包类型如下表:At the receiving end, the main manifestation is the analysis of the packet. The analysis can be carried out through the content in the table item. The data packet types are as follows:
表5:SEND数据包Table 5: SEND packet
Figure PCTCN2019123776-appb-000006
Figure PCTCN2019123776-appb-000006
当通信数据包类型为ACK时,表示系统内标签可以进行发送的数据。其包类型如表。When the communication data packet type is ACK, it indicates the data that can be sent by the tag in the system. The package types are shown in the table.
Figure PCTCN2019123776-appb-000007
Figure PCTCN2019123776-appb-000007
电子标签数据包在RFID读写器系统中,电子标签发送的数据包flag位为2。当通信数据包为SEND类型时,主要发送电子标签采集数据,其结构如表。In the RFID reader system, the flag bit of the data packet sent by the electronic label is 2. When the communication data packet is of the SEND type, it mainly sends the electronic label to collect data, and its structure is shown in the table.
Figure PCTCN2019123776-appb-000008
Figure PCTCN2019123776-appb-000008
当通信数据包为ACK类型时,主要发送对RFID读写器的回应数据包,其结构如表:When the communication data packet is of ACK type, it mainly sends the response data packet to the RFID reader. Its structure is shown in the table:
Figure PCTCN2019123776-appb-000009
Figure PCTCN2019123776-appb-000009
在整个系统中,电子标签主要负责进行数据的采集和向读写器传送数据,主要的数据采集命令应有RFID读写器发出,如图5所示的电子标签与RFID读写器、终端具体交互过程为:In the entire system, the electronic tag is mainly responsible for data collection and data transmission to the reader. The main data collection commands should be issued by the RFID reader. The electronic tag and RFID reader and terminal are shown in Figure 5. The interaction process is:
(1)、RFID读写器进行加电复位,在特定频段内发送电磁波,并且等待进入范围的电子标签回应。(1) The RFID reader performs power-on reset, sends electromagnetic waves in a specific frequency band, and waits for the electronic tag to respond to the range.
(2)、在等待过程中,如果收到电子标签节点的ACK数据包,表示有电子标签进入,那么读写器向该电子标签发回确认数据包。(2). In the waiting process, if an ACK data packet from the electronic label node is received, indicating that an electronic label has entered, the reader/writer sends back an acknowledgement data packet to the electronic label.
(3)、解析标签数据并根据阅读器ROM预先配置的规则执行相应的操作。(3) Analyze the tag data and perform corresponding operations according to the rules pre-configured in the reader ROM.
(4)、接收电子标签发送的数据包,并将该通信数据包转化为自身内存结构进行解析,然后按照设定规则输出到外部系统。如果信息错误,则设定错误重发计数器,并等待电子标签重发,在计数器达到阀值时发送电子标签不可达的错误信息。(4) Receive the data packet sent by the electronic tag, and convert the communication data packet into its own memory structure for analysis, and then output to the external system according to the set rules. If the information is wrong, set an error retransmission counter and wait for the electronic tag to be retransmitted, and send an error message that the electronic tag is unreachable when the counter reaches the threshold.
电子标签由于存储数据相对较小,因此通信数据包类型较少,在数据采集时应当及时向读写器发送,其具体过程为:Since the stored data of the electronic tag is relatively small, there are fewer types of communication data packets, and it should be sent to the reader in time during data collection. The specific process is:
(1)、标签初始化,工作时收到读写器的天线信号。硬件电路对数据包进行 解析,并向解析后的地址发送ACK通信数据包,请求加入网络。(1) The tag is initialized, and the antenna signal of the reader is received when it is working. The hardware circuit parses the data packet and sends an ACK communication data packet to the resolved address, requesting to join the network.
(2)、收到读写器ACK包。根据回复的内容进行相应操作。如果回复接收信息,则启动数据发送模块工作,在读写器配置的信道发送SEND数据包确认信道。收到表示错误的包,那么报告错误退出。(2). Receive the reader ACK packet. Operate accordingly according to the content of the reply. If the reply is received, the data sending module will be started, and the SEND data packet will be sent to confirm the channel on the channel configured by the reader. If a packet indicating an error is received, report the error and exit.
(3)、收到读写器控制命令后,解析该控制命令,执行命令对应的操作,接着发送SEND数据包返回给读写器。(3) After receiving the reader control command, parse the control command, execute the operation corresponding to the command, and then send a SEND packet back to the reader.
(4)、采集和发送过程中有出现错误的情况,发送ACK数据包给读写器,读写器解析后回送命令。(4) If there is an error in the collection and sending process, send the ACK packet to the reader, and the reader will send back the command after parsing.
终端侧主要实现对读写器的规则配置,如设置读取RFID标签的工作参数:The terminal side mainly implements the rule configuration of the reader, such as setting the working parameters of reading RFID tags:
工作方式:可以配置通过触发进行RFID标签读\写或者自动连续读取RFID标签的任意一种工作方式进行读\写;Working mode: It can be configured to read/write RFID tags by triggering or automatically and continuously read RFID tags.
读取频段:配置所读取的RF频段标准(840MHz-844.5MHz\902MHz-928MHz等)和功率灵敏度等参数。Reading frequency band: Configure the read RF frequency band standard (840MHz-844.5MHz\902MHz-928MHz, etc.) and power sensitivity and other parameters.
读取区域:可以指定读取的RFID标签的指定区域,如电子标签的唯一标识码TID、电子产品代码EPC以及用户数据Userdata的读取;Reading area: you can specify the designated area of the RFID tag to be read, such as the unique identification code TID of the electronic tag, the electronic product code EPC and the reading of user data Userdata;
读取长度:可以指定进行任意长度、任意起始位置的读取配置;Read length: you can specify the read configuration of any length and any starting position;
读取方式:可以配置输出方式间隔时间,如相同标签在若干秒内不再重复输出,新标签立即输出;Reading mode: The interval time of the output mode can be configured. For example, the same label will not be output repeatedly within a few seconds, and the new label will be output immediately;
输出方式:可以配置输出的数据规则与格式,如PS2、HID的协议规则;Output mode: You can configure the output data rules and format, such as PS2, HID protocol rules;
进一步的,读写器根据配置的规则读取电子标签数据并输出至终端进行处理与显示。Further, the reader/writer reads the electronic tag data according to the configured rules and outputs it to the terminal for processing and display.
具体实施例二:Specific embodiment two:
图6为本发明又一示范性实施例中RFID标签数据输出的装置,包括有查找模块61、选定装置62、认证模块63以及输出模块64,其中:Fig. 6 is a device for outputting RFID tag data in another exemplary embodiment of the present invention, which includes a search module 61, a selection device 62, an authentication module 63, and an output module 64, wherein:
查找模块61用于按照配置规则查找所对应的电子标签;The searching module 61 is used for searching the corresponding electronic label according to the configuration rule;
选定模块62用于选定经过防碰撞操作所确认的电子标签;The selection module 62 is used to select the electronic tag confirmed by the anti-collision operation;
认证模块63用于认证上述选定的电子标签;The authentication module 63 is used to authenticate the above-mentioned selected electronic tag;
操作模块64用于输出对认证通过后的电子标签数据。The operation module 64 is used to output the electronic tag data after passing the authentication.
本发明实施例提供的RFID标签数据输出的装置中各模块还可用于实现上述实施例各方法步骤所对应的功能,在此不再赘述。The modules in the device for outputting RFID tag data provided by the embodiments of the present invention can also be used to implement the functions corresponding to the steps of the methods in the foregoing embodiments, which will not be repeated here.
本发明实施例还提供一种RFID设备,包括:存储器、处理器及存储在存储器上并可在处理器上运行的计算机程序,计算机程序被处理器执行时实现上述RFID标签数据输出方法的各步骤。An embodiment of the present invention also provides an RFID device, including: a memory, a processor, and a computer program stored in the memory and capable of running on the processor. When the computer program is executed by the processor, each step of the above RFID tag data output method is implemented. .
本发明实施例还提供一种计算机可读存储介质,计算机可读存储介质上存储有计算机程序,计算机程序被处理器执行时实现上述RFID标签数据输出方法实施例的各个过程,且能达到相同的技术效果,为避免重复,这里不再赘述。其中,所述的计算机可读存储介质,如只读存储器(Read-Only Memory,简称ROM)、随机存取存储器(Random Access Memory,简称RAM)、磁碟或者光盘等。The embodiment of the present invention also provides a computer-readable storage medium, and a computer program is stored on the computer-readable storage medium. When the computer program is executed by a processor, each process of the above-mentioned RFID tag data output method embodiment is realized, and the same can be achieved. The technical effect, in order to avoid repetition, will not be repeated here. Wherein, the computer-readable storage medium, such as read-only memory (Read-Only Memory, ROM for short), random access memory (Random Access Memory, RAM for short), magnetic disk, or optical disk, etc.
本领域内的技术人员应明白,本申请的实施例可提供为方法、系统、或计算机程序产品。因此,本申请可采用完全硬件实施例、完全软件实施例、或结合软件和硬件方面的实施例的形式。而且,本申请可采用在一个或多个其中包含有计算机可用程序代码的计算机可用存储介质(包括但不限于磁盘存储器、CD-ROM、光学存储器等)上实施的计算机程序产品的形式。Those skilled in the art should understand that the embodiments of the present application can be provided as methods, systems, or computer program products. Therefore, this application may adopt the form of a complete hardware embodiment, a complete software embodiment, or an embodiment combining software and hardware. Moreover, this application may adopt the form of a computer program product implemented on one or more computer-usable storage media (including but not limited to disk storage, CD-ROM, optical storage, etc.) containing computer-usable program codes.
本申请是参照本申请实施例的方法、设备(系统)、和计算机程序产品的流程图和/或方框图来描述的。应理解可由计算机程序指令实现流程图和/或方框图中的每一流程和/或方框、以及流程图和/或方框图中的流程和/或方框的结合。可提供这些计算机程序指令到通用计算机、专用计算机、嵌入式处理机或其他可编程数据处理设备的处理器以产生一个机器,使得通过计算机或其他可编程数据处理设备的处理器执行的指令产生用于实现在流程图一个流程或多个流程和/或方框图一个方框或多个方框中指定的功能的装置。This application is described with reference to the flowcharts and/or block diagrams of the methods, equipment (systems), and computer program products of the embodiments of the application. It should be understood that each process and/or block in the flowchart and/or block diagram, and the combination of processes and/or blocks in the flowchart and/or block diagram can be realized by computer program instructions. These computer program instructions can be provided to the processor of a general-purpose computer, a special-purpose computer, an embedded processor, or other programmable data processing equipment to generate a machine, so that the instructions executed by the processor of the computer or other programmable data processing equipment are used to generate It is a device that realizes the functions specified in one process or multiple processes in the flowchart and/or one block or multiple blocks in the block diagram.
这些计算机程序指令也可存储在能引导计算机或其他可编程数据处理设 备以特定方式工作的计算机可读存储器中,使得存储在该计算机可读存储器中的指令产生包括指令装置的制造品,该指令装置实现在流程图一个流程或多个流程和/或方框图一个方框或多个方框中指定的功能。These computer program instructions can also be stored in a computer-readable memory that can direct a computer or other programmable data processing equipment to work in a specific manner, so that the instructions stored in the computer-readable memory produce an article of manufacture including the instruction device. The device implements the functions specified in one process or multiple processes in the flowchart and/or one block or multiple blocks in the block diagram.
这些计算机程序指令也可装载到计算机或其他可编程数据处理设备上,使得在计算机或其他可编程设备上执行一系列操作步骤以产生计算机实现的处理,从而在计算机或其他可编程设备上执行的指令提供用于实现在流程图一个流程或多个流程和/或方框图一个方框或多个方框中指定的功能的步骤。These computer program instructions can also be loaded on a computer or other programmable data processing equipment, so that a series of operation steps are executed on the computer or other programmable equipment to produce computer-implemented processing, so as to execute on the computer or other programmable equipment. The instructions provide steps for implementing the functions specified in one process or multiple processes in the flowchart and/or one block or multiple blocks in the block diagram.
在一个典型的配置中,计算设备包括一个或多个处理器(CPU)、输入/输出接口、网络接口和内存。In a typical configuration, the computing device includes one or more processors (CPUs), input/output interfaces, network interfaces, and memory.
内存可能包括计算机可读介质中的非永久性存储器,随机存取存储器(RAM)和/或非易失性内存等形式,如只读存储器(ROM)或闪存(flash RAM)。内存是计算机可读介质的示例。The memory may include non-permanent memory in computer readable media, random access memory (RAM) and/or non-volatile memory, such as read-only memory (ROM) or flash memory (flash RAM). Memory is an example of computer readable media.
计算机可读介质包括永久性和非永久性、可移动和非可移动媒体可以由任何方法或技术来实现信息存储。信息可以是计算机可读指令、数据结构、程序的模块或其他数据。计算机的存储介质的例子包括,但不限于相变内存(PRAM)、静态随机存取存储器(SRAM)、动态随机存取存储器(DRAM)、其他类型的随机存取存储器(RAM)、只读存储器(ROM)、电可擦除可编程只读存储器(EEPROM)、快闪记忆体或其他内存技术、只读光盘只读存储器(CD-ROM)、数字多功能光盘(DVD)或其他光学存储、磁盒式磁带,磁带磁磁盘存储或其他磁性存储设备或任何其他非传输介质,可用于存储可以被计算设备访问的信息。按照本文中的界定,计算机可读介质不包括暂存电脑可读媒体(transitory media),如调制的数据信号和载波。Computer-readable media include permanent and non-permanent, removable and non-removable media, and information storage can be realized by any method or technology. The information can be computer-readable instructions, data structures, program modules, or other data. Examples of computer storage media include, but are not limited to, phase change memory (PRAM), static random access memory (SRAM), dynamic random access memory (DRAM), other types of random access memory (RAM), read-only memory (ROM), electrically erasable programmable read-only memory (EEPROM), flash memory or other memory technology, CD-ROM, digital versatile disc (DVD) or other optical storage, Magnetic cassettes, magnetic tape magnetic disk storage or other magnetic storage devices or any other non-transmission media can be used to store information that can be accessed by computing devices. According to the definition in this article, computer-readable media does not include transitory media, such as modulated data signals and carrier waves.
还需要说明的是,术语“包括”、“包含”或者其任何其他变体意在涵盖非排他性的包含,从而使得包括一系列要素的过程、方法、商品或者设备不仅包括那些要素,而且还包括没有明确列出的其他要素,或者是还包括为这种过程、方法、商品或者设备所固有的要素。在没有更多限制的情况下,由语句“包括 一个……”限定的要素,并不排除在包括要素的过程、方法、商品或者设备中还存在另外的相同要素。It should also be noted that the terms "include", "include" or any other variants thereof are intended to cover non-exclusive inclusion, so that a process, method, product or equipment including a series of elements not only includes those elements, but also includes Other elements that are not explicitly listed, or also include elements inherent to such processes, methods, commodities, or equipment. If there are no more restrictions, the element defined by the sentence "including a..." does not exclude the existence of other identical elements in the process, method, commodity or equipment that includes the element.
以上仅为本申请的实施例而已,并不用于限制本申请。对于本领域技术人员来说,本申请可以有各种更改和变化。凡在本申请的精神和原理之内所作的任何修改、等同替换、改进等,均应包含在本申请的权利要求范围之内。The above are only examples of the application, and are not used to limit the application. For those skilled in the art, this application can have various modifications and changes. Any modification, equivalent replacement, improvement, etc. made within the spirit and principle of this application shall be included in the scope of the claims of this application.

Claims (10)

  1. 一种读取RFID标签数据的方法,其特征在于,包括:A method for reading RFID tag data, which is characterized in that it comprises:
    发送配置命令至RFID阅读器,所述RFID阅读器用于查找所对应的电子标签;选定经过防碰撞操作所确认的电子标签并认证所述选定的电子标签;Send a configuration command to an RFID reader, the RFID reader is used to find the corresponding electronic tag; select the electronic tag confirmed by the anti-collision operation and authenticate the selected electronic tag;
    当认证通过时,接收所述电子标签的数据。When the authentication is passed, the data of the electronic tag is received.
  2. 根据权利要求1所述的方法,其特征在于,在所述查找所对应的电子标签之前,还包括:The method according to claim 1, characterized in that, before said searching for the corresponding electronic label, the method further comprises:
    所述RFID阅读器接收工作参数的配置指令,解析该配置指令并写入到配置ROM中。The RFID reader receives the configuration instruction of the working parameter, parses the configuration instruction and writes it into the configuration ROM.
  3. 根据权利要求2所述的方法,其特征在于,所述工作参数包括以下的一种或多种:工作方式、读取区域、读取长度、读取方式、读取配置。The method according to claim 2, wherein the working parameters include one or more of the following: working mode, reading area, reading length, reading mode, and reading configuration.
  4. 根据权利要求1所述的方法,其特征在于,所述查找所对应的电子标签包括:The method according to claim 1, wherein said searching the corresponding electronic label comprises:
    所述RFID阅读器通过预设的数据包格式查找特定频段内所对应的电子标签。The RFID reader searches for the corresponding electronic tag in a specific frequency band through a preset data packet format.
  5. 根据权利要求4所述的方法,所述预设的数据包格式包括:长度、数据包类型、标签地址以及数据,其中数据包类型包括有FIND、SEND、ACK。The method according to claim 4, wherein the preset data packet format includes: length, data packet type, tag address and data, wherein the data packet type includes FIND, SEND, and ACK.
  6. 根据权利要求1所述的方法,其特征在于,所述防碰撞操作包括通过以下的一种或多种算法处理:ALOHA算法、二进制搜索算法、标签估计算法。The method according to claim 1, wherein the anti-collision operation comprises processing by one or more of the following algorithms: ALOHA algorithm, binary search algorithm, and label estimation algorithm.
  7. 根据权利要求1所述的方法,其特征在于,所述对所述选定的电子标签进行安全认证包括:The method according to claim 1, wherein said performing security authentication on said selected electronic tag comprises:
    所述RFID阅读器通过伪随机算法迭代得到认证密钥Key进行安全认证,其中伪随机算法如下:The RFID reader obtains an authentication key Key through a pseudo-random algorithm iteratively for security authentication, wherein the pseudo-random algorithm is as follows:
    Key i=(aKey i-1+b)%m Key i =(aKey i-1 +b)%m
    指定初值Key,该值为读写器内ROM某一内存地址,其中a为迭代参数,b为迭代常数,m为数控规模。Specify the initial value Key, which is a memory address of the ROM in the reader, where a is the iteration parameter, b is the iteration constant, and m is the numerical control scale.
  8. 一种读取RFID标签数据的装置,其特征在于,包括有配置模块、读取模块,其中:A device for reading RFID tag data is characterized in that it comprises a configuration module and a reading module, wherein:
    所述配置模块用于发送配置命令至RFID阅读器,所述RFID阅读器用于查找所对应的电子标签;选定经过防碰撞操作所确认的电子标签并认证所述选定的电子标签;The configuration module is used to send a configuration command to an RFID reader, the RFID reader is used to find the corresponding electronic tag; select the electronic tag confirmed by the anti-collision operation and authenticate the selected electronic tag;
    所述读取模块用于当认证通过时,接收所述电子标签的数据。The reading module is used for receiving the data of the electronic tag when the authentication is passed.
  9. 一种RFID设备,其特征在于,包括:存储器、处理器及存储在所述存储器上并可在所述处理器上运行的计算机程序,所述计算机程序被所述处理器执行时实现如权利要求1至7中任一项所述的方法的步骤。An RFID device, which is characterized by comprising: a memory, a processor, and a computer program stored on the memory and capable of running on the processor, and the computer program is executed by the processor as claimed in the claims The steps of the method described in any one of 1 to 7.
  10. 一种计算机可读存储介质,其特征在于,所述计算机可读存储介质上存储有计算机程序,所述计算机程序被处理器执行时实现如权利要求1至7中任一项所述的方法的步骤。A computer-readable storage medium, wherein a computer program is stored on the computer-readable storage medium, and when the computer program is executed by a processor, the method according to any one of claims 1 to 7 is implemented. step.
PCT/CN2019/123776 2019-11-25 2019-12-06 Method, apparatus and device for reading data of rfid tag, and storage medium WO2021103116A1 (en)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN201911166042.1A CN110969036B (en) 2019-11-25 2019-11-25 Method, device, equipment and storage medium for RFID label data output
CN201911166042.1 2019-11-25

Publications (1)

Publication Number Publication Date
WO2021103116A1 true WO2021103116A1 (en) 2021-06-03

Family

ID=70031444

Family Applications (3)

Application Number Title Priority Date Filing Date
PCT/CN2019/123776 WO2021103116A1 (en) 2019-11-25 2019-12-06 Method, apparatus and device for reading data of rfid tag, and storage medium
PCT/CN2019/123775 WO2021103115A1 (en) 2019-11-25 2019-12-06 Rfid tag data output method and apparatus, device, and storage medium
PCT/CN2019/123777 WO2021103117A1 (en) 2019-11-25 2019-12-06 System for reading rfid tag data

Family Applications After (2)

Application Number Title Priority Date Filing Date
PCT/CN2019/123775 WO2021103115A1 (en) 2019-11-25 2019-12-06 Rfid tag data output method and apparatus, device, and storage medium
PCT/CN2019/123777 WO2021103117A1 (en) 2019-11-25 2019-12-06 System for reading rfid tag data

Country Status (2)

Country Link
CN (1) CN110969036B (en)
WO (3) WO2021103116A1 (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113992445B (en) * 2021-12-28 2022-04-19 广东曜芯科技有限公司 Authentication apparatus and method

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101763080A (en) * 2009-05-20 2010-06-30 中国科学院自动化研究所 RFID (Radio Frequency Identification Device) read-write system supporting multi-field bus and management method thereof
CN103201751A (en) * 2010-09-13 2013-07-10 特里登特Rfid私人有限公司 System and method for updating parameters and firmware on RFID readers
CN104091187A (en) * 2014-07-06 2014-10-08 冶金自动化研究设计院 Embedded data concentrator based on RFID middleware

Family Cites Families (18)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN100555302C (en) * 2004-03-31 2009-10-28 深圳市朗科科技股份有限公司 Data read-write equipment and method based on radio frequency identification system
KR100684172B1 (en) * 2004-11-24 2007-02-20 한국전자통신연구원 Low power digital circuits for a RFID tag
JP2006179050A (en) * 2004-12-21 2006-07-06 Hitachi Global Storage Technologies Netherlands Bv Method for manufacturing magnetic disk device, testing/adjusting device, and carrying container
JP2008146184A (en) * 2006-12-06 2008-06-26 Fujitsu Ltd Reader/writer apparatus, reader/writer control program, data access system, and data access control method
CN100552691C (en) * 2007-02-02 2009-10-21 中国科学院声学研究所 A kind of binary mode collision-proof method that has security mechanism in RFID
CN101256617A (en) * 2007-12-21 2008-09-03 上海复旦微电子股份有限公司 Multi-label anticollision algorithm in high-frequency/ultrahigh frequency RFID recognition system
CN102402672A (en) * 2010-09-14 2012-04-04 公安部第三研究所 RFID (radio frequency identification) ultra-high-frequency safe air interface protocol applied to vehicle environments
CN102682313B (en) * 2011-06-10 2015-08-19 中国人民解放军国防科学技术大学 The communication means of read write line and label in radio-frequency recognition system
CN102622619A (en) * 2012-01-10 2012-08-01 上海交通大学 Safety wireless identification system and authentication method thereof
CN103489016B (en) * 2013-08-26 2016-08-10 广西大学 RFID anti-collision read-write device and control method thereof
CN103577784B (en) * 2013-11-25 2016-07-06 电子科技大学 Active RFID reader collision-proof method and system based on multi-radio
CN104091184B (en) * 2014-06-16 2017-09-15 上海实甲智能系统有限公司 Electronic label detecting method and system
US20170124361A1 (en) * 2015-11-02 2017-05-04 Symbol Technologies, Llc Arrangement for, and method of, configuring an rfid reader to scan rfid tags in compliance with regulations of a particular regulatory region of operation
CN105574456A (en) * 2015-12-14 2016-05-11 谭焕玲 RIFD reader
CN106250796B (en) * 2016-08-16 2019-02-01 日照山川电子信息技术有限公司 A kind of radio frequency system and method having height anti-collision
CN108388819B (en) * 2018-01-31 2020-11-17 莫冰 Anti-collision method, device and system based on ultrahigh frequency rfid transponder
CN108595992B (en) * 2018-04-06 2022-05-17 杨明艳 Manufacturing method and equipment of cross-platform multi-role network identity card reading driver
CN110287748B (en) * 2019-07-03 2024-01-23 北京智芯微电子科技有限公司 Ultrahigh frequency RFID anti-collision method

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101763080A (en) * 2009-05-20 2010-06-30 中国科学院自动化研究所 RFID (Radio Frequency Identification Device) read-write system supporting multi-field bus and management method thereof
CN103201751A (en) * 2010-09-13 2013-07-10 特里登特Rfid私人有限公司 System and method for updating parameters and firmware on RFID readers
CN104091187A (en) * 2014-07-06 2014-10-08 冶金自动化研究设计院 Embedded data concentrator based on RFID middleware

Also Published As

Publication number Publication date
WO2021103115A1 (en) 2021-06-03
WO2021103117A1 (en) 2021-06-03
CN110969036A (en) 2020-04-07
CN110969036B (en) 2021-04-30

Similar Documents

Publication Publication Date Title
US8570157B1 (en) Local processing of received RFID tag responses
US8427315B2 (en) Ahead-of-time scheduling of commands in RFID reader systems
US8237562B1 (en) Dealing with rogue RFID readers using tag identifiers
US8390431B1 (en) RFID tags that backscatter more codes
US10719671B1 (en) Tag-to-tag communication using RFID readers
US7663486B2 (en) RFID tag user memory indication
WO2011009768A2 (en) A method and reader for reading tag data a radio frequency identification system
US9928388B1 (en) Sequential encoding for RFID tags
US8134451B1 (en) RFID tag chips and tags capable of backscattering more codes and methods
US8063740B1 (en) Interfacing to RFID reader utility that causes RFID tags to reply using changed reply timing
US8258918B1 (en) RFID reader controllers limiting theft of confidential information
US20070236331A1 (en) Preventing timeout of RFID tag in timed state of air-interface protocol
TWI383323B (en) Rf tag reader and method
US9129168B1 (en) RFID readers causing tags to backscatter based on challenge
US9129169B1 (en) RFID tags backscattering based on challenge
US8830065B1 (en) RFID readers with run commands
JP2023502988A (en) Systems and methods for converting wireless device signals
US8698629B1 (en) RFID readers with encapsulating commands
WO2021103116A1 (en) Method, apparatus and device for reading data of rfid tag, and storage medium
Liu et al. Revisiting RFID missing tag identification
KR100959562B1 (en) Method for communication RFID reader and tag
CN115361096B (en) RFID tag circuit and data transmission method based on RFID tag circuit
JP2015184692A (en) Information processor, information processing method and information processing program
JPWO2006129357A1 (en) ID tag and reader / writer
CN102110221A (en) Method for realizing block-write function of ultrahigh-frequency passive RFID

Legal Events

Date Code Title Description
121 Ep: the epo has been informed by wipo that ep was designated in this application

Ref document number: 19954235

Country of ref document: EP

Kind code of ref document: A1

NENP Non-entry into the national phase

Ref country code: DE

122 Ep: pct application non-entry in european phase

Ref document number: 19954235

Country of ref document: EP

Kind code of ref document: A1

122 Ep: pct application non-entry in european phase

Ref document number: 19954235

Country of ref document: EP

Kind code of ref document: A1

32PN Ep: public notification in the ep bulletin as address of the adressee cannot be established

Free format text: NOTING OF LOSS OF RIGHTS PURSUANT TO RULE 112(1) EPC (EPO FORM 1205A DATED 15/12/2022)