CN108964721B - Interference processing method and device - Google Patents

Interference processing method and device Download PDF

Info

Publication number
CN108964721B
CN108964721B CN201710359558.2A CN201710359558A CN108964721B CN 108964721 B CN108964721 B CN 108964721B CN 201710359558 A CN201710359558 A CN 201710359558A CN 108964721 B CN108964721 B CN 108964721B
Authority
CN
China
Prior art keywords
instruction
card reader
modulation signal
error indication
nfc
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
CN201710359558.2A
Other languages
Chinese (zh)
Other versions
CN108964721A (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.)
ZTE Corp
Original Assignee
ZTE Corp
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 ZTE Corp filed Critical ZTE Corp
Priority to CN201710359558.2A priority Critical patent/CN108964721B/en
Priority to PCT/CN2018/074335 priority patent/WO2018210002A1/en
Publication of CN108964721A publication Critical patent/CN108964721A/en
Application granted granted Critical
Publication of CN108964721B publication Critical patent/CN108964721B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04BTRANSMISSION
    • H04B5/00Near-field transmission systems, e.g. inductive or capacitive transmission systems
    • H04B5/70Near-field transmission systems, e.g. inductive or capacitive transmission systems specially adapted for specific purposes
    • H04B5/72Near-field transmission systems, e.g. inductive or capacitive transmission systems specially adapted for specific purposes for local intradevice communication
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06KGRAPHICAL DATA READING; PRESENTATION OF DATA; RECORD CARRIERS; HANDLING RECORD CARRIERS
    • G06K7/00Methods or arrangements for sensing record carriers, e.g. for reading patterns
    • G06K7/10Methods or arrangements for sensing record carriers, e.g. for reading patterns by electromagnetic radiation, e.g. optical sensing; by corpuscular radiation
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06KGRAPHICAL DATA READING; PRESENTATION OF DATA; RECORD CARRIERS; HANDLING RECORD CARRIERS
    • G06K7/00Methods or arrangements for sensing record carriers, e.g. for reading patterns
    • G06K7/10Methods or arrangements for sensing record carriers, e.g. for reading patterns by electromagnetic radiation, e.g. optical sensing; by corpuscular radiation
    • G06K7/10009Methods or arrangements for sensing record carriers, e.g. for reading patterns by electromagnetic radiation, e.g. optical sensing; by corpuscular radiation sensing by radiation using wavelengths larger than 0.1 mm, e.g. radio-waves or microwaves
    • G06K7/10158Methods or arrangements for sensing record carriers, e.g. for reading patterns by electromagnetic radiation, e.g. optical sensing; by corpuscular radiation sensing by radiation using wavelengths larger than 0.1 mm, e.g. radio-waves or microwaves methods and means used by the interrogation device for reliably powering the wireless record carriers using an electromagnetic interrogation field
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04BTRANSMISSION
    • H04B5/00Near-field transmission systems, e.g. inductive or capacitive transmission systems
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04BTRANSMISSION
    • H04B5/00Near-field transmission systems, e.g. inductive or capacitive transmission systems
    • H04B5/70Near-field transmission systems, e.g. inductive or capacitive transmission systems specially adapted for specific purposes
    • H04B5/77Near-field transmission systems, e.g. inductive or capacitive transmission systems specially adapted for specific purposes for interrogation

Landscapes

  • Engineering & Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Electromagnetism (AREA)
  • Health & Medical Sciences (AREA)
  • Toxicology (AREA)
  • General Health & Medical Sciences (AREA)
  • Computer Vision & Pattern Recognition (AREA)
  • General Physics & Mathematics (AREA)
  • Theoretical Computer Science (AREA)
  • Artificial Intelligence (AREA)
  • Mobile Radio Communication Systems (AREA)

Abstract

The embodiment of the invention discloses an interference processing method and device. The interference processing method in the embodiment of the invention comprises the following steps: a Near Field Communication (NFC) card reader sends a request instruction; when the NFC card reader receives the modulation signal and fails to decode the modulation signal, the modulation signal is matched with a preset condition to obtain a matching result; and the NFC card reader selects whether to send an error indication instruction according to the matching result. The embodiment of the invention solves the problem that the card reader in the NFC technology is difficult to be compatible with high reliability and high sensitivity.

Description

