RFID tag function implementation method and device

By using the RFID chip with a GPIO function in the RFID label to connect to the controller, to obtain and execute the functional instructions, the existing RFID tag needs to customize the reader to realize the specific function. The simplification and cost of implementation of the target function are performed on the basis of the device.

CN119378591APending Publication Date: 2025-01-28XIAMEN INNOV INFORMATION SCI & TECH CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202411234819.4
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-09-04
Publication Date
2025-01-28

AI Technical Summary

Technical Problem

Existing RFID tags require custom reader and writer’s underlying firmware to implement specific functions, resulting in complex and costly development.

Method used

The RFID chip with a GPIO function is connected to the controller, and the RFID chip is detected to obtain functional instructions by detecting the GPIO level of the RFID chip, and the target function is performed according to the instruction.

Benefits of technology

The implementation of specific functions on the basis of existing RFID readers, avoiding customization of readers, simplifying the development process and reducing costs.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119378591A_ABST
    Figure CN119378591A_ABST
Patent Text Reader

Abstract

The invention discloses an RFID tag function implementation method and device, the device comprises an RFID chip and a controller, the controller is connected with the RFID chip, the RFID chip has a GPIO function, and the controller executes the following steps: judging whether the GPIO level of the RFID chip is a first preset value, if yes, obtaining a preset function instruction; and executing a target function according to the function instruction. The RFID chip with the GPIO function is connected with the controller, so that the controller can obtain the corresponding function instruction by detecting the GPIO level of the RFID chip, and triggers the corresponding target function according to the function instruction, namely, the corresponding function can be realized without customizing the bottom firmware of the reader-writer, and the user experience is improved. Therefore, the target function can be executed on the basis of the existing RFID reader-writer, and customization of the reader-writer is avoided.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the field of RFID application technology, and in particular to a method and device for realizing RFID tag functions. Background Art

[0002] At present, existing RFID tags require special instructions to achieve specific functions, such as temperature measurement, lighting LEDs, etc. That is, standard RFID tags are usually not directly used to achieve specific functions, and the corresponding functions need to be achieved through the customized underlying firmware of the reader. For example, a temperature measurement instruction specifically for a certain temperature measurement chip is added to the underlying firmware, that is, the standard RFID reader is usually unable to measure the temperature directly. However, customizing the reader not only involves the redevelopment of the host computer application, that is, the client application software, but also involves the modification and development of the underlying firmware, that is, the hardware layer program of the reader needs to be modified and developed. Summary of the invention

[0003] The technical problem to be solved by the present invention is: a method and device for realizing RFID tag functions, which can realize specific functions based on the existing RFID reader / writer and avoid customization of the reader / writer.

[0004] In order to solve the above technical problems, the technical solution adopted by the present invention is:

[0005] A method for implementing an RFID tag function includes an RFID chip and a controller, wherein the controller is connected to the RFID chip, the RFID chip has a GPIO function, and the controller performs the following steps:

[0006] Determine whether the GPIO level of the RFID chip is a first preset value, and if so, obtain a preset function instruction; and execute the target function according to the function instruction.

[0007] In order to solve the above technical problems, another technical solution adopted by the present invention is:

[0008] An RFID tag function realization device comprises a memory, a processor and a computer program stored in the memory and executable on the processor. When the processor executes the computer program, each step in the above-mentioned RFID tag function realization method is realized.

[0009] The beneficial effect of the present invention is that by connecting an RFID chip with a GPIO function to a controller, the controller can obtain corresponding functional instructions by detecting the GPIO level of the RFID chip, and trigger corresponding target functions according to the functional instructions, that is, there is no need to implement corresponding functions by customizing the underlying firmware of the reader / writer, so that the target function can be executed on the basis of the existing RFID reader / writer, avoiding customization of the reader / writer. BRIEF DESCRIPTION OF THE DRAWINGS

[0010] Figure 1 A flowchart of a method for implementing an RFID tag function in an embodiment of the present invention;

[0011] Figure 2 A schematic diagram of an RFID circuit in a device for realizing RFID tag functions in an embodiment of the present invention;

[0012] Figure 3 The figure is a schematic diagram of a controller circuit in a device for realizing RFID tag functions in an embodiment of the present invention. DETAILED DESCRIPTION

[0013] In order to explain the technical content, achieved objectives and effects of the present invention in detail, the following is an explanation in combination with the implementation modes and the accompanying drawings.

[0014] Please refer to Figure 1 A method for realizing RFID tag function includes an RFID chip and a controller, wherein the controller is connected to the RFID chip, the RFID chip has a GPIO function, and the controller performs the following steps:

[0015] Determine whether the GPIO level of the RFID chip is a first preset value, and if so, obtain a preset function instruction; and execute the target function according to the function instruction.

