Near field communication polling method and device, equipment, storage medium and program product

By adaptively adjusting the polling power of near-field communication and optimizing the polling method of the card reader based on changes in the sensed signal, the problem of low card reading success rate caused by unreasonable polling power settings is solved, resulting in higher card reading success rate and reduced power consumption.

CN121841401APending Publication Date: 2026-04-10BEIJING CEC HUADA ELECTRONIC DESIGN CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
BEIJING CEC HUADA ELECTRONIC DESIGN CO LTD
Filing Date
2025-11-20
Publication Date
2026-04-10

AI Technical Summary

Technical Problem

In existing technologies, unreasonable polling power settings in near-field communication lead to low card reading success rates. In particular, at close range, as the transmission power increases, the signal-to-noise ratio actually weakens, affecting the card reading distance and success rate.

Method used

By acquiring the target sensing signal change value when the card device is detected, the polling power is adaptively adjusted. The target polling power is determined based on the sensing signal change value, and the polling power range is adjusted to optimize communication.

Benefits of technology

It improves card reading success rate and reduces power consumption, ensuring effective communication under different distances and coupling strengths.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN121841401A_ABST
    Figure CN121841401A_ABST
Patent Text Reader

Abstract

The invention relates to the technical field of communication, and discloses a near field communication polling method, device and equipment, a storage medium and a program product, the method is applied to card reading equipment, and the method comprises the following steps: obtaining a target sensing signal change value when the card equipment is detected; determining target polling power based on the target sensing signal change value; and performing polling according to the target polling power. The power of the card reading equipment in the polling stage can be reduced, and the card reading accuracy can be improved.
Need to check novelty before this filing date? Find Prior Art

Description

TECHNICAL FIELD

[0001] The present application relates to the field of communication technology, in particular to a polling method and device for near field communication, equipment, storage medium and program product. BACKGROUND

[0002] Radio Frequency (RF) communication devices are used in a wide range of applications. An example of a general RF communication device is a Near Field Communication (NFC) device. A typical NFC system includes a reader device and a card device. The reader device can be referred to as a card reading apparatus, a reader, a poller, an interrogator or a proximity coupling device (PCD), which generates a high frequency radio field, performs polling, and attempts to communicate with a passive or active communication counterpart. The communication counterpart is a card apparatus, which can be a card device or a tag or a card, can be a passive transponder or an active card emulation device as a proximity integrated circuit card (PICC), can be a headset, a speaker (for example, a Bluetooth speaker), and other smart devices such as a mobile phone that can be used as a tag or card device.

[0003] Generally, the card reading apparatus usually enables its RF field and continuously polls the communication counterpart in all different communication technologies (for example, NFC-A, NFC-B, NFC-F, NFC-V) to detect the communication counterpart. In the related art, full power polling is generally used, but the polling power is not the larger the better, especially for cards with short distances. As the transmission power (i.e., polling power) continues to increase, the signal-to-noise ratio of the signal received by the card reading apparatus is actually weakened, resulting in demodulation failure, which reduces the card reading distance and may affect the card reading success rate. SUMMARY

[0004] The present application provides a polling method and device for near field communication, equipment, storage medium and program product to solve the problem of low card reading success rate caused by unreasonable polling power setting of near field communication.

[0005] In a first aspect, the present application provides a polling method for near field communication, applied to a card reading apparatus, the method comprising: obtaining a target sensing signal change value when a card device is detected; determining a target polling power based on the target sensing signal change value; polling according to the target polling power.

[0006] In an optional implementation, the greater the target sensing signal change value, the smaller the target polling power.

[0007] In one optional implementation, determining the target polling power based on the change value of the target sensing signal includes: Determine the target change value range to which the target sensing signal change value belongs. The target change value range is one of multiple change value sub-ranges, which are obtained by pre-dividing the value range of the sensing signal change value. According to the preset correspondence, the target power range corresponding to the target change value range is obtained. The target power range is one of multiple power sub-ranges, which are obtained by pre-dividing the value range of the polling power. The target polling power is determined within the target power range.

[0008] In one optional implementation, determining the target polling power based on the change value of the target sensing signal includes: Obtain the curve showing the relationship between the change in the sensed signal and the polling power; Based on the corresponding relationship curve, the target polling power corresponding to the change value of the target sensing signal is determined.

[0009] In an optional implementation, before acquiring the target sensing signal change value when the card device is detected, the method further includes: Send target sensing signals; Receive the target sensing signal; The change value of the target sensing signal is obtained, wherein the change value of the target sensing signal is the change value of the received target sensing signal relative to the transmitted target sensing signal; If the change value of the target sensing signal is greater than the wake-up threshold, it is determined that a card device has been detected, and the system enters a polling state.

