CN115580322B - Method and apparatus for detecting failure, near field communication apparatus, and storage medium - Google Patents

Method and apparatus for detecting failure, near field communication apparatus, and storage medium Download PDF

Info

Publication number
CN115580322B
CN115580322B CN202211446985.1A CN202211446985A CN115580322B CN 115580322 B CN115580322 B CN 115580322B CN 202211446985 A CN202211446985 A CN 202211446985A CN 115580322 B CN115580322 B CN 115580322B
Authority
CN
China
Prior art keywords
loop antenna
determining
voltage signal
comparison result
near field
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN202211446985.1A
Other languages
Chinese (zh)
Other versions
CN115580322A (en
Inventor
黄金煌
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Beijing Unigroup Tsingteng Microsystems Co Ltd
Original Assignee
Beijing Unigroup Tsingteng Microsystems Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Beijing Unigroup Tsingteng Microsystems Co Ltd filed Critical Beijing Unigroup Tsingteng Microsystems Co Ltd
Priority to CN202211446985.1A priority Critical patent/CN115580322B/en
Publication of CN115580322A publication Critical patent/CN115580322A/en
Application granted granted Critical
Publication of CN115580322B publication Critical patent/CN115580322B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • H04B5/73
    • GPHYSICS
    • G01MEASURING; TESTING
    • G01RMEASURING ELECTRIC VARIABLES; MEASURING MAGNETIC VARIABLES
    • G01R29/00Arrangements for measuring or indicating electric quantities not covered by groups G01R19/00 - G01R27/00
    • G01R29/08Measuring electromagnetic field characteristics
    • G01R29/10Radiation diagrams of antennas
    • YGENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
    • Y02TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
    • Y02DCLIMATE CHANGE MITIGATION TECHNOLOGIES IN INFORMATION AND COMMUNICATION TECHNOLOGIES [ICT], I.E. INFORMATION AND COMMUNICATION TECHNOLOGIES AIMING AT THE REDUCTION OF THEIR OWN ENERGY USE
    • Y02D30/00Reducing energy consumption in communication networks
    • Y02D30/70Reducing energy consumption in communication networks in wireless communication networks

Abstract

The application relates to the technical field of near field communication, and discloses a method for detecting faults, which comprises the following steps: under the condition that the micro control unit sends a first high-frequency signal with set current intensity to the matching circuit, acquiring current flowing through the micro control unit; and determining whether the loop antenna has a fault according to the current. Therefore, the annular antenna does not need to be manually taken down from the near field communication device, and the annular antenna does not need to be connected into special detection equipment for fault detection. And whether the loop antenna fails or not can be directly determined on the near field communication device, so that the cost of fault detection is saved. The application also discloses a device for detecting the fault, a near field communication device and a storage medium.

Description

Method and apparatus for detecting failure, near field communication apparatus, and storage medium
Technical Field
The present application relates to the field of near field communication technologies, and for example, to a method and an apparatus for detecting a fault, a near field communication apparatus, and a storage medium.
Background
Near Field Communication (NFC) is a short-distance high-frequency wireless communication technology, and allows contactless point-to-point data transmission and data exchange between electronic devices. It has communication speed fast, advantages such as simple operation, therefore has extensive application prospect, for example: the method is applied to various data interaction scenes such as electronic payment, identity authentication, ticketing, data exchange, anti-counterfeiting, advertisement and the like. At present, the near field communication technology is widely applied to multiple fields of finance, production and the like.
Since the loop antenna is an important component of the nfc device, and the loop antenna is generally used with the nfc device, it is necessary to detect whether the loop antenna is adapted to the nfc before the loop antenna is connected to the nfc device. For example, chinese patent application publication No. CN109639370B discloses a method and an apparatus for detecting a near field communication antenna, a mobile terminal and a storage medium, including: inputting a preset input signal into an input port of a dual-port network corresponding to the NFC antenna, then acquiring an output parameter output based on the input signal through an output port of the dual-port network, then judging whether the output parameter is matched with a preset standard configuration parameter, and at the moment, if the output parameter is matched with the standard configuration parameter, determining that the NFC antenna is the NFC antenna standard configured for the mobile terminal. Therefore, the mobile terminal can accurately identify whether the currently used NFC antenna is a standard antenna. After determining that the loop antenna is adapted to the near field communication device, it is further required to determine whether the loop antenna is successfully connected to the near field communication device, so as to avoid damage to the NFC chip caused by the non-installation of the antenna, for example, chinese patent application publication No. CN112910487B discloses an antenna detection apparatus, including: the antenna comprises a near field communication chip, a Hall chip, an antenna connecting circuit and an antenna bracket; the antenna bracket comprises a mounting plate and a supporting part, the mounting plate and the supporting part form an accommodating cavity, the near field communication chip and the Hall chip are arranged in the accommodating cavity, and the mounting plate is used for arranging a near field communication antenna; the Hall chip is connected with the first end of the near field communication chip, the second end of the near field communication chip is connected with the first end of the antenna connecting circuit, and the second end of the antenna connecting circuit is used for being connected with the near field communication antenna; under the condition that the antenna connecting circuit is detected to be connected with the near field communication antenna, the Hall chip sends a starting signal to the near field communication chip; the near field communication chip starts a radio frequency sending and receiving function under the condition of receiving the starting signal; the Hall chip generates a Hall effect under the influence of the magnetic field of the near field communication antenna, and transmits an electric signal generated by the Hall effect to the near field communication chip, wherein the electric signal is the starting signal sent to the near field communication chip.
The loop antenna may fail after the near field communication device is used for a period of time. The existing near field communication device can not directly determine whether the loop antenna is in fault, and the loop antenna needs to be manually taken out of the near field communication device and connected into special detection equipment for fault detection.
It is noted that the information disclosed in the above background section is only for enhancement of understanding of the background of the application and therefore may include information that does not constitute prior art that is already known to a person of ordinary skill in the art.
Disclosure of Invention
The following presents a simplified summary in order to provide a basic understanding of some aspects of the disclosed embodiments. This summary is not an extensive overview nor is intended to identify key/critical elements or to delineate the scope of such embodiments but rather as a prelude to the more detailed description that is presented later.
The embodiment of the disclosure provides a method and a device for detecting a fault, a near field communication device and a storage medium, so that the near field communication device can detect whether a loop antenna has a fault.
In some embodiments, the method for detecting a fault is applied to a near field communication device, the near field communication device comprises a micro control unit, a matching circuit and a loop antenna, the micro control unit is connected with the matching circuit, and the micro control unit is used for sending a first high-frequency signal with set current intensity to the matching circuit; the matching circuit is connected with the loop antenna and used for generating a radio frequency signal corresponding to the first high-frequency signal according to a set frequency; the loop antenna is used for coupling with the radio frequency signal to generate a radio frequency field; the method comprises the following steps: under the condition that the micro control unit sends a first high-frequency signal with set current intensity to the matching circuit, acquiring current flowing through the micro control unit; and determining whether the loop antenna has a fault according to the current.
In some embodiments, the apparatus for detecting a fault is applied to a near field communication apparatus, the near field communication apparatus includes a micro control unit, a matching circuit, and a loop antenna, the micro control unit is connected to the matching circuit, and the micro control unit is configured to transmit a first high frequency signal with a set current intensity to the matching circuit; the matching circuit is connected with the loop antenna and used for generating a radio frequency signal corresponding to the first high-frequency signal according to a set frequency; the loop antenna is used for coupling with the radio frequency signal to generate a radio frequency field; the device comprises: the acquisition module is configured to acquire the current flowing through the micro control unit under the condition that the micro control unit sends a first high-frequency signal with set current intensity to the matching circuit; a determination module configured to determine whether the loop antenna is malfunctioning based on the current.
In some embodiments, the near field communication device comprises a processor and a memory storing program instructions, the processor being configured to perform the above-described method for detecting a fault when executing the program instructions.
In some embodiments, a storage medium stores program instructions that, when executed, perform the above-described method for detecting a fault.
The method, the device, the near field communication device and the storage medium for detecting the fault provided by the embodiment of the disclosure can realize the following technical effects: the current flowing through the micro control unit is obtained, and whether the loop antenna is in failure or not is determined according to the current. Therefore, the annular antenna does not need to be manually taken down from the near field communication device, and the annular antenna does not need to be connected into special detection equipment for fault detection. And whether the loop antenna fails or not can be directly determined on the near field communication device, so that the cost of fault detection is saved.
The foregoing general description and the following description are exemplary and explanatory only and are not restrictive of the application.
Drawings
One or more embodiments are illustrated by way of example in the accompanying drawings, which correspond to the accompanying drawings and not in limitation thereof, in which elements having the same reference numeral designations are shown as like elements and not in limitation thereof, and wherein:
fig. 1 is a schematic diagram of a first near field communication device provided by an embodiment of the present disclosure;
FIG. 2 is a schematic diagram of a method for detecting a fault provided by an embodiment of the present disclosure;
FIG. 3 is a schematic diagram of an apparatus for detecting faults provided by embodiments of the present disclosure;
fig. 4 is a schematic diagram of a second near field communication device provided by an embodiment of the present disclosure;
fig. 5 is a schematic diagram of a third near field communication device provided by an embodiment of the present disclosure;
fig. 6 is a schematic diagram of a fourth near field communication device provided by the embodiment of the present disclosure.
Detailed Description
So that the manner in which the features and elements of the disclosed embodiments can be understood in detail, a more particular description of the disclosed embodiments, briefly summarized above, may be had by reference to the embodiments, some of which are illustrated in the appended drawings. In the following description of the technology, for purposes of explanation, numerous details are set forth in order to provide a thorough understanding of the disclosed embodiments. However, one or more embodiments may be practiced without these details. In other instances, well-known structures and devices may be shown in simplified form in order to simplify the drawing.
The terms "first," "second," and the like in the description and in the claims, and the above-described drawings of embodiments of the present disclosure, are used for distinguishing between similar elements and not necessarily for describing a particular sequential or chronological order. It should be understood that the data so used may be interchanged under appropriate circumstances such that embodiments of the present disclosure described herein may be made. Furthermore, the terms "comprising" and "having," as well as any variations thereof, are intended to cover non-exclusive inclusions.
The term "plurality" means two or more unless otherwise specified.
In the embodiment of the present disclosure, the character "/" indicates that the preceding and following objects are in an or relationship. For example, A/B represents: a or B.
The term "and/or" is an associative relationship that describes objects, meaning that three relationships may exist. For example, a and/or B, represents: a or B, or A and B.
The term "correspond" may refer to an association or binding relationship, and a corresponds to B refers to an association or binding relationship between a and B.
As shown in fig. 1, an embodiment of the present disclosure provides a near field communication device 100, which includes a micro control unit 1, a matching circuit 2, and a loop antenna 3. The micro control unit 1 is connected with the matching circuit 2, and the micro control unit 1 is used for sending a first high-frequency signal with set current intensity to the matching circuit 2; the matching circuit 2 is connected with the loop antenna 3, and the matching circuit 2 is used for generating a radio frequency signal corresponding to the first high-frequency signal according to a set frequency; the loop antenna 3 is used for coupling with a radio frequency signal to generate a radio frequency field.
With reference to fig. 2, an embodiment of the present disclosure provides a method for detecting a fault, which is applied to a near field communication device, and the method includes:
in step S201, the nfc device obtains the current flowing through the micro control unit when the micro control unit sends the first high-frequency signal with the set current intensity to the matching circuit.
In step S202, the near field communication device determines whether the loop antenna fails according to the current.
By adopting the method for detecting the fault provided by the embodiment of the disclosure, whether the loop antenna has the fault or not is determined by acquiring the current flowing through the micro control unit according to the current. Therefore, the annular antenna does not need to be manually taken down from the near field communication device, and the annular antenna does not need to be connected into special detection equipment for fault detection. And whether the loop antenna fails or not can be directly determined on the near field communication device, so that the cost of fault detection is saved.
Optionally, the micro control unit comprises a power supply module, a transmission module and a voltage regulator. The power supply module supplies power to the transmitting module through the voltage stabilizer. The transmitting module is used for transmitting a first high-frequency signal with set current intensity to the matching circuit. Acquiring a current flowing through a micro control unit, comprising: the current flowing through the voltage regulator is obtained.
Optionally, the micro control unit includes a current detector electrically connected to the power supply module and the voltage regulator, respectively; obtaining current flowing through a voltage regulator, comprising: and sending a current acquisition command to the current detector, and triggering the current detector to feed back the detected current.
Further, the voltage regulator is a low dropout regulator.
Optionally, determining whether the loop antenna is faulty according to the current includes: and determining whether the current is greater than a set threshold value, and determining that the loop antenna is in fault if the current is greater than the set threshold value. And/or determining that the loop antenna is not in fault if the current is less than or equal to the set threshold. Since the impedance of the near field communication device includes the impedance of the matching circuit and the impedance of the loop antenna in the case where the loop antenna is normal. The current in the near field communication device is now less than or equal to the set threshold. However, in the case of a failure of the loop antenna, the impedance of the near field communication device only includes the impedance of the matching circuit, and the current in the near field communication device may be greater than the set threshold. Thus, by determining whether the current in the near field communication device is greater than a set threshold, it can be determined whether the loop antenna is malfunctioning.
Further, after determining that the loop antenna fails, the method further includes: the set threshold is corrected by the current. Since it is not possible to determine in advance whether the loop antenna is normal or not, it is not possible to determine the magnitude of the current in the near field communication device in the case where the loop antenna is normal. Therefore, whether the loop antenna is normal is judged by judging whether the current of the near field communication device is larger than a set threshold value. And under the condition that the loop antenna is normal, the current is utilized to correct the set threshold value, so that whether the loop antenna is normal or not can be more accurately determined.
Further, the correcting operation of the set threshold value by using the current comprises the following steps: the sum of the current and a third preset threshold is determined as the set threshold.
Optionally, the near field communication device further includes a first detection circuit and a first comparator, the first detection circuit is connected to the micro control unit and the matching circuit, respectively, and the matching circuit is configured to decouple the radio frequency field to obtain a second high frequency signal; the first detection circuit is used for converting the first high-frequency signal and the second high-frequency signal into corresponding voltage signals respectively and determining the sum of the voltage signals corresponding to the first high-frequency signal and the second high-frequency signal as a first voltage signal; the first comparator is used for comparing the first voltage signal with a first preset threshold value to obtain a first comparison result; after determining the fault of the loop antenna, the method further comprises the following steps: determining that the loop antenna is short-circuited when the first comparison result is less than and the first voltage signal is not 0; and/or determining that the loop antenna is broken when the first comparison result is less than the first comparison result and the first voltage signal is 0; and/or; and determining that the loop antenna is broken when the first comparison result is less than and the first voltage signal does not exist. Since the connection between the micro control unit and the matching circuit is disconnected in case of an open circuit of the loop antenna, the first and second high frequency signals will not be collected by the first detector circuit, and thus there is no first voltage signal obtained by the first detector circuit from the first and second high frequency signals. Or, the first detection circuit collects the first high-frequency signal '0' and the second high-frequency signal '0'. And converts the first high frequency signal '0' and the second high frequency signal '0' into the first voltage signal '0'. Therefore, when the loop antenna is disconnected, the first comparator cannot receive the first voltage signal or receives the first voltage signal "0". And under the condition that the first comparator does not receive the first voltage signal or receives the first voltage signal '0', the output first comparison results of the first comparator are all smaller than the output first comparison results of the first comparator. Therefore, the loop antenna disconnection can be determined in the case where the first comparison result is less than and the first voltage signal is not present, and/or in the case where the first comparison result is less than and the second voltage signal is 0. And the second high-frequency signal collected by the first detection circuit under the condition that the loop antenna is broken is smaller than the second high-frequency signal collected by the first detection circuit under the normal condition of the loop antenna. Therefore, in the case where the first comparison result is less and the first voltage signal is not 0, it is determined that the loop antenna is short-circuited.
In some embodiments, the first preset threshold is obtained by: and acquiring a first voltage signal under the condition that the loop antenna is normal, and determining the difference between the first voltage signal and a fourth preset threshold as a first preset threshold.
Optionally, the near field communication device further includes a second detection circuit and a second comparator, the second detection circuit is respectively connected to the matching circuit and the loop antenna, the second detection circuit is configured to collect a field intensity signal of the radio frequency field and convert the field intensity signal into a second voltage signal, and the second comparator is configured to compare the second voltage signal with a second preset threshold value to obtain a second comparison result; after determining the failure of the loop antenna, the method further comprises: and determining that the loop antenna is short-circuited if the second comparison result is less and the second voltage signal is not 0. And/or determining that the loop antenna is open circuit if the second comparison result is less and the second voltage signal is 0. And/or determining that the loop antenna is open circuit if the second comparison result is less than and the second voltage signal is not present. Because the connection between the micro control unit and the matching circuit is disconnected under the condition that the loop antenna is broken, the matching circuit cannot generate a radio frequency signal corresponding to the first high-frequency signal, and the loop antenna cannot be coupled with the radio frequency signal to generate a radio frequency field. Therefore, the second detection circuit cannot acquire the field intensity signal of the radio frequency field, and the field intensity signal is not converted into the second voltage signal by the second detection circuit. Or the second detection circuit collects a field intensity signal with the field intensity of 0. And converts the field strength signal with the field strength of 0 into a first voltage signal "0". Therefore, when the loop antenna is disconnected, the second comparator cannot receive the second voltage signal or receives the second voltage signal "0". And under the condition that the second comparator does not receive the second voltage signal or receives the second voltage signal '0', the output second comparison results of the second comparator are all smaller than the output second comparison results of the second comparator. Thus, the loop antenna disconnection can be determined in the case where the second comparison result is less than and the second voltage signal is not present, and/or in the case where the second comparison result is less than and the second voltage signal is 0. And the second high-frequency signal collected by the first detection circuit under the condition that the loop antenna is broken is smaller than the second high-frequency signal collected by the first detection circuit under the normal condition of the loop antenna. Therefore, in the case where the first comparison result is less and the first voltage signal is not 0, it is determined that the loop antenna is short-circuited. In addition, the loop antenna is coupled with the radio-frequency signal generated by the matching antenna to generate a radio-frequency field, the radio-frequency signal is generated by the matching circuit according to the first high-frequency signal, and the matching circuit is used for enabling the radio-frequency performance of the first high-frequency signal to be optimal. Therefore, compared with a method for determining the fault of the loop antenna by using the first high-frequency signal and the second high-frequency signal, the method for determining the fault of the loop antenna by directly using the field intensity signal of the radio-frequency field can more sensitively determine the fault of the loop antenna.
As shown in fig. 3, an apparatus 300 for detecting a fault according to an embodiment of the present disclosure includes an obtaining module 301 and a determining module 302. The acquisition module 301 is configured to acquire the current flowing through the micro control unit in case the micro control unit sends a first high frequency signal of a set current intensity to the matching circuit. The determination module 302 is configured to determine whether the loop antenna is malfunctioning based on the current.
By adopting the device for detecting the fault provided by the embodiment of the disclosure, whether the loop antenna has the fault or not is determined by acquiring the current flowing through the micro control unit according to the current. Therefore, the annular antenna does not need to be manually taken down from the near field communication device, and the annular antenna does not need to be connected into special detection equipment for fault detection. And whether the loop antenna fails or not can be directly determined on the near field communication device, so that the cost of fault detection is saved.
In some embodiments, the acquisition module and the determination module are both disposed within the micro-control unit.
Optionally, the determining module determines whether the loop antenna is malfunctioning from the current by: determining whether the current is greater than a set threshold; determining a fault of the loop antenna under the condition that the current is greater than a set threshold value; and/or determining that the loop antenna is not in fault if the current is less than or equal to the set threshold.
Optionally, the near field communication device further includes a first detection circuit and a first comparator, the first detection circuit is connected to the micro control unit and the matching circuit, respectively, and the matching circuit is configured to decouple the radio frequency field to obtain a second high frequency signal; the first detection circuit is used for converting the first high-frequency signal and the second high-frequency signal into a first voltage signal; the first comparator is used for comparing the first voltage signal with a first preset threshold value to obtain a first comparison result; the determining module is further configured to determine that the loop antenna is short-circuited if the first comparison result is less than and the first voltage signal is not 0; and/or determining that the loop antenna is broken when the first comparison result is less than the first comparison result and the voltage signal is 0; and/or; and determining that the loop antenna is broken when the first comparison result is less than and the first voltage signal does not exist.
Further, the first detection circuit is connected with the micro control unit and the matching circuit through a first capacitor and a first resistor respectively. Thus, the first capacitor and the first resistor can convert the first high-frequency signal and the second high-frequency signal, and the first high-frequency signal and the second high-frequency signal are prevented from exceeding the maximum receiving range of the first detection circuit.
Further, the transmitting module transmits the first high-frequency signal when receiving the signal transmission instruction transmitted by the determining module.
As shown in fig. 4, an embodiment of the present disclosure provides a near field communication device, including: the circuit comprises a micro control unit 1, a matching circuit 2, a loop antenna 3, a first comparator 4, a first detection circuit 5, a first capacitor 6 and a first resistor 7. The micro-control unit comprises a power supply module 11, a current detector 12, a voltage regulator 13, a transmission module 14, an acquisition module 15 and a determination module 16. The power module 11 is connected with the current detector 12, the current detector 12 is respectively connected with the obtaining module 15 and the voltage stabilizer 13, the voltage stabilizer 13 is connected with the transmitting module 14, and the transmitting module 14 is connected with the determining module 16 and is connected with the matching circuit 2 through the port TX1 and the port TX 2. The obtaining module 15 is connected to the determining module 16, and the determining module 16 is connected to the output terminal of the first comparator 4 through the port RX 1. An input end of the first comparator 4 is connected to one end of the first detector circuit 5, the other end of the first detector circuit 5 is connected to one end of the first capacitor 6, the other end of the first capacitor 6 is connected to one end of the first resistor 7, and the other end of the first resistor 7 is connected to the port TX1 and the matching circuit 2, respectively. The matching circuit 2 is connected to the loop antenna 3.
Optionally, the near field communication device further includes a second detection circuit and a second comparator, the second detection circuit is respectively connected to the matching circuit and the loop antenna, the second detection circuit is configured to collect a field intensity signal of the radio frequency field and convert the field intensity signal into a second voltage signal, and the second comparator is configured to compare the second voltage signal with a second preset threshold value to obtain a second comparison result; the determining module is further configured to determine that the loop antenna is short-circuited if the second comparison result is less than and the second voltage signal is not 0; and/or determining that the loop antenna is broken when the second comparison result is less than the first comparison result and the second voltage signal is 0; and/or determining that the loop antenna is open circuit if the second comparison result is less than and the second voltage signal is not present.
Further, the second detection circuit is connected to the matching circuit and the loop antenna via a second capacitor and a second resistor, respectively.
As shown in fig. 5, an embodiment of the present disclosure provides a near field communication device, including: the circuit comprises a micro control unit 1, a matching circuit 2, a loop antenna 3, a second comparator 8, a second detection circuit 9, a second capacitor 10 and a second resistor 17. The micro-control unit comprises a power supply module 11, a current detector 12, a voltage regulator 13, a transmission module 14, an acquisition module 15 and a determination module 16. The power module 11 is connected with the current detector 12, the current detector 12 is respectively connected with the obtaining module 15 and the voltage stabilizer 13, the voltage stabilizer 13 is connected with the transmitting module 14, and the transmitting module 14 is connected with the determining module 16 and is connected with the matching circuit 2 through the port TX1 and the port TX 2. The obtaining module 15 is connected to the determining module 16, and the determining module 16 is connected to the output terminal of the second comparator 8 through the port RX 1. An input terminal of the second comparator 8 is connected to one end of the second detector circuit 9, the other end of the second detector circuit 9 is connected to one end of the second capacitor 10, the other end of the second capacitor 10 is connected to one end of the second resistor 17, and the other end of the second resistor 17 is connected to the loop antenna 3 and the matching circuit 2, respectively. The matching circuit 2 is connected to the loop antenna 3.
As shown in fig. 6, an embodiment of the present disclosure provides a near field communication device 100, which includes a processor (processor) 601 and a memory (memory) 602. Optionally, the apparatus may also include a Communication Interface 603 and bus 604. The processor 601, the communication interface 603, and the memory 602 may communicate with each other via the bus 604. Communication interface 603 may be used for information transfer. The processor 601 may call logic instructions in the memory 602 to perform the method for detecting a fault of the above-described embodiments.
By adopting the near field communication device provided by the embodiment of the disclosure, whether the loop antenna has a fault or not is determined by acquiring the current flowing through the micro control unit according to the current. Therefore, the annular antenna does not need to be manually taken down from the near field communication device, and the annular antenna does not need to be connected into special detection equipment for fault detection. And whether the loop antenna fails or not can be directly determined on the near field communication device, so that the cost of fault detection is saved.
Furthermore, the logic instructions in the memory 602 may be implemented in software functional units and stored in a computer readable storage medium when the logic instructions are sold or used as independent products.
The memory 602 is a computer-readable storage medium and can be used for storing software programs, computer-executable programs, such as program instructions/modules corresponding to the methods in the embodiments of the present disclosure. The processor 601 executes functional applications and data processing by executing program instructions/modules stored in the memory 602, i.e., implements the method for detecting faults in the above-described embodiments.
The memory 602 may include a storage program area and a storage data area, wherein the storage program area may store an operating system, an application program required for at least one function; the storage data area may store data created according to the use of the terminal device, and the like. Further, memory 602 may include high speed random access memory and may also include non-volatile memory.
The disclosed embodiments provide a storage medium storing program instructions that, when executed, perform the above-described method for detecting a fault.
The computer-readable storage medium described above may be a transitory computer-readable storage medium or a non-transitory computer-readable storage medium.
The technical solution of the embodiments of the present disclosure may be embodied in the form of a software product, where the computer software product is stored in a storage medium and includes one or more instructions to enable a computer device (which may be a personal computer, a server, or a network device) to execute all or part of the steps of the method of the embodiments of the present disclosure. And the aforementioned storage medium may be a non-transitory storage medium comprising: a U-disk, a removable hard disk, a Read-Only Memory (ROM), a Random Access Memory (RAM), a magnetic disk or an optical disk, and other various media capable of storing program codes, and may also be a transient storage medium.
The above description and the drawings sufficiently illustrate embodiments of the disclosure to enable those skilled in the art to practice them. Other embodiments may incorporate structural, logical, electrical, process, and other changes. The examples merely typify possible variations. Individual components and functions are optional unless explicitly required, and the sequence of operations may vary. Portions and features of some embodiments may be included in or substituted for those of others. Furthermore, the words used in the specification are words of description only and are not intended to limit the claims. As used in the description of the embodiments and the claims, the singular forms "a", "an" and "the" are intended to include the plural forms as well, unless the context clearly indicates otherwise. Similarly, the term "and/or" as used in this application is meant to encompass any and all possible combinations of one or more of the associated listed. Furthermore, the terms "comprises" and/or "comprising," when used in this application, specify the presence of stated features, integers, steps, operations, elements, and/or components, but do not preclude the presence or addition of one or more other features, integers, steps, operations, elements, components, and/or groups thereof. Without further limitation, an element defined by the phrase "comprising a" \8230; "does not exclude the presence of additional like elements in a process, method or apparatus comprising the element. In this document, each embodiment may be described with emphasis on differences from other embodiments, and the same and similar parts between the respective embodiments may be referred to each other. For methods, products, etc. of the embodiment disclosures, reference may be made to the description of the method section for relevance if it corresponds to the method section of the embodiment disclosure.
Those of skill in the art would appreciate that the various illustrative elements and algorithm steps described in connection with the embodiments disclosed herein may be implemented as electronic hardware or combinations of computer software and electronic hardware. Whether such functionality is implemented as hardware or software may depend upon the particular application and design constraints imposed on the solution. Skilled artisans may implement the described functionality in varying ways for each particular application, but such implementation decisions should not be interpreted as causing a departure from the scope of the disclosed embodiments. It can be clearly understood by the skilled person that, for convenience and brevity of description, the specific working processes of the system, the apparatus and the unit described above may refer to the corresponding processes in the foregoing method embodiments, and are not described herein again.
In the embodiments disclosed herein, the disclosed methods, products (including but not limited to devices, apparatuses, etc.) may be implemented in other ways. For example, the above-described apparatus embodiments are merely illustrative, and for example, the division of the units may be merely a logical division, and in actual implementation, there may be another division, for example, multiple units or components may be combined or integrated into another system, or some features may be omitted, or not executed. In addition, the shown or discussed mutual coupling or direct coupling or communication connection may be an indirect coupling or communication connection through some interfaces, devices or units, and may be in an electrical, mechanical or other form. The units described as separate parts may or may not be physically separate, and parts displayed as units may or may not be physical units, may be located in one place, or may be distributed on a plurality of network units. Some or all of the units can be selected according to actual needs to implement the present embodiment. In addition, functional units in the embodiments of the present disclosure may be integrated into one processing unit, or each unit may exist alone physically, or two or more units are integrated into one unit.
The flowchart and block diagrams in the figures illustrate the architecture, functionality, and operation of possible implementations of systems, methods and computer program products according to embodiments of the present disclosure. In this regard, each block in the flowchart or block diagrams may represent a module, segment, or portion of code, which comprises one or more executable instructions for implementing the specified logical function(s). In some alternative implementations, the functions noted in the block may occur out of the order noted in the figures. For example, two blocks shown in succession may, in fact, be executed substantially concurrently, or the blocks may sometimes be executed in the reverse order, depending upon the functionality involved. In the description corresponding to the flowcharts and block diagrams in the figures, operations or steps corresponding to different blocks may also occur in different orders than disclosed in the description, and sometimes there is no specific order between the different operations or steps. For example, two sequential operations or steps may in fact be executed substantially concurrently, or they may sometimes be executed in the reverse order, depending upon the functionality involved. Each block of the block diagrams and/or flowchart illustrations, and combinations of blocks in the block diagrams and/or flowchart illustrations, can be implemented by special purpose hardware-based systems that perform the specified functions or acts, or combinations of special purpose hardware and computer instructions.

Claims (10)

1. The method for detecting the fault is applied to a near field communication device, the near field communication device comprises a micro control unit, a matching circuit and a loop antenna, the micro control unit is connected with the matching circuit, and the micro control unit is used for sending a first high-frequency signal with set current intensity to the matching circuit; the matching circuit is connected with the loop antenna and used for generating a radio frequency signal corresponding to the first high-frequency signal according to a set frequency; the loop antenna is used for coupling with the radio frequency signal to generate a radio frequency field; characterized in that the method comprises:
under the condition that the micro control unit sends a first high-frequency signal with set current intensity to the matching circuit, acquiring current flowing through the micro control unit;
and determining whether the loop antenna has a fault according to the current.
2. The method of claim 1, wherein determining whether the loop antenna is malfunctioning based on the current comprises:
determining whether the current is greater than a set threshold;
determining that the loop antenna is faulty if the current is greater than the set threshold; and/or the presence of a gas in the atmosphere,
determining that the loop antenna is not malfunctioning if the current is less than or equal to the set threshold.
3. The method of claim 2, wherein the near field communication device further comprises a first detector circuit and a first comparator, the first detector circuit is connected to the micro-control unit and the matching circuit, respectively, and the matching circuit is configured to decouple the rf field to obtain a second rf signal; the first detection circuit is used for converting the first high-frequency signal and the second high-frequency signal into corresponding voltage signals respectively and determining the sum of the voltage signals corresponding to the first high-frequency signal and the second high-frequency signal as a first voltage signal; the first comparator is used for comparing the first voltage signal with a first preset threshold value to obtain a first comparison result; after determining that the loop antenna is faulty, further comprising:
determining that the loop antenna is short-circuited when the first comparison result is less than and the first voltage signal is not 0; and/or the presence of a gas in the gas,
determining that the loop antenna is open-circuited in case that the first comparison result is less and the first voltage signal is 0; and/or;
determining that the loop antenna is open circuit if the first comparison result is less than and the first voltage signal is not present.
4. The method of claim 2, wherein the near field communication device further comprises a second detector circuit and a second comparator, the second detector circuit is respectively connected to the matching circuit and the loop antenna, the second detector circuit is configured to collect a field strength signal of the radio frequency field and convert the field strength signal into a second voltage signal, and the second comparator is configured to compare the second voltage signal with a second preset threshold value to obtain a second comparison result; after determining that the loop antenna is faulty, further comprising:
determining that the loop antenna is short-circuited if the second comparison result is less than and the second voltage signal is not 0; and/or the presence of a gas in the gas,
determining that the loop antenna is open-circuited if the second comparison result is less and the second voltage signal is 0; and/or the presence of a gas in the gas,
determining that the loop antenna is open circuit if the second comparison result is less than and the second voltage signal is not present.
5. A device for detecting faults is applied to a near field communication device, the near field communication device comprises a micro control unit, a matching circuit and a loop antenna, the micro control unit is connected with the matching circuit, and the micro control unit is used for sending a first high-frequency signal with set current intensity to the matching circuit; the matching circuit is connected with the loop antenna and used for generating a radio frequency signal corresponding to the first high-frequency signal according to a set frequency; the loop antenna is used for coupling with the radio frequency signal to generate a radio frequency field; characterized in that the device comprises:
the acquisition module is configured to acquire the current flowing through the micro control unit under the condition that the micro control unit sends a first high-frequency signal with set current intensity to the matching circuit;
a determination module configured to determine whether the loop antenna is malfunctioning based on the current.
6. The apparatus of claim 5, wherein the means for determining determines whether the loop antenna is malfunctioning based on the current by:
determining whether the current is greater than a set threshold;
determining that the loop antenna is faulty if the current is greater than the set threshold; and/or the presence of a gas in the gas,
determining that the loop antenna is not malfunctioning if the current is less than or equal to the set threshold.
7. The apparatus of claim 6, wherein the near field communication apparatus further comprises a first detector circuit and a first comparator, the first detector circuit is connected to the micro-control unit and the matching circuit, respectively, and the matching circuit is configured to decouple the radio frequency field to obtain a second high frequency signal; the first detection circuit is used for converting the first high-frequency signal and the second high-frequency signal into a first voltage signal; the first comparator is used for comparing the first voltage signal with a first preset threshold value to obtain a first comparison result; the determination module is further configured to determine that the loop antenna is shorted if the first comparison result is less than and the first voltage signal is not 0; and/or determining that the loop antenna is broken when the first comparison result is less than the first comparison result and the voltage signal is 0; and/or; determining that the loop antenna is open circuit if the first comparison result is less than and the first voltage signal is not present.
8. The apparatus of claim 6, wherein the near field communication apparatus further comprises a second detector circuit and a second comparator, the second detector circuit is respectively connected to the matching circuit and the loop antenna, the second detector circuit is configured to collect a field strength signal of the radio frequency field and convert the field strength signal into a second voltage signal, and the second comparator is configured to compare the second voltage signal with a second preset threshold value to obtain a second comparison result; the determination module is further configured to determine that the loop antenna is shorted if the second comparison result is less than and the second voltage signal is not 0; and/or determining that the loop antenna is broken if the second comparison result is less than the second voltage signal and the second voltage signal is 0; and/or determining that the loop antenna is open circuit if the second comparison result is less than and the second voltage signal is not present.
9. A near field communication device comprising a processor and a memory having stored thereon program instructions, characterized in that the processor is configured to carry out the method for detecting a fault according to any one of claims 1 to 4 when executing the program instructions.
10. A storage medium storing program instructions which, when executed, perform a method for detecting faults as claimed in any one of claims 1 to 4.
CN202211446985.1A 2022-11-18 2022-11-18 Method and apparatus for detecting failure, near field communication apparatus, and storage medium Active CN115580322B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202211446985.1A CN115580322B (en) 2022-11-18 2022-11-18 Method and apparatus for detecting failure, near field communication apparatus, and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202211446985.1A CN115580322B (en) 2022-11-18 2022-11-18 Method and apparatus for detecting failure, near field communication apparatus, and storage medium

Publications (2)

Publication Number Publication Date
CN115580322A CN115580322A (en) 2023-01-06
CN115580322B true CN115580322B (en) 2023-03-24

Family

ID=84589905

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202211446985.1A Active CN115580322B (en) 2022-11-18 2022-11-18 Method and apparatus for detecting failure, near field communication apparatus, and storage medium

Country Status (1)

Country Link
CN (1) CN115580322B (en)

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108572281A (en) * 2017-03-13 2018-09-25 上海德门电子科技有限公司 A kind of near-field communication field strength simple detection device
CN109639370A (en) * 2018-12-03 2019-04-16 惠州Tcl移动通信有限公司 Near-field communication aerial detection method, device, mobile terminal and storage medium
CN210572683U (en) * 2019-07-09 2020-05-19 杭州叙简安智信息技术有限公司 Battery cover opening detection technology terminal depending on NFC antenna
CN211321598U (en) * 2020-02-17 2020-08-21 深圳市洛丁光电有限公司 Fault detection system based on NFC function
KR20210158501A (en) * 2020-06-24 2021-12-31 코나아이 (주) Smart card
CN114884587A (en) * 2022-04-25 2022-08-09 昆山睿翔讯通通信技术有限公司 NFC monomer test equipment

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US9496744B2 (en) * 2012-12-20 2016-11-15 Intel Corporation Wireless charging optimization utilizing an NFC module that detects induced current and provides an indication of induced current

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108572281A (en) * 2017-03-13 2018-09-25 上海德门电子科技有限公司 A kind of near-field communication field strength simple detection device
CN109639370A (en) * 2018-12-03 2019-04-16 惠州Tcl移动通信有限公司 Near-field communication aerial detection method, device, mobile terminal and storage medium
CN210572683U (en) * 2019-07-09 2020-05-19 杭州叙简安智信息技术有限公司 Battery cover opening detection technology terminal depending on NFC antenna
CN211321598U (en) * 2020-02-17 2020-08-21 深圳市洛丁光电有限公司 Fault detection system based on NFC function
KR20210158501A (en) * 2020-06-24 2021-12-31 코나아이 (주) Smart card
CN114884587A (en) * 2022-04-25 2022-08-09 昆山睿翔讯通通信技术有限公司 NFC monomer test equipment

Also Published As

Publication number Publication date
CN115580322A (en) 2023-01-06

Similar Documents

Publication Publication Date Title
CN105813115B (en) WIFI network configuration method and device
EP2447872B1 (en) Method and device for managing information exchange between for example a NFC controller and a set of at least two secure elements.
US20160344211A1 (en) Power adapter, terminal, and method for processing impedance exception of charging loop
KR20190054416A (en) Wireless power transmission apparatus
CN109474354B (en) Digital radio frequency signal equipment, signal link detection method and device
KR20160088087A (en) Apparatus for determining abnormal status of wireless power transmission coil
CN115242368A (en) Method and device for adjusting phase, near field communication equipment and storage medium
CN115580322B (en) Method and apparatus for detecting failure, near field communication apparatus, and storage medium
US9419682B2 (en) Apparatus and method for providing near field communication for mobile device
CN105026265B (en) For the redundant circuit that the equipment of cutting off is powered
CN113866541B (en) Overvoltage protection test method, device and equipment for direct current converter valve power module
CN107370505B (en) Electronic device with multi-protocol communication mode and communication method thereof
CN110022573B (en) Smart card detection method and electronic equipment
CN113765608B (en) Fault diagnosis method, electronic device, and storage medium
CN213399565U (en) Charging circuit and electronic device
US10219320B2 (en) Methods and systems for adding a device to a sequential personal area network chain
CN104468034B (en) A kind of transponder transmission host
KR101955500B1 (en) Appratus and method for determining line fault
GB2609054A (en) Methods and systems for allowing device to send and receive data
CN109995336B (en) Power amplifier control circuit, power amplifier control method, power amplifier circuit and network access equipment
US10985545B2 (en) Electrical switching device and associated configuration and diagnostic methods
CN115765803B (en) Radio frequency parameter setting method for NFC (near field communication) equipment and NFC equipment
CN107608294B (en) Safety electricity utilization control device and method
CN111818622A (en) Method and device for adjusting communication mode, storage medium and electronic equipment
KR101773913B1 (en) Nfc tag having dual mode

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