


技术领域technical field
本发明涉及RFID(射频识别)装置等。尤其涉及一种由数字计算机控制的遵循ISO/IEC 14443协议的非接触式IC卡的RFID防冲突读写装置及其控制方法。The present invention relates to RFID (Radio Frequency Identification) devices and the like. In particular, it relates to a non-contact IC card RFID anti-collision reading and writing device controlled by a digital computer and a control method thereof.
背景技术Background technique
随着通信与计算机技术的发展,物联网技术与人们的生活、工作和娱乐变得越来越紧密。无线射频识别(RFID,Radio Frequency Identification)技术作为物联网标识环节中的关键技术,近年来也成为诸多专家和学者关注的热点方向。RFID是一种通过射频信号进行非接触式识别的自动识别技术,其基本原理是利用读写装置与电子标签之间的控件耦合,包括电感耦合或电磁耦合,或反射的传输特性来实现数据通信。With the development of communication and computer technology, IoT technology is becoming more and more closely related to people's life, work and entertainment. Radio Frequency Identification (RFID, Radio Frequency Identification) technology, as a key technology in the identification process of the Internet of Things, has also become a hot topic of concern for many experts and scholars in recent years. RFID is an automatic identification technology for non-contact identification through radio frequency signals. Its basic principle is to use the control coupling between the reading and writing device and the electronic tag, including inductive coupling or electromagnetic coupling, or the transmission characteristics of reflection to realize data communication. .
RFID系统中,标签周围可能同时存在多个读写装置,这样,标签可能同时收到不同读写装置发送的命令,此时便产生读写装置之间的碰撞。但是由于读写装置具有很强的处理能力,而且这种碰撞的概率比较小,也容易解决,因此一般不把其作为关注热点。另外,一般情况下,同一个RFID系统中的所有标签工作在同一频道,当读写装置的作用范围内存在多个标签,并在同一时刻可能有多个标签同时与读写装置进行通信,此时就会产生相互干扰,也就是标签发生了碰撞或冲突,使读写装置不能正确识别任何一个标签的信息。In the RFID system, there may be multiple read-write devices around the tag at the same time. In this way, the tag may receive commands from different read-write devices at the same time, and a collision between the read-write devices will occur at this time. However, because the read-write device has a strong processing capability, and the probability of such a collision is relatively small and easy to resolve, it is generally not regarded as a focus of attention. In addition, in general, all tags in the same RFID system work on the same channel. When there are multiple tags within the range of the read-write device, and at the same time, there may be multiple tags that communicate with the read-write device at the same time. When there is mutual interference, that is, the tags collide or conflict, so that the reading and writing device cannot correctly identify the information of any tag.
目前在非接触式IC卡以及RFID的技术领域中,不仅公开了具备非接触式(无线)接口的装置,而且还公开了具备与RFID装置和主机(也称为主机CPU)相连接的接触式(有线)接口的装置(RFID装置搭载设备)。而这些装置存在读写装置无法排除冲突影响的固有缺陷。At present, in the technical field of non-contact IC cards and RFID, not only devices with non-contact (wireless) interfaces are disclosed, but also devices with contactless (wireless) interfaces connected with RFID devices and hosts (also known as host CPUs) are disclosed. (wired) interface device (RFID device equipped equipment). However, these devices have the inherent defect that the read-write device cannot eliminate the impact of conflicts.
发明内容Contents of the invention
本发明的主要目的是提供一种遵循ISO/IEC 14443协议的非接触式IC卡的RFID防冲突读写装置及其控制方法,用以克服传统读写装置无法排除冲突影响的固有缺陷。The main purpose of the present invention is to provide a non-contact IC card RFID anti-collision read-write device and its control method following the ISO/IEC 14443 protocol, so as to overcome the inherent defects that traditional read-write devices cannot eliminate the impact of conflicts.
本发明的方案是通过这样实现的:一种RFID防冲突读写装置,该装置包括一个输入设备、两个输出设备、一个读写芯片、一个数字计算机,输入设备、输出设备、读写芯片均与数字计算机相连接,所述的输入设备为矩阵键盘,用于将要写入标签的数据输入给数字计算机;所述两个输出设备分别为LCD显示设备和UART通信设备,LCD显示设备用于显示RFID防冲突读写装置运行的流程和结果,UART通信设备用于将读取数据传递给下级设备或者接收下级设备传输给该装置的命令;所述读写芯片为遵循ISO/IEC 14443协议的读写芯片MFRC522,读写芯片基于BIT冲突检测协议的防冲突算法,读写芯片成功识别某个标签后才会进行下个标签的识别;所述的数字计算机存储有读写芯片BIT冲突检测协议、ISO/IEC 14443协议定义的标签防冲突操作程序。The solution of the present invention is achieved by: an RFID anti-collision read-write device, which includes an input device, two output devices, a read-write chip, and a digital computer, and the input device, output device, and read-write chip are all It is connected with a digital computer, and the input device is a matrix keyboard, which is used to input the data to be written into the label to the digital computer; the two output devices are respectively an LCD display device and a UART communication device, and the LCD display device is used to display The process and results of the operation of the RFID anti-collision reading and writing device. The UART communication device is used to transmit the read data to the lower-level equipment or receive the command transmitted from the lower-level equipment to the device; the read-write chip is a reader that follows the ISO/IEC 14443 protocol. Write the chip MFRC522, the read-write chip is based on the anti-collision algorithm of the BIT conflict detection protocol. The label anti-collision operation procedure defined by the ISO/IEC 14443 protocol.
作为本发明RFID防冲突读写装置的进一步改进,所述的读写芯片接受数字计算机的指令和数据,并将指令和数据作用于相应的标签上或从标签上取得数据传给数字计算机;所述的数字计算机存储装置所需要的参数,并处理输入设备和读写芯片MFRC522提交的信息。As a further improvement of the RFID anti-collision read-write device of the present invention, the read-write chip accepts the instructions and data of the digital computer, and acts on the corresponding label or obtains data from the label and transmits the instruction and data to the digital computer; The parameters required by the digital computer storage device described above are processed, and the information submitted by the input device and the read-write chip MFRC522 is processed.
作为本发明RFID防冲突读写装置的进一步改进,所述数字计算机的标签操作方式为有限状态机,标签接收到读写装置的一个请求命令后,其状态就会对应于有限状态机中的某个状态,若标签响应命令成功或失败,直接跳转到相应状态进入下一步处理。As a further improvement of the RFID anti-collision read-write device of the present invention, the tag operation mode of the digital computer is a finite state machine. After the tag receives a request command from the read-write device, its state will correspond to a certain state in the finite state machine. If the tag responds to the command successfully or fails, it will directly jump to the corresponding state to enter the next step.
作为本发明RFID防冲突读写装置的进一步改进,所述数字计算机包括一个微处理器主控芯片,微处理器主控芯片存储标签防冲突操作程序、有限状态机操作方式、以及其他操作程序。As a further improvement of the RFID anti-collision reading and writing device of the present invention, the digital computer includes a microprocessor main control chip, and the microprocessor main control chip stores the tag anti-collision operation program, the finite state machine operation mode, and other operation programs.
作为本发明的RFID防冲突读写装置的进一步改进,所述其他操作程序包括矩阵键盘扫描程序、UART数据通信程序、LCD刷新显示程序。As a further improvement of the RFID anti-collision reading and writing device of the present invention, the other operating programs include a matrix keyboard scanning program, a UART data communication program, and an LCD refresh display program.
一种RFID防冲突读写装置的控制方法,首先开启读写装置后,数字计算机首先对读写芯片MFRC522、LCD显示装置、UART通信装置进行初始化,接着读写装置依次对进入其天线范围内的标签执行寻标签操作、防冲突操作、选择标签操作、读写标签操作、休眠标签操作。如果在整个流程中的某一个操作步骤执行失败,程序即刻返回重新执行该操作,直到这个操作执行成功为止。A control method for an RFID anti-collision read-write device. Firstly, after the read-write device is turned on, a digital computer first initializes the read-write chip MFRC522, an LCD display device, and a UART communication device, and then the read-write device sequentially controls the read-write devices that enter the range of its antenna. Tags perform tag search operations, anti-collision operations, select tag operations, read and write tag operations, and sleep tag operations. If a certain operation step in the whole process fails, the program immediately returns to re-execute the operation until the operation succeeds.
作为本发明RFID防冲突读写装置的控制方法的进一步改进,所述的读写标签操作过程为:首先,程序判断选择标签操作后选定的标签是执行的读标签操作还是写标签操作,如果既不执行读标签操作也不执行写标签操作,就直接退出读写状态,等待接收休眠指令。As a further improvement of the control method of the RFID anti-collision read-write device of the present invention, the described read-write tag operation process is as follows: first, the program judges whether the selected tag after the selected tag operation is a read-tag operation or a write-tag operation, if Neither read tag operation nor write tag operation is executed, it exits the read/write state directly, and waits to receive the dormancy command.
若执行读标签操作,读写装置会向选定的标签发送读标签指令,标签接收到该指令后就将指定地址空间的数据返回给读写装置,读写装置获取到标签返回的数据后将其显示在LCD显示装置上,并且通过UART通信设备将获取的数据发送给下级设备。当标签未能正确接收读写装置的读标签指令时,读写装置会重复发送该读标签指令,直到标签正确接收该指令并返回数据为止,在读标签操作完成后,标签等待接收休眠指令。If the read tag operation is performed, the read-write device will send a read-tag command to the selected tag. After receiving the command, the tag will return the data in the specified address space to the read-write device. After the read-write device obtains the data returned by the tag, it will It is displayed on the LCD display device, and the acquired data is sent to the lower-level equipment through the UART communication device. When the tag fails to correctly receive the read tag command from the read-write device, the read-write device will repeatedly send the read tag command until the tag correctly receives the command and returns data. After the tag read operation is completed, the tag waits to receive the sleep command.
若执行写标签操作,程序判断数据输入缓冲区是否为空,若为空,则在LCD显示设备上输出警告信息,提示用户输入数据,若判断数据输入缓冲区是不为空,读写装置向选定的标签发送写标签指令,并将输入数据缓冲区的数据写入被选定标签相应的地址空间。当标签未能正确接收读写装置的写标签指令时,读写装置会重复发送该写标签指令,直到标签正确接收到该指令并将数据输入缓冲区的数据写入到标签相应的地址空间为止,在写标签操作完成后,标签等待接收休眠指令。If the write label operation is performed, the program will judge whether the data input buffer is empty, if it is empty, then output a warning message on the LCD display device to prompt the user to input data, if it is judged that the data input buffer is not empty, the read-write device will send The selected tag sends a write tag command, and writes the data in the input data buffer into the corresponding address space of the selected tag. When the tag fails to correctly receive the write tag command from the read-write device, the read-write device will repeatedly send the write tag command until the tag correctly receives the command and writes the data in the data input buffer to the corresponding address space of the tag , after the write tag operation is complete, the tag waits to receive the sleep command.
作为本发明RFID防冲突读写装置的控制方法的进一步改进,所述的防冲突操作为基于BIT冲突检测协议和ISO/IEC 14443协议。以遵循ISO/IEC 14443协议、BIT冲突检测协议的非接触式IC卡的防冲突读写装置的计算机控制系统进行构思的,减少人工对标签各项操作的干预,提高标签的识别率。As a further improvement of the control method of the RFID anti-collision reading and writing device of the present invention, the anti-collision operation is based on the BIT conflict detection protocol and the ISO/IEC 14443 protocol. Conceived with the computer control system of the non-contact IC card anti-collision reading and writing device following the ISO/IEC 14443 protocol and the BIT conflict detection protocol, it reduces manual intervention in various operations of the label and improves the recognition rate of the label.
作为本发明RFID防冲突读写装置及其控制方法的进一步解释,本发明装置及其控制方法应用于电子标签(即消费卡、IC卡)的读写识别,其读写识别范围在可控制在电子标签与读写装置距离为10cm以内。As a further explanation of the RFID anti-collision reading and writing device and its control method of the present invention, the device and its control method of the present invention are applied to the reading and writing identification of electronic tags (ie consumer cards, IC cards), and the reading and writing identification range can be controlled within The distance between the electronic tag and the reading and writing device is within 10cm.
本发明实现的技术原理是:当标签进入RFID防冲突读写装置的天线作用范围内时,标签进入掉电状态,标签在掉电状态进行复位操作后转变为空闲状态,处于空闲状态的标签等待读写装置的请求应答命令,如果标签响应请求应答命令成功代表着防冲突成功,并获取到了某张标签的ID,标签处于就绪状态。利用前面获取到的标签ID,阅读装置继续发送选择命令,被选择的标签随之进入激活状态,在该状态下,读写装置可以对标签读写等操作。对标签的操作结束后,阅读装置会向标签发送一个休眠指令,接收该命令的标签立即进入休眠状态,直到接收到读写装置发送的唤醒命令为止。The technical principle realized by the present invention is: when the tag enters the antenna range of the RFID anti-collision reading and writing device, the tag enters the power-off state, and the tag changes to an idle state after performing a reset operation in the power-off state, and the tag in the idle state waits The request response command of the read-write device, if the tag responds to the request response command successfully, it means that the anti-collision is successful, and the ID of a certain tag is obtained, and the tag is in the ready state. Using the previously obtained tag ID, the reading device continues to send the selection command, and the selected tag enters the active state. In this state, the reading and writing device can read and write the tag. After the operation on the tag is completed, the reading device will send a dormancy command to the tag, and the tag receiving the command will enter the dormant state immediately until it receives the wake-up command sent by the reading and writing device.
本发明具备以下良好效果:The present invention has the following good effects:
(1)本发明当仅有一个标签出现在该读写装置的天线作用范围内的时候,该装置和传统读写装置一样,可以对该标签执行读写等操作。当有多于一个标签同时出现在该读写装置的天线作用范围内的时候,该装置会判断出冲突的发生,然后执行防冲突操作,最后依次完成对这些卡片的读写等操作而不是像传统读写装置那样向用户报告错误或仅仅对其中某个标签执行读写等操作。(1) In the present invention, when only one tag appears within the range of the antenna of the read-write device, the device, like the traditional read-write device, can perform operations such as reading and writing the tag. When more than one tag appears within the range of the antenna of the read-write device at the same time, the device will determine the occurrence of a conflict, then perform anti-collision operations, and finally complete the operations of reading and writing these cards in turn instead of like Report errors to the user or only perform operations such as reading and writing to one of the tags like traditional read-write devices.
(2)本发明是以遵循ISO/IEC 14443协议的非接触式IC卡的防冲突读写装置的计算机控制系统进行构思的,从而减少了人工对标签各项操作的干预。程序对标签的操作使用了有限状态机,标签接收到读写装置的一个请求命令后,其状态就会对应于有限状态机中的某个状态,若标签响应命令成功或失败,会直接跳转到相应的状态进入下一步处理,提高处理标签的效率。(2) The present invention is conceived based on the computer control system of the non-contact IC card anti-collision reading and writing device following the ISO/IEC 14443 protocol, thereby reducing manual intervention in various operations of the label. The program uses a finite state machine to operate the tag. After the tag receives a request command from the read-write device, its state will correspond to a certain state in the finite state machine. If the tag responds to the command successfully or fails, it will directly jump to Go to the corresponding state to enter the next step to improve the efficiency of label processing.
(3)本发明读写芯片基于BIT冲突检测协议的防冲突算法,读写装置在成功识别某个标签后才会进行下个标签的识别,因此识别率≥99%。(3) The read-write chip of the present invention is based on the anti-collision algorithm of the BIT conflict detection protocol. The read-write device will only recognize the next tag after successfully identifying a tag, so the recognition rate is ≥99%.
附图说明Description of drawings
图1.本发明RFID防冲突读写装置示意图。Fig. 1. Schematic diagram of the RFID anti-collision reading and writing device of the present invention.
图2.本发明装置中数字计算机微处理器主控芯片结构示意图。Fig. 2. Schematic diagram of the structure of the main control chip of the digital computer microprocessor in the device of the present invention.
图3.本发明RFID防冲突读写装置控制方法状态图。Fig. 3. State diagram of the control method of the RFID anti-collision reading and writing device of the present invention.
图4.本发明RFID防冲突读写装置控制方法程序步骤示意图。Fig. 4. Schematic diagram of program steps of the control method of the RFID anti-collision reading and writing device of the present invention.
图5.本发明RFID防冲突读写装置读写标签流程示意图。Fig. 5. Schematic diagram of the process of reading and writing tags by the RFID anti-collision reading and writing device of the present invention.
具体实施方式Detailed ways
以下结合实施例和附图描述本发明,这些描述并不是对本发明内容作进一步的限定。The present invention is described below in conjunction with the embodiments and accompanying drawings, and these descriptions are not intended to further limit the content of the present invention.
实施例1 RFID防冲突读写装置Embodiment 1 RFID anti-collision reading and writing device
如图1所示,本发明RFID防冲突读写装置包括一个输入设备、两个输出设备、一个读写芯片、一个数字计算机,输入设备、输出设备、读写芯片均与数字计算机相连接。输入设备为矩阵键盘,用于将要写入标签的数据输入给数字计算机,两个输出设备分别为LCD显示设备和UART通信设备,LCD显示设备用于显示RFID防冲突读写装置运行的流程和结果,UART通信设备用于将读取数据传递给下级设备或者接收下级设备传输给该装置的命令。读写芯片为遵循ISO/IEC 14443协议的读写芯片MFRC522,读写芯片基于BIT冲突检测协议的防冲突算法,读写芯片成功识别某个标签后才会进行下个标签的识别。读写芯片接受数字计算机的指令和数据,并将指令和数据作用于相应的标签上或从标签上取得数据传给数字计算机。As shown in Figure 1, the RFID anti-collision read-write device of the present invention includes an input device, two output devices, a read-write chip, and a digital computer, and the input device, output device, and read-write chip are all connected to the digital computer. The input device is a matrix keyboard, which is used to input the data to be written into the label to the digital computer. The two output devices are LCD display device and UART communication device. The LCD display device is used to display the operation process and results of the RFID anti-collision reading and writing device. , the UART communication device is used to transmit the read data to the lower-level equipment or receive commands transmitted from the lower-level equipment to the device. The read-write chip is a read-write chip MFRC522 that follows the ISO/IEC 14443 protocol. The read-write chip is based on the anti-collision algorithm of the BIT conflict detection protocol. After the read-write chip successfully recognizes a tag, it will recognize the next tag. The read-write chip accepts the instructions and data of the digital computer, and acts on the corresponding label or obtains the data from the label and transmits it to the digital computer.
数字计算机存储装置所需要的参数,并处理输入设备和读写芯片MFRC522提交的信息。数字计算机存储有读写芯片BIT冲突检测协议、ISO/IEC 14443协议定义的标签防冲突操作程序。数字计算机的标签操作方式为有限状态机,标签接收到读写装置的一个请求命令后,其状态就会对应于有限状态机中的某个状态,若标签响应命令成功或失败,直接跳转到相应状态进入下一步处理。数字计算机包括一个微处理器主控芯片,其结构如图2所示,微处理器主控芯片存储标签防冲突操作程序、有限状态机操作方式、以及其他操作程序。微处理器主控芯片包含一个集成电路的中央处理单元(CPU),例如为在单个LSI芯片上的MCS-51 8位并行处理单元。该CPU通过数据总线和地址总线将RAM、FLASH、I/O、EEPROM相连,并通过控制总线实现各个部件有序地工作,当将微处理器主控芯片与MFRC522芯片组合后,一旦有标签进入到MFRC522芯片的天线范围内,该装置就能依次操作所有的标签。The digital computer stores the parameters required by the device, and processes the information submitted by the input device and the read-write chip MFRC522. The digital computer stores the read-write chip BIT conflict detection protocol and the label anti-collision operation program defined by the ISO/IEC 14443 protocol. The tag operation mode of the digital computer is a finite state machine. After the tag receives a request command from the read-write device, its state will correspond to a certain state in the finite state machine. If the tag responds to the command successfully or fails, it will directly jump to The corresponding state enters the next step of processing. The digital computer includes a microprocessor main control chip, the structure of which is shown in Figure 2. The microprocessor main control chip stores the tag anti-collision operation program, the finite state machine operation mode, and other operation programs. A microprocessor master chip contains an integrated circuit central processing unit (CPU), such as the MCS-51 8-bit parallel processing unit on a single LSI chip. The CPU connects RAM, FLASH, I/O, and EEPROM through the data bus and address bus, and realizes the orderly work of each component through the control bus. When the microprocessor main control chip is combined with the MFRC522 chip, once a tag enters Within the antenna range of the MFRC522 chip, the device can operate all the tags in turn.
实施例中以遵循ISO/IEC 14443协议、BIT冲突检测协议的非接触式IC卡的防冲突读写装置的计算机控制系统进行构思的,减少人工对标签各项操作的干预,程序对标签的操作使用了有限状态机,提高标签的识别率≥99%。本实施例装置可用于IC卡、消费卡的与装置距离10cm内,读取该卡标签。In the embodiment, the computer control system of the non-contact IC card anti-collision reading and writing device following the ISO/IEC 14443 protocol and the BIT conflict detection protocol is conceived, reducing manual intervention in various operations of the label, and the operation of the label by the program The finite state machine is used to improve the recognition rate of tags to ≥99%. The device of this embodiment can be used to read the tags of IC cards and consumer cards within 10cm of the device.
实施例2 RFID防冲突读写装置控制方法
如图3 RFID防冲突读写装置控制方法状态图所示,当标签进入该装置的天线作用范围内的时候,此时标签处于掉电状态(POWER OFF state)。接着标签会进行一个复位操作后,其状态转变为空闲状态(IDLE State)。处于空闲状态(IDLE State)的标签等待读写器的请求应答命令(REQA Command),如果标签响应请求应答命令(REQA Command)成功的话代表着防冲突成功,并获取到了某张标签的ID,此时,标签处于就绪状态(READY State)。利用前面获取到的标签ID,阅读装置继续发送选择命令(SELECT Command),被选择的标签随之进入激活状态(ACTIVE State),在该状态下,读写装置可以对标签读写等操作(Application)。对标签的操作结束后,阅读装置会向标签发送一个休眠指令(HALT Command),接收该命令的标签立即进入休眠状态,直到接收到读写装置发送的唤醒命令(WAKE-UP Command)命令为止。As shown in the state diagram of the control method of the RFID anti-collision reading and writing device in Figure 3, when the tag enters the range of the antenna of the device, the tag is in a power-off state (POWER OFF state). Then the tag will perform a reset operation, and its state will change to idle state (IDLE State). The tag in the idle state (IDLE State) is waiting for the reader's request response command (REQA Command). If the tag responds to the request response command (REQA Command) successfully, it means that the anti-collision is successful, and the ID of a certain tag has been obtained. , the tag is in the ready state (READY State). Using the tag ID obtained earlier, the reading device continues to send the selection command (SELECT Command), and the selected tag enters the active state (ACTIVE State). In this state, the reading and writing device can read and write the tag and other operations (Application ). After the operation on the tag is completed, the reading device will send a sleep command (HALT Command) to the tag, and the tag receiving the command will immediately enter the sleep state until it receives the wake-up command (WAKE-UP Command) command sent by the reading and writing device.
基于图3装置状态图,如图4所示,完成本发明主要目的算法程序步骤,整个程序步骤都是通过执行存储在数字计算机Flash上的一系列相关指令完成的。当操作者开启该套系统后,控制器首先对各个硬件模块进行初始化,包括:MFRC522读写芯片、LCD显示装置、UART串行通信装置。随后,读写装置依次对进入其天线范围内的标签执行寻标签、防冲突、选择标签、读写标签、休眠标签的操作。如果在整个流程中的某一个操作步骤执行失败,程序即刻返回重新执行该操作,直到这个操作执行成功为止。Based on the device state diagram in Fig. 3, as shown in Fig. 4, complete the main purpose algorithm program steps of the present invention, and the whole program steps are all completed by executing a series of relevant instructions stored on the digital computer Flash. When the operator turns on the system, the controller first initializes each hardware module, including: MFRC522 read-write chip, LCD display device, and UART serial communication device. Subsequently, the read-write device sequentially executes the operations of finding tags, anti-collision, selecting tags, reading and writing tags, and dormant tags for the tags entering the range of its antenna. If a certain operation step in the whole process fails, the program immediately returns to re-execute the operation until the operation succeeds.
如图5所示RFID防冲突读写装置读写标签流程示意图,读写标签读写标签操作过程为:首先,程序判断选择标签操作后选定的标签是执行的读标签操作还是写标签操作,如果既不执行读标签操作也不执行写标签操作,就直接退出读写状态,等待接收休眠指令。As shown in Figure 5, the RFID anti-collision reading and writing device reads and writes the tag flow diagram. The operation process of reading and writing tags is as follows: first, the program judges whether the selected tag after selecting the tag operation is the read tag operation or the write tag operation. If neither the read tag operation nor the write tag operation is performed, it will directly exit the read and write state and wait for the sleep command to be received.
若执行读标签操作,读写装置会向选定的标签发送读标签指令,标签接收到该指令后就将指定地址空间的数据返回给读写装置,读写装置获取到标签返回的数据后将其显示在LCD显示装置上,并且通过UART通信设备将获取的数据发送给下级设备。当标签未能正确接收读写装置的读标签指令时,读写装置会重复发送该读标签指令,直到标签正确接收该指令并返回数据为止,在读标签操作完成后,标签等待接收休眠指令。If the read tag operation is performed, the read-write device will send a read-tag command to the selected tag. After receiving the command, the tag will return the data in the specified address space to the read-write device. After the read-write device obtains the data returned by the tag, it will It is displayed on the LCD display device, and the acquired data is sent to the lower-level equipment through the UART communication device. When the tag fails to correctly receive the read tag command from the read-write device, the read-write device will repeatedly send the read tag command until the tag correctly receives the command and returns data. After the tag read operation is completed, the tag waits to receive the sleep command.
若执行写标签操作,程序判断数据输入缓冲区是否为空,若为空,则在LCD显示设备上输出警告信息,提示用户输入数据,若判断数据输入缓冲区是不为空,读写装置向选定的标签发送写标签指令,并将输入数据缓冲区的数据写入被选定标签相应的地址空间。当标签未能正确接收读写装置的写标签指令时,读写装置会重复发送该写标签指令,直到标签正确接收到该指令并将数据输入缓冲区的数据写入到标签相应的地址空间为止,在写标签操作完成后,标签等待接收休眠指令。If the write label operation is performed, the program will judge whether the data input buffer is empty, if it is empty, then output a warning message on the LCD display device to prompt the user to input data, if it is judged that the data input buffer is not empty, the read-write device will send The selected tag sends a write tag command, and writes the data in the input data buffer into the corresponding address space of the selected tag. When the tag fails to correctly receive the write tag command from the read-write device, the read-write device will repeatedly send the write tag command until the tag correctly receives the command and writes the data in the data input buffer to the corresponding address space of the tag , after the write tag operation is complete, the tag waits to receive the sleep command.
本实施例中当仅有一个标签(IC卡、消费卡)出现在该读写装置的天线作用范围内的时候,该装置控制方法和传统读写装置一样,可以对该标签执行读写等操作。当有多于一个标签同时出现在该读写装置的天线作用范围内的时候,该装置会判断出冲突的发生,然后执行防冲突操作,最后依次完成对这些卡片的读写等操作而不是像传统读写装置那样向用户报告错误或仅仅对其中某个标签执行读写等操作。In this embodiment, when only one tag (IC card, consumer card) appears within the range of the antenna of the read-write device, the control method of the device is the same as that of the traditional read-write device, and operations such as reading and writing can be performed on the tag . When more than one tag appears within the range of the antenna of the read-write device at the same time, the device will determine the occurrence of a conflict, then perform anti-collision operations, and finally complete the operations of reading and writing these cards in turn instead of like Report errors to the user or only perform operations such as reading and writing to one of the tags like traditional read-write devices.
本发明上述实施例方案仅是对本发明的说明而不能限制本发明,权利要求中指出了本发明装置构成特征、装置控制方法的流程的示意,而上述的说明并未指出本发明参数的范围,因此,在与本发明的权利要求书相当的含义和范围内的任何改变,都应当认为是包括在权利要求书的范围内。The above-mentioned embodiments of the present invention are only descriptions of the present invention and can not limit the present invention. The claims indicate the structural features of the device of the present invention and the flow chart of the device control method, but the above description does not point out the scope of the parameters of the present invention. Therefore, any changes within the meaning and scope equivalent to the claims of the present invention should be considered to be included in the scope of the claims.
| Application Number | Priority Date | Filing Date | Title | 
|---|---|---|---|
| CN201310376217.8ACN103489016B (en) | 2013-08-26 | 2013-08-26 | RFID anti-collision reading and writing device and control method thereof | 
| Application Number | Priority Date | Filing Date | Title | 
|---|---|---|---|
| CN201310376217.8ACN103489016B (en) | 2013-08-26 | 2013-08-26 | RFID anti-collision reading and writing device and control method thereof | 
| Publication Number | Publication Date | 
|---|---|
| CN103489016Atrue CN103489016A (en) | 2014-01-01 | 
| CN103489016B CN103489016B (en) | 2016-08-10 | 
| Application Number | Title | Priority Date | Filing Date | 
|---|---|---|---|
| CN201310376217.8AActiveCN103489016B (en) | 2013-08-26 | 2013-08-26 | RFID anti-collision reading and writing device and control method thereof | 
| Country | Link | 
|---|---|
| CN (1) | CN103489016B (en) | 
| Publication number | Priority date | Publication date | Assignee | Title | 
|---|---|---|---|---|
| CN110969036A (en)* | 2019-11-25 | 2020-04-07 | 独角兽网络科技(苏州)有限公司 | Method, device, equipment and storage medium for RFID label data output | 
| WO2023000774A1 (en)* | 2021-07-20 | 2023-01-26 | 深圳市汇顶科技股份有限公司 | Nfc tag identification method and apparatus, nfc device and storage medium | 
| CN116796780A (en)* | 2023-08-28 | 2023-09-22 | 卓捷创芯科技(深圳)有限公司 | Method for automatically sending sensor data code stream by RFID tag | 
| Publication number | Priority date | Publication date | Assignee | Title | 
|---|---|---|---|---|
| CN1975755A (en)* | 2006-12-01 | 2007-06-06 | 华南理工大学 | Intelligent RFID reading system anticonflict scheduling method | 
| CN101369305A (en)* | 2007-08-14 | 2009-02-18 | 北京同方微电子有限公司 | Circuit and its model for validating anti-collision function of radio frequency identification tag chip | 
| CN101639964A (en)* | 2009-08-31 | 2010-02-03 | 华南农业大学 | RF-based portable goods guard against theft and alarm system and control method thereof | 
| WO2010115889A1 (en)* | 2009-04-09 | 2010-10-14 | Gemalto Sa | Method of detecting a nfc device emulating several contactless cards which may use a plurality of protocols | 
| CN101901360A (en)* | 2010-07-09 | 2010-12-01 | 湖南大学 | A networked RFID reader and its anti-collision method | 
| CN102208041A (en)* | 2011-04-18 | 2011-10-05 | 电子科技大学 | RFID data acquisition method having interruption tolerance capability | 
| CN102630091A (en)* | 2012-03-02 | 2012-08-08 | 浙江工商大学 | Anti-collision method based on ultrahigh frequency radio frequency identification (RFID) system | 
| CN102663328A (en)* | 2012-05-25 | 2012-09-12 | 中山大学 | Method for improving electron label reading efficiency based on power control | 
| CN103077365A (en)* | 2012-12-28 | 2013-05-01 | 广州中大微电子有限公司 | RFID (radio frequency identification) reader compatible with Type A protocol and Type B protocol | 
| Publication number | Priority date | Publication date | Assignee | Title | 
|---|---|---|---|---|
| CN1975755A (en)* | 2006-12-01 | 2007-06-06 | 华南理工大学 | Intelligent RFID reading system anticonflict scheduling method | 
| CN101369305A (en)* | 2007-08-14 | 2009-02-18 | 北京同方微电子有限公司 | Circuit and its model for validating anti-collision function of radio frequency identification tag chip | 
| WO2010115889A1 (en)* | 2009-04-09 | 2010-10-14 | Gemalto Sa | Method of detecting a nfc device emulating several contactless cards which may use a plurality of protocols | 
| CN101639964A (en)* | 2009-08-31 | 2010-02-03 | 华南农业大学 | RF-based portable goods guard against theft and alarm system and control method thereof | 
| CN101901360A (en)* | 2010-07-09 | 2010-12-01 | 湖南大学 | A networked RFID reader and its anti-collision method | 
| CN102208041A (en)* | 2011-04-18 | 2011-10-05 | 电子科技大学 | RFID data acquisition method having interruption tolerance capability | 
| CN102630091A (en)* | 2012-03-02 | 2012-08-08 | 浙江工商大学 | Anti-collision method based on ultrahigh frequency radio frequency identification (RFID) system | 
| CN102663328A (en)* | 2012-05-25 | 2012-09-12 | 中山大学 | Method for improving electron label reading efficiency based on power control | 
| CN103077365A (en)* | 2012-12-28 | 2013-05-01 | 广州中大微电子有限公司 | RFID (radio frequency identification) reader compatible with Type A protocol and Type B protocol | 
| Title | 
|---|
| 邓伟等: "MFRC522射频模块在门禁系统中的应用", 《单片机与嵌入式系统应用》* | 
| Publication number | Priority date | Publication date | Assignee | Title | 
|---|---|---|---|---|
| CN110969036A (en)* | 2019-11-25 | 2020-04-07 | 独角兽网络科技(苏州)有限公司 | Method, device, equipment and storage medium for RFID label data output | 
| WO2023000774A1 (en)* | 2021-07-20 | 2023-01-26 | 深圳市汇顶科技股份有限公司 | Nfc tag identification method and apparatus, nfc device and storage medium | 
| CN116796780A (en)* | 2023-08-28 | 2023-09-22 | 卓捷创芯科技(深圳)有限公司 | Method for automatically sending sensor data code stream by RFID tag | 
| CN116796780B (en)* | 2023-08-28 | 2023-12-22 | 卓捷创芯科技(深圳)有限公司 | Method for automatically sending sensor data code stream by RFID tag | 
| Publication number | Publication date | 
|---|---|
| CN103489016B (en) | 2016-08-10 | 
| Publication | Publication Date | Title | 
|---|---|---|
| TWI511051B (en) | Small rfid card with integrated inductive element | |
| EP2128789A1 (en) | Method for reducing RF interference inside dual-interface card reader and corresponding dual-interface card reader | |
| CN102722687B (en) | Method for detecting departure of non-contact type CPU card from radio frequency field | |
| CN101944171A (en) | Multi-tag identification method of RFID reader | |
| US7016924B2 (en) | Contactless IC card, responding method, and program therefor | |
| CN101730295B (en) | Coordination processing method for application collision of radio frequency SIM card interface | |
| CN103489016B (en) | RFID anti-collision reading and writing device and control method thereof | |
| CN113553870B (en) | NFC tag identification method and device, NFC equipment and storage medium | |
| US20130100825A1 (en) | Method for managing communication between an electronic device, for example a contactless chip card, and a communication apparatus, for example a reader, and corresponding electronic device | |
| CN204557497U (en) | Double frequency intelligent RF identification integrated system | |
| JP2012194918A (en) | Communication medium, ic card, and communication method | |
| CN201946019U (en) | High-frequency RFID (radio frequency identification) read-write device with RS232 interface | |
| CN101350058B (en) | Method for self-adapting double-interface IC card protocol mode | |
| US20160183190A1 (en) | Storage medium having stored communication program, information processing apparatus, communication system, and communication method | |
| CN202523087U (en) | Radio frequency identification (RFID)-based self-service voice system | |
| CN203054881U (en) | Radio-frequency card reader writer based on single-chip microcomputer | |
| CN201449614U (en) | Multimode card reader | |
| KR101107005B1 (en) | How to input RDF tag data into application and RDF reader using same | |
| JP2012033019A (en) | Information processor and rfid tag | |
| CN102637398B (en) | Self-service audio system based on RFID (radio frequency identification) and digital redirection technology | |
| KR101485157B1 (en) | Radio Frequency identification tag comprising an input unit | |
| JP5481464B2 (en) | Communication medium and communication medium processing apparatus | |
| CN102567776B (en) | Double-interface intelligent card capable of quickly implementing mode selection and implementing method | |
| JP2013164686A (en) | Ic card and portable electronic device | |
| CN101751540B (en) | Method and system for co-processing tasks using radio frequency identification tags | 
| Date | Code | Title | Description | 
|---|---|---|---|
| C06 | Publication | ||
| PB01 | Publication | ||
| C10 | Entry into substantive examination | ||
| SE01 | Entry into force of request for substantive examination | ||
| C41 | Transfer of patent application or patent right or utility model | ||
| TA01 | Transfer of patent application right | Effective date of registration:20160704 Address after:530000 Nanning University Road, the Guangxi Zhuang Autonomous Region, No. 100 Applicant after:Guangxi University Address before:530004, No. 3, headquarters Road, hi tech Zone, the Guangxi Zhuang Autonomous Region, Nanning Applicant before:Guangxi Nanning Dongsen Power Information Technology Co., Ltd. | |
| C14 | Grant of patent or utility model | ||
| GR01 | Patent grant | ||
| TR01 | Transfer of patent right | Effective date of registration:20170417 Address after:530000 the Guangxi Zhuang Autonomous Region Nanning City Kimpo Road No. 20 Nanning International Building, eleven storey main building Patentee after:Guangxi top technology Co., Ltd. Address before:530000 Nanning University Road, the Guangxi Zhuang Autonomous Region, No. 100 Patentee before:Guangxi University | |
| TR01 | Transfer of patent right |