Interference processing method and device
Technical Field
The present invention relates to, but not limited to, the field of wireless communication technologies, and in particular, to an interference processing method and apparatus.
Background
Near Field Communication (NFC) is a short-distance high-frequency wireless Communication mode, and can realize identification and data interaction with compatible devices in a short distance.
Common applications of the NFC technology are, for example, bus cards, company access cards, etc., where NFC modules are configured in cards and card readers, and the NFC modules operate in a half-duplex mode. Typically, the amplitude of the modulated signal received by the card is in the order of 100 millivolts (mv), and the amplitude of the modulated signal received by the card reader is in the order of 10mv, so the communication performance/communication distance of the NFC module is mainly limited by the ability of the card reader to receive card data. Because the modulation signal received by the card reader is weak, and the card can generate a large interference signal, if the decision threshold of the detection signal of the card reader is unreasonable, the interference signal is easily mistaken as wrong data, thereby affecting the NFC communication flow. In addition, the antenna performance of the NFC module is weak, so that the communication distance is small, the transaction identification probability is high, and the user experience effect is poor. At present, the performance of the card reader is optimized mainly by the following two methods: the method comprises the steps that firstly, the power and the signal direction of the card reader are optimized, although the communication distance can be increased, the method is limited by specification limitation, and the effect is limited after certain performance is achieved; in the second mode, a reasonable decision threshold is set, for example, many card reader manufacturers turn the decision threshold down as much as possible, and under the condition that the performance and the directivity of the NFC antenna are not changed, the card reader can detect a weaker signal, so that the communication distance is increased, but if the decision threshold is set too low, the probability of erroneously detecting an interference signal is increased, so that the design scheme of the card reader in the existing NFC technology is difficult to be compatible with reliability and sensitivity.
In summary, in the existing NFC technology, due to the design scheme of the card reader, on the basis of ensuring that the card reader has a large communication distance area, the probability of false detection of the interference signal is increased, so that the card reader is difficult to be compatible with the requirements of high reliability and high sensitivity.
Disclosure of Invention
In order to solve the above technical problems, embodiments of the present invention provide an interference processing method and apparatus for near field communication, so as to solve the problem that a card reader in an NFC technology is difficult to be compatible with high reliability and high sensitivity.
The embodiment of the invention provides an interference processing method, which comprises the following steps:
the NFC card reader sends a request instruction;
when the NFC card reader receives a modulation signal and fails to decode the modulation signal, the modulation signal is matched with a preset condition to obtain a matching result;
and the NFC card reader selects whether to send an error indication instruction according to the matching result.
Optionally, in the interference processing method described above, the selecting, by the NFC card reader according to the matching result, whether to send an error indication instruction includes:
when the matching result is that the matching is successful, the NFC card reader sends the error indication instruction;
and when the matching result is matching failure, the NFC card reader does not send the error indication instruction.
Optionally, in the interference processing method described above, after the NFC reader sends the request instruction, the method further includes: the NFC card reader determines the preset condition;
wherein the NFC reader determines the preset condition, including:
the NFC card reader determines a time range for receiving the response instruction according to one or more of the type of the request instruction and the statistic of the time range for receiving the response instruction by the NFC card reader; alternatively, the first and second electrodes may be,
and the NFC card reader determines the data length of the response instruction according to one or more of the type of the request instruction, the requested content of the request instruction and the data length statistic of the response instruction received by the NFC card reader.
Optionally, in the interference processing method described above, when the preset condition is the time range for receiving the response instruction, the selecting, by the NFC card reader, whether to send an error indication instruction according to the matching result includes:
when the matching result is that the modulation signal is in the determined time range, the NFC card reader sends the error indication instruction;
and when the matching result is that the modulation signal is out of the determined time range, the NFC card reader does not send the error indication instruction.
Optionally, in the interference processing method described above, when the preset condition is the data length of the response instruction and the data length is a data length range, the selecting, by the NFC card reader, whether to send an error indication instruction according to the matching result includes:
when the matching result is that the data length of the modulation signal is within the data length range, the NFC card reader sends the error indication instruction;
when the matching result is that the data length of the modulation signal is out of the data length range, the NFC card reader does not send the error indication instruction;
alternatively, the first and second electrodes may be,
when the preset condition is the data length of the response instruction and the data length is a data length set, the NFC card reader selects whether to send an error indication instruction according to the matching result, including:
when the matching result is that the data length of the modulation signal is equal to any one element in the data length set, the NFC card reader sends the error indication instruction;
and when the matching result is that the data length of the modulation signal is not equal to each element in the data length set, the NFC card reader does not send the error indication instruction.
Optionally, in the interference processing method described above, after the NFC reader sends the request instruction, the method further includes: the NFC card reader determines the preset condition;
wherein the NFC reader determines the preset condition, including:
the NFC card reader determines a probability threshold value for receiving the response instruction, and determines probability coefficients corresponding to modulation signals received at different times according to the time for sending the request instruction; alternatively, the first and second electrodes may be,
and the NFC card reader determines preset characteristic information of the response instruction according to a signal type preset in NFC.
Optionally, in the interference processing method described above, when the preset condition is the probability threshold for receiving the response instruction, the matching, by the NFC card reader, of the modulation signal with the preset condition includes:
the NFC card reader acquires the initial probability of the modulation signal according to one or more items of the characteristics, the strength and the data length of the modulation signal;
the NFC card reader calculates the product of the initial probability of the modulation signal and the probability coefficient corresponding to the modulation signal to obtain a signal probability, and compares the signal probability with the probability threshold;
the NFC card reader selects whether to send an error indication instruction according to the matching result, and the method comprises the following steps:
when the matching result is that the signal probability is greater than or equal to the probability threshold, the NFC card reader sends the error indication instruction;
and when the matching result is that the signal probability is smaller than the probability threshold, the NFC card reader does not send the error indication instruction.
Optionally, in the interference processing method described above, when the preset condition is preset feature information of the response instruction, the matching, by the NFC card reader, of the modulation signal with the preset condition includes:
the NFC card reader matches the characteristic information of the modulation signal with the preset characteristic information of the response instruction; wherein the characteristic information of the modulation signal comprises one or more items of modulation mode, amplitude and data length of the modulation signal;
the NFC card reader selects whether to send an error indication instruction according to the matching result, and the method comprises the following steps:
when the matching result is that the matching degree of the characteristic information of the modulation signal and the preset characteristic information of the response instruction is greater than or equal to a characteristic threshold value, the NFC card reader sends the error indication instruction;
and when the matching result is that the matching degree of the characteristic information of the modulation signal and the preset characteristic information of the response instruction is smaller than the characteristic threshold value, the NFC card reader does not send the error indication instruction.
Optionally, in the interference processing method described above, the method further includes:
and the NFC card reader resends the request instruction when not receiving the response instruction within preset response time.
An embodiment of the present invention further provides an interference processing apparatus, which is disposed in an NFC card reader for near field communication, and the interference processing apparatus includes:
the sending module is used for sending a request instruction;
the receiving module is used for receiving the modulation signal;
a decoding module, configured to decode the modulated signal received by the receiving module;
the matching module is used for matching the modulation signal with the preset condition determined by the determining module when the decoding module fails to decode the modulation signal, so as to obtain a matching result;
the sending module is further configured to select whether to send an error indication instruction according to the matching result obtained by the matching module.
Optionally, in the interference processing apparatus described above, the selecting, by the sending module, whether to send an error indication instruction according to the matching result includes:
when the matching result is that the matching is successful, the sending module sends the error indication instruction;
and when the matching result is matching failure, the sending module does not send the error indication instruction.
Optionally, the interference processing apparatus as described above further includes: the determining module is used for determining the preset condition;
wherein the determining module determines the preset condition, including:
determining a time range for receiving the response instruction according to one or more of the type of the request instruction and the statistic value of the time range for receiving the response instruction by the NFC card reader; alternatively, the first and second electrodes may be,
determining the data length of a response instruction according to one or more of the type of the request instruction, the content requested by the request instruction and the data length statistic of the response instruction received by the NFC reader; alternatively, the first and second electrodes may be,
determining a probability threshold value for receiving the response instruction, and determining probability coefficients corresponding to modulation signals received at different times according to the time for sending the request instruction; alternatively, the first and second electrodes may be,
and determining preset characteristic information of the response instruction according to a signal type preset in the NFC.
Optionally, in the interference processing apparatus as described above, when the preset condition determined by the determining module is the time range for receiving the response instruction, the selecting, by the sending module, whether to send an error indication instruction according to the matching result includes:
when the matching result is that the modulation signal is in the determined time range, the sending module sends the error indication instruction;
and when the matching result is that the modulation signal is out of the determined time range, the sending module does not send the error indication instruction.
Optionally, in the interference processing apparatus as described above, when the preset condition determined by the determining module is a data length of the response instruction and the data length is a data length range, the selecting, by the sending module, whether to send the error indication instruction according to the matching result includes:
when the matching result is that the data length of the modulation signal is within the data length range, the sending module sends the error indication instruction;
when the matching result is that the data length of the modulation signal is out of the data length range, the sending module does not send the error indication instruction;
alternatively, the first and second electrodes may be,
when the preset condition determined by the determining module is the data length of the response instruction and the data length is a data length set, the sending module selects whether to send an error indication instruction according to the matching result, including:
when the matching result is that the data length of the modulation signal is equal to any element in the data length set, the sending module sends the error indication instruction;
and when the matching result is that the data length of the modulation signal is not equal to each element in the data length set, the sending module does not send the error indication instruction.
Optionally, in the interference processing apparatus as described above, when the preset condition determined by the determining module is the probability threshold for receiving the response instruction, the matching module includes:
the acquiring unit is used for acquiring the initial probability of the modulation signal according to one or more items of the characteristics, the strength and the data length of the modulation signal;
the calculating unit is used for calculating the product of the initial probability of the modulation signal acquired by the acquiring unit and the probability coefficient corresponding to the modulation signal determined by the determining module to obtain the signal probability;
the matching unit is used for comparing the signal probability calculated by the calculating unit with the probability threshold determined by the determining module;
the sending module selects whether to send an error indication instruction according to the matching result, and the method comprises the following steps:
when the matching result is that the signal probability is greater than or equal to the probability threshold, the sending module sends the error indication instruction;
and when the matching result is that the signal probability is smaller than the probability threshold, the sending module does not send the error indication instruction.
Optionally, in the interference processing apparatus as described above, when the preset condition determined by the determining module is preset feature information of the response instruction, the matching module matches the modulation signal with the preset condition, where the matching includes:
matching the characteristic information of the modulation signal with the preset characteristic information of the response instruction; wherein the characteristic information of the modulation signal comprises one or more items of modulation mode, amplitude and data length of the modulation signal;
the sending module selects whether to send an error indication instruction according to the matching result, and the method comprises the following steps:
when the matching result is that the matching degree of the characteristic information of the modulation signal and the preset characteristic information of the response instruction is greater than or equal to a characteristic threshold value, the sending module sends the error indication instruction;
and when the matching result is that the matching degree of the characteristic information of the modulation signal and the preset characteristic information of the response instruction is smaller than the characteristic threshold, the sending module does not send the error indication instruction.
Optionally, in the interference processing apparatus described above, the sending module is further configured to, when the receiving module does not receive the response instruction within a preset response time, resend the request instruction.
An embodiment of the present invention further provides an interference processing apparatus, including: a memory and a processor;
the memory is used for storing executable instructions;
the processor is configured to execute the executable instructions stored in the memory, and perform the following operations:
sending a request instruction;
when a modulation signal is received and decoding of the modulation signal fails, matching the modulation signal with a preset condition to obtain a matching result;
and selecting whether to send an error indication instruction according to the matching result.
The embodiment of the present invention further provides a computer-readable storage medium, where the computer-readable storage medium stores computer-executable instructions, and when the processor executes the computer-executable instructions, the following operations are performed:
sending a request instruction;
when a modulation signal is received and decoding of the modulation signal fails, matching the modulation signal with a preset condition to obtain a matching result;
and selecting whether to send an error indication instruction according to the matching result.
According to the interference processing method and device provided by the embodiment of the invention, the NFC card reader waits for a response instruction after sending a request instruction, matches a modulation signal with a preset condition when receiving the modulation signal and failing to decode the modulation signal, and selects whether to send an error indication instruction or not according to an obtained matching result; the preset conditions can reflect the characteristics of the response instructions to a certain extent, so that the matching result can reflect the similarity degree of the modulation signals and the response instructions, and the NFC card reader can send error instructions according to the similarity degree of the modulation signals and the response instructions, so that the interference signals can be effectively prevented from being wrongly judged as error signals, and the reliability of the NFC card reader is improved while the sensitivity of long-distance area communication is ensured; the method provided by the embodiment of the invention solves the problem that the card reader in the existing NFC technology is difficult to be compatible with high reliability and high sensitivity.
Drawings
The accompanying drawings are included to provide a further understanding of the invention and are incorporated in and constitute a part of this specification, illustrate embodiments of the invention and together with the example serve to explain the principles of the invention and not to limit the invention.
Fig. 1 is a schematic diagram of a communication flow in the prior art NFC technology;
fig. 2 is a schematic diagram illustrating a principle of transmitting data by a card in the prior art NFC;
fig. 3 is a schematic flowchart of a communication exception in the prior art NFC;
fig. 4 is a flowchart of an interference processing method according to an embodiment of the present invention;
fig. 5 is a flowchart of another interference processing method according to an embodiment of the present invention;
fig. 6 is a schematic view of an application scenario of the interference processing method according to the embodiment of the present invention;
fig. 7 is a schematic view of another application scenario of the interference processing method according to the embodiment of the present invention;
fig. 8 is a schematic view of another application scenario of the interference processing method according to the embodiment of the present invention;
fig. 9 is a schematic view of another application scenario of the interference processing method according to the embodiment of the present invention;
fig. 10 is a schematic view of another application scenario of the interference processing method according to the embodiment of the present invention;
fig. 11 is a schematic structural diagram of an interference processing apparatus according to an embodiment of the present invention;
fig. 12 is a schematic structural diagram of another interference processing apparatus according to an embodiment of the present invention;
fig. 13 is a schematic structural diagram of another interference processing apparatus according to an embodiment of the present invention.
Detailed Description
In order to make the objects, technical solutions and advantages of the present invention more apparent, embodiments of the present invention will be described in detail below with reference to the accompanying drawings. It should be noted that the embodiments and features of the embodiments in the present application may be arbitrarily combined with each other without conflict.
The steps illustrated in the flow charts of the figures may be performed in a computer system such as a set of computer-executable instructions. Also, while a logical order is shown in the flow diagrams, in some cases, the steps shown or described may be performed in an order different than here.
Before describing the interference processing method provided by the embodiment of the present invention, the operating mode of the NFC module is briefly introduced, and the NFC module operates in a half-duplex mode. As shown in fig. 1, a schematic diagram of a communication flow in the existing NFC technology is shown, which includes the following steps:
step 1, sending a request instruction by an NFC card reader;
step 2, the card returns a response instruction;
step 3, detecting an error signal by the NFC card reader;
step 4, the NFC card reader sends an error indication instruction R (NAK) to the card;
and 5, the card resends the response instruction.
A decision threshold is preset in the NFC card reader, and when a modulation signal (for example, a response command or other interference signal in step 2) received by the NFC card reader exceeds the decision threshold, decoding is started.
In the above NFC communication flow, if the NFC card reader frequently sends an error indication command due to false detection of an interference signal, the card may enter a dead loop, that is, discard data, process data, prepare to send data, and interrupt sending, so that the entire NFC communication flow may be disordered, resulting in a communication failure. In addition, in a near field area, interference signals are increased, and if the decision threshold is set too low, the NFC card reader fails to decode because the interference signals exceed the decision threshold, so that an erroneous instruction is sent to enter a communication abnormal flow, which causes a decrease in success rate of near field area communication, that is, reliability of NFC communication cannot be ensured.
NFC communication includes the following two key communication mechanisms.
Mechanism 1: the card obtains the energy emitted by the NFC card reader through electromagnetic coupling to work.
Mechanism 2: the card transmits a signal to the NFC reader by changing the load.
Fig. 2 is a schematic diagram illustrating a principle of a card transmitting data in the prior art NFC technology, in fig. 2, a resistor 1(R1) is a load resistor when the card operates, and a resistor 2(R2) is a load resistor that can be switched on and off. When the card switch K is closed, the load R2 is connected into the circuit, the card load is increased, and the card reader detects that the voltage (point A) is reduced; when the card switch K is turned on, the load R2 is not connected to the circuit, the card load is reduced, and the card reader detects that the voltage (point a) is increased.
The card power consumption changes with the working state, and the equivalent load resistance R1 also changes, so that the voltage at the card reader end changes. If the judgment threshold at the end of the NFC reader is low, the R1 change is judged as the opening and closing of the R2, namely the card can generate strong interference, and the interference is more obvious the closer the NFC reader is to the card.
If the card sends the response instruction, the card reader detects that the signal exceeds the decision threshold and the decoding fails, the card reader immediately sends an error indication instruction, after receiving the error indication instruction, the card resends the response instruction, the response instruction is transmitted again, the card reader correctly receives the response instruction, and a normal signaling interaction flow is completed, such as the communication flow shown in fig. 1.
If an interference signal is generated by the card or the external environment, the detection signal of the NFC card reader exceeds the decision threshold and the decoding fails, if the NFC card reader immediately sends an error indication instruction, the card still performs data processing in response at this time, and after receiving the error indication instruction, the card stops data processing and performs data processing again, and in the processing process, more interference signals are often generated, which causes the card reader to detect the interference signal again, and sends the error indication instruction again, and enters a dead loop, as shown in fig. 3, which is a schematic flow diagram of an abnormal communication in the existing NFC technology. Therefore, the interference signal is wrongly judged as the response instruction sent by the card, and the influence on the NFC communication flow is very serious. Currently, in NFC communication, it is highly desirable to provide an interference processing method that can effectively distinguish an interference signal from a response command sent by a card.
The technical solution of the present invention is described in detail below with specific embodiments, where the NFC card reader in the following embodiments of the present invention is a card reader configured with an NFC module, and may be a card reader of a bus, a card reader of a company entrance guard, or a terminal device (for implementing a function of the NFC card reader) configured with an NFC module, and the card interacting with the NFC card reader may be a bus card, an entrance guard card, or a mobile terminal (for implementing a function of the card) configured with an NFC module. The following specific embodiments of the present invention may be combined, and the same or similar concepts or processes may not be described in detail in some embodiments.
Fig. 4 is a flowchart of an interference processing method according to an embodiment of the present invention. The interference processing method provided by the embodiment is suitable for the condition that the NFC card reader detects signals and performs interference judgment in NFC communication, and can be executed by an interference processing device, the interference processing device is realized in a mode of combining hardware and software, and the device can be integrated in a processor of the NFC card reader and used by the processor. As shown in fig. 4, the method of an embodiment of the present invention may include the steps of:
and S110, the NFC card reader sends a request instruction.
The interference processing method provided by the embodiment of the invention is a processing mode for detecting the modulation signal and judging the interference by the NFC card reader in the NFC communication. The NFC communication flow includes an initialization process and a signaling transmission process, the card approaches the NFC card reader to trigger communication, and the initialization process is completed, the signaling transmission process is as shown in fig. 1, and the interference processing method provided in the embodiment of the present invention mainly performs a data communication flow for the signaling transmission process in the NFC communication, that is, the initialization is completed. After sending the request instruction, the NFC card reader in the embodiment of the present invention may wait for receiving the response instruction, and perform a response operation according to the response instruction.
S120, when the NFC card reader receives the modulation signal and fails to decode the modulation signal, the modulation signal is matched with a preset condition to obtain a matching result; wherein the decoded modulation signal is a signal having an intensity greater than or equal to an interference threshold.
In the embodiment of the present invention, after the NFC card reader sends the request command and waits for receiving the response command, various modulation signals may be received, where the received modulation signals may be response commands sent by the card or interference signals in the environment. After the NFC card reader receives the modulation signal, it is first determined whether the modulation signal is greater than or equal to an interference threshold (i.e., a decision threshold preset in the NFC card reader), and when the modulation signal is greater than or equal to the interference threshold, the modulation signal is triggered to be decoded, and if the decoding fails, it is determined that the modulation signal may be an error signal, however, the modulation signal may also be an interference signal. The difference from the existing NFC technology is that when the decoding of the NFC card reader in the embodiment of the present invention fails, the error indication instruction is not sent, but the modulation signal is matched with the preset condition to obtain a matching result.
And S130, the NFC card reader selects whether to send an error indication instruction according to the matching result.
In the embodiment of the invention, when the NFC card reader receives a modulation signal greater than or equal to the interference threshold and fails to decode the modulation signal, the modulation signal is matched with the preset condition of the reception response to obtain a matching result, and the matching result can reflect to a certain extent whether the modulation signal is more similar to the error signal or the interference signal; at this time, the NFC card reader may select to send the error prompt instruction or not to send the error prompt instruction according to the matching result. When the matching result obtained by the NFC card reader indicates that the modulation signal is an interference signal, if an error prompt instruction is sent, the interference signal is erroneously determined as an error signal, which affects the entire process of NFC communication.
In practical application, the preset condition may be configured for the response instruction, that is, the modulation signal with higher matching degree with the preset condition may be regarded as an error signal sent by the card, the modulation signal with lower matching degree with the preset condition may be regarded as an interference signal, and the matching similarity may be configured in advance by a designer; for example, when the modulation signal completely meets the preset condition, the matching is considered to be successful, and the modulation signal is an error signal; for another example, when the matching degree between the modulation signal and the preset condition reaches a certain threshold, the matching is considered to be successful, and the modulation signal is an error signal.
The interference processing method provided by the embodiment of the invention is mainly different from the prior art in that: in the prior art, when an NFC card reader detects a modulation signal and fails in decoding, an error indication instruction is immediately sent to a card, if the modulation signal is an interference signal generated by the card itself or an external environment, the card is performing processing of response data when receiving the error indication instruction, at this time, the card stops data processing and performs data processing again, and the card may generate more interference signals in the processing process, so that the NFC card reader detects the interference signal again and sends the error indication instruction again, and thus the NFC card reader and the card enter a dead cycle shown in fig. 3, and the use performance of the NFC card reader is reduced. That is to say, the existing NFC technology is very critical to setting a decision threshold in an NFC card reader, and if the decision threshold is too low, although long-distance communication can be ensured, the phenomenon that an interference signal is erroneously determined as an error signal easily occurs, and the reliability of the NFC card reader is reduced; if the decision threshold is set too high, although the reliability of the short-distance area communication can be ensured and the phenomenon of interference misjudgment can be reduced, it is difficult to ensure the sensitivity of the long-distance area communication, so that a compromise needs to be made when the reliability and the sensitivity cannot be considered simultaneously, and the communication distance is reduced.
In contrast, according to the interference processing method provided by the embodiment of the invention, when the NFC card reader detects the modulation signal and fails in decoding, the NFC card reader does not immediately send the error indication instruction to the card, but matches the modulation signal that fails in decoding with the preset condition for receiving the response instruction, and then selectively sends the error indication instruction according to the matching result, and the relevant information of the modulation signal can be obtained through the matching result, that is, the similarity between the modulation signal and the response instruction can be reflected to a certain extent. Therefore, the error indication instruction can be sent under the condition that the modulation signal is closer to the response instruction, and the error indication instruction is not sent under the condition that the modulation signal is closer to the interference signal, so that the interference signals in the card and the external environment can be filtered to a great extent, the reliability of the NFC card reader is improved, and the sensitivity of remote area communication can be ensured at the same time.
According to the interference processing method provided by the embodiment of the invention, after the request instruction is sent by the NFC card reader, the response instruction is waited, when the NFC card reader receives the modulation signal and fails to decode the modulation signal, the modulation signal is matched with the preset condition, and whether the error indication instruction is sent or not is selected according to the obtained matching result; the preset conditions can reflect the characteristics of the response instructions to a certain extent, so that the matching result can reflect the similarity degree of the modulation signals and the response instructions, and the NFC card reader can send error instructions according to the similarity degree of the modulation signals and the response instructions, so that the interference signals can be effectively prevented from being wrongly judged as error signals, the reliability of the NFC card reader is improved, and meanwhile, the sensitivity of long-distance area communication is ensured; the method provided by the embodiment of the invention solves the problem that the card reader in the existing NFC technology is difficult to be compatible with high reliability and high sensitivity.
Fig. 5 is a flowchart of another interference processing method according to an embodiment of the present invention. On the basis of the foregoing embodiment, an implementation manner of S130 in the embodiment of the present invention may include:
s131, when the matching result is that the matching is successful, the NFC card reader sends an error indication instruction
And S132, when the matching result is that the matching fails, the NFC card reader does not send an error indication instruction.
In the embodiment of the present invention, whether the matching result is successful or not may be, for example, that the modulation signal completely meets the preset condition, that the modulation signal falls within the range of the preset condition, or that the matching degree between the modulation signal and the preset condition reaches a certain threshold.
Optionally, in this embodiment of the present invention, after sending the request instruction, the NFC card reader not only needs to wait for receiving the response instruction, but also may include:
and S111, the NFC card reader determines preset conditions.
In practical applications, the NFC card reader determines the preset condition, for example, the preset condition may be determined according to the type of the request instruction sent, the requested content, a statistical result of receiving the response instruction within a period of time, and a specification of sending the response instruction to the card by the NFC standard protocol; the preset condition may reflect the characteristics of the response instruction to some extent.
It should be noted that, the embodiment of the present invention does not limit the specific content of the preset condition, and as long as the condition can correctly reflect the response instruction feature, the preset condition may be all used; in addition, the embodiment of the present invention does not limit the successful matching form, and may be complete matching or matching to a certain extent, and as long as the modulation signal and the response signal can be reflected to have higher similarity, the matching may be regarded as successful; furthermore, the embodiment of the present invention does not limit the preset condition that the NFC card reader is determined only by the above factors, and any feature that can reflect a response instruction may be used as a factor for determining the preset condition.
In the embodiment of the present invention, the contents of the preset conditions for receiving the response instruction determined by the NFC card reader are different, the ways in which the NFC card reader matches the modulation signal with the preset conditions are different, the obtained matching result is different from the principle of determining whether to send the error indication instruction, and the following detailed description is provided through several embodiments.
Optionally, in an application scenario of the embodiment of the present invention, the determining, by the NFC card reader, an implementation manner of the preset condition may include: and the NFC card reader determines the time range for receiving the response instruction according to one or more of the type of the request instruction and the statistic value of the time range for receiving the response instruction by the NFC card reader. In the NFC technical specification, a plurality of types of request instructions exist, some request instructions are used for authentication operation, the time window of the type of request instructions is relatively later, some request instructions are used for selection operation, and the time window of the type of request instructions is relatively earlier; in addition, the NFC card reader can also obtain the earliest and latest times of the card returning response instructions in the application types according to a large amount of statistical data, and the counted earliest and latest times are used as the time range for receiving the response instructions.
In this application scenario, the implementation of selecting whether to send the error indication instruction by the NFC card reader may include:
when the matching result is that the modulation signal is in the determined time range, the NFC card reader sends an error indication instruction;
and when the matching result is that the modulation signal is out of the determined time range, the NFC card reader does not send an error indication instruction.
For example, fig. 6 is a schematic view of an application scenario of the interference processing method according to the embodiment of the present invention, in the embodiment, the preset condition is a time range for receiving the response command, that is, the time window (t1, t2) in fig. 6, after the request command is sent, the NFC card reader receives the modulation signals S1 and S2 exceeding the interference threshold respectively, and fails to decode both S1 and S2.
As can be seen from fig. 6, when S1 is outside the time window (t1, t2), the NFC card reader determines S1 as an interference signal, does not send an error indication command, and continues to receive signals;
and S2, in the time window (t1, t2), the NFC reader judges that the response instruction sent by the S2 for the card, because the decoding of the S2 fails, the NFC reader needs to send an error indication instruction to indicate that the card repeatedly responds to the signal, and the NFC reader continues to wait for receiving the response instruction after sending the error indication instruction.
In this embodiment, the NFC card reader distinguishes the interference signal and the signal sent by the card by setting an expected time (time window) of the response instruction, and the NFC card reader receives the interference signal but does not affect the entire process of NFC communication.
Optionally, in another application scenario of the embodiment of the present invention, the determining, by the NFC card reader, an implementation manner of the preset condition may include: and the NFC reader determines the data length of the response instruction according to one or more of the type of the request instruction, the content requested by the request instruction and the data length statistic value of the response instruction received by the NFC reader. Based on the NFC technical specification, the type of the request instruction, the content requested by the request instruction is different, and the data length of the received response instruction is also different; in addition, the NFC card reader can also obtain a data length statistic value of a response instruction returned by the card according to a large amount of statistic data in the application type of the card reader, and the data length statistic value is used as the data length of the received response instruction.
In an implementation manner of the application scenario, the data length may be a data length range, and the implementation manner of selecting whether to send the error indication instruction by the NFC card reader may include:
when the matching result is that the data length of the modulation signal is within the data length range, the NFC card reader sends an error indication instruction;
and when the matching result is that the data length of the modulation signal is out of the data length range, the NFC card reader does not send an error indication instruction.
In another implementation manner of the application scenario, the data length may be a data length set, and an implementation manner of selecting whether to send an error indication instruction by the NFC card reader may include:
when the matching result is that the data length of the modulation signal is equal to any element in the data length set, the NFC card reader sends an error indication instruction;
and when the matching result is that the data length of the modulation signal is not equal to each element in the data length set, the NFC card reader does not send an error indication instruction.
For example, fig. 7 is a schematic view of another application scenario of the interference processing method according to the embodiment of the present invention, where the preset condition in the embodiment is that a data length set of the response instruction is received, that is, the data length set in fig. 7 is { L1, L2}, and after the request instruction is sent, the NFC card reader receives modulation signals S1, S2, and S3 that exceed the interference threshold respectively, and fails to decode S1, S2, and S3.
As can be seen from fig. 7, when the length of S1 is smaller than L2, the NFC card reader determines S1 as an interference signal, does not send an error indication command, and continues to receive signals;
the length of S2 is greater than L2 and smaller than L1, the NFC card reader judges that S2 is an interference signal, does not send an error indication instruction, and continues to receive signals;
the length of S3 is equal to L2, the NFC card reader determines that S3 is the response command sent by the card, and because decoding of S3 fails, the NFC card reader needs to send an error indication command to indicate that the card repeats the response signal, and the NFC card reader continues to wait for receiving the response command after sending the error indication command.
In this embodiment, the NFC card reader distinguishes the interference signal and the signal sent by the card by setting the expected data length of the response instruction, and the NFC card reader receives the interference signal but does not affect the entire NFC communication process.
Optionally, in another application scenario of the embodiment of the present invention, the determining, by the NFC card reader, an implementation manner of the preset condition may include: and the NFC card reader determines a probability threshold value for receiving the response instruction, and determines probability coefficients corresponding to the modulation signals received at different times according to the time for sending the request instruction. In this application scenario, the NFC card reader cannot estimate the time range or the data length for receiving the response command, and after the request command is sent, the response command is returned within a predetermined time, for example, at the latest 4 seconds(s), so that as time increases, the probability that a signal exceeding the interference threshold is a card sending response command becomes higher and higher, that is, the probability coefficient corresponding to a modulation signal received later becomes higher.
In this application scenario, the implementation manner in which the NFC card reader matches the modulation signal with the preset condition may include: the NFC card reader obtains the initial probability of the modulation signal according to one or more items of the characteristics, the strength and the data length of the modulation signal; and the NFC card reader calculates the product of the initial probability of the modulation signal and the probability coefficient corresponding to the modulation signal to obtain the signal probability, and compares the signal probability with the probability threshold. The NFC card reader can obtain the characteristics, the strength and the data length of the response instruction according to a large number of statistical values of the received response instruction, so that the initial probability of the modulation signal can be obtained according to the characteristics of the modulation signal; it should be noted that, if the NFC card reader cannot acquire the initial probability of the modulated signal, the initial probability may be considered to be 1.
In this application scenario, the implementation of selecting whether to send the error indication instruction by the NFC card reader may include:
when the matching result is that the signal probability is greater than or equal to the probability threshold value, the NFC card reader sends an error indication instruction;
and when the matching result is that the signal probability is smaller than the probability threshold, the NFC card reader does not send an error indication instruction.
For example, fig. 8 is a schematic view of another application scenario of the interference processing method according to the embodiment of the present invention, in this embodiment, the preset condition is a probability threshold for receiving a response command, where the probability threshold is preset, for example, 1, and meanwhile, the NFC reader may also estimate probability coefficients of modulation signals received at different times, after the request command is sent, the NFC reader receives modulation signals S1, S2, and S3 that exceed the interference threshold, and fails to decode S1, S2, and S3, and the probability coefficients corresponding to S1, S2, and S3 are 0.3, 0.5, and 0.8, respectively; in addition, the initial probabilities that the NFC reader acquires the three signals at the receiving of S1, S2, and S3 are 5/3, 1.2, and 1.375, respectively.
The signal probability of S1 is the initial probability (5/3) of S1 and the probability coefficient (0.3) is 0.5, the signal probability is less than 1, no error indication command is sent, and the signal continues to be received;
the signal probability of S2 is the initial probability (1.2) of S1, the probability coefficient (0.5) is 0.6, the signal probability is less than 1, no error indication command is sent, and the signal continues to be received;
the signal probability of S3 is the initial probability (1.375) of S1, the probability coefficient (0.8) is 1.1, the signal probability is greater than 1, the NFC card reader determines that S3 is the response command sent by the card, and because the decoding of S3 fails, the NFC card reader needs to send an error indication command to indicate that the card repeats the response signal, and the NFC card reader continues to wait for receiving the response command after sending the error indication command.
In this embodiment, although the NFC card reader cannot effectively determine the interference signal, by setting a probability threshold of the response instruction, probability coefficients of the modulation signals received at different times, and acquiring the initial probabilities of the modulation signals received at different times, the interference signal is not determined as the response instruction sent by the card by mistake too early, so that the whole process of NFC communication is not affected.
Optionally, in another application scenario of the embodiment of the present invention, the determining, by the NFC card reader, an implementation manner of the preset condition may include: and the NFC card reader determines preset characteristic information of the response instruction according to the signal type preset in the NFC. In this application scenario, based on the NFC communication protocol, the response instruction sent by the card has specific characteristic information, for example, the application types of the NFC card readers are different, and the symbol compositions of the response instruction sent by the corresponding card are also different.
In this application scenario, the implementation manner in which the NFC card reader matches the modulation signal with the preset condition may include: the NFC card reader matches the characteristic information of the modulation signal with the preset characteristic information of the response instruction; wherein the characteristic information of the modulation signal comprises one or more items of modulation mode, amplitude and data length of the modulation signal.
In this application scenario, the implementation of selecting whether to send the error indication instruction by the NFC card reader may include:
when the matching result is that the matching degree of the characteristic information of the modulation signal and the preset characteristic information of the response instruction is larger than or equal to the characteristic threshold value, the NFC card reader sends an error indication instruction;
and when the matching result is that the matching degree of the characteristic information of the modulation signal and the preset characteristic information of the response instruction is smaller than the characteristic threshold, the NFC card reader does not send an error indication instruction.
For example, fig. 9 is a schematic view of another application scenario of the interference processing method according to the embodiment of the present invention, in the application scenario shown in fig. 9, a response instruction sent by a card is composed of a symbol 1 and a symbol 2, that is, preset characteristic information of the response instruction in this embodiment is a combination of the symbol 1 and the symbol 2, after the request instruction is sent, the NFC reader receives modulation signals S1 and S2 exceeding an interference threshold, respectively, and fails to decode both S1 and S2, and compares S1 and S2 with the combination of the symbol 1 and the symbol 2, respectively, and determines that the response instruction is an interference signal because a difference between S1 and S2 and the combination of the symbol 1 and the symbol 2 is large, and does not send an error indication instruction, and continues to receive signals.
It should be noted that the foregoing embodiments and the application scenarios shown in fig. 6 to fig. 9 are only a few schematic illustrations of the embodiments of the present invention, and do not sequentially limit the preset conditions, the matching manner, and the manner of determining whether to send the error indication command according to the matching result, which are determined by the NFC card reader in the embodiments of the present invention.
The interference processing method provided by the embodiment of the invention can effectively distinguish the interference signal from the response instruction sent by the card, namely, the problem of false detection caused by too low judgment threshold setting can be avoided. The embodiment of the invention also judges the signal without the statistical characteristics as the interference signal by counting the characteristic information of the response instruction and utilizing the statistical characteristics of the response instruction in the process of signal detection and judgment, and directly discards the signal once judged as the interference signal, so that the NFC card reader can greatly reduce the judgment threshold, thereby improving the communication distance, improving the reliability of the NFC card reader and ensuring the sensitivity of long-distance area communication.
Optionally, on the basis of the foregoing embodiment, an embodiment of the present invention provides a method, which may further include:
and when the NFC card reader does not receive the response instruction within the preset response time, the request instruction is retransmitted.
In this embodiment, the recovery method after the NFC card reader determines the valid signal as the interference signal by mistake is shown in fig. 10, which is a schematic view of another application scenario of the interference processing method provided in the embodiment of the present invention, after the NFC card reader sends the request instruction, it waits for receiving the response instruction, receives two segments of modulation signals S1 (interference signal), S2 (signal sent by card), and fails to decode both S1 and S2, that is, S2 is determined by the NFC card reader by mistake as the interference signal, so that no error indication instruction is sent after S2. And the NFC reader does not correctly receive the response instruction until the response is overtime, and then the request instruction is sent again. In this embodiment, although the NFC card reader misjudges the valid signal as the interference signal, the NFC card reader can automatically recover to the normal state, and the entire process of NFC communication is not affected.
Fig. 11 is a schematic structural diagram of an interference processing apparatus according to an embodiment of the present invention. The interference processing device provided by the embodiment is suitable for detecting signals and judging interference of the NFC card reader in NFC communication, and is realized in a mode of combining hardware and software. As shown in fig. 11, the interference processing apparatus 10 of the present embodiment may include: a sending module 11, a receiving module 12, a decoding module 13 and a matching module 14.
The sending module 11 is configured to send a request instruction;
the interference processing device provided by the embodiment of the invention is used for detecting a modulation signal in NFC communication and carrying out a processing mode of interference judgment. The NFC communication flow includes an initialization process and a signaling transmission process, where a card approaches an NFC card reader to trigger communication and complete the initialization process, and the signaling transmission process is as shown in fig. 1. After the sending module 11 in the embodiment of the present invention sends the request instruction, the NFC card reader may wait for receiving the response instruction and perform a response operation according to the response instruction.
A receiving module 12, configured to receive a modulated signal;
a decoding module 13, configured to decode the modulated signal received by the receiving module 12; wherein the decoded modulation signal is a signal having an intensity greater than or equal to an interference threshold;
and the matching module 14 is configured to match the modulation signal with the preset condition determined by the determining module 15 when the decoding module 13 fails to decode the modulation signal, so as to obtain a matching result.
In the embodiment of the present invention, after the sending module 11 sends the request command, and during a time period when the NFC card reader waits to receive the response command, the receiving module 12 may receive various modulation signals, where the received modulation signals may be the response command sent by the card or interference signals in the environment. After the receiving module 12 receives the modulation signal, it first determines whether the modulation signal is greater than or equal to an interference threshold (i.e. a predetermined decision threshold in the NFC card reader), and when the modulation signal is greater than or equal to the interference threshold, the decoding module 13 is triggered to decode the modulation signal, and if the decoding fails, it indicates that the modulation signal may be an error signal, however, the modulation signal may also be an interference signal. The difference from the existing NFC technology is that when the decoding module 13 in the embodiment of the present invention fails to decode, the sending module 11 does not send an error indication instruction, but the matching module 14 matches the modulation signal with the preset condition determined by the determining module 15 to obtain a matching result.
The sending module 11 is further configured to select whether to send an error indication instruction according to the matching result obtained by the matching module 14.
In the embodiment of the present invention, when the receiving module 12 receives a modulation signal greater than or equal to the interference threshold and the decoding module 13 fails to decode the modulation signal, the matching module 14 matches the modulation signal with a preset condition of a reception response, and obtains a matching result, where the matching result may reflect to a certain extent whether the modulation signal is more similar to an error signal or an interference signal; at this time, the sending module 11 may select to send the error prompt instruction or not to send the error prompt instruction according to the matching result. When the NFC card reader obtains the matching result to indicate that the modulation signal is an interference signal, if an error prompt instruction is sent, the interference signal is erroneously determined as an error signal, which affects the entire process of NFC communication.
In practical application, the preset condition may be configured for the response instruction, that is, the modulation signal with higher matching degree with the preset condition may be regarded as an error signal sent by the card, the modulation signal with lower matching degree with the preset condition may be regarded as an interference signal, and the matching similarity may be configured in advance by a designer; for example, when the modulation signal completely meets the preset condition, the matching is considered to be successful, and the modulation signal is an error signal; for another example, when the matching degree between the modulation signal and the preset condition reaches a certain threshold, the matching is considered to be successful, and the modulation signal is an error signal.
The interference processing device provided by the embodiment of the invention is mainly different from the prior art in that: in the prior art, when an NFC card reader detects a modulation signal and fails in decoding, an error indication instruction is immediately sent to a card, if the modulation signal is an interference signal generated by the card itself or an external environment, the card is performing processing of response data when receiving the error indication instruction, at this time, the card stops data processing and performs data processing again, and the card may generate more interference signals in the processing process, so that the NFC card reader detects the interference signal again and sends the error indication instruction again, and thus the NFC card reader and the card enter a dead cycle shown in fig. 3, and the use performance of the NFC card reader is reduced. That is to say, the existing NFC technology is very critical to setting a decision threshold in an NFC card reader, and if the decision threshold is too low, although long-distance communication can be ensured, the phenomenon that an interference signal is erroneously determined as an error signal easily occurs, and the reliability of the NFC card reader is reduced; if the decision threshold is set too high, although the reliability of the short-distance area communication can be ensured and the phenomenon of interference misjudgment can be reduced, it is difficult to ensure the sensitivity of the long-distance area communication, so that a compromise needs to be made when the reliability and the sensitivity cannot be considered simultaneously, and the communication distance is reduced.
In contrast, according to the interference processing device provided by the embodiment of the invention, when the NFC card reader detects the modulation signal and fails in decoding, the NFC card reader does not immediately send the error indication instruction to the card, but matches the modulation signal that fails in decoding with the preset condition for receiving the response instruction, and then selectively sends the error indication instruction according to the matching result, and the relevant information of the modulation signal can be obtained through the matching result, that is, the similarity between the modulation signal and the response instruction can be reflected to a certain extent. Therefore, the error indication instruction can be sent under the condition that the modulation signal is closer to the response instruction, and the error indication instruction is not sent under the condition that the modulation signal is closer to the interference signal, so that the interference signals in the card and the external environment can be filtered to a great extent, the reliability of the NFC card reader is improved, and the sensitivity of remote area communication can be ensured at the same time.
The interference processing apparatus provided in the embodiment of the present invention is configured to execute the interference processing method provided in the embodiment shown in fig. 4 of the present invention, and has corresponding functional modules, which have similar implementation principles and technical effects, and are not described herein again.
In practical application of the embodiment of the present invention, the implementation manner of selecting whether to send the error indication instruction according to the matching result by the sending module 11 may include:
when the matching result is that the matching is successful, the sending module 11 sends an error indication instruction;
when the matching result is that the matching fails, the sending module 11 does not send an error indication instruction.
In the embodiment of the present invention, whether the matching result is successful or not may be, for example, that the modulation signal completely meets the preset condition, that the modulation signal falls within the range of the preset condition, or that the matching degree between the modulation signal and the preset condition reaches a certain threshold.
Optionally, fig. 12 is a schematic structural diagram of another interference processing apparatus according to an embodiment of the present invention. On the basis of the structure of the apparatus shown in fig. 11, the interference processing apparatus 10 according to the embodiment of the present invention may further include: and the determining module 15 is configured to determine the received preset condition after the sending module 11 sends the request instruction.
In the embodiment of the present invention, the determining module 15 determines the preset condition, for example, the preset condition may be determined according to the type of the request instruction sent, the requested content, a statistical result of receiving the response instruction within a period of time, and a specification of sending the response instruction to the card by the NFC standard protocol; the preset condition may reflect the characteristics of the response instruction to some extent.
It should be noted that, the embodiment of the present invention does not limit the specific content of the preset condition, and as long as the condition can correctly reflect the response instruction feature, the preset condition may be all used; in addition, the embodiment of the present invention does not limit the successful matching form, and may be complete matching or matching to a certain extent, and as long as the modulation signal and the response signal can be reflected to have higher similarity, the matching may be regarded as successful; furthermore, the embodiment of the present invention does not limit that the determining module 15 determines the preset condition only by using the above-mentioned factors, and any factor that can reflect the characteristics of the response command can be used as a factor for determining the preset condition.
In the embodiment of the present invention, the content of the preset condition determined by the determining module 15 for receiving the response instruction is different, the way in which the matching module 14 matches the modulation signal with the preset condition is different, the obtained matching result is different from the principle in which the sending module 11 determines whether to send the error indication instruction, and the following detailed description is provided through several embodiments.
The interference processing apparatus provided in the embodiment of the present invention is configured to execute the interference processing method provided in the embodiment shown in fig. 5 of the present invention, and has corresponding functional modules, which have similar implementation principles and technical effects, and are not described herein again.
Optionally, in an application scenario of the embodiment of the present invention, the determining module 15 determines an implementation manner of the preset condition, which may include: and determining the time range for receiving the response instruction according to one or more of the type of the request instruction and the time range statistic value of the response instruction received by the NFC reader. The specific manner of determining the time range for receiving the response command by the determining module 15 has been described in detail in the above embodiments, and therefore, is not described herein again.
In this application scenario, the implementation of selecting whether to send the error indication instruction according to the matching result by the sending module 11 may include:
a sending module 11, configured to send an error indication instruction when the matching result is that the modulation signal is within the determined time range;
and the sending module 11 is further configured to not send an error indication instruction when the matching result is that the modulation signal is outside the determined time range.
Optionally, in another application scenario of the embodiment of the present invention, the determining module 15 may determine an implementation manner of the preset condition, where the implementation manner of the preset condition includes: the data length of the response instruction is determined according to one or more of the type of the request instruction, the content requested by the request instruction, and the data length statistic of the response instruction received by the receiving module 12. The specific manner of determining the data length of the received response command by the determining module 15 has been described in detail in the above embodiments, and therefore, is not described herein again.
In an implementation manner of the application scenario, the data length may be a data length range, and the selecting, by the sending module 11, whether to send the error indication instruction according to the matching result may include:
a sending module 11, configured to send an error indication instruction when the matching result is that the data length of the modulation signal is within the data length range;
the sending module 11 is further configured to not send an error indication instruction when the matching result is that the data length of the modulation signal is outside the data length range.
In another implementation manner of the application scenario, the data length may be a data length set, and the selecting, by the sending module 11, whether to send the error indication instruction according to the matching result may include:
a sending module 11, configured to send an error indication instruction when the matching result is that the data length of the modulation signal is equal to any element in the data length set;
the sending module 11 is further configured to not send the error indication instruction when the matching result is that the data length of the modulation signal is not equal to each element in the data length set.
Optionally, in another application scenario of the embodiment of the present invention, the determining module 15 may determine an implementation manner of the preset condition, where the implementation manner of the preset condition includes: and determining a probability threshold for receiving the response instruction, and determining probability coefficients corresponding to the modulation signals received at different times according to the time for sending the request instruction by the sending module 11. The specific manner in which the determining module 15 determines the probability threshold for receiving the response command and the probability coefficients corresponding to the modulation signals received at different times has been described in detail in the above embodiments, and therefore, will not be described herein again.
In this application scenario, the matching module 14 may include:
the modulation signal acquisition unit is used for acquiring the initial probability of the modulation signal according to one or more items of the characteristics, the intensity and the data length of the modulation signal;
a calculating unit, configured to calculate a product of the initial probability of the modulation signal acquired by the acquiring unit and a probability coefficient corresponding to the modulation signal determined by the determining module 15, so as to obtain a signal probability;
and the matching unit is used for comparing the signal probability calculated by the calculating unit with the probability threshold determined by the determining module 15.
In this application scenario, the implementation of selecting whether to send the error indication instruction according to the matching result by the sending module 11 may include:
a sending module 11, configured to send an error indication instruction when the matching result is that the signal probability is greater than or equal to the probability threshold;
the sending module 11 is further configured to not send the error indication instruction when the matching result is that the signal probability is smaller than the probability threshold.
Optionally, in another application scenario of the embodiment of the present invention, the determining module 15 may determine an implementation manner of the preset condition, where the implementation manner of the preset condition includes: and determining preset characteristic information of the response instruction according to the signal type preset in the NFC. The specific manner of determining the preset feature information of the received response command by the determining module 15 has been described in detail in the above embodiments, and therefore, is not described herein again.
In this application scenario, the implementation manner for the matching module 14 to match the modulation signal with the preset condition may include: matching the characteristic information of the modulation signal with the preset characteristic information of the response instruction; the characteristic information of the modulation signal comprises one or more items of modulation mode, amplitude and data length of the modulation signal.
In this application scenario, the implementation of selecting whether to send the error indication instruction according to the matching result by the sending module 11 may include:
the sending module 11 is configured to send an error indication instruction when the matching result is that the matching degree of the feature information of the modulation signal and the preset feature information of the response instruction is greater than or equal to a feature threshold;
the sending module 11 is further configured to not send an error indication instruction when the matching result is that the matching degree of the feature information of the modulation signal and the preset feature information of the response instruction is smaller than the feature threshold.
Optionally, in this embodiment of the present invention, the sending module 11 is further configured to, when the receiving module 12 does not receive the response instruction within the preset response time, resend the request instruction.
In practical applications, the sending module 11 and the receiving module 12 in the embodiments shown in fig. 11 and 12 of the present invention may be implemented by a transceiver of an NFC card reader, and the determining module 15, the decoding module 13 and the matching module 14 may be implemented by a processor of the first network node, where the processor may be, for example, a Central Processing Unit (CPU), or an Application Specific Integrated Circuit (ASIC), or one or more Integrated circuits that implement the embodiments of the present invention.
Fig. 13 is a schematic structural diagram of another interference processing apparatus according to an embodiment of the present invention. The interference processing apparatus 20 provided in the embodiment of the present invention may include: a memory 21 and a processor 22.
Wherein, the memory 21 is used for storing executable instructions;
a processor 22, configured to execute the executable instructions stored in the memory 21, and perform the following operations:
s31, sending a request instruction;
s32, when the modulation signal is received and the decoding of the modulation signal fails, matching the modulation signal with a preset condition to obtain a matching result;
and S33, selecting whether to send an error indication instruction according to the matching result.
Optionally, in this embodiment of the present invention, when the processor 22 executes the executable instructions, the implementation of operation S33 may be performed, including:
s331, when the matching result is that the matching is successful, sending an error indication instruction;
s332, when the matching result is that the matching fails, an error indication instruction is not sent.
Optionally, in the embodiment of the present invention, when the processor 22 executes the executable instructions, after performing operation S31, the following operations are further performed: the preset conditions are determined.
In the embodiment of the present invention, the implementation manner of determining the preset condition may include the following steps:
firstly, determining a time range for receiving a response instruction according to one or more of the type of the request instruction and the statistic value of the time range for receiving the response instruction by the NFC card reader; alternatively, the first and second electrodes may be,
secondly, determining the data length of the response instruction according to one or more of the type of the request instruction, the content requested by the request instruction and the data length statistic value of the response instruction received by the NFC card reader; alternatively, the first and second electrodes may be,
thirdly, determining a probability threshold value for receiving the response command, and determining probability coefficients corresponding to the modulation signals received at different times according to the time for sending the request command; alternatively, the first and second electrodes may be,
fourthly, according to the signal type preset in the NFC, the preset characteristic information of the response instruction is determined.
It should be noted that, when the predetermined condition is different, the implementation of performing S33 when the processor 22 executes the executable instruction is described in detail in the foregoing embodiment, and therefore, the detailed description is omitted here.
Optionally, in the embodiment of the present invention, when the processor 22 executes the executable instructions, the following operations are further performed: s34, resending the request command if no response command is received within the preset response time.
An embodiment of the present invention further provides a computer-readable storage medium, where the computer-readable storage medium stores computer-executable instructions, and when the processor executes the computer-executable instructions, the processor performs the following operations:
s41, sending a request instruction;
s42, when the modulation signal is received and the decoding of the modulation signal fails, matching the modulation signal with a preset condition to obtain a matching result;
and S43, selecting whether to send an error indication instruction according to the matching result.
Optionally, in this embodiment of the present invention, when the processor executes the computer-executable instructions, the performing implementation of operation S43 may include:
s431, when the matching result is that the matching is successful, sending an error indication instruction;
and S432, when the matching result is matching failure, no error indication instruction is sent.
Optionally, in this embodiment of the present invention, when the processor executes the computer-executable instructions, after performing operation S41, the following operations are further performed: the preset conditions are determined.
In the embodiment of the present invention, the implementation manner of determining the preset condition may include the following steps:
firstly, determining a time range for receiving a response instruction according to one or more of the type of the request instruction and the statistic value of the time range for receiving the response instruction by the NFC card reader; alternatively, the first and second electrodes may be,
secondly, determining the data length of the response instruction according to one or more of the type of the request instruction, the content requested by the request instruction and the data length statistic value of the response instruction received by the NFC card reader; alternatively, the first and second electrodes may be,
thirdly, determining a probability threshold value for receiving the response command, and determining probability coefficients corresponding to the modulation signals received at different times according to the time for sending the request command; alternatively, the first and second electrodes may be,
fourthly, according to the signal type preset in the NFC, the preset characteristic information of the response instruction is determined.
It should be noted that, when the predetermined condition is different, the implementation of performing S43 when the processor executes the computer-executable instruction is described in detail in the foregoing embodiment, and therefore, the detailed description is omitted here.
Optionally, in the embodiment of the present invention, when the processor executes the computer executable instruction, the following operations are further performed: s44, resending the request command if no response command is received within the preset response time.
It will be understood by those skilled in the art that all or part of the steps of the above methods may be implemented by a program instructing associated hardware (e.g., a processor) which may be stored in a computer readable storage medium such as a read only memory, a magnetic or optical disk, etc. Alternatively, all or part of the steps of the above embodiments may be implemented using one or more integrated circuits. Accordingly, the modules/units in the above embodiments may be implemented in hardware, for example, by an integrated circuit, or may be implemented in software, for example, by a processor executing programs/instructions stored in a memory to implement the corresponding functions. Embodiments of the invention are not limited to any specific form of hardware or software combination.
Although the embodiments of the present invention have been described above, the above description is only for the convenience of understanding the present invention, and is not intended to limit the present invention. It will be understood by those skilled in the art that various changes in form and details may be made therein without departing from the spirit and scope of the invention as defined by the appended claims.

