A multifunctional near field communication module, control method and device
Patent Information
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- ALIPAY (HANGZHOU) INFORMATION TECH CO LTD
- Filing Date
- 2026-05-26
- Publication Date
- 2026-08-04
AI Technical Summary
NFC控制器对双天线工作模式的分时调度,近场通信模组能够完成读卡场发射与外部信号感知的动态切换,这样无需收银员或其他用户事先手动选择支付方式或预置收款模式,消费者仅需将银行卡、交通卡或智能手机等靠近设备感应区,近场通信模组即可根据两个近场天线的感知情况匹配对应工作模式,实现了盲刷盲碰的业务处理功能,能够降低收银台操作门槛,能够提升线下高频交易场景的通行效率。另外,近场通信模组也无需设置额外的用于判断靠近近场通信模组的实体是卡片还是电子设备,也可以降低近场通信模组的复杂性以及成本。
Smart Images

Figure CN122512945A_ABST
Abstract
Description
Technical Field
[0001] This specification relates to the field of near-field communication technology, and particularly to a multifunctional near-field communication module. This specification also relates to a near-field communication control method and a near-field communication device. Background Technology
[0002] With the development of Near Field Communication (NFC) technology, it has been widely applied in scenarios such as financial payments, smart terminals, IoT devices, and public services. As application scenarios continue to expand, communication devices may need to integrate multiple business functions simultaneously, including reader mode (such as financial POS card swiping and transportation card reading) and tag mode (such as quick service triggering and digital identity recognition). How to achieve efficient collaboration and stable communication across multiple functions within limited hardware space and system power consumption constraints is a pressing technical problem that needs to be solved. Summary of the Invention
[0003] In view of this, one or more embodiments of this specification provide a multifunctional near-field communication module, control method, and device to achieve multifunctional, efficient collaboration, and stable communication.
[0004] According to a first aspect of one or more embodiments of this specification, a multifunctional near-field communication module is provided, comprising: an NFC controller with an integrated embedded security element; The first near-field antenna is configured to enable near-field communication card reading functionality; The second near-field antenna is configured to implement near-field communication tag functionality; The NFC controller is connected to the first near-field antenna and the second near-field antenna respectively; The NFC controller switches between operating modes in a time-division manner; wherein, when the NFC controller is in reader operating mode, the first near-field antenna transmits field signals outward; during the interval when no field signals are transmitted, the NFC controller is in tag operating mode, and the second near-field antenna can sense external radio frequency signals.
[0005] According to a second aspect of one or more embodiments of this specification, a control method for near-field communication is provided, the method comprising: switching operating modes in a time-division manner according to the transmission cycle of a radio frequency signal; when a time period for transmitting a field signal is reached, switching to a reader operating mode and transmitting a field signal to the outside through a first near-field antenna; when an interval period for not transmitting a field signal is reached, switching to a tag operating mode and sensing external radio frequency signals through a second near-field antenna.
[0006] According to a third aspect of one or more embodiments of this specification, a near-field communication device is provided, the device including the near-field communication module described above.
[0007] One or more embodiments of this specification can achieve at least the following beneficial effects: The NFC controller's time-division scheduling of the dual-antenna operating modes enables the near-field communication module to dynamically switch between card reader transmission and external signal sensing. This eliminates the need for cashiers or other users to manually select payment methods or preset payment modes beforehand. Consumers simply need to bring their bank cards, transportation cards, or smartphones close to the device's sensing area, and the near-field communication module will match the corresponding operating mode based on the sensing status of the two near-field antennas. This enables blind swiping and tapping for transaction processing, lowering the operational threshold at the checkout counter and improving efficiency in high-frequency offline transaction scenarios. Furthermore, the near-field communication module eliminates the need for additional mechanisms to determine whether the entity approaching it is a card or an electronic device, further reducing its complexity and cost.
[0008] On the other hand, by connecting the first and second near-field antennas through the NFC controller and integrating an embedded security unit within the NFC controller, hardware-level fusion of card reading and tag functions is achieved. This architecture eliminates the need for additional independent security chips or multiple NFC controllers or chips, reducing hardware layout area and the number of peripheral components, lowering hardware costs and system complexity, while also ensuring data security.
[0009] On the other hand, the NFC controller can switch operating modes in a time-sharing manner by utilizing the periodic characteristics of the field signals emitted by the reader, switching to the tag's operating mode during the intervals between adjacent field signals. Compared to the method of relying on communication negotiation between multiple chips to determine the operating mode, this eliminates communication latency and software scheduling overhead, improves the response speed of dual-mode switching, and enhances the real-time performance of near-field interaction.
[0010] On the other hand, enabling tag mode sensing within the gap window of the active transmission field signal in reader mode can physically eliminate the risk of signal overwhelmment and crosstalk from the strong transmission field to the weak reception path. The time-division sensing mechanism ensures that the second near-field antenna captures external radio frequency signals in a relatively clean electromagnetic environment, which not only improves the recognition success rate of external tags or card readers, but also ensures the stable parallel operation of card reading and tag services within a single chip. Attached Figure Description
[0011] To more clearly illustrate the technical solutions in the embodiments or prior art of this specification, the drawings used in the description of the embodiments or prior art will be briefly introduced below. Obviously, the drawings described below are only some embodiments recorded in this specification. For those skilled in the art, other drawings can be obtained based on these drawings without creative effort.
[0012] Figure 1 A schematic diagram of the structure of a multifunctional near-field communication module provided in one embodiment of this specification; Figure 2 A schematic diagram of the structure of a multifunctional near-field communication module provided in one embodiment of this specification; Figure 3 A schematic diagram of the structure of a multifunctional near-field communication module provided in one embodiment of this specification; Figure 4 A schematic diagram of the structure of a multifunctional near-field communication module provided in one embodiment of this specification; Figure 5 A schematic diagram of the structure of a multifunctional near-field communication module provided in one embodiment of this specification; Figure 6 This is a flowchart illustrating a near-field communication control method provided in one embodiment of this specification. Detailed Implementation
[0013] To enable those skilled in the art to better understand the technical solutions in this specification, the technical solutions in the embodiments of this specification will be clearly and completely described below with reference to the accompanying drawings. Obviously, the described embodiments are only some embodiments of this specification, and not all embodiments. Based on the embodiments in this specification, all other embodiments obtained by those skilled in the art without creative effort should fall within the scope of protection of this specification.
[0014] This specification uses specific terms to describe embodiments thereof. Terms such as "an embodiment," "one embodiment," and / or "some embodiments" refer to a particular feature, structure, or characteristic associated with at least one embodiment of this specification. Therefore, it should be emphasized and noted that references to "an embodiment," "one embodiment," or "an alternative embodiment" in different locations throughout this specification do not necessarily refer to the same embodiment. Furthermore, those skilled in the art can combine and integrate the different embodiments or examples described herein, as well as the features of those different embodiments or examples, without contradiction.
[0015] The terminology used in one or more embodiments of this specification is for the purpose of describing particular embodiments only and is not intended to be limiting of the one or more embodiments of this specification. The singular forms “a,” “an,” “an,” “the,” and “the” as used in one or more embodiments of this specification and the appended claims are also intended to include the plural forms unless the context clearly indicates otherwise. It should also be understood that the term “and / or” as used in one or more embodiments of this specification includes any or all possible combinations of one or more associated listed items.
[0016] The terms “comprising,” “including,” or any other variations thereof are intended to cover a non-exclusive inclusion, such that a process, method, product, or apparatus that comprises a list of elements includes not only those elements but also other elements not expressly listed, or elements inherent to such a process, method, product, or apparatus. Without further limitation, the presence of additional identical or equivalent elements in the process, method, product, or apparatus that includes said elements is not excluded.
[0017] Although the terms "first," "second," etc., may be used to describe various information in one or more embodiments of this specification, this information should not be limited to these terms. These terms are only used to distinguish information of the same type from one another. For example, "first" may also be referred to as "second," and similarly, "second" may also be referred to as "first," without departing from the scope of one or more embodiments of this specification. Ordinal numbers such as "first," "second," etc., do not necessarily indicate order; often they are used to facilitate the distinction of objects. For example, "first server" and "second server" usually refer to two servers. To distinguish these two servers, they are described as "first server" and "second server." Of course, sometimes these two servers may be the same server.
[0018] The word "if" can be interpreted as "when," "when," or "in response to a determination," depending on the context.
[0019] In this specification, unless explicitly stated otherwise, "receiving and sending data" does not necessarily mean direct receiving and sending; it can also mean indirect receiving and sending. For example, A receiving data sent by B can be understood as A directly receiving the data sent by B, or it can be understood as A indirectly receiving the data sent by B through other entities such as C. Similarly, B sending data to A can be understood as B sending the data directly to A, or it can be understood as B indirectly sending the data to A through other entities such as C. Here, C can be one entity, or it can be two or more entities.
[0020] In this specification, unless explicitly stated otherwise, the relationships between structures can be direct or indirect. For example, when describing "A is connected to B," unless it is explicitly stated that A and B are directly connected, it should be understood that A can be directly connected to B or indirectly connected to B. Similarly, when describing "A is on top of B," unless it is explicitly stated that A is directly above B (AB is adjacent and A is above B), it should be understood that A can be directly above B or indirectly above B (AB is separated by other elements, and A is above B). And so on.
[0021] The user information (including but not limited to user device information, user personal information, etc.) and data (including but not limited to data used for analysis, stored data, displayed data, etc.) involved in one or more embodiments of this specification are all information and data authorized by the user or fully authorized by all parties. The collection, use and processing of related data shall comply with the relevant laws, regulations and standards of the relevant regions, and corresponding operation entry points shall be provided for users to choose to authorize or refuse.
[0022] The following explains the terms and concepts used in one or more embodiments of this specification.
[0023] MCU (Microcontroller Unit): A microcomputer that integrates a processor core, memory, and various peripheral interfaces on a single chip. It can be used to execute upper-level business logic, user interaction, or system-level task scheduling. In one or more embodiments of this specification, the MCU can communicate with an NFCC to process business data.
[0024] POS (Point of Sale): This refers to a terminal device deployed in scenarios such as commercial checkouts, transportation gates, or self-service facilities to complete tasks such as near-field card reading, payment settlement, and data interaction. It can be a hardware carrier with an NFC card reader operating mode and support for financial-grade security authentication.
[0025] NFC (Near Field Communication): A short-range wireless communication technology developed based on Radio Frequency Identification (RFID) technology. Its standard operating frequency is 13.56MHz, and the typical communication distance is within 10 centimeters. It supports three working modes: reader / writer, tag, and peer-to-peer.
[0026] NFCC (NFC Controller): This can refer to the core control chip used to handle the NFC protocol stack, RF signal modulation and demodulation, antenna driving, and low-level communication scheduling. In one or more embodiments of this specification, the NFCC can integrate an embedded security unit and can also have the ability to control dual-antenna path switching and pulse gap time-division scheduling.
[0027] SE (Security Element): A security hardware module that conforms to international security standards (such as Common Criteria EAL5+ and GlobalPlatform specifications). It can be used to securely store keys, digital certificates, biometric templates, and sensitive transaction data, and can provide a tamper-proof environment for performing encryption operations and identity authentication.
[0028] eSE (Embedded Security Element): This refers to a security element directly integrated into the NFCC or other main chip using advanced packaging technology. Compared to external SEs, eSEs offer higher circuit integration, lower communication latency, and stronger physical tamper protection, making them suitable for high-security applications such as financial payments and digital identity.
[0029] GPIO (General Purpose Input / Output): A pin on the chip that can be configured as a digital input or output mode via software registers. In one or more embodiments of this specification, GPIO can be used by the NFCC to output switching control levels to external switching modules, status indicators, or power management devices, or to read status feedback signals from the antenna matching network, etc.
[0030] SPDT (Single-Pole Double-Throw): A switching device with one common terminal and two throw terminals. The common terminal can selectively establish a conduction path with one of the throw terminals according to a control signal. It can be used for radio frequency signal routing, antenna gating, and impedance matching network switching. The switching modules in one or more embodiments of this specification can be implemented based on SPDT topology, or can be equivalently constructed from electronic devices such as diodes, MOSFETs, or thyristors.
[0031] The technical solutions provided in the various embodiments of this specification are described in detail below with reference to the accompanying drawings.
[0032] Figure 1 This is a schematic diagram of the structure of a multifunctional near-field communication module provided in one embodiment of this specification.
[0033] like Figure 1 As shown, the near-field communication module 100 may include an NFC controller 102 with an integrated embedded security element (sSE), a first near-field antenna 104 configured to implement near-field communication card reading function, and a second near-field antenna 106 configured to implement near-field communication tag function. The NFC controller 102 is connected to both the first near-field antenna 104 and the second near-field antenna 106. The NFC controller 102 can switch operating modes in a time-division multiplexing manner. When the NFC controller 102 is in card reader operating mode, the first near-field antenna 104 transmits near-field signals. During the intervals when no near-field signals are transmitted, the NFC controller 102 can be in tag operating mode, and the second near-field antenna 106 can sense external radio frequency signals.
[0034] The NFC controller 102 is a chip responsible for handling tasks such as the control of the near-field communication protocol stack, radio frequency signal modulation and demodulation, and low-level timing scheduling. The embedded security unit refers to a security module integrated into the controller through packaging technology, used to perform tasks such as key management and data encryption / decryption.
[0035] The first near-field antenna 104 is configured to carry out radio frequency transceiver in reader mode, and the second near-field antenna 106 is configured to carry out radio frequency transceiver in tag mode. The NFC controller 102 establishes connection paths with the first near-field antenna 104 and the second near-field antenna 106 respectively through radio frequency transmission lines.
[0036] In actual operation, the NFC controller 102 can switch its operating mode in a time-sharing manner. This time-sharing switching can mean that the first and second near-field antennas are active at different times, or that the NFC controller is in reader mode or tag mode at different times. During the time the first near-field antenna is active, the second near-field antenna can be inactive, and the NFC controller is in reader mode; during the time the second near-field antenna is active, the first near-field antenna is inactive, and the NFC controller is in tag mode. Tag mode can also be understood as card emulation mode, where the NFC controller can act as a tag and be detected or recognized by an external card reader device.
[0037] Specifically, when the NFC controller 102 is in the card reader working mode, it can drive the first near-field antenna 104 to transmit field signals. For example, the NFC controller can send a driving current to the first near-field antenna 104 to make it transmit periodic field signals. These field signals can be adapted to the interrogation pulse of the payment terminal standard for detecting card media.
[0038] To handle tag-based operations within a single-controller architecture, the NFC controller 102 can be configured to switch to tag-based operating mode during periods when no field signals are transmitted. The transmitted field signals can be pure carrier pulse signals without commands, or pulse signals containing one or more query commands. This interval can correspond to the time window between two adjacent field signal transmissions, or it can be the time interval between multiple field signals. During this period, the first near-field antenna 104 can pause active transmission, and the NFC controller 102 switches communication resources to the second near-field antenna 106. This allows the second near-field antenna 106 to sense external radio frequency signals (e.g., probe fields from external card readers or terminals) and to execute response logic based on an integrated embedded security unit.
[0039] For example, taking the device emitting a Low Power Detection (LPCD) signal in reader operating mode as an example, the specific timing sequence of time-division switching is explained. The NFC controller is configured to periodically transmit LPCD detection field signals. The pulse transmission duration of each LPCD field signal can be set to 100 microseconds to 200 microseconds, which can represent the pulse duration of a single pulse signal. Between two adjacent LPCD field signal transmissions, there is a silent interval period of 2 milliseconds to 10 milliseconds, which can represent the time interval between two adjacent pulse signals. During this interval period, the NFC controller can pause or disconnect the driving of the first near-field antenna and switch the underlying state machine to tag operating mode, causing the second near-field antenna to enter the receiving and listening state to sense the radio frequency field emitted by the external card reader device or terminal. The hardware response time for the NFC controller to complete the radio frequency path switching and control logic conversion is typically less than 5 microseconds. When the silent interval period ends, the external interaction is completed, or the preset listening time limit is reached, the controller automatically restores the state to the card reader operating mode and prepares to transmit the next LPCD field signal. Through the above timing arrangement, the module can maintain low-power polling detection while using the inherent pulse gap to complete the alternating operation of dual working modes, thus achieving blind brushing and blind touching in conjunction with low power consumption.
[0040] In one or more embodiments of this specification, the operating mode is switched during intervals when no field signal is transmitted, enabling the second near-field antenna to sense external signals. This allows for automatic switching of the transmit and receive paths using a radio frequency silence window. The module can match the corresponding interaction logic based on the sensing status of the two antennas, thereby eliminating the need for manual preset or selection of operating modes. This achieves a blind swipe / touch function that can respond directly without pre-configuration. Furthermore, since the NFC controller integrates a security unit and is connected to the dual antennas, the radio frequency paths of card reading and tag services are integrated and securely isolated. This reduces the need for deploying external independent security chips, thereby reducing module wiring complexity and overall space occupation. This allows the near-field communication module to improve scheduling efficiency and interaction continuity in multiple service scenarios while ensuring data encryption and decryption security.
[0041] In practical applications, after any near-field antenna senses a subject interacting with it, the near-field communication device can maintain the conduction state of that near-field antenna and maintain the current working mode for near-field communication interaction. After the interaction is completed, the near-field communication device can continue to switch working modes in a time-division manner. As one implementation, in the near-field communication device of the embodiment of the specification, if the first near-field antenna senses the presence of a tag subject during the time period when the first near-field antenna transmits a field signal, the first near-field antenna and the NFC controller are kept in a conduction state, and the NFC controller maintains the card reader working mode; and / or, if the second near-field antenna senses an external field signal during the interval period when it does not transmit a field signal, the second near-field antenna and the NFC controller are kept in a conduction state, and the NFC controller maintains the tag working mode.
[0042] The tag subject can represent a terminal object carrying a near-field communication tag chip or having card emulation function, such as a physical payment card, transportation ticket, smart wearable device or mobile terminal, etc., and is the passive responder in near-field communication.
[0043] External field signals can represent electromagnetic waves emitted by sources other than the module's own RF front-end, originating from other NFC readers. Their carrier frequency, modulation depth, and protocol frame structure can follow independent timing sequences. These external field signals can carry card detection or card search commands.
[0044] The presence of a tag by the first near-field antenna indicates that the radio frequency front-end circuit of the first near-field antenna and the NFC controller has successfully captured and identified the electromagnetic response characteristics of the external tag device during the transmission of carrier field signals. Specifically, when the tag enters the effective near-field range of the first near-field antenna, its internal resonant circuit magnetically couples with the transmission field and changes the impedance state of the antenna port through load modulation or backscattering technology, thereby generating a reflected signal or field strength perturbation carrying coded information. The first near-field antenna collects this modulation energy and feeds it to the NFC controller. The controller then extracts the subcarrier waveform or parses the initial response frame (such as ATQA preamble) that conforms to the communication protocol specifications via the demodulation link, thereby determining that the communication link has been established and outputting a status flag. Subsequently, tag information can be obtained from the tag entity.
[0045] When the second near-field antenna senses an external field signal, it indicates that the antenna, acting as a passive receiver, has successfully captured the radio frequency electromagnetic waves actively radiated by the external reader / writer device and triggered the physical and signal processing steps of the controller's state switching. Specifically, when the carrier field emitted by the external reader or terminal device enters the effective sensing range of the second near-field antenna, the antenna coil generates an alternating electromotive force through electromagnetic induction. After being tuned by the matching network, this electromotive force is coupled to the radio frequency receiving front end of the NFC controller. The front-end circuit confirms that the external field strength has reached the effective wake-up threshold through envelope detection or carrier sensing mechanisms. It can also further demodulate the command frame preamble that conforms to the communication specifications. Based on this, the controller determines that an external interaction request has been established and can switch from the standby listening state to the tag response mode, and can send tag information to the external reader device.
[0046] Maintaining the on state or maintaining the working mode can indicate that the NFC controller pauses the original time-division switching timing logic, and maintains the current control level of the RF switch, the front-end power supply path, or the protocol stack operating state without change.
[0047] In conventional time-sharing scheduling, fixed-period mode rotation can forcibly interrupt the establishment of near-field interactions, leading to protocol handshake failures or data frame truncation. By introducing a dynamic state preservation mechanism, the timing allocation of modules can adaptively match the actual link establishment status. When the near-field antenna successfully acquires the target object or external detection field, it indicates that the current communication session has entered a valid interaction window. By pausing the handover and maintaining the current path, the radio frequency window required for complete transmission protocol interaction can be ensured.
[0048] For example, the interruption state can be locked based on a threshold comparison. For instance, the NFC controller can be configured with an RF amplitude monitoring circuit and a carrier frequency detection module. When the backscattered signal envelope received by the first near-field antenna exceeds a preset threshold, or the center frequency of the electromagnetic wave captured by the second near-field antenna falls into the standard communication frequency band, the comparator can generate an interrupt signal. This signal bypass can schedule a timer to lock the control register bit of the current switching device, keeping the RF path between the corresponding antenna and the NFC controller continuously connected until the protocol stack parses a complete acknowledgment frame or reaches the communication timeout threshold, at which point the lock is released and time-sharing scheduling resumes.
[0049] For example, the state can be maintained or switched by reloading state machine flags. For instance, the NFC controller can embed a link state determination node within a time-sharing cycle. At the end of each transmit cycle or during a silent window sampling period, the signal-to-noise ratio (SNR) of the receive link is read to match the preamble. If a valid tag response or external reader detection is detected, the switching counter can be reloaded to a hold state value, and the trigger flag for the next mode transition can be cleared. The controller can maintain the current transmit / receive configuration and, after completing a preset service handshake or detecting link idleness, reload the original time-sharing parameters to resume alternating scheduling.
[0050] Taking a financial payment terminal interaction scenario as an example, assuming the module is in card reader working mode and periodically transmits card detection field signals, when the user brings a physical card or a terminal device in card emulation mode close to the sensing area, the field signal of the first near-field antenna changes. The module can recognize the existence of the tag and can suspend the originally set pulse gap switching command to maintain the conduction path between the first near-field antenna and the NFC controller, so that the controller can fully execute subsequent anti-collision arbitration, key negotiation and transaction message interaction processes.
[0051] If a user places a physical card or a terminal device in card emulation mode close to the sensing area of the first near-field antenna, and the module is currently in tag working mode with the first near-field antenna in a non-working state, the second near-field antenna, which is in working mode, cannot detect the external field signal because the user has placed the physical card or the terminal device in card emulation mode close to the sensing area of the first near-field antenna. After the interval period for the module to transmit the field signal ends, such as after a few milliseconds, the module switches to card reader working mode. At this time, it can identify the user's physical card or the terminal device in card emulation mode, and then keep the first near-field antenna in working mode until the communication ends or the physical card or the terminal device in card emulation mode moves away from the first near-field antenna.
[0052] Similarly, if a user brings the card reader close to the sensing area of the second near-field antenna, and the module is currently in card reader mode, the second near-field antenna is inactive. After a short period of time, such as tens of microseconds or milliseconds, when the interval period of no field signal transmission is reached, the second near-field antenna switches to active mode and can sense the field signal emitted by the external card reader. The module maintains the active state of the second near-field antenna until the end of the communication or because the user brings a physical card or a terminal device in card emulation mode close to the sensing area of the first near-field antenna, the active second near-field antenna cannot detect the external field signal. After the interval period of no field signal transmission ends, such as a few milliseconds, the module switches to card reader mode, at which point it can recognize the user's physical card or the terminal device in card emulation mode, and then keeps the first near-field antenna active until the end of the communication or the card reader moves away from the second near-field antenna.
[0053] Because the near-field communication module can switch its working mode according to the interval of the transmitted field signal, even if the module's working state is different from the required working state when the user touches the module with the device or card, it will switch to the required working state within microseconds or milliseconds. From the user's perspective, there is no need for the user to deliberately wait for too long, and the user is almost unaware of it.
[0054] Based on some embodiments of this specification, by employing control logic that pauses time-division switching and maintains the current conduction state when the tag body or external field signal is detected, the allocation of radio frequency resources can be dynamically bound to the actual communication link establishment status. This avoids the forced disconnection of already handshake sessions by fixed-period rotation, solves the problem of data packet loss and communication reset caused by timing conflicts during near-field interaction, and improves the stability of near-field communication.
[0055] In practical applications, near-field communication (NFC) modules can be used in various business scenarios via NFC. To expand the service adaptability of NFC modules and decouple the underlying RF control from the upper-layer application logic, NFC modules may also include a main control chip. For example... Figure 1 As shown, the main control chip 108 can communicate with the NFC controller 102. The main control chip 108 can trigger the execution of the corresponding business processing flow when the NFC controller 102 is in different working modes.
[0056] The main control chip can be considered as a processing unit independent of the NFC controller, responsible for running the terminal operating system, managing peripheral device interfaces, executing high-level business logic and data routing, and possessing general computing capabilities and multi-protocol stack support capabilities.
[0057] The communication connection can represent the data interaction path established between the main control chip and the NFC controller. For example, it can be implemented based on I2C, SPI, UART or dedicated NFC controller interface (NCI) protocol, and can be used to transmit information such as mode status identifiers, session control commands, secure data messages and interrupt signals.
[0058] Upon receiving a notification of a change in operating mode from the NFC controller or an instruction indicating the new operating mode, the main control chip can invoke preset software routines or task queues to initiate a series of ordered operations matching the current mode, such as data processing, user interface interaction, network communication, or financial settlement. For example, the main control chip can interact with a server to obtain tag information to be written into the NFC controller and provide this information to the controller. Alternatively, after the NFC controller detects an interaction signal from the antenna, it can trigger the main control chip to execute corresponding task flows, such as controlling the display unit to display text information or controlling the broadcast unit to broadcast voice information. Furthermore, the main control chip can execute corresponding business processes based on tag information obtained from external tag entities when the NFC controller is in reader mode, such as triggering payment processing, member login, or gate opening processes.
[0059] Taking a smart retail self-service checkout terminal as an example, when a customer brings their physical payment card close to the card reader area, the NFC controller, switching to card reader mode, can detect the card's presence. After obtaining the card information, the NFC controller can provide the card information to the main control chip. The main control chip can then trigger business processing flows such as order generation, encrypted payment requests, and fund clearing based on this card information. Similarly, if a customer brings their mobile phone (in card reader mode) close to the touch-sensitive area, the NFC controller, in tag mode, can detect the field signal emitted by the phone. The NFC controller can provide the tag information to the phone and also send a notification command indicating that the card reader device has been detected to the main control chip. The main control chip can then trigger corresponding processes, such as displaying or broadcasting prompts, or triggering payment processes.
[0060] Based on some embodiments of this specification, the main control chip can decouple the underlying radio frequency timing scheduling from the upper-layer application logic at the physical and software levels, which can avoid the preemption of microsecond-level mode switching resources by complex business operations, solve the system response delay and power consumption imbalance caused by mixed task deployment in traditional centralized architecture, and improve system operation stability.
[0061] In practical applications, if the NFC controller is capable enough, it can be used to execute specific business processes without the need for a dedicated main control chip. Alternatively, the aforementioned main control chip can be an existing main control chip in a device, which can be combined with the near-field communication module containing the NFC controller to enable near-field communication capabilities.
[0062] To optimize RF signal transmission efficiency and improve the resonant stability of the dual antennas under different operating modes, the near-field communication module in one or more embodiments of this specification may further include a matching circuit. The matching circuit may be positioned between the NFC controller and the first and / or second near-field antennas. The NFC controller can use the matching circuit to ensure that the first and / or second near-field antennas operate at a preset frequency.
[0063] Matching circuits can represent passive or active circuit networks that include inductors, capacitors, resistors, or tunable devices, used to achieve functions such as impedance transformation, harmonic suppression, and frequency gating. Their electrical characteristics can be designed in conjunction with the antenna physical parameters and the characteristics of the NFC controller output port.
[0064] The preset frequency can represent the center carrier frequency specified by the near-field communication standard (e.g., 13.56MHz) or the operating frequency set according to a specific application scenario. This frequency can be determined by the system clock source and the antenna resonant circuit, and can be used to ensure that the signal transmission and reception meet the frequency band requirements of the protocol specification.
[0065] The radio frequency signal output by the NFC controller can be transformed by the parameters of the matching circuit to drive the near-field antenna into a resonant state that meets the requirements, so that the antenna exhibits specific load characteristics at the target frequency, thereby achieving efficient energy radiation or effective induction of external electromagnetic fields.
[0066] In practical applications, the matching circuit can be located between the NFC controller and the first near-field antenna, or between the NFC controller and the second near-field antenna. Alternatively, a shared matching circuit can be used between the NFC controller and both the first and second near-field antennas. Another option is to set up a matching circuit between the NFC controller and the first near-field antenna for the first antenna's use, and a matching circuit between the NFC controller and the second near-field antenna for the second antenna's use. The number and connection positions of the matching circuits can be determined according to actual requirements.
[0067] For example, the matching circuit can employ a combination of precision ceramic capacitors and high-Q surface-mount inductors in a π-type or T-type topology, connected between the NFC controller output and the antenna feed point. During the design phase, the actual antenna reflection parameters can be measured using a vector network analyzer, and the capacitor and inductor values can be calculated and configured to achieve impedance conjugate matching of the circuit at a frequency of 13.56MHz. When the NFC controller transmits radio frequency signals, this network can filter out out-of-band spurious signals and directionally couple the driving power to the antenna, ensuring stable radiation at a preset frequency.
[0068] For example, the matching circuit can integrate components such as a voltage-controlled varactor diode array or a digitally programmable capacitor. During module initialization or environmental changes, the controller can dynamically adjust the varactor diode bias voltage or the capacitor array switching state by scanning the reflection coefficient or received signal strength indicators, thereby correcting the antenna resonant frequency in real time. This method enables the matching parameters to adaptively adjust according to operating conditions, ensuring that the antenna remains at the preset operating frequency.
[0069] An impedance matching architecture that configures a matching circuit between the NFC controller and the dual near-field antennas to guide the antennas to operate at a preset frequency can eliminate reflection loss and frequency offset distortion during radio frequency signal transmission, enabling the near-field communication module to communicate more stably.
[0070] As one implementation, matching circuits can be configured for the first near-field antenna and the second near-field antenna respectively. Optionally, in one or more embodiments of this specification, the matching circuit may include a first matching circuit and a second matching circuit; the first matching circuit is connected between the first transceiver port pair of the NFC controller and the first near-field antenna; the second matching circuit is connected between the second transceiver port pair of the NFC controller and the second near-field antenna.
[0071] The first matching circuit and the second matching circuit can represent impedance transformation and resonant tuning networks independently designed for the first near-field antenna and the second near-field antenna, respectively. Their electrical parameters can differ, and they are used to match the corresponding antennas. The specific electrical parameters of the first near-field antenna, the second near-field antenna, the first matching circuit, and the second matching circuit can be set according to actual needs.
[0072] The first transceiver port pair and the second transceiver port pair can represent two independent radio frequency channels brought out from the internal or external package of the NFC controller. Each pair can include a transmit driver end and a receive demodulation end (or differential positive and negative ends), which can be used to carry the signal transmission and reception tasks of different near-field antennas.
[0073] Figure 2 This is a schematic diagram of the structure of a multifunctional near-field communication module provided in one embodiment of this specification. Figure 2As shown, the receiver RX1 and transmitter TX1 of the first transceiver port pair of the NFC controller NFCC can be connected to one side of the first matching circuit 202. The other side of the first matching circuit 202 is connected to one end of the first near-field antenna 104, and the other end of the first near-field antenna can be grounded. Here, inductor La1, capacitor Ca1, and resistor Ra1 are used to represent the first near-field antenna. One end of the first matching circuit 202 can also be connected to the ground terminal GND of the NFC controller. In practical applications, the first matching circuit can include components such as capacitors, inductors, and resistors. The specific network topology can be set according to requirements. Here, resistor Rrx1, capacitor Crx1, inductor L01, capacitor C01, capacitor C11, capacitor C21, and their connection relationships are used to represent the first matching circuit 202.
[0074] Similarly, the receiver RX2 and transmitter TX2 in the second transceiver port pair of the NFC controller can be connected to one side of the second matching circuit 204, and the other side of the first matching circuit 204 can be connected to one end of the second near-field antenna 106. The other end of the second near-field antenna can be grounded. Here, inductor La2, capacitor Ca2, and resistor Ra2 are used to represent the second near-field antenna. One end of the second matching circuit 204 can also be connected to the ground terminal GND of the NFC controller. In practical applications, the second matching circuit can include components such as capacitors, inductors, and resistors. The specific network topology can be set according to requirements. Here, resistor Rrx2, capacitor Crx2, inductor L02, capacitor C02, capacitor C12, capacitor C22, and their connection relationships are used to represent the second matching circuit 202. In this illustration, the first near-field antenna and the second near-field antenna can represent single-ended antennas, without the need for additional analog switches and GPIO pin control. One function can use one TX output terminal and one RX input terminal.
[0075] It is understandable that the above Figure 2 The first and second matching circuits shown are only schematic diagrams. In actual applications, they can be set according to actual needs, and no specific limitations are made here.
[0076] The NFC controller can control the opening and closing of the first and second transceiver port pairs through internal logic to achieve time-division switching of operating modes. In practical applications, switching devices can also be set up. For example, a switching device can be set between the first matching circuit and the first near-field antenna, and another switching device can be set between the second matching circuit and the second near-field antenna. The on and off states of the switching devices can be controlled by the NFC controller. By controlling the on and off states of the switching devices, the time-division switching of operating modes can be achieved, and the two near-field antennas can work in different time periods. The first near-field antenna and the second near-field antenna can each be a single antenna, or at least one of them can be multiple antennas. The specific form of the first near-field antenna and the second near-field antenna is not limited here.
[0077] Based on some embodiments of this specification, by employing an isolated architecture that configures sub-matching circuits for the dual near-field antennas and maps them to dedicated transceiver port pairs, the RF tuning references for card reading and tag services can be physically and electrically decoupled, thereby eliminating parameter reconstruction delays and path crosstalk risks during mode switching. Furthermore, the NFC controller, through time-division control logic, ensures that the modules maintain their respective preset resonant characteristics and transmission efficiency when alternating between dual modes, which also improves the signal integrity and hardware scheduling flexibility of the dual-antenna system.
[0078] To optimize module hardware resource allocation and reduce the layout complexity of the dual-antenna architecture, the first near-field antenna and the second near-field antenna can share a matching circuit. Optionally, the near-field communication module in one or more embodiments of the specification may further include a switching module; the matching circuit includes a shared matching circuit; one side of the shared matching circuit is connected to the transceiver port of the NFC controller; the other side of the shared matching circuit is connected to the common terminal of the switching module; the first switching terminal of the switching module is connected to the first near-field antenna; the second switching terminal of the switching module is connected to the second near-field antenna; the control terminal of the switching module is connected to the NFC controller, and the NFC controller controls the switching states of the first switching terminal and the second switching terminal in a time-division multiplexing manner.
[0079] The switch module can represent an electronic switch unit used to change the transmission path of radio frequency signals. It can include a common terminal and at least two gating branches. The switch module can also include multiple sub-switches. One sub-switch controls the on or off state of a near-field antenna, matching circuit, and NFC controller.
[0080] A shared matching circuit can represent an impedance transformation network that can be reused for both the first and second near-field antennas. Its component parameters can be adapted to the combined electrical characteristics of the two antennas. To improve communication stability, the electrical parameters of the first and second near-field antennas can be identical.
[0081] The common terminal can be the RF signal input or output node of the switching module and can be connected to the common matching circuit; the first switching terminal and the second switching terminal can be optional path branches and can be connected to the feed networks of the first near-field antenna and the second near-field antenna respectively, and are not connected to each other on the physical routing.
[0082] The NFC controller can output level signals or digital commands to the control terminal of the switch module according to preset timing rules, so that its internal contacts or semiconductor channels alternately switch between conduction and deactivation, thereby realizing the directional routing of the radio frequency path between the first near-field antenna and the second near-field antenna.
[0083] For example, the switching module may include a single-pole double-throw (SPDT) radio frequency switch. For instance, the switching module may employ a SPDT chip with integrated GaAs or SOI technology, whose common pin can be connected to the output node of a common matching circuit. The first and second switching terminals are connected to the first and second near-field antennas respectively via microstrip lines. The NFC controller's general-purpose input / output pins output control voltage to the control port of the switching chip, and the corresponding switching terminal is activated by level switching to achieve path switching.
[0084] For example, the switching module may include a MOSFET pair gating network. For instance, the switching module may include two N-channel enhancement-mode MOSFETs connected back-to-back in series to form a gating branch. The drains of the MOSFETs are respectively connected to the first near-field antenna and the second near-field antenna, while the sources are connected to a common matching circuit. The NFC controller controls the gates through two independent logic level signals, utilizing the on-resistance of the MOSFETs to present a low-loss path, and using the cutoff characteristics in the off-state to achieve channel isolation, thus completing the directional transmission of radio frequency energy.
[0085] The transceiver port of an NFC controller can represent a physical pin group or electrical interface on the control chip used for radio frequency signal transmission and reception, and may include differential drive terminals and demodulation input terminals (or multiplexed into a bidirectional radio frequency channel). This transceiver port can serve as an electrical junction node between the NFC controller and the matching circuit and switching module.
[0086] By using a shared matching circuit combined with a switching module for dynamic routing of the RF path, the impedance matching resources of the dual antennas can be spatially reused and allocated on demand. This reduces the number of matching components and PCB wiring area, solving the problems of hardware redundancy and layout constraints in multi-antenna systems.
[0087] In practical applications, an NFC controller can have one or more transceiver ports. A shared matching circuit can be connected to one set of transceiver ports of the NFC controller, or, to improve communication stability, the shared matching circuit can be connected to two or more sets of transceiver ports of the NFC controller. Optionally, one side of the shared matching circuit is connected to two sets of transceiver ports of the NFC controller; the first switch terminal of the switch module is connected to one end of the first near-field antenna; the other end of the first near-field antenna is connected to the third switch terminal of the switch module; the first switch terminal and the third switch terminal have the same switching state; the second switch terminal of the switch module is connected to one end of the second near-field antenna; the other end of the second near-field antenna is connected to the fourth switch terminal of the switch module; the second switch terminal and the fourth switch terminal have the same state.
[0088] Two sets of transceiver ports can represent two independent radio frequency channels provided by the NFC controller, which can be used to carry differential transmit signals and balanced receive signals, and have electrical characteristics such as phase symmetry and amplitude matching.
[0089] The first to fourth switches can represent the four selection nodes set in the switching module. Among them, the first and third switches form a set of synchronous selection branches, and the second and fourth switches form another set of synchronous selection branches, corresponding to the two conductors of the dual-antenna loop respectively.
[0090] Consistent switching states indicate that both sets of switches are simultaneously turned on or off under the control signal. The timing of the action is synchronized with the level transition, ensuring that the conductors at both ends of the antenna are connected to or disconnected from the shared matching circuit at the same time, thus avoiding impedance changes caused by single-ended switching.
[0091] The switch module may contain one or more sub-switches. The first to fourth switch terminals mentioned above may be four switch terminals on one switch or switch terminals on multiple switches.
[0092] For example, the switching module may include two parameter-matched single-pole double-throw (SPDT) RF switches. The common terminal of the first switch is connected to the first differential node of the shared matching circuit, and its two throw terminals are respectively connected to one end of the first near-field antenna and one end of the second near-field antenna. The common terminal of the second switch is connected to the second differential node of the shared matching circuit, and its two throw terminals are respectively connected to the other ends of the first and second near-field antennas. The control pins of the two switches are connected in parallel to the GPIO output of the NFC controller to receive a synchronization level signal, ensuring that the two conductors complete the path switching at the same time and maintaining the electrical symmetry of the differential RF loop.
[0093] For example, the switch module can contain two parameter-matched bidirectional analog switches. Each switch is responsible for one conductor path in the antenna loop, and its control pin is connected in parallel to the GPIO output of the NFC controller. When the control signal changes, the on-resistance of the two switches changes synchronously, ensuring that the two ends of the antenna are synchronously connected or disconnected from the shared matching circuit within microseconds, maintaining the phase consistency of the differential signal.
[0094] By connecting two sets of transceiver ports to a shared matching circuit and using a four-terminal synchronous switch for differential routing, the differential effect of the signal can be improved, power transmission can be guaranteed, and communication stability can be enhanced.
[0095] Figure 3 This is a schematic diagram of the structure of a multifunctional near-field communication module provided in one embodiment of this specification. Figure 3As shown, a shared matching circuit 302 and a switching module 304 can be configured between the NFC controller NFCC and the two near-field antennas. One side of the shared matching circuit 302 is connected to two sets of transceiver ports in the NFC controller, namely RX1, TX1 and RX2, TX2 ports. The other side of the shared matching circuit 302 is connected to the switching module 304, and the common terminals a1 and a2 of the switching module 304 can be connected to the shared matching circuit 302 respectively. The switching module 304 can include two switching elements SW1 and SW2. The first switching terminal b1 of the switching module 304 is connected to one end of the first near-field antenna 104, and the other end of the first near-field antenna 104 is connected to the third switching terminal b2 of the switching module. The second switching terminal c2 of the switching module is connected to one end of the second near-field antenna 106; the other end of the second near-field antenna 106 is connected to the fourth switching terminal c1 of the switching module. The states of the first switch terminal b1 and the third switch terminal b2 are synchronized, such as being closed or open simultaneously; the states of the second switch terminal c2 and the fourth switch terminal c1 are synchronized, such as being closed or open simultaneously. The control terminal of the switch module 304 can be connected to the GPIO terminal of the NFC controller, and the NFC controller can control the switching state of the switch module 304. Here, the common matching circuit is illustrated by using components such as resistor Rrx, capacitor Crx, inductor L0, capacitor C0, capacitor C1, and capacitor C2 and their connection relationships. The first near-field antenna is illustrated by using inductor La1, capacitor Ca1, and resistor Ra1, and the second near-field antenna is illustrated by using inductor La2, capacitor Ca2, and resistor Ra2. Figure 3 As shown, the two antennas can share more matching devices. The switch module is controlled by the GPIO of the NFC controller NFCC. For example, when the GPIO output signal is high, a1 is connected to b1 and a2 to b2 respectively. At this time, NFCC is connected to the first near-field antenna to transmit and receive signals from the first near-field antenna, realizing the card reader function of the first near-field antenna. When the GPIO output signal is low, a1 is connected to c1 and a2 to c2 respectively. At this time, NFCC is connected to the second near-field antenna to transmit and receive signals from the second near-field antenna, realizing the tag function of the second near-field antenna. Since most of the matching is shared, the parameters of the two antennas should be as similar as possible to ensure that the impedance of the two TX terminals of NFCC is the same pure resistance regardless of which antenna NFCC is connected to through the switch, thus ensuring communication stability.
[0096] In practical applications, to ensure flexible adaptation of the near-field communication module in various environments or business scenarios, the parameters of the first near-field antenna and the second near-field antenna can be different. The first and second near-field antennas can share a portion of the matching circuit, or they can each have their own corresponding matching circuit, or one of the near-field antennas may have its own corresponding matching circuit. In one embodiment of this specification, the matching circuit in the near-field communication module, in addition to the shared matching circuit, may also include a first sub-matching circuit; the first sub-matching circuit is connected between the switching module and the first near-field antenna; and / or, the matching circuit may further include a second sub-matching circuit; the second sub-matching circuit is connected between the switching module and the second near-field antenna.
[0097] The first and second sub-matching circuits can serve as impedance transformation networks for lower-level branches of a common matching circuit, and can be used for the first or second near-field antenna, respectively. The first and second sub-matching circuits are located on the RF signal transmission path between the gating output of the switching module and the feed network of the corresponding near-field antenna.
[0098] In practical applications, the near-field communication module can be configured with only the first sub-matching circuit, only the second sub-matching circuit, or both, to adapt to the tuning requirements of different antenna combinations.
[0099] By adding a sub-matching circuit between the switching module and the antenna, the basic impedance conversion and the end resonance compensation can be decoupled in stages. This eliminates the performance bottleneck of the shared matching circuit, which is difficult to take into account the individual differences of the two antennas. It also solves the problem of signal attenuation and sensitivity reduction in a certain branch caused by single-stage matching. This allows the module to maintain the excellent impedance state of its respective branch when operating in dual modes alternately, thus improving the adaptability of near-field communication.
[0100] Figure 4 This is a schematic diagram of the structure of a multifunctional near-field communication module provided in one embodiment of this specification. Figure 4As shown, in this near-field communication module, the NFC controller can be connected to one side of the shared matching circuit 402. Specifically, one side of the shared matching circuit 402 can be connected to two sets of transceiver terminals of the NFC controller, namely RX1, TX1 and RX2, TX2 ports respectively. The other side of the shared matching circuit 402 is connected to the switch module 304, and the common terminals a1 and a2 of the switch module 304 can be connected to the shared matching circuit 402 respectively. The switch module 304 may include switch elements SW1 and SW2. The first switch terminal b1 and the third switch terminal b2 of the switch module 304 are respectively connected to one side of the first sub-matching circuit 406, and the other side of the first sub-matching circuit 406 is connected to the first near-field antenna 104. The second switch terminal c2 and the fourth switch terminal c1 of the switch module 304 are respectively connected to one side of the second sub-matching circuit 408, and the other side of the first sub-matching circuit 408 is connected to the second near-field antenna 106. The states of the first switch terminal b1 and the third switch terminal b2 are synchronized, such as being closed or open simultaneously; the states of the second switch terminal c2 and the fourth switch terminal c1 are synchronized, such as being closed or open simultaneously. The control terminal of the switch module 304 can be connected to the GPIO terminal of the NFC controller, and the NFC controller can control the switching state of the switch module 304. Here, the common matching circuit is illustrated by using components such as resistor Rrx, capacitor Crx, inductor L0, and capacitor C0 and their connection relationships; the first sub-matching circuit is illustrated by using capacitors C11 and C21; the first sub-matching circuit is illustrated by using capacitors C12 and C22; the first near-field antenna is illustrated by using inductor La1, capacitor Ca1, and resistor Ra1; and the second near-field antenna is illustrated by using inductor La2, capacitor Ca2, and resistor Ra2. In practical applications, the common matching circuit, the first sub-matching circuit, and the second sub-matching circuit can include at least one of the following: capacitor, inductor, and resistor. The specific circuit configuration can be set according to actual needs.
[0101] like Figure 4As shown, the two antennas can share L0, C0, Rrx, and Crx as part of their matching. For both antennas, the NFCC transmits and receives in a differential manner, resulting in relatively large signal amplitudes. Antenna 1 also has its own matching C11 and C21, and antenna 2 has its own matching C12 and C22. The common matching and individual matching are connected through two analog switches, which are controlled by the NFCC's GPIO. For example, when the GPIO output signal is high, a1 is connected to b1, and a2 is connected to b2 respectively. At this time, the NFCC is connected to the first near-field antenna, transmitting and receiving signals from the first near-field antenna, realizing the reader function of the first near-field antenna. When the GPIO output signal is low, a1 is connected to c1, and a2 is connected to c2 respectively. At this time, the NFCC is connected to the second near-field antenna, transmitting and receiving signals from the second near-field antenna, realizing the tag function of the second near-field antenna. The NFCC can control the switches in different modes through internal logic and GPIO time-division multiplexing. For example, the two analog switches can be SPDT switches, or other switches that can achieve similar functions can be selected. When the two switches each turn on the NFCC to one of the antennas, proper matching can ensure that the impedance of both TX terminals of the NFCC is purely resistive, thus guaranteeing power transmission. This embodiment does not have high requirements for the parameters of the two antennas; the parameters of the two antennas can be different. Compared to... Figure 2 In this embodiment, a larger transmit and receive signal can be obtained.
[0102] In practical applications, for scenarios with low signal requirements, the first and second near-field antennas can share a common transceiver port. A switching module can control the connection between the first or second near-field antenna and the transceiver port. The near-field communication module can also include a shared matching circuit and separate matching circuits for the first and second near-field antennas. For example, as described above... Figure 4 The shared matching circuit may not include the L0, C0, Rrx, and Crx circuits connected to the TX1 and RX2 transceiver ports. The first and second sub-matching circuits can be single-ended matching circuits. For example, the end connected to switch b2 and the end connected to switch c1 can be grounded. The NFC controller can switch which antenna is connected to the NFC controller by controlling the switch module.
[0103] To improve communication stability, an NFC controller with multiple transceiver ports can be used. When the first and second near-field antennas have their own matching circuits, a switching module can control the conduction of the two antennas, allowing them to use multiple sets of transceiver ports during operation. This increases signal differential and improves communication stability. Optionally, the near-field communication module further includes a switching module; the matching circuit includes a first matching circuit and a second matching circuit; the NFC controller includes a first transceiver port pair and a second transceiver port pair; the switching module includes four switching units; the control terminals of the four switching units are respectively connected to the NFC controller; wherein, the common terminal of the first switching unit is connected to the first receiving terminal of the first transceiver port pair, the common terminal of the second switching unit is connected to the first transmitting terminal of the first transceiver port pair, the common terminal of the third switching unit is connected to the second transmitting terminal of the second transceiver port pair, and the common terminal of the fourth switching unit is connected to the second receiving terminal of the second transceiver port pair.
[0104] The first switch terminal of the first switch unit and the first switch terminal of the second switch unit are connected to the first input terminal of the first matching circuit; the first switch terminal of the third switch unit and the first switch terminal of the fourth switch unit are connected to the second input terminal of the first matching circuit; the output terminal of the first matching circuit is connected to the first near-field antenna. The second switch terminals of the first switch unit and the second switch terminal of the second switch unit are connected to the first input terminal of the second matching circuit; the second switch terminals of the third switch unit and the fourth switch unit are connected to the second input terminal of the second matching circuit; the output terminal of the second matching circuit is connected to the second near-field antenna. The states of each first switch terminal in the four switch units are synchronized; the states of each second switch terminal in the four switch units are synchronized.
[0105] A switching unit can represent a controller for selecting radio frequency signal paths. It can include a common terminal and at least two selectable terminals. It can be an SPDT switch or other switches that can achieve similar functions.
[0106] The first transceiver port pair and the first and second receiving and transmitting ends of the second transceiver port pair can represent two independent radio frequency channels divided inside the NFC controller. Each group can include independent transmit drive pins and receive demodulation pins for carrying radio frequency power transmission and reception for half-duplex or quasi-full-duplex near-field communication.
[0107] The input and output terminals of the first and second matching circuits can represent the RF signal access node and antenna feed node of the matching circuit. The input terminal can be used to receive RF energy from the switching unit and perform impedance transformation, while the output terminal can couple the optimized signal to the corresponding near-field antenna to form a complete end-radiation or receiving loop.
[0108] State synchronization means that under the action of the control signal, the corresponding first or second switch terminal of the four switching units completes the conduction or cutoff action within the same timing window, ensuring that the switching time of the multiple RF paths is aligned and avoiding transient open circuits, short circuits or phase misalignments in the path.
[0109] For example, the switch module may include four single-pole double-throw RF switches with identical parameters. The common terminal of each switch is connected to the RX1, TX1, TX2, and RX2 pins, respectively. The control pins of the four switches are connected in parallel to the same synchronous control bus of the NFC controller to receive unified level commands. When the command changes, the four switches toggle synchronously, either connecting all first switch terminals to the first matching circuit or connecting all second switch terminals to the second matching circuit.
[0110] For example, the switching module can employ an integrated RF IC with built-in four-channel synchronization logic. Internally, the common terminal is hard-connected to the port-to-pin configuration, and the internal state machine is triggered by a single control pin or digital command. This chip can be pre-calibrated for insertion loss and phase delay in each channel, ensuring amplitude and phase consistency of the four signals during microsecond-level switching. This simplifies external wiring and reduces the impact of parasitic parameters on synchronization accuracy.
[0111] A four-switch unit matrix combined with synchronous control logic enables full-path routing across dual transmit and receive ports. This strictly binds the selection states of the transmit and receive links, eliminating phase shift and common-mode interference caused by asymmetric switching, and resolving signal distortion and protocol handshake failure issues caused by partial routing. This matrix mechanism, along with dual independent matching circuits and time-division switching logic, forms a collaborative network in the RF front end, ensuring that the module maintains amplitude and phase consistency across multiple channels when alternating between dual modes. This improves near-field communication link stability, electromagnetic compatibility, and the success rate of interactions in complex transaction scenarios.
[0112] Figure 5 This is a schematic diagram of the structure of a multifunctional near-field communication module provided in one embodiment of this specification. Figure 5As shown, the near-field communication module may include an NFC controller (NFCC), a switch module 304, a first near-field antenna 104, a second near-field antenna 106, a first matching circuit 502 matched with the first near-field antenna, and a second matching circuit 504 matched with the second near-field antenna. The switch module may include four switches, each located at one of the two transceiver port pairs of the NFC controller. Specifically, the common terminal a1 of the first switch unit SW1 is connected to the first receiving terminal RX1 of the first transceiver port pair; the common terminal a2 of the second switch unit SW2 is connected to the first transmitting terminal TX1 of the first transceiver port pair; the common terminal a3 of the third switch unit SW3 is connected to the second transmitting terminal TX2 of the second transceiver port pair; and the common terminal a4 of the fourth switch unit SW4 is connected to the second receiving terminal RX2 of the second transceiver port pair.
[0113] Considering that resistors and capacitors are mainly used for receiving and their impact on matching is not significant, they can be shared. For example... Figure 5 As shown, resistors and capacitors can be placed between the receiver and the switching unit, which reduces the number of components, thus lowering costs and enabling integrated layout. Alternatively, these components can be placed between the switching element and the near-field antenna, with the common terminal of the switching element directly connected to the receiver of the NFC controller. No specific limitations are specified here.
[0114] The first switching terminal of each of the four switching elements can be connected to the output terminals of two matching circuits, and the output terminals of the two matching circuits can be connected to two near-field antennas. For example... Figure 5 As shown, the first switch terminal b1 of the first switching unit SW1 and the first switch terminal b2 of the second switching unit SW2 are connected to the first input terminal of the first matching circuit 502. Specifically, as... Figure 5 As shown, switch terminal b1 can be connected to terminal M1 of the first matching circuit 502, and switch terminal b2 can be connected to the second terminal M2 of the first matching circuit 502. The first terminal M1 and terminal M2 can be the same terminal, or the terminal M1 and terminal M2 can be different terminals. For example, an electrical component, such as an inductor, can be connected between them, which can be set according to actual needs.
[0115] The first switch terminal b3 of the third switching unit SW3 and the first switch terminal b4 of the fourth switching unit SW4 are connected to the second input terminal of the first matching circuit. Specifically, as shown... Figure 5 As shown, switch terminal b3 can be connected to terminal M3 of the first matching circuit 502, and switch terminal b4 can be connected to terminal M4 of the first matching circuit 502. Terminal M3 and terminal M4 can be the same terminal, or they can be different terminals. For example, an electrical component, such as an inductor, can be connected between them, which can be set according to actual needs.
[0116] The output of the first matching circuit 502 is connected to the first near-field antenna 104. For example... Figure 5 As shown, the first matching circuit is represented by inductor L01, capacitor C01, capacitor C11 and capacitor C21, and the first near-field antenna is represented by inductor La1, capacitor Ca1 and resistor Ra1.
[0117] like Figure 5 As shown, the second switch terminal c1 of the first switching unit SW1 and the second switch terminal c2 of the second switching unit SW2 are connected to the first input terminal of the second matching circuit 504. Specifically, as shown... Figure 5 As shown, switch terminal c1 can be connected to terminal M5 of the second matching circuit 504, and switch terminal c2 can be connected to terminal M6 of the second matching circuit 504. Terminals M5 and M6 can be the same terminal, or they can be different terminals. For example, an electrical component, such as an inductor, can be connected between them, which can be set according to actual needs.
[0118] The second switch terminal C3 of the third switching unit SW3 and the second switch terminal C4 of the fourth switching unit SW4 can be connected to the second input terminal of the second matching circuit 504. Specifically, as shown below... Figure 5 As shown, switch terminal C3 can be connected to terminal M7 of the second matching circuit 504, and switch terminal C4 can be connected to terminal M8 of the second matching circuit 504. Terminals M7 and M8 can be the same terminal, or they can be different terminals. For example, an electrical component, such as an inductor, can be connected between them, which can be set according to actual needs.
[0119] The output of the second matching circuit 504 is connected to the second near-field antenna 106. For example... Figure 5 As shown, the second matching circuit is represented by inductor L02, capacitor C02, capacitor C12 and capacitor C22, and the second near-field antenna is represented by inductor La2, capacitor Ca2 and resistor Ra2.
[0120] The GPIO pins of the NFC controller are connected to the control pins of four switching units, enabling control over the states of these units and synchronizing the states of the first and second switches within each unit. For example... Figure 5As shown, the four switching units are controlled by the GPIO of the NFCC. For example, when the GPIO is high, a1 is connected to b1, a2 to b2, a3 to b3, and a4 to b4 respectively. At this time, the NFCC is connected to the first near-field antenna, transmitting and receiving signals from the first near-field antenna to realize the card reading function of the first near-field antenna. When the GPIO output signal is low, a1 is connected to c1, a2 to c2, a3 to c3, and a4 to c4 respectively. At this time, the NFCC is connected to the second near-field antenna, transmitting and receiving signals from the second near-field antenna to realize the tag function of the second near-field antenna. The NFCC can control the switching of the card reading function and the tag function through internal logic and GPIO time-division multiplexing. This embodiment does not have high requirements for the parameters of the two antennas; the parameters of the two antennas can be different, and the matching of the two antennas can be adjusted more freely.
[0121] To enhance the data security level of the near-field communication module in multi-mode interaction and meet industry compliance requirements, the embedded security unit in the near-field communication module may optionally be configured to: perform financial transaction security authentication and key management, and / or provide independent secure data storage space.
[0122] An embedded security element (eSE) can refer to a security hardware module integrated inside a near-field communication module, which has physical tamper-proof and logical isolation features. It can contain an independent security processor, a cryptographic coprocessor, and a protected storage area, which is different from the pure software security algorithm running in the main control chip.
[0123] Financial transaction security authentication and key management can refer to the two-way identity verification, dynamic session key generation, encryption algorithm operation (such as AES / ECC / RSA / Chinese national cryptographic algorithm) and key lifecycle management performed by eSE, which are used to ensure the confidentiality and integrity of payment, settlement or authorization data.
[0124] Independent secure data storage space can be defined as a non-volatile storage area that is physically isolated from the external host environment by eSE. It is used to store information such as device certificates, identity tokens, sensitive configuration parameters or biometric templates, and has hardware access control and anti-extraction mechanisms.
[0125] In one implementation, the embedded security unit can perform financial transaction security authentication and key management in reader mode, and provide independent secure data storage space in tag mode. Alternatively, in practical applications, the security unit can have secure data storage space, financial transaction security authentication, and key management functions in both reader and tag modes. Specific functions can be configured according to actual needs.
[0126] For example, the eSE can have a built-in independent algorithm acceleration engine and secure non-volatile memory. In reader mode, the NFC controller transmits the received transaction information to the eSE, where the coprocessor performs certificate verification, dynamic key derivation, and data encryption / decryption, and returns the results to the controller for further processing. In tag mode, the eSE enables hardware access control lists (ACLs), allowing only external devices that have passed specific response verification to read designated secure partitions, thus achieving isolated data storage.
[0127] For example, the eSE can run management firmware compliant with secure operating system specifications, using memory virtualization technology to divide the environment into multiple independent execution environments. The reader operating mode triggers the loading of the financial domain, allocating a dedicated keystore and computing resources; the tag operating mode triggers the activation of the identity domain, providing a protected token storage area. The two domains are isolated from the memory bus at the hardware level, ensuring that security states are not cross-leaked during mode switching.
[0128] By employing an embedded security unit to configure financial authentication management and independent secure storage functions, sensitive business logic and key operations can be migrated from an open control environment to physically tamper-proof hardware, thereby eliminating the risks of software-layer key exposure and transaction data tampering. Furthermore, this security mechanism, along with time-sharing and partitioning control, ensures hardware-level data isolation and encryption protection when the module alternates between card reading and tag modes, enhancing the near-field communication module's financial compliance capabilities, attack robustness, and security for multi-scenario business operations.
[0129] To achieve more accurate blind scanning and blind touching, considering that two near-field antennas adjacent to each other in the same device may interfere with each other, or that an external device interacting with any of the near-field antennas in the near-field communication module may affect the other near-field antenna, leading to communication abnormalities, etc., in one or more embodiments of this specification, the first near-field antenna and the second near-field antenna can be physically partitioned on the device panel of the near-field communication module.
[0130] The device panel can represent the outer shell surface, substrate carrier, or user interface of a device with a near-field communication module, and can be the physical contact area where a user holds the device close to or places a tag / reader.
[0131] Physical partitioning layout can indicate that the first near-field antenna and the second near-field antenna are clearly divided into different functional areas in space. The two can be physically separated by a preset spacing, isolation strip, shielding structure, or dielectric layer to avoid overlap or close contact of coils or radiating elements in geometric projection. For example, the first near-field antenna can be on the left side of the device, and the second near-field antenna can be on the right side of the device. The distance between the two can be greater than or equal to 5 cm, or the distance between the center of the fields generated by the two can be greater than or equal to 15 cm, and so on.
[0132] The first and second near-field antennas are physically partitioned on the device panel, which physically severs the near-field magnetic coupling path between the two antennas, eliminating resonant frequency offsets caused by mutual interference and ensuring communication quality. Furthermore, this partitioning mechanism and time-division switching logic form a spatial-temporal cooperative network at the system level, enabling the module to maintain a clean electromagnetic field when alternating between dual modes, improving the signal purity, interaction accuracy, and multi-service parallel carrying capacity of near-field communication.
[0133] Based on the same approach, this specification also provides a control method for near-field communication corresponding to the aforementioned near-field communication module in its embodiments. This method can be applied to the aforementioned near-field communication module. Figure 6 This is a flowchart illustrating a near-field communication control method provided in one embodiment of this specification.
[0134] From a programming perspective, the entity executing the process can be a program embedded in the near-field communication module. For example... Figure 6 As shown, the process may include the following steps: Step 602: Switch the operating mode in a time-division manner according to the transmission cycle of the radio frequency signal; Step 604: When the time period for transmitting the field signal arrives, switch to the card reader working mode and transmit the field signal outward through the first near-field antenna; Step 606: When the interval period during which no field signal is transmitted is reached, switch to tag working mode and sense external radio frequency signals through the second near-field antenna.
[0135] The transmission cycle of the radio frequency signal can represent the time window during which the NFC controller completes one full field signal transmission and silent waiting during operation. It can be determined by factors such as the carrier activation duration and the response waiting window specified in the protocol.
[0136] The time-sharing switching working mode means that the controller divides a single operating cycle into non-overlapping functional intervals according to the time axis, and dynamically allocates the control logic of the card reader or tag in each interval, avoiding resource conflicts caused by the simultaneous activation of dual modes.
[0137] The time period of the transmitted signal can correspond to the effective radiation period of continuous carrier output and active establishment of the electromagnetic field, such as the pulse duration. The interval period can correspond to the silent period when the carrier is off or in a low field strength state. The NFC controller can change the hardware state from transmit drive to receive demodulation by modifying the internal register configuration or rerouting the RF front-end path, so that the corresponding antenna is in working state.
[0138] For example, the NFC controller can have a built-in high-precision timer whose clock source is synchronized with the RF carrier generator. The controller presets a transmission duration threshold and an interval duration threshold. When the timer count reaches the transmission time interval, it triggers an interrupt to enable the first near-field antenna drive circuit; when the count reaches the interval time interval, the timer outputs a switching signal, shutting down the transmission path and turning on the second near-field antenna receiving front end, completing the mode switch.
[0139] For example, the near-field communication protocol stack can maintain a periodically running state machine. After completing a reader polling frame or data transmission, the state machine automatically enters a "listening and waiting state" (i.e., an interval period), at which time it sends a mode switching command to the underlying hardware to activate the external field sensing logic of the second near-field antenna. After the preset listening window ends or a valid external signal is captured, the state machine automatically resets to the reader transmit state, preparing for the next cycle of scheduling.
[0140] In practical applications, time-division switching can be paused and the current state maintained after either near-field antenna senses an external signal or establishes communication, thus completing the communication. Optionally, the method in one or more embodiments of this specification may further include: during the reader's operating mode, if a tag body is detected by the first near-field antenna, time-division switching is paused, and the reader's operating mode is maintained until communication ends; and / or, during the tag's operating mode, if a valid detection signal from an external reader device is captured by the second near-field antenna, time-division switching is paused, and the tag's operating mode is maintained until communication ends.
[0141] During session lockout, the near-field communication module can continuously occupy the current RF path and protocol stack resources to complete data frame transmission and reception, encryption verification, or status confirmation, until it receives a protocol layer disconnect command, reaches a timeout threshold, or a data transmission completion flag, at which point the lockout is released and time-sharing scheduling resumes. This avoids frame loss or verification errors caused by forced polling, ensuring smooth processing of near-field communication services.
[0142] The technical solution of the control method for near-field communication is based on the same concept as the technical solution of the near-field communication module described above. For details not described in detail in this solution, please refer to the description of the technical solution of the near-field communication module described above.
[0143] While one or more embodiments of this specification provide method steps as described in the embodiments or flowcharts, it is understood that the order of steps listed in the embodiments or flowcharts is merely one possible execution order among many steps and does not represent the only possible execution order. The order of some steps may be adjusted according to actual needs, or some steps may be omitted. When the claims involve method steps, changes in the order of such steps, or parallel execution between steps, are also within the scope of protection of the claims.
[0144] Based on the same idea, embodiments of this specification also provide a near-field communication device, which may include the above-mentioned near-field communication module, or may execute the above-mentioned near-field communication control method.
[0145] Near-field communication devices can be terminal products, industrial devices, or IoT nodes with near-field communication modules. They can have independent power supply, human-machine interface, and upper-layer business processing capabilities. They can transform the dual-mode radio frequency characteristics of the module into specific user services, identity authentication, or operation and maintenance management functions.
[0146] For example, near-field communication (NFC) devices can be used as financial payment terminals, such as POS machines, self-service cash registers, and QR code payment boxes. They can also be used in intelligent access control and attendance systems, such as building turnstiles, office access control panels, and factory attendance machines. Furthermore, NFC devices can be used in vehicle-mounted interaction and control devices, such as smart cockpit central control screens, in-vehicle T-BOXs, and keyless entry modules. Additionally, NFC devices can be used as industrial handheld terminals (PDAs), such as warehouse inventory scanners, logistics scanning terminals, and inspection terminals. They can also be used as smart home central control and appliance panels, such as touch panels for smart refrigerators, air conditioners, and washing machines. Furthermore, NFC devices can be used as IoT gateways and edge computing nodes, such as smart park gateways and agricultural greenhouse controllers. Finally, NFC devices can be used as wearable and health monitoring devices, such as smartwatches, medical bracelets, and electronic badges.
[0147] The various embodiments in this specification are described in a progressive manner, and the same or similar parts between the various embodiments can be referred to each other.
[0148] The foregoing has described specific embodiments of this specification. Other embodiments are within the scope of the appended claims. In some cases, the actions or steps recited in the claims may be performed in a different order than that shown in the embodiments and may still achieve the desired result. Furthermore, the processes depicted in the drawings do not necessarily require a specific or sequential order to achieve the desired result. In some embodiments, multitasking and parallel processing are possible or may be advantageous.
[0149] In the 1990s, improvements to a technology could be clearly distinguished as either hardware improvements (e.g., improvements to the circuit structure of diodes, transistors, switches, etc.) or software improvements (improvements to methodology). However, with technological advancements, many methodological improvements today can be considered direct improvements to hardware circuit structures. Designers almost always obtain the corresponding hardware circuit structure by programming the improved methodology into the hardware circuit. Therefore, it cannot be said that a methodological improvement cannot be implemented using hardware physical modules. For example, a Programmable Logic Device (PLD) (such as a Field Programmable Gate Array (FPGA)) is such an integrated circuit whose logic function is determined by the user programming the device. Designers can program a digital system themselves to "integrate" it onto a PLD, without needing chip manufacturers to design and manufacture dedicated integrated circuit chips. Furthermore, nowadays, instead of manually manufacturing integrated circuit chips, this programming is mostly implemented using "logic compiler" software. Similar to the software compiler used in program development, the original code before compilation must also be written in a specific programming language, called a Hardware Description Language (HDL). There are many HDLs, such as ABEL (Advanced Boolean Expression Language), AHDL (Altera Hardware Description Language), Confluence, CUPL (Cornell University Programming Language), HDCal, JHDL (Java Hardware Description Language), Lava, Lola, MyHDL, PALASM, and RHDL (Ruby Hardware Description Language). Currently, the most commonly used are VHDL (Very-High-Speed Integrated Circuit Hardware Description Language) and Verilog. Those skilled in the art should also understand that by simply performing some logic programming on the method flow using one of these hardware description languages and programming it into an integrated circuit, the hardware circuit implementing the logical method flow can be easily obtained.
[0150] The controller can be implemented in any suitable manner. For example, it can take the form of a microprocessor or processor and a computer-readable medium storing computer-readable program code (e.g., software or firmware) executable by the (micro)processor, logic gates, switches, application-specific integrated circuits (ASICs), programmable logic controllers, and embedded microcontrollers. Examples of controllers include, but are not limited to, the following microcontrollers: ARC 625D, Atmel AT91SAM, Microchip PIC18F26K20, and Silicon Labs C8051F320. A memory controller can also be implemented as part of the control logic of the memory. Those skilled in the art will also recognize that, in addition to implementing the controller in purely computer-readable program code form, the same functionality can be achieved by logically programming the method steps to make the controller take the form of logic gates, switches, application-specific integrated circuits, programmable logic controllers, and embedded microcontrollers. Therefore, such a controller can be considered a hardware component, and the means included therein for implementing various functions can also be considered as structures within the hardware component. Alternatively, the means for implementing various functions can be considered as both software modules implementing the method and structures within the hardware component.
[0151] The systems, devices, modules, or units described in the above embodiments can be implemented by computer chips or entities, or by products with certain functions. A typical implementation device is a computer. Specifically, a computer can be, for example, a personal computer, laptop computer, cellular phone, camera phone, smartphone, personal digital assistant, media player, navigation device, email device, game console, tablet computer, wearable device, or any combination of these devices.
[0152] For ease of description, the above devices are described separately by function as various units. Of course, in implementing this application, the functions of each unit can be implemented in one or more software and / or hardware.
[0153] Those skilled in the art will understand that one or more embodiments of this specification can be provided as a method, system, or computer program product. Therefore, the invention can take the form of a completely hardware embodiment, a completely software embodiment, or an embodiment combining software and hardware aspects. Furthermore, the invention can take the form of a computer program product embodied on one or more computer-usable storage media (including, but not limited to, disk storage, CD-ROM, optical storage, etc.) containing computer-usable program code.
[0154] This invention is described with reference to flowchart illustrations and / or block diagrams of methods, apparatus (systems), and computer program products according to embodiments of the invention. It will be understood that each block of the flowchart illustrations and / or block diagrams, and combinations of blocks in the flowchart illustrations and / or block diagrams, can be implemented by computer program instructions. These computer program instructions can be provided to a processor of a general-purpose computer, special-purpose computer, embedded processor, or other programmable data processing apparatus to produce a machine, such that the instructions, which execute via the processor of the computer or other programmable data processing apparatus, generate instructions for implementing the flowchart illustrations and / or block diagrams. Figure 1 One or more processes and / or boxes Figure 1 A device that provides the functions specified in one or more boxes.
[0155] These computer program instructions may also be stored in a computer-readable storage medium that can direct a computer or other programmable data processing device to function in a particular manner, such that the instructions stored in the computer-readable storage medium produce an article of manufacture including instruction means, which are implemented in a process Figure 1 One or more processes and / or boxes Figure 1 The function specified in one or more boxes.
[0156] These computer program instructions may also be loaded onto a computer or other programmable data processing equipment to cause a series of operational steps to be performed on the computer or other programmable equipment to produce a computer-implemented process, thereby providing instructions that execute on the computer or other programmable equipment for implementing the process. Figure 1 One or more processes and / or boxes Figure 1 The steps of the function specified in one or more boxes.
[0157] In a typical configuration, a computing device includes one or more processors (CPU), input / output interfaces, network interfaces, and memory.
[0158] Memory may include non-persistent storage in computer-readable media, such as random access memory (RAM) and / or non-volatile memory, such as read-only memory (ROM) or flash RAM. Memory is an example of computer-readable media.
[0159] Computer-readable media includes both permanent and non-permanent, removable and non-removable media that can store information using any method or technology. Information can be computer-readable instructions, data structures, modules of programs, or other data. Examples of computer storage media include, but are not limited to, phase-change memory (PRAM), static random access memory (SRAM), dynamic random access memory (DRAM), other types of random access memory (RAM), read-only memory (ROM), electrically erasable programmable read-only memory (EEPROM), flash memory or other memory technologies, CD-ROM, digital character versatile optical disc (DVD) or other optical storage, magnetic tape, magnetic disk storage or other magnetic storage devices, or any other non-transferable medium that can be used to store information accessible by a computing device. As defined herein, computer-readable media does not include transient computer-readable media, such as modulated data signals and carrier waves.
[0160] This application can be described in the general context of computer-executable instructions, such as program modules, that are executed by a computer. Generally, program modules include routines, programs, objects, components, data structures, etc., that perform a specific task or implement a specific abstract data type. This application can also be practiced in distributed computing environments where tasks are performed by remote processing devices connected via a communication network. In distributed computing environments, program modules can reside in local and remote computer storage media, including storage devices.
[0161] The above description is merely an embodiment of this application and is not intended to limit the scope of this application. Various modifications and variations can be made to this application by those skilled in the art. Any modifications, equivalent substitutions, improvements, etc., made within the spirit and principles of this application should be included within the scope of the claims of this application.
Claims
1. A multifunctional near-field communication module, comprising: An NFC controller with an integrated embedded security unit; The first near-field antenna is configured to enable near-field communication card reading functionality; The second near-field antenna is configured to implement near-field communication tag functionality; The NFC controller is connected to the first near-field antenna and the second near-field antenna respectively; The NFC controller switches its operating modes in a time-division manner; wherein, when the NFC controller is in card reader operating mode, the first near-field antenna transmits field signals outward. During periods when no field signal is emitted, the NFC controller is in tag operating mode, and the second near-field antenna is able to sense external radio frequency signals.
2. According to claim 1, if the first near-field antenna senses the presence of a tag body during the time period when the first near-field antenna transmits a field signal, the first near-field antenna and the NFC controller remain in a conducting state, and the NFC controller maintains the card reader working mode. And / or, if the second near-field antenna senses an external field signal during an interval when no field signal is transmitted, the second near-field antenna remains in the conducting state with the NFC controller, and the NFC controller maintains the tag operating mode.
3. The near-field communication module according to claim 1 further includes a main control chip; The main control chip is communicatively connected to the NFC controller; the main control chip triggers the execution of corresponding business processing procedures when the NFC controller is in different working modes.
4. The near-field communication module according to claim 1 further includes a matching circuit, the matching circuit being disposed between the NFC controller and the first near-field antenna and / or the second near-field antenna; the NFC controller enables the first near-field antenna and / or the second near-field antenna to operate at a preset frequency through the matching circuit.
5. The near-field communication module according to claim 4, wherein the matching circuit includes a first matching circuit and a second matching circuit; the first matching circuit is connected between the first transceiver port pair of the NFC controller and the first near-field antenna; and the second matching circuit is connected between the second transceiver port pair of the NFC controller and the second near-field antenna.
6. The near-field communication module according to claim 4 further includes a switching module; The matching circuit includes a shared matching circuit; One side of the shared matching circuit is connected to the transceiver port of the NFC controller; the other side of the shared matching circuit is connected to the common terminal of the switch module. The first switch terminal of the switch module is connected to the first near-field antenna; The second switch terminal of the switch module is connected to the second near-field antenna; The control terminal of the switch module is connected to the NFC controller, and the NFC controller controls the switching states of the first switch terminal and the second switch terminal in a time-division manner.
7. The near-field communication module according to claim 6, wherein one side of the shared matching circuit is connected to two sets of transceiver ports of the NFC controller; The first switch terminal of the switch module is connected to one end of the first near-field antenna; the other end of the first near-field antenna is connected to the third switch terminal of the switch module; the switching states of the first switch terminal and the third switch terminal are the same. The second switch terminal of the switch module is connected to one end of the second near-field antenna; the other end of the second near-field antenna is connected to the fourth switch terminal of the switch module; the second switch terminal and the fourth switch terminal are in the same state.
8. The near-field communication module according to claim 6, wherein the matching circuit further comprises a first sub-matching circuit; the first sub-matching circuit is connected between the switching module and the first near-field antenna; And / or, the matching circuit further includes a second sub-matching circuit; the second sub-matching circuit is connected between the switching module and the second near-field antenna.
9. The near-field communication module according to claim 4, wherein the near-field communication module further includes a switching module; the matching circuit includes a first matching circuit and a second matching circuit; and the NFC controller includes a first transceiver port pair and a second transceiver port pair. The switching module includes four switching units; the control terminals of the four switching units are respectively connected to the NFC controller; wherein... The common terminal of the first switch unit is connected to the first receiving terminal of the first transceiver port pair; the common terminal of the second switch unit is connected to the first transmitting terminal of the first transceiver port pair; the common terminal of the third switch unit is connected to the second transmitting terminal of the second transceiver port pair; and the common terminal of the fourth switch unit is connected to the second receiving terminal of the second transceiver port pair. The first switch terminal of the first switch unit and the first switch terminal of the second switch unit are connected to the first input terminal of the first matching circuit; the first switch terminal of the third switch unit and the first switch terminal of the fourth switch unit are connected to the second input terminal of the first matching circuit; the output terminal of the first matching circuit is connected to the first near-field antenna. The second switch terminal of the first switch unit and the second switch terminal of the second switch unit are connected to the first input terminal of the second matching circuit; the second switch terminal of the third switch unit and the second switch terminal of the fourth switch unit are connected to the second input terminal of the second matching circuit; the output terminal of the second matching circuit is connected to the second near-field antenna. The states of the first switches in the four switching units are synchronized; the states of the second switches in the four switching units are synchronized.
10. The near-field communication module according to any one of claims 1 to 9, wherein the embedded security unit is configured to: perform financial transaction security authentication and key management, and / or provide independent secure data storage space.
11. The near-field communication module according to any one of claims 1 to 9, wherein the first near-field antenna and the second near-field antenna are physically partitioned on the device panel of the near-field communication module.
12. A control method for near-field communication, applied to the near-field communication module of claim 1, the method comprising: The operating mode is switched in a time-division manner according to the transmission cycle of the radio frequency signal; When the time period for transmitting the field signal arrives, switch to the card reader working mode and transmit the field signal outward through the first near-field antenna; When the interval period during which no field signal is transmitted is reached, the tag switches to the tag working mode and senses external radio frequency signals through the second near-field antenna.
13. The method according to claim 12, wherein during the operation of the card reader, if a tag body is detected by the first near-field antenna, the time-division switching is paused, and the card reader operation mode is maintained until the communication ends; And / or, during the tag operating mode, if a valid detection signal from an external card reader device is captured by the second near-field antenna, the time-division switching is paused, and the tag operating mode is maintained until communication ends.
14. A near-field communication device, the device comprising the near-field communication module according to any one of claims 1 to 11.