Service execution method based on dual-mode NFC, and NFC device
Patent Information
- Application Number
- PCT/CN2025/131396
- Authority / Receiving Office
- WO · WO
- Patent Type
- Applications
- Current Assignee / Owner
- Priority Date
- 2025-03-11
- Filing Date
- 2025-10-30
- Publication Date
- 2026-09-17
Smart Images

Figure CN2025131396_17092026_PF_FP_ABST
Abstract
Description
A service execution method and NFC device based on NFC dual-mode Technical Field
[0001] This specification relates to the field of near-field communication technology, and in particular to a service execution method and NFC device based on NFC dual-mode. Background Technology
[0002] Near Field Communication (NFC) is a short-range wireless communication technology that allows NFC-enabled devices to transfer data without contact via radio frequency signals. NFC technology enables rapid device pairing, has low power consumption, and supports both active and passive modes. Its security and convenience have led to its widespread application in the Internet of Things (IoT) and consumer electronics fields, such as in mobile payments, card verification, and device pairing.
[0003] In existing technologies, when two NFC devices both support dual-mode interaction to perform business, confusion may arise in the interaction between NFC devices. For example, device A can actively send a read signal to activate a passive mode device to acquire data, or it can provide data in passive mode (card emulation). When device B, which also supports dual-mode, enters the detection range of device A, device B may be activated by A's radio frequency field and switch to card mode. However, device B may also actively trigger device A's card mode. In other words, which device is activated is random, which can easily lead to accidental touches.
[0004] Such scenarios can disrupt business logic (e.g., reversing the master-slave roles in payments), leading to data leaks or operational chaos. Especially without a clear master-slave negotiation mechanism, devices may repeatedly switch modes due to competition for the radio frequency field, further causing communication failures or a surge in power consumption. Therefore, non-user-side NFC devices are generally limited to only one mode, while user-side NFC devices (such as NFC-enabled mobile phones) support dual modes.
[0005] It is evident that current NFC technology is insufficient to support large-scale applications in flexible two-way interaction scenarios. This not only leads to low business security and reduced communication efficiency, but also forces equipment manufacturers to mitigate risks by limiting functionality (such as fixed single mode), thus restricting the further application of NFC technology. Summary of the Invention
[0006] In view of this, this specification provides a service execution method and NFC device based on NFC dual-mode to address the shortcomings of related technologies.
[0007] Specifically, this specification is implemented through the following technical solution.
[0008] According to a first aspect of the embodiments of this specification, a service execution method based on NFC dual-mode is provided. The method is applied to an NFC device, which is a dual-mode device with both reader mode and card emulation mode. The NFC device includes at least a reader device detection module, comprising: in reader mode, identifying an approaching object through the reader device detection module; stopping external broadcast signals in response to the reader device detection module identifying the approach of a reader device; sending an activation signal to the reader device in response to a detection signal sent by the reader device, and switching to card emulation mode; receiving a standard read signal sent by the reader device, determining pre-stored tag data, and returning it to the reader device.
[0009] According to a second aspect of the embodiments of this specification, an NFC device is provided. The NFC device includes: an antenna, an NFC chip, an NFC signal wave detection module, a processor, and a card reader detection module. The antenna, the NFC chip, and the processor are connected to form a first circuit, and the antenna, the NFC signal wave detection module, and the processor are connected to form a second circuit. The card reader detection module is connected to the processor. The NFC signal wave detection module is used to sample the voltage on the antenna side and send it to the processor. The card reader detection module is used to detect whether a card reader is approaching the NFC device, and when a card reader is detected, it notifies the processor. The NFC chip is used to switch between card emulation mode and card reader mode according to the switching instructions of the processor. The processor is configured to switch between card reader modes and receive control commands from the processor to broadcast detection signals, send activation signals, send standard read signals, or stop broadcasting signals via the antenna. When in card emulation mode, it determines pre-stored tag data based on the standard read signal received from the card reader via the antenna and returns it to the card reader. The processor is also configured to identify approaching objects via the card reader detection module when in card reader mode; in response to the card reader detection module notifying that a card reader is approaching, it issues a control command to the NFC chip to stop broadcasting signals; in response to the detection signal from the card reader sent by the NFC signal wave detection module, it issues a control command to the NFC chip to send activation signals and switches the NFC chip to card emulation mode via a switching command.
[0010] According to a third aspect of the embodiments of this specification, a service execution apparatus based on NFC dual-mode is provided. The apparatus is applied to an NFC device, the NFC device being a dual-mode device with both reader mode and card emulation mode, and the NFC device includes at least a reader device detection module, wherein: an identification module, in reader mode, identifies an approaching object through the reader device detection module; an anti-accidental touch module, in response to the reader device detection module identifying the approach of the reader device, stops broadcasting signals; a switching module, in response to the detection signal sent by the reader device, sends an activation signal to the reader device and switches to card emulation mode; and a sending module, receives a standard read signal sent by the reader device, determines pre-stored tag data, and returns it to the reader device.
[0011] According to a fourth aspect of the embodiments of this specification, a computer-readable storage medium is provided having a computer program stored thereon, which, when executed by a processor, implements the steps of the method as described in the first aspect.
[0012] According to a fifth aspect of the embodiments of this specification, a computer program product is provided, including a computer program / instructions that, when executed by a processor, implement the steps of the method as described in the first aspect.
[0013] The technical solution provided in this specification includes a dual-mode NFC device capable of operating in both reader mode and card emulation mode. This device includes at least a reader detection module, which initializes to reader mode and monitors for the presence of an approaching reader. Upon detecting a reader, the device stops broadcasting signals and, after sending an activation signal to the reader, switches to card emulation mode, providing its stored tag data to the reader as a simulated card. Therefore, when no reader is nearby, the NFC device functions as a reader, broadcasting standard read signals to retrieve tag data from physical cards. However, when the reader detection module determines an approaching reader, it ceases broadcasting data and switches to simulated card mode to provide tag data, preventing accidental activation of the dual-mode reader as a simulated card. In other words, even if a reader supports both active and passive NFC modes, it will not be mistakenly activated when approaching the NFC device provided in this specification in active NFC mode. Furthermore, the NFC device provided in this specification can also read data from other cards in reader mode when no reader is nearby. This avoids the confusion that can occur when interacting between dual-mode NFC devices, clarifies the conditions for triggering services, and improves the efficiency of data interaction and service execution. Attached Figure Description
[0014] Figure 1 is a flowchart illustrating an exemplary embodiment of an NFC dual-mode service execution method.
[0015] Figure 2 is a schematic diagram of a broadcast radio frequency signal illustrated in an exemplary embodiment of this specification.
[0016] Figure 3 is a schematic diagram illustrating an exemplary embodiment of this specification, showing the cessation of external broadcasting of radio frequency signals.
[0017] Figure 4 is a schematic diagram illustrating the transmission of an activation signal in an exemplary embodiment of this specification.
[0018] Figure 5 is a schematic diagram illustrating a structure for sending activation signals multiple times, as shown in an exemplary embodiment of this specification.
[0019] Figure 6 is a schematic diagram of an interactive process for performing services based on an NFC device, illustrating an exemplary embodiment of this specification.
[0020] Figure 7 is a schematic diagram of the structure of an NFC device shown in an exemplary embodiment of this specification.
[0021] Figure 8 is a schematic diagram of the structure of an NFC device shown in an exemplary embodiment of this specification.
[0022] Figure 9 is a schematic diagram of the structure of an NFC device shown in an exemplary embodiment of this specification.
[0023] Figure 10 is a circuit diagram of an exemplary embodiment of the NFC signal wave detection module shown in this specification.
[0024] Figure 11 is a circuit diagram of an NFC signal wave detection module shown in an exemplary embodiment of this specification.
[0025] Figure 12 is a schematic diagram of the structure of an NFC dual-mode service execution device shown in an exemplary embodiment of this specification. Detailed Implementation
[0026] Near Field Communication (NFC) is a short-range, high-frequency wireless communication technology that allows for simple and secure data exchange between electronic devices. The origins of NFC technology can be traced back to Radio Frequency Identification (RFID) technology in the late 1980s and early 1990s. With its widespread adoption and standardization, NFC has gradually become one of the key technologies in modern mobile devices.
[0027] NFC technology is based on the principle of electromagnetic induction, operates at a frequency of 13.56MHz, and supports a communication distance of approximately 10 centimeters. It achieves data transmission through the interaction of antennas between two devices. Multi-mode NFC devices typically include the following modes.
[0028] Reader mode: The NFC device acts as a reader to read or write information from NFC tags.
[0029] Card emulation mode: The NFC device emulates a smart card, which can be used in scenarios such as payment and access control systems.
[0030] Peer-to-peer mode: NFC devices can directly exchange data with another NFC device, such as file transfer or business card exchange.
[0031] A typical NFC device mainly consists of an antenna and an NFC chip. The antenna is responsible for transmitting and receiving radio frequency signals, which is the foundation for power transfer and data communication. The NFC chip is the core processing unit, managing all communication tasks related to the NFC device and ensuring that the device can interact with other NFC devices or tags efficiently and securely.
[0032] In some cases, NFC chips can be further divided into tag chips (NFC tag chips) and reader chips (NFC reader chips). The tag chip stores data and responds to requests from external readers by returning the stored data via an antenna. The reader chip, on the other hand, transmits signals via an antenna to read data stored in external NFC tags or to communicate with other NFC devices.
[0033] Specifically, the NFC antenna in an NFC device is responsible for transmitting and receiving radio frequency signals, and it typically consists of a small loop antenna. The aforementioned antenna is used for energy transfer; for passive NFC tags, the antenna can capture energy from the radio frequency field generated by the reader and convert it into electrical energy to activate the internal circuitry of the NFC tag. In other words, the NFC tag receives energy from the reader. For example, when the reader sends a probe signal to the NFC tag, the NFC tag adjusts its antenna load (i.e., load modulation) to reflect the modified signal back to the reader, completing the process of transferring the tag data stored in the NFC tag to the reader.
[0034] An NFC chip can be considered a processing unit that integrates a tag chip and a reader chip, responsible for managing and controlling the entire communication process of an NFC device. NFC chips need to ensure compatibility with other NFC devices, meaning the communication process must conform to the communication protocols specified in standards such as ISO / IEC 14443 and ISO / IEC 18092. Furthermore, NFC chips generally support data encryption and authentication functions, improving the security of stored data and the security of business execution processes. Examples include NFC devices used in mobile payments or other sensitive scenarios.
[0035] In addition, for multi-mode NFC devices, NFC devices are not just NFC tags or NFC readers. NFC devices can switch between multiple modes. Therefore, NFC chips also support switching between multiple modes, that is, they support switching between reader mode, card emulation mode and peer-to-peer mode, so that NFC devices can be used flexibly in different application scenarios.
[0036] Furthermore, among the subcategories of NFC chips mentioned above, there are tag chips and reader chips.
[0037] The specific tag chip is a microcontroller embedded in the NFC tag, used for storing and transmitting data. NFC tags are typically passive devices, thus relying on externally supplied power to operate. Tag chips, depending on their type (e.g., Type 1 to Type 4), can provide storage space ranging from a few hundred bytes to a few kilobytes. Furthermore, tag chips generally do not require complex programming interfaces; users can interact with them through simple read and write commands. Of course, some advanced tag chips also support data encryption and authentication to prevent unauthorized access.
[0038] The reader chip is used to read tag data from NFC tags, write tag data to NFC tags, or communicate with other NFC devices. Therefore, reader chips generally have high sensitivity and can detect weak reflected signals from other NFC devices, thereby identifying and reading nearby NFC tags.
[0039] Based on the components of the NFC devices mentioned above, the common hardware connection relationships of components in NFC devices are as follows.
[0040] The first type is a multi-mode NFC device, commonly seen as the NFC module in a smartphone. In this case, the antenna is typically located on the back of the phone, responsible for transmitting and receiving radio frequency signals. The NFC chip, on the other hand, is integrated on the phone's motherboard, handling all NFC-related communication tasks, including interaction with NFC tags and readers. The antenna is connected to the NFC chip via microstrip lines or coaxial cables, and the NFC chip then communicates with the processor via I2C or SPI interfaces.
[0041] The second type is a card reader, typically a dedicated NFC card reader, commonly found in POS machines, access control card readers, smart home locks, and vehicles that support card keys. In this case, the antenna is installed inside the card reader housing, and is usually large and optimized for a long communication distance. The card reader chip is integrated on the card reader's circuit board and is responsible for managing communication with the physical card. The antenna is directly soldered or connected to the card reader chip via a coaxial cable, and the card reader chip then communicates with the processor via USB or other interfaces.
[0042] The second type is the NFC tag, which generally refers to a physical card or an NFC device in card emulation mode. Taking a physical card as an example, the antenna is embedded inside the card, usually a simple loop antenna, used to capture energy and reflect signals. The tag chip is mounted on the physical card's PCB, or packaged on the physical card along with other circuitry and the antenna, primarily responsible for storing data and communicating with the card reader. Typically, due to size constraints, the antenna is directly soldered to the tag chip, forming a complete passive tag.
[0043] These combined structures demonstrate the flexibility and adaptability of NFC technology in different application scenarios. Whether it's a smartphone, a card reader, or a simple NFC tag, each device achieves efficient and reliable near-field communication through reasonable hardware design and connection methods.
[0044] Furthermore, card readers need to actively broadcast a standard read signal to activate passive NFC tags and charge them, thus completing the data acquisition process. Even with low transmission power, the standard read signal still needs to be broadcast continuously for a considerable period to maintain data transmission. Therefore, card readers consume significant power to continuously transmit the radio frequency field while maintaining the broadcast standard read signal. For battery-powered card readers, continuous broadcasting of the standard signal places a heavy burden on energy consumption, significantly shortening their battery life. Even for card readers using external power supplies, continuous broadcasting of the standard read signal is still a waste of energy and increases operating costs if the application scenario involves no NFC tags near the card reader most of the time.
[0045] Therefore, under normal circumstances, when a card reader is not performing any transactions for a period of time, it will switch to a low-power mode, namely Low Power Card Detection (LPCD) mode. LPCD mode is a technology specifically designed to reduce the power consumption of NFC devices, especially in applications requiring long standby times, where it can effectively improve standby time. Compared to traditional card readers that typically need to continuously generate radio frequency fields to detect nearby tags, LPCD mode significantly reduces power consumption without sacrificing performance by introducing an intelligent detection mechanism.
[0046] Specifically, the core idea of LPCD mode is to reduce unnecessary energy consumption by periodically generating probe signals and entering a low-power state between two probes. The following is its specific workflow.
[0047] First, the card reader generates a short-duration radio frequency field at regular intervals, such as once per second, to detect the presence of an NFC tag nearby. Each detection session is extremely brief, typically lasting only a few milliseconds to tens of milliseconds, thus minimizing energy consumption.
[0048] After each detection signal transmission, the card reader enters a low-power standby mode. That is, during the interval between two detections, the main circuitry of the card reader is shut down or enters sleep mode, retaining only essential monitoring circuitry to await the next detection cycle. This low-power standby state significantly reduces energy consumption and extends the battery life of battery-powered card readers.
[0049] Then, once an NFC tag or physical card approaches the reader, the most recently emitted probe signal is captured by the antenna in the NFC tag, and the antenna load modulates back an activation signal. For example, the physical card returns its own unique identifier (UID), or the NFC device returns a custom wake-up pulse signal.
[0050] Finally, the card reader detects the activation signal returned by the NFC tag by monitoring the amplitude changes of the radio frequency field through its antenna or by monitoring its own demodulation circuit. Based on this activation signal, it determines that an NFC tag has entered its communication range. It then immediately exits the low-power LDPC mode and switches to reader mode (or the standard operating mode of the card reader). In reader mode, the card reader can increase the radio frequency field strength to ensure stable communication and initialize based on the protocol, continuously transmitting standard read signals through the antenna. Of course, in some cases, to prevent multi-card collisions, the card reader can also execute an anti-collision algorithm to determine the physical card to be read from multiple physical cards.
[0051] Currently, this type of card reader periodically transmits probe signals in low-power mode, and only begins sending standard read signals after the NFC tag returns an activation signal. This ensures rapid wake-up of the card reader, so users do not experience noticeable delays during actual use. A balance is struck between efficiency and power consumption, meeting the requirements for extended standby time while maintaining operational efficiency.
[0052] However, in the aforementioned interactions, at least one party is a single-mode NFC device. In more complex business scenarios, multi-mode NFC devices are needed to perform business operations, flexibly switching between reader mode and card emulation mode to support complex transactions. This leads to scenarios where multi-mode NFC devices interact. For example, to improve security, smart locks and mobile phones need to verify identities two-way; for multi-scenario compatibility, POS machines can not only act as card readers but also as emulation cards to provide data. The need for interaction between dual-mode NFC devices stems from the flexibility and decentralization trend of business scenarios. Its core advantage lies in breaking the limitations of one-way communication, enabling equal collaboration between devices, and reducing system design complexity by supporting multi-functional integration through hardware reuse.
[0053] However, the interaction between multi-mode NFC devices also presents challenges in mode selection. Taking dual-mode NFC devices as an example, where the problem is particularly pronounced, two NFC devices supporting both active and passive modes are prone to role conflicts when working together. This means that both NFC devices simultaneously attempt to activate each other, leading to communication failure.
[0054] Taking the aforementioned payment scenario as an example, the NFC devices currently used by merchants in payment transactions need to function both as NFC tags, providing NFC touch payment capabilities for consumers' mobile phones, and as card readers, supporting consumers to directly swipe physical cards. During business execution, it's difficult to ensure that the NFC device operates in the mode required by the business design, leading to business logic errors or requiring additional user operations.
[0055] For example, for a merchant-side NFC device, it can be passively identified by an NFC reader on the mobile phone side. The consumer's mobile phone acts as a reader, acquiring information from the NFC tag on the NFC device to trigger subsequent transactions. This effectively solves the problem of needing to issue cards through the mobile phone, allowing transactions to be executed even if no emulated card is set up on the phone. Furthermore, it avoids the issue of users having to manually select a card when multiple emulated cards are set up in the phone's NFC card wallet. However, the merchant-side NFC device still needs to retain its reader capability to support users using physical cards or emulated cards on their phones. Therefore, the merchant-side NFC device cannot determine whether the next transaction interaction will be with a reader or a physical card. If the NFC device always operates in passive mode, when a consumer interacts with a physical card, the NFC device cannot be triggered to read data, causing the transaction to fail. Therefore, for a merchant-side dual-mode NFC device, it needs to default to reader mode to support interaction with physical cards.
[0056] When an NFC device defaults to reader mode, it can trigger the phone to switch to analog card mode after the user enters a usage scenario using their mobile phone (as a card reader). In particular, when a user has multiple analog cards in their wallet, they may find themselves suddenly prompted to select an analog card from their wallet during the intended business process, leading to user ambiguity. Clearly, the issue of accidental touches between dual-mode NFC devices is difficult to resolve, hindering the widespread adoption of dual-mode NFC devices and making it difficult to leverage the advantages of flexible dual-mode switching in business design.
[0057] Based on this, this specification proposes a service execution scheme based on NFC dual-mode, which will be described in detail below with reference to the accompanying drawings.
[0058] Figure 1 is a flowchart illustrating an exemplary embodiment of an NFC dual-mode service execution method. As shown in Figure 1, the method is applied to an NFC device, which is a dual-mode device with both reader mode and card emulation mode, and the NFC device includes at least a reader detection module. The method may include the following steps.
[0059] Step 100: In card reader mode, the card reader detection module identifies the approaching object.
[0060] In one or more embodiments of this specification, the NFC device is an NFC device capable of switching between active and passive modes. The active mode is the reader mode, and the passive mode is the card emulation mode. When the NFC device is in reader mode, it can be called a card reader, and it can broadcast a standard read signal or periodically broadcast a probe signal in LPCD mode. When the NFC device is in card emulation mode, it can be called an emulation card. As an emulation card, it does not actively send signals to the outside world; instead, it stops broadcasting signals and waits for a standard read signal from an external card reader to return tag data after its tag chip has been sufficiently charged. The standard read signal is typically a 13.56MHz radio frequency electromagnetic field.
[0061] As described above, in the embodiments provided in this specification, the NFC device supports interaction with external analog cards, physical cards, or card readers while avoiding accidental touches. Therefore, after power-on, the NFC device defaults to reader mode to prevent interaction and business execution failures when a physical or analog card is nearby. Furthermore, after startup, the NFC device also needs to use a card reader detection module to identify approaching objects, facilitating subsequent determination of whether mode switching is necessary based on the type of the identified object.
[0062] Specifically, after powering on, the NFC device broadcasts a standard read signal in the default card reader mode. Simultaneously, it activates the circuitry of the card reader detection module and receives the detection results returned by that module.
[0063] Optionally, in the embodiments of this specification, the broadcasting method of the standard read signal when the NFC device is working in card reader mode can be pre-set according to the service triggering frequency in the application service scenario of the NFC device. For example, when the NFC device is in a scenario that requires high-frequency service execution, the NFC device can continuously broadcast the standard read signal, which is more efficient than service execution. Or, when the NFC device is in a scenario that triggers services at low frequency, the NFC device can be set to broadcast the standard read signal periodically. In this way, during service execution, the periodically broadcast standard read signal is equivalent to the signal to activate the physical card or the analog card. When it is determined that there is a physical card or the analog card nearby, the service process of reading data with a standard card reader is then executed.
[0064] For example, if the NFC device is a card reader in a community access control system, it can continuously broadcast standard read signals to improve the efficiency of users using the access control system and avoid congestion. Or, if the NFC device is a door lock in a smart home, since users use the door lock less frequently and the door lock is generally battery-powered with higher energy consumption requirements, the NFC device can periodically send standard read signals to reduce energy consumption.
[0065] Furthermore, in the embodiments of this specification, the function of the card reader detection module is to detect the proximity of the NFC card reader. Generally, a card reader must be a device capable of actively emitting radio frequency signals, therefore it must contain a certain proportion of metal. Thus, in this specification, the card reader detection module can employ an electromagnetic sensor. When the metal contained in the card reader enters the magnetic field of the electromagnetic sensor, it generates a new, opposite secondary magnetic field. The electromagnetic sensor can then determine whether the approaching object is a card reader by monitoring the change in the magnetic field. Alternatively, in this specification, the card reader detection module can also employ an infrared detection sensor. This infrared detection sensor can be a matrix that emits infrared light outwards, and the volume of the approaching object is determined by the reflected light signal. Since card readers are typically larger than physical cards, the proximity of the card reader is determined by whether its volume exceeds a threshold limit.
[0066] Of course, the embodiments in this specification do not limit the specific principle and method by which the card reader detection module identifies the card reader. Any method that can distinguish between the card reader and the physical card from any dimension can be applied to the embodiments of this specification as a card reader detection module. For example, the two sensors mentioned above distinguish between the card reader and the physical card from two dimensions: the difference in the content of metal and the difference in volume.
[0067] Optionally, in order to improve the accuracy of identification, in the embodiments of this specification, the card reader detection module may also combine multiple detection methods to identify the type of approaching object, so as to determine whether the approaching object is a card reader or a physical card.
[0068] It should be noted that the function of the card reader detection module in this embodiment is to identify whether an approaching object is a card reader, in order to determine whether it is necessary to switch to card emulation mode in subsequent steps, and to prevent the signal broadcast by the NFC device in card reader mode from mistakenly activating the passive mode of the approaching card reader. Therefore, the identification distance of the card reader detection module should be greater than the effective distance at which the radio frequency signal emitted by the NFC device in card reader mode can activate the physical card. For example, if the radio frequency signal emitted by the NFC device can effectively activate the physical card at a distance of 10cm, or activate the dual-mode NFC device to switch to passive mode, then the identification distance of the card reader detection module should be greater than 10cm.
[0069] On one hand, the NFC device can optimize the recognition distance and sensitivity of the card reader detection module to support the required recognition distance. On the other hand, the NFC device can also reduce the power of the transmitted radio frequency signal in card reader mode to reduce the effective distance of the radio frequency signal to perform business. For example, by adjusting the transmission power, the radio frequency signal can only effectively activate the physical card at a distance of 2cm. This also reduces the recognition distance of the card reader detection module. Of course, to ensure that the distance at which the card reader detection module recognizes the card reader when the card reader approaches is greater than the distance at which the standard read signal emitted by the NFC device activates the card reader to switch to passive mode, the NFC device can transmit the standard read signal at a preset low power. First, by using different card readers to approach the card reader detection module, the effective recognition distance of the card reader detection module can be tested to determine the maximum distance at which the standard read signal can activate the card reader. For example, if the test shows that the card reader detection module can effectively recognize various card readers at 10cm, then the activation distance of the standard read signal cannot exceed 10cm. The preset power can be determined based on the relationship between power and transmission distance. This ensures that the activation distance of the standard read signal emitted by the NFC device at a preset power is less than 10cm, such as 2cm. The activation distance refers to the distance at which the standard read signal emitted by the NFC device can effectively activate the physical card and return the tag data.
[0070] Furthermore, since the NFC device in this embodiment requires several subsequent steps to accurately determine that a card reader is approaching, and this process takes a certain amount of time, to avoid a situation where the card reader is identified but there is not enough time to switch to card emulation mode, the identification distance of the card reader detection module in this embodiment should be a certain distance from the effective distance of the radio frequency signal. For example, if the effective distance of the radio frequency signal is 2cm and the identification distance of the card reader detection module is 7cm, then when the card reader approaches, the NFC device can identify the card reader from a distance of 7cm, and switch to card emulation mode through subsequent steps before the card reader enters within 2cm.
[0071] Step 102: In response to the card reader detection module recognizing the card reader's proximity, stop broadcasting signals to the outside world.
[0072] In one or more embodiments of this specification, when the NFC device detects that a card reader is approaching through the card reader detection module, it can stop broadcasting radio frequency signals to avoid the aforementioned problem of accidental touch.
[0073] Optionally, in one or more embodiments of this specification, when the NFC device is in reader mode, it may periodically broadcast a standard read signal to reduce power consumption. On the other hand, to reduce the charging time of the physical card, the duration of the standard read signal can be set to be relatively long. This way, even if the charging speed cannot reach the level of continuously broadcasting the standard read signal, the charging speed can be maximized to achieve a balance between power consumption and service execution efficiency. For example, the transmission duration of the standard read signal can be 4 milliseconds, so that in most cases, the physical card will have sufficient power to perform services after only two cycles.
[0074] The broadcast period of this standard read signal can also be set as needed, and this manual does not impose any restrictions. For example, the broadcast period can be set according to the service trigger frequency in the application field of the NFC device; the lower the service trigger frequency, the longer the broadcast period. The card reader detection module is continuously working. Once the NFC device detects that a card reader is approaching, regardless of whether the NFC device is in the state of transmitting radio frequency signals or in the interval between transmissions, the NFC device can determine to stop broadcasting radio frequency signals.
[0075] Furthermore, in the embodiments of this specification, to further reduce power consumption, the NFC device may also operate in the existing LPCD mode. When no service is triggered for a period of time, it switches to a low-power mode, only periodically sending probe signals. As mentioned earlier, the duration of the probe signal is shorter, thus consuming less power. In the embodiments of this specification, the transmission duration of the probe signal can be 35 microseconds.
[0076] Furthermore, in the embodiments of this specification, since the detection signal cannot support business execution in the broadcast detection signal scenario, and the activation process requires charging, resulting in a long business process time, in order to balance energy consumption and business process simplification, the NFC device can also alternately broadcast detection signals and standard read signals. Of course, the ratio of broadcast detection signals to broadcast standard read signals can be set as needed. If a greater overall reduction in business time is required, when periodically broadcasting radio frequency signals, a standard read signal is broadcast after each transmission of a detection signal, so that the detection signal and standard read signal are broadcast alternately in a 1:1 ratio. If a greater emphasis is placed on reducing energy consumption, a read signal can be broadcast after broadcasting a specified number of detection signals, for example, a standard read signal can be broadcast after every three broadcasts of detection signals.
[0077] Of course, it should be noted that the power of the standard read signal and the power of the detection signal can be the same, or the power of the detection signal can be lower than that of the standard read signal to further reduce energy consumption.
[0078] Figure 2 is a schematic diagram of the broadcast radio frequency signal provided in this specification. The horizontal axis represents time, and the vertical axis represents energy, which is the voltage converted from the radio frequency signal received by the antenna. It can be seen that three detection signals are received, and one standard read signal is received. Furthermore, the transmission power of the two signals is significantly different, but their durations are similar. The threshold voltage refers to the voltage threshold at which a signal can be identified as being sent by an NFC device, distinguishing it from background electromagnetic noise. At any point in time in Figure 2, as long as the card reader detection module detects the card reader's approach, it stops transmitting the radio frequency signal, as shown in Figure 3.
[0079] As shown in Figure 3, the NFC device determines the proximity of the card reader precisely within the duration of its radio frequency (RF) signal transmission. To avoid the aforementioned accidental touch issue, it immediately stops broadcasting RF signals. The dashed waveform represents the video signal that is not being transmitted. In other words, even while in transmission mode, as soon as a card reader is detected in the near field, the device stops transmitting RF signals and begins waiting to receive RF signals from the card reader.
[0080] In step 104, in response to the detection signal sent by the card reader, an activation signal is sent to the card reader, and the card emulation mode is switched.
[0081] In one or more embodiments of this specification, since the card reader detection module also has a certain error rate, and in order to minimize the occurrence of accidental touches, the detection distance of the card reader detection module may be set to a relatively far distance. It is also possible that the card reader might "pass by" and be identified. Therefore, the NFC device may not switch to card emulation mode initially, but instead wait for the detection signal emitted by the card reader. If a detection signal is received through the antenna, it indicates that a card reader is indeed approaching and wants to obtain its stored tag data. Therefore, the NFC device can return an activation signal and switch to card emulation mode. Conversely, if no detection signal is received through the antenna within the second time period, it can be determined that the card reader detected by the card reader detection module in step 102 is not approaching to perform a service. Thus, the state of step 100 can be restored, continuing to transmit radio frequency signals externally in card reader mode and monitor approaching card readers. The second time period can be set as needed, and this specification does not impose any restrictions.
[0082] Specifically, dual-mode NFC devices receive or transmit signals in a time-sharing manner. After step 102, the device no longer switches its operating mode but only receives signals through the antenna. Once a detection signal from a card reader is received, it can be determined that a card reader in LPCD mode is approaching, and that card reader needs to be activated to switch to standard mode and send standard read signals.
[0083] For example, taking a mobile phone with an NFC module as the card reader, when the phone screen is on, the NFC module operates in LPCD mode, broadcasting a probe signal at fixed intervals. When the phone approaches the NFC device described in this embodiment, the NFC device receives the probe signal and returns an activation signal to the phone. After receiving the activation signal, the phone's NFC module determines that there is an NFC tag that needs to be read, and then sends a standard read signal to the NFC device to perform the classic process of reading tag data from the NFC tag.
[0084] It should be noted that in step 102 of this embodiment, although the NFC device recognizes the card reader, it does not switch to card emulation mode, but merely stops broadcasting signals. Only after receiving a detection signal in step 104 is it confirmed that a working card reader is approaching, and then it switches to card emulation mode.
[0085] Besides the previously mentioned possibility that the card reader is simply "passing by" and thus identified, it's also possible that the card reader is in a turned-off state. The card reader detection module in this embodiment is used to identify whether an approaching object is a card reader, not whether the card reader is active. Therefore, when a turned-off card reader approaches an NFC device, the NFC device will not switch to card emulation mode but will wait for the card reader to send a detection signal.
[0086] For example, when a user's phone is in screen-off mode, the phone's NFC module typically stops sending signals to conserve energy. Since the phone's NFC module is not active and the NFC device also stops sending signals, this means that even if the phone and the NFC device are physically close, the relevant business processes will not be initiated because the NFC function is not activated.
[0087] However, this situation also provides users with an opportunity to proactively activate their phones. Since the expected business process isn't activated when the user brings their phone close to the NFC device, it essentially reminds the user to check their phone. The user can then manually turn on the screen to activate the phone's NFC module, allowing the NFC device to establish a connection and complete the necessary interaction. Furthermore, in some cases, the phone can automatically turn on the screen when it detects the user's hand movements while holding the phone. For example, when a user holds their screen-off phone in front of them, the phone will automatically turn on. Therefore, in some situations, the user doesn't need to manually turn on the screen; the phone may automatically wake up from its screen-off state and switch to screen-on mode. Once the screen is lit, the phone's NFC module will also be activated, enabling the phone to communicate with the NFC device and thus facilitate the smooth execution of the business process.
[0088] Of course, since the actual business scenarios are more complex, it cannot be guaranteed that the card reader that is not in working state will switch to working state later, that is, the mobile phone will turn from off screen to on screen. Therefore, if the card reader does not send a detection signal, it can return to step 100 after waiting for the second time to avoid affecting the execution of other businesses.
[0089] Additionally, the card reader device near the NFC device may also be a dual-mode NFC device. As mentioned earlier, dual-mode NFC devices transmit and receive signals in a time-sharing manner, with the device only being active when transmitting a probe signal.
[0090] Therefore, to quickly activate the card reader, in this specification, the NFC device simultaneously sends an activation signal to the card reader upon receiving a probe signal from the card reader. As shown in Figure 4, which is a schematic diagram of sending the activation signal provided in this specification, the upper horizontal axis represents the probe signal received by the NFC device's antenna, i.e., the signal sent by the card reader, and the lower horizontal axis represents the activation signal sent by the NFC device. It can be seen that upon receiving the probe signal, i.e., after the antenna circuit voltage exceeds the threshold voltage, the NFC device simultaneously returns an activation signal to the card reader.
[0091] Furthermore, to ensure that the card reader can be effectively activated by the activation signal, the NFC device can send the activation signal multiple times.
[0092] Specifically, after the NFC device first confirms receipt of a probe signal from the card reader, in addition to simultaneously transmitting an activation signal to the card reader, it can also record the number of times the activation signal is sent. This recording continues whenever a probe signal is received and an activation signal is returned. When the recorded number of activation signal transmissions reaches a preset number, it is determined that the card reader has been activated, and no further activation signals are sent; instead, the device waits for a standard read signal from the card reader. Of course, this preset number can be set as needed, and this manual does not impose any restrictions. Figure 5 is a schematic diagram of multiple activation signal transmissions provided in this manual, similar to Figure 4. In Figure 5, each activation signal is sent upon receiving a probe signal. The preset number in Figure 5 is 2, meaning that even if a probe signal is received subsequently, no activation signal will be sent; instead, the device waits for a standard read signal.
[0093] In the embodiments described in this specification, the transmission duration of the activation signal can be determined based on the minimum transmission duration of the detection signal sent by different card reading devices. For example, if the minimum transmission duration of the detection signal is 5 microseconds, then the transmission duration of the activation signal is set to 5 microseconds.
[0094] Of course, the duration of the activation signal transmission can be longer than the duration of the detection signal transmitted by the card reader, so that the activation signal covers more of the time the card reader is in an activated state. For example, assuming the duration of the detection signal transmitted by the card reader is 35 microseconds, then the duration of the activation signal transmitted by the NFC device is greater than 35 microseconds. However, since the transmission duration of the detection signals of different card readers is not entirely consistent, in this specification, the transmission duration of the activation signal can be determined based on statistically analyzed transmission durations of different detection signals, for example, set to any fixed value between 35 microseconds and 250 microseconds.
[0095] In this specification, the NFC device can also dynamically adjust the duration of its own activation signal transmission based on the duration of the probe signal sent by the card reader. Since the duration of the probe signal can be determined after the probe signal is received for the first time, the NFC device can adjust the duration of its own activation signal transmission based on the duration of the probe signal, so that the transmission duration of the activation signal covers the transmission duration of the probe signal sent by the card reader.
[0096] Step 106: Receive the standard read signal sent by the card reader, determine the pre-stored tag data, and return to the card reader.
[0097] In one or more embodiments of this specification, after switching to simulated card mode, the NFC device can wait for a standard read signal sent by the card reader. Upon receiving the standard read signal, it determines the pre-stored tag data and returns it to the card reader, enabling the card reader to perform business based on the tag data. This process is the same as the process of a card reader reading an NFC tag in standard NFC technology, and will not be described in detail here. It should be noted that in this specification, the tag data refers to the data stored in the NFC tag. If the NFC device has an independent tag chip, then the tag data is the data stored in that tag chip.
[0098] Additionally, if, after switching to analog card mode, a standard read signal is not received from the card reader after the first waiting period, it indicates two possible scenarios: either the card reader has moved out of the NFC device's communication range after step 104, or the card reader was not activated in step 104. The first waiting period can be set as needed and is not limited in this manual.
[0099] Therefore, in the embodiments of this specification, the NFC device can identify whether the card reader is still in the near field through the card reader detection module if it does not receive a standard read signal within the first period after switching to the simulated card mode.
[0100] If the card reader detection module determines that the card reader is still within the near field range, the NFC device can simultaneously send an activation signal based on the detection signal sent by the card reader to reactivate the card reader. This involves repeating steps 104 and 106.
[0101] If the card reader detection module cannot identify the card reader, it means that the card reader has left. In this case, the NFC device can switch to card reader mode and continue to broadcast the standard read signal according to the requirements of card reader mode.
[0102] In the embodiments described in this specification, after the NFC device returns tag data to the card reader, if the card reader correctly receives the tag data, it will return a notification of successful reception to the NFC device. In response to the notification from the card reader that the tag data has been received, the NFC device may also wait for a third period of time to allow the card reader to move out of the communication range and avoid repeating the transaction.
[0103] After waiting for the third time interval, the card reader detection module can be used again to identify the card reader. This checks if there are other card readers nearby. If so, steps 102-106 can be repeated. If not, the system switches back to card reader mode and broadcasts a standard reading signal.
[0104] Optionally, since the same card reader device generally does not need to repeatedly acquire tag data within a short period of time, it is rare for a card reader device to acquire the same tag data multiple times through the standard read signal. However, to prevent the card reader device from repeatedly reading the same tag data if it has not left the communication range within a third time period after acquiring the tag data, in the embodiments of this specification, the NFC device may also, in repeating steps 102-106, determine whether the data carried by the detection signal or the characteristics of the detection signal matches the detection signal of the card reader device that previously acquired tag data, when executing the receiving detection signal. This is to determine whether it is still the same card reader device repeating steps 102-106 with itself. If so, it may not respond to its standard read signal or stop sending the activation signal. Until no card reader device is recognized, the NFC device switches to card reader mode, or when another card reader device is recognized, it repeats steps 102-106.
[0105] In summary, the dual-mode NFC device provided in this specification, capable of operating in both reader mode and card emulation mode, includes at least a reader detection module. It initializes to reader mode and monitors for the presence of an approaching reader. When a reader is detected, it stops broadcasting signals and, after sending an activation signal to the reader, switches to card emulation mode, providing its stored tag data to the reader as a simulated card. Therefore, when no reader is nearby, the NFC device functions as a reader, broadcasting standard read signals to retrieve tag data from either a simulated or physical card. However, when the reader detection module determines that a reader is nearby, it ceases broadcasting data and switches to simulated card mode to provide tag data, preventing the dual-mode reader from being mistakenly activated as a simulated card. In other words, even if the card reader also supports active and passive NFC modes, it will not be activated by the NFC device provided in this manual. The NFC device provided in this manual can also read data from other cards in card reader mode when no card reader is nearby, without causing confusion in business activation. This not only clarifies the business triggering conditions but also improves the efficiency of data interaction and business execution.
[0106] Figure 6 is an interactive flowchart of a business process based on an NFC device, as provided in this specification. Figure 6 also illustrates a card reader and a physical card to show the steps performed by the NFC device when facing different devices.
[0107] Step 600: After startup, the NFC device operates in reader mode by default, broadcasting standard read signals and probe signals. The signal transmission strategy of this NFC device can be referred to the embodiment shown in Figure 1 above, which illustrates the transmission of standard read signals and probe signals in reader mode; this will not be elaborated further in this specification.
[0108] Step 601: The NFC device determines whether the card reader identification module has detected the card reader device approaching. If so, proceed to step 602; otherwise, proceed to step 609. That is, if a physical card is approaching, steps 609-611 are executed in card reader mode; if a card reader device is approaching, steps 602-608 are executed.
[0109] Step 602: The NFC device stops broadcasting signals.
[0110] Step 603: The card reader periodically sends a detection signal in LPCD mode.
[0111] Step 604: The NFC device returns an activation signal in sync with the detection signal period. When the activation signal is transmitted a preset number of times, it switches to analog card mode.
[0112] Step 605: The card reader exits LPCD mode and sends a standard read signal.
[0113] Step 606: The NFC device returns tag data.
[0114] Step 607: After receiving the tag data, the card reader returns a notification.
[0115] Step 608: After waiting for the third time interval, the NFC device switches to reader mode and returns to the state of step 600. At this point, it can detect whether a reader device is present. If so, proceed to steps 602-607. If not, continue broadcasting the standard read signal or probe signal in the state of step 600.
[0116] Step 609: The NFC device sends a standard read signal. Once a physical card is detected approaching, a standard read signal can be sent directly.
[0117] Step 610: The physical card returns tag data.
[0118] Step 611: After receiving the tag data, the NFC device returns a notification.
[0119] Figure 7 illustrates an exemplary embodiment of an NFC device, which includes an antenna 700, an NFC chip 701, an NFC signal wave detection module 702, a processor 703, and a card reader detection module 704. The antenna 700, the NFC chip 701, and the processor 703 are connected to form a first circuit, and the antenna 700, the NFC signal wave detection module 702, and the processor 703 are connected to form a second circuit. The card reader detection module 704 is connected to the processor 703. The NFC device can execute the business execution process shown in the above embodiments. The NFC signal wave detection module 702 is used to sample the voltage on the antenna 700 side and send it to the processor 703. The card reader detection module 704 is used to detect whether a card reader is approaching the NFC device, and when a card reader is detected, it notifies the processor 703. The NFC chip 701 is used to switch between card emulation mode and card reader mode according to the switching instructions from the processor 703; and to receive control instructions from the processor 703 to broadcast detection signals, send activation signals, send standard read signals, or stop broadcasting signals through the antenna 700. When in card emulation mode, the processor 703 determines the pre-stored tag data based on the standard read signal received from the card reader by the antenna 700 and returns it to the card reader. The processor 703 is used to identify approaching objects via the card reader detection module 704 when in card reader mode. In response to the card reader detection module 704 notifying that a card reader is approaching, the processor 703 issues a control command to the NFC chip 701 to stop broadcasting signals. In response to the detection signal from the card reader sent by the NFC signal wave detection module 702, the processor 703 issues a control command to the NFC chip 701 to send an activation signal and switches the NFC chip 701 to card emulation mode via a switching command.
[0120] Optionally, the NFC chip 701 is also used to broadcast a standard read signal when in reader mode.
[0121] Optionally, the NFC chip 701 is also used to receive tag data sent by the physical card through the antenna 700 side, so as to perform subsequent services based on the tag data, wherein the tag data is sent by the physical card after being activated by the standard read signal.
[0122] Optionally, the processor 703 is further configured to, in response to the card reader notifying that the tag data has been received, wait for a third period of time, and then use the card reader detection module 704 to re-identify whether the card reader is still in the near field; if the card reader is not identified, send a switching command to the NFC chip 701.
[0123] The NFC chip 701 then switches back to reader mode according to the switching command and broadcasts a standard read signal.
[0124] Optionally, the NFC chip 701 includes a tag chip 7011 and a reader chip 7012, as shown in Figure 8. When the reader chip 7012 stops working, the NFC chip 701 is in card emulation mode; when the reader chip 7012 starts working, the NFC chip 701 is in reader mode, and the reader chip 7012 is initialized to start working. Specifically, the tag chip 7011 is used to determine pre-stored tag data based on the standard read signal received from the reader device at the antenna 700 side, and return it to the reader device; the reader chip 7012 is used to receive control commands from the processor 703 and transmit the data through the antenna 700. The processor 7012 is configured to: broadcast detection signals, send activation signals, send standard read signals, or stop broadcasting signals; receive switching instructions sent by the processor 703 and switch between starting and stopping operation; and, in response to a notification from the card reader detection module 704 that a card reader is approaching, issue a control instruction to the card reader chip 7012 to stop broadcasting signals. In response to a detection signal from the card reader sent by the NFC signal wave detection module 702, the processor 703 issues a control instruction to the card reader chip 7012 to send an activation signal and sends a switching instruction to the card reader chip 7012, causing the card reader chip 7012 to switch from starting operation to stopping operation.
[0125] Furthermore, as can be seen in Figure 8, since the NFC chip 701 is divided into a tag chip 7011 and a reader chip 7012, the first circuit is also split into two branches. This means that the circuit connected to the antenna 700, the tag chip 7011, and the processor 703, and the circuit connected to the antenna 700, the reader chip 7012, and the processor 703, form two parallel circuits in the first circuit.
[0126] Alternatively, the NFC device can also be equipped with two antennas 700, as shown in Figure 9. The antennas 700 include a first antenna 7001 and a second antenna 7002. The first antenna 7001, the tag chip 7011, and the processor 703 are connected to form the first branch of the first circuit. The second antenna 700, the card reader chip 7012, and the processor 703 are connected to form the second branch of the first circuit. The second antenna 700, the NFC signal wave detection module 702, and the processor 703 are connected to form the second circuit.
[0127] Furthermore, in this embodiment of the specification, the NFC signal wave detection module is used to detect the voltage value corresponding to the signal received by the antenna and to convert the analog signal into a digital signal. By analyzing the voltage amplitude, duration, and other parameters of the signal, the type of the received signal can be determined.
[0128] The specific circuit corresponding to the NFC signal wave detection module is shown in Figure 10. Figure 10 includes an antenna, the NFC signal wave detection module, and a processor. The NFC signal wave detection module includes a U1 circuit for amplifying, shaping, and sampling the signal, and also includes diodes, resistors, capacitors, and a ground. If the NFC signal wave detection module includes an analog-to-digital converter (ADC), the digital signal conversion can be performed externally to the processor. If the processor itself has an ADC, the NFC signal wave detection module can also omit the ADC, and the processor can directly perform the ADC, as shown in Figure 11.
[0129] The processor can sample the converted voltage value to identify what signal has been received. Furthermore, since the radio frequency signal in NFC technology is typically 13.56MHz, to ensure sampling quality, according to the Nyquist sampling theorem, the analog-to-digital conversion sampling frequency must be at least twice the frequency of the signal of interest. Considering the potential for aliasing in practical applications, to avoid aliasing, in this embodiment, the analog-to-digital signal sampling frequency is at least 2.56 times the signal frequency.
[0130] In summary, in the technical solution provided in this specification, when no card reader is nearby, the NFC device functions as a card reader, broadcasting standard read signals to support the acquisition of tag data from either analog or physical cards. However, when the card reader detection module determines that a card reader is nearby, it ceases broadcasting data and switches to analog card mode, providing tag data and preventing the dual-mode card reader from being mistakenly activated as an analog card. In other words, even if a card reader supports both active and passive NFC modes, it will not be activated by the NFC device provided in this specification. Furthermore, the NFC device provided in this specification can read data from other cards in card reader mode when no card reader is nearby, without causing confusion in service activation. This clarifies the service triggering conditions and improves the efficiency of data interaction and service execution.
[0131] Corresponding to the aforementioned embodiments of the NFC dual-mode service execution method in the blockchain system, this specification also provides embodiments of an NFC dual-mode service execution device. This device is applied to an NFC device, which is a dual-mode device with both reader mode and card emulation mode, and the NFC device includes at least a reader device detection module. This reader device detection module is a physical module on the NFC device.
[0132] Referring to Figure 12, the device may include: a card reader module 1200, which identifies approaching objects through the card reader detection module when the NFC device is in card reader mode; a detection module 1201, which stops broadcasting signals in response to the card reader detection module detecting the proximity of the card reader; a card emulation module 1202, which sends an activation signal to the card reader in response to the detection signal sent by the card reader and switches to card emulation mode; and a sending module 1203, which receives the standard reading signal sent by the card reader, determines the pre-stored tag data, and returns it to the card reader.
[0133] Optionally, the card reader module 1200, in response to determining that a physical card is near the NFC device, sends a standard read signal to the physical card; and receives tag data returned by the physical card to perform subsequent business.
[0134] Optionally, when the analog card module 1202 determines that it has received a detection signal sent by the card reader, it synchronously sends an activation signal to the card reader.
[0135] Optionally, the analog card module 1202 synchronously sends an activation signal to the card reader and records the number of times the activation signal is synchronously sent to the card reader; when the recorded number of activation signal transmissions reaches a preset number, the synchronous transmission of activation signals stops.
[0136] Optionally, the card emulation module 1202, in response to not receiving a standard read signal from the card reader within a first time period after switching to card emulation mode, identifies the card reader; if the card reader is identified, it continues to synchronously send an activation signal based on the detection signal sent by the card reader; if the card reader is not identified, it switches back to card reader mode and continues to broadcast the standard read signal.
[0137] Optionally, when the card reader module 1202 detects that the card reader is approaching, it waits for a detection signal sent by the card reader for a second period of time; if no detection signal is received from the card reader within the second period of time, it continues to broadcast a standard reading signal in card reader mode.
[0138] Optionally, after sending the tag data back to the card reader, the sending module 1203, in response to the card reader's notification that the tag data has been received, waits for a third time period and then identifies the card reader again through the card reader detection module; if the card reader is not identified, it switches back to card reader mode and broadcasts a standard reading signal.
[0139] Optionally, in the card reader module 1200, the NFC device broadcasts a standard read signal according to a first time interval and a probe signal according to a second time interval, wherein the first time interval is longer than the second time interval.
[0140] Optionally, the card reader module 1200 transmits a standard reading signal at a preset power, and the activation distance of the standard reading signal transmitted at the preset power to the physical card is less than the detection distance of the card reader detection module to the card reader device.
[0141] Optionally, the transmission duration of the activation signal is not less than the transmission duration of the detection signal.
[0142] Optionally, the analog card module 1202 determines the transmission duration of the detection signal sent by the card reader; and adjusts the transmission duration of the subsequent activation signal based on the transmission duration of the detection signal.
[0143] The specific implementation process of the functions and roles of each unit in the above device can be found in the implementation process of the corresponding steps in the above method, and will not be repeated here.
[0144] Based on the same concept as the methods described above, this specification also provides an electronic device, including: a processor; a memory for storing processor-executable instructions; wherein the processor performs the steps of the method as described in any of the above embodiments by executing the executable instructions.
[0145] Based on the same concept as the methods described above, this specification also provides a computer-readable storage medium having computer instructions stored thereon that, when executed by a processor, implement the steps of the methods as described in any of the above embodiments.
[0146] Based on the same concept as the methods described above, this specification also provides a computer program product, including a computer program / instructions that, when executed by a processor, implement the steps of the methods as described in any of the above embodiments.
Claims
1. A service execution method based on NFC dual-mode, the method being applied to an NFC device, the NFC device being a dual-mode device with reader mode and card emulation mode, and the NFC device including at least a reader device detection module, comprising: In card reader mode, the card reader detection module identifies approaching objects; In response to the card reader detection module detecting the proximity of the card reader, the external broadcast signal is stopped; In response to the detection signal sent by the card reader, an activation signal is sent to the card reader, and the card emulation mode is switched; The system receives a standard read signal from the card reader, determines the pre-stored tag data, and returns it to the card reader.
2. The method according to claim 1, further comprising: In response to determining that a physical card is near the NFC device, a standard read signal is sent to the physical card; Receive tag data returned by the physical card to execute subsequent services.
3. The method according to claim 1, wherein in response to a detection signal sent by the card reader, an activation signal is sent to the card reader, comprising: When it is confirmed that a detection signal has been received from the card reader, an activation signal is simultaneously sent to the card reader.
4. The method according to claim 3, wherein an activation signal is synchronously sent to the card reader, comprising: Simultaneously send an activation signal to the card reader and record the number of times the activation signal is sent to the card reader. When the number of recorded activation signal transmissions reaches the preset number, synchronous transmission of activation signals will stop.
5. The method according to claim 3, further comprising: If no standard read signal is received from the card reader within a first period after switching to card emulation mode, the card reader is identified. If the card reader is detected, an activation signal will be sent synchronously based on the detection signal sent by the card reader. If the card reader is not detected, switch back to card reader mode and continue broadcasting the standard read signal.
6. The method according to claim 1, further comprising: When the card reader is detected to be approaching, wait for the detection signal sent by the card reader within a second time period; If no detection signal is received from the card reader within the second time period, the standard reading signal will continue to be broadcast in card reader mode.
7. The method according to claim 1, further comprising: After returning the tag data to the card reader, in response to the card reader's notification that the tag data has been received, wait for a third time period, and then identify the card reader again through the card reader's detection module; If no card reader is detected, switch back to card reader mode and broadcast a standard read signal.
8. The method according to any one of claims 6 or 7, broadcasting a standard read signal, comprising: The NFC device broadcasts a standard read signal at a first time interval and a probe signal at a second time interval, wherein the first time interval is longer than the second time interval.
9. The method according to claim 1, broadcasting a standard read signal, comprising: The activation distance of the physical card based on the standard read signal transmitted at the preset power is less than the detection distance of the card reader detection module to the card reader.
10. The method according to any one of claims 1, 3 to 5, wherein the transmission duration of the activation signal is not less than the transmission duration of the detection signal.
11. The method according to claim 1, further comprising: Determine the transmission duration of the detection signal sent by the card reader; The transmission duration of the subsequent activation signal is adjusted based on the transmission duration of the detection signal.
12. An NFC device, comprising: The system comprises an antenna, an NFC chip, an NFC signal wave detection module, a processor, and a card reader detection module. The antenna, the NFC chip, and the processor are connected to form a first circuit. The antenna, the NFC signal wave detection module, and the processor are connected to form a second circuit. The card reader detection module is connected to the processor. The NFC signal wave detection module is used to sample the voltage on the antenna side and send it to the processor; The card reader detection module is used to detect whether a card reader is approaching the NFC device, and to notify the processor when a card reader is detected approaching. The NFC chip is used to switch between card emulation mode and card reader mode according to the switching instructions of the processor; and to receive control instructions from the processor to broadcast detection signals, send activation signals, send standard read signals, or stop broadcasting signals through the antenna; when in card emulation mode, it determines the pre-stored tag data according to the standard read signal sent by the card reader device received by the antenna side, and returns it to the card reader device. The processor is configured to, in card reader mode, identify an approaching object through the card reader detection module; in response to the card reader detection module notifying that a card reader is approaching, issue a control command to the NFC chip to stop broadcasting signals; in response to the detection signal of the card reader sent by the NFC signal wave detection module, issue a control command to the NFC chip to send an activation signal, and switch the NFC chip to card emulation mode via a switching command.
13. The NFC device according to claim 12, wherein the NFC chip is further configured to broadcast a standard read signal when in reader mode.
14. The NFC device according to claim 13, wherein the NFC chip is further configured to receive tag data sent by a physical card via an antenna side, so as to perform subsequent services based on the tag data; in, The tag data is sent after the physical card is activated by the standard read signal.
15. The NFC device according to claim 12, wherein the processor is further configured to, in response to the card reader notifying that the tag data has been received, wait for a third period of time, and re-identify whether the card reader is still in the near field through the card reader detection module; if the card reader is not identified, send a switching command to the NFC chip; The NFC chip then switches back to reader mode according to the switching command and broadcasts a standard read signal.
16. The NFC device according to claim 12, wherein the NFC chip comprises: The NFC chip comprises a tag chip and a reader chip; when the reader chip stops working, the NFC chip is in card emulation mode; when the reader chip starts working, the NFC chip is in reader mode, and the NFC chip is initialized to the reader chip initialization startup state; wherein: The tag chip is used to determine the pre-stored tag data based on the standard read signal sent by the card reader received by the antenna side, and return it to the card reader. The card reader chip is used to receive control commands from the processor, broadcast detection signals, send activation signals, send standard read signals, or stop broadcasting signals through the antenna; it is also used to receive switching commands from the processor and switch between starting and stopping operation. The processor is configured to, in response to the card reader detection module notifying that a card reader is approaching, issue a control command to the card reader chip to stop broadcasting signals; and, in response to the detection signal of the card reader sent by the NFC signal wave detection module, issue a control command to the card reader chip to send an activation signal, and send a switching command to the card reader chip to switch the card reader chip from being started to being stopped.
17. The NFC device according to claim 16, wherein the antenna includes a first antenna and a second antenna, the first antenna, the tag chip and the processor are connected to form a first branch of the first circuit, the second antenna, the card reader chip and the processor are connected to form a second branch of the first circuit, and the second antenna, the NFC signal wave detection module and the processor are connected to form a second circuit.
18. A service execution device based on NFC dual-mode, the device being applied to an NFC device, the NFC device being a dual-mode device of reader mode and card emulation mode, and the NFC device including at least a reader device detection module, comprising: The identification module, in card reader mode, identifies approaching objects through the card reader device detection module; The anti-accidental touch module stops broadcasting signals in response to the card reader detection module detecting the proximity of the card reader. The switching module, in response to the detection signal sent by the card reader, sends an activation signal to the card reader and switches to card emulation mode; The sending module receives the standard reading signal sent by the card reader, determines the pre-stored tag data, and returns it to the card reader.
19. A computer-readable storage medium having a computer program stored thereon, the program being executed by a processor to implement the steps of the method as claimed in any one of claims 1-11.
20. A computer program product comprising a computer program / instructions that, when executed by a processor, implement the steps of the method as claimed in any one of claims 1-11.