[0010] In one optional implementation, the change value of the target sensing signal is either the change in the amplitude of the sensing signal or the change in the phase of the sensing signal.

[0011] In one optional implementation, acquiring the change value of the target sensing signal includes: The received target sensing signal is processed to obtain the corresponding in-phase component signal and quadrature component signal; The in-phase component signal and the quadrature component signal are respectively subjected to matched filtering to obtain a first signal and a second signal. At least one of the first signal and the second signal is selected for smoothing filtering and peak detection to obtain the target peak measurement value. Alternatively, the first signal and the second signal are combined and then smoothing filtering and peak detection are performed to obtain the target peak measurement value. Based on the measured peak value of the target and the peak value of the transmitted target sensing signal, the change value of the target sensing signal is obtained.

[0012] Secondly, the present invention provides a polling device for near-field communication, the device comprising: The change value acquisition module is used to acquire the change value of the target sensing signal when the card device is detected; A polling power determination module is used to determine the target polling power based on the change value of the target sensing signal; The polling module is used to poll according to the target polling power.

[0013] Thirdly, the present invention provides a near-field communication card reader device, comprising: a memory and a processor, wherein the memory and the processor are communicatively connected to each other, the memory stores computer instructions, and the processor executes the computer instructions to perform the near-field communication polling method of the first aspect or any corresponding embodiment described above.

[0014] Fourthly, the present invention provides an electronic device including the near-field communication card reader of the first aspect or any corresponding embodiment described above.

[0015] Fifthly, the present invention provides a computer-readable storage medium storing computer instructions for causing a computer to perform the near-field communication polling method of the first aspect or any corresponding embodiment thereof.

[0016] In a sixth aspect, the present invention provides a computer program product, including computer instructions for causing a computer to execute the near-field communication polling method of the first aspect or any corresponding embodiment thereof.

[0017] This invention improves the polling power of a card reader after detecting a card and entering the polling phase. The polling power is adaptively modulated based on changes in the sensed signal during card detection, solving the following problem: For nearby card devices, as the transmission power continues to increase, the signal-to-noise ratio of the received signal weakens, leading to demodulation failure and reducing the reading distance, which may affect the card reading success rate. Therefore, this invention improves the card reading success rate and reduces power consumption. Attached Figure Description

[0018] To more clearly illustrate the specific embodiments of the present invention or the technical solutions in the prior art, the drawings used in the description of the specific embodiments or the prior art will be briefly introduced below. Obviously, the drawings described below are some embodiments of the present invention. For those skilled in the art, other drawings can be obtained from these drawings without creative effort.

[0019] Figure 1 This is a schematic diagram of a near-field communication scenario according to an embodiment of the present invention; Figure 2 This is a schematic flowchart of a first type of polling method for near-field communication according to an embodiment of the present invention; Figure 3 This is a schematic diagram of the first type of signal timing in the near-field communication process according to an embodiment of the present invention; Figure 4 This is a schematic block diagram of a near-field communication system according to an embodiment of the present invention; Figure 5 This is a schematic diagram of the second type of signal timing in the near-field communication process according to an embodiment of the present invention; Figure 6 This is a schematic diagram of a second type of polling method for near-field communication according to an embodiment of the present invention; Figure 7 This is a schematic diagram illustrating the correspondence between the sensing signal change value and the polling power according to an embodiment of the present invention; Figure 8 This is a structural block diagram of a near-field communication polling device according to an embodiment of the present invention; Figure 9 This is a schematic diagram of the hardware structure of an electronic device according to an embodiment of the present invention. Detailed Implementation

[0020] To make the objectives, technical solutions, and advantages of the embodiments of the present invention clearer, the technical solutions of the embodiments of the present invention will be clearly and completely described below with reference to the accompanying drawings. Obviously, the described embodiments are only some embodiments of the present invention, not all embodiments. Based on the embodiments of the present invention, all other embodiments obtained by those skilled in the art without creative effort are within the scope of protection of the present invention.

[0021] It is understood that before using the technical solutions disclosed in the various embodiments of the present invention, users should be informed of the types, scope of use, and usage scenarios of the personal information involved in the present invention and their authorization should be obtained in accordance with relevant laws and regulations through appropriate means.

[0022] The terms "first" and "second" are used for descriptive purposes only and should not be construed as indicating or implying relative importance or implicitly specifying the number of technical features indicated. Thus, a feature defined as "first" or "second" may explicitly or implicitly include one or more of that feature. In the description of this invention, "a plurality of" means two or more, unless otherwise explicitly specified.

[0023] During near-field communication (NFC), after activating the RF field, the card reader continuously polls all corresponding devices across different communication technologies (e.g., NFC-A, NFC-B, NFC-F, NFC-V) to detect a communication counterpart. However, a communication counterpart and the card reader are not always communicating, which is too power-intensive for battery-powered devices (e.g., mobile devices, wearables, door lock readers), easily depleting the battery and reducing device availability. Therefore, Low Power Card Detection (LPCD) technology can be applied to reduce the power consumption of the card reader. This LPCD technology uses short RF sensing signals (or short radio frequency pulses, sensing pulses, detection signals) to detect load changes at the RF interface of the card reader to determine the presence of a communication counterpart, thereby waking up the polling and extending battery life. Through this technology, the card reader can significantly shorten its RF field engagement time and switch to a power-saving state (such as standby mode) between sensing signals. In a typical NFC system, the near-field communication process includes the following steps: 1. LPCD low power detection, such as Figure 1 As shown, if the card reader is close to the tag or card device, or if a tag or card device is close to the card reader, then the wake-up condition will be met (e.g., the change in the sensing signal value is greater than the wake-up threshold). Once the wake-up condition is met, the NFC card reader will be activated to poll; otherwise, the card detection will continue.

[0024] 2. After waking up, the NFC card reader polls for card types such as Type A, Type B, Type F, and Type V. If a card responds and the card reader can demodulate it correctly, the normal communication process begins; otherwise, the polling continues.

[0025] 3. The card reader and the card establish normal communication.

[0026] According to an embodiment of the present invention, a polling method embodiment for near-field communication is provided. It should be noted that the steps shown in the flowchart in the accompanying drawings can be executed in a computer system such as a set of computer-executable instructions. Furthermore, although a logical order is shown in the flowchart, in some cases, the steps shown or described may be executed in a different order than that shown here.

[0027] This embodiment provides a near-field communication polling method that can be used in card reader devices. Specifically, it can be a simple card reader or a device that includes a card reader. Devices that include card readers can be, for example, smartphones, smart wearable devices, smart door locks, etc.

[0028] Figure 2 This is a flowchart of a near-field communication polling method according to an embodiment of the present invention, such as... Figure 2 As shown, the process includes the following steps: Step S201: Obtain the target sensing signal change value when the card device is detected.

[0029] In this embodiment, as Figure 1 and Figure 3 As shown, the card reader and card reader communicate through proximity. The card reader detects cards using an LPCD (Low-Low Distance Calibration Device). Once a card is detected, it wakes up and polls, then initiates communication. At great distances, the LPCD sensing signal (i.e., the sensing pulse) remains unchanged, and the card reader cannot detect the card. As the distance increases, the LPCD sensing pulse changes. If the change reaches the wake-up threshold, it wakes up and polls, thus initiating communication. Therefore, in this embodiment, the target sensing signal change value is greater than the wake-up threshold.

[0030] Card devices can be passive tags, active tags, or NFC devices that function as card devices, such as headphones, speakers (e.g., Bluetooth speakers), walkie-talkies, smartphones, smart wearable devices (e.g., smartwatches, wristbands, etc.), smart locks, etc.

[0031] Specifically, such as Figure 4As shown, the card reader communicates with the card device via an antenna. The card reader includes an MCU, a storage unit, a communication control unit, a transmitting unit, a receiving unit, a matching network, and an antenna. The card reader uses the communication control unit to control the transmission of LPCD sensing signals for card detection. The sensing signal can be a 13.56MHz RF carrier or a modulated signal on an RF carrier. Its duration is short and configurable, such as 30-50µs. The time interval between each sensing signal is also configurable, and its transmission frequency is typically a few Hz. The transmitting unit generates the sensing signal, which passes through the matching network to the receiving unit. The receiving unit can detect changes in the sensing signal through a series of processes. If a card device approaches, the sensing signal will show amplitude or phase changes, which can be detected by the receiving unit. For example, if a change in the sensing signal is detected and the change exceeds the wake-up threshold, it triggers a wake-up polling. The card reader enters the frame polling phase and communicates with the card device. In related technologies, the power during frame polling is generally a fixed value or adjusted according to impedance changes. However, in this embodiment, the power is adaptively adjusted based on changes in the sensing signal processed by the receiving unit.

[0032] In this embodiment, the change value of the sensing signal can be determined in the following way: First, obtain the reference value ref of the sensed signal. calib This reference value can be obtained by the card reader when it is idle (i.e., no card device is nearby). Specifically, when it is ensured that no card device is nearby, the card reader sends and receives sensing signals, processes the received sensing signals, and obtains the reference value (amplitude or phase value) of the sensing signal.

[0033] Then, the card reader periodically performs LPCD card detection, which means periodically sending, receiving and processing sensing signals. Each detected sensing signal value is compared with the reference value of the sensing signal to obtain the change value of the sensing signal.

[0034] Step S202: Determine the target polling power based on the change value of the target sensing signal.

[0035] That is, in this embodiment, the polling power is determined based on the change in the target sensing signal when the card device is detected. For example... Figure 5 As shown, the changes in the sensing signal during the card detection stage are different (Delta1, Delta2), and the transmission power (i.e., polling power) in the subsequent polling stage are also different.

[0036] Step S203: Polling is performed according to the target polling power. During the polling process, the card device read is generally the card device corresponding to the target sensing signal change value (that is, the card device that is close to the card reader when the target sensing signal change value is detected). Of course, it is not impossible to read other card devices (for example, other card devices approach during the polling process), or not to read the card device corresponding to the target sensing signal change value (for example, the card device first approaches the card reader, the card reader detects the card device and enters the polling state, but the card device then moves away).

[0037] The near-field communication polling method provided in this embodiment improves the polling power of the card reader after detecting a card device and entering the polling phase. It adaptively modulates the polling power based on changes in the sensed signal during card detection, solving the following problem: As the transmission power of a nearby card device continues to increase, the signal-to-noise ratio of the received signal weakens, leading to demodulation failure and reducing the card reading distance, which may affect the card reading success rate. Therefore, this embodiment of the invention can improve the card reading success rate and reduce power consumption.

[0038] Specifically, such as Figure 5 As shown, when the card reader periodically checks the card using the LPCD, if it detects a change in the sensing signal value Delta1, and this value is greater than the wake-up threshold Delta... WKUP However, the difference is not significant, suggesting that the card device is still relatively far from the card reader. In this case, the wake-up polling process is initiated, and a larger polling power P1 is configured to enable normal communication between the card reader and the card device. If a change in the sensing signal value Delta2 is detected, and this value exceeds the wake-up threshold Delta... WKUP The relatively large polling power (P2) suggests that the card device is close to the card reader. In this case, the polling process can be activated with a smaller polling power (P2) to communicate normally with the card device, thus saving unnecessary power consumption.

[0039] In summary, this invention provides a method for adaptively adjusting the transmission power of polling (i.e., polling power). During the LPCD process, the difference between the measured value and the reference value of the sensed signal is calculated, with the absolute value of the difference being delta. The transmission power of the polling frame is adjusted according to the magnitude of delta. A larger change in delta indicates a stronger coupling and closer distance between the tag and the card reader, allowing the transmission power to be appropriately reduced, thereby saving power. In practice, the transmission power is determined by judging the distance to the card or the strength of the coupling based on the magnitude of the change in the sensed signal. Stronger coupling allows for a lower polling power, while weaker coupling allows for a higher polling power. If no polling is triggered during LPCD detection, the presence of the card continues to be detected, ensuring a high card reading success rate and reducing unnecessary power consumption during polling.

[0040] This embodiment provides a near-field communication polling method that can be used in card reader devices. Specifically, it can be a traditional card reader or a device that includes a card reader. Devices that include card readers can be, for example, walkie-talkies, smartphones, smart wearable devices (such as smartwatches, wristbands, etc.), smart door locks, etc.

[0041] Figure 6 This is a flowchart of a near-field communication polling method according to an embodiment of the present invention, such as... Figure 6 As shown, the process includes the following steps: Step S601: Obtain the target sensing signal change value when the card device is detected.

[0042] In this embodiment, as Figure 3 As shown, during the card detection phase (specifically using LPCD technology), the card reader only considers a card detected and enters the polling card reading phase if the detected change in the sensing signal is greater than the wake-up threshold. Therefore, in this embodiment, the target sensing signal change value is greater than the wake-up threshold.

[0043] Card devices can be passive tags, active tags, or NFC devices that function as card devices, such as headphones, speakers (e.g., Bluetooth speakers), walkie-talkies, smartphones, smart wearable devices (e.g., smartwatches, wristbands, etc.), smart locks, etc.

[0044] Step S602: Determine the target polling power based on the change value of the target sensing signal.

[0045] That is, in this embodiment, the polling power is determined based on the change value of the target sensing signal when the card device is detected.

