Card detection method, storage medium and card equipment

By transmitting the assisted low-power card detection signal when the second low-power card detection signal is detected, the problem of the long-term detection process of the assisted low-power card detection process is solved, and the detection efficiency is improved.

CN120090665APending Publication Date: 2025-06-03SHENZHEN GOODIX TECH CO LTD

Patent Information

Application Number
CN202510020690.5
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2025-01-06
Publication Date
2025-06-03

AI Technical Summary

Technical Problem

In related technologies, the assisted low-power card detection process takes a long time, resulting in low detection efficiency.

Method used

When the detection of the second low-power card detection signal is started, the assisted low-power card detection signal is transmitted based on the width of the first low-power card detection signal to quickly perform assisted low-power card detection.

Benefits of technology

It effectively reduces the response time from the entry of the card equipment to the start of the superimposed assisted low-power card detection signal, and improves the detection efficiency of assisted low-power card detection.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN120090665A_ABST
    Figure CN120090665A_ABST
Patent Text Reader

Abstract

The invention provides a card detection method, a storage medium and card equipment, and the method comprises the steps: detecting the start of a first low-power-consumption card detection signal, continuously detecting the end of the first low-power-consumption card detection signal, and determining the width of the first low-power-consumption card detection signal; when it is detected that the second low-power-consumption card detection signal starts, transmitting an assisted low-power-consumption card detection signal based on the width of the first low-power-consumption card detection signal; wherein the assisting type low-power-consumption card detection signal is used for assisting the card reader in discovering card equipment. According to the embodiment of the invention, the method can achieve the quick detection of the assisted low-power-consumption card, effectively reduces the response time from the entrance of the card equipment to the start of the superposed pulse, and improves the detection efficiency of the assisted low-power-consumption card.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

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

[0002] For NFC (Near Field Communication) devices, they can be divided into two ends: a reader and a card (i.e., a card device). The card device can be an electronic device with NFC function (such as a mobile phone with NFC function) or a chip, etc. The reader needs to periodically send signals (such as low-power card detection signals) to detect the card devices in the surrounding environment, so as to establish a connection for communication. To save power, the signals sent by the reader are pure carriers without information, and the detection results are based on some physical characteristics, such as antenna impedance or current. This process is called the Low Power Card Detection (LPCD) process. During the LPCD process of the reader, if the card device generates a carrier with the same frequency at the same time, this can enhance the detection ability of the reader, so that the reader can discover the existence of the card device. This process is the Assisted Low Power Card Detection (LPCD Assist) process. However, the assisted low power card detection process involved in the related technology takes a long time. Based on this, there is currently no good solution on how to quickly perform assisted low power card detection and improve the efficiency of assisted low power card detection. Summary of the Invention

[0003] In view of this, the embodiments of the present application provide a card detection method, a storage medium, and a card device to solve problems such as the long time-consuming of the assisted low power card detection process involved in the related technology; that is, the embodiments of the present application can transmit the assisted low power card detection signal when detecting the start of the second low power card detection signal, so as to quickly perform the assisted low power card detection, effectively reduce the response time from the entry of the card device (i.e., the NFC field) to the start of superimposing the assisted low power card detection signal, and thus improve the efficiency of the assisted low power card detection.

[0004] According to one aspect of the embodiments of the present application, a card detection method is provided. The method is applied to a card device. The card device continuously detects low power card detection signals when detecting a card detection requirement. The method includes:

[0005] Detect the start of the 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;

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

[0007] According to another aspect of the embodiments of the present application, a card device is provided. The card device 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 configured 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 transmission module is configured 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 execute the method mentioned above.

[0008] According to another aspect of the embodiments of the present application, a non-transitory computer-readable storage medium storing computer instructions is provided, and the computer instructions are used to cause a computer to execute the method mentioned above.

[0009] In the embodiments of the present application, when 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 can be determined; when the start of the second low-power card detection signal is detected, an assisted low-power card detection signal can be 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. It can be seen that in the embodiments of the present application, when the start of the second low-power card detection signal is detected, the assisted low-power card detection signal can be transmitted, so as to quickly perform the assisted low-power card detection, effectively reducing the response time from the entry of the card device (i.e., the NFC field) to the start of the superimposed assisted low-power card detection signal, thereby improving the efficiency of the assisted low-power card detection. Description of the Drawings

[0010] In the following description of the exemplary embodiments in conjunction with the drawings, more details, features and advantages of the present application are disclosed. In the drawings:

[0011] Figure 1 A flowchart showing a card detection method according to an exemplary embodiment of the present application is shown;

[0012] Figure 2 A flowchart showing another card detection method according to an exemplary embodiment of the present application is shown;

[0013] Figure 3Shows a schematic diagram of an assisted low-power card detection process according to an exemplary embodiment of the present application;

[0014] Figure 4 Shows a schematic flowchart of another card detection method according to an exemplary embodiment of the present application;

[0015] Figure 5 Shows a schematic diagram of a low-power card detection signal processing module according to an exemplary embodiment of the present application;

[0016] Figure 6 Shows a schematic diagram of a result sampling according to an exemplary embodiment of the present application;

[0017] Figure 7 Shows a schematic diagram of a detection window period according to an exemplary embodiment of the present application;

[0018] Figure 8 Shows a schematic block diagram of a card detection device according to an exemplary embodiment of the present application;

[0019] Figure 9 Shows a structural block diagram of an exemplary card device that can be used to implement the embodiments of the present application. Detailed implementation manners

[0020] The embodiments of the present application will be described in more detail below with reference to the accompanying drawings. Although some embodiments of the present application are shown in the drawings, it should be understood that the present application can be implemented in various forms and should not be construed as limited to the embodiments set forth herein. On the contrary, these embodiments are provided to more thoroughly and completely understand the present application. It should be understood that the drawings and embodiments of the present application are only for exemplary purposes and are not used to limit the protection scope of the present application.

[0021] It should be understood that the various steps recorded in the method embodiments of the present application can be executed in different orders and / or in parallel. In addition, the method embodiments may include additional steps and / or omit the steps shown. The scope of the present application is not limited in this regard.

[0022] The term "including" and its variants used herein are open-ended, that is, "including but not limited to". The term "based on" is "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". The relevant definitions of other terms will be given in the following description. It should be noted that the concepts such as "first" and "second" mentioned in the present application are only used to distinguish different devices, modules or units, and are not used to limit the order of functions performed by these devices, modules or units or their interdependent relationships.

[0023] It should be noted that the modifications of "one" and "multiple" mentioned in this application are illustrative rather than restrictive. Those skilled in the art should understand that unless otherwise clearly specified in the context, it should be understood as "one or more".

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

