Access control method and device for near field communication, equipment and storage medium

By transforming NCI commands and processes, supporting the configuration and discovery process of new RF technology, the problem that NFC communication does not support extended RF technology is solved, and data interaction between NFC devices is realized.

CN120343534APending Publication Date: 2025-07-18BEIJING CEC HUADA ELECTRONIC DESIGN CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202510722947.1
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2025-05-30
Publication Date
2025-07-18

AI Technical Summary

Technical Problem

The existing NFC communication specifications do not support extended RF technology and cannot communicate accordingly.

Method used

By transforming NCI commands and processes, supporting the relevant configuration of new RF technology, enabling RF discovery and up-send activation notifications, the rapid support and deployment of extended RF technology is achieved.

Benefits of technology

This enables new RF technology to be quickly supported and deployed, realizing data interaction between NFC devices.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN120343534A_ABST
    Figure CN120343534A_ABST
Patent Text Reader

Abstract

The embodiment of the invention relates to the technical field of communication, and discloses an access control method and device for near field communication, equipment and a storage medium, the access control method is applied to first NFC equipment, the first NFC equipment comprises an equipment main processor and an NFC controller, and the method comprises the following steps: the equipment main processor sends configuration parameter information of an RF extension technology to the NFC controller; the equipment main processor sends a discovery command to the NFC controller; the discovery command comprises an RF expansion technology and a corresponding mode; the NFC controller sends an interface activation notification message to the equipment main processor; the interface activation notification message comprises an RF expansion technology supported by the second NFC device, and a corresponding mode and related parameters; and the device main processor establishes a logic link with the NFC controller and performs data interaction with the second NFC device. According to the embodiment of the invention, the new RF technology except the NCI specification can be quickly supported and deployed.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The embodiments of the present application relate to the field of communication technologies, and in particular, to an access control method, apparatus, device, and storage medium for near field communication. Background Art

[0002] The "NFC Controller Interface Technical Specification", namely NFC (NFC: an abbreviation for Near Field Communication) Controller Interface Technical Specification, can be simply referred to as the NCI specification. It is a technical specification document formulated by the Near Field Communication Technology Standards Organization (NFC Forum) and is used to define the standardized communication interface and protocol between an NFC controller (hardware) and a device main processor (such as a mobile phone, a card reader, etc.). The role of this technical specification is to provide a set of standardized instruction sets and data formats to ensure the compatibility between NFC controllers of different manufacturers and main processors (such as application processors or operating systems); manage the activation, configuration, and data transmission of NFC functions (such as card emulation, reader mode, peer-to-peer communication).

[0003] However, in the process of implementing the present application, the inventors found that the NCI specification only supports the radio frequency (RF) technology required by the specification. If a new RF technology is extended, communication cannot be carried out based on the extended RF technology. Summary of the Invention

[0004] In view of this, the embodiments of the present application provide an access control method, apparatus, device, and storage medium for near field communication to solve the problem that existing NFC communication does not support extended RF technology.

[0005] In a first aspect, the embodiments of the present application provide an access control method for near field communication, which is applied to the device main processor of a first NFC device. The first NFC device further includes an NFC controller. The method includes:

[0006] After resetting and initializing the NFC controller, send target configuration information to the NFC controller to configure the NFC controller; the target configuration information includes configuration parameter information of the RF extension technology;

[0007] Send a discovery command to the NFC controller to control the NFC controller to execute a discovery process to discover a second NFC device that supports the RF extension technology; the discovery command includes the RF extension technology and the corresponding mode;

[0008] Receive the interface activation notification message sent by the NFC controller. The interface activation notification message is sent by the NFC controller to the device main processor after the activation process with the discovered second NFC device is completed. The interface activation notification message includes the RF extension technology supported by the second NFC device, as well as the corresponding mode and related parameters.

[0009] After receiving the interface activation notification message, establish a logical link with the NFC controller and perform data interaction with the second NFC device.

[0010] In an optional implementation manner, the sending the target configuration information to the NFC controller includes:

[0011] Send the setting parameter configuration information to the NFC controller to perform setting parameter configuration on the NFC controller.

[0012] If the first NFC device is in the card emulation mode, also send the listening mode routing table to the NFC controller.

[0013] Wherein, the target configuration information includes the setting parameter configuration information and the listening mode routing table; the setting parameter configuration information includes the setting parameter configuration information of the RF extension technology, and the listening mode routing table includes the technology mode routing of the RF extension technology.

[0014] In an optional implementation manner, the target configuration information further includes a mapping table of the RF interface and the RF protocol.

[0015] The sending the target configuration information to the NFC controller further includes:

[0016] Send the mapping table of the RF interface and the RF protocol to the NFC controller.

[0017] In an optional implementation manner, after sending the discovery command to the NFC controller to control the NFC controller to execute the discovery process, it further includes:

[0018] If the first NFC device is in the reader / writer mode, receive the discovery result notification message sent by the NFC controller. The discovery result notification message includes the RF extension technology supported by the discovered second NFC device, as well as the corresponding mode and related parameters.

[0019] Based on the discovery result notification message, send a selection command to the NFC controller so that the NFC controller completes the activation process with the second NFC device indicated by the selection command.

[0020] In an alternative embodiment, the interface activation notification message further includes at least one of the following: RF detection identifier, RF interface, RF protocol, maximum data payload length, initial credit value, RF technology-related parameter length, RF technology and mode used for data exchange, transmission bit rate during data exchange, reception bit rate during data exchange, activation parameter length, and activation parameters.

[0021] In a second aspect, an embodiment of the present application provides a method for access control of near field communication, which is applied to the NFC controller of a first NFC device. The first NFC device further includes a device main processor. The method includes:

[0022] After reset and initialization, receive the target configuration information sent by the device main processor, and complete the corresponding configuration based on the target configuration information; the target configuration information includes configuration parameter information of the RF extension technology;

[0023] Receive the discovery command sent by the device main processor, and execute the discovery process based on the discovery command to discover a second NFC device that supports the RF extension technology; the discovery command includes the RF extension technology and the corresponding mode;

[0024] After completing the activation process with the discovered second NFC device, send an interface activation notification message to the device main processor; the interface activation notification message includes the RF extension technology supported by the second NFC device, as well as the corresponding mode and related parameters;

[0025] Establish a logical link with the device main processor so that the device main processor can perform data interaction with the second NFC device.

[0026] In an alternative embodiment, the receiving the target configuration information sent by the device main processor includes:

[0027] Receive the setting parameter configuration information sent by the device main processor to perform setting parameter configuration;

[0028] If the first NFC device is in card emulation mode, further receive the listening mode routing table sent by the device main processor;