[0016] From the above description, it can be seen that the beneficial effect of the present invention is that by connecting an RFID chip with a GPIO function to a controller, the controller can obtain corresponding functional instructions by detecting the GPIO level of the RFID chip, and trigger corresponding target functions according to the functional instructions, that is, there is no need to customize the underlying firmware of the reader / writer to implement the corresponding function, so that the target function can be executed on the basis of the existing RFID reader / writer, avoiding customization of the reader / writer.

[0017] Furthermore, after executing the corresponding function according to the functional instruction, the method further includes:

[0018] Determine whether the target function is completed, and if so, restore the GPIO level of the RFID chip to a second preset value.

[0019] It can be seen from the above description that after the controller executes the corresponding target function, the GPIO level of the RFID chip is restored to the second preset value, so that the RFID chip can achieve the next communication.

[0020] Furthermore, the functional instruction includes at least one of activating a BAP signal gain function, measuring temperature, lighting a light, and starting a buzzer.

[0021] From the above description, it can be seen that at least one of the following functions, namely, BAP signal gain function, temperature measurement, lighting, and buzzer start, is activated by triggering function instructions, so that the device has a variety of different selectable functions or function combinations to meet user needs.

[0022] Furthermore, executing the temperature measurement function includes:

[0023] The collected temperature data is returned to the RFID chip, and the RFID chip is instructed to transmit the temperature data to the reader / writer.

[0024] It can be seen from the above description that the collected temperature data is returned to the RFID chip for storage through the controller, that is, the controller does not store the data, but only serves as a calculation and transfer of the data.

[0025] Further, returning the collected temperature data to the RFID chip includes:

[0026] The temperature data is encrypted using AES-128 and a private key.

[0027] It can be seen from the above description that by using AES-128 and a private key to encrypt the temperature data, the security of the data is improved.

[0028] Further, executing the light-on function or activating the buzzer function includes:

[0029] The IO pin corresponding to the lighting function or the buzzer start function is turned on.

[0030] It can be seen from the above description that the corresponding target function can be realized by turning on the IO pin corresponding to the target function, that is, there is no need to realize the corresponding function by customizing the underlying firmware of the reader / writer.

[0031] Furthermore, it also includes:

[0032] It is determined whether the GPIO level of the RFID chip changes between high and low levels. If so, the lock flag of the controller is set to the lock position.

[0033] From the above description, it can be seen that when the GPIO level of the RFID chip changes from high to low, it means that the current RFID chip is in a disassembled state. Therefore, by locking the controller to prevent the device from being used again, the cost loss caused by unauthorized disassembly can be effectively prevented.

[0034] Further, setting the lock flag of the controller to a lock state further includes:

[0035] Get the lock flag modification request and change the password;

[0036] Determine whether the modified password is consistent with the preset password, and if so, set the lock flag to a use state.

[0037] As can be seen from the above description, when it is detected that the tag is removed, if reactivation is required, the state of the controller needs to be modified by a password to ensure the security of reactivation.

[0038] Furthermore, it also includes:

[0039] Determine whether a full passive working mode request is received, and if so, turn off all external power supplies.

[0040] From the above description, it can be seen that when a full passive working mode request is received, all external power supplies are turned off, that is, pure passive mode. At this time, the external power supply fails, and only the RFID itself receives radio conversion energy to work. The MCU and other peripheral circuits are all invalid. At this time, the external circuit only acts as an impedance matching circuit for the RFID to achieve signal gain.

[0041] Another embodiment of the present invention provides an RFID tag function implementation device, including a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein the processor implements each step in the above-mentioned RFID tag function implementation method when executing the computer program.

[0042] The method and device for realizing the RFID tag function in the inspection path planning provided by the present invention are applied to the RFID tag communication scenario to realize the functions of temperature measurement, fast object search LED lighting, etc., which are described below through specific implementation methods:

[0043] Embodiment 1

[0044] Please refer to Figure 1, a method for realizing RFID tag functions, used in an RFID tag function realization device, the device includes an RFID chip and a controller (MCU), the controller is connected to the RFID chip, and the RFID chip has a GPIO function and a temperature measurement function; that is, the present embodiment is to: transfer the customized part of the reader hardware layer to the RFID tag itself, so that different RFID temperature measurement tags all work on the international standard RFID Reader protocol, so that any RFID reader with ISO18000-6C function can realize the functions of measuring temperature, activating LED lights, buzzer, etc. through the method of this embodiment, eliminating the need to develop a reader hardware layer program. Users only need to add general ISO18000-6C instructions to the existing client application software to realize the required BAP gain, temperature measurement, lighting or buzzer functions, but when selecting the chip, it is necessary to select a chip with this IO input and output function. The controller performs the following steps:

