Method and device, system for identification interaction based on NFC
By receiving communication control frames and frame mapping relationships in NFC devices to determine chip parameters, the accuracy and compatibility issues in the identification and interaction process of NFC devices are resolved, achieving accurate identification and stable interaction, and improving the user experience.
Patent Information
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- BEIJING TSINGTENG MICROSYSTEM CO LTD
- Filing Date
- 2026-04-17
- Publication Date
- 2026-06-26
AI Technical Summary
NFC devices suffer from insufficient accuracy, low interaction efficiency, and compatibility issues during identification and interaction, resulting in a poor user experience.
By receiving communication control frames and frame mapping relationships in card emulation mode, the chip parameters to be configured are determined, and the parameters are configured according to the mode type, so as to achieve accurate identification and stable data interaction of the peer NFC device.
It improves the recognition accuracy and interaction efficiency of NFC devices, ensures compatibility and stability with peer devices, and enhances the user experience.
Smart Images

Figure CN122294086A_ABST
Abstract
Description
Technical Field
[0001] This application relates to the field of near-field communication technology, such as a method, device, and system based on NFC identification and interaction. Background Technology
[0002] Currently, with the continuous improvement of near field communication (NFC) technology, NFC functionality is becoming increasingly popular in more and more smart devices, and there is a growing demand for quick sharing and transmission between various devices via NFC (contacts, text messages, photos, videos, application information, etc.).
[0003] However, because the NFC application layer needs to determine too much device information and related conditions, the accuracy of NFC identification is insufficient, resulting in low interaction efficiency. Furthermore, NFC devices suffer from compatibility issues when interacting with other NFC devices, requiring the application layer to frequently update chip parameters, leading to a poor user experience.
[0004] It should be noted that the information disclosed in the background section above is only used to enhance the understanding of the background of this application, and therefore may include information that does not constitute prior art known to those skilled in the art. Summary of the Invention
[0005] To provide a basic understanding of some aspects of the disclosed embodiments, a brief summary is given below. This summary is not intended as a general commentary, nor is it intended to identify key / important components or describe the scope of protection of these embodiments, but rather as a prelude to the detailed description that follows.
[0006] This disclosure provides a method, apparatus, and system for NFC-based identification and interaction, enabling accurate identification of peer NFC devices and ensuring compatibility and stability of data interaction with peer NFC devices.
[0007] In some embodiments, the method is applied to a first NFC device, and the method includes: determining chip parameters to be configured based on communication control frames and frame mapping relationships received in card emulation mode; wherein the communication control frames are sent by the second NFC device in card reader mode according to the communication control frames to be sent, and the frame mapping relationship is a preset correspondence in card emulation mode; determining the mode type of the second NFC device based on the communication control frames and frame mapping relationships received in card emulation mode; configuring the parameters according to the chip parameters to be configured; and completing data interaction with the second NFC device according to the mode type of the second NFC device.
[0008] In some embodiments, the frame mapping relationship includes the correspondence between the communication control frame to be received and the mode type of the NFC device, wherein the mode type includes the manufacturer type and / or the application scenario type; determining the mode type of the second NFC device based on the communication control frame received in card emulation mode and the frame mapping relationship includes: determining the mode type of the second NFC device as the preset manufacturer type when the communication control frame represents the preset manufacturer type; and / or, determining the mode type of the second NFC device as the preset scenario type when the communication control frame represents the preset scenario type.
[0009] In some embodiments, the frame mapping relationship includes the correspondence between the communication control frame to be received and identified and the chip parameters; determining the chip parameters to be configured based on the communication control frame received in card emulation mode and the frame mapping relationship includes: reading the communication control frame to be received and identified from the frame mapping relationship; if the communication control frame received in card emulation mode matches the communication control frame to be received and identified, reading the chip parameters corresponding to the communication control frame to be received and identified from the frame mapping relationship; determining the chip parameters corresponding to the communication control frame to be received and identified as the chip parameters to be configured; configuring the parameters according to the chip parameters to be configured includes: configuring the chip to enable the channel corresponding to the communication control frame to be received and identified, and configuring the chip to disable other channels, based on the chip parameters to be configured.
[0010] In some embodiments, the first NFC device includes a first NFC controller and a device host (DH); data interaction with the second NFC device is performed according to the mode type of the second NFC device, including: the DH configuring a corresponding Discovery command to the first NFC controller according to the mode type of the second NFC device; and the first NFC controller performing data interaction with the second NFC device based on the Discovery command.
[0011] In some embodiments, the method is applied to a second NFC device, and the method includes: transmitting data according to a communication control frame to be transmitted in card reader mode; wherein the communication control frame to be transmitted is data preset in card reader mode; and completing data interaction with a first NFC device.
[0012] In some embodiments, the communication control frame includes some or all of the following: a Type A private frame, a Type B private frame, or a Type F private frame. In card reader mode, data is transmitted according to the communication control frame to be sent, including: in card reader mode, sending a Type A private frame before sending a REQA polling request frame; and / or, in card reader mode, sending a Type B private frame after sending a REQA polling request frame and before sending a REQB polling request frame; and / or, in card reader mode, sending a Type F private frame after sending a REQB polling request frame and before sending a Type F polling request frame.
[0013] In some embodiments, the first device is applied to a first NFC device, the first device comprising: a DH, configured to determine the chip parameters to be configured and the mode type of the second NFC device based on the communication control frames and frame mapping relationships received in card emulation mode; and a first NFC controller, configured to configure the parameters according to the chip parameters to be configured, and to complete data interaction with the second NFC device according to the mode type of the second NFC device.
[0014] In some embodiments, the second device is applied to a second NFC device, the second device comprising: a second NFC controller configured to transmit data according to a communication control frame to be transmitted in card reader mode, and to complete data interaction with the first NFC device.
[0015] In some embodiments, the third device includes a processor and a memory storing program instructions, the processor being configured to execute the NFC-based identification interaction method as described above when running the program instructions.
[0016] In some embodiments, the system includes: a first NFC device, including a first means for NFC-based identification interaction as described above; and a second NFC device, including a second means for NFC-based identification interaction as described above.
[0017] The NFC-based identification and interaction method, apparatus, and system provided in this disclosure can achieve the following technical effects: The first NFC device determines the chip parameters to be configured based on the communication control frames and frame mapping relationships received in card emulation mode, and then configures the parameters accordingly. This allows the card emulation device to complete the chip parameter configuration simply by receiving the communication control frames and the preset frame mapping relationships, eliminating the need for complex and cumbersome conditional judgments and ensuring the stability and compatibility of data interaction with the peer NFC device. Simultaneously, the card emulation device also determines the card reader's mode type based on the communication control frames and frame mapping relationships received in card emulation mode, and completes data interaction with the card reader according to the mode type, achieving accurate identification of the peer NFC device.
[0018] The above general description and the description below are exemplary and illustrative only and are not intended to limit this application. Attached Figure Description
[0019] One or more embodiments are illustrated by way of example with reference to the accompanying drawings. These illustrations and drawings do not constitute a limitation on the embodiments. Elements having the same reference numerals in the drawings are shown as similar elements. The drawings are not to be scaled. And wherein: Figure 1This is a schematic diagram of a system architecture based on NFC identification interaction provided in an embodiment of this disclosure; Figure 2 This is a schematic diagram of a method for NFC-based identification and interaction provided in an embodiment of this disclosure; Figure 3 This is a schematic diagram of another NFC-based identification interaction method provided in an embodiment of this disclosure; Figure 4 This is a schematic diagram of another NFC-based identification interaction method provided in an embodiment of this disclosure; Figure 5 This is an application illustration of an embodiment of the present disclosure; Figure 6 This is a schematic diagram of a first device based on NFC identification interaction provided in an embodiment of this disclosure; Figure 7 This is a schematic diagram of a second device based on NFC identification interaction provided in an embodiment of this disclosure; Figure 8 This is a schematic diagram of a third device based on NFC identification interaction provided in an embodiment of this disclosure. Detailed Implementation
[0020] To provide a more detailed understanding of the features and technical content of the embodiments of this disclosure, the implementation of the embodiments of this disclosure will be described in detail below with reference to the accompanying drawings. The accompanying drawings are for illustrative purposes only and are not intended to limit the embodiments of this disclosure. In the following technical description, for ease of explanation, several details are used to provide a full understanding of the disclosed embodiments. However, one or more embodiments may still be implemented without these details. In other cases, well-known structures and devices may be simplified in their depiction to simplify the drawings.
[0021] The terms "first," "second," etc., used in the specification, claims, and accompanying drawings of this disclosure are used to distinguish similar objects and are not necessarily used to describe a specific order or sequence. It should be understood that such data can be interchanged where appropriate for the embodiments of this disclosure described herein. Furthermore, the terms "comprising" and "having," and any variations thereof, are intended to cover non-exclusive inclusion.
[0022] Unless otherwise stated, the term "multiple" means two or more.
[0023] In this embodiment of the disclosure, the character " / " indicates that the objects before and after it are in an "or" relationship. For example, A / B means: A or B.
[0024] The term "and / or" describes an association between objects, indicating that three relationships can exist. For example, A and / or B means: A or B, or A and B.
[0025] The term "correspondence" can refer to an association or binding relationship. The correspondence between A and B means that there is an association or binding relationship between A and B.
[0026] In this embodiment, an NFC device refers to an electronic device that has a built-in NFC controller and antenna, and relies on electromagnetic induction to achieve contactless data exchange within a preset communication range based on a 13.56MHz high frequency. The NFC device includes a Device Host (DH) and an NFC controller. The DH and NFC controller are connected via I2C communication. The DH includes application layer, protocol layer, and driver layer software. The NFC controller includes an NFC controller and a Secure Element (SE). The NFC device interacts with other NFC devices through a radio frequency front-end. Here, the NFC device implements either card emulation mode or card reading mode through the NFC controller. In card emulation mode, data is read by other NFC devices; in card reading mode, data is read from other NFC devices to achieve data interaction between NFC devices.
[0027] Combination Figure 1 As shown, this disclosure provides a system 10 based on NFC identification interaction, including a first NFC device 101 and a second NFC device 102.
[0028] The first NFC device 101 represents an NFC device operating in card emulation mode. Card emulation mode simulates the NFC device as a contactless smart card (such as a public transport card, access control card, or bank card), enabling it to be recognized and read by other NFC card reader devices. In card emulation mode, the NFC device only responds to queries from external card readers, and the data flow is unidirectional. Application scenarios associated with card emulation mode include mobile payment or access control systems, and public transport card payments.
[0029] The second NFC device 102 represents an NFC device operating in card reader mode. Card reader mode refers to using the NFC device as a contactless card reader to actively read data from other NFC tags or smart cards. In card reader mode, the NFC device initiates communication and reads or writes tag data; the data flow is bidirectional. Application scenarios associated with card reader mode include information collection or ticketing management, and interactive smart posters.
[0030] In this embodiment, the NFC device operating in card emulation / reader mode configures communication control frames with the NFC controller via DH. The communication control frames include pre-set communication control frames to be sent in card reader mode and communication control frames to be received and identified in card emulation mode. Here, the communication control frames are hexadecimal private frame data sequences. The private frame data sequence can be one byte or multiple bytes. In some optional embodiments, the NFC device operating in card reader mode during the polling cycle sends polling request frames according to the ISO14443-3 protocol. The polling request frames include REQA or REQB polling request frames and Type F polling request frames. The communication control frames to be sent include some or all of the Type A private frames, Type B private frames, and Type F private frames. Specifically, Type A private frames are sent before REQA polling request frames, Type B private frames are sent after REQA polling request frames and before REQB polling request frames, and Type F private frames are sent after REQB polling request frames and before Type F polling request frames.
[0031] NFC devices have pre-set frame mapping relationships. These frame mapping relationships are pre-set correspondences in card emulation mode. They include the correspondence between the communication control frame to be received and the NFC device's mode type, and / or the correspondence between the communication control frame to be received and the chip parameters. Here, mode types include manufacturer type and / or application scenario type. Application scenario types include public transport turnstile card swiping scenarios or access control turnstile card swiping scenarios. The aforementioned chip parameters can be one or more. As an example, the correspondence between the communication control frame to be received and the chip parameters is as follows: Type A private frame is hexadecimal A0660101, and the corresponding chip parameter is F1; Type B private frame is hexadecimal A0660102, and the corresponding chip parameter is F2; Type F private frame is hexadecimal A0660103, and the corresponding chip parameter is F3. F1, F2, and F3 are all different.
[0032] Based on the aforementioned NFC-based identification and interaction system 10, combined with Figure 2 As shown, this disclosure provides a method for NFC-based identification interaction, including: S01, the first NFC device determines the chip parameters to be configured based on the communication control frame and frame mapping relationship received in card emulation mode; wherein, the communication control frame is sent by the second NFC device in card reading mode according to the communication control frame to be sent, and the frame mapping relationship is the pre-set correspondence in card emulation mode.
[0033] S02, the first NFC device determines the mode type of the second NFC device based on the communication control frames and frame mapping relationships received in the card emulation mode.
[0034] S03, the first NFC device configures the parameters according to the chip parameters to be configured.
[0035] S04, the first NFC device completes data interaction with the second NFC device according to the mode type of the second NFC device.
[0036] The NFC-based identification and interaction method provided in this disclosure involves a first NFC device determining the chip parameters to be configured based on the communication control frames and frame mapping relationships received in card emulation mode, and configuring the parameters accordingly. This allows the card emulation device to complete the chip parameter configuration simply by receiving the communication control frames and the preset frame mapping relationships, eliminating the need for complex and cumbersome conditional judgments and ensuring the stability and compatibility of data interaction with the peer NFC device. Simultaneously, the card emulation device also determines the mode type of the card reader based on the communication control frames and frame mapping relationships received in card emulation mode, and completes data interaction with the card reader according to the mode type, achieving accurate identification of the peer NFC device.
[0037] Optionally, the frame mapping relationship includes the correspondence between the communication control frames to be received and identified and the mode types of the NFC devices, where the mode types include manufacturer type and / or application scenario type. The first NFC device determines the mode type of the second NFC device based on the communication control frames received in card emulation mode and the frame mapping relationship, including: When the communication control frame indicates a preset vendor type, the mode type of the second NFC device is determined to be the preset vendor type; and / or, When the communication control frame indicates a preset scene type, determine the preset scene type corresponding to the mode type of the second NFC device.
[0038] In this way, the first NFC device can identify the manufacturer type or application scenario type of the second NFC device based on the received communication control frame, thereby enabling the first NFC device and the second NFC device to interact in specific application scenarios, achieving accurate identification of the peer NFC device, improving the accuracy of application scenario interaction and user experience.
[0039] In some optional embodiments, the communication control frame includes a Type A private frame and a Type B private frame. The Type A private frame is hexadecimal A0660101, with a preset vendor type of vendor A and a preset scenario type of bus gate card swiping scenario. The Type B private frame is hexadecimal A0660102, with a preset vendor type of vendor B and a preset scenario type of access control gate card swiping scenario.
[0040] Optionally, combined Figure 3 As shown, the first NFC device determines the chip parameters to be configured based on the communication control frames received in card emulation mode, including: S11, the first NFC device reads the communication control frame to be received and identified from the frame mapping relationship.
[0041] S12, if the communication control frame received in card emulation mode matches the communication control frame to be received and identified, the first NFC device reads the chip parameters corresponding to the communication control frame to be received and identified from the frame mapping relationship.
[0042] In this step, the communication control frame received in card emulation mode is matched with the communication control frame to be received and identified, including: the communication control frame received in card emulation mode is the same as the communication control frame to be received and identified.
[0043] S13, the first NFC device determines that the chip parameters corresponding to the communication control frame to be received and identified are the chip parameters to be configured.
[0044] In this way, the first NFC device can read the chip parameters to be configured based on the matching of the communication control frame received in card emulation mode with the communication control frame to be received and identified. This allows the card emulation device to complete the configuration of chip parameters by receiving the communication control frame and the preset frame mapping relationship, without the need for complex and cumbersome condition judgments, thus ensuring the stability and compatibility of data interaction with the peer NFC device.
[0045] Optionally, the first NFC device configures parameters according to the chip parameters to be configured, including: The first NFC device configures the chip's activation parameters to enable the channel corresponding to the communication control frame to be received and identified, based on the chip parameters to be configured. It also configures the chip's blocking parameters to block other channels. These other channels are those excluding the channel corresponding to the communication control frame to be received and identified. In this way, after recognizing the communication control frame to be received and identified, the first NFC device only enables the channel corresponding to that communication control frame, while blocking other channels, achieving accurate identification by the peer NFC device and ensuring the stability of subsequent interactions with the peer NFC device.
[0046] As an example, the first NFC device determines the chip parameters to be configured based on the communication control frame received in card emulation mode. This includes: the first NFC device reading the communication control frame to be received and identified from the frame mapping relationship. If, after comparison, the communication control frame received in card emulation mode is the same as the communication control frame to be received and identified, and the communication control frame to be received and identified is a Type F proprietary frame, then it is determined that the communication control frame received in card emulation mode matches the communication control frame to be received and identified. The first NFC device then determines that the chip parameters corresponding to the Type F proprietary frame are the chip parameters to be configured.
[0047] The first NFC device configures the chip parameters according to the parameters to be configured, including: configuring the chip to enable the channel corresponding to the Type F private frame, and configuring the chip to disable other channels besides the channel corresponding to the Type F private frame. Thus, only the channel corresponding to the Type F private frame is enabled, while the channels corresponding to the Type A and Type B private frames are disabled.
[0048] Optionally, the first NFC device determines the chip parameters to be configured based on the communication control frames received in card emulation mode, and further includes: exiting card emulation mode according to a timeout mechanism if the communication control frames received in card emulation mode do not match the communication control frames to be received and identified. Exiting card emulation mode according to the timeout mechanism means exiting card emulation mode after failing to complete matching within the expected time.
[0049] Optionally, the NFC-based identification interaction method further includes: after the first NFC device configures the parameters according to the chip parameters to be configured, it exits the card emulation mode.
[0050] Optionally, the first NFC device includes a first NFC controller and a DH (Discovery Controller). The first NFC device interacts with the second NFC device according to the mode type of the second NFC device, including: the DH configuring a corresponding Discovery command to the first NFC controller based on the mode type of the second NFC device; and the first NFC controller interacting with the second NFC device based on the Discovery command. This facilitates stable and accurate subsequent application information exchange between the first and second NFC devices.
[0051] Optionally, the DH configures a corresponding Discovery command to the first NFC control according to the mode type of the second NFC device, including: the DH configuring corresponding Discovery parameters to the first NFC control according to the mode type of the second NFC device. The Discovery parameters include ISO14443 protocol associated parameters or NFC communication mode associated parameters. Here, the ISO14443 protocol includes Type A, Type B, and Type C protocols, and the NFC communication mode includes Polling mode or Listen mode.
[0052] Combination Figure 4 As shown in the embodiments of this disclosure, a method for NFC-based identification interaction is also provided, including: S21, the second NFC device transmits data according to the communication control frame to be transmitted. The communication control frame to be transmitted is the data preset in card reader mode.
[0053] S22, the second NFC device completes data interaction with the first NFC device.
[0054] The NFC-based identification and interaction method provided in this disclosure involves a second NFC device sending data according to a pre-set communication control frame in card reader mode. This allows the first NFC device to obtain the mode type of the second NFC device based on the pre-set communication control frame, complete chip parameter configuration, and then interact with the first NFC device. This method enables accurate identification of the peer NFC device and ensures stable data interaction with it. This disclosure allows the card emulator to configure chip parameters based on the pre-set communication control frame sent by the card reader and a pre-set frame mapping relationship, eliminating the need for complex and cumbersome conditional judgments and ensuring the stability and compatibility of data interaction with the peer NFC device. Furthermore, it enables the card emulator to determine the mode type of the card reader based on the pre-set communication control frame and frame mapping relationship, and then interact with the card reader according to the mode type, achieving accurate identification of the peer NFC device.
[0055] Optionally, in the second NFC device's card reading mode, data is transmitted according to the communication control frame to be sent, including: In card reader mode, the second NFC device sends a Type A private frame before sending the REQA polling request frame; and / or, In card reader mode, the second NFC device sends a Type B private frame after sending the REQA polling request frame and before sending the REQB polling request frame; and / or, In card reader mode, the second NFC device sends a TypeF private frame after sending the REQB polling request frame and before sending the TypeF polling request frame.
[0056] In this way, the second NFC device can send the communication control frame to be sent under the original Type A, Type B and Type C protocols, so as to trigger the first NFC device to complete the identification of the mode type of the peer NFC device and the acquisition of the chip parameters to be configured, so that the card emulation device can complete the accurate identification of the peer NFC device and ensure the stability and compatibility of data interaction with the peer NFC device.
[0057] In practical applications, such as Figure 5 As shown, the NFC-based identification interaction method specifically includes the following steps: S100: The first NFC device and the second NFC device have a preset frame mapping relationship and communication control frames to be sent. The frame mapping relationship includes the correspondence between the communication control frames to be received and identified in card emulation mode and the mode type of the NFC device, and the correspondence between the communication control frames to be received and identified in card emulation mode and the chip parameters. The communication control frames to be sent are preset data in card reader mode. Here, the communication control frames to be sent include Type A private frames, Type B private frames, and Type F private frames.
[0058] S101, in card emulation mode, the first NFC device DH sets the default Discovery command.
[0059] S102, in card reader mode, the second NFC device sends a Type A private frame.
[0060] S103, in card reader mode, the second NFC device sends a REQA polling request frame.
[0061] S104, in card reader mode, the second NFC device sends a Type B private frame.
[0062] S105, in card reader mode, the second NFC device sends a REQB polling request frame.
[0063] S106, in card reader mode, the second NFC device sends a Type F private frame.
[0064] S107, in card reader mode, the second NFC device sends a Type F polling request frame.
[0065] S108, the first NFC controller sends the communication control frame received in card mode to DH.
[0066] S109, if the communication control frame received in card emulation mode is the same as the communication control frame to be received and identified, DH reads the chip parameters corresponding to the communication control frame to be received and identified from the frame mapping relationship, and determines that the chip parameters corresponding to the communication control frame to be received and identified are the chip parameters to be configured.
[0067] S110, DH sends the chip parameters to be configured to the first NFC controller.
[0068] S111, the first NFC controller configures the parameters according to the parameters of the chip to be configured.
[0069] S112, the first NFC controller exits card emulation mode.
[0070] S113, DH determines the mode type of the second NFC device based on the communication control frames and frame mapping relationships received in card emulation mode.
[0071] S114, DH configures the corresponding Discovery command to the first NFC controller according to the mode type of the second NFC device.
[0072] S115, the first NFC controller completes data interaction with the second NFC device based on the configured Discovery command.
[0073] Combination Figure 6 As shown, this embodiment of the present disclosure provides a first device 200 based on NFC identification interaction, applied to a first NFC device, the device including DH201 and a first NFC controller 202.
[0074] DH201 is configured to determine the chip parameters to be configured and the mode type of the second NFC device based on the communication control frames and frame mapping relationships received in card emulation mode.
[0075] The first NFC controller 202 is configured to configure parameters according to the chip parameters to be configured, and to complete data interaction with the second NFC device according to the mode type of the second NFC device.
[0076] Combination Figure 7 As shown, this disclosure also provides a second device 300 based on NFC identification interaction, applied to a second NFC device, the device including a second NFC controller 301.
[0077] The second NFC controller 301 is configured to send data according to the communication control frame to be sent in card reader mode and complete data interaction with the first NFC device.
[0078] Combination Figure 8As shown, this disclosure provides a third device 70 based on NFC identification interaction, including a processor 700 and a memory 701. Optionally, the device 70 may further include a communication interface 702 and a bus 703. The processor 700, communication interface 702, and memory 701 can communicate with each other via the bus 703. The communication interface 702 can be used for information transmission. The processor 700 can call logical instructions in the memory 701 to execute the NFC identification interaction method of the above embodiments.
[0079] Furthermore, the logic instructions in the aforementioned memory 701 can be implemented as software functional units and, when sold or used as independent products, can be stored in a computer-readable storage medium.
[0080] The memory 701, as a computer-readable storage medium, can be used to store software programs and computer-executable programs, such as program instructions / modules corresponding to the methods in the embodiments of this disclosure. The processor 700 executes functional applications and data processing by running the program instructions / modules stored in the memory 701, thereby implementing the NFC-based identification interaction method described in the above embodiments.
[0081] The memory 701 may include a program storage area and a data storage area. The program storage area may store the operating system and application programs required for at least one function; the data storage area may store data created based on the use of the terminal device. Furthermore, the memory 701 may include high-speed random access memory and may also include non-volatile memory.
[0082] This disclosure also provides a system based on NFC identification interaction, including a first NFC device and a second NFC device. The first NFC device includes the first device 200 for NFC identification interaction as described above. The second NFC device includes the second device 300 for NFC identification interaction as described above.
[0083] This disclosure provides an NFC device (101 / 102), including: an NFC device body and the aforementioned NFC identification interaction device 200 (300). The NFC identification interaction device 200 (300) is installed in the NFC device body. The installation relationship described herein is not limited to placement inside the NFC device body, but also includes installation connections with other components of the NFC device, including but not limited to physical connections, electrical connections, or signal transmission connections. Those skilled in the art will understand that the NFC identification interaction device 200 (300) can be adapted to feasible NFC device bodies to achieve other feasible embodiments.
[0084] This disclosure provides a computer-readable storage medium storing computer-executable instructions configured to perform the above-described NFC-based identification interaction method.
[0085] The technical solutions of this disclosure can be embodied in the form of a software product. This computer software product is stored in a storage medium and includes one or more instructions to cause a computer device (which may be a personal computer, server, or network device, etc.) to execute all or part of the steps of the method described in this disclosure. The aforementioned storage medium can be a non-transitory storage medium, such as a USB flash drive, external hard drive, read-only memory (ROM), random access memory (RAM), magnetic disk, or optical disk, etc., and other media capable of storing program code.
[0086] The foregoing description and accompanying drawings fully illustrate embodiments of this disclosure to enable those skilled in the art to practice them. Other embodiments may include structural, logical, electrical, procedural, and other changes. The embodiments represent only possible variations. Individual components and functions are optional unless explicitly required, and the order of operation may vary. Parts and features of some embodiments may be included in or replace parts and features of other embodiments. Moreover, the terminology used in this application is for describing embodiments only and is not intended to limit the claims. As used in the description of embodiments and claims, the singular forms “a,” “an,” and “the” are intended to equally include the plural forms unless the context clearly indicates otherwise. Similarly, the term “and / or” as used in this application means including one or more of the associated listed items and all possible combinations thereof. Additionally, when used in this application, the term "comprise" and its variations "comprises" and / or "comprising" refer to the presence of stated features, integrals, steps, operations, elements, and / or components, but do not exclude the presence or addition of one or more other features, integrals, steps, operations, elements, components, and / or groups thereof. Without further limitations, an element defined by the phrase "comprises a..." does not exclude the presence of other identical elements in the process, method, or apparatus that includes said element. In this document, each embodiment may focus on the differences from other embodiments, and similar or identical parts between embodiments can be referred to mutually. For methods, products, etc., disclosed in the embodiments, if they correspond to the method section disclosed in the embodiments, the relevant parts can be referred to the description of the method section.
[0087] Those skilled in the art will recognize that the units and algorithm steps of the various examples described in conjunction with the embodiments disclosed herein can be implemented in electronic hardware, or a combination of computer software and electronic hardware. Whether these functions are implemented in hardware or software depends on the specific application and design constraints of the technical solution. Those skilled in the art can use different methods to implement the described functions for each specific application, but such implementation should not be considered beyond the scope of the embodiments of this disclosure. Those skilled in the art will clearly understand that, for the sake of convenience and brevity, the specific working processes of the systems, devices, and units described above can be referred to the corresponding processes in the foregoing method embodiments, and will not be repeated here.
[0088] The methods and products disclosed in the embodiments herein (including but not limited to devices and equipment) can be implemented in other ways. For example, the device embodiments described above are merely illustrative. For instance, the division of units may be merely a logical functional division, and in actual implementation, there may be other division methods. For example, multiple units or components may be combined or integrated into another system, or some features may be ignored or not executed. In addition, the mutual coupling or direct coupling or communication connection shown or discussed may be through some interfaces, and the indirect coupling or communication connection of devices or units may be electrical, mechanical, or other forms. The units described as separate components may or may not be physically separate. The components shown as units may or may not be physical units, that is, they may be located in one place or distributed across multiple network units. Some or all of the units can be selected to implement this embodiment according to actual needs. In addition, the functional units in the embodiments of this disclosure may be integrated into one processing unit, or each unit may exist physically separately, or two or more units may be integrated into one unit.
[0089] The flowcharts and block diagrams in the accompanying drawings illustrate the architecture, functionality, and operation of possible implementations of systems, methods, and computer program products according to embodiments of this disclosure. In this regard, each block in a flowchart or block diagram may represent a module, segment, or portion of code containing one or more executable instructions for implementing a specified logical function. In some alternative implementations, the functions marked in the blocks may occur in a different order than that shown in the drawings. For example, two consecutive blocks may actually be executed substantially in parallel, and they may sometimes be executed in reverse order, depending on the functions involved. In the descriptions corresponding to the flowcharts and block diagrams in the accompanying drawings, the operations or steps corresponding to different blocks may also occur in a different order than disclosed in the description, and sometimes there is no specific order between different operations or steps. For example, two consecutive operations or steps may actually be executed substantially in parallel, and they may sometimes be executed in reverse order, depending on the functions involved. Each block in a block diagram and / or flowchart, and combinations of blocks in a block diagram and / or flowchart, can be implemented using a dedicated hardware-based system that performs the specified function or action, or using a combination of dedicated hardware and computer instructions.
Claims
1. A method for identification and interaction based on Near Field Communication (NFC), characterized in that, Applied to the first NFC device, the method includes: Based on the communication control frames and frame mapping relationships received in card emulation mode, the chip parameters to be configured are determined; wherein, the communication control frames are sent by the second NFC device in card reading mode according to the communication control frames to be sent, and the frame mapping relationship is the pre-set correspondence in card emulation mode; The mode type of the second NFC device is determined based on the communication control frames and frame mapping relationships received in card emulation mode; Configure the parameters according to the chip parameters to be configured; Complete data interaction with the second NFC device according to the mode type of the second NFC device.
2. The method according to claim 1, characterized in that, The frame mapping relationship includes the correspondence between the communication control frame to be received and identified and the mode type of the NFC device. The mode type includes the manufacturer type and / or application scenario type. Based on the communication control frames and frame mapping relationships received in card emulation mode, the mode type of the second NFC device is determined, including: When the communication control frame indicates a preset manufacturer type, the mode type of the second NFC device is determined to be the preset manufacturer type; And / or, When the communication control frame indicates a preset scene type, determine the preset scene type corresponding to the mode type of the second NFC device.
3. The method according to claim 1, characterized in that, The frame mapping relationship includes the correspondence between the communication control frames to be received and identified and the chip parameters; based on the communication control frames received in card emulation mode and the frame mapping relationship, the chip parameters to be configured are determined, including: Read the communication control frame to be received and identified from the frame mapping relationship; When the communication control frame received in card emulation mode matches the communication control frame to be received and identified, the chip parameters corresponding to the communication control frame to be received and identified are read from the frame mapping relationship. The chip parameters corresponding to the communication control frame to be received and identified are determined to be the chip parameters to be configured. Configure the parameters according to the chip parameters to be configured, including: Based on the chip parameters to be configured, the chip is configured with activation parameters to enable the channel corresponding to the communication control frame to be received and identified, and the chip is configured with shielding parameters to shield other channels.
4. The method according to claim 3, characterized in that, The first NFC device includes a first NFC controller and a device host DH; data interaction is completed with the second NFC device according to the mode type of the second NFC device, including: DH configures the corresponding Discovery command to the first NFC controller according to the mode type of the second NFC device; The first NFC controller completes data interaction with the second NFC device based on Discovery commands.
5. A method for NFC-based identification and interaction, characterized in that, Applied to a second NFC device, the method includes: In card reader mode, data is transmitted according to the communication control frame to be sent; wherein, the communication control frame to be sent is the data preset in card reader mode; Complete data interaction with the first NFC device.
6. The method according to claim 5, characterized in that, The communication control frame includes some or all of the Type A private frame, Type B private frame, or Type F private frame; in card reader mode, data is transmitted according to the communication control frame to be sent, including: In card reader mode, a Type A private frame is sent before sending the REQA polling request frame; and / or, In card reader mode, a Type B private frame is sent after the REQA polling request frame and before the REQB polling request frame; and / or, In card reader mode, a TypeF private frame is sent after the REQB polling request frame and before the TypeF polling request frame.
7. A first device based on NFC identification interaction, characterized in that, Applied to a first NFC device, the first device includes: DH is configured to determine the chip parameters to be configured and the mode type of the second NFC device based on the communication control frames and frame mapping relationships received in card emulation mode. The first NFC controller is configured to configure parameters according to the chip parameters to be configured, and to complete data interaction with the second NFC device according to the mode type of the second NFC device.
8. A second device based on NFC identification interaction, characterized in that, Applied to a second NFC device, the second device includes: The second NFC controller is configured to send data according to the communication control frame to be sent in card reader mode and complete data interaction with the first NFC device.
9. A third device based on NFC identification interaction, comprising a processor and a memory storing program instructions, characterized in that, The processor is configured to execute the NFC-based identification interaction method as described in any one of claims 1 to 6 when running the program instructions.
10. A system based on NFC identification interaction, characterized in that, include: The first NFC device includes the first device for NFC-based identification interaction as described in claim 7; The second NFC device includes the second means for NFC-based identification interaction as described in claim 8.