[0029] Wherein, the target configuration information includes the setting parameter configuration information and the listening mode routing table; the setting parameter configuration information includes the setting parameter configuration information of the RF extension technology, and the listening mode routing table includes the technology mode routing of the RF extension technology.

[0030] In an alternative embodiment, after receiving the discovery command sent by the device main processor, it further includes:

[0031] If the first NFC device is in the reader / writer mode, send a discovery result notification message to the device main processor; the discovery result notification message includes the RF extension technology supported by the discovered second NFC device, as well as the corresponding mode and related parameters;

[0032] Receive a selection command sent by the device main processor, where the selection command is sent by the device main processor to the NFC controller based on the discovery result notification message;

[0033] Complete an activation process with the second NFC device indicated by the selection command.

[0034] In a third aspect, an embodiment of the present application provides an access control device for near-field communication, which is applied to the device main processor of the first NFC device. The first NFC device further includes an NFC controller. The device includes: a configuration information sending module, a discovery command sending module, an activation notification receiving module, and a first link establishment and data interaction module;

[0035] The configuration information sending module is configured to send target configuration information to the NFC controller to configure the NFC controller after the device main processor resets and initializes the NFC controller; the target configuration information includes configuration parameter information of the RF extension technology;

[0036] The discovery command sending module is configured to send a discovery command to the NFC controller to control the NFC controller to execute a discovery process to discover a second NFC device that supports the RF extension technology; the discovery command includes the RF extension technology and the corresponding mode;

[0037] The activation notification receiving module is configured to receive an interface activation notification message sent by the NFC controller. The interface activation notification message is sent by the NFC controller to the device main processor after completing an activation process with the discovered second NFC device; the interface activation notification message includes the RF extension technology supported by the second NFC device, as well as the corresponding mode and related parameters;

[0038] The first link establishment and data interaction module is configured to establish a logical link with the NFC controller and perform data interaction with the second NFC device after receiving the interface activation notification message.

[0039] Fourth aspect, an access control device for near field communication provided by an embodiment of the present application is applied to an NFC controller of a first NFC device. The first NFC device further includes a device main processor. The device includes: a configuration information receiving module, a discovery command receiving module, an activation notification sending module, and a second link establishment and data interaction module;

[0040] The configuration information receiving module is configured to, after reset and initialization, receive target configuration information sent by the device main processor, and complete corresponding configuration based on the target configuration information; the target configuration information includes configuration parameter information of RF extension technology;

[0041] The discovery command receiving module is configured to receive a discovery command sent by the device main processor, and execute a discovery process based on the discovery command to discover a second NFC device that supports the RF extension technology; the discovery command includes RF extension technology and a corresponding mode;

[0042] The activation notification sending module is configured to, after completing an activation process with the discovered second NFC device, send an interface activation notification message to the device main processor; the interface activation notification message includes the RF extension technology supported by the second NFC device, as well as the corresponding mode and related parameters;

[0043] The second link establishment and data interaction module is configured to establish a logical link with the device main processor, so that the device main processor can perform data interaction with the second NFC device.

[0044] Fifth aspect, an NFC device provided by an embodiment of the present application includes a device main processor and an NFC controller;

[0045] The device main processor is configured to, after resetting and initializing the NFC controller by the device main processor, send target configuration information to the NFC controller to configure the NFC controller; the target configuration information includes configuration parameter information of RF extension technology;

[0046] The device main processor is further configured to send a discovery command to the NFC controller to control the NFC controller to execute a discovery process to discover a peer NFC device that supports the RF extension technology; the discovery command includes RF extension technology and a corresponding mode;

[0047] The NFC controller is configured to complete an activation process with the discovered peer NFC device, and send an interface activation notification message to the device main processor; the interface activation notification message includes the RF extension technology supported by the peer NFC device, as well as the corresponding mode and related parameters;

[0048] The main processor of the device is further configured to establish a logical link with the NFC controller and perform data interaction with the peer NFC device after receiving the interface activation notification message.

[0049] In an optional implementation manner, the main processor of the device is specifically configured to send setting parameter configuration information to the NFC controller to perform setting parameter configuration on the NFC controller; and in the case of the card emulation mode, it is further configured to send a listening mode routing table to the NFC controller.

[0050] Wherein, the target configuration information includes the setting parameter configuration information and the listening mode routing table; the setting parameter configuration information includes the setting parameter configuration information of the RF extension technology, and the listening mode routing table includes the technology mode routing of the RF extension technology.

[0051] In an optional implementation manner, in the case of the reader / writer mode, the NFC controller is further configured to send a discovery result notification message to the main processor of the device, and the main processor of the device is further configured to send a selection command to the NFC controller based on the discovery result notification message, so that the NFC controller completes the activation process with the peer NFC device indicated by the selection command.

[0052] Wherein, the discovery result notification message includes the RF extension technology supported by the discovered peer NFC device, as well as the corresponding mode and related parameters.

[0053] In a sixth aspect, an embodiment of the present application provides a computer-readable storage medium, on which computer instructions are stored. The computer instructions are used to cause the main processor of the NFC device to execute the access control method for near-field communication in the first aspect or any corresponding implementation manner thereof, or to cause the NFC controller of the NFC device to execute the access control method for near-field communication in the second aspect or any corresponding implementation manner thereof.

[0054] In a seventh aspect, an embodiment of the present application provides a computer program product, including computer instructions, which are used to cause the main processor of the NFC device to execute the access control method for near-field communication in the first aspect or any corresponding implementation manner thereof, or to cause the NFC controller of the NFC device to execute the access control method for near-field communication in the second aspect or any corresponding implementation manner thereof.

[0055] The access control method, device, equipment and storage medium for near field communication provided by the embodiments of the present application realize relevant configurations for supporting new RF technologies (i.e., RF extension technologies), enabling RF discovery and sending activation notifications, etc. by transforming NCI commands and processes, so that new RF technologies can be quickly supported and deployed. Description of the Drawings

[0056] In order to more clearly illustrate the specific embodiments of the present application or the technical solutions in the related art, the following will briefly introduce the drawings required for use in the description of the specific embodiments or the related art. Obviously, the drawings in the following description are some embodiments of the present application. For those of ordinary skill in the art, without creative efforts, other drawings can also be obtained based on these drawings.

[0057] Figure 1 It is a schematic diagram of the access control process of DH and NFCC specified in the NCI specification;

[0058] Figure 2 It is a schematic diagram of the process of the access control method for near field communication according to the embodiments of the present application;

[0059] Figure 3 It is a schematic diagram of the access control process of the device main processor and the NFC controller in the card emulation mode according to the embodiments of the present application;

[0060] Figure 4 It is a schematic diagram of the access control process of the device main processor and the NFC controller in the reader / writer mode according to the embodiments of the present application;

[0061] Figure 5 It is a schematic block diagram of the structure of the access control device for near field communication applied to the device main processor according to the embodiments of the present application;