[0025] It should be noted that the execution subject of the card detection method provided in the embodiments of this application 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. The embodiments of this application do not make any limitations in this regard. In the embodiments of this application, when the card device detects a card detection requirement, it can continuously detect the low-power card detection signal; optionally, the card device can determine that it has detected a card detection requirement when the screen of the card device is turned on, or when the current system time is within the specified detection time range, or when the card device enters the specified area; and / or, it can determine that it has detected a card detection requirement when the width of the first low-power card detection signal is less than the preset width threshold; and / or, it can continuously detect a card detection requirement, such as it can detect a card detection requirement when in the powered-on state, etc.; the embodiments of this application do not make any limitations in this regard. Optionally, the specified detection time range, the specified area, etc. can all be set by the user, and the embodiments of this application do not make any limitations in this regard. Optionally, the preset width threshold can be set according to experience or according to actual requirements, and the embodiments of this application do not make any limitations in this regard.

[0026] 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 start detecting the first low-power card detection signal and continuously detect until 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 can also be called an assisted low-power card detection method. Optionally, the electronic devices mentioned here may include but are not limited to: smart phones, bracelets, tablet computers, laptop computers, desktop computers, smart watches, intelligent voice interaction devices, etc.

[0027] Based on the above description, an embodiment of the present application proposes a card detection method, which can be executed by the above-mentioned card device, that is, the method can be applied to the card device, and the card device continuously detects the low-power card detection signal when detecting the card detection requirement. As Figure 1 shown, the card detection method may include the following steps S101-S102:

[0028] S101, starting from detecting the first low-power card detection signal and continuously detecting until the end of the first low-power card detection signal, determine the width of the first low-power card detection signal.

[0029] In the embodiment of the present application, the card device may set a first detection window period to detect the first low-power card detection signal; optionally, the card device may determine the duration of the first detection window period, so as to set the first detection window period according to the duration of the first detection window period, and thus detect the first low-power card detection signal according to the first detection window period. Optionally, the duration of the first detection window period may be set according to experience or according to actual requirements, and the embodiment of the present application does not limit this. Optionally, detecting the first low-power card detection signal may be performed by detecting the signal characteristics of the first detection window period within the first detection window period, so as to determine whether the card device enters the NFC field, that is, it can be determined whether the NFC field is detected.

[0030] Specifically, the card device may obtain the signal characteristics of the first detection window period according to the first detection window period (that is, obtain 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 signal characteristics of the first detection window period; if the signal characteristics of the first detection window period conform to the reference range of the signal characteristics of the first detection window period (that is, the signal characteristics of the first detection window period are within the reference range of the signal characteristics of the first detection window period), it can be determined that the first low-power card detection signal is detected; if the signal characteristics of the first detection window period do not conform to the reference range of the signal characteristics of the first detection window period (that is, the signal characteristics of the first detection window period are not within the reference range of the signal characteristics of the first detection window period), it can be determined that the first low-power card detection signal is not detected.

[0031] 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 above-mentioned first detection window period signal characteristics or the following second detection window period signal characteristics) may include, but are not limited to, at least one of the following: the number of pulses obtained within the corresponding detection window period, the signal frequency, and the signal amplitude. That is to say, a signal characteristic can be obtained within a detection window period. Specifically, a first detection window period signal characteristic can be obtained within a first detection window period, and a second detection window period signal characteristic can be obtained within a second detection window period. Optionally, a signal characteristic may correspond to a signal characteristic reference range (such as a first detection window period signal characteristic may correspond to a first detection window period signal characteristic reference range, and a second detection window period signal characteristic may correspond to a second detection window period signal characteristic reference range). That is to say, the characteristic signal obtained according to a detection window period may correspond to the signal characteristic reference range under the corresponding detection window period. Among them, the signal characteristic reference range under the first detection window period is the first detection window period signal characteristic reference range, and the signal characteristic reference range under the second detection window period is the second detection window period signal characteristic reference range. Optionally, the signal characteristic reference range under a detection window period may include, but is not limited to, at least one of the following: the pulse number reference range, the frequency reference range, and the amplitude reference range under the corresponding detection window period. Among them, the pulse number reference range, the frequency reference range, and the amplitude reference range under the first detection window period may also be respectively referred to as the first detection window period pulse number reference range, the first detection window period frequency reference range, and the first detection window period amplitude reference range, and the pulse number reference range, the frequency reference range, and the amplitude reference range under the second detection window period may also be respectively referred to as the second detection window period pulse number reference range, the second detection window period frequency reference range, and the second detection window period amplitude reference range. Optionally, a signal characteristic reference range may be determined based on the corresponding signal characteristic reference threshold and the preset error threshold. A signal characteristic reference range may correspond to a signal characteristic reference threshold. At this time, a signal characteristic reference range may be the difference between the corresponding signal characteristic reference threshold and the preset error threshold to the sum of the corresponding signal characteristic reference threshold and the preset error threshold. Or, the signal characteristic reference range under a detection window period may be directly set according to experience or actual requirements, or may be directly set according to the corresponding signal characteristic reference threshold. The embodiments of the present application do not limit this. Optionally, both the signal characteristic reference threshold and the preset error threshold corresponding to a signal characteristic reference range may be set according to experience or actual requirements. The embodiments of the present application do not limit this.

[0032] For example, taking the frequency of the signal emitted by the card reader as f (such as 13.56 MHz (megahertz), which can be the standard frequency for NFC communication, etc.), and the duration of the first detection window period as Ton1 Taking this as an example, the signal feature reference threshold corresponding to the reference range of the number of pulses in the first detection window period can be T on1 / T (T can be the period of the detection signal of the low-power card), that is, it can be T on1 ×f (here the unit of f can be Hertz); for another example, assuming that the duration of the second detection window period is T on2 , then the signal feature reference threshold corresponding to the reference range of the number of pulses in the second detection window period can be T on2 / T, that is, it can be T on2 ×f. Based on this, the signal feature reference thresholds corresponding to the first detection window period frequency reference range and the second detection window period frequency reference range can be f; optionally, the signal feature reference threshold corresponding to an amplitude reference range can be any amplitude threshold, and so on. Optionally, the signal feature reference thresholds corresponding to the first detection window period amplitude reference range and the second detection window period amplitude reference range can be the same or different, and the embodiments of the present application do not limit this.

[0033] It should be understood that when the signal feature reference range in a detection window period includes the reference range of the number of pulses in the corresponding detection window period, the signal features obtained according to the corresponding detection window period may include the number of pulses obtained within the corresponding detection window period; when the signal feature reference range in a detection window period includes the reference range of the frequency in the corresponding detection window period, the signal features obtained according to the corresponding detection window period may include the signal frequency obtained within the corresponding detection window period; when the signal feature reference range in a detection window period includes the reference range of the amplitude in the corresponding detection window period, the signal features obtained according to the corresponding detection window period may include the signal amplitude obtained within the corresponding detection window period, and so on.

[0034] Optionally, when the number of signal features obtained within a detection window period is multiple, and the number of signal feature reference ranges under a detection window period is multiple, it can be determined that the signal features obtained within the corresponding detection window period conform to the corresponding signal feature reference ranges when each signal feature within the corresponding detection window period conforms to the corresponding signal feature reference range respectively. Exemplarily, taking the signal features as the signal features of the first detection window period as an example for illustration, assuming that the signal features of the first detection window period include the number of pulses (which is the number of pulses in the first detection window period at this time) and the signal amplitude (which is the signal amplitude in the first detection window period at this time), and the signal feature reference range 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 features of the first detection window period conform to the signal feature 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 features of the first detection window period do not conform to the signal feature 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.

