Card detection method, storage medium and card device

By continuously detecting the signal width after detecting the first low-power card detection signal and transmitting an assistance signal when the second low-power card detection signal begins, the problem of long detection time for assisted low-power cards is solved, and a fast and efficient detection process is achieved.

WO2026144387A1PCT designated stage Publication Date: 2026-07-09SHENZHEN GOODIX TECH CO LTD

Patent Information

Authority / Receiving Office
WO · WO
Patent Type
Applications
Current Assignee / Owner
SHENZHEN GOODIX TECH CO LTD
Filing Date
2025-10-14
Publication Date
2026-07-09

AI Technical Summary

Technical Problem

In existing technologies, the detection process for assisted low-power cards is time-consuming, which affects detection efficiency.

Method used

When the first low-power card detection signal is detected, the signal width is continuously monitored, and when the second low-power card detection signal is detected, an assisted low-power card detection signal is transmitted based on the signal width to assist the card reader in discovering the card device.

Benefits of technology

This reduces the response time from the arrival of the card device to the start of the detection signal for the overlay-assisted low-power card, thus improving detection efficiency.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN2025127469_09072026_PF_FP_ABST
    Figure CN2025127469_09072026_PF_FP_ABST
Patent Text Reader

Abstract

Provided in the present application are a card detection method, a storage medium and a card device. The method comprises: detecting the start of a first low-power card detection signal, and continuously detecting the end of the first low-power card detection signal, so as to determine the width of the first low-power card detection signal; and when the start of a second low-power card detection signal is detected, on the basis of the width of the first low-power card detection signal, transmitting a low-power card detection assist signal, wherein the low-power card detection assist signal is used for assisting a card reader in discovering a card device. In the embodiments of the present application, a low-power card detection assist process can be rapidly performed, so as to effectively reduce a response time from the entry of a card device to the start of a superimposed pulse, thereby improving the low-power card detection assist efficiency.
Need to check novelty before this filing date? Find Prior Art

Description

Card detection methods, storage media and card devices

[0001] This application claims priority to Chinese Patent Application No. 202510020690.5, filed on January 6, 2025, entitled “Card Detection Method, Storage Medium and Card Device”, the entire contents of which are incorporated herein by reference. Technical Field

[0002] This application relates to the field of near-field communication technology, and in particular to a card detection method, storage medium, and card device. Background Technology

[0003] NFC (Near Field Communication) devices can be divided into two ends: a reader and a card. The card can be an NFC-enabled electronic device (such as an NFC-enabled mobile phone) or a chip. The reader needs to periodically send signals (such as low-power card detection signals) to detect card devices in the surrounding environment, thereby establishing a connection and initiating communication. To save power, the reader sends a pure carrier wave without information. The detection result is based on some physical characteristics, such as antenna impedance or current. This process is called Low Power Card Detection (LPCD). During LPCD, if the card device simultaneously generates a carrier wave of the same frequency, it can enhance the reader's detection capability, allowing the reader to discover the presence of the card device. This process is called Assisted Low Power Card Detection (LPCD Assist). However, the Assisted Low Power Card Detection process involved in related technologies is time-consuming. Therefore, there is currently no good solution for how to quickly perform Assisted Low Power Card Detection and improve its efficiency. Summary of the Invention

[0004] In view of this, embodiments of this application provide a card detection method, storage medium, and card device to solve the problems of long detection time in the assisted low power card detection process involved in related technologies; that is, embodiments of this application can transmit the assisted low power card detection signal as soon as the second low power card detection signal is detected, thereby quickly performing assisted low power card detection, effectively reducing the response time from the card device entering the field (i.e., the NFC field) to the start of superimposed assisted low power card detection signal, thereby improving the efficiency of assisted low power card detection.

[0005] According to one aspect of the embodiments of this application, a card detection method is provided, the method being applied in a card device, wherein the card device continuously detects a low-power card detection signal when a card detection request is detected, the method comprising:

[0006] The width of the first low-power card detection signal is determined by detecting the start of the first low-power card detection signal and continuously detecting the end of the first low-power card detection signal.

[0007] When the second low-power card detection signal is detected, an assisted low-power card detection signal is transmitted based on the width of the first low-power card detection signal; wherein the assisted low-power card detection signal is used to assist the card reader in discovering the card device.

[0008] According to another aspect of the embodiments of this application, a card device is provided, which continuously detects a low-power card detection signal when a card detection request is detected; the card device includes a low-power card detection signal processing module and a signal transmission module; the low-power card detection signal processing module is used to detect the start of a first low-power card detection signal and continuously detect the end of the first low-power card detection signal, and determine the width of the first low-power card detection signal; the signal transmission module is used to transmit an assisted low-power card detection signal based on the width of the first low-power card detection signal; wherein, the low-power card detection signal processing module and the signal transmission module are used to cause the card device to perform the method mentioned above.

[0009] According to another aspect of the embodiments of this application, a non-transitory computer-readable storage medium storing computer instructions for causing a computer to perform the methods mentioned above is provided.

[0010] In this embodiment, the width of the first low-power card detection signal can be determined by detecting the start of the first low-power card detection signal and continuously detecting its end. When the start of the second low-power card detection signal is detected, an assistive low-power card detection signal can be transmitted based on the width of the first low-power card detection signal. The assistive low-power card detection signal assists the card reader in discovering the card device. Therefore, this embodiment can transmit the assistive low-power card detection signal as soon as the start of the second low-power card detection signal is detected, thereby quickly performing assistive low-power card detection. This effectively reduces the response time from the card device's entry into the NFC field to the start of the superimposed assistive low-power card detection signal, thus improving the efficiency of assistive low-power card detection. Attached Figure Description

[0011] Further details, features, and advantages of this application are disclosed in the following description of exemplary embodiments in conjunction with the accompanying drawings, in which:

[0012] Figure 1 shows a flowchart of a card detection method according to an exemplary embodiment of this application;

[0013] Figure 2 shows a flowchart of another card detection method according to an exemplary embodiment of this application;

[0014] Figure 3 shows a schematic diagram of an assisted low-power card detection process according to an exemplary embodiment of this application;

[0015] Figure 4 shows a flowchart of another card detection method according to an exemplary embodiment of this application;

[0016] Figure 5 shows a schematic diagram of a low-power card detection signal processing module according to an exemplary embodiment of this application;

[0017] Figure 6 illustrates a schematic diagram of a result sampling according to an exemplary embodiment of this application;

[0018] Figure 7 shows a schematic diagram of a detection window period according to an exemplary embodiment of this application;

[0019] Figure 8 shows a schematic block diagram of a card detection device according to an exemplary embodiment of this application;

[0020] Figure 9 shows a structural block diagram of an exemplary card device that can be used to implement embodiments of this application. Detailed Implementation

[0021] Embodiments of this application will now be described in more detail with reference to the accompanying drawings. While some embodiments of this application are shown in the drawings, it should be understood that this application can be implemented in various forms and should not be construed as limited to the embodiments set forth herein. Rather, these embodiments are provided to provide a more thorough and complete understanding of this application. It should be understood that the drawings and embodiments of this application are for illustrative purposes only and are not intended to limit the scope of protection of this application.

[0022] It should be understood that the steps described in the method embodiments of this application may be performed in different orders and / or in parallel. Furthermore, the method embodiments may include additional steps and / or omit the steps shown. The scope of this application is not limited in this respect.

[0023] The term "comprising" and its variations as used herein are open-ended, meaning "including but not limited to". The term "based on" means "at least partially based on". The term "one embodiment" means "at least one embodiment"; the term "another embodiment" means "at least one additional embodiment"; the term "some embodiments" means "at least some embodiments". Definitions of other terms will be given in the following description. It should be noted that the concepts of "first", "second", etc., mentioned in this application are used only to distinguish different devices, modules, or units, and are not intended to limit the order of functions performed by these devices, modules, or units or their interdependencies.

[0024] It should be noted that the terms "a" and "a plurality of" used in this application are illustrative rather than restrictive, and those skilled in the art should understand that, unless otherwise expressly indicated in the context, they should be understood as "one or more".