[0062] Figure 6 It is a schematic block diagram of the structure of the access control device for near field communication applied to the NFC controller according to the embodiments of the present application;

[0063] Figure 7 It is a schematic diagram of the hardware structure of the NFC device according to the embodiments of the present application. Detailed Embodiments

[0064] To make the objectives, technical solutions and advantages of the embodiments of the present application clearer, the following will clearly and completely describe the technical solutions in the embodiments of the present application with reference to the drawings in the embodiments of the present application. Obviously, the described embodiments are some, rather than all, of the embodiments of the present application. Based on the embodiments of the present application, all other embodiments obtained by those of ordinary skill in the art without creative efforts fall within the scope of protection of the present application.

[0065] As Figure 1 shown, the general process of access control and the NFC Controller (NFCC) specified in the "NFC Controller Interface Technical Specification" is as follows:

[0066] When the NFCC powers on or is enabled, the device main processor, i.e., the device host (DH), sends the CORE_RESET_CMD command to reset (i.e., reset) the NFCC; immediately afterwards, the DH sends the initialization command CORE_INIT_CMD to initialize the NFCC; then, the DH configures parameters for the NFCC, such as some parameters without default values in polling mode or listening mode (CORE_SET_CONFIG_CMD), the mapping table of the RF interface and RF protocol (RF_DISCOVER_MAP_CMD), and the listening mode routing table (RF_SET_LISTEN_MODE_ROUTING_CMD). After the NFCC is configured, the DH sends the RF discovery command RF_DISCOVER_CMD to the NFCC, and the NFCC will execute the RF discovery process, obtain information about the remote NFC endpoints, and assign a unique RF discovery ID to each remote NFC endpoint. When a remote NFC endpoint supports multiple RF protocols, the NFCC regards it as different remote NFC endpoints and assigns different RF discovery IDs according to the RF protocol. The NFCC notifies the discovered remote NFC endpoints to the DH, and the DH sends the selection command RF_DISCOVER_SELECT_CMD to the NFCC to select a certain remote NFC endpoint. After receiving the selection command, the NFCC performs a device activation process with the remote NFC endpoint. The NFCC sends the interface activation notification message RF_INTF_ACTIVATED_NTF to the DH. After receiving this message, the DH establishes a logical connection with the NFCC and starts data interaction with the remote NFC endpoint. The above process specification only stipulates the relevant technologies and modes described in Table 1 and the technologies stipulated in Table 2, and does not stipulate how to add and expand new technologies, modes, and technical parameters.

[0067] Table 1 Technologies and Modes Specified by the NCI Specification

[0068] Value Description 0x00 NFC_A_PASSIVE_POLL_MODE 0x01 NFC_B_PASSIVE_POLL_MODE 0x02 NFC_F_PASSIVE_POLL_MODE 0x03 NFC_ACTIVE_POLL_MODE 0x04 - 0x05 RFU 0x06 NFC_V_PASSIVE_POLL_MODE 0x07 - 0x6F RFU 0x70 - 0x7F <![CDATA Po Know-how retention in ll mode]]> 0x80 NFC_A_PASSIVE_LISTEN_MODE 0x81 NFC_B_PASSIVE_LISTEN_MODE 0x82 NFC_F_PASSIVE_LISTEN_MODE 0x83 NFC_ACTIVE_LISTEN_MODE 0x84~0xEF RFU 0xF0 - 0xFE Proprietary technology reservation in Listen mode

[0069] Table 2 Technologies Specified by the NCI Specification

[0070] RF technology value Description 0x00 NFC_RF_TECHNOLOGY_A 0x01 NFC_RF_TECHNOLOGY_B 0x02 NFC_RF_TECHNOLOGY_F 0x03 NFC_RF_TECHNOLOGY_V 0x04~0x7F RFU 0x80 - 0xFE Proprietary use 0xFF RFU

[0071] The NCI specification does not stipulate how NCI instructions and processes should be modified and supported when a new RF extension technology (which can also be referred to as NFC_EXT technology) is supported. That is to say, the existing specification does not stipulate how to support communication by modifying NCI instructions and interaction processes when a new extended RF technology is added, so the new extended RF technology is not supported.

[0072] The descriptions of some technical terms related to the embodiments of this application are as follows:

[0073]

[0074] In the embodiments of this application, an access control method for near field communication is provided, which can be applied to a first NFC device. The first NFC device includes a device main processor and an NFC controller. Figure 2 It is a flowchart of the access control method for near field communication according to the embodiments of this application, as Figure 2 shown. This process includes the following steps:

[0075] Step S201, after the device main processor (DH) resets and initializes the NFC controller (i.e., NFCC), the device main processor sends target configuration information to the NFC controller to configure the NFC controller; the target configuration information includes configuration parameter information of the RF extension technology.

[0076] Specifically, the device main processor can first reset the NFC controller (i.e., reset) through the CORE_RESET_CMD command, and then initialize the NFC controller through the initialization command CORE_INIT_CMD.

[0077] In some optional specific implementation manners, step S201, that is, the device main processor sends target configuration information to the NFC controller, includes:

[0078] Step S2011, the device main processor sends setting parameter configuration information to the NFC controller to perform setting parameter configuration on the NFC controller. Specifically, parameter configuration can be performed through the CORE_SET_CONFIG_CMD command.

[0079] Step S2012, if the first NFC device is in card emulation mode, the device main processor also sends a listening mode routing table to the NFC controller. Specifically, the listening mode routing table can be configured through the RF_SET_LISTEN_MODE_ROUTING_CMD command.

[0080] That is, the target configuration information includes the setting parameter configuration information and the listening mode routing table. The setting parameter configuration information includes the setting parameter configuration information of the RF extension technology, and the listening mode routing table includes the technical method routing of the RF extension technology.

[0081] Of course, in addition to including the configuration parameter information of the RF extension technology, the target configuration information may also include the configuration parameter information of the RF technology specified by the NCI specification. The specific setting parameter configuration information may include some or all of the content in Table 3 below. The specific listening mode routing table may include the routes corresponding to some or all of the technical methods in Table 4 below.

[0082] Table 3 Setting parameters available for selection and configuration as needed

[0083]

[0084]

[0085]

[0086] Among them, the Poll mode - NFC - EXT detection parameter and the Listen mode - NFC - EXT detection parameter are the setting parameters of the RF extension technology proposed in the embodiments of the present application.

[0087] Table 4 Technical methods for which routes can be selected and configured as needed

[0088] RF technology value Description 0x00 NFC_RF_TECHNOLOGY_A 0x01 NFC_RF_TECHNOLOGY_B 0x02 NFC_RF_TECHNOLOGY_F 0x03 NFC_RF_TECHNOLOGY_V 0x04~0x7F RFU 0x80 NFC_RF_TECHNOLOGY_EXT 0x81 - 0xFE Proprietary use 0xFF RFU