[0035] 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 requirement by the signal amplitude and the corresponding amplitude reference range; optionally, the signal amplitude can be used to define the distance, rather than being used to determine whether the detected external signal is a low-power card detection signal. At this time, the signal features within a detection window period may not separately include a signal amplitude.

[0036] S102. When starting to detect the second low-power card detection signal, transmit an assisted low-power card detection signal 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.

[0037] In the embodiment of the present application, the card device can set a second detection window period to detect the second low-power card detection signal; optionally, the card device can determine the duration of the second detection window period, so as to set the second detection window period according to the duration of the second detection window period, and thus detect the second low-power card detection signal according to the second detection window period. Optionally, the duration of the second detection window period can be set according to experience or according to actual requirements, and the embodiment of the present application does not limit this.

[0038] Specifically, the card device can obtain the second detection window period signal feature according to the second detection window period (i.e., obtain the second detection window period signal feature within the second detection window period), and determine whether the second detection window period signal feature conforms to the second detection window period signal feature reference range; if the second detection window period signal feature conforms to the second detection window period signal feature reference range (i.e., the second detection window period signal feature is within the second detection window period signal feature reference range), it can be determined that the second low-power card detection signal is detected; if the second detection window period signal feature does not conform to the second detection window period signal feature reference range (i.e., the second detection window period signal feature is not within the second detection window period signal feature reference range), it can be determined that the second low-power card detection signal is not detected.

[0039] Optionally, the card device can determine whether the start of the second low-power card detection signal is detected according to the number of pulses of the low-power card detection signal within the second detection window period. That is to say, the second detection window period signal feature can include the number of pulses of the low-power card detection signal, so as to determine whether the start of the second low-power card detection signal is detected according to the number of pulses of the low-power card detection signal within the second detection window period, so as to determine whether the start of the second low-power card detection signal is detected; among them, when the second low-power card detection signal is detected, the number of pulses within the second detection window period is used as the number of pulses of the low-power card detection signal within the second detection window period. Then correspondingly, the above-mentioned operation of transmitting the assisted low-power card detection signal based on the width of the first low-power card detection signal can be triggered when the start of the second low-power card detection signal is detected.

[0040] Optionally, the duration of the second detection window period can be shorter than the duration of the first detection window period; based on this, the embodiment of the present application can detect the second low-power card detection signal through the second detection window period with a shorter duration, which can effectively speed up the response speed. That is to say, the embodiment of the present application can quickly detect the start of the second low-power card detection signal through the second detection window period, and timely transmit the assisted low-power card detection signal to quickly assist the card reader in discovering the card device; and, the detection of the first low-power card detection signal and the determination of the width of the first low-power card detection signal can be realized through the first detection window period with a longer duration, which can effectively reduce the counting error between two first detection window periods, 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, and the present application does not limit this.

[0041] In an embodiment of the present application, 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 be continuously performed to detect the second low-power card detection signal, so as to generate an LPCD Assist pulse (i.e., an assisted low-power card detection signal) when the second low-power card detection signal is detected, that is, transmit the assisted low-power card detection signal; 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 a normal communication mode, that is, 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, such as Figure 2 as shown. Among them, Figure 2 the pulse width A in can represent the width of the first low-power card detection signal, X can represent the preset width threshold, and μs can represent microseconds; and Figure 2 the card emulation in can refer to a conventional card emulation process, that is, a card emulation process that does not require an assisted low-power card detection process.

[0042] Based on this, when the width of the first low-power card detection signal reaches the preset width threshold, it can be considered that the card reader has discovered the existence of the card device and is actively communicating (at this time, the signal width will be greater than the signal width when not communicating), so there is no need to perform the LPCD Assist process. Among them, for the LPCD Assist method, if the card reader cannot read some card devices that are far away or have a small antenna, then the card device can actively send a field to let the card reader discover its own card device, so that the card reader can have a stronger detection ability.

[0043] Optionally, when transmitting the assisted low-power card detection signal based on the width of the first low-power card detection signal, the card device can transmit an assisted low-power card detection signal with a signal width equal to that of the first low-power card detection signal, that is, the pulse transmitted by the card device at this time can last for the width of the first low-power card detection signal (i.e., last for A microseconds) to end the LPCD Assist; or, the card device can determine an assist width based on the width of the first low-power card detection signal and a transmission increase width, and transmit an assisted low-power card detection signal with a signal width equal to the assist width to achieve transmitting the assisted low-power card detection signal based on the width of the first low-power card detection signal. At this time, 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.; the embodiments of the present application do not limit this. Optionally, the transmission increase width can be set according to experience or actual requirements, or can be randomly generated, and the embodiments of the present application do not limit this.

[0044] 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 detecting 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.

[0045] In summary, as Figure 3 shown, the card reader can periodically emit low-power card detection signals into the environment. Then, after the card device (which can also be simply referred to as the card) enters the field (i.e., the NFC field), when it first detects a low-power card detection signal (i.e., detects the first low-power card detection signal, and the signal detection process can also be called the field detection process, that is, the process of performing NFC field detection), it can measure the width A of the LPCD signal (here A can be used to represent the width of the first low-power card detection signal) to determine the width of the first low-power card detection signal. Correspondingly, when the width of the LPCD signal meets the requirements (i.e., the width of the first low-power card detection signal is less than the preset width threshold), the card device can continue to perform NFC field detection (i.e., at this time, it can start to detect the low-power card detection signal according to the second detection window period, that is, detect the second low-power card detection signal). Then, when the second low-power card detection signal is first detected, the card device can actively emit an LPCD Assist signal, and the duration can be greater than or equal to the width A of the previously measured LPCD signal in microseconds, to ensure that the superimposed LPCD Assist signal can cover the LPCD signal, that is, to ensure that most of the field of LPCD Assist is superimposed on the field generated by LPCD, so that the card reader can discover the card device and thus perform the NFC communication process. Among them, 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, and at this time the signal width can also be called the pulse width, and so on.

[0046] Optionally, in other embodiments, the card device can also directly start detecting the second low-power card detection signal after determining the width of the first low-power card detection signal, and so on; the present application does not make any limitations in this regard.

[0047] In the embodiment of the present application, since there is no need to perform interval measurement, the superposition pulse transmission timing of the card device is triggered based on field detection, which can effectively reduce the response time from when the card device enters the field to the start of the superposition pulse. That is, the superposition process can be performed when the second LPCD signal is detected. Moreover, since the start time of the superposition-assisted low-power card detection signal is within a very short time after the second LPCD signal arrives (that is, after detecting the second LPCD signal through 1 or 2 short second detection windows, the superposition-assisted low-power card detection signal can start), it can be understood that the superposition signal can accurately cover the original LPCD signal. Therefore, there is no need for a too long signal superposition width (for example, the shortest width that makes the assisted low-power card detection signal equal to the width of the first low-power card detection signal is sufficient), thus greatly reducing the duration of the signal transmitted by the card device. In addition, since the timing of the superposition signal is after the second LPCD signal arrives, the collision detection process of the card reader can be avoided, that is, it can be avoided that the card reader may detect the presence of a signal in the environment and stop transmitting the field, resulting in the failure of the LPCD Assist process, and so on.