Claims (11)

1. An interference processing method, comprising:
the NFC card reader sends a request instruction;
when the NFC card reader receives a modulation signal and fails to decode the modulation signal, the modulation signal is matched with a preset condition to obtain a matching result, wherein the preset condition comprises any one of the following conditions: receiving a time range of a response instruction, receiving a data length set of the response instruction, receiving a probability threshold of the response instruction and preset characteristic information of the response instruction;
the NFC card reader selects whether to send an error indication instruction according to the matching result, and the method comprises the following steps:
when the matching result is that the matching is successful, the NFC card reader sends the error indication instruction;
and when the matching result is matching failure, the NFC card reader does not send the error indication instruction.
2. The interference handling method according to claim 1, wherein after the NFC reader sends the request instruction, the method further comprises: the NFC card reader determines the preset condition;
wherein the NFC reader determines the preset condition, including:
the NFC card reader determines a time range for receiving the response instruction according to one or more of the type of the request instruction and the statistic of the time range for receiving the response instruction by the NFC card reader; alternatively, the first and second electrodes may be,
and the NFC card reader determines the data length of the response instruction according to one or more of the type of the request instruction, the requested content of the request instruction and the data length statistic of the response instruction received by the NFC card reader.
3. The interference processing method according to claim 2, wherein when the preset condition is the time range for receiving the response command, the NFC card reader selects whether to send an error indication command according to the matching result, including:
when the matching result is that the modulation signal is in the determined time range, the NFC card reader sends the error indication instruction;
and when the matching result is that the modulation signal is out of the determined time range, the NFC card reader does not send the error indication instruction.
4. The interference processing method according to claim 2, wherein when the preset condition is a data length of the response command and the data length is a data length range, the NFC card reader selects whether to send an error indication command according to the matching result, including:
when the matching result is that the data length of the modulation signal is within the data length range, the NFC card reader sends the error indication instruction;
when the matching result is that the data length of the modulation signal is out of the data length range, the NFC card reader does not send the error indication instruction;
alternatively, the first and second electrodes may be,
when the preset condition is the data length of the response instruction and the data length is a data length set, the NFC card reader selects whether to send an error indication instruction according to the matching result, including:
when the matching result is that the data length of the modulation signal is equal to any one element in the data length set, the NFC card reader sends the error indication instruction;
and when the matching result is that the data length of the modulation signal is not equal to each element in the data length set, the NFC card reader does not send the error indication instruction.
5. The interference handling method according to claim 1, wherein after the NFC reader sends the request instruction, the method further comprises: the NFC card reader determines the preset condition;
wherein the NFC reader determines the preset condition, including:
the NFC card reader determines a probability threshold value for receiving the response instruction, and determines probability coefficients corresponding to modulation signals received at different times according to the time for sending the request instruction; alternatively, the first and second electrodes may be,
and the NFC card reader determines preset characteristic information of the response instruction according to a signal type preset in NFC.
6. The interference processing method according to claim 5, wherein when the preset condition is the probability threshold for receiving the response command, the matching, by the NFC reader, of the modulated signal with the preset condition includes:
the NFC card reader acquires the initial probability of the modulation signal according to one or more items of the characteristics, the strength and the data length of the modulation signal;
the NFC card reader calculates the product of the initial probability of the modulation signal and the probability coefficient corresponding to the modulation signal to obtain a signal probability, and compares the signal probability with the probability threshold;
the NFC card reader selects whether to send an error indication instruction according to the matching result, and the method comprises the following steps:
when the matching result is that the signal probability is greater than or equal to the probability threshold, the NFC card reader sends the error indication instruction;
and when the matching result is that the signal probability is smaller than the probability threshold, the NFC card reader does not send the error indication instruction.
7. The interference processing method according to claim 5, wherein when the preset condition is preset feature information of the response instruction, the matching, by the NFC card reader, of the modulated signal with the preset condition includes:
the NFC card reader matches the characteristic information of the modulation signal with the preset characteristic information of the response instruction; wherein the characteristic information of the modulation signal comprises one or more items of modulation mode, amplitude and data length of the modulation signal;
the NFC card reader selects whether to send an error indication instruction according to the matching result, and the method comprises the following steps:
when the matching result is that the matching degree of the characteristic information of the modulation signal and the preset characteristic information of the response instruction is greater than or equal to a characteristic threshold value, the NFC card reader sends the error indication instruction;
and when the matching result is that the matching degree of the characteristic information of the modulation signal and the preset characteristic information of the response instruction is smaller than the characteristic threshold value, the NFC card reader does not send the error indication instruction.
8. An interference processing device disposed in a Near Field Communication (NFC) card reader, the interference processing device comprising:
the sending module is used for sending a request instruction;
the receiving module is used for receiving the modulation signal;
a decoding module, configured to decode the modulated signal received by the receiving module;
a matching module, configured to match the modulation signal with a preset condition determined by the determining module when the decoding module fails to decode the modulation signal, so as to obtain a matching result, where the preset condition includes any one of: receiving a time range of a response instruction, receiving a data length set of the response instruction, receiving a probability threshold of the response instruction and preset characteristic information of the response instruction;
the sending module is further configured to select whether to send an error indication instruction according to the matching result obtained by the matching module, and includes:
when the matching result is that the matching is successful, the sending module sends the error indication instruction;
and when the matching result is matching failure, the sending module does not send the error indication instruction.
9. The interference processing apparatus of claim 8, wherein the apparatus further comprises: the determining module is used for determining the preset condition;
wherein the determining module determines the preset condition, including:
determining a time range for receiving the response instruction according to one or more of the type of the request instruction and the statistic value of the time range for receiving the response instruction by the NFC card reader; alternatively, the first and second electrodes may be,
determining the data length of a response instruction according to one or more of the type of the request instruction, the content requested by the request instruction and the data length statistic of the response instruction received by the NFC reader; alternatively, the first and second electrodes may be,
determining a probability threshold value for receiving the response instruction, and determining probability coefficients corresponding to modulation signals received at different times according to the time for sending the request instruction; alternatively, the first and second electrodes may be,
and determining preset characteristic information of the response instruction according to a signal type preset in the NFC.
10. An interference processing apparatus, comprising: a memory and a processor;
the memory is used for storing executable instructions;
the processor is configured to execute the executable instructions stored in the memory, and perform the following operations:
sending a request instruction;
when a modulation signal is received and decoding of the modulation signal fails, matching the modulation signal with a preset condition to obtain a matching result, wherein the preset condition comprises any one of the following conditions: receiving a time range of a response instruction, receiving a data length set of the response instruction, receiving a probability threshold of the response instruction and preset characteristic information of the response instruction;
selecting whether to send an error indication instruction according to the matching result, wherein the error indication instruction comprises the following steps:
when the matching result is that the matching is successful, the sending module sends the error indication instruction;
and when the matching result is matching failure, the sending module does not send the error indication instruction.
11. A computer-readable storage medium having computer-executable instructions stored thereon that, when executed by a processor, perform operations comprising:
sending a request instruction;
when a modulation signal is received and decoding of the modulation signal fails, matching the modulation signal with a preset condition to obtain a matching result, wherein the preset condition comprises any one of the following conditions: receiving a time range of a response instruction, receiving a data length set of the response instruction, receiving a probability threshold of the response instruction and preset characteristic information of the response instruction;
selecting whether to send an error indication instruction according to the matching result, wherein the error indication instruction comprises the following steps:
when the matching result is that the matching is successful, the sending module sends the error indication instruction;
and when the matching result is matching failure, the sending module does not send the error indication instruction.
CN201710359558.2A 2017-05-19 2017-05-19 Interference processing method and device Active CN108964721B (en)