[0045] S1. Determine whether the GPIO level of the RFID chip has changed to a first preset value. If so, obtain a preset functional instruction; for example, the functional instruction includes activating at least one of the BAP signal gain function, temperature measurement, lighting, and starting a buzzer. The temperature measurement function can be triggered alone, or the lighting and buzzer can be triggered at the same time. Specifically, when the RFID chip receives a general instruction, it will output an io interrupt through the GPIO. After the controller collects the io trigger interrupt instruction, it will perform actions such as lighting or temperature measurement.

[0046] S2. Execute the target function according to the function instruction. By defining the function code in the protocol description, different functions can be executed according to different function codes. For example, the handheld device can send a signal to freely switch the temperature measurement or light function. At the same time, the time frequency and number of storage items of the temperature recording can also be set. The execution of the temperature measurement function, the light function and the start of the buzzer are used as examples for explanation:

[0047] Executing the temperature measurement function includes: returning the collected temperature data to the RFID chip, and instructing the RFID chip to transmit the temperature data to the reader; at the same time, using AES-128 and a dedicated key to encrypt the corresponding data during the data transmission process, without logically mapping the key, to ensure that the key cannot be read or written through the Gen2 RF command. In another optional implementation, non-traceability is also an optional solution to ensure the security of data such as EPC, TID and user data, which can be partially or completely hidden or locked.

[0048] Executing the lighting function or starting the buzzer function includes: turning on the IO pin corresponding to the lighting function or starting the buzzer function, that is, the corresponding control function can be realized by turning on or off the corresponding IO.

[0049] After executing the corresponding function, the method further includes: determining whether the target function is completed, and if so, restoring the GPIO level of the RFID chip to a second preset value.

[0050] This embodiment illustrates the above method through a specific example communication:

[0051] The RFID reader communicates with the RFID chip over the air via the read command of the RF (Radio Frequency) wireless communication interface: ReadReserve Bank 0x06, 1word (an instruction in the ISO18000-6C general instructions);

[0052] When the communication is successful, the DO pin of the RFID chip will be pulled low, telling the MCU to activate the BAP signal gain function, read the temperature, or the LED light Beeper search function. At this time, the MCU needs to execute the corresponding internal program according to the function code to complete the corresponding function; usually, after receiving the instruction, the MCU will reset the DO pin of the RFID chip to low to restore the RFID's air communication function; or according to the interruption needs, wait for the completion of the RFID data exchange and then set the DO low to enable the RFID to sequentially receive the next round of RF communication.

[0053] That is, when the MCU detects that the DO pin is pulled low, it will send the corresponding data packet back to the tag's RFID reader or the memory cache area of ​​the RFID chip according to the pre-configured functional requirements of the RFID chip, and then use the standard RFID reader to perform a Read operation on the MCU back to the RFID data area. At this time, a complete I2C and RF two-way communication data exchange process is completed.

[0054] Embodiment 2

[0055] Please refer to Figure 2 as well as Figure 3, an RFID tag function implementation device, including an RFID circuit and a control circuit; the RFID circuit includes an RFID chip, and the control circuit includes a controller; an I2C and RF dual interface and a controller chip with GPIO output function, such as VBL7, EM4425, G2IL+ or G2IM+; the MCU chip reads the temperature or triggers the LED to light up in advance in the I2C mode, so the RFID reader must tell the MCU when to read the temperature and brightness, and the GPIO output is used here. The standard RFID reader simply performs a GPIO read operation, and then the MCU can trigger the RFID temperature measurement or LED lighting, buzzer and other functions through the GPIO level change.

[0056] like Figure 2 as well as Figure 3 As shown, the GPIO pin (DO) of the RFID chip is connected to the input pin (PA7) of the controller; a computer program is stored on the controller, and when the controller executes the computer program, each step in the method for realizing the function of an RFID tag as described in Example 1 is implemented; when the RFID reads the tag, the DO pin is triggered to be pulled low, and the DO pin is connected to the MCU. At this time, when the pull-down is detected, a light or a buzzer can be driven according to preset parameters.

[0057] Among them, the RFID tag function implementation device in this embodiment also has an anti-disassembly design, which can effectively prevent the cost loss caused by private disassembly. The disassembly design includes two designs: one-time use and reusable. For the reusable solution, it is realized by detecting the change of the level state of the tag when it is disassembled, and it cannot be restored and recycled without permission. The reactivation mechanism is applicable to special cases, and the product can only be reused through encryption initialization. The specific method is as follows: when it is determined that the GPIO level of the RFID chip has a high-low change, the lock flag of the controller is set to the lock bit; that is, when disassembling, the MCU will detect the high-low change of the level at the IO, at this time, the MCU will record the TAMPER problem and correct the FLAG flag. For the one-time solution, the tag state is still "TAMPERED" when disassembling, and it cannot be restored. For the reusable solution, the tag state is set to be reactivatable. When reactivation is required, the lock flag modification request and the modification password are obtained, and it is determined whether the modification password is consistent with the preset password. If so, the lock flag is set to the use state; that is, when it needs to be reused, the password must be used to modify the Flag and Tamper records.