[0048] In the embodiment of the present application, when the start of the first low-power card detection signal is detected and the detection of the first low-power card detection signal continues until the end, the width of the first low-power card detection signal can be determined. When the start of the second low-power card detection signal is detected, an assisted low-power card detection signal can be transmitted based on the width of the first low-power card detection signal. Among them, the assisted low-power card detection signal is used to assist the card reader in discovering the card device. It can be seen that in the embodiment of the present application, when the start of the second low-power card detection signal is detected, the assisted low-power card detection signal can be transmitted immediately, so as to quickly perform the assisted low-power card detection, effectively reducing the response time from when the card device enters the field (i.e., the NFC field) to the start of the superposition-assisted low-power card detection signal, thereby improving the efficiency of the assisted low-power card detection.

[0049] Based on the above description, the embodiment of the present application also proposes a more specific card detection method. Correspondingly, this card detection method can be executed by the card device mentioned above. The card device continuously detects the low-power card detection signal when a card detection requirement is detected. Please refer to Figure 4 , this card detection method may include the following steps S401 - S403:

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

[0051] S402, detect the start of the first low-power card detection signal and continue to detect until the end of the first low-power card detection signal, and determine 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.

[0052] In the embodiments of the present application, the width of the first low-power card detection signal may be determined based on at least one first detection window period signal feature. A first detection window period signal feature may be obtained based on the number of pulses within a first detection window period, and the number of pulses within a detection window period is the number of pulses obtained within a detection window period. Based on this, the card device may 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.

[0053] Optionally, when the first low-power card detection signal is detected, the number of pulses within the first detection window period is used 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 may be obtained by a low-power card detection signal processing module. The low-power card detection signal processing module may include, but is not limited to, a target counter and a finite state machine (FSM), etc. The embodiments of the present application do not limit this. Optionally, the target counter may be any pulse counter, and the embodiments of the present application do not limit this. Optionally, the target counter may be a ripple counter, as Figure 5 shown; in this case, the ripple counter can be used to count pulses more accurately, that is, the counting can be more accurate, the area occupied by the counter is smaller, it is easy to be structured and implemented, and the power consumption is small. There is no need to cross the clock domain, thus avoiding problems such as larger power consumption required by other ordinary counters at higher frequencies. Optionally, the low-power card detection signal processing module may further include a comparator and an accumulator, etc. The embodiments of the present application do not limit this. Among them, the target counter, state machine, etc. in the low-power card detection signal processing module may form the hardware circuit (also referred to as the detection circuit) in the card device. That is to say, the low-power card detection signal processing module may include a detection circuit, and the detection circuit may include, but is not limited to, a target counter, a state machine, a comparator, and an accumulator, etc. Based on this, according to different configurations, the low-power card detection signal processing module may have functions such as pulse counting and field detection triggering. It should be noted that Figure 5 the RF_CLK therein is the externally input field clock signal (that is, the clock signal after being converted by the card device after the external signal is input, and can also be referred to as a pulse signal or a digital signal, etc.). EN may represent an enable signal, RST may represent a reset signal, D may represent the input terminal in a D flip-flop, and CK may represent timing (i.e., the clock); when the rising edge of CK arrives, the data saved at the D terminal may be input into Q, and Q' may be the inverted data of D. count may represent the pulse counting result.

[0054] Among them, the ripple counter can be used to count the number of pulses of the external field. It is an asynchronous clock unit composed of a series of connected D flip-flops and is essentially closer to a frequency divider of the input clock. Optionally, the enable signal can be a first enable signal (such as 1) and a second enable signal (such as 0). Based on this, 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, the result can be held. When the reset signal is the first reset signal (such as 1), the counting result can be reset (i.e., reset to 0).

[0055] Based on this, if the state machine needs to read the counting result (i.e., the pulse counting result) in the ripple counter, it is necessary to first set the enable signal to the second enable signal to stop the input of the external field signal, and then wait for one period (i.e., the period of the low-power card detection signal) to make the result stable, and then read 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 period). If the counting result meets the corresponding pulse number reference range, or the frequency converted from the counting result meets the corresponding frequency reference range, etc., the comparison result (which can include but is not limited to at least one of the following: the corresponding pulse counting result and the comparison indication flag, etc.) can be transmitted to the state machine. Further, according to the configuration, if the current is the pulse counting mode (i.e., the field discovery detection mode), the state machine can control the accumulator to start accumulating the number of these pulses until a detection window period outside the counting range is detected. If the current is the field trigger detection mode, once a qualified time window (i.e., the second detection window period where the second detection window period signal feature that meets the second detection window period signal feature reference range is located) is found, the signal emission module can be immediately triggered to start superimposing the LPCD Assist signal. Optionally, the comparison indication flag can be a conforming reference range flag or a non-conforming reference range flag. The conforming reference range flag can be used to indicate that the signal feature within a detection window period meets the corresponding signal feature reference range, and the non-conforming reference range flag can be used to indicate that the signal feature within a detection window period does not meet the corresponding signal feature reference range. Optionally, the conforming reference range flag and the non-conforming reference range flag can be set according to experience or according to actual requirements, and the embodiments of the present application do not limit this.

[0056] Based on this, the state machine can support turning on or off the target counter. 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 pulses of the low-power card detection signal within the first detection window period, and so on.

[0057] Correspondingly, the method for obtaining the number of pulses within the first detection window period may include the following. When obtaining the number of pulses within the first detection window period, at the start of the first detection window period, a first enable signal may be sent to the target counter through a state machine; after the target counter receives the first enable signal, pulse counting may be performed through the target counter; at the end of the first detection window period, a second enable signal may be sent to the target counter through the state machine; after the target counter receives the second enable signal, the input of the external field signal may be stopped through the target counter and the pulse counting result may be maintained, so as 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 may be set according to experience or actual requirements, and the embodiments of the present application do not limit this; exemplarily, the first enable signal and the second enable signal may be 1 and 0 respectively.

