An ultra-low power consumption multi-role NFC interaction adaptive control system and method
Patent Information
- Application Number
- CN202610999899.5
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2026-07-07
- Publication Date
- 2026-10-27
AI Technical Summary
[0006]本申请提供了一种超低功耗多角色NFC交互自适应控制系统及方法,用于解决背景技术中提到的现有NFC设备功耗高、抗干扰能力弱、角色固化及异常处理能力差问题
1、超低功耗:系统在空闲状态下,除物理唤醒触发模块以微安级电流持续监测外,处理器进入深度休眠模式、NFC模块关闭主动射频场发射,整体静态功耗降至微安级。不同于传统LPCD方案受限于天线阻抗检测的固有缺陷,本发明仅在物理唤醒触发模块检测到有效环境物理变化时才唤醒处理器,从根源上杜绝了误触发造成的伪唤醒功耗浪费。
Smart Images

Figure CN122994883A_ABST
Abstract
Description
Technical Field
[0001] This invention relates to the technical fields of the Internet of Things and near-field communication, specifically to an ultra-low power multi-role NFC interactive adaptive control system and method. Background Technology
[0002] With the popularization of IoT technology, portable or battery-powered IoT devices (such as audio gateways, smart check-in terminals, and general configuration nodes) not only need to act as passive nodes receiving configurations, but also as active nodes issuing or reading cards. Near Field Communication (NFC) technology, due to its advantages of short range, low power consumption, and high security, has been widely used in these scenarios. However, existing NFC devices and their control methods have the following serious defects and shortcomings when handling the above-mentioned multi-role (reader and tag) interactions: 1. Continuous polling results in extremely high power consumption. To maintain its active reader / writer role, traditional NFC devices must continuously keep the NFC chip powered on and emit active radio frequency fields for polling, resulting in operating currents of tens or even hundreds of milliamps. For battery-powered portable IoT devices, this level of continuous power consumption cannot meet the requirements for long standby times, severely hindering the widespread application of NFC technology in low-power IoT devices.
[0003] 2. Low-power card seeker (LPCD) has an extremely high false trigger rate in complex physical environments. Existing high-end NFC chips generally possess LPCD (Low-Effect Tracking) functionality based on antenna impedance changes, theoretically enabling wake-up detection of external tags in a low-power state. However, in real-world physical environments, when ambient temperature and humidity fluctuate drastically, when there are numerous metal objects around the device (such as metal desktops or cabinets), or when a person is nearby, the antenna impedance is prone to non-targeted changes, leading to frequent false triggers of the LPCD. Once a false trigger occurs, the system is forced to exit microampere-level sleep mode and activate the radio frequency field for verification, but at this time there is no valid NFC interaction object. This "false wake-up" phenomenon causes the system battery to be rapidly depleted, severely weakening the practical application value of the LPCD function.
[0004] 3. Lack of intelligent environmental anti-interference mechanisms When a device uses an external proximity sensor (such as an infrared sensor or a capacitive sensor) as a wake-up source, the proximity of non-NFC devices such as metal keys, coins, or human hands can easily trigger invalid wake-ups. Existing systems often directly enter the standard NFC interaction process after wake-up without any pre-interference screening step, resulting in a large amount of invalid waiting time and unnecessary power consumption.
[0005] 4. Rigid control logic and weak exception handling capabilities. Existing NFC devices are typically fixed to a single role as either a "pure reader / writer" or a "pure tag," lacking the ability to dynamically switch roles based on different interaction scenarios. Furthermore, in the event of read / write failures or sudden power outages, existing systems often lack automatic degradation and passive response fallback mechanisms, leading to device deadlock or complete disconnection, failing to meet the reliability and maintainability requirements of IoT devices. Summary of the Invention
[0006] This application provides an ultra-low power multi-role NFC interactive adaptive control system and method to solve the problems mentioned in the background art, such as high power consumption, weak anti-interference ability, fixed roles, and poor anomaly handling ability of existing NFC devices.
[0007] To address the aforementioned technical problems, firstly, this application provides an ultra-low power multi-role NFC interactive adaptive control system, comprising: The processor, as the main control unit of the entire system's state scheduling and control core, has the ability to perform deep sleep at the microampere level and wake up from multiple external interrupts. The physical wake-up trigger module has its signal output terminal connected to the external interrupt input pin of the processor. It is used to monitor the state of environmental objects in real time with extremely low current and send a hardware level transition interrupt signal to the processor when the trigger threshold is reached, so as to wake up the processor in a deep sleep state. A full-featured near-field communication (NFC) module is connected to the processor via a serial communication bus to achieve bidirectional data interaction and to receive control commands from the processor to configure its operating mode. The processor reads the radio frequency field detection status and tag detection status of the full-featured NFC module via the serial communication bus and dynamically configures the full-featured NFC module to switch between active read / write mode and passive card emulation mode based on the reading results. The antenna network is electrically connected to the radio frequency input / output port of the full-function near-field communication (NFC) module to radiate and receive radio frequency signals, thereby realizing the physical layer signal transmission of the near-field communication link. The power module is used to supply power to the processor, the physical wake-up trigger module, and the full-function near-field communication (NFC) module, respectively.
[0008] In one embodiment, the physical wake-up trigger module includes any one or more combinations of a low-power capacitive touch controller, an infrared proximity sensor, a Hall element, or a manual button.
[0009] In one embodiment, the full-function near-field communication (NFC) module includes a non-volatile memory, which is used to power the system by external radio frequency field energy coupled through the antenna network when the entire system is powered off, and to output key interactive state parameters stored therein.
[0010] In one embodiment, the full-function near-field communication (NFC) module includes a radio frequency field detection unit for detecting the external radio frequency field strength in the environment where the antenna network is located within microseconds, and feeding the detection result back to the processor via the serial communication bus.
[0011] In one embodiment, the processor includes a kernel mode attribute register, the logical value of which is dynamically determined by the pressed state of a physical button connected to the processor, the level state of a corresponding pin of the processor, or an internal register variable stored in the memory that was saved in the last service session; the processor distributes control flow to the corresponding working mode logic branch according to the current logical value of the kernel mode attribute register.
[0012] In one embodiment, the antenna network includes a radiating antenna body and an impedance matching network; the impedance matching network is connected between the radiating antenna body and the radio frequency input / output port of the full-function near-field communication (NFC) module to achieve impedance matching between the antenna and the radio frequency port impedance of the full-function NFC module; the radiating antenna body is used to emit a radio frequency field to drive an external passive tag when the full-function NFC module is in active read / write mode, and to receive a radio frequency field emitted by an external read / write device to achieve radio frequency energy coupling when the full-function NFC module is in passive card emulation mode.
[0013] Secondly, this application also provides an ultra-low power multi-role NFC adaptive control method, which is used to implement an ultra-low power multi-role NFC interactive adaptive control system, including the following steps: When the system is idle, the processor enters a deep sleep mode and shuts down the active radio frequency field transmission of the full-function near field communication (NFC) module. Only the physical wake-up trigger module, which is independent of the processor and the radio frequency field, continuously monitors the external environment at a microampere power consumption. When an external object approaches and causes a change in the physical state of the physical wake-up trigger module, the physical wake-up trigger module generates an interrupt signal to wake up the processor; After the processor is woken up, it reads the currently set kernel mode attribute and distributes the control flow to the corresponding working mode logic branch according to the logical value of the kernel mode attribute. The working mode logic branch includes passive tag priority branch, reader priority branch, reader pass-through branch and passive tag pass-through branch. In the working mode logic branch of the distribution, the processor calls the radio frequency field detection function and the tag detection function to determine the type of the approaching object based on the detection results; If the interference is invalid physical, then the subsequent NFC interaction process will be blocked. If the device is valid, the full-function NFC module will be adaptively configured to either passive tag mode or active read / write mode, and external radio frequency field detection will be performed before entering active read / write mode to avoid collisions and complete the business interaction. After the business interaction is completed, abnormally terminated, or determined to be invalid interference, the processor shuts down the active radio frequency field of the full-function near-field communication (NFC) module, clears the interrupt flag of the physical wake-up trigger module, pre-configures the full-function near-field communication (NFC) module to pure passive tag mode, and then re-enters the deep sleep mode.
[0014] In one embodiment, the logical value of the kernel mode attribute is dynamically determined by the physical button state, pin level state, or internal register variable saved from the last service.
[0015] In one embodiment, when the kernel mode attribute distributes control flow to the adaptive passive label priority branch, the business interaction steps include: The processor first determines whether the radio frequency field detection function is configured in pass-through mode; If configured in pass-through mode, the radio frequency field detection function is skipped, and the full-function near-field communication (NFC) module is directly initialized to passive tag mode. If not configured as pass-through mode, the radio frequency field detection function is invoked to detect external radio frequency fields, and when an external radio frequency field is detected, the full-function near-field communication (NFC) module is initialized to passive tag mode; After entering passive tag mode, start the business timeout timer and silently listen for active polling interactions from external readers within the time window of the timer's operation; If an external device connects within the specified time window, the data interaction is completed and the service ends. If the service timeout timer times out and no interaction occurs, the processor determines whether the tag detection function is configured in pass-through mode; If configured as pass-through mode, the tag detection function is skipped, and the full-function NFC module is directly switched to active read / write mode. If not configured as pass-through mode, the tag detection function is invoked to detect NFC tags, and when it is confirmed that the approaching object is an NFC tag, the full-function near-field communication NFC module is switched to active read / write mode. After entering active read / write mode, it emits radio frequency fields to read or write external passive cards.
[0016] In one embodiment, when the kernel mode attribute distributes control flow to the adaptive reader-preferred branch, the business interaction steps include: The processor first determines whether the label detection function is configured in pass-through mode; If configured as pass-through mode, the tag detection function is skipped, and the full-function NFC module is directly initialized to active read / write mode. If not configured as pass-through mode, the tag detection function is invoked to detect NFC tags, and when an external NFC tag is detected, the full-function near-field communication NFC module is initialized to active read / write mode. Upon entering active read / write mode, it immediately emits a radio frequency field to perform card search and read / write operations. If the external tag is successfully read or written, the process will proceed normally to the end of the business. If card reading fails, command timeout occurs, or no valid card is found, the system first physically shuts down its own radio frequency field transmission, and then determines whether the radio frequency field detection function is configured to pass-through mode. If configured in pass-through mode, the radio frequency field detection function is skipped, and the full-function near-field communication (NFC) module is directly reconfigured to passive tag mode. If not configured in pass-through mode, the radio frequency field detection function is invoked to detect the external environment, and when an external radio frequency field is detected, the full-function near-field communication (NFC) module is reconfigured to passive tag mode. After entering passive tag mode, it silently waits for interaction with the external card writer device.
[0017] The beneficial effects of the aforementioned ultra-low power multi-role NFC interactive adaptive control system and method are as follows: 1. Ultra-low power consumption: In idle state, except for the physical wake-up trigger module continuously monitoring with a microampere-level current, the processor enters deep sleep mode and the NFC module disables active RF field transmission, reducing the overall static power consumption to the microampere level. Unlike traditional LPCD solutions that are limited by the inherent defects of antenna impedance detection, this invention only wakes up the processor when the physical wake-up trigger module detects a valid change in the environmental physical state, thus eliminating the power waste caused by false wake-up due to mis-triggering.
[0018] 2. Strong environmental adaptability: The physical wake-up trigger module works independently of the NFC radio frequency field. Its trigger threshold is not affected by environmental factors such as temperature and humidity drift, metal objects or human proximity. The system can maintain stable and reliable wake-up performance in various complex physical environments. Its environmental adaptability is far superior to the LPCD solution based on antenna impedance detection.
[0019] 3. Strong anti-interference capability: After waking up, the system first performs radio frequency field detection and tag detection. Through the dual detection mechanism, it accurately distinguishes between valid NFC devices and invalid physical interference (such as metal keys, coins, human bodies, etc.), fundamentally avoiding invalid waiting power consumption after invalid wake-up, and significantly improving the robustness of the system.
[0020] 4. High reliability: Under extreme conditions such as interaction failure, abnormal interruption or power failure, the system has a triple protection mechanism, which significantly improves the maintainability and traceability of IoT devices under harsh conditions. This mechanism includes forcibly shutting down the radio frequency field, clearing the interrupt flag to prevent deadlock, and pre-configuring passive tag mode to ensure readability after power failure. Attached Figure Description
[0021] Figure 1 This is a schematic diagram of the structure of an ultra-low power multi-role NFC interactive adaptive control system shown in an embodiment of this application; Figure 2 This is a flowchart illustrating an ultra-low power multi-role NFC adaptive control method according to an embodiment of this application. Detailed Implementation
[0022] To make the above-mentioned objects, features, and advantages of the present invention more apparent and understandable, specific embodiments of the present invention will be described in detail below with reference to the accompanying drawings. Many specific details are set forth in the following description to provide a thorough understanding of the present invention. However, the present invention can be practiced in many other ways different from those described herein, and those skilled in the art can make similar modifications without departing from the spirit of the present invention. Therefore, the present invention is not limited to the specific embodiments disclosed below.
[0023] It should be noted that when a component is considered to be "connected" to another component, it can be directly connected to the other component or there may be an intermediary component present. Conversely, when a component is said to be "directly" connected to another component, there is no intermediary component.
[0024] Unless otherwise defined, all technical and scientific terms used herein have the same meaning as commonly understood by one of ordinary skill in the art to which this invention pertains. The terminology used herein in the description of the invention is for the purpose of describing particular embodiments only and is not intended to be limiting of the invention. The term "and / or" as used herein includes any and all combinations of one or more of the associated listed items.
[0025] like Figure 1 As shown, this application provides an ultra-low power multi-role NFC interactive adaptive control system, including: Processor 1, as the main control unit of the entire system's state scheduling and control core, has the ability to perform microampere-level deep sleep and multi-level external interrupt wake-up; Processor 1 includes a kernel mode attribute register. The logical value of the kernel mode attribute register is dynamically determined by the pressed state of a physical button connected to the processor, the level state of the corresponding pin of the processor, or the internal register variable stored in the memory that was saved in the last service. The processor distributes the control flow to the corresponding working mode logic branch according to the current logical value of the kernel mode attribute register.
[0026] Processor 1, as the core of the system's state scheduling and control, employs an ultra-low-power microcontroller that supports microampere-level deep sleep mode and multi-level external interrupt wake-up functionality. In this specific embodiment, processor 1 preferably uses an ultra-low-power MCU chip with an ARM Cortex-M0+ or Cortex-M4 core architecture. This type of MCU chip has multiple deep sleep modes (such as STOP mode, STANDBY mode, or Shutdown mode). In deep sleep mode, its operating current can be as low as microamperes or even sub-microamperes, while keeping multiple external interrupt input pins in an active listening state, enabling it to quickly wake up and resume working mode when triggered by an external interrupt signal.
[0027] Processor 1 internally has a kernel mode attribute register. This register is a physical storage unit within processor 1, dedicated to storing the logical values of the current system's kernel mode attributes. The number of bits and encoding method of this logical value corresponds to the number of predefined working mode logical branches in the system. In this specific embodiment, the system predefines four working mode logical branches; therefore, the kernel mode attribute register is at least a 2-bit register, with logical values 00, 01, 10, and 11 corresponding to the passive tag priority branch, reader priority branch, reader pass-through branch, and passive tag pass-through branch, respectively.
[0028] During system operation, the logical value of the kernel-mode attribute register is dynamically determined by any one or more combinations of the following three methods: (a) Determined by the pressed state of the physical button. The physical button is connected to the general purpose input / output (GPIO) pin of processor 1. The GPIO pin is configured for input mode and can be internally pulled up or pulled down. When the user does not press the button, the GPIO pin maintains a default level, such as high; when the user presses the button, the GPIO pin level changes, such as from high to low. Processor 1 reads the level state of the GPIO pin, converts it into the corresponding logical value (such as 0 or 1), and writes it to the kernel mode attribute register. The user can press different buttons or combinations of buttons to generate different pin level combinations, thereby setting the register to different logical values.
[0029] (ii) Determined by the level state of the corresponding processor pin. Specific external pins (GPIO pins) of processor 1 are connected to external hardware circuits that can generate deterministic high and low level signals. For example, this pin can be connected to the output of a DIP switch, allowing the user to manually set the pin to high or low level by toggling the switch position; alternatively, this pin can be connected to a jumper cap to a header pin, changing the pin level combination by shorting different header combinations; furthermore, this pin can be connected to the output of an external comparator or logic gate, with the pin level determined by the external circuit state. Processor 1 directly reads the level state of this pin and uses it as the logical value of the kernel mode attribute register.
[0030] (iii) Determined by the internal register variables saved from the previous service, stored in memory. The system is also equipped with non-volatile memory, which is electrically connected to processor 1 and can be read and written via serial or parallel bus. Upon completion of each service interaction or when the system performs a closed-loop termination action, processor 1 writes the current kernel mode attribute logical value or service context information related to the operating mode as a variable to a designated storage address in the non-volatile memory. When the system powers on again or wakes up from deep sleep mode, processor 1 first reads the variable value from the designated address in the non-volatile memory and loads it into the kernel mode attribute register, thereby realizing power-off memory and state recovery of the system's operating mode.
[0031] The physical wake-up trigger module 2 has its signal output terminal connected to the external interrupt input pin of the processor 1. It is used to monitor the state of environmental objects in real time with extremely low current and send a hardware level transition interrupt signal to the processor when the trigger threshold is reached, so as to wake up the processor in a deep sleep state. The physical wake-up trigger module 2 includes any one or more combinations of a low-power capacitive touch controller, an infrared proximity sensor, a Hall element, or a manual button.
[0032] In this embodiment, the physical wake-up trigger module 2 uses a low-power capacitive touch controller chip, such as the Cypress CapSense series, Microchip AT42QT series, or Analog Devices AD7147 series. This capacitive touch controller integrates a capacitive-to-digital converter, and its sensing electrodes are located on the inside of the device housing or are directly part of the device housing.
[0033] The capacitive touch controller continuously drives the sensing electrodes with extremely low current and monitors changes in the capacitance of the sensing electrodes in real time. When an external object (such as a human finger, palm, or metal object) approaches or touches the device casing, the equivalent capacitance between the sensing electrodes and ground changes. When the capacitance change exceeds a preset trigger threshold, the internal comparator circuit of the capacitive touch controller outputs a valid level and sends a hardware level transition interrupt signal to the external interrupt input pin of processor 1 through its interrupt output pin.
[0034] A full-function near-field communication (NFC) module 3 is connected to the processor 1 via a serial communication bus to achieve bidirectional data interaction and accepts control commands from the processor 1 to configure the working mode. The processor 1 reads the radio frequency field detection status and tag detection status of the full-function NFC module 3 via the serial communication bus and dynamically configures the full-function NFC module 3 to switch between active read / write mode and passive card emulation mode based on the reading results. The full-featured NFC module 3 employs an NFC transceiver chip that supports a complete NFC protocol stack. This type of chip features active read / write mode, passive card emulation mode, and internal microsecond-level radio frequency field detection capabilities, and also incorporates non-volatile memory. The full-featured NFC module 3 is electrically connected to the processor 1 via a serial communication bus, such as an I2C bus or an SPI bus, to achieve bidirectional data interaction and control command transmission.
[0035] The radio frequency input / output ports of the full-function NFC module 3 are electrically connected to the antenna network 4. Through this radio frequency path, the full-function NFC module 3 can transmit a 13.56MHz radio frequency field through the antenna network 4 in active read / write mode to drive an external passive tag, or receive a 13.56MHz radio frequency field emitted by an external read / write device through the antenna network 4 in passive card emulation mode to complete a passive response.
[0036] The interaction between the full-function NFC module 3 and the processor 1 follows the control and feedback mechanism: the processor 1 sends operating mode configuration commands to the full-function NFC module 3 via a serial communication bus, including active read / write mode, passive card emulation mode, radio frequency field detection mode, or tag detection mode; after performing the corresponding operation, the full-function NFC module 3 returns the operation result, status flag, or detection data to the processor 1 via the same serial communication bus. Specifically, the processor 1 reads the radio frequency field detection status and tag detection status of the full-function NFC module 3 via the serial communication bus, and dynamically configures the full-function NFC module 3 to switch between active read / write mode and passive card emulation mode based on the above reading results.
[0037] The full-function near-field communication (NFC) module 3 includes a non-volatile memory, which is used to power the system by external radio frequency field energy coupled through the antenna network when the entire system is powered off, and to output the key interactive state parameters stored therein.
[0038] The full-function NFC module 3 integrates a non-volatile memory. This non-volatile memory has the following dual functions: First, under normal system power supply, the processor 1 can read and write to the non-volatile memory via the serial communication bus to store working mode configuration parameters, interaction status parameters, and other key business data; Second, when the entire system is powered off, i.e., when the power module 5 no longer supplies power to the full-function NFC module 3, the non-volatile memory is powered by the radio frequency field energy emitted by the external reading and writing device coupled to the antenna network 4, i.e., radio frequency power extraction, and autonomously outputs the key interaction status parameters pre-stored therein.
[0039] The full-function near-field communication (NFC) module 3 includes a radio frequency field detection unit, which is used to detect the external radio frequency field strength in the environment where the antenna network is located within microseconds, and feed the detection result back to the processor through the serial communication bus.
[0040] The full-function NFC module 3 also integrates a radio frequency field detection unit. This radio frequency field detection unit is independent of the main communication processing link of the full-function NFC module 3 and can quickly detect the presence and intensity level of external radio frequency fields in the environment where the antenna network 4 is located within microseconds.
[0041] The specific working principle of the RF field detection unit is as follows: After receiving an external RF signal, the antenna network 4 couples it to the RF input port of the full-function near-field communication (NFC) module 3. The RF field detection unit rectifies and filters the RF signal at the RF input port, converting it into a DC voltage or a digital quantized value. This voltage or quantized value is positively correlated with the field strength of the external RF field. The RF field detection comparator inside the full-function NFC module 3 compares this DC voltage with a preset reference voltage. When the DC voltage exceeds the reference voltage, it is determined that a valid external RF field exists in the environment; otherwise, it is determined that a valid external RF field does not exist in the environment. The detection result is stored in the internal status register of the full-function NFC module 3 in the form of a status flag.
[0042] Antenna network 4 is electrically connected to the radio frequency input / output port of the full-function near-field communication (NFC) module 3, and is used to radiate and receive radio frequency signals to realize physical layer signal transmission of the near-field communication link; Antenna network 4 includes a radiating antenna body and an impedance matching network; the impedance matching network is connected between the radiating antenna body and the radio frequency input / output port of the full-function near-field communication (NFC) module, and is used to match the antenna impedance with the radio frequency port impedance of the full-function near-field communication (NFC) module 3; the radiating antenna body is used to emit radio frequency fields to drive external passive tags when the full-function near-field communication (NFC) module 3 is in active read / write mode, and is used to receive radio frequency fields emitted by external read / write devices to achieve radio frequency energy coupling when the full-function near-field communication (NFC) module 3 is in passive card emulation mode.
[0043] Antenna network 4 is electrically connected to the radio frequency input / output port of the full-function near-field communication (NFC) module 3, and is used to radiate and receive 13.56MHz radio frequency signals during near-field communication to realize the physical layer signal transmission of the near-field communication link. In this specific embodiment, antenna network 4 includes a radiating antenna body and an impedance matching network.
[0044] When the full-function NFC module 3 is configured to active read / write mode by the processor 1, the RF power amplifier inside the full-function NFC module 3 outputs a carrier-modulated 13.56MHz RF current through the RF output port. This RF current is transmitted to the radiating antenna body via an impedance matching network. The radiating antenna body acts as a radiator; according to Faraday's law of electromagnetic induction, the alternating RF current flowing through the coil generates an alternating electromagnetic field in space. This alternating electromagnetic field is the 13.56MHz active RF field emitted outwards. Within the range of this RF field, an alternating voltage is induced in the antenna coil of the external passive NFC tag. After the internal rectifier circuit generates a DC power supply voltage, the tag chip is activated and the data stored in its internal EEPROM is loaded. The data is then transmitted back to the radiating antenna body via load modulation, thus completing the data interaction in active read / write mode.
[0045] When the full-function NFC module 3 is configured by the processor 1 to passive card emulation mode, the internal RF power amplifier of the full-function NFC module 3 is turned off, and only the RF receiving front-end circuit remains in standby listening state. At this time, the radiating antenna body 41 acts as a receiving antenna. When an external reading and writing device, such as a smartphone or a dedicated NFC reader, emits a 13.56MHz external RF field that approaches the radiating antenna body, the radiating antenna body couples with the alternating magnetic field energy of the external RF field, generating an induced alternating voltage inside. This induced alternating voltage is transmitted to the RF input port of the full-function NFC module 3 through an impedance matching network. After being converted into DC voltage by the internal rectifier circuit of the chip, it provides operating power for the passive card emulation mode related circuits of the full-function NFC module 3 on the one hand, and demodulates the modulation signal sent by the external reading and writing device into a baseband digital signal for internal logic processing of the full-function NFC module 3 on the other hand. The full-function near-field communication (NFC) module 3 retrieves the data to be returned from the internal non-volatile memory or from the processor 1 via the serial communication bus according to the instructions of the external reader / writer. It modulates the response data onto the reflected wave of the radio frequency field continuously emitted by the external reader / writer by changing the equivalent load impedance at the radio frequency input port. The external reader / writer can demodulate the response data by detecting the change in the reflected wave.
[0046] The power module 5 is used to supply power to the processor 1, the physical wake-up trigger module 2, and the full-function near-field communication (NFC) module 3 respectively.
[0047] like Figure 2 As shown, in a second aspect, this application also provides an ultra-low power multi-role NFC adaptive control method, a method for implementing an ultra-low power multi-role NFC interactive adaptive control system, comprising the following steps: S1. When the system is idle, the processor enters a deep sleep mode and shuts down the active radio frequency field transmission of the full-function near-field communication (NFC) module. Only the physical wake-up trigger module, which is independent of the processor and the radio frequency field, continuously monitors the external environment with microampere power consumption. S2. When an external object approaches and causes a change in the physical state of the physical wake-up trigger module, the physical wake-up trigger module generates an interrupt signal to wake up the processor. S3. After the processor is woken up, it reads the currently set kernel mode attribute and distributes the control flow to the corresponding working mode logic branch according to the logical value of the kernel mode attribute. The working mode logic branch includes passive tag priority branch, reader priority branch, reader pass-through branch and passive tag pass-through branch. S4. In the working mode logic branch of the distribution, the processor calls the radio frequency field detection function and the tag detection function to determine the type of the approaching object based on the detection results; S5. If the interference is invalid physical, then block the subsequent NFC interaction process. S6. If it is a valid device, the full-function NFC module will be adaptively configured to passive tag mode or active read / write mode, and external radio frequency field detection will be performed before entering active read / write mode to avoid collision and complete the business interaction. S7. After the business interaction is completed, abnormally terminated, or determined to be invalid interference, the processor shuts down the active radio frequency field of the full-function near-field communication (NFC) module, clears the interrupt flag of the physical wake-up trigger module, pre-configures the full-function near-field communication (NFC) module to pure passive tag mode, and then re-enters the deep sleep mode.
[0048] In one embodiment, the logical value of the kernel mode attribute is dynamically determined by the physical button state, pin level state, or internal register variable saved from the last service.
[0049] In one embodiment, when the kernel mode attribute distributes control flow to the adaptive passive label priority branch, the business interaction steps include: The processor first determines whether the radio frequency field detection function is configured in pass-through mode; If configured in pass-through mode, the radio frequency field detection function is skipped, and the full-function near-field communication (NFC) module is directly initialized to passive tag mode. If not configured as pass-through mode, the radio frequency field detection function is invoked to detect external radio frequency fields, and when an external radio frequency field is detected, the full-function near-field communication (NFC) module is initialized to passive tag mode; After entering passive tag mode, start the business timeout timer and silently listen for active polling interactions from external readers within the time window of the timer's operation; If an external device connects within the specified time window, the data interaction is completed and the service ends. If the service timeout timer times out and no interaction occurs, the processor determines whether the tag detection function is configured in pass-through mode; If configured as pass-through mode, the tag detection function is skipped, and the full-function NFC module is directly switched to active read / write mode. If not configured as pass-through mode, the tag detection function is invoked to detect NFC tags, and when it is confirmed that the approaching object is an NFC tag, the full-function near-field communication NFC module is switched to active read / write mode. After entering active read / write mode, it emits radio frequency fields to read or write external passive cards.
[0050] In one embodiment, when the kernel mode attribute distributes control flow to the adaptive reader-preferred branch, the business interaction steps include: The processor first determines whether the label detection function is configured in pass-through mode; If configured as pass-through mode, the tag detection function is skipped, and the full-function NFC module is directly initialized to active read / write mode. If not configured as pass-through mode, the tag detection function is invoked to detect NFC tags, and when an external NFC tag is detected, the full-function near-field communication NFC module is initialized to active read / write mode. Upon entering active read / write mode, it immediately emits a radio frequency field to perform card search and read / write operations. If the external tag is successfully read or written, the process will proceed normally to the end of the business. If card reading fails, command timeout occurs, or no valid card is found, the system first physically shuts down its own radio frequency field transmission, and then determines whether the radio frequency field detection function is configured to pass-through mode. If configured in pass-through mode, the radio frequency field detection function is skipped, and the full-function near-field communication (NFC) module is directly reconfigured to passive tag mode. If not configured in pass-through mode, the radio frequency field detection function is invoked to detect the external environment, and when an external radio frequency field is detected, the full-function near-field communication (NFC) module is reconfigured to passive tag mode. After entering passive tag mode, it silently waits for interaction with the external card writer device.
[0051] The options described in the above system embodiments are also applicable to this embodiment, and will not be detailed here. The remaining content of this application's embodiments can be found in the above system embodiments, and will not be repeated in this embodiment.
[0052] The technical features of the above embodiments can be combined in any way. For the sake of brevity, not all possible combinations of the technical features in the above embodiments are described. However, as long as there is no contradiction in the combination of these technical features, they should be considered to be within the scope of this specification.
[0053] The embodiments described above are merely illustrative of several implementations of the present invention, and while the descriptions are relatively specific and detailed, they should not be construed as limiting the scope of the invention patent. It should be noted that those skilled in the art can make various modifications and improvements without departing from the concept of the present invention, and these all fall within the protection scope of the present invention. Therefore, the protection scope of this invention patent should be determined by the appended claims.
Claims
1. An ultra-low power multi-role NFC interactive adaptive control system, characterized in that: include: The processor, as the main control unit of the entire system's state scheduling and control core, has the ability to perform deep sleep at the microampere level and wake up from multiple external interrupts. The physical wake-up trigger module has its signal output terminal connected to the external interrupt input pin of the processor. It is used to monitor the state of environmental objects in real time with extremely low current and send a hardware level transition interrupt signal to the processor when the trigger threshold is reached, so as to wake up the processor in a deep sleep state. A full-featured near-field communication (NFC) module is connected to the processor via a serial communication bus to achieve bidirectional data interaction and accepts control commands from the processor to configure its operating mode. The processor reads the radio frequency field detection status and tag detection status of the full-featured NFC module via the serial communication bus and dynamically configures the full-featured NFC module to switch between active read / write mode and passive card emulation mode based on the reading results. The antenna network is electrically connected to the radio frequency input / output port of the full-function near-field communication (NFC) module to radiate and receive radio frequency signals, thereby realizing the physical layer signal transmission of the near-field communication link. The power module is used to supply power to the processor, the physical wake-up trigger module, and the full-function near-field communication (NFC) module, respectively.
2. The ultra-low power multi-role NFC interactive adaptive control system according to claim 1, characterized in that: The physical wake-up trigger module includes any one or more combinations of a low-power capacitive touch controller, an infrared proximity sensor, a Hall element, or a manual button.
3. The ultra-low power multi-role NFC interactive adaptive control system according to claim 2, characterized in that: The full-function near-field communication (NFC) module includes a non-volatile memory, which is used to supply power through external radio frequency field energy coupled by the antenna network when the entire system is powered off, and to output key interactive state parameters stored therein.
4. The ultra-low power multi-role NFC interactive adaptive control system according to claim 3, characterized in that: The full-function near-field communication (NFC) module includes a radio frequency field detection unit, which is used to detect the external radio frequency field strength in the environment where the antenna network is located within microseconds, and feed the detection result back to the processor through the serial communication bus.
5. The ultra-low power multi-role NFC interactive adaptive control system according to claim 4, characterized in that: The processor includes a kernel mode attribute register, the logical value of which is dynamically determined by the pressed state of a physical button connected to the processor, the level state of the corresponding pin of the processor, or the internal register variable saved from the last service stored in the memory. The processor distributes control flow to the corresponding working mode logic branch based on the current logic value of the kernel mode attribute register.
6. The ultra-low power multi-role NFC interactive adaptive control system according to claim 5, characterized in that: The antenna network includes a radiating antenna body and an impedance matching network. The impedance matching network is connected between the radiating antenna body and the radio frequency input / output port of the full-function near-field communication (NFC) module to achieve impedance matching between the antenna and the radio frequency port impedance of the full-function NFC module. The radiating antenna body is used to emit a radio frequency field to drive an external passive tag when the full-function NFC module is in active read / write mode, and to receive a radio frequency field emitted by an external read / write device to achieve radio frequency energy coupling when the full-function NFC module is in passive card emulation mode.
7. An ultra-low power multi-role NFC adaptive control method, used to implement the ultra-low power multi-role NFC interactive adaptive control system method as described in any one of claims 1-6, characterized in that, Includes the following steps: When the system is idle, the processor enters a deep sleep mode and shuts down the active radio frequency field transmission of the full-function near field communication (NFC) module. Only the physical wake-up trigger module, which is independent of the processor and the radio frequency field, continuously monitors the external environment at a microampere power consumption. When an external object approaches and causes a change in the physical state of the physical wake-up trigger module, the physical wake-up trigger module generates an interrupt signal to wake up the processor; After the processor is woken up, it reads the currently set kernel mode attribute and distributes the control flow to the corresponding working mode logic branch according to the logical value of the kernel mode attribute. The working mode logic branch includes passive tag priority branch, reader priority branch, reader pass-through branch and passive tag pass-through branch. In the working mode logic branch of the distribution, the processor calls the radio frequency field detection function and the tag detection function to determine the type of the approaching object based on the detection results; If the interference is invalid physical, then the subsequent NFC interaction process will be blocked. If the device is valid, the full-function NFC module will be adaptively configured to either passive tag mode or active read / write mode, and external radio frequency field detection will be performed before entering active read / write mode to avoid collisions and complete the business interaction. After the business interaction is completed, abnormally terminated, or determined to be invalid interference, the processor shuts down the active radio frequency field of the full-function near-field communication (NFC) module, clears the interrupt flag of the physical wake-up trigger module, pre-configures the full-function near-field communication (NFC) module to pure passive tag mode, and then re-enters the deep sleep mode.
8. The ultra-low power multi-role NFC adaptive control method according to claim 7, characterized in that: The logical value of the kernel mode attribute is dynamically determined by the physical button state, pin level state, or internal register variables saved from the last service.
9. The ultra-low power multi-role NFC adaptive control method according to claim 7, characterized in that, When the kernel mode attribute distributes control flow to the adaptive passive label priority branch, the business interaction steps include: The processor first determines whether the radio frequency field detection function is configured in pass-through mode; If configured in pass-through mode, the radio frequency field detection function is skipped, and the full-function near-field communication (NFC) module is directly initialized to passive tag mode. If not configured as pass-through mode, the radio frequency field detection function is invoked to detect external radio frequency fields, and when an external radio frequency field is detected, the full-function near-field communication (NFC) module is initialized to passive tag mode; After entering passive tag mode, start the business timeout timer and silently listen for active polling interactions from external readers within the time window of the timer's operation; If an external device connects within the specified time window, the data interaction is completed and the service ends. If the service timeout timer times out and no interaction occurs, the processor determines whether the tag detection function is configured in pass-through mode; If configured as pass-through mode, the tag detection function is skipped, and the full-function NFC module is directly switched to active read / write mode. If not configured as pass-through mode, the tag detection function is invoked to detect NFC tags, and when it is confirmed that the approaching object is an NFC tag, the full-function near-field communication NFC module is switched to active read / write mode. After entering active read / write mode, it emits radio frequency fields to read or write external passive cards.
10. The ultra-low power multi-role NFC adaptive control method according to claim 7, characterized in that, When the kernel mode attribute distributes control flow to the adaptive reader-first branch, the business interaction steps include: The processor first determines whether the label detection function is configured in pass-through mode; If configured as pass-through mode, the tag detection function is skipped, and the full-function NFC module is directly initialized to active read / write mode. If not configured as pass-through mode, the tag detection function is invoked to detect NFC tags, and when an external NFC tag is detected, the full-function near-field communication NFC module is initialized to active read / write mode. Upon entering active read / write mode, it immediately emits a radio frequency field to perform card search and read / write operations. If the external tag is successfully read or written, the process will proceed normally to the end of the business. If card reading fails, command timeout occurs, or no valid card is found, the system first physically shuts down its own radio frequency field transmission, and then determines whether the radio frequency field detection function is configured to pass-through mode. If configured in pass-through mode, the radio frequency field detection function is skipped, and the full-function near-field communication (NFC) module is directly reconfigured to passive tag mode. If not configured in pass-through mode, the radio frequency field detection function is invoked to detect the external environment, and when an external radio frequency field is detected, the full-function near-field communication (NFC) module is reconfigured to passive tag mode. After entering passive tag mode, it silently waits for interaction with the external card writer device.