Multi-protocol compatible nfc full card
By designing a multi-protocol compatible NFC full card, integrating radio frequency processing and storage management modules, the problem of poor NFC card compatibility is solved, realizing the function of one card for multiple uses and efficient utilization of storage space, and supporting automated testing.
Patent Information
- Application Number
- CN202211325488.6
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2022-10-27
- Publication Date
- 2025-12-05
- Estimated Expiration
- 2042-10-27
AI Technical Summary
Existing NFC cards have poor compatibility and cannot be used for multiple purposes. Testers need to manually replace cards with different protocols and radio frequency technologies for testing.
Design a multi-protocol compatible NFC full card that integrates an RF processing module, an NFC state machine, an NFC protocol processing module, and a storage management module. It can automatically detect the RF technology category and process data of different protocol formats, and dynamically manage storage space.
It achieves compatibility with multiple protocol cards, reduces the holding and purchase of different cards, supports automated testing, and maximizes the use of storage space.
Smart Images

Figure CN115633341B_ABST
Abstract
Description
TECHNICAL FIELD
[0001] The application relates to the technical field of NFC, and particularly relates to a multi-protocol compatible NFC full card. BACKGROUND
[0002] NFC (Near Field Communication) is a wireless radio technology based on 13.56 MHz frequency communication in a short distance, and is mainly applied to information interaction with tags, access control systems, health care, subways, payment and consumer electronic products and the like.
[0003] The NFC Forum (NFC Forum) was jointly announced by Philips Semiconductor, Nokia and Sony on March 18, 2004, and was established at the same time. The NFC Forum defines three attribute functions of NFC devices: a read / write mode of a device to an external card tag, a point-to-point mode between devices and a mode in which a device itself supports an analog card. The NFC Forum also defines NFC Form protocol specifications, including NFC Forum Type 1 / 2 / 3 / 4 / 5 Tag Operation Specification, NFC Digital Protocol Technocal Specification, NFC Logical Link Control Protocol Technical Specification and the like.
[0004] NFC cards are various, and access control cards, public transport cards, social security cards, different tag cards and bank cards can be seen on the market. According to the NFC Forum standard protocol, the cards are divided into T1T protocol, T2T protocol, T3T protocol, T4T protocol and T5T protocol, and according to the radio frequency technology, the cards are divided into 14443A / B, NFC F and NFC V. The tag series NXP NTAG213 belongs to the NFC Forum T2T and ISO 14443-A standard. The access control card belongs to the mifare card, some of which are T2T protocol and some of which are T4T protocol, and the ISO 14443-A standard. The identity card is T4T protocol and ISO 14443-B standard.
[0005] Due to the various types and protocols of NFC tag cards, people often need to hold multiple cards for use, and need to use and replace different protocol cards in different application scenarios, and the compatibility is poor. When an NFC C controller reads a card mode, a tester needs to purchase cards of different protocols and radio frequency technologies. The tester needs to manually replace and test the cards of different protocols and radio frequency technologies, and needs human intervention, and cannot perform automatic testing of the NFC Forum protocol card reading mode. SUMMARY
[0006] In view of the technical defects in the prior art, the purpose of the embodiments of the present application is to provide a multi-protocol compatible NFC full card to overcome the defects of poor card compatibility and inability to use one card for multiple purposes in the prior art.
[0007] To achieve the above-mentioned purpose, the embodiments of the present application provide a multi-protocol compatible NFC full card, comprising an NFC tag card, wherein the NFC tag card comprises a radio frequency processing module, an NFC state machine, an NFC protocol processing module and a storage management module.
[0008] The radio frequency processing module is configured to:
[0009] receive and demodulate data, and decode the data according to the NFC tag card protocol technical standard;
[0010] receive a radio frequency signal, and detect a corresponding radio frequency technology category based on a comparison of the NFC tag card protocol technical standard, wherein the radio frequency technology category corresponds to an associated protocol format;
[0011] The NFC state machine is configured to select a corresponding anti-collision algorithm for communication according to the radio frequency technology category, and enter a data exchange state when the NFC tag card is selected to realize reading and writing of the NFC tag card.
[0012] The NFC protocol processing module is configured to integrate multiple protocol data and perform corresponding data processing for different protocol formats.
[0013] The storage management module is configured to call required storage space based on different protocol formats and perform storage management.
[0014] Preferably, the radio frequency processing module comprises a radio frequency modulation and demodulation module, a radio frequency technology detection module and a radio frequency encoding and decoding module.
[0015] The radio frequency modulation and demodulation module is configured to receive energy and data from a radio frequency antenna, demodulate the data, and modulate digital signals to be transmitted.
[0016] The radio frequency technology detection module is configured to query a radio frequency signal sent by a card reader host, establish a communication mode according to the NFC tag card protocol technical standard, and detect a corresponding radio frequency technology category based on a comparison of the NFC tag card protocol technical standard.
[0017] The radio frequency encoding and decoding module is configured to decode digital signals converted after radio frequency demodulation according to the NFC tag card protocol technical standard, and encode digital signals to be transmitted.
[0018] Preferably, the radio frequency technology detection module is specifically used for:
[0019] receiving the radio frequency signal from the card reader;
[0020] receiving the radio frequency signal demodulated by the radio frequency demodulation module;
[0021] performing morphological analysis on the demodulated radio frequency signal, if it is symmetrical, it is judged as NFC-F technology, otherwise, it is NFC-A / NFC-B / NFC-V;
[0022] Then according to the different decoding mode, the corresponding NFC-A / NFC-B / NFC-V is identified.
[0023] Preferably, the NFC protocol processing module is used for corresponding data processing for different protocol formats, specifically including:
[0024] After receiving the data, the data frame format is verified by NFCForm Tag specification, the data is parsed, and then the data command is distributed; wherein, different protocol data read-write commands are different, which are defined by NFCForm Tag specification.
[0025] Preferably, the storage management module includes a memory, the memory includes a mifare storage space and an NDEF storage space, and the mifare storage space and the NDEF storage space are managed separately.
[0026] Preferably, different protocol formats correspond to different protocols, and a storage state section is used to store the use state of the storage space dynamically applied by each protocol; wherein, the storage state section includes corresponding protocol tags and state words, and the storage space use state word definition mode of different protocols makes the whole storage space can be applied and used by each protocol.
[0027] Preferably, the storage management specifically includes:
[0028] obtaining the NDEF data corresponding to the specific protocol applied by the user to write; wherein, the specific corresponding protocol includes any one of TxT protocol, and the value range of x is: 1-5;
[0029] calculating the number of blocks required to write the NDEF data, detecting the storage state byte, and finding the unused block;
[0030] If the unused block is detected and the number of blocks to be written is reached, the NDEF data is written into the corresponding block, and the corresponding state word of the specific corresponding protocol is assigned.
[0031] Preferably, the storage management further includes:
[0032] Acquiring user application format NDEF data of the protocol;
[0033] Detecting the space state of the protocol, finding the corresponding use block case;
[0034] Clearing the corresponding use block space, and modifying the storage state section of the protocol space.
[0035] The beneficial effects of the embodiments of the present application are: compared with the prior art, the NFC full card compatible with multiple protocols provided by the embodiments of the present application can automatically detect the corresponding radio frequency technology category by integrating multiple protocol data of different protocol standards, and perform corresponding data processing according to different protocol formats; thus, the card can be compatible with the NFC Forum multiple protocols, so that the card is universal, and the holding, purchase and replacement of different types of cards are reduced; at the same time, the required storage space and storage management for different protocols are called, so that each protocol can use the storage space to the maximum extent. BRIEF DESCRIPTION OF DRAWINGS
[0036] In order to more clearly illustrate the specific embodiments of the present application or the technical solutions in the prior art, the drawings needed in the specific embodiments or the prior art description will be briefly introduced.
[0037] Figure 1 is a structural block diagram of the NFC full card compatible with multiple protocols provided by the embodiments of the present application;
[0038] Figure 2 is a flowchart of a radio frequency technology detection module processing provided by the embodiments of the present application;
[0039] Figure 3 is a structural diagram of an NFC-A data frame format provided by the embodiments of the present application;
[0040] Figure 4 is a structural diagram of an NFC-F data frame format provided by the embodiments of the present application;
[0041] Figure 5 is a correlation diagram of a storage state section provided by the embodiments of the present application. DETAILED DESCRIPTION
[0042] The technical solutions in the embodiments of the present application will be described clearly and completely below with reference to the drawings in the embodiments of the present application. Obviously, the described embodiments are part of the embodiments of the present application, rather than all the embodiments of the present application. Based on the embodiments in the present application, all other embodiments obtained by those skilled in the art without creative labor fall within the protection scope of the present application.
[0043] It should be noted that the technical terms or scientific terms used in the present application should be understood as the general meanings understood by the skilled in the art of the present application unless otherwise specified.
[0044] NFC(Near Field Communication), near field communication;
[0045] NFC Forum(Near Field Communication Forum), NFC forum;
[0046] T1T(Type 1 Tag), type 1 tag;
[0047] T2T(Type 2 Tag), type 2 tag;
[0048] T3T(Type 3 Tag), type 3 tag;
[0049] T4T(Type 4 Tag), type 4 tag;
[0050] T5T(Type 5 Tag), type 5 tag;
[0051] Mifare, a registered trademark of a series of contactless smart card technologies owned by NXP Semiconductors.
[0052] NDEF(NFC Data Exchange Format), NFC data exchange format;
[0053] Manchester, Manchester;
[0054] Miller, Miller;
[0055] NRZ(Not Return to Zero), not return to zero;
[0056] NFC-A, NFC ISO14443-A standard;
[0057] NFC-B, NFC ISO14443-B standard;
[0058] NFC-F, NFC Felica, JIS 6319-4 standard;
[0059] NFC-V, NFC Vicinity, ISO / IEC 15693 standard;
[0060] ASK, "amplitude shift keying" also known as "amplitude keying".
[0061] Please refer to Figures 1 to 4The NFC full card compatible with multiple protocols provided by the embodiment of the application comprises an NFC tag card, wherein the NFC tag card comprises a radio frequency processing module, an NFC state machine, an NFC protocol processing module and a storage management module.
[0062] The radio frequency processing module is used for:
[0063] receiving and demodulating data and decoding the data according to an NFC tag card protocol technical standard;
[0064] transmitting data, encoding data to be transmitted and transmitting the data after signal modulation; that is, modulating and transmitting digital signals to be transmitted;
[0065] receiving radio frequency signals and detecting corresponding radio frequency technology categories based on comparison of the NFC tag card protocol technical standard; wherein the radio frequency technology categories correspond to associated protocol formats; that is, NFC-A corresponds to T1T / T2T / T4T protocol, NFC-B corresponds to T1T / T2T / T4T protocol, NFC-F corresponds to T3T protocol and NFC-V corresponds to T5T protocol;
[0066] The NFC state machine is used for selecting a corresponding anti-collision algorithm for communication according to the radio frequency technology categories and entering a data exchange state when the NFC tag card is selected, in which state NFC protocol data processing can be performed and data of the NFC tag card can be read and written; wherein the anti-collision algorithm selects a corresponding anti-collision algorithm according to NFC-A, B, F and V standards, such as byte collision time interval for NFC-A, gap flag for NFC-B, time interval for NFC-F and 16 time slot and single time slot mode for NFC-V.
[0067] The NFC protocol processing module is used for integrating multiple protocol data and performing corresponding data processing for different protocol formats;
[0068] The storage management module is used for calling required storage space based on different protocol formats and performing storage management.
[0069] In the embodiment, the radio frequency processing module comprises a radio frequency modem module, a radio frequency technology detection module and a radio frequency encoding and decoding module.
[0070] The radio frequency modem module is used for receiving energy and data from a radio frequency antenna and demodulating the data; similarly, the radio frequency modem module modulates data to be transmitted and transmits the data through the radio frequency antenna, that is, modulates digital signals to be transmitted.
[0071] The radio frequency technology detection module is configured to query the radio frequency signal sent by the card reader host, establish a communication mode according to the NFC tag card protocol technical standard, and detect the corresponding radio frequency technology category based on comparison of the NFC tag card protocol technical standard; wherein the establishment of the communication mode includes NFC-A, NFC-B, NFC-F and NFC-V.
[0072] The radio frequency coding and decoding module is configured to decode the digital signal converted after radio frequency demodulation according to the NFC tag card protocol technical standard, and encode the transmitted signal; in this embodiment, Manchester coding and decoding, Miller coding and decoding, NRZ, and pulse position coding and decoding can be realized.
[0073] Further, as shown in Figure 3 The radio frequency technology detection module is specifically configured to:
[0074] receive the radio frequency signal sent by the card reader;
[0075] receive the radio frequency signal demodulated by the radio frequency modulation and demodulation module;
[0076] perform morphological analysis on the demodulated radio frequency signal, if it is symmetrical, it is determined to be NFC-F technology; otherwise, it is NFC-A / NFC-B / NFC-V;
[0077] Then, according to the different decoding modes, the corresponding NFC-A / NFC-B / NFC-V is identified; for example, Manchester is NFC-A, NRZ corresponds to NFC-B, and pulse position coding corresponds to NFC-V.
[0078] Finally, the NFC protocol processing module is configured to perform corresponding data processing for different protocol formats, i.e., T1T / T2T / T3T / T4T / T5T different protocol format data processing, specifically including:
[0079] After receiving the data, the data frame format is verified by the NFCForm Tag specification, the data is parsed, and then the data command is distributed; including commands such as parsing data writing and data reading, data writing and reading, i.e., operating the memory; wherein different protocol data read and write commands are defined by the NFCForm Tag specification.
[0080] For example, the different format frame data formats are as follows, refer to Figure 3 and Figure 4 .
[0081] The NFC-A data frame format is: DataPayload+EoD;
[0082] NFC-F data frame format: SoD+Data Payload+EoD; SoD represents the beginning of the data, the value is the length of the payload data plus one; Data Payload represents the payload data; EoD represents the end of the data, which is the CRC check code of the data field.
[0083] In this embodiment, the storage management module includes a memory and a storage management, the memory includes a mifare storage space and an NDEF storage space, and the mifare storage space and the NDEF storage space are managed separately.
[0084] The storage management is used to manage T1T / T2T / T3T / T4T / T5TNDEF storage space.
[0085] Because all mifare cards only exist in nfc-a technology, mifare and NDEF storage formats are inconsistent, so mifare space and NDEF space are managed separately. In actual application, T1T-T5T protocol technology all exists NDEF access. Each card of the traditional label card adopts a single protocol, and each card stores separate NDEF. Now the protocol is multi-compatible, and each protocol can separately open a storage space, which is used by each protocol alone, but this method is not high in overall storage space utilization. For example, the NDEF storage space is 20k, and each protocol occupies 4k. If T1T protocol needs to use NDEF space, only 4k or less can be used. If T2T / T3T / T4T / T5T space is not used, 16k of storage space is not used, resulting in space waste. In order to maximize the use of overall storage space, the present scheme can adopt a dynamic application storage space mode.
[0086] That is, different protocols correspond to different protocols, and the storage state section is used to store the use state of the dynamic application storage space of each protocol; wherein the storage state section includes corresponding protocol tags and state words, and the storage space use state word definition mode of different protocols enables the entire storage space to be separately applied and used by each protocol.
[0087] Specifically, the storage space is 32 bytes per block, and 128 blocks of space are taken as an example. The first 5 blocks are storage state sections, which store the use state of the dynamic application space of each protocol. Each block of user space is identified by 1 bit to indicate the use and non-use of the storage state. The 128 blocks of space are identified by 16 bytes of data state.
[0088] The storage state section is divided into T1TTag and 16 bytes of state identifier, T2TTag and 16 bytes of state identifier, T3TTag and 16 bytes of state identifier, T4TTag and 16 bytes of state identifier, and T5TTag and 16 bytes of state identifier.
[0089] Storage state section design:
[0090] TxT(x:1-5)Tag: defined as TxT(x:1-5) unique identification code.
[0091] TxT(x:1-5) state byte number n, n=m / 8;(m represents the total number of blocks) TxT(x:1-5) state byte each bit represents the corresponding block number using or not.
[0092] Referring to Figure 5 As shown, if T1T protocol needs to use user space block6, block7, block8, T1TTag state byte corresponds to 0x07000000, 0x00000000, 0x00000000, 0x00000000.
[0093] If T2T protocol needs to use user space block9, block10, block11, block12, T2TTag state byte corresponds to 0x00F00000, 0x00000000, 0x00000000, 0x00000000.
[0094] If T5T protocol needs to use user space block125, block126, block127, block128, T5TTag state byte corresponds to 0x00F00000, 0x00000000, 0x00000000, 0x0000000F.
[0095] Different protocol storage space usage state byte definition method, so that the entire storage space can be used by each protocol individually, who do who occupy.
[0096] Further, the storage management process in the embodiment is as follows:
[0097] Obtain user application to write NDEF data corresponding to the specific protocol; wherein, the specific corresponding protocol includes any one of TxT protocol, and the value range of x is: 1-5;
[0098] Calculate the number of blocks required to write the NDEF data, detect the storage state byte, and find the unused block;
[0099] If the unused block is detected and the number of blocks to be written is reached, the NDEF data is written into the corresponding block, and the corresponding state byte of the specific corresponding protocol is assigned.
[0100] Further, the storage management further includes:
[0101] Obtaining the user application format NDEF data of the protocol; the protocol here is also any one of the TxT protocols, and the value range of x is: 1-5; that is, it can be any one of T1T, T2T, T3T, T4T and T5T protocols;
[0102] Detecting the space state of the protocol, and searching for the corresponding use block condition;
[0103] Clearing the corresponding use block space, and modifying the storage state section of the protocol space.
[0104] The above technical scheme automatically detects the corresponding radio frequency technology category through the integrated multi-protocol data of different protocol standards, and performs corresponding data processing according to different protocol formats; thereby, a card compatible with the NFC Forum multi-protocol can be realized, so that a card is universal, and the holding, purchase and replacement of different types of cards are reduced; at the same time, the storage space and storage management required for different protocols are called, so that each protocol can maximize the use of storage space.
[0105] At the same time, the integrated multi-protocol can be used for automatic testing of the NFC Forum protocol card reading mode, so that the tester does not need to purchase cards of different protocols and radio frequency technologies, and the tester does not need to manually replace and test cards of different protocols and radio frequency technologies.
[0106] Those skilled in the art can realize that the modules and steps of the examples described in combination with the embodiments disclosed in the present text can be realized in electronic hardware, computer software or a combination of both. In order to clearly illustrate the interchangeability of hardware and software, the components and steps of the examples have been described in the above description in general. Whether the functions are realized in hardware or software depends on the specific application and design constraints of the technical solution. The skilled person can use different methods to realize the described functions for each specific application, but such implementation should not be considered beyond the scope of the present application.
[0107] In several embodiments provided in the present application, it should be understood that the disclosed system can be implemented in other ways. For example, the above-described system embodiments are only illustrative, for example, the division of the modules is only a logical functional division, and actual implementation can have another division method, for example, a plurality of units or components can be combined or integrated into another system, or some features can be ignored or not executed.
[0108] The above merely illustrates the specific embodiments of the present application, but the protection scope of the present application is not limited thereto, and any skilled person in the art can easily think of various equivalent modifications or replacements within the technical range disclosed by the present application, and these modifications or replacements shall be covered within the protection scope of the present application.
Claims
1. A multi-protocol compatible NFC full card comprising an NFC tag card, characterized in that, The NFC tag card comprises a radio frequency processing module, an NFC state machine, an NFC protocol processing module and a storage management module. The radio frequency processing module is configured to: receive and demodulate data, and decode the data according to an NFC tag card protocol technical standard; receive a radio frequency signal, and detect a corresponding radio frequency technology category based on comparison of the NFC tag card protocol technical standard, wherein the radio frequency technology category is associated with a protocol format; the NFC state machine is configured to select a corresponding anti-collision algorithm for communication according to the radio frequency technology category, and enter a data exchange state when the NFC tag card is selected, thereby realizing reading and writing of the NFC tag card; the NFC protocol processing module is configured to integrate multiple protocol data and perform corresponding data processing for different protocol formats; the storage management module is configured to call required storage space based on different protocol formats and perform storage management; the radio frequency processing module comprises a radio frequency modulation and demodulation module, a radio frequency technology detection module and a radio frequency encoding and decoding module; the radio frequency modulation and demodulation module is configured to receive energy and data from a radio frequency antenna, demodulate the data, and modulate digital signals to be transmitted; the radio frequency technology detection module is configured to query a radio frequency signal sent by a card reader host, establish a communication mode according to an NFC tag card protocol technical standard, and detect a corresponding radio frequency technology category based on comparison of the NFC tag card protocol technical standard; wherein the communication mode comprises NFC-A, NFC-B, NFC-F and NFC-V; the radio frequency encoding and decoding module is configured to decode digital signals converted from a radio frequency signal according to an NFC tag card protocol technical standard, and encode digital signals to be transmitted; the radio frequency technology detection module is specifically configured to: receive a radio frequency signal sent by a card reader; receive a radio frequency signal demodulated by the radio frequency modulation and demodulation module; perform morphological analysis on the demodulated radio frequency signal, and if the radio frequency signal is symmetrical, it is determined to be NFC-F technology; otherwise, it is determined to be NFC-A / NFC-B / NFC-V; then, according to different decoding modes, the corresponding NFC-A / NFC-B / NFC-V is identified.
2. The multi-protocol compatible NFC full card of claim 1, wherein, the NFC protocol processing module is configured to perform corresponding data processing for different protocol formats, specifically including: after receiving data, the data frame format is verified by NFCForm Tag specification, the data is parsed, and then the data command is distributed; wherein different protocol data read and write commands are different and are defined by NFCForm Tag specification.
3. The multi-protocol compatible NFC full card according to any one of claims 1 to 2, wherein, the storage management module comprises a storage, the storage comprises a mifare storage space and an ndef storage space, and the mifare storage space and the ndef storage space are managed separately.
4. The multi-protocol compatible NFC full card of claim 3, wherein, Different protocol formats correspond to different protocols, and a storage state section is used to store the use state of the dynamic application storage space of each protocol; wherein the storage state section includes a corresponding protocol label and a state word, and the use state word definition mode of the storage space of different protocols enables the entire storage space to be individually applied and used by each protocol.
5. The multi-protocol compatible NFC full card of claim 4, wherein, The storage management specifically includes: Obtaining user application writing NDEF data corresponding to a specific protocol; wherein the specific corresponding protocol includes any one of TxT protocols, and the value range of x is: 1-5; Calculating the number of blocks required to write the NDEF data, detecting the storage state byte, and finding unused blocks; If unused blocks are detected and the number of blocks to be written is reached, the NDEF data is written into the corresponding block, and the corresponding state word of the specific corresponding protocol is assigned.
6. The multi-protocol compatible NFC full card of claim 5, wherein, The storage management also includes: Obtaining user application formatting NDEF data of the protocol; Detecting the space state of the protocol, and finding the corresponding use block condition; Clearing the corresponding use block space and modifying the storage state section of the protocol space.
Citation Information
Patent Citations
Multiple NFC Card Applications in Multiple Execution Environments
US20120178366A1