[0058] Further, after the number of pulses within the first detection window period is obtained (such as after the state machine obtains the number of pulses within the first detection window period), the card device may send a reset signal to the target counter through the state machine, that is, the state machine may send a reset signal to the target counter; after the target counter receives the reset signal, the pulse counting result may be reset (i.e., initialized to zero) through the target counter, 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 may be set according to experience or actual requirements, and the embodiments of the present application do not limit this; exemplarily, the reset signal may be 1, etc. Based on this, since there is a need for approximately 3 cycles of sampling and resetting processes between two detection window periods (such as one cycle to stabilize the counting result, one cycle for sampling, and one cycle for resetting), the number of first detection window periods involved in the width of the first low-power card detection signal should be as small as possible, that is, T on1 should be as large as possible, which can reduce the error of the accumulated result of the number of pulses and thus reduce the error of width measurement. In the field-triggered detection mode (i.e., when detecting the second low-power card detection signal), after the state machine detects a field signal that meets the requirements, it needs to immediately notify the signal emission module to start superimposing the field. It takes 1 - 2 T on2 cycles from the generation of the LPCD signal to its being detected. Therefore, it is necessary to minimize T on2 to speed up the response speed; exemplarily, within 3 μs after the arrival of the LPCD signal, the LPCD Assist signal may be emitted and superimposed. Compared with the standard 50-μs-wide LPCD signal, etc., 3 μs will not have too much impact on the recognition of the card reader.

[0059] Optionally, in the default state, the low-power card detection signal processing module is started, and the state machine can enter the detection window period. During this period, the target counter can be opened (for example, the state machine can send a first enable signal to the target counter to open the target counter), so that it counts the external clock; the duration of a detection window period can be T on (such as T on1 or T on2 ), which can be configured by the system. After the detection window period ends, the target counter needs to be closed (for example, the state machine can send a second enable signal to the target counter to close the target counter), and the counting result is sampled in the next cycle (i.e., the signal cycle) to obtain the signal characteristics within a detection window period. Then, it can be determined whether there is a field that meets the requirements currently according to the counting result, and the target counter is reset and the sampling process of the next round (i.e., the next detection window period) continues, as Figure 6 shown.

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

[0061] Optionally, when the target application in the card device (a 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) detects a need to detect the field, it can send a field discovery detection instruction to the state machine (that is, the card device can send a field discovery detection instruction to the state machine through the target application), so that the state machine enters the field discovery detection mode, and thus the low-power card detection signal processing module enters the field discovery detection mode; that is to say, when the card device needs to be discovered, the low-power card detection signal processing module can be at t 0It is activated at all times and enters the field discovery detection mode. Optionally, the target application can determine the field discovery requirement when the card device screen is turned on, or when the current system time is within the specified detection time range, or when the card device enters the specified area, etc.; the embodiments of the present application do not limit this. Optionally, the data carried by the field discovery detection instruction may include, but is not limited to, at least one of the following: the duration of the first detection window period and the reference range of the signal characteristics of the first detection window period, etc., and the embodiments of the present application do not limit this. At this time, different detection methods can be configured according to the requirements of different applications in the card device, making the card detection method proposed in the embodiments of the present application more flexible; optionally, in other embodiments, data such as the duration of the first detection window period and the reference range of the signal characteristics of the first detection window period can also be stored in the state machine, and the present application does not limit this. Among them, the field discovery requirement can be a type of card detection requirement, that is, the card detection requirement can be determined when the field discovery requirement is detected.

[0062] Based on this, in the field discovery 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. Correspondingly, 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 here) meet the reference range of the signal characteristics of the first detection window period through the comparator, so as to enter the width measurement process of the first low-power card detection signal when the first low-power card detection signal is detected. At this time, the card device can control the accumulator to accumulate the number of low-power card detection signal pulses within the first detection window period to the pulse number accumulation result through the state machine, etc.

[0063] Optionally, the signal feature 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 detection signal pulses of the low-power card within multiple first detection window periods, the number of first detection window periods may be multiple. Then, for any one of the multiple first detection window periods, if the number of pulses within any one of the first detection window periods meets the reference range of the number of pulses in the first detection window period (at this time, it can be determined that the signal feature of the first detection window period pulse meets the reference range of the signal feature of the first detection window period pulse), it can be determined that the first low-power card detection signal is detected; and all the first detection window periods containing the number of detection signal pulses of the low-power card can be sequentially determined from the multiple first detection window periods (that is, all the first detection window periods in which the number of pulses is used as the number of detection signal pulses of the low-power card), until the number of detection signal pulses of the low-power card within the current first detection window period does not meet the reference range of the number of pulses in the first detection window period; then correspondingly, the number of detection signal pulses of the low-power card within each first detection window period can be respectively accumulated to the pulse number accumulation result to update the pulse number accumulation result, so as to determine the width of the first low-power card detection signal based on the pulse number accumulation result. Optionally, when the number of pulses within any one of the first detection window periods meets the reference range of the number of pulses in the first detection window period, it can be determined that the number of pulses within any one of the first detection window periods is the number of detection signal pulses of the low-power card within any one of the first detection window periods, that is, any one of the first detection window periods can be used as a first detection window period containing the number of detection signal pulses of the low-power card; and / or, when the number of pulses within any one of the first detection window periods meets the reference range of the number of pulses in the first detection window period, and the number of pulses in the previous first detection window period of any one of the first detection window periods is not zero, the previous first detection window period of any one of the first detection window periods can also be used as a first detection window period including the number of detection signal pulses of the low-power card; and / or, when the number of pulses within any one of the first detection window periods meets the reference range of the number of pulses in the first detection window period, the next first detection window period of any one of the first detection window periods can also be used as a first detection window period including the number of detection signal pulses of the low-power card, that is, each first detection window period after any one of the first detection window periods can be sequentially used as a first detection window period including the number of detection signal pulses of the low-power card until the number of detection signal pulses of the low-power card within the current first detection window period does not meet the reference range of the number of pulses in the first detection window period, etc.; the embodiments of the present application do not limit this.Optionally, in other embodiments, when the signal characteristics of the first detection window period further include the signal amplitude and / or the signal frequency of the first detection window period, it is also possible to determine whether the signal amplitude and / or the signal frequency within any first detection window period conforms to the corresponding signal characteristic reference range. Thus, when the signal characteristics of the first detection window period within any first detection window period conform to the signal characteristic reference range of the first detection window period, it is determined that the first low-power card detection signal is detected, and so on.

[0064] Optionally, before adding the number of low-power card detection signal pulses within each first detection window period (i.e., each first detection window period among all the first detection window periods including the number of low-power card detection signal pulses) to the pulse number accumulation result, the pulse number accumulation result can be initialized to zero, and then the number of low-power card detection signal pulses within each first detection window period is added to the pulse number accumulation result. At this time, the pulse number accumulation result can be the sum of the number of low-power card detection signal pulses within each first detection window period.

[0065] Exemplarily, as Figure 7 shown, the detection circuit can be activated at time t 0 and enter the field discovery detection mode, that is, start to detect the first low-power card detection signal; between time t 1 and time t 2 , an LPCD signal arrives, but since the number of pulses detected within this detection window period (here is the first detection window period) is too small, at this time, no external field signal is found (that is, the first low-power card detection signal is not detected at this time). Until time t 3 , it is found that an external field signal arrives (that is, the first low-power card detection signal is detected). Then the state machine can control the accumulator to add the counting results between t 1 -t 2 , and between t 2 -t 3 , and continue to add the counting results between t 3 -t 4 . Until it is found that the counting result between t 4 -t 5 does not meet the requirement of the number of pulses (that is, does not conform to the reference range of the number of pulses in the first detection window period), it is considered that the LPCD signal has ended. Thus, the counting result between t 4 -t 5 is added to the pulse number accumulation result to achieve adding the counting result between t 1 -t 5 to obtain the final pulse number accumulation result; in this case, all the first detection window periods including the number of low-power card detection signal pulses can include the first detection window period t 1-t 2 、t 2 -t 3 、t 3 -t 4 and t 4 -t 5 .