[0089] Among them, NFC_RF_TECHNOLOGY_EXT is the RF extension technology method provided in the embodiments of the present application.

[0090] In addition, the target configuration information may further include a mapping table of the RF interface and the RF protocol. That is, in the process of the device main processor sending the target configuration information to the NFC controller, it further includes: the device main processor sending the mapping table of the RF interface and the RF protocol to the NFC controller. Specifically, the device main processor can configure the mapping table of the RF interface and the RF protocol through the RF_DISCOVER_MAP_CMD.

[0091] Step S202, the device main processor sends a discovery command to the NFC controller to control the NFC controller to execute a discovery process to discover a second NFC device that supports the RF extension technology. The discovery command includes the RF extension technology and the corresponding mode. This step is used to set the RF detection stage to perform a field search in the RF extension technology and the POLL (polling) / LISTN (listening) mode.

[0092] Specifically, the device main processor can control the NFC controller to enable RF discovery through the RF_DISCOVER_CMD.

[0093] In some optional specific embodiments, after step S202 where the device main processor sends a discovery command to the NFC controller to control the NFC controller to perform the discovery process, the following steps are further included:

[0094] If the first NFC device is in the reader / writer mode, the NFC controller sends a discovery result notification message to the device main processor; the discovery result notification message includes the RF extension technology supported by the discovered second NFC device, as well as the corresponding mode and related parameters;

[0095] The device main processor sends a selection command to the NFC controller based on the discovery result notification message, so that the NFC controller completes the activation process with the second NFC device indicated by the selection command.

[0096] Of course, the discovery result notification message can not only include the RF extension technology supported by the discovered second NFC device, as well as the corresponding mode and related parameters, but also include the RF technology specified by the NCI specification supported by the second NFC device and the corresponding mode and related parameters. What the discovery result notification message specifically includes in terms of RF technology (and the corresponding mode and related parameters) also depends on the configuration of the device main processor for the NFC controller in the previous steps.

[0097] Specifically, the discovery result notification message can include some or all of the technologies in Table 5 below and the corresponding mode, and can include the related parameters of some or all of the technologies in Table 6 below.

[0098] Table 5 All RF technologies (including RF extension technologies) and the corresponding modes

[0099] Value Description 0x00 NFC_A_PASSIVE_POLL_MODE 0x01 NFC_B_PASSIVE_POLL_MODE 0x02 NFC_F_PASSIVE_POLL_MODE 0x03 NFC_ACTIVE_POLL_MODE 0x04 - 0x05 RFU 0x06 NFC_V_PASSIVE_POLL_MODE 0x07 - 0x6F RFU 0x70 NFC_EXT_PASSIVE_POLL_MODE 0x71 - 0x7F <![CDATA Po Know-how retention in ll mode]]> 0x80 NFC_A_PASSIVE_LISTEN_MODE 0x81 NFC_B_PASSIVE_LISTEN_MODE 0x82 NFC_F_PASSIVE_LISTEN_MODE 0x83 NFC_ACTIVE_LISTEN_MODE 0x84~0xEF RFU 0xF0 NFC_EXT_PASSIVE_LISTEN_MODE 0xF1 - 0xFE Proprietary technology reservation in Listen mode

[0100] Among them, NFC_EXT_PASSIVE_POLL_MODE is the polling mode of the RF extension technology provided by this embodiment of the present application. NFC_EXT_PASSIVE_LISTEN_MODE is the listening mode of the RF extension technology provided by this embodiment of the present application. In addition, the modes of the RF extension technology can also include NFC_EXT_ACTIVE_LISTEN_MODE and NFC_EXT_ACTIVE_POLL_MODE.

[0101] Table 6 Technical parameters of all RF technologies (including RF extension technologies)

[0102]

[0103]

[0104] Table 7 Related Parameters of NFC-EXTPoll Mode

[0105] Parameter Length Description Parameter 1 Parameter 1 Length Parameter 1 Description Parameter 2 Parameter 2 Length Parameter 2 Description … … …

[0106] Table 8 Related Parameters of NFC-EXTListen Mode

[0107] Parameter Length Description Parameter 1 Parameter 1 Length Parameter 1 Description Parameter 2 Parameter 2 Length Parameter 2 Description … … …

[0108] In step S203, the NFC controller completes the activation process with the discovered second NFC device and sends an interface activation notification message to the device main processor; the interface activation notification message includes the RF extension technology supported by the second NFC device, as well as the corresponding mode and related parameters.

[0109] Specifically, the NFC controller can send an interface activation notification through the RF_INTF_ACTIVATED_NTF message sending interface.

[0110] In step S204, after receiving the interface activation notification message, the device main processor establishes a logical link with the NFC controller and performs data interaction with the second NFC device.

[0111] The access control method for near field communication provided in this embodiment realizes related configurations for supporting new RF technologies (i.e., RF extension technologies), enables RF discovery, and sends activation notifications by modifying NCI commands and processes, so that new RF technologies can be quickly supported and deployed.

[0112] In this embodiment, an access control method for near field communication is provided, which can be applied to a first NFC device supporting RF extension technology. The first NFC device includes a device main processor and an NFC controller. Figure 3 It is a schematic diagram of the access control process of the main processor and the NFC controller when the first NFC device is in the card emulation mode, as Figure 3 shown, and this process includes the following steps:

[0113] Step 1, the device main processor (DH) resets (i.e., restores) the NFC controller (NFCC) through the CORE_RESET_CMD command.

[0114] Step 2, the device main processor (DH) initializes the NFC controller through the initialization command CORE_INIT_CMD.

[0115] Step 3: The main processor of the device sends the setting parameter configuration information to the NFC controller to configure the setting parameters of the NFC controller. Specifically, the setting parameter configuration can be performed through the CORE_SET_CONFIG_CMD command. Here, the configuration parameters (Listen mode - NFC-EXT detection parameters) of the newly added RF extension technology in Table 3 are supported.

[0116] Step 4: The main processor of the device configures the mapping table of the RF interface and the RF protocol through the RF_DISCOVER_MAP_CMD.

[0117] Step 5: The main processor of the device configures the listening mode routing table through the RF_SET_LISTEN_MODE_ROUTING_CMD command.

[0118] Here, the newly added NFC_RF_TECHNOLOGY_EXT technology method in Table 4 is supported to route to the NFCEE.

[0119] Step 6: The main processor of the device can control the NFC controller to turn on RF discovery through the RF_DISCOVER_CMD to discover the second NFC device (i.e., the remote NFC endpoint in the figure) that supports the RF extension technology. Here, the NFC_EXT_PASSIVE_LISTEN_MODE technology and mode in Table 5 are newly supported, which are used to set the RF detection stage to perform field exploration with the RF extension technology and the LISTEN mode.

[0120] The RF discovery here is passive discovery, that is, being discovered by the second NFC device. After that, the NFC controller and the second NFC device complete the activation process.

[0121] In addition, during the process of performing discovery, the NFC controller also needs to perform anti-collision processing.

[0122] Step 7: After the NFC controller and the second NFC device complete the activation process, the NFC controller sends an activation notification through the RF_INTF_ACTIVATED_NTF message sending interface. Here, the extended RF technology and mode (i.e., NFC_EXT_PASSIVE_LISTEN_MODE) in Table 5 are newly supported, and the technical parameters related to the extended RF technology in Table 6 are newly supported (see Table 8 for details).

[0123] Step 8: After the main processor of the device receives the interface activation notification message, it establishes a logical link with the NFC controller.

[0124] Step 9: The main processor of the device performs data interaction with the second NFC device (i.e., the remote NFC endpoint in the figure).

[0125] In this embodiment, an access control method for near-field communication is provided, which can be applied to a first NFC device supporting RF extension technology. The first NFC device includes a device main processor and an NFC controller. Figure 4 When the first NFC device is in the reader / writer mode, it is a schematic diagram of the access control process of the main processor and the NFC controller, as Figure 4 shown. The process includes the following steps:

[0126] Step 1, the device main processor (DH) resets (i.e., restores) the NFC controller (NFCC) through the CORE_RESET_CMD command.

[0127] Step 2, the device main processor (DH) initializes the NFC controller through the initialization command CORE_INIT_CMD.

[0128] Step 3, the device main processor sends setting parameter configuration information to the NFC controller to configure the setting parameters of the NFC controller. Specifically, parameter configuration can be performed through the CORE_SET_CONFIG_CMD command. Here, the configuration parameters (Poll mode - NFC-EXT detection parameters) of the newly added RF extension technology in Table 3 are supported.

[0129] Step 4, the device main processor configures the mapping table of the RF interface and the RF protocol through the RF_DISCOVER_MAP_CMD.

[0130] Step 5, the device main processor can control the NFC controller to turn on RF discovery through the RF_DISCOVER_CMD to discover a second NFC device (i.e., the remote NFC endpoint in the figure) that supports the RF extension technology. Here, the newly added NFC_EXT_PASSIVE_POLL_MODE in Table 5 is supported.

[0131] The RF discovery here is active discovery, that is, discovering the second NFC device.

[0132] Step 6, the NFC controller sends an RF_DISCOVER_NTF message to the device main processor to send a discovery result notification.

[0133] Here, the newly added extended RF technology and mode in Table 5 (i.e., NFC_EXT_PASSIVE_POLL_MODE) are supported, and the technical parameters related to the extended RF technology in Table 6 are newly supported (see Table 7 for details).

[0134] The discovery result notification message includes the RF extension technology supported by the discovered second NFC device, as well as the corresponding mode and related parameters.

[0135] In this embodiment, in the reader / writer mode, if there are multiple remote NFC endpoints (i.e., the second NFC device), after the NFC controller completes the discovery and anti-collision of one remote NFC endpoint, it will send an RF_DISCOVER_NTF notification of the discovery result to the DH.

[0136] Step 7, based on the discovery result notification message, the device main processor sends an RF_DISCOVER_SELECT_CMD selection command to the NFC controller to select a target second NFC device from the discovered second NFC devices.

[0137] After that, the NFC controller and the selected second NFC device complete the activation process.

[0138] Step 8, after the NFC controller and the second NFC device complete the activation process, the NFC controller sends an activation notification through the RF_INTF_ACTIVATED_NTF message sending interface.

[0139] Here, the extended RF technology and mode in Table 5 (i.e., NFC_EXT_PASSIVE_POLL_MODE) are newly supported, and the technical parameters related to the extended RF technology in Table 6 are newly supported (see Table 7 for details).

[0140] In this embodiment, when the RF interface activation is available, the NFC controller will notify the activation result through the RF_INTF_ACTIVATED_NTF notification interface.

[0141] Step 9, after receiving the interface activation notification message, the device main processor establishes a logical link with the NFC controller.

[0142] Step 10, the device main processor performs data interaction with the second NFC device (i.e., the remote NFC endpoint in the figure).

[0143] Of course, the discovery result notification message may include not only the RF extended technology supported by the discovered second NFC device, as well as the corresponding mode and related parameters, but also the RF technology and the corresponding mode and related parameters specified by the NCI specification supported by the second NFC device. What the discovery result notification message specifically includes in terms of RF technology (and the corresponding mode and related parameters) also depends on the configuration of the device main processor for the NFC controller in the previous steps.

[0144] In the embodiment of the present application, an access control method for near-field communication is provided, which can be applied to the device main processor of the first NFC device. The first NFC device further includes an NFC controller. The method includes the following steps:

[0145] Step S301, after resetting and initializing the NFC controller, send target configuration information to the NFC controller to configure the NFC controller; the target configuration information includes configuration parameter information of the RF extension technology;

[0146] Step S302, send a discovery command to the NFC controller to control the NFC controller to perform a discovery process to discover a second NFC device that supports the RF extension technology; the discovery command includes the RF extension technology and the corresponding mode;

[0147] Step S303, receive an interface activation notification message sent by the NFC controller, where the interface activation notification message is sent by the NFC controller to the device main processor after completing the activation process with the discovered second NFC device; the interface activation notification message includes the RF extension technology supported by the second NFC device, as well as the corresponding mode and related parameters;

[0148] Step S304, after receiving the interface activation notification message, establish a logical link with the NFC controller and perform data interaction with the second NFC device.

[0149] For the detailed technical solution of the embodiments of the present application, please refer to the above embodiments, which will not be elaborated here.

[0150] In the embodiments of the present application, an access control method for near-field communication is provided, which can be applied to the NFC controller of a first NFC device. The first NFC device further includes a device main processor. The method includes:

[0151] Step S401, after resetting and initializing, receive the target configuration information sent by the device main processor and complete the corresponding configuration based on the target configuration information; the target configuration information includes configuration parameter information of the RF extension technology;

[0152] Step S402, receive the discovery command sent by the device main processor and perform a discovery process based on the discovery command to discover a second NFC device that supports the RF extension technology; the discovery command includes the RF extension technology and the corresponding mode;

[0153] Step S403, after completing the activation process with the discovered second NFC device, send an interface activation notification message to the device main processor; the interface activation notification message includes the RF extension technology supported by the second NFC device, as well as the corresponding mode and related parameters;

[0154] Step S404, establish a logical link with the device main processor so that the device main processor can perform data interaction with the second NFC device.