[0058] The RFID tag function implementation device in this embodiment also has a dual-mode working mode. Specifically: the device adopts a dual-mode working mode of "solar energy + backup battery" and "full passive"; wherein the full passive mode is a pure passive mode, the external power supply fails, and except for the RFID itself receiving radio conversion energy to work by itself, the MCU and other peripheral circuits are all invalid. At this time, the external circuit only acts as an impedance matching circuit of the RFID to achieve signal gain. For example, by judging whether a full passive working mode request is received, if so, all external power supplies are turned off to enter the full passive mode. At the same time, solar energy and backup batteries can switch automatically. For example, when the backup battery is out of power, it automatically switches to solar energy mode; and when the backup battery is insufficient, solar energy can also charge the battery; it is also equipped with a USB charging port, so it can be charged through the USB charging port when both solar energy and backup battery power are insufficient.

[0059] In summary, the present invention provides a method and device for realizing RFID tag functions, including an RFID chip and a controller, wherein the controller is connected to the RFID chip, the RFID chip has a GPIO function, and the controller performs the following steps: determining whether the GPIO level of the RFID chip is a first preset value, and if so, obtaining a preset function instruction; and executing a target function according to the function instruction. By connecting an RFID chip with a GPIO function to a controller, the controller can obtain corresponding function instructions by detecting the GPIO level of the RFID chip, and trigger corresponding target functions according to the function instructions, that is, there is no need to implement corresponding functions by customizing the underlying firmware of the reader / writer, so that the target function can be executed on the basis of an existing RFID reader / writer, avoiding customization of the reader / writer.

[0060] The above descriptions are merely embodiments of the present invention and are not intended to limit the patent scope of the present invention. Any equivalent transformations made using the contents of the present invention's specification and drawings, or directly or indirectly applied in related technical fields, are also included in the patent protection scope of the present invention.

Claims

1. A method for realizing RFID tag function, characterized in that: A device for realizing RFID tag functions, the device comprising an RFID chip and a controller, the controller being connected to the RFID chip, the RFID chip having a GPIO function, and the controller performing the following steps: Determine whether the GPIO level of the RFID chip changes to a first preset value, and if so, obtain a preset function instruction; The target function is executed according to the functional instruction.

2. The method for realizing RFID tag function according to claim 1, characterized in that: After executing the corresponding function according to the functional instruction, the method further includes: Determine whether the target function is completed, and if so, restore the GPIO level of the RFID chip to a second preset value.

3. The method for realizing RFID tag function according to claim 1, characterized in that: The functional instructions include at least one of activating a BAP signal gain function, measuring temperature, lighting a light, and starting a buzzer.

4. The method for realizing RFID tag function according to claim 3, characterized in that: The temperature measurement functions include: The collected temperature data is returned to the RFID chip, and the RFID chip is instructed to transmit the temperature data to the reader / writer.

5. The method for realizing RFID tag function according to claim 4, characterized in that: The step of returning the collected temperature data to the RFID chip comprises: The temperature data is encrypted using AES-128 and a private key.

6. The method for realizing RFID tag function according to claim 3, characterized in that: The functions of lighting up the lamp or starting the buzzer include: The IO pin corresponding to the lighting function or the buzzer start function is turned on.

7. The method for realizing RFID tag function according to claim 1, characterized in that: Also includes: It is determined whether the GPIO level of the RFID chip changes between high and low levels. If so, the lock flag of the controller is set to the lock position.

8. The method for realizing RFID tag function according to claim 7, characterized in that: The step of setting the lock flag of the controller to a lock state further comprises: Get the lock flag modification request and change the password; Determine whether the modified password is consistent with the preset password, and if so, set the lock flag to a use state.

9. The method for realizing RFID tag function according to claim 1, characterized in that: Also includes: Determine whether a full passive working mode request is received, and if so, turn off all external power supplies.

10. An RFID tag function implementation device, comprising an RFID circuit and a control circuit; the RFID circuit comprises an RFID chip, and the control circuit comprises a controller; The GPIO pin of the RFID chip is connected to the input pin of the controller; a computer program is stored on the controller, and when the controller executes the computer program, each step in the RFID tag function implementation method described in any one of claims 1 to 9 is implemented.