[0066] Based on this, when 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, it can be determined that the signal characteristics of the first detection window period in the current first detection window period do not meet the reference range of the signal characteristics of the first detection window period. Optionally, when the signal characteristics within a detection window period include the signal frequency detected within the corresponding detection window period, the result of the division operation between the number of pulses within a detection window period and the duration of the corresponding detection window period can be used as the signal frequency detected within the corresponding detection window period (that is, at this time, it can be the number of pulses within a detection window period / the duration of the corresponding detection window period); alternatively, the card device can also detect the external signal frequency through an analog circuit, etc.; the embodiments of the present application do not limit this. Optionally, the embodiments of the present application do not limit the specific implementation manner of determining the signal frequency through an analog circuit; exemplarily, the embodiments of the present application can measure the signal frequency through the resonance method. For example, when the impedance matching network is in an overall resonance 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 resonance state (when the current value meets the corresponding current reference range, it can be determined to be in a resonance state). At this time, the resonance frequency can be the signal frequency of the low-power card detection signal, and then when it is determined to be in a resonance state, it can be realized that the detected signal frequency meets the corresponding signal frequency reference range; or, since the resonance frequency is related to the inductance and capacitance on the impedance matching network, the method of changing the capacitance / inductance can be used to change the current value on the line. When it is found that at a certain specific capacitance / inductance value, the current on the circuit is the largest, it can be considered that the circuit is in a resonance state at this time. Thus, through the capacitance / inductance result at this time, the frequency on the circuit can be calculated to obtain the signal frequency of the external signal, etc. Optionally, the current reference range can be set according to experience or according to actual requirements, and the embodiments of the present application do not limit this.

[0067] Optionally, when the signal characteristics within a detection window period include the signal amplitude detected within the corresponding detection window period, the electronic device can detect the signal amplitude of the external signal through an analog circuit. It should be noted that the embodiments of the present application do not limit the specific determination method of the amplitude; exemplarily, the amplitude of the external signal can be determined by measuring the voltage of the analog circuit, etc.

[0068] Optionally, when determining the width of the first low-power card detection signal based on the accumulated result of the number of pulses, the card device may determine a cycle correction term corresponding to the accumulated result of the number of pulses, and determine the pulse correction quantity based on the accumulated result of the number of pulses and the cycle correction term. That is, the pulse correction quantity may be the sum of the accumulated result of the number of pulses and the cycle correction term. Based on this, the pulse correction quantity may be used to determine the width of the first low-power card detection signal. Optionally, the card device may determine the cycle correction term through a state machine and send the cycle correction term to the target application, so that the target application determines the pulse correction quantity based on the accumulated result of the number of pulses and the cycle correction term, and then determines the width of the first low-power card detection signal. Or, the pulse correction quantity may be determined through the state machine and sent to the target application, so that the target application uses the pulse correction quantity to determine the width of the first low-power card detection signal, and so on. This embodiment of the present application does not make any limitation thereto. Optionally, after the state machine sends corresponding data (such as the cycle correction term, etc.) to the target application, the state machine, etc. may be in a closed state (that is, the detection circuit may be in a closed state) until the state machine receives a field discovery detection instruction, a field trigger detection instruction, etc. again next time, and the state machine, etc. will be restarted.

[0069] Optionally, the cycle correction term corresponding to the accumulated result of the number of pulses may be determined based on the accumulated number of pulses. For example, it may be (the accumulated number of pulses - 1) × a preset cycle correction sub-term. At this time, a preset cycle correction sub-term may be determined between any two detection window periods participating in the accumulation of the number of pulses. That is, it may be determined based on the number of the first detection window periods including the number of pulses of the low-power card detection signal. The accumulated number of pulses may be the number of the first detection window periods including the number of pulses of the low-power card detection signal. Or, it may be determined based on the number of times the first low-power card detection signal is detected, and so on. This embodiment of the present application does not make any limitation thereto. Optionally, the preset cycle correction sub-term may be set according to experience or actual requirements. This embodiment of the present application does not make any limitation thereto. Exemplarily, the preset cycle correction sub-term may be 3 signal cycles, that is, it may be 3 pulse numbers.

[0070] Optionally, when using the pulse correction quantity to determine the width of the first low-power card detection signal, the product of the pulse correction quantity and the signal cycle of the low-power card detection signal may be used as the width of the first low-power card detection signal. Based on this, the pulse width measurement process may be completed in this embodiment of the present application.

[0071] Optionally, in other embodiments, the card device may also determine the signal start time and the 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 to achieve the determination of the width of the first low-power card detection signal, and so on. This application does not make any limitation thereto.

[0072] S403, when detecting the start of the second low-power card detection signal, based on the width of the first low-power card detection signal, transmit an assisted 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.

[0073] Optionally, when the target application detects a field trigger detection requirement, it can send a field trigger detection instruction to the state machine, so that the state machine enters the field trigger detection mode, and thus the low-power card detection signal processing module enters the field trigger detection mode. Optionally, the data carried by the field trigger detection instruction may include, but is not limited to, at least one of the following: the duration of the second detection window period, the signal feature reference range of the second detection window period, and the width of the first low-power card detection signal, etc., and the embodiments of the present application do not limit this. Optionally, in other embodiments, the state machine may also store the duration of the second detection window period and the signal feature reference range of the second detection window period, etc., and the present application does not limit this. Among them, the field trigger detection requirement may be a type of card detection requirement.

[0074] Optionally, the width of the first low-power card detection signal can be determined by the target application. Then, when the target application determines that the width of the first low-power card detection signal is less than the preset width threshold, it can determine that a field trigger detection requirement is detected; or, the target application can determine that a field trigger detection requirement is detected after a preset interval time after determining the pulse correction number, etc.; the embodiments of the present application do not limit this. Optionally, the preset interval time can be set according to experience or according to actual requirements, and the embodiments of the present application do not limit this.

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

[0076] Exemplarily, taking the signal feature of the second detection window period may include the number of pulses and the signal feature reference range of the second detection window period includes the reference range of the number of pulses in the second detection window period as an example for illustration; as Figure 7 shown, after the low-power card detection signal processing module is configured in the field trigger detection mode, the detection circuit can be restarted at time t 6 and the width of T on is reduced. That is to say, at this time, the duration of a detection window period (which is a second detection window period) can be T on2 , and T on2 is smaller, thereby reducing the duration of the detection window period at this time; finally, at t 7 -t 8At this moment, it is found that the sampling result this time (i.e., the number of pulses within the detection window period) meets the requirement of the number of pulses (i.e., meets the reference range of the number of pulses in the second detection window period). Therefore, the signal emission 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, and so on.