[0155] For the detailed technical solutions of the embodiments of the present application, please refer to the above embodiments, which will not be elaborated here.

[0156] In this embodiment, an access control device for near field communication is further provided. This device is used to implement the above embodiments and preferred implementation manners, and those that have been described will not be elaborated again. As used hereinafter, the term "module" may be a combination of software and / or hardware that can implement a predetermined function. Although the devices described in the following embodiments are preferably implemented in software, implementation in hardware, or a combination of software and hardware is also possible and contemplated.

[0157] This embodiment provides an access control device for near field communication, which is applied to the device main processor of the first NFC device. The first NFC device further includes an NFC controller, as Figure 5 shown, the device includes: a configuration information sending module 501, a discovery command sending module 502, an activation notification receiving module 503, and a first link establishment and data interaction module 504;

[0158] The configuration information sending module 501 is configured to send target configuration information to the NFC controller to configure the NFC controller after the device main processor resets and initializes the NFC controller; the target configuration information includes configuration parameter information of the RF extension technology;

[0159] The discovery command sending module 502 is configured to send a discovery command to the NFC controller to control the NFC controller to execute a discovery process to discover a second NFC device that supports the RF extension technology; the discovery command includes the RF extension technology and the corresponding mode;

[0160] The activation notification receiving module 503 is configured to receive an interface activation notification message sent by the NFC controller. The interface activation notification message is sent by the NFC controller to the device main processor after the activation process with the discovered second NFC device is completed; the interface activation notification message includes the RF extension technology supported by the second NFC device, the corresponding mode, and related parameters;

[0161] The first link establishment and data interaction module 504 is configured to establish a logical link with the NFC controller and perform data interaction with the second NFC device after receiving the interface activation notification message.

[0162] In some alternative implementation manners, the configuration information sending module 501 includes:

[0163] A parameter configuration information sending unit is provided, which is used to send parameter configuration information to the NFC controller to perform parameter configuration on the NFC controller.

[0164] A routing table sending unit is used to send a listening mode routing table to the NFC controller if the first NFC device is in card emulation mode.

[0165] Among them, the target configuration information includes the parameter configuration information and the listening mode routing table; the parameter configuration information includes the parameter configuration information of the RF extension technology, and the listening mode routing table includes the technical mode routing of the RF extension technology.

[0166] In some alternative embodiments, the target configuration information further includes a mapping table of the RF interface and the RF protocol.

[0167] The configuration information sending module 501 further includes:

[0168] A mapping table sending unit is used to send the mapping table of the RF interface and the RF protocol to the NFC controller.

[0169] In some alternative embodiments, the access control device for near field communication further includes a discovery result notification receiving module and a selection command sending module.

[0170] The discovery result notification module is used to receive a discovery result notification message sent by the NFC controller if the first NFC device is in reader / writer mode; the discovery result notification message includes the RF extension technology supported by the discovered second NFC device, as well as the corresponding mode and related parameters.

[0171] The selection command sending module is used to send a selection command to the NFC controller based on the discovery result notification message, so that the NFC controller completes the activation process with the second NFC device indicated by the selection command.

[0172] The further function descriptions of the above-mentioned various modules and units are the same as those in the corresponding embodiments above, and will not be elaborated here.

[0173] The access control device for near field communication in this embodiment is presented in the form of functional units. Here, the unit refers to an ASIC (Application Specific Integrated Circuit) circuit, a processor and a memory that execute one or more software or fixed programs, and / or other devices that can provide the above functions.

[0174] In this embodiment, an access control device for near field communication is further provided. This device is used to implement the above-mentioned embodiments and preferred implementation manners, and those that have been described will not be elaborated again. As used hereinafter, the term "module" can be a combination of software and / or hardware that realizes a predetermined function. Although the devices described in the following embodiments are preferably implemented in software, implementation in hardware, or a combination of software and hardware is also possible and contemplated.

[0175] This embodiment provides an access control device for near field communication, which is applied to the NFC controller of a first NFC device. The first NFC device further includes a device main processor. As Figure 6 shown, the device includes: a configuration information receiving module 601, a discovery command receiving module 602, an activation notification sending module 603, and a second link establishment and data interaction module 604;

[0176] The configuration information receiving module 601 is configured to, after reset and initialization, receive the target configuration information sent by the device main processor, and complete the corresponding configuration based on the target configuration information; the target configuration information includes configuration parameter information of RF extension technology;

[0177] The discovery command receiving module 602 is configured to receive the discovery command sent by the device main processor, and execute a discovery process based on the discovery command to discover a second NFC device that supports the RF extension technology; the discovery command includes RF extension technology and the corresponding mode;

[0178] The activation notification sending module 603 is configured to send an interface activation notification message to the device main processor after completing the activation process with the discovered second NFC device; the interface activation notification message includes the RF extension technology supported by the second NFC device, as well as the corresponding mode and related parameters;

[0179] The second link establishment and data interaction module 604 is configured to establish a logical link with the device main processor, so that the device main processor can perform data interaction with the second NFC device.

[0180] In some alternative implementation manners, the configuration information receiving module 601 includes:

[0181] A setting parameter configuration information receiving unit, configured to receive the setting parameter configuration information sent by the device main processor to perform setting parameter configuration;

[0182] A listening mode routing table receiving unit, configured to, if the first NFC device is in card emulation mode, receive the listening mode routing table sent by the device main processor;

[0183] Among them, the target configuration information includes the setting parameter configuration information and the listening mode routing table; the setting parameter configuration information includes the setting parameter configuration information of the RF extension technology, and the listening mode routing table includes the technical mode routing of the RF extension technology.

[0184] In some alternative embodiments, the access control device for near field communication further includes:

[0185] A discovery result notification sending module, configured to send a discovery result notification message to the device main processor if the first NFC device is in the reader / writer mode; the discovery result notification message includes the RF extension technology supported by the discovered second NFC device, as well as the corresponding mode and related parameters;

[0186] A selection command receiving module, configured to receive a selection command sent by the device main processor, where the selection command is sent by the device main processor to the NFC controller based on the discovery result notification message;

[0187] An activation module, configured to complete an activation process with the second NFC device indicated by the selection command.

[0188] The further function descriptions of the above-mentioned various modules and units are the same as those in the corresponding embodiments above, and will not be elaborated here.

[0189] The access control device for near field communication in this embodiment is presented in the form of functional units. Here, the unit refers to an ASIC (Application Specific Integrated Circuit) circuit, a processor and a memory that execute one or more software or fixed programs, and / or other devices that can provide the above functions.

[0190] Please refer to Figure 7 , Figure 7 which is a schematic structural diagram of an NFC device provided by an alternative embodiment of the present application. As Figure 7 shown, the NFC device includes: a device main processor and an NFC controller;

[0191] The device main processor is configured to send target configuration information to the NFC controller to configure the NFC controller after the device main processor resets and initializes the NFC controller; the target configuration information includes configuration parameter information of the RF extension technology;

[0192] The main processor of the device is further configured to send a discovery command to the NFC controller, and control the NFC controller to execute a discovery process to discover a peer NFC device that supports the RF extension technology; the discovery command includes the RF extension technology and the corresponding mode;

[0193] The NFC controller is configured to complete an activation process with the discovered peer NFC device, and send an interface activation notification message to the main processor of the device; the interface activation notification message includes the RF extension technology supported by the peer NFC device, as well as the corresponding mode and related parameters;

[0194] The main processor of the device is further configured to establish a logical link with the NFC controller after receiving the interface activation notification message, and perform data interaction with the peer NFC device.

[0195] In addition, the NFC device may further include a radio frequency antenna and a memory.

[0196] The memory may include a program storage area and a data storage area. Among them, the program storage area may store an operating system and application programs required for at least one function; the data storage area may store data created according to the use of the NFC device and the like. In addition, the memory may include high-speed random access memory, and may also include non-transitory memory, such as at least one magnetic disk storage device, a flash memory device, or other non-transitory solid-state storage devices. In some alternative embodiments, the memory may optionally include a memory remotely disposed relative to the processor, and these remote memories may be connected to the NFC device through a network. Examples of the above networks include, but are not limited to, the Internet, an enterprise intranet, a local area network, a mobile communication network, and combinations thereof.

[0197] The memory may include volatile memory, such as random access memory; the memory may also include non-volatile memory, such as flash memory, a hard disk, or a solid-state drive; the memory may further include a combination of the above types of memory.

[0198] The NFC device further includes an input device and an output device. The processor, the memory, the input device, and the output device may be connected through a bus or other means.

[0199] The input device can receive input digital or character information, and generate key signal inputs related to the user settings and function control of the NFC device, such as a touch screen, keypad, mouse, trackpad, touchpad, pointing stick, one or more mouse buttons, trackball, joystick, etc. The output device 40 may include a display device, an auxiliary lighting device (e.g., LED), and a haptic feedback device (e.g., vibration motor), etc. The above display device includes, but is not limited to, a liquid crystal display, a light emitting diode, a display, and a plasma display. In some alternative embodiments, the display device may be a touch screen.

[0200] In some alternative embodiments, the device main processor is specifically configured to send setting parameter configuration information to the NFC controller to perform setting parameter configuration on the NFC controller; and in the case of the card emulation mode, it is further configured to send a listening mode routing table to the NFC controller.

[0201] Wherein, the target configuration information includes the setting parameter configuration information and the listening mode routing table; the setting parameter configuration information includes the setting parameter configuration information of the RF extension technology, and the listening mode routing table includes the technical mode routing of the RF extension technology.

[0202] In some alternative embodiments, in the case of the reader mode, the NFC controller is further configured to send a discovery result notification message to the device main processor, and the device main processor is further configured to send a selection command to the NFC controller based on the discovery result notification message, so that the NFC controller completes the activation process with the peer NFC device indicated by the selection command.

[0203] Wherein, the discovery result notification message includes the RF extension technology supported by the discovered peer NFC device, as well as the corresponding mode and related parameters.

[0204] Embodiments of the present application also provide a computer-readable storage medium. The method according to the embodiments of the present application can be implemented in hardware, firmware, or be implemented as computer code that can be recorded on a storage medium, or be implemented as computer code that is originally stored in a remote storage medium or a non-transitory machine-readable storage medium and downloaded through a network and will be stored in a local storage medium, so that the method described herein can be stored as such software processing on a storage medium using a general-purpose computer, a dedicated processor, or programmable or dedicated hardware. Among them, the storage medium can be a magnetic disk, an optical disk, a read-only memory, a random access memory, a flash memory, a hard disk, or a solid-state drive, etc.; further, the storage medium can also include a combination of the above-mentioned types of memories. It can be understood that the NFC device, the processor, the microprocessor controller, or the programmable hardware includes a storage component that can store or receive software or computer code. When the software or computer code is accessed and executed by a computer, a processor, or hardware, the method shown in the above embodiments is implemented.

[0205] A part of the embodiments of the present application can be applied as a computer program product, such as computer program instructions. When executed by an NFC device, through the operation of the NFC device, the method and / or technical solution according to the embodiments of the present application can be called or provided. Those skilled in the art should be able to understand that the forms of existence of computer program instructions in a computer-readable medium include, but are not limited to, source files, executable files, installation package files, etc. Correspondingly, the ways in which computer program instructions are executed by an NFC device include, but are not limited to: the NFC device directly executes the instructions, or the NFC device compiles the instructions and then executes the corresponding compiled program, or the NFC device reads and executes the instructions, or the NFC device reads and installs the instructions and then executes the corresponding installed program. Here, the computer-readable medium can be any available computer-readable storage medium or communication medium accessible to the NFC device.

[0206] Although the embodiments of the present application have been described in conjunction with the accompanying drawings, those skilled in the art can make various modifications and variations without departing from the spirit and scope of the present application, and such modifications and variations all fall within the scope defined by the appended claims.

Claims

1. An access control method for near field communication, characterized in that, The device main processor applied to the first NFC device, the first NFC device further includes an NFC controller, and the method includes: After resetting and initializing the NFC controller, send target configuration information to the NFC controller to configure the NFC controller; the target configuration information includes configuration parameter information of the RF extension technology; Send a discovery command to the NFC controller to control the NFC controller to perform a discovery process to discover a second NFC device that supports the RF extension technology; the discovery command includes the RF extension technology and the corresponding mode; Receive an interface activation notification message sent by the NFC controller, where the interface activation notification message is sent by the NFC controller to the device main processor after the activation process with the discovered second NFC device is completed; the interface activation notification message includes the RF extension technology supported by the second NFC device, the corresponding mode, and relevant parameters; After receiving the interface activation notification message, establish a logical link with the NFC controller and perform data interaction with the second NFC device.

2. The method according to claim 1, wherein The sending of the target configuration information to the NFC controller includes: Send setting parameter configuration information to the NFC controller to perform setting parameter configuration on the NFC controller; If the first NFC device is in card emulation mode, also send a listening mode routing table to the NFC controller; Wherein, the target configuration information includes the setting parameter configuration information and the listening mode routing table; the setting parameter configuration information includes the setting parameter configuration information of the RF extension technology, and the listening mode routing table includes the technology mode routing of the RF extension technology.

3. The method according to claim 2, wherein The target configuration information further includes a mapping table of the RF interface and the RF protocol; The sending of the target configuration information to the NFC controller further includes: Send the mapping table of the RF interface and the RF protocol to the NFC controller.