[0046] In some optional implementations, the larger the change in the target sensing signal, the smaller the target polling power.

[0047] In this embodiment, the larger the change value of the sensing signal detected during the card detection stage, the closer the card device is to the card reader. At this time, the polling power can be smaller. This not only avoids the problem that when using high polling power, the reply signal from the nearby card device to the card reader will be weakened due to the enhanced radio frequency field, thus ensuring the success rate of card reading, but also reduces power consumption.

[0048] Some optional implementations, such as Figure 6 As shown, step S602, namely determining the target polling power based on the change value of the target sensing signal, includes: Step S6021: Determine the target change value range to which the target sensing signal change value belongs. The target change value range is one of multiple change value sub-ranges. The multiple change value sub-ranges are obtained by pre-dividing the range of values ​​of the sensing signal change value (the range defined by the minimum value (i.e., the wake-up threshold) and the maximum value of the sensing signal change value).

[0049] Step S6022: According to the preset correspondence, obtain the target power range corresponding to the target change value range. The target power range is one of multiple power sub-ranges. The multiple power sub-ranges are obtained by pre-dividing the value range of the polling power (the range limited by the minimum and maximum values ​​of the polling power).

[0050] Step S6023: Determine the target polling power within the target power range.

[0051] In this embodiment, the range of values ​​for the sensing signal change and the range of values ​​for the polling power are pre-divided into multiple sub-ranges, and then a correspondence is established between the sub-ranges of the sensing signal change and the sub-ranges of the polling power. During the polling phase, based on this correspondence, the target power range corresponding to the target sensing signal change value can be determined, and the specific target polling power can be determined.

[0052] For example, such as Figure 7 As shown, the range of values ​​for the change in the sensed signal can be divided into the following sub-ranges: [0, Delta] WKUP ), [Delta WKUP ,Delta1),[Delta1,Delta2),[Delta2,Delta3),[Delta3,Delta4),[Delta4,Delta5),[Delta5,Delta MAX ), greater than or equal to Delta MAX The range of polling power values ​​can be divided into the following sub-ranges: P MIN 、(P MIN ,P5],(P5,P4],(P4,P3],(P3,P2],(P2,P1] and(P1,P_MAX).

[0053] according to Figure 7 The corresponding relationship shown is illustrated, and the method for determining the polling power is as follows: When the change value of the sensed signal delta is less than Delta WKUP If polling is not activated, polling will not be activated; otherwise, polling will be activated. When the change value of the sensed signal delta belongs to [Delta] WKUP When Delta1), the range of the configured polling power P is (P1, P...).MAX ]; When the change value delta of the sensed signal belongs to [Delta1, Delta2), the range of the polling power P is configured to be (P2, P1]; When the change value delta of the sensed signal belongs to [Delta2, Delta3), the range of the polling power P is configured to be (P3, P2]; When the change value delta of the sensed signal belongs to [Delta3, Delta4), the range of the polling power P is configured to be (P4, P3]; When the change value delta of the sensed signal belongs to [Delta4, Delta5), the range of the polling power P is configured to be (P5, P4]; When the change value of the sensed signal delta belongs to [Delta5, Delta] MAX When ), the range of the configured polling power P is (P MIN [P5] When the change value of the sensed signal delta is greater than or equal to Delta MAX At that time, the polling power P is configured as P MIN .

[0054] The minimum value of the change in the sensed signal (i.e., the wake-up threshold Delta) WKUP ) and maximum value Delta MAX All settings are configurable, and the specific division of the sub-range can be determined based on the measured value of the change in the sensed signal. The minimum value of the change in the sensed signal (i.e., the wake-up threshold Delta) is the threshold value. WKUP ) and maximum value Delta MAX Both the sub-ranges of the obtained sensing signal change values ​​can be stored in configurable registers.

[0055] Minimum polling power P MIN and maximum value P MAX All parameters are configurable; the specific sub-range division method can be determined based on the measured value of the polling power. The minimum polling power P... MIN and maximum value P MAX The sub-ranges of polling power obtained from the division can also be stored in configurable registers.

[0056] In some alternative implementations, step S602, namely determining the target polling power based on the change value of the target sensing signal, includes: Step S602a: Obtain the curve showing the relationship between the change in the sensing signal and the polling power; Step S602b: Based on the corresponding relationship curve, determine the target polling power corresponding to the change value of the target sensing signal.

[0057] In this embodiment, a correlation curve between the change value of the sensed signal and the polling power can be fitted through a large number of tests, with each change value of the sensed signal corresponding to a polling power. This correlation curve can be made into a lookup table. After obtaining the target change value of the sensed signal, the corresponding target polling power can be determined by looking up the table, which improves the efficiency of determining the polling power.

