CN115865138B - Method and device for capturing near field communication signal, electronic equipment and medium - Google Patents

Method and device for capturing near field communication signal, electronic equipment and medium Download PDF

Info

Publication number
CN115865138B
CN115865138B CN202310137093.1A CN202310137093A CN115865138B CN 115865138 B CN115865138 B CN 115865138B CN 202310137093 A CN202310137093 A CN 202310137093A CN 115865138 B CN115865138 B CN 115865138B
Authority
CN
China
Prior art keywords
determining
signal
value
amplitude threshold
near field
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN202310137093.1A
Other languages
Chinese (zh)
Other versions
CN115865138A (en
Inventor
黄金煌
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Beijing Unigroup Tsingteng Microsystems Co Ltd
Original Assignee
Beijing Unigroup Tsingteng Microsystems Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Beijing Unigroup Tsingteng Microsystems Co Ltd filed Critical Beijing Unigroup Tsingteng Microsystems Co Ltd
Priority to CN202310137093.1A priority Critical patent/CN115865138B/en
Publication of CN115865138A publication Critical patent/CN115865138A/en
Application granted granted Critical
Publication of CN115865138B publication Critical patent/CN115865138B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • YGENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
    • Y02TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
    • Y02DCLIMATE CHANGE MITIGATION TECHNOLOGIES IN INFORMATION AND COMMUNICATION TECHNOLOGIES [ICT], I.E. INFORMATION AND COMMUNICATION TECHNOLOGIES AIMING AT THE REDUCTION OF THEIR OWN ENERGY USE
    • Y02D30/00Reducing energy consumption in communication networks
    • Y02D30/70Reducing energy consumption in communication networks in wireless communication networks

Landscapes

  • Mobile Radio Communication Systems (AREA)

Abstract

The application relates to the technical field of near field communication, and discloses a method for capturing near field communication signals, which comprises the following steps: acquiring a digital signal corresponding to the near field communication signal; determining an envelope detection value corresponding to the digital signal; determining a target amplitude threshold according to the envelope detection value; determining a signal inflection point according to the envelope detection value and the target amplitude threshold value; in case the signal inflection point is located in a first time period comprising a frame delay moment, it is determined to acquire the near field communication signal. In this way, the target amplitude threshold is dynamically changed according to the received near field communication signal, rather than selecting a fixed target amplitude threshold, facilitating better acquisition of the near field communication signal. Meanwhile, whether the near field communication signal is captured or not is judged in an auxiliary mode according to the frame delay time, the near field communication signal can be identified more accurately, and therefore the success rate of capturing the near field communication signal is improved. The application also discloses an apparatus, an electronic device and a storage medium for capturing near field communication signals.

Description

Method and device for capturing near field communication signal, electronic equipment and medium
Technical Field
The present application relates to the field of near field communication technology, for example, to a method and apparatus for capturing near field communication signals, an electronic device, and a storage medium.
Background
Currently, the application of near field communication technology has become more and more widespread. For example: chinese patent document publication No. CN103001670a discloses: mobile phone payment has slowly entered people's life today. The mobile phone with the NFC function can replace a bus card, a bank card and a credit card which are required to be used in usual travel, and the NFC can solve all the problems. Meanwhile, users can make the operation experience of the users better by utilizing the NFC signal, for example: chinese patent document publication No. CN107294566a discloses: by utilizing the characteristic that the NFC technology can be used for quickly and automatically establishing connection, whether the NFC signal is effective or not is judged according to the duration of the NFC signal generated by electromagnetic coupling between the NFC equipment and the NFC control equipment, and a predefined controlled item is controlled according to the signal strength of the NFC signal, so that the function of completing the control of the NFC equipment without operations such as unlocking and selecting of a user is realized, the operation efficiency of an electronic product is improved, and the operation experience of the user is further improved.
Capturing NFC (NearField Communication ) signals is a very important link in the process of using near field communication technology. Due to factors such as different use environments, different antenna matching performance, deviation of technological parameters during batch manufacturing and the like, the influence degree of noise and interference on NFC signals is different. For example, due to the limitation of the volume of the smart phone, the integration level of the device is high, so that the influence of heating and electromagnetic interference in the smart phone on NFC signals is large. The POS (point of sale) machine has smaller influence on NFC signals due to heat generation and electromagnetic interference in the POS machine because of larger possibility. In the related art, a fixed amplitude threshold is generally used to determine whether a near field communication signal is captured, so that the success rate of capturing the near field communication signal is low.
Disclosure of Invention
The following presents a simplified summary in order to provide a basic understanding of some aspects of the disclosed embodiments. This summary is not an extensive overview, and is intended to neither identify key/critical elements nor delineate the scope of such embodiments, but is intended as a prelude to the more detailed description that follows.
The embodiment of the disclosure provides a method and a device for capturing near field communication signals, electronic equipment and a storage medium, so as to improve the success rate of capturing near field communication signals.
In some embodiments, a method for acquiring a near field communication signal, comprises: acquiring a digital signal corresponding to the near field communication signal; determining an envelope detection value corresponding to the digital signal; determining a target amplitude threshold according to the envelope detection value; determining a signal inflection point according to the envelope detection value and the target amplitude threshold value; determining to acquire the near field communication signal in case the signal inflection point is located in a first time period including a frame delay time; the frame delay time is used to characterize the time of the first modulation edge of the start bit sent by the PICC.
In some embodiments, determining a target amplitude threshold from the envelope detection value comprises: dividing a digital signal located during a frame delay period into a plurality of signal segments; the frame delay period is used for representing the time between the end of the last modulation pulse transmitted by the PCD and the first modulation edge in the starting bit range transmitted by the PICC; determining a first maximum value and a second maximum value of each signal segment respectively; the first maximum value is the maximum value of the absolute value of the amplitude corresponding to the digital signal; the second maximum value is the maximum value of the envelope detection value corresponding to the digital signal; and determining a target amplitude threshold according to each first maximum value and each second maximum value.
In some embodiments, determining a target amplitude threshold from each of the first maxima and each of the second maxima comprises: determining a first average value between each of the first maxima; determining a second average value between each of the second maxima; and determining a target amplitude threshold according to the first average value and the second average value.
In some embodiments, determining a target amplitude threshold from the first average and the second average comprises: correcting a first maximum value according to the first average value; correcting a second maximum value according to the second average value; and determining a target amplitude threshold according to the corrected first maximum value and the corrected second maximum value.
In some embodiments, determining a signal inflection point from the envelope detection value and the target amplitude threshold value comprises: determining the first sampling point as a signal inflection point under the condition that the envelope detection value of the first sampling point is larger than the target amplitude threshold, the envelope detection value of the first sampling point is larger than the envelope detection value of the second sampling point, and the envelope detection value of the second sampling point is larger than the envelope detection value of the third sampling point; the first sampling point is used for representing a sampling point corresponding to the digital signal; the second sampling point is used for representing the next sampling point of the sampling points corresponding to the digital signals; the third sampling point is used for representing the last two sampling points of the sampling points corresponding to the digital signals.
In some embodiments, after determining the target amplitude threshold from the envelope detection value, further comprising: and updating the target amplitude threshold according to the envelope detection value.
In some embodiments, after determining a signal inflection point from the envelope detection value and the target amplitude threshold value, further comprising: in the case where the signal inflection point is not located in the first period including the frame delay time, the target amplitude threshold value is updated according to the envelope detection value.
In some embodiments, an apparatus for acquiring a near field communication signal comprises: the acquisition module is configured to acquire a digital signal corresponding to the near field communication signal; an envelope detection determining module configured to determine an envelope detection value corresponding to the digital signal; a target amplitude threshold determination module configured to determine a target amplitude threshold from the envelope detection value; a signal inflection point determining module configured to determine a signal inflection point from the envelope detection value and the target amplitude threshold; a near field communication signal determination module configured to determine to capture a near field communication signal if the signal inflection point is located in a first time period including a frame delay time; the frame delay time is used to characterize the time of the first modulation edge of the start bit sent by the PICC.
In some embodiments, the electronic device comprises a processor and a memory storing program instructions, the processor being configured to perform the above-described method for acquiring near field communication signals when executing the program instructions.
In some embodiments, the storage medium stores program instructions that, when executed, perform the method for acquiring near field communication signals described above.
The method and device for capturing near field communication signals, the electronic device and the storage medium provided by the embodiment of the disclosure can realize the following technical effects: and acquiring a digital signal corresponding to the near field communication signal. And determining an envelope detection value corresponding to the digital signal. And determining a target amplitude threshold according to the envelope detection value. And determining a signal inflection point according to the envelope detection value and the target amplitude threshold value. In case the signal inflection point is located in a first time period comprising a frame delay moment, it is determined to acquire the near field communication signal. The frame delay time is used to characterize the time of the first modulation edge of the start bit sent by the PICC. In this way, the target amplitude threshold is dynamically changed according to the received near field communication signal, rather than selecting a fixed target amplitude threshold, facilitating better acquisition of the near field communication signal. Meanwhile, whether the near field communication signal is captured or not is judged in an auxiliary mode according to the frame delay time, the near field communication signal can be identified more accurately, and therefore the success rate of capturing the near field communication signal is improved.
The foregoing general description and the following description are exemplary and explanatory only and are not restrictive of the application.
Drawings
One or more embodiments are illustrated by way of example and not limitation in the figures of the accompanying drawings, in which like references indicate similar elements, and in which like reference numerals refer to similar elements, and in which:
fig. 1 is a schematic diagram of a method for acquiring a near field communication signal provided by an embodiment of the present disclosure;
FIG. 2 is a schematic diagram of PICC-to-PCD frame delay provided by an embodiment of the present disclosure;
FIG. 3 is a schematic diagram of a first time period including a frame delay time provided by an embodiment of the present disclosure;
fig. 4 is a schematic diagram of another method for acquiring near field communication signals provided by an embodiment of the present disclosure;
fig. 5 is a schematic diagram of an apparatus for acquiring near field communication signals provided by an embodiment of the present disclosure;
fig. 6 is a schematic diagram of an electronic device provided in an embodiment of the disclosure.
Detailed Description
So that the manner in which the features and techniques of the disclosed embodiments can be understood in more detail, a more particular description of the embodiments of the disclosure, briefly summarized below, may be had by reference to the appended drawings, which are not intended to be limiting of the embodiments of the disclosure. In the following description of the technology, for purposes of explanation, numerous details are set forth in order to provide a thorough understanding of the disclosed embodiments. However, one or more embodiments may still be practiced without these details. In other instances, well-known structures and devices may be shown simplified in order to simplify the drawing.
The terms first, second and the like in the description and in the claims of the embodiments of the disclosure and in the above-described figures are used for distinguishing between similar objects and not necessarily for describing a particular sequential or chronological order. It is to be understood that the data so used may be interchanged where appropriate in order to describe embodiments of the present disclosure. Furthermore, the terms "comprise" and "have," as well as any variations thereof, are intended to cover a non-exclusive inclusion.
The term "plurality" means two or more, unless otherwise indicated.
In the embodiment of the present disclosure, the character "/" indicates that the front and rear objects are an or relationship. For example, A/B represents: a or B.
The term "and/or" is an associative relationship that describes an object, meaning that there may be three relationships. For example, a and/or B, represent: a or B, or, A and B.
The term "corresponding" may refer to an association or binding relationship, and the correspondence between a and B refers to an association or binding relationship between a and B.
In some embodiments, sampling a signal refers to sampling an analog signal by a sampler at intervals to obtain a time-discrete signal. One sample point is obtained for each sample. In the method, near field communication signals are acquired first, and then the sampler samples the near field communication signals according to a certain time interval to acquire time-discrete sampling signals. The sampled signal is converted by an analog-to-digital converter to obtain a digital signal which is discrete in both value and time. The amplitude of the digital signal corresponding to the sampling signal obtained by each sampling is determined as a sampling value.
In some embodiments, after the near field communication signal is acquired, the near field communication signal is amplified, filtered, and the like, and the processed near field communication signal is sampled by a sampler.
In some embodiments, the near field communication signal is acquired through an antenna. The near field communication signal is amplified, filtered, etc. by means of an analog front end. The signal amplitude of the near field communication signal is improved by adopting low noise amplification, and out-of-band interference and noise influence are suppressed by utilizing band-pass filtering.
In some embodiments, the electronic device is a near field communication device with NFC functionality, and the application applies to electronic devices in a card reader mode. And acquiring a digital signal corresponding to the near field communication signal. And determining an envelope detection value corresponding to the digital signal. And determining a target amplitude threshold according to the envelope detection value. And determining a signal inflection point according to the envelope detection value and the target amplitude threshold value. In case the signal inflection point is located in a first time period comprising a frame delay moment, it is determined to acquire the near field communication signal. The frame delay time is used to characterize the time of the first modulation edge of the start bit sent by the PICC. In this way, the target amplitude threshold is dynamically changed according to the received near field communication signal, rather than selecting a fixed target amplitude threshold, facilitating better acquisition of the near field communication signal. Meanwhile, whether the near field communication signal is captured or not is judged in an auxiliary mode according to the frame delay time, the near field communication signal can be identified more accurately, and therefore the success rate of capturing the near field communication signal is improved.
In some embodiments, the present application is used to capture NFC signals sent by a TypeA 106K rate PICC.
As shown in conjunction with fig. 1, an embodiment of the present disclosure provides a method for capturing near field communication signals, comprising:
in step S101, the electronic device acquires a digital signal corresponding to the near field communication signal.
In step S102, the electronic device determines an envelope detection value corresponding to the digital signal.
Step S103, the electronic device determines a target amplitude threshold according to the envelope detection value.
Step S104, the electronic device determines a signal inflection point according to the envelope detection value and the target amplitude threshold value.
Step S105, the electronic device determines to capture a near field communication signal when the signal inflection point is located in a first time period including a frame delay time; the frame delay time is used to characterize the time of the first modulation edge of the start bit sent by the PICC.
By adopting the method for capturing the near field communication signal, which is provided by the embodiment of the disclosure, the digital signal corresponding to the near field communication signal is obtained. And determining an envelope detection value corresponding to the digital signal. And determining a target amplitude threshold according to the envelope detection value. And determining a signal inflection point according to the envelope detection value and the target amplitude threshold value. In case the signal inflection point is located in a first time period comprising a frame delay moment, it is determined to acquire the near field communication signal. The frame delay time is used to characterize the time of the first modulation edge of the start bit sent by the PICC. In this way, the target amplitude threshold is dynamically changed according to the received near field communication signal, rather than selecting a fixed target amplitude threshold, facilitating better acquisition of the near field communication signal. Meanwhile, whether the near field communication signal is captured or not is judged in an auxiliary mode according to the frame delay time, the near field communication signal can be identified more accurately, and therefore the success rate of capturing the near field communication signal is improved.
Optionally, determining an envelope detection value corresponding to the digital signal includes: acquiring a preset reference signal; acquiring a sampling value corresponding to the digital signal; and carrying out correlation calculation by using the reference signal and sampling values positioned in the frame delay period to obtain a plurality of envelope detection values. In some embodiments, a sample value corresponding to a sample signal converted to a digital signal is determined as the sample value corresponding to the digital signal.
In some embodiments, the reference signal is used to correlate with the sample values during the frame delay, respectively, to determine the corresponding envelope detection value for the digital signal. For example: in the case of selecting 848KHz subcarrier with a sampling period of 13.56MHz, the reference signal is
Figure SMS_1
. And acquiring sampling values corresponding to the digital signals, and sequentially numbering the sampling values in the frame delay period according to the acquired sequence of the sampling values to acquire a first number corresponding to each sampling value. The first number corresponding to the sampling value is i, and i is a positive integer. Correlation results were obtained by performing correlation operations with Corr (i) =sum (S (i, …, i+15) ×ref). Where S (i) is the i-th sample value, corr (i) is the i-th correlation result, ref is the reference signal, and "×" is the multiplication. Taking the absolute value of Corr (i), and then carrying out low-pass filtering to form an envelope detection value Env(i) A. The invention relates to a method for producing a fibre-reinforced plastic composite Env (i) is the ith envelope detection value. The envelope detection value Env (i) is set as the envelope detection value corresponding to the digital signal.
Optionally, determining the target amplitude threshold from the envelope detection value includes: dividing a digital signal located during a frame delay period into a plurality of signal segments; the frame delay period is used for representing the time between the end of the last modulation pulse transmitted by the PCD and the first modulation edge in the starting bit range transmitted by the PICC; determining a first maximum value and a second maximum value of each signal segment respectively; the first maximum value is the maximum value of the absolute value of the amplitude corresponding to the digital signal; the second maximum value is the maximum value of the envelope detection value corresponding to the digital signal; and determining a target amplitude threshold according to each first maximum value and each second maximum value. The absolute value of the amplitude corresponding to the digital signal is the absolute value of the amplitude of the digital signal.
In some embodiments, fig. 2 is a schematic diagram of a PICC-to-PCD frame delay. In connection with fig. 2, the time between the end of the last modulation pulse transmitted by the PCD (Proximity Coupling Device ) and the first modulation edge in the range of the start bits transmitted by the PICC (Proximity Integrated Circuit Card, proximity card) should be in compliance with the provision in fig. 2. In the figure, 1etu (elementarytime unit, basic time unit) is equal to 1bit. According to the standard iso14443 protocol, when the sampling frequency is 13.56MHz, the PCD sends the last 1bit to be 1, and the minimum length lmin=1236 sampling points of the frame delay; when the PCD sends the last 1bit to be 0, the minimum length lmin=1172 sampling points of the frame delay. Lmin is the minimum length of the frame delay. Firstly, sequentially numbering sampling values in a frame delay period according to the acquired sequence of the sampling values. The first number corresponding to the sampling value is i, and i is a positive integer. The first number of the first sampling value in the frame delay period is defaulted to be 1 according to the acquired sequence of the sampling values, and the first sampling value is S (1). Next, 1024 sampling values of i=65 to i=1089 are selected. According to the sequence of sampling values obtained, 1024 sampling values are divided into 8 signal segments, and 128 sampling values are respectively arranged in each signal segment. And then, according to the acquired sequence of the sampling values, renumbering the sampling values in each signal section from 1 to obtain a second number of each sampling value. And simultaneously numbering the signal segments in sequence, and starting numbering the signal segments from 1 to obtain a third number corresponding to each signal segment. By calculating smaxk=max (abs (S ((k-1) ×128+g+64))), the first maximum value of the signal segment is obtained. By calculating emaxk=max (Env ((k-1) ×128+g+64), the second maximum value of the signal segment is obtained. Wherein k is the third number of the signal segment, and k is a positive integer; g is the second number of sampling values in the kth signal segment, and g is a positive integer. Smaxk is the first maximum of the kth signal segment. Emaxk is the second maximum of the kth signal segment. abs () is used to find the absolute value. max () is used to maximize.
Optionally, determining the target amplitude threshold from each first maximum value and each second maximum value includes: determining a first average value between the first maxima; determining a second average value between the second maxima; and determining a target amplitude threshold according to the first average value and the second average value.
Further, determining a first average value between the first maxima includes: acquiring the number of signal segments; calculating the sum of the first maximum values corresponding to the signal segments to obtain a first sum; a first sum divided by the number of signal segments is calculated to obtain a first average value.
Further, determining a second average value between the second maxima comprises: acquiring the number of signal segments; calculating the sum of the second maximum values corresponding to the signal segments to obtain a second sum; and calculating a second sum divided by the number of signal segments to obtain a second average value.
Further, determining a target amplitude threshold from the first average and the second average includes: correcting the first maximum value according to the first average value; correcting the second maximum value according to the second average value; and determining a target amplitude threshold according to the corrected first maximum value and the corrected second maximum value. Thus, the first maximum value is corrected by the first average value, and the second maximum value is corrected according to the second average value. The determined target amplitude threshold can be made more accurate.
Further, correcting the first maximum value according to the first average value includes: in the case of Smaxk > α×smax1, smaxk=β×smax1. Wherein Smaxk is a first maximum value of the kth signal segment, smax1 is a first average value, α is a first preset parameter, β is a second preset parameter, and "×" is a multiplication. In some embodiments, α is a positive real number, such as: 4. beta is a positive real number, for example: 2.
further, correcting the second maximum value based on the second average value includes: when Emaxk > α×emax1, emaxk=β×emax1. Wherein Emaxk is the second maximum value of the kth signal segment and Emax1 is the second average value.
Further, determining the target amplitude threshold from the corrected first maximum value and the corrected second maximum value includes: determining a third average value between the corrected first maximum values; determining a fourth average value between the corrected second maximum values; if it is
Figure SMS_2
Let emax2=γ×smax2; the target amplitude threshold is obtained by calculating th=δ×emax2. Where γ is a positive real number. For example: gamma is equal to 2.Th is a target amplitude threshold, delta is a third preset parameter, smax2 is a third average value, and Emax2 is a fourth average value. In some embodiments, δ is a positive real number, for example: 3.
optionally, determining the signal inflection point according to the envelope detection value and the target amplitude threshold value includes: determining the first sampling point as a signal inflection point under the condition that the envelope detection value of the first sampling point is larger than the target amplitude threshold, the envelope detection value of the first sampling point is larger than the envelope detection value of the second sampling point, and the envelope detection value of the second sampling point is larger than the envelope detection value of the third sampling point; the first sampling point is used for representing a sampling point corresponding to the digital signal; the second sampling point is used for representing the next sampling point of the sampling points corresponding to the digital signals; the third sampling point is used for representing the last two sampling points of the sampling points corresponding to the digital signals.
In some embodiments, when Env (T) > = Env (t+1), env (t+1) > Env (t+2), and Env (T) > = TH, the sampling point corresponding to the envelope detection value with the first number T is identified as the signal inflection point. Wherein T is a positive integer.
Optionally, after determining the target amplitude threshold according to the envelope detection value, the method further includes: and updating the target amplitude threshold according to the envelope detection value. Thus, by updating the target amplitude threshold, the near field communication signal can be determined more accurately.
Further, updating the target amplitude threshold according to the envelope detection value includes: determining the sum of the envelope detection value corresponding to the sampling point and a preset value as an alternative threshold value under the condition that the envelope detection value corresponding to the sampling point is larger than a target amplitude threshold value and the sampling point is located in a second time period containing the frame delay moment; and comparing the alternative threshold value with a preset maximum threshold value, and updating the target amplitude threshold value according to the comparison result. Wherein the preset value is a positive integer, for example: the preset value is equal to 3. The preset maximum threshold is a positive real number, for example: the preset maximum threshold is equal to 120. The second time period is (Lmin+n×128-Len, lmin+n×128+Len). Wherein Len is a positive integer, for example: len is equal to 60, and n is a positive integer.
In some embodiments, the sampling point corresponding to the envelope detection value used to determine the target amplitude threshold is the first sampling point. And the sampling point corresponding to the envelope detection value for updating the target amplitude threshold is a second sampling point. The second sampling point is positioned behind the first sampling point according to the sequence in which the sampling points are acquired.
Further, updating the target amplitude threshold according to the comparison result includes: and determining the alternative threshold value as a target amplitude threshold value under the condition that the alternative threshold value is smaller than a preset maximum threshold value. And determining the preset maximum threshold value as a target amplitude threshold value under the condition that the preset maximum threshold value is smaller than the alternative threshold value.
Optionally, after determining the signal inflection point according to the envelope detection value and the target amplitude threshold value, the method further includes: in the case where the signal inflection point is not located in the first period including the frame delay time, the target amplitude threshold value is updated according to the envelope detection value.
In some embodiments, the first period of time comprising the frame delay moment is (lmin+n×128-len1, lmin+n×128+len1), i.e. the acquisition near field communication signal is determined in case the signal inflection point is in the range of lmin+n×128-len1 to lmin+n×128+len1. Wherein Len1 is a positive integer, for example: len1 is equal to 30. Fig. 3 is a schematic diagram of a first period including a frame delay time, as shown in fig. 3, when the effective areas are lmin+0×128-Len1 and lmin+0×128+len1, the frame delay time is lmin+0×128. The frame delay time is at lmin+1×128 in the case where the effective areas are lmin+1×128-Len1 and lmin+1×128+len1. When the effective areas are Lmin+n×128-Len1 and Lmin+n×128+Len1, the frame delay time is Lmin+n×128.
As shown in connection with fig. 4, an embodiment of the present disclosure provides another method for acquiring a near field communication signal, comprising:
in step S401, the electronic device acquires a digital signal corresponding to the near field communication signal, and then performs step S402.
In step S402, the electronic device determines an envelope detection value corresponding to the digital signal, and then performs step S403.
Step S403, the electronic device determines a target amplitude threshold according to the envelope detection value, and then performs step S404.
Step S404, the electronic device updates the target amplitude threshold according to the envelope detection value, and then performs step S405.
Step S405, the electronic device determines a signal inflection point according to the envelope detection value and the target amplitude threshold value, and then performs step S406.
Step S406, the electronic device determines whether the signal inflection point is located in a first period including a frame delay time; in the case where the signal inflection point is located in the first period including the frame delay time, step S407 is performed; in the case where the signal inflection point is not located in the first period including the frame delay time, step S404 is performed.
In step S407, the electronic device confirms capturing of the near field communication signal.
The method for capturing the near field communication signal provided by the embodiment of the disclosure comprises the following steps: and acquiring a digital signal corresponding to the near field communication signal. And determining an envelope detection value corresponding to the digital signal. And determining a target amplitude threshold according to the envelope detection value. And updating the target amplitude threshold according to the envelope detection value. And determining a signal inflection point according to the envelope detection value and the target amplitude threshold value. The target amplitude threshold is adjusted according to whether the signal inflection point is located in a first time period including the frame delay time. In this way, the target amplitude threshold is dynamically changed according to the received near field communication signal, rather than selecting a fixed target amplitude threshold, facilitating better acquisition of the near field communication signal. Meanwhile, whether the near field communication signal is captured or not is judged in an auxiliary mode according to the frame delay time, the near field communication signal can be identified more accurately, and therefore the success rate of capturing the near field communication signal is improved.
As shown in connection with fig. 5, an embodiment of the present disclosure provides an apparatus 1 for capturing near field communication signals, comprising: the device comprises an acquisition module 2, an envelope detection determination module 3, a target amplitude threshold determination module 4, a signal inflection point determination module 5 and a near field communication signal determination module 6. The acquisition module is configured to acquire a digital signal corresponding to the near field communication signal; an envelope detection determining module configured to determine an envelope detection value corresponding to the digital signal; a target amplitude threshold determination module configured to determine a target amplitude threshold from the envelope detection value; a signal inflection point determining module configured to determine a signal inflection point from the envelope detection value and the target amplitude threshold value; a near field communication signal determination module configured to determine to capture a near field communication signal if the signal inflection point is located in a first time period including a frame delay time; the frame delay time is used to characterize the time of the first modulation edge of the start bit sent by the PICC.
By adopting the device for capturing the near field communication signal provided by the embodiment of the disclosure, the digital signal corresponding to the near field communication signal is acquired through the acquisition module. The envelope detection determining module determines an envelope detection value corresponding to the digital signal. The target amplitude threshold determination module determines a target amplitude threshold from the envelope detection value. The signal inflection point determining module determines a signal inflection point according to the envelope detection value and the target amplitude threshold. The near field communication signal determination module determines to acquire a near field communication signal if the signal inflection point is located in a first time period including a frame delay time. In this way, the target amplitude threshold is dynamically changed according to the received near field communication signal, rather than selecting a fixed target amplitude threshold, facilitating better acquisition of the near field communication signal. Meanwhile, whether the near field communication signal is captured or not is judged in an auxiliary mode according to the frame delay time, the near field communication signal can be identified more accurately, and therefore the success rate of capturing the near field communication signal is improved.
As shown in connection with fig. 6, an embodiment of the present disclosure provides an electronic device 7 including a processor (processor) 8 and a memory (memory) 9. Optionally, the apparatus may further comprise a communication interface (Communication Interface) 10 and a bus 11. The processor 8, the communication interface 10 and the memory 9 may communicate with each other via a bus 11. The communication interface 10 may be used for information transfer. The processor 8 may invoke logic instructions in the memory 9 to perform the method for acquiring a near field communication signal of the above described embodiment.
Optionally, the electronic device is a near field communication device, for example: card readers, POS machines, etc.
By adopting the electronic equipment provided by the embodiment of the disclosure, the digital signal corresponding to the near field communication signal is obtained. And determining an envelope detection value corresponding to the digital signal. And determining a target amplitude threshold according to the envelope detection value. And determining a signal inflection point according to the envelope detection value and the target amplitude threshold value. In case the signal inflection point is located in a first time period comprising a frame delay moment, it is determined to acquire the near field communication signal. The frame delay time is used to characterize the time of the first modulation edge of the start bit sent by the PICC. In this way, the target amplitude threshold is dynamically changed according to the received near field communication signal, rather than selecting a fixed target amplitude threshold, facilitating better acquisition of the near field communication signal. Meanwhile, whether the near field communication signal is captured or not is judged in an auxiliary mode according to the frame delay time, the near field communication signal can be identified more accurately, and therefore the success rate of capturing the near field communication signal is improved.
Further, the logic instructions in the memory 9 described above may be implemented in the form of software functional units and may be stored in a computer readable storage medium when sold or used as a stand alone product.
The memory 9 is used as a computer readable storage medium for storing a software program, a computer executable program, such as program instructions/modules corresponding to the methods in the embodiments of the present disclosure. The processor 8 performs functional applications as well as data processing, i.e. implements the method for acquiring near field communication signals in the above described embodiments, by running program instructions/modules stored in the memory 9.
The memory 9 may include a storage program area and a storage data area, wherein the storage program area may store an operating system, at least one application program required for a function; the storage data area may store data created according to the use of the terminal device, etc. Further, the memory 9 may include a high-speed random access memory, and may also include a nonvolatile memory.
Embodiments of the present disclosure provide a computer readable storage medium storing computer executable instructions configured to perform the above-described method for acquiring near field communication signals.
The disclosed embodiments provide a computer program product comprising a computer program stored on a computer readable storage medium, the computer program comprising program instructions which, when executed by a computer, cause the computer to perform the above-described method for acquiring near field communication signals.
The computer readable storage medium may be a transitory computer readable storage medium or a non-transitory computer readable storage medium.
Embodiments of the present disclosure may be embodied in a software product stored on a storage medium, including one or more instructions for causing a computer device (which may be a personal computer, a server, or a network device, etc.) to perform all or part of the steps of a method according to embodiments of the present disclosure. And the aforementioned storage medium may be a non-transitory storage medium including: a plurality of media capable of storing program codes, such as a usb disk, a removable hard disk, a Read-only memory (ROM), a random access memory (RAM, random Access Memory), a magnetic disk, or an optical disk, or a transitory storage medium.
The above description and the drawings illustrate embodiments of the disclosure sufficiently to enable those skilled in the art to practice them. Other embodiments may involve structural, logical, electrical, process, and other changes. The embodiments represent only possible variations. Individual components and functions are optional unless explicitly required, and the sequence of operations may vary. Portions and features of some embodiments may be included in, or substituted for, those of others. Moreover, the terminology used in the present application is for the purpose of describing embodiments only and is not intended to limit the claims. As used in the description of the embodiments and the claims, the singular forms "a," "an," and "the" (the) are intended to include the plural forms as well, unless the context clearly indicates otherwise. Similarly, the term "and/or" as used in this application is meant to encompass any and all possible combinations of one or more of the associated listed. Furthermore, when used in this application, the terms "comprises," "comprising," and/or "includes," and variations thereof, mean that the stated features, integers, steps, operations, elements, and/or components are present, but that the presence or addition of one or more other features, integers, steps, operations, elements, components, and/or groups thereof is not precluded. Without further limitation, an element defined by the phrase "comprising one …" does not exclude the presence of other like elements in a process, method or apparatus comprising such elements. In this context, each embodiment may be described with emphasis on the differences from the other embodiments, and the same similar parts between the various embodiments may be referred to each other. For the methods, products, etc. disclosed in the embodiments, if they correspond to the method sections disclosed in the embodiments, the description of the method sections may be referred to for relevance.
Those of skill in the art will appreciate that the various illustrative elements and algorithm steps described in connection with the embodiments disclosed herein may be implemented as electronic hardware, or combinations of computer software and electronic hardware. Whether such functionality is implemented as hardware or software depends upon the particular application and design constraints imposed on the solution. The skilled artisan may use different methods for each particular application to achieve the described functionality, but such implementation should not be considered to be beyond the scope of the embodiments of the present disclosure. It will be clearly understood by those skilled in the art that, for convenience and brevity of description, specific working procedures of the above-described systems, apparatuses and units may refer to corresponding procedures in the foregoing method embodiments, which are not repeated herein.
In the embodiments disclosed herein, the disclosed methods, articles of manufacture (including but not limited to devices, apparatuses, etc.) may be practiced in other ways. For example, the apparatus embodiments described above are merely illustrative, and for example, the division of the units may be merely a logical function division, and there may be additional divisions when actually implemented, for example, multiple units or components may be combined or integrated into another system, or some features may be omitted, or not performed. In addition, the coupling or direct coupling or communication connection shown or discussed with each other may be through some interface, device or unit indirect coupling or communication connection, which may be in electrical, mechanical or other form. The units described as separate units may or may not be physically separate, and units shown as units may or may not be physical units, may be located in one place, or may be distributed on a plurality of network units. Some or all of the units may be selected according to actual needs to implement the present embodiment. In addition, each functional unit in the embodiments of the present disclosure may be integrated in one processing unit, or each unit may exist alone physically, or two or more units may be integrated in one unit.
The flowcharts and block diagrams in the figures illustrate the architecture, functionality, and operation of possible implementations of systems, methods and computer program products according to embodiments of the present disclosure. In this regard, each block in the flowchart or block diagrams may represent a module, segment, or portion of code, which comprises one or more executable instructions for implementing the specified logical function(s). In some alternative implementations, the functions noted in the block may occur out of the order noted in the figures. For example, two blocks shown in succession may, in fact, be executed substantially concurrently, or the blocks may sometimes be executed in the reverse order, depending upon the functionality involved. In the description corresponding to the flowcharts and block diagrams in the figures, operations or steps corresponding to different blocks may also occur in different orders than that disclosed in the description, and sometimes no specific order exists between different operations or steps. For example, two consecutive operations or steps may actually be performed substantially in parallel, they may sometimes be performed in reverse order, which may be dependent on the functions involved. Each block of the block diagrams and/or flowchart illustration, and combinations of blocks in the block diagrams and/or flowchart illustration, can be implemented by special purpose hardware-based systems which perform the specified functions or acts, or combinations of special purpose hardware and computer instructions.

Claims (7)

1. A method for acquiring a near field communication signal, comprising:
acquiring a digital signal corresponding to the near field communication signal;
determining an envelope detection value corresponding to the digital signal;
determining a target amplitude threshold according to the envelope detection value;
determining a signal inflection point according to the envelope detection value and the target amplitude threshold value;
determining to acquire a near field communication signal if the signal inflection point is located in a first time period including a frame delay time; the frame delay time is used for representing the time of a first modulation edge of a starting bit sent by the adjacent card PICC;
determining a target amplitude threshold from the envelope detection value, comprising: dividing a digital signal located during a frame delay period into a plurality of signal segments; the frame delay period is used for representing the time between the end of the last modulation pulse transmitted by the neighboring coupling device PCD and the first modulation edge in the starting bit range transmitted by the neighboring card PICC; determining a first maximum value and a second maximum value of each signal segment respectively; the first maximum value is the maximum value of the absolute value of the amplitude corresponding to the digital signal; the second maximum value is the maximum value of the envelope detection value corresponding to the digital signal; determining a target amplitude threshold according to each first maximum value and each second maximum value;
determining a target amplitude threshold from each of the first maxima and each of the second maxima, comprising:
determining a first average value between each of the first maxima; determining a second average value between each of the second maxima; determining a target amplitude threshold according to the first average value and the second average value;
determining a target amplitude threshold from the first average and the second average, comprising: correcting a first maximum value according to the first average value; correcting a second maximum value according to the second average value; and determining a target amplitude threshold according to the corrected first maximum value and the corrected second maximum value.
2. The method of claim 1, wherein determining a signal inflection point from the envelope detection value and the target amplitude threshold value comprises:
determining the first sampling point as a signal inflection point under the condition that the envelope detection value of the first sampling point is larger than the target amplitude threshold, the envelope detection value of the first sampling point is larger than the envelope detection value of the second sampling point, and the envelope detection value of the second sampling point is larger than the envelope detection value of the third sampling point; the first sampling point is used for representing a sampling point corresponding to the digital signal; the second sampling point is used for representing the next sampling point of the sampling points corresponding to the digital signals; the third sampling point is used for representing the last two sampling points of the sampling points corresponding to the digital signals.
3. The method according to any one of claims 1 or 2, further comprising, after determining a target amplitude threshold from the envelope detection value:
and updating the target amplitude threshold according to the envelope detection value.
4. The method according to any one of claims 1 or 2, further comprising, after determining a signal inflection point from the envelope detection value and the target amplitude threshold value:
in the case where the signal inflection point is not located in the first period including the frame delay time, the target amplitude threshold value is updated according to the envelope detection value.
5. An apparatus for acquiring a near field communication signal, comprising:
the acquisition module is configured to acquire a digital signal corresponding to the near field communication signal;
an envelope detection determining module configured to determine an envelope detection value corresponding to the digital signal;
a target amplitude threshold determination module configured to determine a target amplitude threshold from the envelope detection value;
a signal inflection point determining module configured to determine a signal inflection point from the envelope detection value and the target amplitude threshold;
a near field communication signal determination module configured to determine to capture a near field communication signal if the signal inflection point is located in a first time period including a frame delay time; the frame delay time is used for representing the time of a first modulation edge of a starting bit sent by the adjacent card PICC;
determining a target amplitude threshold from the envelope detection value, comprising: dividing a digital signal located during a frame delay period into a plurality of signal segments; the frame delay period is used for representing the time between the end of the last modulation pulse transmitted by the neighboring coupling device PCD and the first modulation edge in the starting bit range transmitted by the neighboring card PICC; determining a first maximum value and a second maximum value of each signal segment respectively; the first maximum value is the maximum value of the absolute value of the amplitude corresponding to the digital signal; the second maximum value is the maximum value of the envelope detection value corresponding to the digital signal; determining a target amplitude threshold according to each first maximum value and each second maximum value;
determining a target amplitude threshold from each of the first maxima and each of the second maxima, comprising:
determining a first average value between each of the first maxima; determining a second average value between each of the second maxima; determining a target amplitude threshold according to the first average value and the second average value;
determining a target amplitude threshold from the first average and the second average, comprising: correcting a first maximum value according to the first average value; correcting a second maximum value according to the second average value;
and determining a target amplitude threshold according to the corrected first maximum value and the corrected second maximum value.
6. An electronic device comprising a processor and a memory storing program instructions, characterized in that the processor is configured to perform the method for acquiring near field communication signals according to any of claims 1 to 4 when executing the program instructions.
7. A storage medium storing program instructions which, when executed, perform the method for acquiring near field communication signals as claimed in any one of claims 1 to 4.
CN202310137093.1A 2023-02-20 2023-02-20 Method and device for capturing near field communication signal, electronic equipment and medium Active CN115865138B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202310137093.1A CN115865138B (en) 2023-02-20 2023-02-20 Method and device for capturing near field communication signal, electronic equipment and medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202310137093.1A CN115865138B (en) 2023-02-20 2023-02-20 Method and device for capturing near field communication signal, electronic equipment and medium

Publications (2)

Publication Number Publication Date
CN115865138A CN115865138A (en) 2023-03-28
CN115865138B true CN115865138B (en) 2023-06-20

Family

ID=85658471

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202310137093.1A Active CN115865138B (en) 2023-02-20 2023-02-20 Method and device for capturing near field communication signal, electronic equipment and medium

Country Status (1)

Country Link
CN (1) CN115865138B (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN117240675B (en) * 2023-11-15 2024-02-23 北京紫光青藤微系统有限公司 Demodulation method for NFC signal, NFC device and storage medium

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US9477292B1 (en) * 2012-03-02 2016-10-25 Redpine Signals, Inc. Wakeup controller apparatus and method for ultra low power wireless communications
CN112666405A (en) * 2021-03-16 2021-04-16 北京紫光青藤微系统有限公司 Method and device for field intensity detection and communication equipment
CN115577724A (en) * 2022-10-13 2023-01-06 维沃移动通信有限公司 Card reading method and device, electronic equipment and readable storage medium

Family Cites Families (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US10374848B2 (en) * 2017-01-11 2019-08-06 Mediatek Singapore Pte. Ltd. Amplitude demodulators and related methods
US10826447B2 (en) * 2017-03-31 2020-11-03 Intel IP Corporation Adaptive envelope tracking threshold
US10942196B2 (en) * 2017-08-14 2021-03-09 Google Llc Systems and methods of motion detection using dynamic thresholds and data filtering
FR3074940A1 (en) * 2017-12-07 2019-06-14 Stmicroelectronics (Rousset) Sas DETECTION OF AN NFC DEVICE
EP3772186B1 (en) * 2019-08-01 2024-06-26 Nxp B.V. Dynamic sensitivity control in a near-field communication receiver

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US9477292B1 (en) * 2012-03-02 2016-10-25 Redpine Signals, Inc. Wakeup controller apparatus and method for ultra low power wireless communications
CN112666405A (en) * 2021-03-16 2021-04-16 北京紫光青藤微系统有限公司 Method and device for field intensity detection and communication equipment
CN115577724A (en) * 2022-10-13 2023-01-06 维沃移动通信有限公司 Card reading method and device, electronic equipment and readable storage medium

Also Published As

Publication number Publication date
CN115865138A (en) 2023-03-28

Similar Documents

Publication Publication Date Title
CN115865138B (en) Method and device for capturing near field communication signal, electronic equipment and medium
CN110147710B (en) Method and device for processing human face features and storage medium
CN108255555A (en) A kind of system language switching method and terminal device
Su et al. A time efficient tag identification algorithm using dual prefix probe scheme (DPPS)
CN110751042B (en) Time partition-based portrait and IMSI information association method and system
CN111241217A (en) Data processing method, device and system
KR20160132370A (en) Methods of storing a set of biometric data templates and of matching biometrics, biometric matching apparatus and computer program
CN106258009A (en) A kind of gather the method for fingerprint, fingerprint capturer and terminal
CN109214229A (en) A kind of bar code scanning method, device and electronic equipment
CN111526151A (en) Data transmission method and device, electronic equipment and storage medium
CN110677364B (en) Method and device for detecting main synchronization signal
CN111460098A (en) Text matching method and device and terminal equipment
CN105956553B (en) Unlocking method and mobile terminal
KR100876284B1 (en) Method and system receiving tag signal from rfid reader machine
CN113609535A (en) Side channel curve feature extraction method and device
CN107077617B (en) Fingerprint extraction method and device
CN106790130B (en) Message matching method and device
CN113051601A (en) Sensitive data identification method, device, equipment and medium
CN108834160B (en) Method for determining use condition of user identity identification card and network equipment
CN109840294B (en) Method for inquiring matching data of electronic element, storage medium and terminal
CN113806070A (en) Data management method and device for edge computing and cloud computing
CN117240675B (en) Demodulation method for NFC signal, NFC device and storage medium
CN112464978B (en) Method and device for identifying abnormal terminals of Internet of vehicles
CN116821177B (en) Equipment data query method and device, electronic equipment and storage medium
CN115801217B (en) Clock phase determining method and device and near field communication device

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant