NFC-based communication method and device, equipment and medium
By setting preset wake-up conditions in the NFC device and detecting radio frequency signals using key frequency or continuous signals, the problem that NFC devices cannot wake up independently in the lock screen state is solved, and fast communication and high-accuracy NFC interaction at low power consumption are achieved, improving user experience.
Patent Information
- Application Number
- CN202510625090.1
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2025-05-15
- Publication Date
- 2025-07-25
AI Technical Summary
Existing NFC devices lack performance in low-power mode and cannot automatically wake up and communicate in lock screen state, resulting in poor user experience.
By setting a preset wake-up condition, the radio frequency signal of the NFC tag is detected using the key frequency or the number of consecutive signals, and the terminal device switches from the low-power Listen state to the Polling state for communication when the conditions are met.
It realizes that the terminal device can be quickly awakened without manual unlocking in the lock screen state, reducing power consumption and improving the accuracy and speed of NFC communications, and improving user experience.
Smart Images

Figure CN120379003A_ABST
Abstract
Description
Technical Field
[0001] The present disclosure relates to the technical field of NFC device communication, and in particular, to a communication method, apparatus, device, and medium based on NFC. Background Art
[0002] The application of NFC (Near Filed Comunication) technology on mobile terminals has become increasingly common. With the increase in the user group, the NFC ecosystem has become more and more perfect. For example, the widely promoted Alipay Tap & Pay has stricter requirements for the use of NFC functions. For terminal mobile phone manufacturers, they hope that NFC devices have comprehensive functions, powerful performance, and ultra-low power consumption. However, when using the low-power mode with optimized performance, the performance is about 85% of the normal working mode. Therefore, a new interaction mode with excellent performance and ultra-low power consumption has become an urgent problem to be solved. Summary of the Invention
[0003] To solve the above technical problems, the present disclosure provides a communication method, apparatus, device, and medium based on NFC.
[0004] According to one aspect of the present disclosure, there is provided a communication method based on NFC, the method comprising:
[0005] When the terminal device detects the radio frequency field of the target NFC tag, receiving a first radio frequency signal emitted by the target NFC tag; wherein, the terminal device is at least in the Listen state;
[0006] When the first radio frequency signal meets a preset wake-up condition, switching from the Listen state to the Polling state to communicate with the target NFC tag;
[0007] After establishing communication with the target NFC tag, reading the tag content of the target NFC tag.
[0008] According to another aspect of the present disclosure, there is also provided a communication apparatus based on NFC, the apparatus comprising:
[0009] A signal receiving module, configured to receive a first radio frequency signal emitted by the target NFC tag when the terminal device detects the radio frequency field of the target NFC tag; wherein, the terminal device is in the Listen state;
[0010] A state switching module, configured to switch from the Listen state to the Polling state to communicate with the target NFC tag when the first radio frequency signal meets a preset wake-up condition;
[0011] A tag reading module, configured to read the tag content of the target NFC tag after establishing communication with the target NFC tag.
[0012] According to another aspect of the present disclosure, an electronic device is further provided, and the electronic device includes:
[0013] A processor;
[0014] A memory for storing executable instructions of the processor;
[0015] The processor is configured to read the executable instructions from the memory and execute the instructions to implement the above method.
[0016] According to another aspect of the present disclosure, a computer-readable storage medium is further provided, and the storage medium stores a computer program, and the computer program is used to execute the above method.
[0017] The technical solution provided by the embodiments of the present disclosure has the following advantages compared with the prior art:
[0018] The technical solution provided by the embodiments of the present disclosure includes: when the terminal device detects the radio frequency field of the target NFC tag, receiving a first radio frequency signal transmitted by the target NFC tag; wherein, the terminal device is at least in the Listen state; when the first radio frequency signal meets a preset wake-up condition, switching from the Listen state to the Polling state to communicate with the target NFC tag; after establishing communication with the target NFC tag, reading the tag content of the target NFC tag.
[0019] This technical solution does not need to consider whether the terminal device is in the locked screen or unlocked state, but can actively wake up the terminal device through a preset wake-up condition, so that the terminal device switches from the low-power Listen state to the normal Polling state, enters the normal NFC communication interaction process, and reads the tag content of the target NFC tag; thus, while reducing the power consumption of the terminal device, it also improves the accuracy and interaction speed of NFC communication interaction, and can achieve a faster and more extreme user experience. Description of the Drawings
[0020] The drawings here are incorporated into the description and form a part of this description, showing embodiments consistent with the present disclosure and used together with the description to explain the principles of the present disclosure.
[0021] In order to more clearly illustrate the technical solutions in the embodiments of the present disclosure or the prior art, the following will briefly introduce the drawings required for the description of the embodiments or the prior art. Obviously, for those of ordinary skill in the art, other drawings can be obtained based on these drawings without creative efforts.
[0022] Figure 1 Flowchart of the NFC-based communication method according to an embodiment of the present disclosure;
[0023] Figure 2 Schematic diagram of the NFC communication interaction process during unlocking according to an embodiment of the present disclosure;
[0024] Figure 3 Schematic diagram of the NFC communication interaction process during screen locking according to an embodiment of the present disclosure;
[0025] Figure 4 Schematic diagram of the 13.02 MHz radio frequency signal according to an embodiment of the present disclosure;
[0026] Figure 5 Schematic diagram of the radio frequency parameters of the radio frequency signal according to an embodiment of the present disclosure;
[0027] Figure 6 Schematic diagram of the structure of the NFC-based communication device according to an embodiment of the present disclosure;
[0028] Figure 7 Schematic diagram of the structure of the electronic device according to an embodiment of the present disclosure. Detailed implementation manners
[0029] In order to be able to more clearly understand the above objects, features and advantages of the present disclosure, the solution of the present disclosure will be further described below. It should be noted that, without conflict, the embodiments of the present disclosure and the features in the embodiments may be combined with each other.
[0030] Many specific details are set forth in the following description in order to fully understand the present disclosure, but the present disclosure may also be implemented in other ways different from those described herein; obviously, the embodiments in the specification are only a part of the embodiments of the present disclosure, rather than all of the embodiments.
[0031] Currently, with the development of the NFC function, a new interaction mode with excellent performance and ultra-low power consumption has become an urgent problem to be solved. Based on this, the embodiments of the present disclosure provide a communication method, device, equipment and medium based on NFC.
[0032] In a scenario, when the terminal device (such as a smart phone) to perform NFC communication is in the locked screen state, the terminal device needs to actively unlock and then send out LPCD (Low Power Card Detection) pulses for detection, thereby triggering the Polling state. The communication interaction process can be divided into the following three steps. First, since there is currently no autonomous wake-up solution, the terminal device needs to be manually unlocked to switch the terminal device from the Listen polling state to the LPCD and Listen polling states. Second, after the LPCD pulse signal sent by the terminal device detects an external NFC tag, it switches to the Polling state. Third, the terminal device in the Polling state reads the content of the NFC tag to perform communication interaction and complete the entire communication process.
[0033] In the above communication interaction process, there are three necessary conditions. One is to unlock the terminal device. When the terminal device is in the locked screen state, it cannot perform communication interaction with an external NFC tag. The second is the performance of the LPCD in detecting an external NFC tag. When the LPCD pulse signal sent by the terminal device fails to detect an external NFC tag, it cannot perform communication interaction with the NFC tag. At this time, the setting of the detection threshold of the LPCD is relatively important; if the detection threshold is low, it is easy to be woken up by mistake in the case of more external interference, resulting in increased power consumption; if the detection threshold is high, there will be a situation where it cannot be woken up. The third is the performance of the terminal device in reading the NFC tag in the Polling state. For a general standard terminal device, there will be no bottleneck in reading the NFC tag at a short distance.
[0034] Or in another scenario, when the terminal device to perform NFC communication is in the unlocked screen state, the communication interaction process can be divided into the following two steps. First, after the LPCD pulse signal sent by the terminal device detects an external NFC tag, it switches to the Polling state. Second, the terminal device in the Polling state reads the NFC tag content to perform communication interaction and complete the entire communication process.
[0035] Similar to the previous communication scenario, in this communication interaction process, there are also two necessary conditions. One is the performance of the LPCD in detecting an external NFC tag, and the other is the performance of the terminal device in reading the NFC tag in the Polling state.
[0036] It can be seen that the necessary conditions in the above embodiments impose great restrictions on the NFC communication interaction process; especially when the terminal device is in the locked screen state, due to the lack of an autonomous wake-up solution, it is still necessary to manually unlock the terminal device to emit an LPCD signal to detect the NFC tag and then switch to the Polling state for communication.
[0037] Based on this, the NFC-based communication method provided by the embodiments of the present disclosure optimizes the necessary conditions in the above communication interaction process, and at the same time greatly reduces the interaction time of the user in the entire communication interaction process, improving the user's NFC interaction experience.
[0038] Figure 1 FIG. 4 is a flowchart of an NFC-based communication method provided by an embodiment of the present disclosure. This method can be applied to the situation where a terminal device communicates with an NFC tag. Among them, the terminal device is such as a smart phone, a smart watch, a wearable device, etc., and the NFC tag is generally an NFC tag in scenarios such as mobile payment, elevator, access control, identity recognition, and anti-counterfeiting. The NFC-based communication method can be executed by an NFC-based communication device configured in the terminal device, and this device can be implemented by software and / or hardware.
[0039] The NFC-based communication method provided in this embodiment is applied to a terminal device; as Figure 1 shown, the NFC-based communication method may include the following steps S102-S106.
[0040] S102, when the terminal device detects the radio frequency field of the target NFC tag, receive the first radio frequency signal emitted by the target NFC tag; wherein, the terminal device is at least in the Listen state.
[0041] In this embodiment, referring to Figure 2 and Figure 3 , before the terminal device detects the radio frequency field of the NFC tag, its state may be the locked screen state or the unlocked state, and there is no usage restriction here. Wherein, when the terminal device is in the locked screen state, that is, when the display interface of the terminal device is in the off state, the terminal device is in the Listen state; or, when the terminal device is in the unlocked state, that is, when the display interface of the terminal device is in the lit state, the terminal device is in the LPCD mode and the Listen state.
[0042] External NFC tags periodically emit radio frequency signals of a specific frequency. And, whether in the locked screen state or the unlocked state, the terminal device in the Listen state can continuously detect the radio frequency field of the external NFC tag. Generally, the detection distance of Listen is equal to 4-6 times the LPCD detection distance. Thus, before the terminal device enters the normal distance for reading the NFC tag in the Polling state, it can already detect the radio frequency field of the NFC tag based on the Listen state, and then can switch to the Polling state, greatly reducing the interaction time of the user in the entire communication process.
[0043] When the terminal device detects the radio frequency field of an external NFC tag, it takes the detected NFC tag as the target NFC tag. The terminal device receives the first radio frequency signal emitted by the target NFC tag.
[0044] S104, when the first radio frequency signal meets the preset wake-up condition, switch from the Listen state to the Polling state to communicate with the target NFC tag.
[0045] In one embodiment, after receiving the first radio frequency signal emitted by the target NFC tag, the terminal device can detect whether the first radio frequency signal meets the preset wake-up condition; wherein, the preset wake-up condition at least includes: the first frequency of the first radio frequency signal is the same as the preset key frequency. And, when it is satisfied, switch from the Listen state to the Polling state and emit a second radio frequency signal to the target NFC tag to communicate with the target NFC tag.
[0046] In this embodiment, the target NFC tag periodically sends the first radio frequency information of the first frequency, and the terminal device in the Listen state can detect the first radio frequency signal emitted by the target NFC tag at a relatively long distance.
[0047] This embodiment pre-sets the radio frequency signal of the key frequency as the wake-up signal of the terminal device; wherein, the key frequency is different from the NFC operating frequency (i.e., 13.56 MHz), and the offset from the NFC operating frequency is within the preset offset range; there can be at least one key frequency, for example, the key frequency can include 13.02 MHz (refer to Figure 4 example), 12.23 MHz, 12.65 MHz, etc., and is not limited thereto.
[0048] Based on the radio frequency signal of the key frequency as the wake-up signal of the terminal device, the terminal device in this embodiment can detect whether the first frequency of the first radio frequency signal is the key frequency. If it is the key frequency, it means that the first radio frequency signal can wake up the terminal device, so that the terminal device can switch from the low-power mode to the normal working mode, realizing faster and more extreme NFC communication and improving the user experience. If the first frequency of the detected first radio frequency signal is not the same as any one of the preset key frequencies, it means that the first radio frequency signal cannot wake up the terminal device, and no processing is required at this time.
[0049] When it is determined that the first frequency of the first radio frequency signal is the same as the preset key frequency, that is, when the preset wake-up condition is satisfied, the first radio frequency signal can wake up the terminal device as a wake-up signal. After being woken up, the terminal device switches from the low-power Listen state to the normal Polling state and enters the normal NFC communication interaction process. Then, the terminal device transmits a second radio frequency signal to the target NFC tag to communicate with the target NFC tag.
[0050] In view of the problem in the related art that the terminal device must be manually unlocked to perform communication interaction, in this embodiment, the terminal device can be woken up through a preset wake-up condition (i.e., the key frequency), quickly trigger the switch from the low-power Listen state to the normal Polling state, and perform NFC communication interaction with the target NFC tag, which can improve the user experience while reducing power consumption.
[0051] In another embodiment, after receiving the first radio frequency signal transmitted by the target NFC tag, the terminal device can detect whether the first radio frequency signal meets the preset wake-up condition; wherein, the preset wake-up condition includes: continuously receiving the first radio frequency signal of the first number, and the first frequency of the first radio frequency signal is the same as the preset key frequency. And, when it is satisfied, switch from the Listen state to the Polling state, and transmit a second radio frequency signal to the target NFC tag to communicate with the target NFC tag.
[0052] This embodiment is basically the same as the previous embodiment, and the difference lies only in the different preset wake-up conditions, which are simply described as follows.
[0053] In order to avoid accidentally waking up the terminal device due to signal noise and other reasons, this embodiment can set the wake-up signal from two dimensions of signal frequency and the number of consecutive signals. In this case, the radio frequency signal of the first number of consecutive key frequencies can be preset as the wake-up signal of the terminal device, specifically as Figure 4 The provided example: use 6 consecutive radio frequency signals of 13.02 MHz as the wake-up signal.
[0054] Based on the radio frequency signal of the first number of consecutive key frequencies as the wake-up signal of the terminal device, the terminal device in this embodiment can detect whether the number of consecutive receptions of the first radio frequency signal is the first number, and detect whether the first frequency of the first radio frequency signal is the key frequency.
[0055] If both conditions are met, that is, the first number is continuously received and the first RF signal at the key frequency, it indicates that the preset wake-up condition is satisfied, and the consecutive multiple first RF signals can wake up the terminal device. After waking up, the terminal device switches from the low-power Listen state to the normal Polling state and enters the normal NFC communication interaction process. Then, the terminal device transmits a second RF signal to the target NFC tag to communicate with the target NFC tag.
[0056] Regarding the problem in the related art that the terminal device must be manually unlocked to perform communication interaction, in this embodiment, the terminal device can be woken up through the preset wake-up condition (i.e., the key frequency and the first number), quickly trigger the switch from the low-power Listen state to the normal Polling state, and perform NFC communication interaction with the target NFC tag, which can improve the user experience while reducing power consumption.
[0057] In short, the above embodiments do not require the user to actively unlock the terminal device, can improve the performance of waking up the terminal device, increase the success rate, and can shorten the NFC communication interaction time, thus enhancing the user experience.
[0058] S106, after establishing communication with the target NFC tag, read the tag content of the target NFC tag.
[0059] According to the above embodiments, the terminal device switches from the Listen state to the Polling state and performs NFC communication interaction with the target NFC tag. After the terminal device establishes communication with the target NFC tag, it can read the tag content of the target NFC tag to complete the entire communication process.
[0060] In practical applications, there are many types of NFC tags, such as NFC tags for mobile payment, NFC tags for elevators or access control, NFC tags for identity recognition, and NFC tags for anti-counterfeiting. In order to distinguish different types of NFC tags, or rather, to enable the terminal device to identify the types of each NFC tag, this embodiment can pre-classify different NFC tags.
[0061] Refer to Figure 5 , this embodiment can set different RF parameters for different types of NFC tags. The RF parameters can include at least one of the following: key frequency (F), number of consecutive signals (N), duration of a single RF signal (T1), and transmission period of the RF signal (T2). Refer to Table 1 below for examples.
[0062] Table 1: Matching relationship between NFC tags and RF parameters
[0063] NFC tag Radio frequency parameter NFC tag for mobile payment F = 13.02 MHz, N = 6, T1 = 0.05 ms, T2 = 2 ms NFC tag for access control F = 12.23 MHz, N = 5, T1 = 0.045 ms, T2 = 1.8 ms NFC tag for identity recognition F = 12.65 MHz, N = 8, T1 = 0.06 ms, T2 = 2 ms
[0064] In this embodiment, by using different radio frequency parameters, specifically, different critical frequencies, different numbers of continuous signals, etc., different NFC tags are classified, which can help improve the anti-interference ability of the mobile phone NFC device.
[0065] Based on the above different categories of NFC tags, for a terminal device, after receiving a first radio frequency signal transmitted by a target NFC tag, this embodiment can identify the target category of the target NFC tag based on the first radio frequency signal.
[0066] This embodiment includes: obtaining the matching relationship between different categories of NFC tags and different radio frequency parameters; where the radio frequency parameters include at least one of the following: critical frequency, number of continuous signals, duration of a single radio frequency signal, transmission period of the radio frequency signal.
[0067] Determine the target radio frequency parameter of the first radio frequency signal.
[0068] According to the matching relationship, determine the category that matches the target radio frequency parameter as the target category of the target NFC tag.
[0069] By comparing the target radio frequency parameter of the first radio frequency signal with the preset matching relationship in this embodiment, the target category of the target NFC tag can be accurately determined, which can further improve the anti-interference ability of the terminal device.
[0070] In this embodiment, each category of NFC tag includes an NFC chip and a clock processing circuit; the NFC chip is used to transmit an original radio frequency signal (i.e., 13.56 MHz) at the NFC operating frequency, and the clock processing circuit is used to perform fractional frequency division on the original radio frequency signal and transmit the final radio frequency signal at the critical frequency.
[0071] The NFC chip operates at 13.56 MHz, and the clock processing circuit inside the NFC chip can transmit a specific critical frequency. Specifically, the clock processing circuit can perform fractional frequency division on the original radio frequency signal of 13.56 MHz of the NFC chip to transmit a radio frequency signal with any critical frequency desired by the user.
[0072] Regarding the critical frequency in the above embodiment, it is different from the NFC operating frequency, and the offset between it and the NFC operating frequency is within a preset offset range. The following is a description of it.
[0073] Since for a frequently used terminal device such as a mobile phone, when it detects a radio frequency field of the NFC operating frequency of 13.56 MHz, the background will pull up the wallet interface and enter the card emulation mode, and the mobile phone interface will pop up and enter the wallet card swiping interface. At this time, the card reading operation cannot be performed. This is very unfavorable to the user experience and will have the opposite effect.
[0074] To address this issue, in this embodiment, the key frequency adopts a specific frequency other than the NFC operating frequency of 13.56 MHz, thereby effectively preventing the terminal device from entering the above-mentioned card emulation mode.
[0075] The key frequency is different from the NFC operating frequency of 13.56 MHz, and neither too large nor too small an offset is suitable. If the offset is too large, the system whose antenna originally resonates at 13.56 MHz will have insufficient transmitted energy. If the offset is too small, it is likely to be recognized as a 13.56 MHz RF signal, waking up the wallet card swiping interface. Based on this, this embodiment sets a reasonable offset range, centered on the NFC operating frequency of 13.56 MHz, and increases or decreases a certain offset amount within the preset offset range to obtain the key frequency that meets the NFC tag application requirements.
[0076] In summary, the NFC-based communication method provided by the embodiments of the present disclosure includes: when the terminal device detects the RF field of the target NFC tag, receiving the first RF signal transmitted by the target NFC tag; wherein, the terminal device is at least in the Listen state; when the first RF signal meets the preset wake-up condition, switching from the Listen state to the Polling state to communicate with the target NFC tag; after establishing communication with the target NFC tag, reading the tag content of the target NFC tag.
[0077] This technical solution does not need to consider whether the terminal device is locked or unlocked, but can actively wake up the terminal device through the preset wake-up condition, switch the terminal device from the low-power Listen state to the normal Polling state, enter the normal NFC communication interaction process, and read the tag content of the target NFC tag; thereby, while reducing the power consumption of the terminal device, it also improves the accuracy and interaction speed of NFC communication interaction, and can achieve a faster and more extreme user experience.
[0078] Specifically, for example, when the terminal device is in the screen-off state, the card reading mode is turned off and no RF field is emitted externally. By using this technical solution, NFC communication interaction in the screen-off state can be achieved.
[0079] Corresponding to the NFC-based communication method provided in the above embodiments, as Figure 6 shown, this embodiment provides an NFC-based communication device, which may include the following modules:
[0080] A signal receiving module 210, configured to receive the first RF signal transmitted by the target NFC tag when the terminal device detects the RF field of the target NFC tag; wherein, the terminal device is in the Listen state;
[0081] A state switching module 220, configured to switch from the Listen state to the Polling state to communicate with the target NFC tag when the first radio frequency signal meets a preset wake-up condition;
[0082] A tag reading module 230, configured to read the tag content of the target NFC tag after establishing communication with the target NFC tag.
[0083] The device provided in this embodiment has the same implementation principle and the same technical effects as those in the foregoing method embodiment. For a brief description, for parts not mentioned in the device embodiment, reference may be made to the corresponding content in the foregoing method embodiment.
[0084] Figure 7 It is a schematic structural diagram of an electronic device provided in an embodiment of the present disclosure. As Figure 7 shown, the electronic device 300 includes one or more processors 301 and a memory 302.
[0085] The processor 301 may be a central processing unit (CPU) or other form of processing unit with data processing capabilities and / or instruction execution capabilities, and may control other components in the electronic device 300 to perform desired functions.
[0086] The memory 302 may include one or more computer program products, and the computer program products may include various forms of computer-readable storage media, such as volatile memory and / or non-volatile memory. The volatile memory may include, for example, random access memory (RAM) and / or cache memory, etc. The non-volatile memory may include, for example, read-only memory (ROM), hard disk, flash memory, etc. One or more computer program instructions may be stored on the computer-readable storage medium, and the processor 301 may run the program instructions to implement the NFC-based communication method in the foregoing embodiments of the present disclosure and / or other desired functions. Various contents such as input signals, signal components, and noise components may also be stored in the computer-readable storage medium.
[0087] In one example, the electronic device 300 may further include: an input device 303 and an output device 304, and these components are interconnected through a bus system and / or other forms of connection mechanisms (not shown).
[0088] In addition, the input device 303 may further include, for example, a keyboard, a mouse, etc.
[0089] The output device 304 can output various information to the outside, including the determined distance information, direction information, etc. The output device 304 can include, for example, a display, a speaker, a printer, a communication network, and remote output devices connected thereto, etc.
[0090] Of course, for simplicity, Figure 7 only some of the components related to the present disclosure in the electronic device 300 are shown, and components such as a bus, an input / output interface, etc. are omitted. In addition, according to specific application scenarios, the electronic device 300 may further include any other appropriate components.
[0091] Furthermore, this embodiment also provides a computer-readable storage medium storing a computer program for executing the above NFC-based communication method.
[0092] A computer program product of an NFC-based communication method, apparatus, electronic device, and medium provided by an embodiment of the present disclosure includes a computer-readable storage medium storing program code, and the instructions included in the program code can be used to execute the method described in the foregoing method embodiments. For specific implementation, reference can be made to the method embodiments, which will not be elaborated herein.
[0093] It should be noted that in this article, relational terms such as "first" and "second" are only used to distinguish one entity or operation from another entity or operation, and do not necessarily require or imply any actual relationship or order between these entities or operations. Moreover, the term "comprising", "including" or any other variant thereof is intended to cover non-exclusive inclusion, so that a process, method, article or device including a series of elements not only includes those elements, but also includes other elements not expressly listed, or further includes elements inherent to such process, method, article or device. Without further limitation, an element defined by the statement "including a..." does not exclude the existence of additional identical elements in the process, method, article or device including the element.
[0094] The above are only specific implementation manners of the present disclosure, enabling those skilled in the art to understand or implement the present disclosure. Various modifications to these embodiments will be obvious to those skilled in the art, and the general principles defined herein can be implemented in other embodiments without departing from the spirit or scope of the present disclosure. Therefore, the present disclosure will not be limited to these embodiments described herein, but will be accorded the widest scope consistent with the principles and novel features disclosed herein.
Claims
1. A communication method based on NFC, characterized in that, The method includes: When the terminal device detects the radio frequency field of the target NFC tag, it receives the first radio frequency signal emitted by the target NFC tag; wherein, the terminal device is at least in the Listen state; When the first radio frequency signal meets the preset wake-up condition, it switches from the Listen state to the Polling state to communicate with the target NFC tag; After establishing communication with the target NFC tag, it reads the tag content of the target NFC tag.
2. The method according to claim 1, characterized in that, The step of, when the first radio frequency signal meets the preset wake-up condition, switching from the Listen state to the Polling state to communicate with the target NFC tag includes: Detecting whether the first radio frequency signal meets the preset wake-up condition; wherein, the preset wake-up condition includes: the first frequency of the first radio frequency signal is the same as the preset key frequency; When it meets the condition, it switches from the Listen state to the Polling state and emits a second radio frequency signal to the target NFC tag to communicate with the target NFC tag.
3. The method according to claim 2, wherein The preset wake-up condition includes: receiving the first radio frequency signal of the first number continuously, and the first frequency of the first radio frequency signal is the same as the preset key frequency.
4. The method according to claim 1, characterized in that, After receiving the first radio frequency signal emitted by the target NFC tag, the method further includes: Obtaining the matching relationship between different categories of NFC tags and different radio frequency parameters; wherein, the radio frequency parameters include at least one of the following: key frequency, number of consecutive signals, duration of a single radio frequency signal, transmission period of the radio frequency signal; Determining the target radio frequency parameter of the first radio frequency signal; According to the matching relationship, determining the category matching the target radio frequency parameter as the target category of the target NFC tag.
5. The method according to claim 2 or 4, characterized in that The key frequency is different from the NFC operating frequency, and the offset between it and the NFC operating frequency is within a preset offset range.
6. The method according to claim 4, wherein Each category of the NFC tags includes an NFC chip and a clock processing circuit; the NFC chip is used to emit an original radio frequency signal using the NFC operating frequency, and the clock processing circuit is used to perform fractional frequency division on the original radio frequency signal and emit the final radio frequency signal using the key frequency.
7. The method according to claim 1, characterized in that, Before the terminal device detects the radio frequency field of the NFC tag, the method further includes: When the display interface of the terminal device is in the off state, the terminal device is in the Listen state; When the display interface of the terminal device is in the on state, the terminal device is in the Low Power Card Detection (LPCD) mode and the Listen state.
8. A communication device based on NFC, characterized in that, The device includes: A signal receiving module, configured to, when the terminal device detects the radio frequency field of the target NFC tag, receive the first radio frequency signal emitted by the target NFC tag; wherein, the terminal device is in the Listen state; A state switching module, configured to switch from the Listen state to the Polling state to communicate with the target NFC tag when the first radio frequency signal meets a preset wake-up condition; A tag reading module, configured to read the tag content of the target NFC tag after establishing communication with the target NFC tag.
9. An electronic device, characterized in that, The electronic device includes: A processor; A memory for storing executable instructions of the processor; The processor is configured to read the executable instructions from the memory and execute the instructions to implement the method according to any one of claims 1-7 above.
10. A computer-readable storage medium, characterized in that, Instructions are stored in the computer-readable storage medium, and when the instructions are run on the terminal device, the terminal device is caused to implement the method according to any one of claims 1-7.