[0058] Step S603: Poll according to the target polling power.

[0059] During the polling process, the card device read is generally the card device corresponding to the change value of the target sensing signal (that is, the card device that is close to the card reader when the change value of the target sensing signal is detected). Of course, it is not impossible to read other card devices (for example, other card devices approach during the polling process), or not to read the card device corresponding to the change value of the target sensing signal (for example, the card device first approaches the card reader, the card reader detects the card device and enters the polling state, but the card device then moves away).

[0060] The near-field communication polling method provided in this embodiment improves the polling power of the card reader after detecting a card device and entering the polling phase. It adaptively modulates the polling power based on changes in the sensed signal during card detection, solving the following problem: As the transmission power of a nearby card device continues to increase, the signal-to-noise ratio of the received signal weakens, leading to demodulation failure and reducing the reading distance, which may affect the card reading success rate. Therefore, this embodiment of the invention can improve the card reading success rate and reduce power consumption.

[0061] In some optional embodiments, before step S601, that is, before acquiring the target sensing signal change value when the card device is detected, the method further includes: Step S501: Send target sensing signal; Step S502: Receive the target sensing signal; Step S503: Obtain the target sensing signal change value, wherein the target sensing signal change value is the change value of the received target sensing signal relative to the transmitted target sensing signal; Step S504: If the change value of the target sensing signal is greater than the wake-up threshold, it is determined that a card device has been detected and the system enters the polling state.

[0062] As mentioned above, in this embodiment, the system will only switch to the polling phase if the detected change in the sensing signal is greater than the wake-up threshold; otherwise, it will remain in the card detection phase and perform periodic card detection.

[0063] Specifically, the change value of the target sensing signal is either the change in the amplitude of the sensing signal or the change in the phase of the sensing signal.

[0064] like Figure 4 As shown, the transmitting unit sends a sensing signal, and the receiving unit receives the sensing signal through an antenna. The change in the sensing signal is the difference between the measured value of the sensing signal received by the receiving unit and a reference value. The methods for transmitting the sensing signal and detecting the measured value of the sensing signal are as follows: 1. Send a sensing RF carrier, detect the envelope analog quantity of the received sensing signal, and obtain the measured value of the sensing signal; 2. Send a sensing RF carrier and detect the received sensing signal envelope digital value, i.e., the envelope value after ADC conversion, to obtain the measured value of the sensing signal; 3. The received sensing signal is processed by mixing, filtering, amplification, analog-to-digital conversion, etc., to obtain in-phase (I) and quadrature (Q) components, and the measured value of the sensing signal is obtained. 4. Send the designed sensing signal, which can be a modulated signal. After transmission, the receiving unit performs analog and baseband processing, i.e., mixing, filtering, amplification, analog-to-digital conversion, etc., to obtain in-phase (I) and quadrature (Q) components. Then, after digital baseband processing, the intensity value (i.e., amplitude value) of the sensing signal is detected.

[0065] In some optional implementations, the fourth method described above for sending and detecting the measured value of the sensing signal can be used. Therefore, step S503, i.e., obtaining the change value of the target sensing signal, includes: Step S5031: Process the received target sensing signal to obtain the corresponding in-phase component signal and quadrature component signal; Step S5032: Perform matched filtering on the in-phase component signal and the quadrature component signal respectively to obtain a first signal and a second signal. Select at least one of the first signal and the second signal for smoothing filtering and peak detection to obtain the target peak measurement value, or combine the first signal and the second signal and then perform smoothing filtering and peak detection to obtain the target peak measurement value. Step S5033: Based on the target peak measurement value and the peak value of the transmitted target sensing signal, obtain the target sensing signal change value.

[0066] This embodiment also provides a near-field communication polling device for implementing the above embodiments and preferred embodiments; details already described will not be repeated. As used below, the term "module" can refer to a combination of software and / or hardware that implements a predetermined function. Although the device described in the following embodiments is preferably implemented in software, hardware implementation, or a combination of software and hardware, is also possible and contemplated.

[0067] This embodiment provides a polling device for near-field communication, such as... Figure 8 As shown, it includes: The change value acquisition module 801 is used to acquire the change value of the target sensing signal when the card device is detected; Polling power determination module 802 is used to determine the target polling power based on the change value of the target sensing signal; The polling module 803 is used to poll according to the target polling power.

[0068] In some alternative implementations, the larger the change in the target sensing signal, the smaller the target polling power.