[0077] In the embodiment of the present application, the first detection window period can be set to detect the first low-power card detection signal; starting from detecting the first low-power card detection signal and continuously detecting until the end of the first low-power card detection signal, thereby determining the width of the first low-power card detection signal according to the number of pulses of the low-power card detection signal within multiple first detection window periods. Then, when the second low-power card detection signal is detected to start, based on the width of the first low-power card detection signal, an assisted low-power card detection signal is emitted; wherein, the assisted low-power card detection signal is used to assist the card reader to discover the card device. It can be seen that in the embodiment of the present application, the width of the first low-power card detection signal can be determined 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 according to different configurations through the corresponding hardware circuit, and a relatively high-precision width of the first low-power card detection signal can be obtained; moreover, in the embodiment of the present application, the external field can be quickly detected to make a response, that is, within one LPCD interval period, the LPCD signal can be covered; in addition, in the embodiment of the present application, the timing of generating the LPCD signal can be accurately positioned, so the duration of covering the signal can also be shortened, that is, the duration (i.e., the signal width) of the assisted low-power card detection signal can be shortened.

[0078] Based on the description of the related embodiments of the above card detection method, the embodiment of the present application also proposes a card detection device, which can be a computer program (including program code) running in the card device; as Figure 8 shown, the card detection device can include a processing unit 801 and a transmitting unit 802. The card detection device can execute Figure 1 or Figure 4 shown card detection method, that is, the card detection device can run the above units:

[0079] The processing unit 801 is used to start detecting the first low-power card detection signal and continuously detect until the end of the first low-power card detection signal, and determine the width of the first low-power card detection signal;

[0080] The transmitting unit 802 is used to, when the second low-power card detection signal is detected to start, based on the width of the first low-power card detection signal, emit an assisted low-power card detection signal; wherein, the assisted low-power card detection signal is used to assist the card reader to discover the card device.

[0081] In one implementation manner, the processing unit 801 can also be used for:

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

[0083] When the width of the first low-power card detection signal is less than the preset width threshold, continuously detect the low-power card detection signal;

[0084] 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 a normal communication mode.

[0085] In another embodiment, the processing unit 801 may also be used to:

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

[0087] When the processing unit 801 determines the width of the first low-power card detection signal, it may specifically be used to:

[0088] Determine the width of the first low-power card detection signal according to the number of pulses of the low-power card detection signal within multiple first detection window periods.

[0089] In another embodiment, the processing unit 801 may also be used to:

[0090] Set a second detection window period to detect the second low-power card detection signal, and determine whether the start of the second low-power card detection signal is detected according to the number of pulses of the low-power card detection signal within the second detection window period, so as to trigger the execution of, when the start of the second low-power card detection signal is detected, based on the width of the first low-power card detection signal, transmit an assisted low-power card detection signal.

[0091] In another embodiment, the duration of the second detection window period is less than the duration of the first detection window period.

[0092] In another embodiment, when the first low-power card detection signal is detected, the number of pulses within the first detection window period is used as the number of pulses of the low-power card detection signal 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. The low-power card detection signal processing module includes a target counter and a state machine; wherein, the obtaining method of the number of pulses within the first detection window period includes:

[0093] At the start of the first detection window period, through the state machine, send a first enable signal to the target counter; after the target counter receives the first enable signal, perform pulse counting through the target counter;

[0094] At the end of the first detection window period, send a second enable signal to the target counter through the state machine; after the target counter receives the second enable signal, stop the input of the external field signal through the target counter and maintain the pulse counting result, so as to obtain the number of pulses within the first detection window period from the target counter.

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

[0096] Send a reset signal to the target counter through the state machine;

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

[0098] In another implementation, when the processing unit 801 determines the width of the first low-power card detection signal according to the number of pulses of the low-power card detection signal within multiple first detection window periods, it can specifically be used to:

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

[0100] For any one of the multiple first detection window periods, if the number of pulses within any one of the first detection window periods meets the reference range of the number of pulses in the first detection window period, it is determined that the first low-power card detection signal is detected;

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

[0102] Accumulate the number of pulses of the low-power card detection signal within each of the first detection window periods to the pulse number accumulation result respectively, so as to update the pulse number accumulation result;

[0103] Based on the pulse number accumulation result, determine the width of the first low-power card detection signal.

[0104] In another implementation, when the processing unit 801 determines the width of the first low-power card detection signal based on the pulse number accumulation result, it can specifically be used to:

[0105] Determine the period correction term corresponding to the pulse number accumulation result, and based on the pulse number accumulation result and the period correction term, determine the pulse correction quantity;

[0106] Determine the width of the first low-power card detection signal by using the number of pulse corrections.

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

[0108] According to an embodiment of the present application, Figure 8 Each unit in the shown card detection device can be separately or all combined into one or several other units to form, or a certain (some) unit can be further split into multiple smaller units with functional division, which can achieve the same operation without affecting the realization of the technical effects of the embodiments of the present application. The above units are divided based on logical functions. In actual applications, the function of one unit can also be realized by multiple units, or the functions of multiple units can be realized by one unit. In other embodiments of the present application, any card detection device can also include other units. In actual applications, these functions can also be assisted by other units and can be realized by the cooperation of multiple units.

[0109] According to another embodiment of the present application, it can be achieved by running a computer program (including program code) capable of executing the respective steps involved in the corresponding method shown in Figure 1 or Figure 4 on a general-purpose electronic device such as a computer including processing elements and storage elements such as a central processing unit (CPU), a random access storage medium (RAM), and a read-only storage medium (ROM), to construct a card detection device as shown in Figure 8 and to implement the card detection method of the embodiments of the present application. The computer program can be recorded on a computer storage medium, for example, and loaded into the above-mentioned electronic device through the computer storage medium and run therein.

[0110] In the embodiments of the present application, when it is detected that the first low-power card detection signal starts and the first low-power card detection signal is continuously detected until it ends, the width of the first low-power card detection signal can be determined; when it is detected that the second low-power card detection signal starts, an assistive low-power card detection signal can be emitted 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 in the embodiments of the present application, when it is detected that the second low-power card detection signal starts, the assistive low-power card detection signal can be emitted immediately, so as to quickly perform the assistive low-power card detection, effectively reducing the response time from the entry of the card device (i.e., the NFC field) to the start of the superposition of the assistive low-power card detection signal, thereby improving the efficiency of the assistive low-power card detection.

[0111] Based on the descriptions of the above method embodiments and device embodiments, an exemplary embodiment of the present application further provides a card device, which 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 transmitting module; the low-power card detection signal processing module is configured to start detecting a first low-power card detection signal and continuously detect until the end of the first low-power card detection signal, and determine the width of the first low-power card detection signal; the signal transmitting module is configured 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 transmitting module are used to enable the card device to execute the method according to the embodiments of the present application.

[0112] An exemplary embodiment of the present application further 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 is configured to support opening or closing the target counter, and 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.