Priority Applications (2)

Application Number Priority Date Filing Date Title
CN201710359558.2A CN108964721B (en) 2017-05-19 2017-05-19 Interference processing method and device
PCT/CN2018/074335 WO2018210002A1 (en) 2017-05-19 2018-01-26 Interference processing method and device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201710359558.2A CN108964721B (en) 2017-05-19 2017-05-19 Interference processing method and device

Publications (2)

Publication Number Publication Date
CN108964721A CN108964721A (en) 2018-12-07
CN108964721B true CN108964721B (en) 2021-06-18

Family

ID=64273422

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201710359558.2A Active CN108964721B (en) 2017-05-19 2017-05-19 Interference processing method and device

Country Status (2)

Country Link
CN (1) CN108964721B (en)
WO (1) WO2018210002A1 (en)

Families Citing this family (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
FR3096809B1 (en) * 2019-06-03 2022-07-22 St Microelectronics Rousset NFC device charging
EP3772186A1 (en) * 2019-08-01 2021-02-03 Nxp B.V. Dynamic sensitivity control in a near-field communication receiver
CN112800789A (en) * 2021-01-12 2021-05-14 大唐微电子技术有限公司 System and method for detecting interference signal
CN113115296B (en) * 2021-04-25 2022-10-18 Oppo广东移动通信有限公司 Near field communication method and related device

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101292435A (en) * 2005-11-08 2008-10-22 三菱电机株式会社 Interference judging device, data reader, RFID system, interference judging method and interference judging program
CN101661549A (en) * 2008-08-29 2010-03-03 华为技术有限公司 Electronic tag and answering method thereof, and method, device and system for identifying electronic tag
CN101814923A (en) * 2009-02-20 2010-08-25 华为技术有限公司 Method and device for decoding fountain codes
CN102521556A (en) * 2011-11-21 2012-06-27 天津中兴软件有限责任公司 Method for implementing multi-label identification
CN102880842A (en) * 2012-08-16 2013-01-16 飞天诚信科技股份有限公司 Method for enhancing communication stability between non-contact card and card reader

Family Cites Families (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2007090114A2 (en) * 2006-02-01 2007-08-09 Vitaly Drucker Rfid tag, interrogator and system with improved symbol encoding and decoding
US8766777B2 (en) * 2012-05-22 2014-07-01 Eastman Kodak Company RFID marking of units in a space

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101292435A (en) * 2005-11-08 2008-10-22 三菱电机株式会社 Interference judging device, data reader, RFID system, interference judging method and interference judging program
CN101661549A (en) * 2008-08-29 2010-03-03 华为技术有限公司 Electronic tag and answering method thereof, and method, device and system for identifying electronic tag
CN101814923A (en) * 2009-02-20 2010-08-25 华为技术有限公司 Method and device for decoding fountain codes
CN102521556A (en) * 2011-11-21 2012-06-27 天津中兴软件有限责任公司 Method for implementing multi-label identification
CN102880842A (en) * 2012-08-16 2013-01-16 飞天诚信科技股份有限公司 Method for enhancing communication stability between non-contact card and card reader

Also Published As

Publication number Publication date
CN108964721A (en) 2018-12-07
WO2018210002A1 (en) 2018-11-22

Similar Documents

Publication Publication Date Title
CN108964721B (en) Interference processing method and device
EP3800767B1 (en) Detection of nfc proximity ic cards (piccs) during wireless charging
CN102880842B (en) A kind of method strengthening non-contact card and card reader communication robust
EP2061172B1 (en) IC card, method, and computer program product
CN102215050B (en) Detection method for radio-frequency SIM (Subscriber Identity Module) card collision with low-frequency magnetic communication
KR20090097830A (en) Rfid reader device for situational command retransmission and control method therefor
US20210287471A1 (en) Gate apparatus and method in gate apparatus
CN116112326A (en) Integrated circuit and method for protocol detection and decoding in near field communication
EP1995902B1 (en) Pipelining processes in a RF reader
KR20090097831A (en) Rfid interrogator with a collision diagnostics function and method for controlling of the same
KR20090097829A (en) Rfid reader device for calculating adaptive retransmission wait time and control method therefor
US20210374365A1 (en) Method for distinguishing between active and passive contactless devices, and corresponding reader
JP4840286B2 (en) RFID tag reader
US20110074555A1 (en) Mobile rfid device and data communication method thereof
EP3036683A1 (en) Wireless smart card detection and selection
CN110650466B (en) Method for reducing power consumption of non-contact card equipment
CN112771784B (en) System and method for device coexistence
US20220321173A1 (en) Nfc device, operating method and computer program
US11855713B2 (en) Method for implementing an NFC transaction
WO2021189248A1 (en) Tag identification and inventory method and apparatus, reader, medium and computer program
CN111211812B (en) Operation method of electronic device
US11334437B2 (en) Method to recover an error state in a serial communication with an integrated circuit card, corresponding system and computer program product
JP2001307033A (en) Non-contact ic card reader
KR20110035828A (en) Mobile rfid device and data communication method thereof
WO2012129843A1 (en) Method and device for implementing multi-tag identification

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