[0069] In some optional implementations, the polling power determination module 802 includes: The first range determination unit is used to determine the target change value range to which the target sensing signal change value belongs. The target change value range is one of a plurality of change value sub-ranges, which are obtained by pre-dividing the value range of the sensing signal change value. The second range determination unit is used to obtain the target power range corresponding to the target change value range according to a preset correspondence relationship. The target power range is one of multiple power sub-ranges, which are obtained by pre-dividing the value range of the polling power. The first power determination unit is used to determine the target polling power within the target power range.

[0070] In some optional implementations, the polling power determination module 802 includes: The correspondence acquisition unit is used to acquire the correspondence curve between the change value of the sensing signal and the polling power; The second power determination unit is used to determine the target polling power corresponding to the change value of the target sensing signal based on the correspondence curve.

[0071] In some optional implementations, the near-field communication polling device further includes: The transmitting module is used to transmit target sensing signals; A receiving module is used to receive the target sensing signal; An acquisition module is used to acquire the change value of the target sensing signal, wherein the change value of the target sensing signal is the change value of the received target sensing signal relative to the transmitted target sensing signal; The state switching module is used to determine that a card device has been detected and enter the polling state if the change value of the target sensing signal is greater than the wake-up threshold.

[0072] In some optional implementations, the change in the target sensing signal is a change in the amplitude of the sensing signal or a change in the phase of the sensing signal.

[0073] The near-field communication polling device provided in this embodiment of the invention can execute the near-field communication polling method provided in any embodiment of the invention, and has the corresponding functional modules and beneficial effects for executing the method. Further functional descriptions of the various modules and units described above are the same as in the corresponding embodiments described above, and will not be repeated here.

[0074] This embodiment also provides a near-field communication card reader, which includes: a memory and a processor, the memory and the processor being communicatively connected to each other, the memory storing computer instructions, and the processor executing the computer instructions to perform any of the near-field communication polling methods described in the above embodiments.

[0075] Specifically, such as Figure 4 As shown, the processor mentioned above can be an MCU. Figure 4 The storage unit in the memory is the memory itself. Additionally, the memory may include configurable registers. The near-field communication card reader may also include a communication control unit, a transmitting unit, a receiving unit, a matching network, and an antenna.

[0076] This embodiment also provides an electronic device, which includes any of the near-field communication card readers described in the above embodiments. This electronic device can be, for example, a smartphone, a smart wearable device, a smart door lock, etc. Additionally, as... Figure 9 As shown (the near-field communication card reader is not shown in the figure), the electronic device may also include an additional processor (e.g., a central processing unit, a graphics processing unit, etc.) 901 and an additional memory 902. This additional processor can perform various appropriate actions and processes based on programs stored in read-only memory (ROM) 902 or programs loaded from memory 908 into random access memory (RAM) 903. The RAM 903 also stores various programs and data required for the operation of the electronic device. The processor 901, ROM 902, and RAM 903 are interconnected via bus 904. An input / output (I / O) interface 905 is also connected to bus 904.

[0077] Typically, the following devices can be connected to I / O interface 905: input devices 906 including, for example, touchscreens, touchpads, keyboards, mice, cameras, microphones, accelerometers, gyroscopes, etc.; output devices 907 including, for example, liquid crystal displays (LCDs), speakers, vibrators, etc.; memory devices 908 including, for example, magnetic tapes, hard disks, etc.; and communication devices 909. Communication device 909 allows electronic devices to exchange data via wireless or wired communication with other devices. Although Figure 9 Electronic devices with various devices are shown, but it should be understood that it is not required to implement or have all of the devices shown, and more or fewer devices may be implemented or have instead.

[0078] In particular, according to embodiments of the present invention, the processes described above with reference to the flowcharts can be implemented as computer software programs. For example, embodiments of the present invention include a computer program product comprising a computer program carried on a non-transitory computer-readable medium, the computer program containing program code for performing the methods shown in the flowcharts. In such embodiments, the computer program can be downloaded and installed from a network via a communication device 909, or installed from a memory 908, or installed from a ROM 902. When the computer program is executed by the processor 901, it performs the functions defined in the near-field communication polling method of the embodiments of the present invention.

[0079] Figure 9 The electronic device shown is merely an example and should not be construed as limiting the functionality and scope of use of the embodiments of the present invention.