[0025] The names of the messages or information exchanged between multiple devices in the embodiments of this application are for illustrative purposes only and are not intended to limit the scope of these messages or information.

[0026] It should be noted that the executing entity of the card detection method provided in this application embodiment can be a card device. Here, the card device can refer to an NFC electronic device (i.e., an electronic device with NFC function) or a chip with NFC function, etc., and this application embodiment does not limit this. In this application embodiment, the card device can continuously detect low-power card detection signals when it detects a card detection request; optionally, the card device can determine that a card detection request has been detected when the card device screen is turned on, or when the current system time is within a specified detection time range, or when the card device enters a specified area; and / or, it can determine that a card detection request has been detected when the width of the first low-power card detection signal is less than a preset width threshold; and / or, it can continuously detect card detection requests, such as detecting card detection requests when the device is powered on, etc., and this application embodiment does not limit this. Optionally, the specified detection time range and specified area can be set by the user, and this application embodiment does not limit this. Optionally, the preset width threshold can be set according to experience or according to actual needs, and this application embodiment does not limit this.

[0027] Optionally, the card device may include a low-power card detection signal processing module and a signal transmission module. The low-power card detection signal processing module can be used to detect the start of a first low-power card detection signal and continuously detect the end of the first low-power card detection signal to determine the width of the first low-power card detection signal. The signal transmission module can be used to transmit an assisted low-power card detection signal based on the width of the first low-power card detection signal. Based on this, the card device can execute the card detection method proposed in the embodiments of this application through the low-power card detection signal processing module and the signal transmission module. Optionally, this card detection method may also be called an assisted low-power card detection method. Optionally, the electronic devices mentioned herein may include, but are not limited to: smartphones, wristbands, tablets, laptops, desktop computers, smartwatches, smart voice interaction devices, etc.

[0028] Based on the above description, this application proposes a card detection method, which can be executed by the aforementioned card device. That is, the method can be applied to the card device, which continuously detects a low-power card detection signal when a card detection request is detected. As shown in Figure 1, the card detection method may include the following steps S101-S102:

[0029] S101, the start of the first low-power card detection signal is detected, and the end of the first low-power card detection signal is continuously detected to determine the width of the first low-power card detection signal.

[0030] In this embodiment, the card device can set a first detection window period to detect the first low-power card detection signal. Optionally, the card device can determine the duration of the first detection window period and set the first detection window period according to its duration, thereby detecting the first low-power card detection signal according to the first detection window period. Optionally, the duration of the first detection window period can be set based on experience or actual needs, and this embodiment does not limit this. Optionally, the detection of the first low-power card detection signal can be performed by detecting the signal characteristics within the first detection window period to determine whether the card device has entered the NFC field, thus determining whether the NFC field has been detected.

[0031] Specifically, the card device can acquire the signal characteristics of the first detection window period according to the first detection window period (that is, acquire the signal characteristics of the first detection window period within the first detection window period), and determine whether the signal characteristics of the first detection window period conform to the reference range of the first detection window period signal characteristics; if the signal characteristics of the first detection window period conform to the reference range of the first detection window period signal characteristics (that is, the signal characteristics of the first detection window period are within the reference range of the first detection window period signal characteristics), it can be determined that the first low-power card detection signal has been detected; if the signal characteristics of the first detection window period do not conform to the reference range of the first detection window period signal characteristics (that is, the signal characteristics of the first detection window period are not within the reference range of the first detection window period signal characteristics), it can be determined that the first low-power card detection signal has not been detected.

[0032] Optionally, the signal characteristics within a detection window period (such as a first detection window period or a second detection window period) (such as the signal characteristics of the first detection window period mentioned above or the signal characteristics of the second detection window period mentioned below) may include, but are not limited to, at least one of the following: the number of pulses acquired within the corresponding detection window period, the signal frequency, and the signal amplitude. That is, a signal characteristic may be acquired within a detection window period. Specifically, a signal characteristic of a first detection window period may be acquired within a first detection window period, and a signal characteristic of a second detection window period may be acquired within a second detection window period. Optionally, a signal feature can correspond to a signal feature reference range (e.g., a first detection window period signal feature can correspond to a first detection window period signal feature reference range, and a second detection window period signal feature can correspond to a second detection window period signal feature reference range). That is, the feature signal obtained according to a detection window period can correspond to the signal feature reference range under the corresponding detection window period; wherein, the signal feature reference range under the first detection window period is the first detection window period signal feature reference range, and the signal feature reference range under the second detection window period is the second detection window period signal feature reference range. Optionally, under a detection window period... The signal feature reference range may include, but is not limited to, at least one of the following: a pulse count reference range, a frequency reference range, and an amplitude reference range within the corresponding detection window period; wherein, the pulse count reference range, frequency reference range, and amplitude reference range within the first detection window period may also be referred to as the pulse count reference range, frequency reference range, and amplitude reference range within the first detection window period, respectively; and the pulse count reference range, frequency reference range, and amplitude reference range within the second detection window period may also be referred to as the pulse count reference range, frequency reference range, and amplitude reference range within the second detection window period, respectively. Optionally, a signal feature reference range may be determined based on a corresponding signal feature reference threshold and a preset error threshold. A signal feature reference range may correspond to a signal feature reference threshold. In this case, a signal feature reference range may be the difference between the corresponding signal feature reference threshold and the preset error threshold to the sum of the corresponding signal feature reference threshold and the preset error threshold; or, the signal feature reference range within a detection window period may be directly set according to experience or actual needs, or it may be directly set according to the corresponding signal feature reference threshold. This application embodiment does not limit this. Optionally, the signal feature reference threshold and the preset error threshold corresponding to a signal feature reference range can both be set according to experience or actual needs, and this application embodiment does not limit this.

[0033] For example, if the frequency of the signal transmitted by the card reader is f (e.g., 13.56 MHz, which can be the standard frequency for NFC communication), and the duration of the first detection window is T...on1 Taking this as an example, the signal feature reference threshold corresponding to the reference range of the number of pulses during the first detection window period can be T. on1 / T (T can be the period of the low-power card's detection signal), which is T on1 ×f (where f can be in Hertz); for example, suppose the duration of the second detection window is T. on2 Then, the signal feature reference threshold corresponding to the reference range of the number of pulses during the second detection window period can be T. on2 / T, which can be T on2 ×f. Based on this, the signal feature reference threshold corresponding to the first detection window frequency reference range and the second detection window frequency reference range can be f; optionally, the signal feature reference threshold corresponding to an amplitude reference range can be any amplitude threshold, etc. Optionally, the signal feature reference threshold corresponding to the first detection window amplitude reference range and the second detection window amplitude reference range can be the same or different, and this application embodiment does not limit this.

[0034] It should be understood that when the signal characteristic reference range under a detection window period includes the pulse number reference range under the corresponding detection window period, the signal characteristics obtained according to the corresponding detection window period may include the number of pulses obtained within the corresponding detection window period; when the signal characteristic reference range under a detection window period includes the frequency reference range under the corresponding detection window period, the signal characteristics obtained according to the corresponding detection window period may include the signal frequency obtained within the corresponding detection window period; when the signal characteristic reference range under a detection window period includes the amplitude reference range under the corresponding detection window period, the signal characteristics obtained according to the corresponding detection window period may include the signal amplitude obtained within the corresponding detection window period, and so on.

[0035] Optionally, when there are multiple signal features acquired within a detection window period and multiple signal feature reference ranges within a detection window period, the signal feature acquired within the corresponding detection window period can be determined to conform to the corresponding signal feature reference range when each signal feature within the corresponding detection window period conforms to the corresponding signal feature reference range. For example, taking the signal characteristics of the first detection window period as an example, assuming that the signal characteristics of the first detection window period include the number of pulses (which is the number of pulses in the first detection window period) and the signal amplitude (which is the signal amplitude in the first detection window period), and the reference range of the signal characteristics of the first detection window period includes the reference range of the number of pulses in the first detection window period and the reference range of the amplitude in the first detection window period, it can be determined that the signal characteristics of the first detection window period conform to the reference range of the first detection window period when the number of pulses conforms to the reference range of the number of pulses in the first detection window period and the signal amplitude conforms to the reference range of the amplitude in the first detection window period. Then, correspondingly, it can be determined that the signal characteristics of the first detection window period do not conform to the reference range of the first detection window period when the number of pulses does not conform to the reference range of the number of pulses in the first detection window period or the signal amplitude does not conform to the reference range of the amplitude in the first detection window period, and so on.

[0036] It should be noted that a signal amplitude can be used to indicate the distance between the card device and the card reader, so as to determine whether the distance between the card device and the card reader meets the corresponding distance requirements by using the signal amplitude and the corresponding amplitude reference range; optionally, the signal amplitude can be used to limit the distance, but not to determine whether the detected external signal is a low-power card detection signal. In this case, the signal characteristics within a detection window period may not include a signal amplitude alone.

[0037] S102, when the second low-power card detection signal is detected to start, an assist low-power card detection signal is transmitted based on the width of the first low-power card detection signal; wherein, the assist low-power card detection signal is used to assist the card reader in discovering the card device.

[0038] In this embodiment, the card device may set a second detection window period to detect the second low-power card detection signal; optionally, the card device may determine the duration of the second detection window period to set the second detection window period according to its duration, thereby detecting the second low-power card detection signal according to the second detection window period. Optionally, the duration of the second detection window period may be set based on experience or according to actual needs, and this embodiment does not limit this.

[0039] Specifically, the card device can acquire the signal characteristics of the second detection window period according to the second detection window period (that is, acquire the signal characteristics of the second detection window period within the second detection window period), and determine whether the signal characteristics of the second detection window period conform to the reference range of the signal characteristics of the second detection window period; if the signal characteristics of the second detection window period conform to the reference range of the signal characteristics of the second detection window period (that is, the signal characteristics of the second detection window period are within the reference range of the signal characteristics of the second detection window period), it can be determined that the second low-power card detection signal has been detected; if the signal characteristics of the second detection window period do not conform to the reference range of the signal characteristics of the second detection window period (that is, the signal characteristics of the second detection window period are not within the reference range of the signal characteristics of the second detection window period), it can be determined that the second low-power card detection signal has not been detected.

[0040] Optionally, the card device can determine whether the start of a second low-power card detection signal has been detected based on the number of low-power card detection signal pulses within the second detection window period. That is, the signal characteristics of the second detection window period may include the number of low-power card detection signal pulses, so as to determine whether a second low-power card detection signal has been detected based on the number of low-power card detection signal pulses within the second detection window period, thereby determining whether the start of a second low-power card detection signal has been detected. Specifically, when a second low-power card detection signal is detected, the number of pulses within the second detection window period is used as the number of low-power card detection signal pulses within the second detection window period. Correspondingly, the above-mentioned transmission of an assisted low-power card detection signal based on the width of the first low-power card detection signal when the start of the second low-power card detection signal is detected can be triggered.

[0041] Optionally, the duration of the second detection window period can be shorter than the duration of the first detection window period. Based on this, embodiments of this application can achieve the detection of the second low-power card detection signal through a shorter second detection window period, effectively accelerating the response speed. In other words, embodiments of this application can quickly detect the start of the second low-power card detection signal through the second detection window period, and promptly transmit the assisted low-power card detection signal, thereby quickly assisting the card reader in discovering the card device. Furthermore, a longer first detection window period can achieve the detection of the first low-power card detection signal and the determination of its width, effectively reducing the counting error between the two first detection windows, thereby improving the accuracy of the width of the first low-power card detection signal. Optionally, in other embodiments, the duration of the second detection window period can also be equal to the duration of the first detection window period; this application does not limit this.

[0042] In this embodiment, the card device can determine whether the width of the first low-power card detection signal is less than a preset width threshold. When the width of the first low-power card detection signal is less than the preset width threshold, the detection of the low-power card detection signal can continue to be performed to detect the second low-power card detection signal. Thus, when the second low-power card detection signal is detected, an LPCD Assist pulse (i.e., an assisted low-power card detection signal) is generated, i.e., an assisted low-power card detection signal is transmitted. When the width of the first low-power card detection signal reaches (i.e., is greater than or equal to) the preset width threshold, the card device and the card reader are in normal communication mode, and it can be determined that there is no need to perform the assisted low-power card detection (i.e., LPCD Assist) process. In this case, the card device can perform a conventional card emulation process without detecting the second low-power card detection signal, as shown in Figure 2. In Figure 2, the pulse width A can represent the width of the first low-power card detection signal, X can represent the preset width threshold, and μs can represent microseconds. Furthermore, the card emulation in Figure 2 can refer to a conventional card emulation process, i.e., a card emulation process that does not require the assisted low-power card detection process.

[0043] Based on this, when the width of the first low-power card detection signal reaches a preset width threshold, it can be considered that the card reader has detected the card device and is actively communicating (at this time, the signal width will be greater than the signal width when no communication is being conducted), therefore, the LPCD Assist process is not required. Specifically, regarding the LPCD Assist method, if the card reader cannot detect some distant card devices or those with small antennas, the card device can actively emit a signal to allow the card reader to detect it, thus giving the card reader a stronger detection capability.

[0044] Optionally, when transmitting an assisted low-power card detection signal based on the width of the first low-power card detection signal, the card device may transmit an assisted low-power card detection signal with a signal width equal to the width of the first low-power card detection signal. That is, the pulse transmitted by the card device can last for the width of the first low-power card detection signal (i.e., for A microseconds) to end LPCD Assist. Alternatively, the card device may determine the assistance width based on the width of the first low-power card detection signal and the transmission increase width, and transmit an assisted low-power card detection signal with a signal width equal to the assistance width. This achieves the transmission of an assisted low-power card detection signal based on the width of the first low-power card detection signal, where the duration of the assisted low-power card detection signal can be greater than the width of the first low-power card detection signal, etc. This application embodiment does not limit this. Optionally, the transmission increase width can be set according to experience or actual needs, or it can be randomly generated; this application embodiment does not limit this.

[0045] Based on this, the starting point of the assisted low-power card detection signal can be after the starting point of the second low-power card detection signal (i.e., the assisted low-power card detection signal is emitted after the second low-power card detection signal is detected), and the ending point of the assisted low-power card detection signal can be after the ending point of the second low-power card detection signal.

[0046] As shown in Figure 3, the card reader can periodically emit low-power card detection signals into the environment. When the card device (or simply the card) enters the NFC field, it can measure the LPCD signal width A (where A represents the width of the first low-power card detection signal) upon first detecting the low-power card detection signal (the signal detection process can also be called the field detection process, i.e., the NFC field detection process). This determines the width of the first low-power card detection signal. Correspondingly, when the LPCD signal width meets the requirements (i.e., the width of the first low-power card detection signal is less than a preset width threshold), the card device can continue NFC field detection (i.e., it can start detecting low-power card detection signals according to the second detection window period, i.e., detecting the second low-power card detection signal). At the start of detecting the second low-power card detection signal, the card device can actively emit an LPCD Assist signal, with a duration greater than or equal to the previously measured LPCD signal width A in microseconds, to ensure that the superimposed LPCD Assist signal can cover the LPCD signal, thus ensuring the LPCD... The Assist signal is largely superimposed on the field generated by the LPCD, enabling the card reader to detect the card device and thus initiate the NFC communication process. The LPCD Assist signal can also be called the LPCD Assist pulse; that is, the LPCD Assist signal can be a digital signal. Optionally, the LPCD signal can also be converted into a digital signal for signal width measurement, in which case the signal width can also be called the pulse width, and so on.

[0047] Optionally, in other embodiments, the card device may also directly start detecting the second low-power card detection signal after determining the width of the first low-power card detection signal, etc.; this application does not limit this.

[0048] In this embodiment, since no interval measurement is required, the timing of the card device's superimposed pulse transmission is triggered by field detection, which can effectively reduce the response time from the card device's entry into the field to the start of the superimposed pulse. That is, the superimposed process can begin as soon as the second LPCD signal is detected. Furthermore, since the start time of the superimposed assisted low-power card detection signal is within a very short time after the arrival of the second LPCD signal (i.e., after 1 or 2 short second detection windows to detect the second LPCD signal, the superimposed assisted low-power card detection signal can begin), it can be understood that the superimposed signal can accurately cover the original LPCD signal. Therefore, a long signal superimposition width is not required (e.g., the shortest width is enough to make the assisted low-power card detection signal equal to the width of the first low-power card detection signal), thereby greatly reducing the duration of the card device's signal transmission. In addition, since the superimposed signal is transmitted after the arrival of the second LPCD signal, the collision detection process of the card reader can be avoided, thus preventing the card reader from stopping field transmission due to detecting a signal in the environment, which could lead to the failure of the LPCD Assist process, and so on.

[0049] In this embodiment, the width of the first low-power card detection signal can be determined by detecting the start of the first low-power card detection signal and continuously detecting its end. When the start of the second low-power card detection signal is detected, an assistive low-power card detection signal can be transmitted based on the width of the first low-power card detection signal. The assistive low-power card detection signal assists the card reader in discovering the card device. Therefore, this embodiment can transmit the assistive low-power card detection signal as soon as the start of the second low-power card detection signal is detected, thereby quickly performing assistive low-power card detection. This effectively reduces the response time from the card device's entry into the NFC field to the start of the superimposed assistive low-power card detection signal, thus improving the efficiency of assistive low-power card detection.

[0050] Based on the above description, this application also proposes a more specific card detection method. Accordingly, this card detection method can be executed by the card device mentioned above, which continuously detects a low-power card detection signal when a card detection request is detected. Referring to Figure 4, the card detection method may include the following steps S401-S403:

[0051] S401, set the first detection window period to detect the first low-power card detection signal.

[0052] S402, the start of the first low-power card detection signal is detected, and the end of the first low-power card detection signal is continuously detected. The width of the first low-power card detection signal is determined based on the number of low-power card detection signal pulses within multiple first detection windows.

[0053] In this embodiment, the width of the first low-power card detection signal can be determined based on at least one first detection window period signal feature. A first detection window period signal feature can be obtained based on the number of pulses within a first detection window period; the number of pulses within a detection window period is the number of pulses obtained within that detection window period. Based on this, the card device can obtain the number of pulses within at least one first detection window period to obtain at least one first detection window period signal feature, thereby determining the width of the first low-power card detection signal.

[0054] Optionally, when the first low-power card detection signal is detected, the number of pulses within the first detection window period is taken as the number of low-power card detection signal pulses within the first detection window period. The number of pulses within the first detection window period can be obtained by the low-power card detection signal processing module, which may include, but is not limited to, a target counter and a Finite State Machine (FSM), etc., and this application embodiment does not limit this. Optionally, the target counter can be any pulse counter, and this application embodiment does not limit this. Optionally, the target counter can be a ripple counter, as shown in Figure 5; in this case, the pulse counting can be performed more accurately by using a ripple counter, which makes the counting more accurate, the counter occupies a smaller area, is easier to implement in a structured manner, and has lower power consumption. It does not need to cross clock domains, thereby avoiding the problems of other ordinary counters requiring higher frequencies and thus having higher power consumption. Optionally, the low-power card detection signal processing module may also include comparators and accumulators, etc., and this application embodiment does not limit this. The target counter and state machine in the low-power card detection signal processing module can form the hardware circuit (also known as the detection circuit) in the card device. In other words, the low-power card detection signal processing module can include a detection circuit, which may include, but is not limited to, a target counter, state machine, comparator, and accumulator. Based on this, depending on the configuration, the low-power card detection signal processing module can have functions such as pulse counting and field detection triggering. It should be noted that RF_CLK in Figure 5 is the externally input field clock signal (i.e., the clock signal converted by the card device after the external signal input, also known as a pulse signal or digital signal, etc.), EN can represent the enable signal, RST can represent the reset signal, D can represent the input terminal of the D flip-flop, and CK can represent the timing (i.e., the clock). When the rising edge of CK arrives, the data stored at the D terminal can be input into Q, Q' can be the inverted data in D, and count can represent the pulse counting result.

[0055] The ripple counter is used to count the number of pulses from the external field. It is an asynchronous clock unit composed of a series of D flip-flops, essentially resembling a frequency divider for the input clock. Optionally, the enable signal can be a first enable signal (e.g., 1) and a second enable signal (e.g., 0). Therefore, when the enable signal is the first enable signal, the ripple counter can count the external field clock; when the enable signal is the second enable signal, it can retain the result; and when the reset signal is the first reset signal (e.g., 1), the counting result can be reset (i.e., reset to 0).

[0056] Based on this, if the state machine needs to read the counting result (i.e., pulse counting result) from the ripple counter, it needs to first set the enable signal to the second enable signal, stop the external signal input, and then wait for one cycle (i.e., the cycle of the low-power card detection signal) to allow the result to stabilize before reading the counting result. Optionally, the state machine can read the counting result through a comparator. In this case, the comparator can be used to evaluate the counting result of the target counter (i.e., the number of pulses within a detection window). If the counting result meets the corresponding pulse count reference range, or the frequency converted by the counting result meets the corresponding frequency reference range, the comparison result (which may include, but is not limited to, at least one of the following: the corresponding pulse counting result and the comparison indicator) can be transmitted to the state machine. Furthermore, the state machine can, according to the configuration, control the accumulator to start accumulating the number of pulses in the current pulse counting mode (i.e., field detection mode) until a detection window period outside the counting range is detected; if the current mode is field trigger detection mode, once a time window meeting the requirements (i.e., the second detection window period containing the signal characteristics of the second detection window period within the reference range of the second detection window period signal characteristics) is detected, the signal transmission module can be immediately triggered to start superimposing the LPCD Assist signal. Optionally, the comparison indicator can be a reference range conformance indicator or a reference range non-conformance indicator. The reference range conformance indicator can be used to indicate that the signal characteristics within a detection window period conform to the corresponding signal characteristic reference range, and the reference range non-conformance indicator can be used to indicate that the signal characteristics within a detection window period do not conform to the corresponding signal characteristic reference range. Optionally, the reference range conformance indicator and the reference range non-conformance indicator can be set based on experience or based on actual needs; this embodiment does not limit this.

[0057] Based on this, the state machine can support turning the target counter on or off, the target counter can be used for pulse counting, the width of the first low-power card detection signal can be determined according to the number of low-power card detection signal pulses within the first detection window period, and so on.

[0058] Accordingly, the method for obtaining the number of pulses within the first detection window period can include the following: when obtaining the number of pulses within the first detection window period, a first enable signal can be sent to the target counter through a state machine at the beginning of the first detection window period; after the target counter receives the first enable signal, it can count pulses; at the end of the first detection window period, a second enable signal can be sent to the target counter through a state machine; after the target counter receives the second enable signal, it can stop the input of external field signals and maintain the pulse counting result to obtain the number of pulses within the first detection window period from the target counter. Optionally, the first enable signal and the second enable signal can be set according to experience or actual needs, and this application embodiment does not limit this; for example, the first enable signal and the second enable signal can be 1 and 0, respectively.

[0059] Furthermore, after the number of pulses within the first detection window period is acquired (e.g., after the state machine acquires the number of pulses within the first detection window period), the card device can send a reset signal to the target counter through the state machine; that is, the state machine can send a reset signal to the target counter. After the target counter receives the reset signal, it can reset the pulse counting result (i.e., initialize it to zero) so that the target counter waits for the next pulse counting process (i.e., waits for the pulse counting process within the next detection window period). Optionally, the reset signal can be set according to experience or actual needs, and this application embodiment does not limit this; for example, the reset signal can be 1, etc. Based on this, since there are approximately 3 cycles of sampling and reset processes between the two detection windows (e.g., one cycle to stabilize the counting result, one cycle to sample, and one cycle to reset), the number of the first detection windows involved in the width of the first low-power card detection signal should be as small as possible, i.e., T on1 To minimize errors in pulse count accumulation and thus width measurement, a larger value is preferred. In field-triggered detection mode (i.e., when detecting the second low-power card signal), the state machine needs to detect a suitable field signal and immediately notify the signal transmission module to begin field superposition. This process, from LPCD signal generation to detection, requires 1-2 T seconds. on2 The cycle is such that T needs to be minimized as much as possible. on2 To speed up the response time; for example, within 3μs after the arrival of the LPCD signal, an LPCD Assist signal can be emitted and superimposed on it. Compared with the standard 50μs width of the LPCD signal, 3μs will not have a significant impact on the reader's recognition.

[0060] Optionally, in the default state, the low-power card detection signal processing module is activated, and the state machine can enter a detection window period. During this period, the target counter can be turned on (e.g., the state machine can send a first enable signal to the target counter to turn it on), causing it to count against the external clock. The duration of a detection window period can be T. on (e.g., T) on1 or T on2 The system can be configured to close the target counter after the detection window ends (e.g., the state machine can send a second enable signal to the target counter to close the target counter), and sample the counting results in the next cycle (i.e., the signal cycle) to obtain the signal characteristics within a detection window. Based on the counting results, it can be determined whether there is a field that meets the requirements. Then, the target counter is reset and the sampling process continues in the next round (i.e., the next detection window), as shown in Figure 6.

[0061] Based on this, the card device can continuously observe whether there is an external field through the low-power card detection signal processing module, and count the number of external field fluctuations, that is, perform pulse counting. Then, if it is found that the number of pulses within a certain detection window period meets the corresponding signal characteristic reference range, it can be determined that there is an external field, that is, the low-power card detection signal is detected, and thus the signal width measurement process can be performed.

[0062] Optionally, the target application in the card device (one card can correspond to at least one application (i.e., software), and the target application can be any application corresponding to any card simulated by the card device, can send a field discovery detection command to the state machine when a field discovery requirement is detected (i.e., the card device can send a field discovery detection command to the state machine through the target application), so that the state machine enters the field discovery detection mode, thereby enabling the low-power card detection signal processing module to enter the field discovery detection mode; that is, when the card device needs to be discovered, the low-power card detection signal processing module can be started at time t0 and enter the field discovery detection mode. Optionally, the target application can determine that a field discovery requirement has been detected when the card device screen is turned on, or when the current system time is within a specified detection time range, or when the card device enters a specified area, etc.; this application embodiment does not limit this. Optionally, the data carried by the field detection command may include, but is not limited to, at least one of the following: the duration of the first detection window and the reference range of signal characteristics during the first detection window, etc. This application embodiment does not limit this; in this case, different detection methods can be configured according to the needs of different applications in the card device, making the card detection method proposed in this application embodiment more flexible. Optionally, in other embodiments, the data such as the duration of the first detection window and the reference range of signal characteristics during the first detection window may also be stored in the state machine, which is not limited in this application. The field detection requirement can be one type of card detection requirement, meaning that a card detection requirement is determined when a field detection requirement is detected.

[0063] Based on this, in the on-site detection mode, the card device can detect the low-power card detection signal according to the first detection window period through the low-power card detection signal processing module. Accordingly, the card device can obtain the number of pulses within the first detection window period through the target counter, and determine whether the signal characteristics of the first detection window period (which may include the number of pulses within the first detection window period) conform to the reference range of the signal characteristics of the first detection window period through the comparator. Thus, when the first low-power card detection signal is detected, the width measurement process of the first low-power card detection signal is entered. At this time, the card device can control the accumulator through the state machine to accumulate the number of low-power card detection signal pulses within the first detection window period to the pulse count accumulation result, and so on.

[0064] Optionally, the signal characteristics of the first detection window period may include the number of pulses in the first detection window period. Based on this, when determining the width of the first low-power card detection signal according to the number of low-power card detection signal pulses within multiple first detection windows, the number of first detection windows can be multiple. For any one of these first detection windows, if the number of pulses within any one first detection window meets the reference range for the number of pulses within the first detection window (at this point, it can be determined that the pulse signal characteristics of the first detection window meet the reference range for the pulse signal characteristics of the first detection window), then it can be determined that the first low-power card detection signal has been detected. Furthermore, all first detection windows containing the number of low-power card detection signal pulses can be sequentially determined from the multiple first detection windows (i.e., all first detection windows where the number of pulses is used as the number of low-power card detection signal pulses), until the number of low-power card detection signal pulses within the current first detection window does not meet the reference range for the number of pulses within the first detection window. Correspondingly, the number of low-power card detection signal pulses within each first detection window can be accumulated to the pulse count accumulation result to update the pulse count accumulation result, thereby determining the width of the first low-power card detection signal based on the pulse count accumulation result. Optionally, when the number of pulses within any first detection window period meets the reference range for the number of pulses within the first detection window period, the number of pulses within any first detection window period can be determined as the number of low-power card detection signal pulses within any first detection window period, thus any first detection window period can be considered as a first detection window period including the number of low-power card detection signal pulses; and / or, when the number of pulses within any first detection window period meets the reference range for the number of pulses within the first detection window period, and the number of pulses in the preceding first detection window period of any first detection window period is not zero, the preceding first detection window period of any first detection window period can also be considered as a first detection window period including the low-power card detection signal pulses. A first detection window period for the number of low-power card detection signal pulses; and / or, when the number of pulses within any first detection window period meets the reference range for the number of pulses within the first detection window period, the next first detection window period after any first detection window period can also be used as a first detection window period including the number of low-power card detection signal pulses, that is, each first detection window period after any first detection window period can be used sequentially as a first detection window period including the number of low-power card detection signal pulses, until the number of low-power card detection signal pulses within the current first detection window period does not meet the reference range for the number of pulses within the first detection window period, etc.; the embodiments of this application do not limit this.Optionally, in other embodiments, when the signal characteristics of the first detection window period also include the signal amplitude and / or the signal frequency of the first detection window period, it can also be determined whether the signal amplitude and / or signal frequency within any first detection window period conforms to the corresponding signal characteristic reference range, so that when the signal characteristics of the first detection window period within any first detection window period conform to the first detection window period signal characteristic reference range, it is determined that the first low-power card detection signal has been detected, etc.

[0065] Optionally, before summing the number of low-power card detection signal pulses in each first detection window period (i.e., each of the first detection window periods that includes the number of low-power card detection signal pulses) to the pulse count summing result, the pulse count summing result can be initialized to zero. Then, the number of low-power card detection signal pulses in each first detection window period can be summed to the pulse count summing result. At this time, the pulse count summing result can be the sum of the number of low-power card detection signal pulses in each first detection window period.

[0066] For example, as shown in Figure 7, the detection circuit can be activated at time t0 and enter the field detection mode, that is, it begins to detect the first low-power card detection signal. Between time t1 and time t2, an LPCD signal arrives, but because the number of pulses detected during this detection window period (which is the first detection window period) is too small, no external field signal is detected at this time (that is, the first low-power card detection signal is not detected at this time). Until time t3, an external field signal is detected (that is, the first low-power card detection signal is detected). Then the state machine can control the accumulator to count the time between t1-t2 and t2-t3. The results are accumulated, and the count results between t3 and t4 are continued to be accumulated until the count results between t4 and t5 are found to be insufficient to meet the pulse count requirement (i.e., not in line with the pulse count reference range of the first detection window period). At this point, it is considered that the LPCD signal has ended, and the count results between t4 and t5 are added to the pulse count accumulation result to achieve the accumulation of the count results between t1 and t5, and obtain the final pulse count accumulation result. In this case, all first detection windows that include the pulse count of the low power card detection signal can include the first detection windows t1-t2, t2-t3, t3-t4, and t4-t5.

[0067] Based on this, when the number of low-power card detection signal pulses within the current first detection window does not meet the reference range for the number of pulses within the first detection window, it can be determined that the signal characteristics within the current first detection window do not meet the reference range for the signal characteristics within the first detection window. Optionally, when the signal characteristics within a detection window include the signal frequency detected within the corresponding detection window, the result of the division between the number of pulses within a detection window and the duration of the corresponding detection window can be used as the signal frequency detected within the corresponding detection window (i.e., the result can be the number of pulses within a detection window / the duration of the corresponding detection window); or, the card device can also detect the external signal frequency through analog circuits, etc.; this application embodiment does not limit this. Optionally, this application does not limit the specific implementation of determining the signal frequency through analog circuits. For example, this application can measure the signal frequency using the resonance method. When the impedance matching network is in a resonant state, the impedance on the circuit is only related to the resistance on the impedance matching network. Therefore, the amplitude of the input signal (i.e., the voltage of the analog circuit) can be measured, and the magnitude of the current on the circuit can be calculated. Thus, by measuring the current value on the line, it can be determined whether the line is in a resonant state (when the current value meets the corresponding current reference range, it can be determined that it is in a resonant state). At this time, the resonant frequency can be the signal frequency of the low-power card detection signal. Then, when it is determined that it is in a resonant state, it can be determined that the detected signal frequency meets the corresponding signal frequency reference range. Alternatively, since the resonant frequency is related to the inductance and capacitance on the impedance matching network, the current value on the line can be changed by changing the capacitance / inductance. When it is found that the current on the circuit is the largest at a certain capacitance / inductance value, it can be considered that the circuit is in a resonant state. Thus, the frequency on the circuit can be calculated using the capacitance / inductance result at this time to obtain the signal frequency of the external signal, and so on. Optionally, the current reference range can be set based on experience or according to actual needs; this application embodiment does not limit this.

[0068] Optionally, when the signal characteristics within a detection window include the signal amplitude detected within the corresponding detection window, the electronic device can detect the signal amplitude of the external signal through analog circuitry. It should be noted that the embodiments of this application do not limit the specific method for determining the amplitude; for example, the amplitude of the external signal can be determined by measuring the voltage of the analog circuit, etc.

[0069] Optionally, when determining the width of the first low-power card detection signal based on the pulse count accumulation result, the card device can determine the period correction term corresponding to the pulse count accumulation result, and determine the pulse correction quantity based on the pulse count accumulation result and the period correction term. That is, the pulse correction quantity can be the sum of the pulse count accumulation result and the period correction term. Based on this, the pulse correction quantity can be used to determine the width of the first low-power card detection signal. Optionally, the card device can determine the period correction term through a state machine and send the period correction term to the target application, so that the target application can determine the pulse correction quantity based on the pulse count accumulation result and the period correction term, and thus determine the width of the first low-power card detection signal; or, the pulse correction quantity can be determined through a state machine and sent to the target application, so that the target application can use the pulse correction quantity to determine the width of the first low-power card detection signal, etc. The embodiments of this application do not limit this. Optionally, after the state machine sends the corresponding data (such as the periodic correction term) to the target application, the state machine can be in a closed state (i.e., the detection circuit can be in a closed state) until the state machine receives a field detection command or a field trigger detection command, at which point the state machine will be restarted.

[0070] Optionally, the period correction term corresponding to the pulse count accumulation result can be determined based on the number of pulse count accumulations, such as (number of pulse count accumulations - 1) × preset period correction term. In this case, a preset period correction term can be determined between any two detection windows participating in the pulse count accumulation, which can be determined based on the number of the first detection window containing the number of pulses of the low-power card detection signal. The number of pulse count accumulations can be the number of the first detection window containing the number of pulses of the low-power card detection signal; or, it can be determined based on the number of times the first low-power card detection signal is detected, etc. This application embodiment does not limit this. Optionally, the preset period correction term can be set according to experience or actual needs, and this application embodiment does not limit this; for example, the preset period correction term can be 3 signal cycles, that is, 3 pulse counts.

[0071] Optionally, when determining the width of the first low-power card detection signal using the pulse correction quantity, the product of the pulse correction quantity and the signal period of the low-power card detection signal can be used as the width of the first low-power card detection signal. Based on this, the pulse width measurement process can be completed in the embodiments of this application.

[0072] Optionally, in other embodiments, the card device may also determine the signal start time and signal end time of the first low-power card detection signal, and use the duration between the signal end time and the signal start time as the width of the first low-power card detection signal, so as to determine the width of the first low-power card detection signal, etc.; this application does not limit this.

[0073] S403, when the second low-power card detection signal is detected, an assist low-power card detection signal is transmitted based on the width of the first low-power card detection signal; wherein the assist low-power card detection signal is used to assist the card reader in discovering the card device.

[0074] Optionally, when the target application detects a field-triggered detection requirement, it can send a field-triggered detection command to the state machine to cause the state machine to enter the field-triggered detection mode, thereby causing the low-power card detection signal processing module to enter the field-triggered detection mode. Optionally, the data carried by the field-triggered detection command may include, but is not limited to, at least one of the following: the duration of the second detection window period, the reference range of the signal characteristics of the second detection window period, and the width of the first low-power card detection signal, etc., which are not limited in this embodiment. Optionally, in other embodiments, the state machine may also store the duration of the second detection window period and the reference range of the signal characteristics of the second detection window period, etc., which are not limited in this application. The field-triggered detection requirement may be one type of card detection requirement.

[0075] Optionally, the width of the first low-power card detection signal can be determined by the target application. In this case, the target application can determine that a field-triggered detection requirement has been detected when the width of the first low-power card detection signal is less than a preset width threshold; or, the target application can determine that a field-triggered detection requirement has been detected after a preset interval time following the determination of the pulse correction quantity, etc. This application embodiment does not limit this. Optionally, the preset interval time can be set based on experience or based on actual needs; this application embodiment does not limit this.

[0076] Based on this, after the low-power card detection signal processing module enters the field-triggered detection mode, the card device can detect the second low-power card detection signal according to the second detection window period through the low-power card detection signal processing module, such as through a state machine, target counter, and comparator, etc., according to the second detection window period.

[0077] For example, the second detection window period signal characteristics may include the number of pulses, and the reference range of the second detection window period signal characteristics includes a reference range of the number of pulses in the second detection window period; as shown in Figure 7, after the low-power card detection signal processing module is configured to field-triggered detection mode, the detection circuit can be restarted at time t6, and the T time is reduced. on The width, that is, the duration of a detection window period (or a second detection window period) can be T. on2 And T on2The smaller size reduces the duration of the detection window at this time; finally, at time t7-t8, it is found that the sampling result (i.e., the number of pulses in this detection window) meets the pulse count requirement (i.e., meets the pulse count reference range of the second detection window). Therefore, the signal transmission module can be directly notified to start superimposing a field with the same width as the LPCD pulse width, and finally complete the LPCD Assist process, etc.

[0078] This application embodiment can set a first detection window period to detect the first low-power card detection signal; starting from the detection of the first low-power card detection signal and continuing to detect the first low-power card detection signal until the end, thereby determining the width of the first low-power card detection signal based on the number of low-power card detection signal pulses within multiple first detection windows. Then, when the detection of the second low-power card detection signal begins, an assistive low-power card detection signal is transmitted based on the width of the first low-power card detection signal; wherein, the assistive low-power card detection signal is used to assist the card reader in discovering the card device. It can be seen that this application embodiment can determine the width of the first low-power card detection signal by the number of pulses generated by the external signal, and the width of the first low-power card detection signal can be accurately measured by corresponding hardware circuits according to different configurations, so as to obtain a highly accurate width of the first low-power card detection signal; furthermore, this application embodiment can quickly detect the external field to respond, that is, it can cover the LPCD signal within one LPCD interval period; in addition, this application embodiment can accurately locate the timing of LPCD signal generation, so the duration of the coverage signal can also be shortened, that is, the duration (i.e., the signal width) of the assistive low-power card detection signal can be shortened.

[0079] Based on the description of the relevant embodiments of the card detection method above, this application also proposes a card detection device, which can be a computer program (including program code) running in a card device; as shown in FIG8, the card detection device may include a processing unit 801 and a transmitting unit 802. The card detection device can execute the card detection method shown in FIG1 or FIG4, that is, the card detection device can run the above-mentioned units:

[0080] The processing unit 801 is used to detect the start of the first low-power card detection signal and continuously detect the end of the first low-power card detection signal to determine the width of the first low-power card detection signal.

[0081] The transmitting unit 802 is configured to transmit an assisted low-power card detection signal based on the width of the first low-power card detection signal when the second low-power card detection signal is detected; wherein the assisted low-power card detection signal is used to assist the card reader in discovering the card device.

[0082] In one embodiment, the processing unit 801 can also be used for:

[0083] Determine whether the width of the first low-power card detection signal is less than a preset width threshold;

[0084] When the width of the first low-power card detection signal is less than the preset width threshold, the detection of the low-power card detection signal continues.

[0085] When the width of the first low-power card detection signal reaches the preset width threshold, the card device and the card reader are in normal communication mode.

[0086] In another embodiment, the processing unit 801 may also be used for:

[0087] Set a first detection window period to detect the detection signal of the first low-power card;

[0088] When determining the width of the first low-power card detection signal, the processing unit 801 can specifically be used for:

[0089] The width of the first low-power card detection signal is determined based on the number of low-power card detection signal pulses within the first detection window period.

[0090] In another embodiment, the processing unit 801 may also be used for:

[0091] A second detection window period is set to detect the second low-power card detection signal, and the number of low-power card detection signal pulses within the second detection window period is used to determine whether the start of the second low-power card detection signal is detected, so as to trigger the execution of transmitting an assisted low-power card detection signal based on the width of the first low-power card detection signal when the start of the second low-power card detection signal is detected.

[0092] In another implementation, the duration of the second detection window period is shorter than the duration of the first detection window period.

[0093] In another implementation, when the first low-power card detection signal is detected, the number of pulses within the first detection window period is taken as the number of low-power card detection signal pulses within the first detection window period. The number of pulses within the first detection window period is obtained by a low-power card detection signal processing module, which includes a target counter and a state machine. The method for obtaining the number of pulses within the first detection window period includes:

[0094] At the beginning of the first detection window period, a first enable signal is sent to the target counter through the state machine; after the target counter receives the first enable signal, pulse counting is performed through the target counter.

[0095] At the end of the first detection window period, a second enable signal is sent to the target counter through the state machine; after the target counter receives the second enable signal, the target counter stops the input of external field signals and maintains the pulse counting result, so as to obtain the number of pulses in the first detection window period from the target counter.

[0096] In another embodiment, after the number of pulses within the first detection window period is acquired, the processing unit 801 can also be used to:

[0097] The state machine sends a reset signal to the target counter.

[0098] After the target counter receives the reset signal, it resets the pulse counting result so that the target counter waits for the next pulse counting process.

[0099] In another embodiment, when the processing unit 801 determines the width of the first low-power card detection signal based on the number of low-power card detection signal pulses within a plurality of first detection window periods, it may specifically be used to:

[0100] The number of the first detection window periods is multiple;

[0101] For any one of the multiple first detection windows, if the number of pulses in any one of the first detection windows meets the reference range for the number of pulses in the first detection window, then it is determined that the first low-power card detection signal has been detected.

[0102] Sequentially determine all first detection window periods containing the number of low-power card detection signal pulses from multiple first detection window periods, until the number of low-power card detection signal pulses in the current first detection window period does not meet the reference range of the number of pulses in the first detection window period;

[0103] The number of low-power card detection signal pulses within each of the first detection window periods is added to the pulse count accumulation result to update the pulse count accumulation result;

[0104] Based on the accumulated number of pulses, the width of the first low-power card detection signal is determined.

[0105] In another embodiment, when determining the width of the first low-power card detection signal based on the accumulated pulse count, the processing unit 801 may specifically be used for:

[0106] Determine the period correction term corresponding to the cumulative pulse count result, and determine the pulse correction quantity based on the cumulative pulse count result and the period correction term;

[0107] The width of the first low-power card detection signal is determined using the pulse correction quantity.

[0108] In another embodiment, the starting point of the assisted low-power card detection signal is after the starting point of the second low-power card detection signal, and the ending point of the assisted low-power card detection signal is after the ending point of the second low-power card detection signal.

[0109] According to one embodiment of this application, each unit in the card detection device shown in FIG8 can be individually or entirely merged into one or more other units, or one or more of the units can be further divided into multiple functionally smaller units. This can achieve the same operation without affecting the technical effect of the embodiment of this application. The above units are based on logical function division. In practical applications, the function of one unit can also be implemented by multiple units, or the function of multiple units can be implemented by one unit. In other embodiments of this application, any card detection device may also include other units. In practical applications, these functions can also be implemented with the assistance of other units, and can be implemented by multiple units working together.

[0110] According to another embodiment of this application, the card detection device shown in FIG8, and the card detection method of this application embodiment, can be constructed and implemented by running a computer program (including program code) capable of performing the steps involved in the corresponding methods shown in FIG1 or FIG4 on a general electronic device including processing elements and storage elements such as a computer, a central processing unit (CPU), random access storage medium (RAM), and read-only storage medium (ROM). The computer program can be recorded on, for example, a computer storage medium, loaded into the aforementioned electronic device via the computer storage medium, and run therein.

[0111] In this embodiment, the width of the first low-power card detection signal can be determined by detecting the start of the first low-power card detection signal and continuously detecting its end. When the start of the second low-power card detection signal is detected, an assistive low-power card detection signal can be transmitted based on the width of the first low-power card detection signal. The assistive low-power card detection signal assists the card reader in discovering the card device. Therefore, this embodiment can transmit the assistive low-power card detection signal as soon as the start of the second low-power card detection signal is detected, thereby quickly performing assistive low-power card detection. This effectively reduces the response time from the card device's entry into the NFC field to the start of the superimposed assistive low-power card detection signal, thus improving the efficiency of assistive low-power card detection.

[0112] Based on the description of the above method and device embodiments, an exemplary embodiment of this application also provides a card device that continuously detects a low-power card detection signal when a card detection requirement is detected. The card device includes a low-power card detection signal processing module and a signal transmission module. The low-power card detection signal processing module is used to detect the start of a first low-power card detection signal and continuously detect the end of the first low-power card detection signal to determine the width of the first low-power card detection signal. The signal transmission module is used to transmit an assisted low-power card detection signal based on the width of the first low-power card detection signal. The low-power card detection signal processing module and the signal transmission module are used to enable the card device to execute the method according to the embodiments of this application.

[0113] An exemplary embodiment of this application also provides a more specific card device, wherein the low-power card detection signal processing module includes a state machine and a target counter; wherein the state machine supports turning the target counter on or off, the target counter is used for pulse counting, and the width of the first low-power card detection signal is determined according to the number of low-power card detection signal pulses within a first detection window period.

[0114] For example, as shown in Figure 9, the card device may include a low-power card detection signal processing module 901 and a signal transmission module 902; wherein, the low-power card detection signal processing module 901 is used to detect the start of a first low-power card detection signal and continuously detect the end of the first low-power card detection signal to determine the width of the first low-power card detection signal; the signal transmission module 902 is used to transmit an assisted low-power card detection signal based on the width of the first low-power card detection signal when a second low-power card detection signal is detected to start; wherein, the assisted low-power card detection signal is used to assist the card reader in discovering the card device; correspondingly, the low-power card detection signal processing module 901 may include a state machine 9011 and a target counter 9012, etc.

[0115] It should be noted that Figure 9 is only an illustrative representation of the structure of the card device, and the embodiments of this application do not limit it; for example, the low-power card detection signal processing module may also include an application processor, which can be used to configure a state machine through a target application, etc.; as well as, the low-power card detection signal processing module may also include a comparator and an accumulator, etc.

[0116] An exemplary embodiment of this application also provides a non-transitory computer-readable storage medium storing a computer program, wherein the computer program, when executed by a computer's processor, is used to cause the computer to perform a method according to an embodiment of this application.

[0117] An exemplary embodiment of this application also provides a computer program product, including a computer program, wherein, when executed by a computer's processor, the computer program is used to cause the computer to perform a method according to an embodiment of this application.

[0118] It should be understood that the program code used to implement the methods of this application can be written in any combination of one or more programming languages. This program code can be provided to the processor or controller of a general-purpose computer, special-purpose computer, or other programmable data processing device, such that when executed by the processor or controller, the functions / operations specified in the flowcharts and / or block diagrams are implemented. The program code can be executed entirely on a machine, partially on a machine, as a standalone software package partially on a machine and partially on a remote machine, or entirely on a remote machine or server.

[0119] In the context of this application, a machine-readable medium can be a tangible medium that may contain or store a program for use by or in conjunction with an instruction execution system, apparatus, or device. A machine-readable medium can be a machine-readable signal medium or a machine-readable storage medium. Machine-readable media can be, but is not limited to, electronic, magnetic, optical, electromagnetic, infrared, or semiconductor systems, apparatus, or devices, or any suitable combination of the foregoing. More specific examples of machine-readable storage media include electrical connections based on one or more wires, portable computer disks, hard disks, random access memory (RAM), read-only memory (ROM), erasable programmable read-only memory (EPROM or flash memory), optical fibers, portable compact disk read-only memory (CD-ROM), optical storage devices, magnetic storage devices, or any suitable combination of the foregoing.

[0120] As used in this application, the terms "machine-readable medium" and "computer-readable medium" refer to any computer program product, device, and / or apparatus (e.g., disk, optical disk, memory, programmable logic device (PLD)) for providing machine instructions and / or data to a programmable processor, including machine-readable media that receive machine instructions as machine-readable signals. The term "machine-readable signal" refers to any signal for providing machine instructions and / or data to a programmable processor.

[0121] To provide interaction with a user, the systems and techniques described herein can be implemented on a computer having: a display device for displaying information to the user (e.g., a CRT (cathode ray tube) or LCD (liquid crystal display) monitor); and a keyboard and pointing device (e.g., a mouse or trackball) through which the user provides input to the computer. Other types of devices can also be used to provide interaction with the user; for example, feedback provided to the user can be any form of sensory feedback (e.g., visual feedback, auditory feedback, or tactile feedback); and input from the user can be received in any form (including sound input, voice input, or tactile input).

[0122] The systems and technologies described herein can be implemented in computing systems that include backend components (e.g., as a data server), or computing systems that include middleware components (e.g., an application server), or computing systems that include frontend components (e.g., a user computer with a graphical user interface or web browser through which a user can interact with implementations of the systems and technologies described herein), or any combination of such backend, middleware, or frontend components. The components of the system can be interconnected via digital data communication of any form or medium (e.g., a communication network). Examples of communication networks include local area networks (LANs), wide area networks (WANs), and the Internet.

[0123] Computer systems can include clients and servers. Clients and servers are generally located far apart and typically interact through communication networks. Client-server relationships are created by computer programs running on the respective computers and having a client-server relationship with each other.

[0124] Furthermore, it should be understood that the above-disclosed embodiments are merely preferred embodiments of this application and should not be construed as limiting the scope of this application. Therefore, any equivalent variations made in accordance with the claims of this application are still within the scope of this application.

Claims

1. A card detection method, the method being applied in a card device, wherein the card device continuously detects a low-power card detection signal when a card detection request is detected, the method comprising: The width of the first low-power card detection signal is determined by detecting the start of the first low-power card detection signal and continuously detecting the end of the first low-power card detection signal. When the second low-power card detection signal is detected, an assisted low-power card detection signal is transmitted based on the width of the first low-power card detection signal; wherein the assisted low-power card detection signal is used to assist the card reader in discovering the card device.

2. The method according to claim 1, wherein, The method further includes: Determine whether the width of the first low-power card detection signal is less than a preset width threshold; When the width of the first low-power card detection signal is less than the preset width threshold, the detection of the low-power card detection signal continues. When the width of the first low-power card detection signal reaches the preset width threshold, the card device and the card reader are in normal communication mode.

3. The method according to claim 1 or 2, wherein, The method further includes: Set a first detection window period to detect the detection signal of the first low-power card; Determining the width of the first low-power card detection signal includes: The width of the first low-power card detection signal is determined based on the number of low-power card detection signal pulses within the first detection window period.

4. The method according to claim 3, wherein, The method further includes: A second detection window period is set to detect the second low-power card detection signal, and the number of low-power card detection signal pulses within the second detection window period is used to determine whether the start of the second low-power card detection signal is detected, so as to trigger the execution of transmitting an assisted low-power card detection signal based on the width of the first low-power card detection signal when the start of the second low-power card detection signal is detected.

5. The method according to claim 4, wherein, The duration of the second detection window period is shorter than the duration of the first detection window period.

6. The method according to claim 3, wherein, When the first low-power card detection signal is detected, the number of pulses within the first detection window period is taken as the number of low-power card detection signal pulses within the first detection window period. The number of pulses within the first detection window period is obtained by a low-power card detection signal processing module, which includes a target counter and a state machine. The method for obtaining the number of pulses within the first detection window period includes: At the beginning of the first detection window period, a first enable signal is sent to the target counter through the state machine; after the target counter receives the first enable signal, pulse counting is performed through the target counter. At the end of the first detection window period, a second enable signal is sent to the target counter through the state machine; after the target counter receives the second enable signal, the target counter stops the input of external field signals and maintains the pulse counting result, so as to obtain the number of pulses in the first detection window period from the target counter.

7. The method according to claim 6, wherein, After the number of pulses within the first detection window period is obtained, the method further includes: The state machine sends a reset signal to the target counter. After the target counter receives the reset signal, it resets the pulse counting result so that the target counter waits for the next pulse counting process.

8. The method according to claim 3, wherein, Determining the width of the first low-power card detection signal based on the number of low-power card detection signal pulses within multiple first detection window periods includes: The number of the first detection window periods is multiple; For any one of the multiple first detection windows, if the number of pulses in any one of the first detection windows meets the reference range for the number of pulses in the first detection window, then it is determined that the first low-power card detection signal has been detected. Sequentially determine all first detection window periods containing the number of low-power card detection signal pulses from multiple first detection window periods, until the number of low-power card detection signal pulses in the current first detection window period does not meet the reference range of the number of pulses in the first detection window period; The number of low-power card detection signal pulses within each of the first detection window periods is added to the pulse count accumulation result to update the pulse count accumulation result; Based on the accumulated number of pulses, the width of the first low-power card detection signal is determined.

9. The method according to claim 8, wherein, Determining the width of the first low-power card detection signal based on the accumulated pulse count includes: Determine the period correction term corresponding to the cumulative pulse count result, and determine the pulse correction quantity based on the cumulative pulse count result and the period correction term; The width of the first low-power card detection signal is determined using the pulse correction quantity.

10. The method according to claim 1 or 2, wherein, The starting point of the assisted low-power card detection signal is after the starting point of the second low-power card detection signal, and the ending point of the assisted low-power card detection signal is after the ending point of the second low-power card detection signal.

11. A card device, wherein the card device continuously detects a low-power card detection signal when a card detection request is detected; the card device includes a low-power card detection signal processing module and a signal transmission module; The low-power card detection signal processing module is used to detect the start of the first low-power card detection signal and continuously detect the end of the first low-power card detection signal to determine the width of the first low-power card detection signal. The signal transmitting module is used to transmit an assisted low-power card detection signal based on the width of the first low-power card detection signal; wherein, The low-power card detection signal processing module and the signal transmission module are used to enable the card device to perform the method according to any one of claims 1-10.

12. The card device according to claim 11, wherein, The low-power card detection signal processing module includes a state machine and a target counter; wherein, the state machine supports turning the target counter on or off, the target counter is used for pulse counting, and the width of the first low-power card detection signal is determined according to the number of low-power card detection signal pulses within the first detection window period.

13. A non-transitory computer-readable storage medium storing computer instructions, wherein, The computer instructions are used to cause the computer to perform the method according to any one of claims 1-10.