[0113] Exemplarily, as can be seen Figure 9 as shown, the card device may include a low-power card detection signal processing module 901 and a signal transmitting module 902; wherein, the low-power card detection signal processing module 901 is configured to start detecting a first low-power card detection signal and continuously detect until the end of the first low-power card detection signal, and determine the width of the first low-power card detection signal; the signal transmitting module 902 is configured to, when detecting the start of a second low-power card detection signal, transmit an assisted low-power card detection signal 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; correspondingly, the low-power card detection signal processing module 901 may include a state machine 9011 and a target counter 9012, and so on.

[0114] It should be noted that Figure 9 only the structure of the card device is exemplarily described, and the embodiments of the present application do not limit this; for example, the low-power card detection signal processing module may further include an application processor, and the application processor may be used to configure the state machine through a target application; or, the low-power card detection signal processing module may further include a comparator and an accumulator, and so on.

[0115] An exemplary embodiment of the present application further provides a non-transitory computer-readable storage medium storing a computer program, wherein the computer program, when executed by a processor of a computer, is used to enable the computer to execute the method according to the embodiments of the present application.

[0116] An exemplary embodiment of the present application further provides a computer program product, including a computer program, wherein the computer program, when executed by a processor of a computer, is used to cause the computer to execute the method according to the embodiments of the present application.

[0117] It should be understood that the program code for implementing the method of the present application can be written in any combination of one or more programming languages. These program codes can be provided to a processor or controller of a general-purpose computer, a special-purpose computer, or other programmable data processing devices, such that when the program codes are executed by the processor or controller, the functions / operations specified in the flowchart and / or block diagram are implemented. The program codes can be executed entirely on the machine, partially on the machine, as an independent software package partially on the machine and partially on a remote machine, or entirely on a remote machine or server.

[0118] In the context of the present application, a machine-readable medium can be a tangible medium that can contain or store a program for use by or in connection 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. A machine-readable medium can include, 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 a machine-readable storage medium would include an electrical connection based on one or more wires, a portable computer disk, a hard disk, a random access memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disc read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the foregoing.

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

[0120] To provide for interaction with a user, the systems and techniques described herein can be implemented on a computer having: a display device (e.g., a CRT (cathode ray tube) or LCD (liquid crystal display) monitor) for displaying information to the user; and a keyboard and a pointing device (e.g., a mouse or a trackball) by which the user can provide input to the computer. Other kinds of devices can also be used to provide for 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 acoustic input, speech input, or tactile input).

[0121] The systems and techniques described herein can be implemented in a computing system that includes backend components (e.g., as a data server), or a computing system that includes middleware components (e.g., an application server), or a computing system that includes frontend components (e.g., a user computer having a graphical user interface or a web browser through which the user can interact with an implementation of the systems and techniques described herein), or a computing system that includes any combination of such backend components, middleware components, or frontend components. The components of the system can be interconnected by any form or medium of digital data communication (e.g., a communication network). Examples of communication networks include: local area network (LAN), wide area network (WAN), and the Internet.

[0122] A computer system can include a client and a server. The client and the server are generally remote from each other and typically interact through a communication network. The client-server relationship is created by computer programs running on the respective computers and having a client-server relationship to each other.

[0123] Moreover, it should be understood that the foregoing disclosure is only a preferred embodiment of the present application, and of course cannot be used to limit the scope of rights of the present application. Therefore, equivalent changes made in accordance with the claims of the present application are still within the scope covered by the present application.

Claims

1. A card detection method, characterized in that: The method is applied to a card device, and the card device continuously detects a low-power card detection signal when a card detection requirement is detected. The method includes: Detecting the start of a first low-power card detection signal, and continuously detecting the end of the first low-power card detection signal, and determining a width of the first low-power card detection signal; When the start of 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, characterized in that The method further comprises: Determining 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, continuously detecting the low-power card detection signal; 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 a normal communication mode.

3. The method according to claim 1 or 2, characterized in that: The method further comprises: Setting a first detection window period to detect the first low-power card detection signal; The determining the width of the first low-power card detection signal comprises: 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 plurality of the first detection windows.

4. The method according to claim 3, characterized in that The method further comprises: A second detection window period is set to detect the second low-power card detection signal, and whether the start of the second low-power card detection signal is detected is determined according to the number of low-power card detection signal pulses within the second detection window period, so as to trigger the execution of transmitting an auxiliary 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, characterized in that 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, characterized in that When the first low-power card detection signal is detected, the number of pulses in the first detection window period is used as the number of low-power card detection signal pulses in the first detection window period, and the number of pulses in the first detection window period is obtained by a low-power card detection signal processing module, and the low-power card detection signal processing module includes a target counter and a state machine; wherein the number of pulses in the first detection window period is obtained by: At the beginning of the first detection window period, sending a first enable signal to the target counter through the state machine; after the target counter receives the first enable signal, counting pulses 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 external field signal input and keeps the pulse counting result to obtain the number of pulses within the first detection window period from the target counter.

7. The method according to claim 6, characterized in that After the number of pulses in the first detection window period is obtained, the method further includes: Sending a reset signal to the target counter through the state machine; After the target counter receives the reset signal, the pulse counting result is reset by the target counter, so that the target counter waits for the next pulse counting process.

8. The method according to claim 3, characterized in that The step of determining the width of the first low-power card detection signal according to the number of low-power card detection signal pulses within the first detection window period comprises: The number of the first detection window periods is multiple; For any of the first detection window periods among the plurality of the first detection window periods, if the number of pulses in any of the first detection window periods meets the reference range of the number of pulses in the first detection window period, it is determined that the first low-power card detection signal is detected; sequentially determining all first detection window periods including the number of low-power card detection signal pulses from the plurality of 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; Accumulating the number of low-power card detection signal pulses in each of the first detection window periods to the pulse number accumulation result, so as to update the pulse number accumulation result; Based on the accumulated result of the number of pulses, the width of the first low-power card detection signal is determined.

9. The method according to claim 8, characterized in that The step of determining the width of the first low-power card detection signal based on the pulse number accumulation result includes: Determining a period correction term corresponding to the pulse number accumulation result, and determining a pulse correction quantity based on the pulse number accumulation result and the period correction term; The pulse correction quantity is used to determine the width of the first low-power card detection signal.

10. The method according to claim 1 or 2, characterized in that: 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, characterized in that: The card device continuously detects the low-power card detection signal when detecting the card detection requirement; the card device comprises 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, 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 enable the card device to execute the method according to any one of claims 1-10.

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

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

Citation Information

Patent Citations

  • Control method for NFC (Near Field Communication) equipment and NFC equipment

    CN117749220A

  • Method for assisting card reader to realize card searching, card searching method and NFC (Near Field Communication) tag

    CN118153598A

  • Near field communication method and equipment

    CN118646451A

  • Card reader activation method and apparatus, and device and storage medium

    WO2024067752A1

Cited By

  • Card detection method, storage medium and card device

    WO2026144387A1