[0080] This invention also provides a computer-readable storage medium. The methods described above according to embodiments of the invention can be implemented in hardware or firmware, or implemented as computer code that can be recorded on a storage medium, or implemented as computer code downloaded via a network and originally stored on a remote storage medium or a non-transitory machine-readable storage medium and then stored on a local storage medium. Thus, the methods described herein can be processed by software stored on a storage medium using a general-purpose computer, a dedicated processor, or programmable or dedicated hardware. The storage medium can be a magnetic disk, optical disk, read-only memory, random access memory, flash memory, hard disk, or solid-state drive, etc.; further, the storage medium can also include combinations of the above types of memory. It is understood that computers, processors, microprocessor controllers, or programmable hardware include storage components capable of storing or receiving software or computer code. When the software or computer code is accessed and executed by the computer, processor, or hardware, the near-field communication polling method shown in the above embodiments is implemented.

[0081] A portion of this invention can be applied as a computer program product, such as computer program instructions, which, when executed by a computer, can invoke or provide the methods and / or technical solutions according to the invention through the operation of the computer. Those skilled in the art will understand that the forms in which computer program instructions exist in a computer-readable medium include, but are not limited to, source files, executable files, installation package files, etc. Correspondingly, the ways in which computer program instructions are executed by a computer include, but are not limited to: the computer directly executing the instructions, or the computer compiling the instructions and then executing the corresponding compiled program, or the computer reading and executing the instructions, or the computer reading and installing the instructions and then executing the corresponding installed program. Here, the computer-readable medium can be any available computer-readable storage medium or communication medium accessible to a computer.

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

Claims

1. A polling method for near-field communication, characterized in that, Applied to a card reader device, the method includes: Acquire the change value of the target sensing signal when the card device is detected; The target polling power is determined based on the change value of the target sensing signal; Polling is performed according to the target polling power.

2. The method according to claim 1, characterized in that, The larger the change value of the target sensing signal, the smaller the target polling power.

3. The method according to claim 1 or 2, characterized in that, Determining the target polling power based on the change value of the target sensing signal includes: Determine the target change value range to which the target sensing signal change value belongs. The target change value range is one of multiple change value sub-ranges, which are obtained by pre-dividing the value range of the sensing signal change value. According to the preset correspondence, the target power range corresponding to the target change value range is obtained. The target power range is one of multiple power sub-ranges, which are obtained by pre-dividing the value range of the polling power. The target polling power is determined within the target power range.

4. The method according to claim 1 or 2, characterized in that, Determining the target polling power based on the change value of the target sensing signal includes: Obtain the curve showing the relationship between the change in the sensed signal and the polling power; Based on the corresponding relationship curve, the target polling power corresponding to the change value of the target sensing signal is determined.

5. The method according to claim 1, characterized in that, Before acquiring the target sensing signal change value when the card device is detected, the method further includes: Send target sensing signals; Receive the target sensing signal; The change value of the target sensing signal is obtained, wherein the change value of the target sensing signal is the change value of the received target sensing signal relative to the transmitted target sensing signal; If the change value of the target sensing signal is greater than the wake-up threshold, it is determined that a card device has been detected, and the system enters a polling state.

6. The method according to claim 5, characterized in that, The change value of the target sensing signal is either the change in the amplitude of the sensing signal or the change in the phase of the sensing signal.

7. The method according to claim 5 or 6, characterized in that, The step of acquiring the change value of the target sensing signal includes: The received target sensing signal is processed to obtain the corresponding in-phase component signal and quadrature component signal; The in-phase component signal and the quadrature component signal are respectively subjected to matched filtering to obtain a first signal and a second signal. At least one of the first signal and the second signal is selected for smoothing filtering and peak detection to obtain the target peak measurement value. Alternatively, the first signal and the second signal are combined and then smoothing filtering and peak detection are performed to obtain the target peak measurement value. Based on the measured peak value of the target and the peak value of the transmitted target sensing signal, the change value of the target sensing signal is obtained.

8. A polling device for near-field communication, characterized in that, The device includes: The change value acquisition module is used to acquire the change value of the target sensing signal when the card device is detected; A polling power determination module is used to determine the target polling power based on the change value of the target sensing signal; The polling module is used to poll according to the target polling power.

9. A near-field communication card reader, characterized in that, include: A memory and a processor are communicatively connected, the memory storing computer instructions, and the processor executing the computer instructions to perform the near-field communication polling method of any one of claims 1 to 6.

10. An electronic device, characterized in that, Includes the near-field communication card reader as described in claim 9.

11. A computer-readable storage medium, characterized in that, The computer-readable storage medium stores computer instructions for causing the computer to perform the polling method of near-field communication according to any one of claims 1 to 6.

12. A computer program product, characterized in that, Includes computer instructions for causing a computer to perform the polling method of near-field communication as described in any one of claims 1 to 6.