4. The method according to any one of claims 1 to 3, characterized in that, After the sending of the discovery command to the NFC controller to control the NFC controller to perform the discovery process, it further includes: If the first NFC device is in reader / writer mode, receive a discovery result notification message sent by the NFC controller; the discovery result notification message includes the RF extension technology supported by the discovered second NFC device, the corresponding mode, and relevant parameters; Based on the discovery result notification message, send a selection command to the NFC controller to enable the NFC controller to complete the activation process with the second NFC device indicated by the selection command.

5. The method according to any one of claims 1-3, characterized in that, The interface activation notification message further includes at least one of the following: RF detection identifier, RF interface, RF protocol, maximum data payload length, initial credit value, RF technology related parameter length, RF technology and mode used for data exchange, sending bit rate during data exchange, receiving bit rate during data exchange, activation parameter length, and activation parameters.

6. An access control method for near field communication, characterized in that, The NFC controller applied to the first NFC device, the first NFC device further includes a device main processor, and the method includes: After reset and initialization, receive the target configuration information sent by the device main processor, and complete the corresponding configuration based on the target configuration information; the target configuration information includes the configuration parameter information of the RF extension technology; Receive the discovery command sent by the device main processor, and execute the discovery process based on the discovery command to discover a second NFC device that supports the RF extension technology; the discovery command includes the RF extension technology and the corresponding mode; After completing the activation process with the discovered second NFC device, send an interface activation notification message to the device main processor; the interface activation notification message includes the RF extension technology supported by the second NFC device, as well as the corresponding mode and related parameters; Establish a logical link with the device main processor so that the device main processor can perform data interaction with the second NFC device.

7. The method according to claim 6, wherein The receiving the target configuration information sent by the device main processor includes: Receive the setting parameter configuration information sent by the device main processor to perform setting parameter configuration; If the first NFC device is in the card emulation mode, also receive the listening mode routing table sent by the device main processor; Wherein, the target configuration information includes the setting parameter configuration information and the listening mode routing table; the setting parameter configuration information includes the setting parameter configuration information of the RF extension technology, and the listening mode routing table includes the technology mode routing of the RF extension technology.

8. The method according to claim 6 or 7, characterized in that, After receiving the discovery command sent by the device main processor, it further includes: If the first NFC device is in the reader / writer mode, send a discovery result notification message to the device main processor; the discovery result notification message includes the RF extension technology supported by the discovered second NFC device, as well as the corresponding mode and related parameters; Receive the selection command sent by the device main processor, and the selection command is sent by the device main processor to the NFC controller based on the discovery result notification message; Complete the activation process with the second NFC device indicated by the selection command.

9. An access control device for near field communication, characterized in that Applied to the device main processor of the first NFC device, the first NFC device further includes an NFC controller, and the device includes: a configuration information sending module, a discovery command sending module, an activation notification receiving module, and a first link establishment and data interaction module; The configuration information sending module is configured to send target configuration information to the NFC controller to configure the NFC controller after the device main processor resets and initializes the NFC controller; the target configuration information includes the configuration parameter information of the RF extension technology; The discovery command sending module is configured to send a discovery command to the NFC controller to control the NFC controller to execute the discovery process to discover a second NFC device that supports the RF extension technology; the discovery command includes the RF extension technology and the corresponding mode; An activation notification receiving module, configured to receive an interface activation notification message sent by the NFC controller, where the interface activation notification message is sent by the NFC controller to the device main processor after the activation process with a discovered second NFC device is completed; the interface activation notification message includes the RF extension technology supported by the second NFC device, as well as the corresponding mode and related parameters; The first link establishment and data interaction module is configured to establish a logical link with the NFC controller and perform data interaction with the second NFC device after receiving the interface activation notification message.

10. An access control device for near field communication, characterized in that, An NFC controller applied to a first NFC device, the first NFC device further including a device main processor, the apparatus includes: a configuration information receiving module, a discovery command receiving module, an activation notification sending module, and a second link establishment and data interaction module; The configuration information receiving module is configured to receive target configuration information sent by the device main processor after resetting and initializing, and complete corresponding configuration based on the target configuration information; the target configuration information includes configuration parameter information of the RF extension technology; The discovery command receiving module is configured to receive a discovery command sent by the device main processor, and perform a discovery process based on the discovery command to discover a second NFC device that supports the RF extension technology; the discovery command includes the RF extension technology and the corresponding mode; The activation notification sending module is configured to send an interface activation notification message to the device main processor after the activation process with the discovered second NFC device is completed; the interface activation notification message includes the RF extension technology supported by the second NFC device, as well as the corresponding mode and related parameters; The second link establishment and data interaction module is configured to establish a logical link with the device main processor, so that the device main processor can perform data interaction with the second NFC device.

11. An NFC device, characterized in that, The NFC device includes a device main processor and an NFC controller; The device main processor is configured to send target configuration information to the NFC controller to configure the NFC controller after the device main processor resets and initializes the NFC controller; the target configuration information includes configuration parameter information of the RF extension technology; The device main processor is further configured to send a discovery command to the NFC controller to control the NFC controller to perform a discovery process to discover a peer NFC device that supports the RF extension technology; the discovery command includes the RF extension technology and the corresponding mode; The NFC controller is configured to complete an activation process with a discovered peer NFC device, and send an interface activation notification message to the device main processor; the interface activation notification message includes the RF extension technology supported by the peer NFC device, as well as the corresponding mode and related parameters; The device main processor is further configured to establish a logical link with the NFC controller and perform data interaction with the peer NFC device after receiving the interface activation notification message.

12. The NFC device according to claim 11, wherein, The main processor of the device is specifically configured to send setting parameter configuration information to the NFC controller to perform setting parameter configuration on the NFC controller; and in the case of the card emulation mode, it is further configured to send a listening mode routing table to the NFC controller. Wherein, the target configuration information includes the setting parameter configuration information and the listening mode routing table; the setting parameter configuration information includes the setting parameter configuration information of the RF extension technology, and the listening mode routing table includes the technology mode routing of the RF extension technology.

13. The NFC device according to claim 11, wherein In the case of the reader / writer mode, the NFC controller is further configured to send a discovery result notification message to the main processor of the device, and the main processor of the device is further configured to send a selection command to the NFC controller based on the discovery result notification message, so that the NFC controller completes the activation process with the peer NFC device indicated by the selection command. Wherein, the discovery result notification message includes the RF extension technology supported by the discovered peer NFC device, as well as the corresponding mode and related parameters.

14. A computer-readable storage medium, characterized in that, Computer instructions are stored on the computer-readable storage medium, and the computer instructions are used to cause the main processor of the NFC device to execute the access control method for near field communication according to any one of claims 1 to 5, or to cause the NFC controller of the NFC device to execute the access control method for near field communication according to any one of claims 6 to 8.