[go: up one dir, main page]

CN109639370B - Near field communication antenna detection method and device, mobile terminal and storage medium - Google Patents

Near field communication antenna detection method and device, mobile terminal and storage medium Download PDF

Info

Publication number
CN109639370B
CN109639370B CN201811467868.7A CN201811467868A CN109639370B CN 109639370 B CN109639370 B CN 109639370B CN 201811467868 A CN201811467868 A CN 201811467868A CN 109639370 B CN109639370 B CN 109639370B
Authority
CN
China
Prior art keywords
output
parameters
nfc antenna
mobile terminal
parameter
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
CN201811467868.7A
Other languages
Chinese (zh)
Other versions
CN109639370A (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.)
Shenzhen Meikai Innovation Technology Co ltd
Original Assignee
Huizhou TCL Mobile Communication 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 Huizhou TCL Mobile Communication Co Ltd filed Critical Huizhou TCL Mobile Communication Co Ltd
Priority to CN201811467868.7A priority Critical patent/CN109639370B/en
Publication of CN109639370A publication Critical patent/CN109639370A/en
Application granted granted Critical
Publication of CN109639370B publication Critical patent/CN109639370B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04BTRANSMISSION
    • H04B17/00Monitoring; Testing
    • H04B17/10Monitoring; Testing of transmitters
    • H04B17/15Performance testing
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04BTRANSMISSION
    • H04B17/00Monitoring; Testing
    • H04B17/20Monitoring; Testing of receivers
    • H04B17/29Performance testing
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04MTELEPHONIC COMMUNICATION
    • H04M1/00Substation equipment, e.g. for use by subscribers
    • H04M1/24Arrangements for testing

Landscapes

  • Engineering & Computer Science (AREA)
  • Signal Processing (AREA)
  • Physics & Mathematics (AREA)
  • Electromagnetism (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Telephone Function (AREA)

Abstract

The embodiment of the application discloses a near field communication antenna detection method, a near field communication antenna detection device, a mobile terminal and a storage medium, and can input a preset input signal into an input port of a dual-port network corresponding to an NFC antenna; acquiring output parameters output by the output port of the dual-port network based on the input signals; judging whether the output parameters are matched with preset standard parameters or not; and if the output parameters are matched with the standard parameters, determining that the NFC antenna is the NFC antenna which is standard for the mobile terminal. Whether the NFC antenna used currently is a standard antenna or not can be accurately identified by the mobile terminal, so that the problems that the NFC function is abnormal due to the fact that the mobile terminal uses a non-standard NFC antenna and the NFC function is abnormal due to the fact that maintenance personnel mistakenly replace the NFC antenna during maintenance are avoided, convenience and reliability of the mobile terminal for detecting the near field communication antenna are improved, and convenience is brought to users.

Description

Near field communication antenna detection method and device, mobile terminal and storage medium
Technical Field
The application relates to the technical field of mobile terminals, in particular to a near field communication antenna detection method and device, a mobile terminal and a storage medium.
Background
Near Field Communication (NFC) is a short-range and high-frequency radio technology that employs active and passive reading modes, and can perform identification and data exchange with compatible devices over short distances. With the maturity of NFC technology, more and more mobile terminals integrate NFC to realize corresponding functions, for example, the mobile terminals may use NFC as airport boarding verification, entrance key of a building, transportation one-card access, credit card, payment card, and the like, which brings great convenience to users.
At present, one of the key points of the NFC technology is that on the antenna, the NFC antenna is often large in area and generally disposed in the rear cover of the mobile terminal, so that the sensing distance of the NFC antenna can be effectively maintained. When the mobile terminal uses the NFC antenna, the NFC antenna which is matched with the mobile terminal needs to be used, the problems of insensitive identification or abnormity and the like are easily caused when the mobile terminal uses a non-standard rear cover, at the moment, the NFC antenna can be mistakenly considered to be damaged, the NFC antenna is maintained or replaced, when the replaced NFC antenna is still matched with the mobile terminal in a non-standard mode, the problems of abnormal NFC function and the like still exist, and great troubles are brought to a user. For example, the back covers of various types of mobile terminals of mobile terminal manufacturers may be the same, but the NFC antennas of the mobile terminals are different, and when a user replaces the back cover in a regular after-sales repair point, a maintenance worker easily replaces the back cover with a back cover that is not the mobile terminal, which still causes the NFC function to be abnormal, so that the user is very inconvenient to use.
Disclosure of Invention
The embodiment of the application provides a near field communication antenna detection method and device, a mobile terminal and a storage medium, and can improve the convenience of the mobile terminal in detecting the near field communication antenna.
In a first aspect, an embodiment of the present application provides a near field communication antenna detection method, where the near field communication antenna detection method is applied to a mobile terminal, where the mobile terminal includes a housing, a near field communication NFC antenna is disposed on the housing, and the NFC antenna is correspondingly provided with a dual-port network, and the near field communication antenna detection method includes:
inputting a preset input signal into an input port of a two-port network corresponding to the NFC antenna;
acquiring output parameters output by the output port of the dual-port network based on the input signals;
judging whether the output parameters are matched with preset standard parameters or not;
and if the output parameters are matched with the standard parameters, determining that the NFC antenna is the NFC antenna which is standard for the mobile terminal.
In some embodiments, after the step of determining whether the output parameter matches a preset standard parameter, the method for detecting a near field communication antenna further includes:
and if the output parameters are not matched with the standard parameters, determining that the NFC antenna is not the NFC antenna which is standard for the mobile terminal.
In some embodiments, after the step of determining that the NFC antenna is not an NFC antenna configured for the mobile terminal, the near field communication antenna detection method further includes:
and outputting prompt information that the NFC antenna is not matched with the mobile terminal in a standard mode.
In some embodiments, the step of inputting a preset input signal into an input port of a two-port network corresponding to the NFC antenna includes:
generating an input signal with constant amplitude and frequency varying from small to large;
and inputting the input signal into an input port of a two-port network corresponding to the NFC antenna.
In some embodiments, the step of obtaining output parameters output based on the input signal via the output port of the dual port network comprises:
sequentially attenuating the input signals with the frequency changing from small to large and constant amplitude through the dual-port network to obtain attenuated signals;
and acquiring the attenuated signals which are output through the output port of the dual-port network and are larger than a preset threshold value, and acquiring output parameters.
In some embodiments, the step of determining whether the output parameter matches a preset standard parameter includes:
judging whether the output parameters are positioned in the frequency interval of the standard parameters or not;
when the output parameters are located in the frequency interval of the standard parameters, determining that the output parameters are matched with the standard parameters;
and when the output parameter is not located in the frequency interval of the standard matching parameter, determining that the output parameter is not matched with the standard matching parameter.
In some embodiments, when the calibration parameters include a plurality of parameters, the step of determining whether the output parameters match preset calibration parameters includes:
judging whether the output parameters are matched with a plurality of standard matching parameters or not;
when the output parameter is matched with any one of a plurality of calibration parameters, determining that the output parameter is matched with the calibration parameter;
and when the output parameter is not matched with any one of the plurality of calibration parameters, determining that the output parameter is not matched with the calibration parameter.
In a second aspect, an embodiment of the present application further provides a near field communication antenna detection device, the near field communication antenna detection device is applied to a mobile terminal, the mobile terminal includes a housing, a near field communication NFC antenna is provided on the housing, the NFC antenna is correspondingly provided with a dual-port network, the near field communication antenna detection device includes:
one or more processors;
a memory; and
one or more application programs, wherein the one or more application programs are stored in the memory and configured to be executed by the processor;
the signal input module is used for inputting a preset input signal into an input port of the dual-port network corresponding to the NFC antenna;
a parameter obtaining module for obtaining an output parameter output based on the input signal through an output port of the dual port network;
the judging module is used for judging whether the output parameters are matched with preset standard matching parameters or not;
and the first determining module is used for determining that the NFC antenna is the NFC antenna which is calibrated by the mobile terminal if the output parameters are matched with the calibration parameters.
In some embodiments, the near field communication antenna detection apparatus further comprises:
and the second determining module is used for determining that the NFC antenna is not the NFC antenna which is calibrated by the mobile terminal if the output parameter is not matched with the calibration parameter.
In some embodiments, the near field communication antenna detection apparatus further comprises:
and the output module is used for outputting prompt information that the NFC antenna and the mobile terminal are not matched in a standard mode.
In some embodiments, the signal input module is specifically configured to:
generating an input signal with constant amplitude and frequency varying from small to large;
and inputting the input signal into an input port of a two-port network corresponding to the NFC antenna.
In some embodiments, the parameter obtaining module is specifically configured to:
sequentially attenuating the input signals with the frequency changing from small to large and constant amplitude through the dual-port network to obtain attenuated signals;
and acquiring the attenuated signals which are output through the output port of the dual-port network and are larger than a preset threshold value, and acquiring output parameters.
In some embodiments, the determining module is specifically configured to: judging whether the output parameters are positioned in the frequency interval of the standard parameters or not;
when the output parameters are located in the frequency interval of the standard parameters, determining that the output parameters are matched with the standard parameters;
and when the output parameter is not located in the frequency interval of the standard matching parameter, determining that the output parameter is not matched with the standard matching parameter.
In some embodiments, the determining module is specifically configured to: judging whether the output parameters are matched with a plurality of standard matching parameters or not;
when the output parameter is matched with any one of a plurality of calibration parameters, determining that the output parameter is matched with the calibration parameter;
and when the output parameter is not matched with any one of the plurality of calibration parameters, determining that the output parameter is not matched with the calibration parameter.
In a third aspect, an embodiment of the present application further provides a mobile terminal, which includes a memory and a processor, where the memory stores a computer program, and the processor executes, when calling the computer program in the memory, any of the steps in the near field communication antenna detection method provided in the embodiment of the present application.
In a fourth aspect, the present application further provides a storage medium, where the storage medium stores a computer program, where the computer program is suitable for being loaded by a processor to perform the steps in any of the near field communication antenna detection methods provided in the embodiments of the present application.
The embodiment of the application can input the preset input signal into the input port of the dual-port network corresponding to the NFC antenna, then the output parameter output based on the input signal through the output port of the dual-port network is obtained, then whether the output parameter is matched with the preset standard matching parameter is judged, and at the moment, if the output parameter is matched with the standard matching parameter, the NFC antenna is determined to be the NFC antenna matched with the mobile terminal. Whether the NFC antenna used currently is a standard antenna or not can be accurately identified by the mobile terminal, so that the problems that the NFC function is abnormal due to the fact that the mobile terminal uses a non-standard NFC antenna and the NFC function is abnormal due to the fact that maintenance personnel mistakenly replace the NFC antenna during maintenance are avoided, convenience and reliability of the mobile terminal for detecting the near field communication antenna are improved, and convenience is brought to users.
Drawings
In order to more clearly illustrate the technical solutions in the embodiments of the present application, the drawings needed to be used in the description of the embodiments are briefly introduced below, and it is obvious that the drawings in the following description are only some embodiments of the present application, and it is obvious for those skilled in the art to obtain other drawings based on these drawings without creative efforts.
Fig. 1 is a schematic flowchart of a near field communication antenna detection method provided in an embodiment of the present application;
fig. 2 is another schematic flow chart of a near field communication antenna detection method provided in an embodiment of the present application;
fig. 3 is a schematic diagram of a dual-port network connection corresponding to an NFC antenna provided in an embodiment of the present application;
FIG. 4 is a schematic diagram of an input signal provided by an embodiment of the present application;
FIG. 5 is another schematic diagram of an input signal provided by an embodiment of the present application;
fig. 6 is another schematic diagram of NFC antenna detection provided in an embodiment of the present application;
fig. 7 is a schematic diagram of a mobile terminal displaying a detection result according to an embodiment of the present application;
fig. 8 is a schematic structural diagram of a near field communication antenna detection apparatus provided in an embodiment of the present application;
fig. 9 is a schematic structural diagram of another near field communication antenna detection apparatus provided in an embodiment of the present application;
fig. 10 is a schematic structural diagram of another near field communication antenna detection apparatus provided in an embodiment of the present application;
fig. 11 is a schematic structural diagram of a mobile terminal according to an embodiment of the present application.
Detailed Description
The technical solutions in the embodiments of the present application will be clearly and completely described below with reference to the drawings in the embodiments of the present application, and it is obvious that the described embodiments are only a part of the embodiments of the present application, and not all of the embodiments. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present application.
Referring to fig. 1, fig. 1 is a schematic flowchart illustrating a method for detecting a nfc antenna according to an embodiment of the present disclosure. The execution main body of the near field communication antenna detection method can be the near field communication antenna detection device provided by the embodiment of the application, or a mobile terminal integrated with the near field communication antenna detection device, wherein the near field communication antenna detection device can be realized in a hardware or software mode, and the mobile terminal can be a smart phone, a tablet computer, a palm computer, a notebook computer or the like. The near field communication antenna detection method may include:
s101, inputting a preset input signal into an input port of a dual-port network corresponding to the NFC antenna.
The NFC antenna detection method can be used for a mobile terminal, the mobile terminal comprises a shell, an NFC antenna is arranged on the shell, for example, the shell of the mobile terminal can comprise a rear cover, the NFC antenna can be arranged on the rear cover of the mobile terminal, a dual-port network is correspondingly arranged on the NFC antenna, the dual-port network is used for detecting the NFC antenna, and the dual-port network can be flexibly arranged according to actual needs. When the number of the NFC antennas is multiple, a corresponding dual-port network may be set for each NFC antenna.
For example, the dual-port network may include an input port, an output port, a ground port, and the like, where the input port is configured to receive a preset input signal, and after the input signal is processed by the dual-port network, the output port may output a parameter corresponding to the processed input signal, and a type of a circuit included in the dual-port network may be flexibly set according to actual needs.
The preset input signal may be a sine wave signal, a square wave signal, a cosine wave signal, a sawtooth wave signal, a triangular wave signal, or a ramp wave signal, and the input signal may be a signal whose frequency changes from small to large and whose amplitude is constant, and may be input to an input port of a dual-port network corresponding to the NFC antenna.
And S102, acquiring output parameters output based on the input signals through the output port of the dual-port network.
After an input signal is input into the dual-port network, the input signal may be processed through the dual-port network, for example, the input signal may be attenuated or filtered through the dual-port network, and then an output parameter output by an output port of the dual-port network based on the input signal after processing is obtained, where the output parameter may be a frequency value or a frequency range, for example, when only an input signal with a frequency of 600kHZ can pass through the dual-port network, the obtained output parameter is 600 kHZ; when an input signal having a frequency of 100kHZ to 1000kHZ can pass through the two-port network, the obtained output parameters are 100kHZ to 1000 kHZ.
S103, judging whether the output parameters are matched with preset standard parameters or not.
The standard configuration parameters can be used for setting a matched NFC antenna for the mobile terminal when the mobile terminal is produced, the use parameters corresponding to the NFC antenna are standard configuration parameters, the mobile terminal can store the standard configuration parameters in advance, and one or more standard configuration parameters can be correspondingly set for one NFC antenna. For example, when the mobile terminal is provided with one NFC antenna, a plurality of calibration parameters may be stored, and the plurality of calibration parameters are the calibration parameters of the NFC antenna; when the mobile terminal is provided with a plurality of NFC antennas, a plurality of calibration parameters may be stored, and each calibration parameter may be a calibration parameter corresponding to each NFC antenna, or each NFC antenna in a part of NFC antennas corresponds to one calibration parameter, and each NFC antenna in another part of NFC antennas corresponds to a plurality of calibration parameters, and the like.
After the output parameter is obtained, it may be determined whether the output parameter matches a pre-stored standard parameter, for example, when the standard parameter is a numerical value, it may be determined whether the output parameter is consistent with the standard parameter, or, when the standard parameter is a numerical value interval, it may be determined whether the output parameter is located in the interval of the standard parameter, and so on.
And S104, if the output parameters are matched with the standard parameters, determining that the NFC antenna is the NFC antenna which is standard for the mobile terminal.
When the standard matching parameter is a numerical value, if the output parameter is consistent with the standard matching parameter, determining that the output parameter is matched with the standard matching parameter; or when the standard matching parameter is a numerical value interval, if the output parameter is located in the interval of the standard matching parameter, determining that the output parameter is matched with the standard matching parameter. When the output parameter is matched with the standard matching parameter, the NFC antenna can be determined to be the NFC antenna matched with the mobile terminal, and when the output parameter is not matched with the standard matching parameter, the NFC antenna can be determined not to be the NFC antenna matched with the mobile terminal.
The embodiment of the application can input the preset input signal into the input port of the dual-port network corresponding to the NFC antenna, then the output parameter output based on the input signal through the output port of the dual-port network is obtained, then whether the output parameter is matched with the preset standard matching parameter is judged, and at the moment, if the output parameter is matched with the standard matching parameter, the NFC antenna is determined to be the NFC antenna matched with the mobile terminal. Whether the NFC antenna used currently is a standard antenna or not can be accurately identified by the mobile terminal, so that the problems that the NFC function is abnormal due to the fact that the mobile terminal uses a non-standard NFC antenna and the NFC function is abnormal due to the fact that maintenance personnel mistakenly replace the NFC antenna during maintenance are avoided, convenience and reliability of the mobile terminal for detecting the near field communication antenna are improved, and convenience is brought to users.
The method for detecting an antenna according to the near field communication described in the above embodiments will be described in further detail below by way of example.
Referring to fig. 2, fig. 2 is another schematic flow chart of a method for detecting a nfc antenna according to an embodiment of the present disclosure. The method for detecting the near field communication antenna can be applied to a mobile terminal, and the mobile terminal can comprise a shell, wherein the shell is provided with an NFC antenna, for example, the shell of the mobile terminal can comprise a rear cover, and the NFC antenna can be arranged on the rear cover of the mobile terminal. This NFC antenna correspondence is provided with dual-port network etc. and this dual-port network is used for detecting this NFC antenna, and this dual-port network can carry out nimble setting according to actual need. For example, as shown in fig. 3, the dual-port network may include an input port for receiving an input signal, an output port, a ground port, and the like, wherein the output port may output a parameter corresponding to the processed input signal after the input signal is processed by the dual-port network.
As shown in fig. 2, the flow of the near field communication antenna detection method may be as follows:
s201, generating an input signal with a constant amplitude and a frequency varying from small to large.
The input signal may be a sine wave signal, a square wave signal, a cosine wave signal, a sawtooth wave signal, a triangular wave signal, or a ramp wave signal, the signal generator may generate an input signal with a constant amplitude and a frequency varying from small to large, and the input signal may be input to an input port of a dual-port network corresponding to the NFC antenna.
For example, as shown in fig. 4, the input signal may be a sine wave signal, the amplitudes of the sine wave signals corresponding to fig. 4(a), fig. 4(b), fig. 4(c), and the like are all consistent, that is, the amplitude is constant at the p value, the frequencies corresponding to fig. 4(a), fig. 4(b), fig. 4(c), and the like are changed from small to large, that is, the difference between f1 and f2 is smaller than the difference between f3 and f4, and the difference between f3 and f4 is smaller than the difference between f5 and f6, and the input signal with the constant amplitude and the frequency changed from small to large as shown in fig. 4(a) to fig. 4(c) may be obtained as a second time.
For another example, as shown in fig. 5, the input signal may be a sawtooth wave signal, the amplitudes of the corresponding sawtooth wave signals in fig. 5(a), fig. 5(b), fig. 5(c), and the like are all consistent, that is, the amplitude is constant at a p value, the corresponding frequencies in fig. 5(a), fig. 5(b), fig. 5(c), and the like are changed from small to large, that is, the difference between f1 and f2 is smaller than the difference between f3 and f4, and the difference between f3 and f4 is smaller than the difference between f5 and f6, and the input signal with constant amplitude and changing from small to large according to the frequencies in fig. 5(a) to fig. 5(c) can be obtained.
And S202, inputting the input signal into an input port of the dual-port network corresponding to the NFC antenna.
After the input signal is generated, the input signal can be input into the input port of the dual-port network corresponding to the NFC antenna, and when one NFC antenna needs to be detected, only the input signal needs to be input into the input port of the dual-port network corresponding to the NFC antenna. When a plurality of NFC antennas need to be detected, each NFC antenna may be provided with a corresponding dual-port network, at this time, a plurality of groups of input signals with frequencies varying from small to large and with constant amplitudes may be generated, and each group of input signals is input to the input port of the dual-port network corresponding to each NFC antenna.
And S203, attenuating the input signals in sequence through the dual-port network to obtain attenuated signals.
After the input signal is input into the dual-port network, the input signal may be attenuated by the dual-port network to obtain an attenuated signal, for example, when the input signal is 100kHZ, the input signal may be attenuated by the dual-port network to obtain an attenuated signal of 900kHZ or 800 kHZ.
And S204, obtaining the attenuated signal which is output through the output port of the dual-port network and is larger than a preset threshold value, and obtaining an output parameter.
In the attenuated signals obtained by attenuating the input signals through the dual-port network, only the attenuated signals larger than the preset threshold value can be output through the output port of the dual-port network, and the attenuated signals smaller than or equal to the preset threshold value cannot be output through the output port of the dual-port network. The preset threshold value may be flexibly set according to actual needs, and the signal after attenuation is greater than the preset threshold value, which indicates that the input signal is not attenuated much through the dual-port network, and indicates that the input signal can pass through the dual-port network, for example, the preset threshold value may be set to be 0.8 times or 0.9 times of the amplitude of the input signal.
For example, when only an input signal with a frequency greater than 600kHZ can pass through the dual-port network, the output parameter that can be obtained is greater than 600 kHZ; when an input signal having a frequency of 100kHZ to 1000kHZ can pass through the two-port network, output parameters of 500kHZ to 900kHZ may be acquired, or output parameters of 200kHZ to 800kHZ and the like may be acquired.
Because the obtained output parameter can be a frequency range, input signals with various frequencies (namely input signals with constant amplitude from small to large) can be input, and then, the input signals with which frequencies can be output through the output ports of the dual-port network are judged, so that the output parameter is obtained.
S205, judging whether the output parameters are matched with preset standard parameters or not; if yes, go to step S206; if not, go to step S207.
The standard configuration parameters can be used for setting a matched NFC antenna for the mobile terminal when the mobile terminal is produced, the use parameters corresponding to the NFC antenna are standard configuration parameters, the mobile terminal can store the standard configuration parameters in advance, and one or more standard configuration parameters can be correspondingly set for one NFC antenna. For example, when the mobile terminal is provided with one NFC antenna, a plurality of calibration parameters may be stored, and the plurality of calibration parameters are the calibration parameters of the NFC antenna; when the mobile terminal is provided with a plurality of NFC antennas, a plurality of calibration parameters may be stored, and each calibration parameter may be a calibration parameter corresponding to each NFC antenna, or each NFC antenna in a part of NFC antennas corresponds to one calibration parameter, and each NFC antenna in another part of NFC antennas corresponds to a plurality of calibration parameters, and the like.
For example, when the mobile terminal is produced or retrofitted, if the mobile terminal a is provided with the NFC antenna a, the NFC antenna a is correspondingly provided with the standard configuration parameter a, and at this time, the mobile terminal a may store the standard configuration parameter a in advance; when the mobile terminal B is provided with the NFC antenna B and the NFC antenna C, the NFC antenna B is correspondingly provided with the standard matching parameter B, and the NFC antenna C is correspondingly provided with the standard matching parameter C, the mobile terminal B may pre-store the standard matching parameter B and the matching parameter C; when the mobile terminal C is provided with the NFC antenna D, the NFC antenna D is correspondingly provided with the standard configuration parameter D and the standard configuration parameter E, and at this time, the mobile terminal B may store the standard configuration parameter D and the configuration parameter E in advance; and so on.
In some embodiments, the step of determining whether the output parameter matches the preset calibration parameter may include: judging whether the output parameters are positioned in the frequency interval of the standard parameters; when the output parameters are located in the frequency interval of the standard matching parameters, determining that the output parameters are matched with the standard matching parameters; and when the output parameter is not located in the frequency interval of the standard matching parameter, determining that the output parameter is not matched with the standard matching parameter.
Specifically, after the output parameter is obtained, it may be determined whether the output parameter matches a pre-stored standard matching parameter, for example, when the standard matching parameter is a numerical value, it may be determined whether the output parameter is consistent with the standard matching parameter, and if the output parameter is consistent with the standard matching parameter, it is determined that the output parameter matches the standard matching parameter; and if the output parameters are not consistent with the standard parameters, determining that the output parameters are not matched with the standard parameters. Or, when the standard matching parameter is a numerical value interval, judging whether the output parameter is located in the frequency interval of the standard matching parameter, and when the output parameter is located in the frequency interval of the standard matching parameter, determining that the output parameter is matched with the standard matching parameter; and when the output parameter is not located in the frequency interval of the standard matching parameter, determining that the output parameter is not matched with the standard matching parameter.
In some embodiments, when the calibration parameters include a plurality of parameters, the step of determining whether the output parameters match the preset calibration parameters may include: judging whether the output parameters are matched with a plurality of standard matching parameters or not; when the output parameter is matched with any one of the plurality of calibration parameters, determining that the output parameter is matched with the calibration parameter; when the output parameter does not match any of the plurality of calibration parameters, determining that the output parameter does not match the calibration parameter.
Since the calibration parameters may include a plurality of parameters, the output parameters are determined to match the calibration parameters as long as any one of the plurality of calibration parameters matches the output parameters. For example, the output parameter may be compared with a first one of the plurality of calibration parameters, and when the output parameter matches the first one, it is determined that the output parameter matches the calibration parameter, and at this time, it is not necessary to continue comparing the output parameter with other calibration parameters; when the output parameter is not matched with the first standard matching parameter, the output parameter is compared with the second standard matching parameter, when the output parameter is matched with the second standard matching parameter, the output parameter is determined to be matched with the standard matching parameter, and at the moment, the output parameter does not need to be continuously compared with other standard matching parameters; and when the output parameter is not matched with the second standard matching parameter, comparing the output parameter with the third standard matching parameter, and so on until the output parameter is determined to be matched with one of the standard matching parameters, or until the output parameter is compared with a plurality of standard matching parameters, thereby obtaining a judgment result.
And S206, determining that the NFC antenna is the NFC antenna which is matched with the mobile terminal.
When the standard matching parameter is a numerical value, if the output parameter is consistent with the standard matching parameter, determining that the output parameter is matched with the standard matching parameter; or when the standard matching parameter is a numerical value interval, if the output parameter is located in the interval of the standard matching parameter, determining that the output parameter is matched with the standard matching parameter. When the output parameter is matched with the calibration parameter, the NFC antenna can be determined to be the NFC antenna calibrated for the mobile terminal.
It should be noted that the mobile terminal may automatically detect the NFC antenna, or the user may trigger the start detection button in the detection interface according to the requirement, so that the mobile terminal generates the detection instruction and detects the NFC antenna according to the detection instruction. For example, as shown in fig. 6, when the detection result is that the NFC antenna is determined to be the NFC antenna that is standard for the mobile terminal, the mobile terminal may output relevant information that the NFC antenna of the mobile terminal is a standard antenna and the like in a form of characters in the display interface, or output relevant information that the NFC antenna of the mobile terminal is a standard antenna and the like in a form of voice broadcast.
For example, when the NFC antenna is disposed on the rear cover of the mobile terminal housing, there are 3 rear covers, where there are the dual-port network 1 and the NFC antenna 1 on the rear cover 1, there are the dual-port network 2 and the NFC antenna 2 on the rear cover 2, and there are the dual-port network 3 and the NFC antenna 3 on the rear cover 3, if the NFC antenna that the mobile terminal a is standard-matched is the NFC antenna 1, then the mobile terminal a closes the rear cover 1 and detects the NFC antenna, the output detection result is that the NFC antenna is the NFC antenna that the mobile terminal is standard-matched, and the mobile terminal a closes the rear cover 2 or the rear cover 3 and detects the NFC antenna, and the output detection result is that the NFC antenna is not the NFC antenna that the mobile terminal is standard-matched.
And S207, determining that the NFC antenna is not the NFC antenna which is matched with the mobile terminal, and outputting prompt information that the NFC antenna is not matched with the mobile terminal.
When the output parameter does not match the standard parameters, it may be determined that the NFC antenna is not a standard NFC antenna of the mobile terminal. At this moment, the mobile terminal may output the prompt information that the NFC antenna is not matched with the mobile terminal, for example, as shown in fig. 7, the mobile terminal may output the NFC antenna of the mobile terminal in a text form in the display interface as a non-standard configuration, and in order to ensure normal use of the NFC function, please timely replace the relevant prompt information such as the NFC antenna of the standard configuration, or output the prompt information such as the non-standard configuration of the NFC antenna and the mobile terminal in a voice broadcast form.
It should be noted that the mobile terminal may be preset with an antenna detection mode, when the antenna detection mode is turned on, the mobile terminal may input an input signal into an input port of the dual-port network corresponding to the NFC antenna, acquire an output parameter output based on the input signal through an output port of the dual-port network, then determine whether the output parameter matches a preset standard parameter, if so, determine that the NFC antenna is an NFC antenna standard-configured for the mobile terminal, and if not, determine that the NFC antenna is not an NFC antenna standard-configured for the mobile terminal.
The method and the device for generating the input signals can generate the input signals with the frequency changing from small to large and the amplitude being constant, the input signals are input into the input ports of the double-port network corresponding to the NFC antenna, then the input signals are attenuated through the double-port network in sequence to obtain attenuated signals, and then the attenuated signals which are output through the output ports of the double-port network based on the input signals and are larger than the preset threshold value are obtained to obtain the output parameters. And judging whether the output parameters are matched with preset standard parameters, if so, determining that the NFC antenna is the NFC antenna matched with the mobile terminal, and if not, determining that the NFC antenna is not the NFC antenna matched with the mobile terminal and outputting prompt information. Whether the NFC antenna used currently is a standard antenna or not can be accurately identified by the mobile terminal, so that the problems that the NFC function is abnormal due to the fact that the mobile terminal uses a non-standard NFC antenna and the NFC function is abnormal due to the fact that maintenance personnel mistakenly replace the NFC antenna during maintenance are avoided, convenience, reliability and flexibility of detection of the mobile terminal on the NFC antenna are improved, and convenience is brought to users.
In order to better implement the near field communication antenna detection method provided by the embodiment of the present application, the embodiment of the present application further provides a device based on the near field communication antenna detection method. The terms are the same as those in the above-mentioned near field communication antenna detection method, and specific implementation details may refer to the description in the method embodiment.
Referring to fig. 8, fig. 8 is a schematic structural diagram of a nfc antenna detection apparatus according to an embodiment of the present disclosure, wherein the nfc antenna detection apparatus 300 may include a signal input module 301, a parameter obtaining module 302, a determining module 303, a first determining module 304, and the like.
The signal input module 301 is configured to input a preset input signal into an input port of a dual-port network corresponding to the NFC antenna.
A parameter obtaining module 302, configured to obtain an output parameter output based on the input signal through an output port of the dual-port network.
The judging module 303 is configured to judge whether the output parameter matches a preset standard matching parameter.
The first determining module 304 is configured to determine that the NFC antenna is an NFC antenna calibrated for the mobile terminal if the output parameter matches the calibration parameter.
In some embodiments, as shown in fig. 9, the near field communication antenna detection apparatus further includes:
and the second determining module is used for determining that the NFC antenna is not the NFC antenna which is calibrated by the mobile terminal if the output parameter is not matched with the calibration parameter.
In some embodiments, as shown in fig. 9, the near field communication antenna detection apparatus further includes:
and the output module is used for outputting prompt information that the NFC antenna and the mobile terminal are not matched in a standard mode.
In some embodiments, the signal input module is specifically configured to: generating an input signal with constant amplitude and frequency varying from small to large; an input signal is input to an input port of a two-port network corresponding to the NFC antenna.
In some embodiments, the parameter obtaining module is specifically configured to: sequentially attenuating input signals with frequency changing from small to large and constant amplitude through a dual-port network to obtain attenuated signals; and acquiring the attenuated signals which are output through the output port of the dual-port network and are larger than a preset threshold value to obtain output parameters.
In some embodiments, the determining module is specifically configured to: judging whether the output parameters are positioned in the frequency interval of the standard parameters; when the output parameters are located in the frequency interval of the standard matching parameters, determining that the output parameters are matched with the standard matching parameters; and when the output parameter is not located in the frequency interval of the standard matching parameter, determining that the output parameter is not matched with the standard matching parameter.
In some embodiments, the determining module is specifically configured to: judging whether the output parameters are matched with a plurality of standard matching parameters or not; when the output parameter is matched with any one of the plurality of calibration parameters, determining that the output parameter is matched with the calibration parameter; when the output parameter does not match any of the plurality of calibration parameters, determining that the output parameter does not match the calibration parameter.
The above operations can be implemented in the foregoing embodiments, and are not described in detail herein.
In the embodiment of the application, the signal input module 301 may input a preset input signal into an input port of a dual-port network corresponding to the NFC antenna, the parameter obtaining module 302 obtains an output parameter output based on the input signal through an output port of the dual-port network, the determining module 303 determines whether the output parameter matches a preset standard parameter, and at this time, if the output parameter matches the standard parameter, the first determining module 304 may determine that the NFC antenna is an NFC antenna standard-matched to the mobile terminal. Whether the NFC antenna used currently is a standard antenna or not can be accurately identified by the mobile terminal, so that the problems that the NFC function is abnormal due to the fact that the mobile terminal uses a non-standard NFC antenna and the NFC function is abnormal due to the fact that maintenance personnel mistakenly replace the NFC antenna during maintenance are avoided, convenience and reliability of the mobile terminal for detecting the near field communication antenna are improved, and convenience is brought to users.
Referring to fig. 10, fig. 10 is another schematic structural diagram of a nfc antenna detection apparatus according to an embodiment of the present disclosure, where the nfc antenna detection apparatus 300 includes: one or more processors 400, a memory 500, and one or more applications, wherein the one or more applications are stored in the memory 500 and configured to be executed by the processors 400; the processor 400 may include a signal input module 301, a parameter obtaining module 302, a determining module 303, a first determining module 304, and the like.
The signal input module 301 is configured to input a preset input signal into an input port of a dual-port network corresponding to the NFC antenna.
A parameter obtaining module 302, configured to obtain an output parameter output based on the input signal through an output port of the dual-port network.
The judging module 303 is configured to judge whether the output parameter matches a preset standard matching parameter.
The first determining module 304 is configured to determine that the NFC antenna is an NFC antenna calibrated for the mobile terminal if the output parameter matches the calibration parameter.
In some embodiments, as shown in fig. 9, the near field communication antenna detection apparatus further includes:
and the second determining module is used for determining that the NFC antenna is not the NFC antenna which is calibrated by the mobile terminal if the output parameter is not matched with the calibration parameter.
In some embodiments, as shown in fig. 9, the near field communication antenna detection apparatus further includes:
and the output module is used for outputting prompt information that the NFC antenna and the mobile terminal are not matched in a standard mode.
In some embodiments, the signal input module is specifically configured to: generating an input signal with constant amplitude and frequency varying from small to large; an input signal is input to an input port of a two-port network corresponding to the NFC antenna.
In some embodiments, the parameter obtaining module is specifically configured to: sequentially attenuating input signals with frequency changing from small to large and constant amplitude through a dual-port network to obtain attenuated signals; and acquiring the attenuated signals which are output through the output port of the dual-port network and are larger than a preset threshold value to obtain output parameters.
In some embodiments, the determining module is specifically configured to: judging whether the output parameters are positioned in the frequency interval of the standard parameters; when the output parameters are located in the frequency interval of the standard matching parameters, determining that the output parameters are matched with the standard matching parameters; and when the output parameter is not located in the frequency interval of the standard matching parameter, determining that the output parameter is not matched with the standard matching parameter.
In some embodiments, the determining module is specifically configured to: judging whether the output parameters are matched with a plurality of standard matching parameters or not; when the output parameter is matched with any one of the plurality of calibration parameters, determining that the output parameter is matched with the calibration parameter; when the output parameter does not match any of the plurality of calibration parameters, determining that the output parameter does not match the calibration parameter.
The above operations can be implemented in the foregoing embodiments, and are not described in detail herein.
Fig. 11 shows a specific structural block diagram of a mobile terminal provided in an embodiment of the present invention, where the mobile terminal may be used to implement the near field communication antenna detection method provided in the foregoing embodiment. The mobile terminal 1200 may be a smart phone, a tablet computer, or the like. This mobile terminal 1200 includes the casing, is provided with the NFC antenna on the casing, and the NFC antenna corresponds and is provided with two port network etc..
As shown in fig. 11, the mobile terminal 1200 may include an RF (Radio Frequency) circuit 110, a memory 120 including one or more computer-readable storage media (only one shown), an input unit 130, a display unit 140, a sensor 150, an audio circuit 160, a transmission module 170, a processor 180 including one or more processing cores (only one shown), and a power supply 190. Those skilled in the art will appreciate that the mobile terminal 1200 configuration illustrated in fig. 11 does not constitute a limitation of the mobile terminal 1200, and may include more or fewer components than those illustrated, or some components in combination, or a different arrangement of components. Wherein:
the RF circuit 110 is used for receiving and transmitting electromagnetic waves, and performs interconversion between the electromagnetic waves and electrical signals, so as to communicate with a communication network or other devices. The RF circuitry 110 may include various existing circuit elements for performing these functions, such as an antenna, a radio frequency transceiver, a digital signal processor, an encryption/decryption chip, a Subscriber Identity Module (SIM) card, memory, and so forth. The RF circuitry 110 may communicate with various networks such as the internet, an intranet, a wireless network, or with other devices over a wireless network. The wireless network may comprise a cellular telephone network, a wireless local area network, or a metropolitan area network. The Wireless network may use various Communication standards, protocols, and technologies, including, but not limited to, Global System for Mobile Communication (GSM), Enhanced Data GSM Environment (EDGE), Wideband Code Division Multiple Access (WCDMA), Code Division Multiple Access (CDMA), Time Division Multiple Access (TDMA), Wireless Fidelity (Wi-Fi) (e.g., Institute of Electrical and Electronics Engineers (IEEE) standard IEEE802.11 a, IEEE802.11 b, IEEE802.11g, and/or IEEE802.11 n), Voice over Internet Protocol (VoIP), world wide mail Access (Microwave Access for micro), wimax-1, other suitable short message protocols, and any other suitable Protocol for instant messaging, and may even include those protocols that have not yet been developed.
The memory 120 may be configured to store software programs and modules, such as program instructions/modules of the NFC antenna detection method in the above-described embodiments, and the processor 180 executes various functional applications and data processing by executing the software programs and modules stored in the memory 120, so as to implement the NFC antenna detection function. Memory 120 may include high speed random access memory and may also include non-volatile memory, such as one or more magnetic storage devices, flash memory, or other non-volatile solid-state memory. In some examples, memory 120 may further include memory located remotely from processor 180, which may be connected to mobile terminal 1200 via a network. Examples of such networks include, but are not limited to, the internet, intranets, local area networks, mobile communication networks, and combinations thereof.
The input unit 130 may be used to receive input numeric or character information and generate keyboard, mouse, joystick, optical or trackball signal inputs related to user settings and function control. In particular, the input unit 130 may include a touch-sensitive surface 131 as well as other input devices 132. The touch-sensitive surface 131, also referred to as a touch display screen or a touch pad, may collect touch operations by a user on or near the touch-sensitive surface 131 (e.g., operations by a user on or near the touch-sensitive surface 131 using a finger, a stylus, or any other suitable object or attachment), and drive the corresponding connection device according to a predetermined program. Alternatively, the touch sensitive surface 131 may comprise two parts, a touch detection means and a touch controller. The touch detection device detects the touch direction of a user, detects a signal brought by touch operation and transmits the signal to the touch controller; the touch controller receives touch information from the touch sensing device, converts the touch information into touch point coordinates, sends the touch point coordinates to the processor 180, and can receive and execute commands sent by the processor 180. Additionally, the touch-sensitive surface 131 may be implemented using various types of resistive, capacitive, infrared, and surface acoustic waves. In addition to the touch-sensitive surface 131, the input unit 130 may also include other input devices 132. In particular, other input devices 132 may include, but are not limited to, one or more of a physical keyboard, function keys (such as volume control keys, switch keys, etc.), a trackball, a mouse, a joystick, and the like.
The display unit 140 may be used to display information input by or provided to the user and various graphic user interfaces of the mobile terminal 1200, which may be configured by graphics, text, icons, video, and any combination thereof. The Display unit 140 may include a Display panel 141, and optionally, the Display panel 141 may be configured in the form of an LCD (Liquid Crystal Display), an OLED (Organic Light-Emitting Diode), or the like. Further, the touch-sensitive surface 131 may cover the display panel 141, and when a touch operation is detected on or near the touch-sensitive surface 131, the touch operation is transmitted to the processor 180 to determine the type of the touch event, and then the processor 180 provides a corresponding visual output on the display panel 141 according to the type of the touch event. Although in FIG. 11, touch-sensitive surface 131 and display panel 141 are shown as two separate components to implement input and output functions, in some embodiments, touch-sensitive surface 131 may be integrated with display panel 141 to implement input and output functions.
The mobile terminal 1200 may also include at least one sensor 150, such as a light sensor, a motion sensor, and other sensors. Specifically, the light sensor may include an ambient light sensor that may adjust the brightness of the display panel 141 according to the brightness of ambient light, and a proximity sensor that may turn off the display panel 141 and/or the backlight when the mobile terminal 1200 is moved to the ear. As one of the motion sensors, the gravity acceleration sensor can detect the magnitude of acceleration in each direction (generally, three axes), can detect the magnitude and direction of gravity when the mobile phone is stationary, and can be used for applications of recognizing the posture of the mobile phone (such as horizontal and vertical screen switching, related games, magnetometer posture calibration), vibration recognition related functions (such as pedometer and tapping), and the like; as for other sensors such as a gyroscope, a barometer, a hygrometer, a thermometer, and an infrared sensor, which may be further configured in the mobile terminal 1200, detailed descriptions thereof are omitted.
Audio circuitry 160, speaker 161, and microphone 162 may provide an audio interface between a user and mobile terminal 1200. The audio circuit 160 may transmit the electrical signal converted from the received audio data to the speaker 161, and convert the electrical signal into a sound signal for output by the speaker 161; on the other hand, the microphone 162 converts the collected sound signal into an electric signal, converts the electric signal into audio data after being received by the audio circuit 160, and then outputs the audio data to the processor 180 for processing, and then to the RF circuit 110 to be transmitted to, for example, another terminal, or outputs the audio data to the memory 120 for further processing. The audio circuitry 160 may also include an earbud jack to provide communication of peripheral headphones with the mobile terminal 1200.
The mobile terminal 1200, which may assist the user in e-mail, web browsing, and streaming media access through the transmission module 170 (e.g., Wi-Fi module), provides the user with wireless broadband internet access. Although fig. 11 shows the transmission module 170, it is understood that it does not belong to the essential constitution of the mobile terminal 1200, and may be omitted entirely as needed within the scope not changing the essence of the invention.
The processor 180 is a control center of the mobile terminal 1200, connects various parts of the entire mobile phone using various interfaces and lines, and performs various functions of the mobile terminal 1200 and processes data by operating or executing software programs and/or modules stored in the memory 120 and calling data stored in the memory 120, thereby integrally monitoring the mobile phone. Optionally, processor 180 may include one or more processing cores; in some embodiments, the processor 180 may integrate an application processor, which primarily handles operating systems, user interfaces, applications, etc., and a modem processor, which primarily handles wireless communications. It will be appreciated that the modem processor described above may not be integrated into the processor 180.
The mobile terminal 1200 also includes a power supply 190 (e.g., a battery) that powers the various components and, in some embodiments, may be logically coupled to the processor 180 via a power management system that may be used to manage charging, discharging, and power consumption management functions. The power supply 190 may also include any component including one or more of a dc or ac power source, a recharging system, a power failure detection circuit, a power converter or inverter, a power status indicator, and the like.
Although not shown, the mobile terminal 1200 may further include a camera (e.g., a front camera, a rear camera), a bluetooth module, and the like, which are not described in detail herein. Specifically in this embodiment, the display unit 140 of the mobile terminal 1200 is a touch screen display, the mobile terminal further includes a memory 120, and one or more programs, wherein the one or more programs are stored in the memory 120 and configured to be executed by the one or more processors 180, the one or more programs including computer programs for:
inputting a preset input signal into an input port of a dual-port network corresponding to the NFC antenna; acquiring output parameters output based on input signals through an output port of the dual-port network; judging whether the output parameters are matched with preset standard parameters or not; and if the output parameters are matched with the standard parameters, determining that the NFC antenna is the NFC antenna which is standard for the mobile terminal.
In some embodiments, after the step of determining whether the output parameter matches the preset standard matching parameter, the method for detecting a near field communication antenna further includes: and if the output parameters are not matched with the standard parameters, determining that the NFC antenna is not the NFC antenna which is standard for the mobile terminal.
In some embodiments, after the step of determining that the NFC antenna is not an NFC antenna configured for the mobile terminal, the near field communication antenna detection method further includes: and outputting prompt information of the non-standard matching of the NFC antenna and the mobile terminal.
In some embodiments, the step of inputting the preset input signal into the input port of the two-port network corresponding to the NFC antenna includes: generating an input signal with constant amplitude and frequency varying from small to large; an input signal is input to an input port of a two-port network corresponding to the NFC antenna.
In some embodiments, the step of obtaining output parameters output based on the input signal via the output port of the dual port network comprises: sequentially attenuating input signals with frequency changing from small to large and constant amplitude through a dual-port network to obtain attenuated signals; and acquiring the attenuated signals which are output through the output port of the dual-port network and are larger than a preset threshold value to obtain output parameters.
In some embodiments, the step of determining whether the output parameter matches the preset standard parameter includes: judging whether the output parameters are positioned in the frequency interval of the standard parameters; when the output parameters are located in the frequency interval of the standard matching parameters, determining that the output parameters are matched with the standard matching parameters; and when the output parameter is not located in the frequency interval of the standard matching parameter, determining that the output parameter is not matched with the standard matching parameter.
In some embodiments, when the calibration parameters include a plurality of parameters, the step of determining whether the output parameters match the preset calibration parameters includes: judging whether the output parameters are matched with a plurality of standard matching parameters or not; when the output parameter is matched with any one of the plurality of calibration parameters, determining that the output parameter is matched with the calibration parameter; when the output parameter does not match any of the plurality of calibration parameters, determining that the output parameter does not match the calibration parameter.
In the above embodiments, the descriptions of the respective embodiments have respective emphasis, and parts that are not described in detail in a certain embodiment may refer to the above detailed description of the near field communication antenna detection method, and are not described again here.
It will be understood by those skilled in the art that all or part of the steps of the methods of the above embodiments may be performed by a computer program, which may be stored in a computer-readable storage medium and loaded and executed by a processor, or by related hardware controlled by the computer program.
To this end, the present application provides a storage medium, in which a computer program is stored, where the computer program can be loaded by a processor to execute the steps in any one of the near field communication antenna detection methods provided in the embodiments of the present application. For example, the computer program may perform the steps of:
inputting a preset input signal into an input port of a dual-port network corresponding to the NFC antenna; acquiring output parameters output based on input signals through an output port of the dual-port network; judging whether the output parameters are matched with preset standard parameters or not; and if the output parameters are matched with the standard parameters, determining that the NFC antenna is the NFC antenna which is standard for the mobile terminal.
The above operations can be implemented in the foregoing embodiments, and are not described in detail herein.
Wherein the storage medium may include: read Only Memory (ROM), Random Access Memory (RAM), magnetic or optical disks, and the like.
Since the computer program stored in the storage medium can execute the steps in any near field communication antenna detection method provided in the embodiments of the present application, beneficial effects that can be achieved by any near field communication antenna detection method provided in the embodiments of the present application can be achieved, which are detailed in the foregoing embodiments and will not be described herein again.
The foregoing describes in detail a method, an apparatus, a mobile terminal, and a storage medium for detecting a near field communication antenna provided in an embodiment of the present application, and a specific example is applied in the present application to explain the principle and the implementation of the present application, and the description of the foregoing embodiment is only used to help understand the method and the core idea of the present application; meanwhile, for those skilled in the art, according to the idea of the present application, there may be variations in the specific embodiments and the application scope, and in summary, the content of the present specification should not be construed as a limitation to the present application.

Claims (9)

1. The near field communication antenna detection method is applied to a mobile terminal, the mobile terminal comprises a shell, a Near Field Communication (NFC) antenna is arranged on the shell and correspondingly provided with a dual-port network, and the near field communication antenna detection method comprises the following steps:
inputting a preset input signal into an input port of a two-port network corresponding to the NFC antenna;
acquiring output parameters output by the output port of the dual-port network based on the input signals;
judging whether the output parameters are matched with preset standard parameters or not;
if the output parameters are matched with the standard parameters, determining that the NFC antenna is the NFC antenna which is standard for the mobile terminal;
and if the output parameters are not matched with the standard parameters, determining that the NFC antenna is not the NFC antenna which is standard for the mobile terminal.
2. The method of claim 1, wherein after the step of determining that the NFC antenna is not a standard NFC antenna of the mobile terminal, the method further comprises:
and outputting prompt information that the NFC antenna is not matched with the mobile terminal in a standard mode.
3. The method for detecting an NFC antenna according to claim 1, wherein the step of inputting a preset input signal to an input port of a two-port network corresponding to the NFC antenna includes:
generating an input signal with constant amplitude and frequency varying from small to large;
and inputting the input signal into an input port of a two-port network corresponding to the NFC antenna.
4. The near field communication antenna detection method of claim 3, wherein the step of obtaining the output parameter output based on the input signal through the output port of the two-port network comprises:
sequentially attenuating the input signals with the frequency changing from small to large and constant amplitude through the dual-port network to obtain attenuated signals;
and acquiring the attenuated signals which are output through the output port of the dual-port network and are larger than a preset threshold value, and acquiring output parameters.
5. The NFC antenna detection method according to any one of claims 1 to 4, wherein the step of determining whether the output parameter matches a preset standard parameter comprises:
judging whether the output parameters are positioned in the frequency interval of the standard parameters or not;
when the output parameters are located in the frequency interval of the standard parameters, determining that the output parameters are matched with the standard parameters;
and when the output parameter is not located in the frequency interval of the standard matching parameter, determining that the output parameter is not matched with the standard matching parameter.
6. The NFC antenna detection method according to any one of claims 1 to 4, wherein when the calibration parameters include a plurality of parameters, the step of determining whether the output parameters match preset calibration parameters includes:
judging whether the output parameters are matched with a plurality of standard matching parameters or not;
when the output parameter is matched with any one of a plurality of calibration parameters, determining that the output parameter is matched with the calibration parameter;
and when the output parameter is not matched with any one of the plurality of calibration parameters, determining that the output parameter is not matched with the calibration parameter.
7. The utility model provides a near field communication antenna detection device, its characterized in that, near field communication antenna detection device is applied to mobile terminal, mobile terminal includes the casing, be provided with near field communication NFC antenna on the casing, the NFC antenna correspondence is provided with the dual-port network, near field communication antenna detection device includes:
the signal input module is used for inputting a preset input signal into an input port of the dual-port network corresponding to the NFC antenna;
a parameter obtaining module for obtaining an output parameter output based on the input signal through an output port of the dual port network;
the judging module is used for judging whether the output parameters are matched with preset standard matching parameters or not;
the first determining module is used for determining that the NFC antenna is the NFC antenna which is calibrated by the mobile terminal if the output parameters are matched with the calibration parameters;
and the second determining module is used for determining that the NFC antenna is not the NFC antenna which is calibrated by the mobile terminal if the output parameter is not matched with the calibration parameter.
8. A mobile terminal characterized by comprising a processor and a memory, the memory having stored therein a computer program, the processor executing the near field communication antenna detection method of any of claims 1 to 6 when calling the computer program in the memory.
9. A storage medium, characterized in that the storage medium stores a computer program adapted to be loaded by a processor for performing the steps in the near field communication antenna detection method of any of claims 1 to 6.
CN201811467868.7A 2018-12-03 2018-12-03 Near field communication antenna detection method and device, mobile terminal and storage medium Active CN109639370B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201811467868.7A CN109639370B (en) 2018-12-03 2018-12-03 Near field communication antenna detection method and device, mobile terminal and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201811467868.7A CN109639370B (en) 2018-12-03 2018-12-03 Near field communication antenna detection method and device, mobile terminal and storage medium

Publications (2)

Publication Number Publication Date
CN109639370A CN109639370A (en) 2019-04-16
CN109639370B true CN109639370B (en) 2021-09-03

Family

ID=66070824

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201811467868.7A Active CN109639370B (en) 2018-12-03 2018-12-03 Near field communication antenna detection method and device, mobile terminal and storage medium

Country Status (1)

Country Link
CN (1) CN109639370B (en)

Families Citing this family (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110636526B (en) * 2019-09-27 2023-10-24 Tcl移动通信科技(宁波)有限公司 NFC communication detection method, NFC communication detection device, computer-readable storage medium and terminal
CN111093124B (en) * 2019-12-13 2022-02-18 苏州浪潮智能科技有限公司 Abnormity positioning method and device, backbone network switch and readable storage medium
CN115580322B (en) * 2022-11-18 2023-03-24 北京紫光青藤微系统有限公司 Method and apparatus for detecting failure, near field communication apparatus, and storage medium

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103340009A (en) * 2010-11-26 2013-10-02 惟动无线有限公司 Multi-mode communications system for a mobile phone
CN105049634A (en) * 2015-08-19 2015-11-11 Tcl移动通信科技(宁波)有限公司 Battery mobile terminal based on NFC recognition and recognition method
CN106597127A (en) * 2016-12-12 2017-04-26 电子科技大学 NFC (near field communication) antenna performance test system

Family Cites Families (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US9124302B2 (en) * 2012-10-11 2015-09-01 Qualcomm Incorporated Carrier frequency variation for device detection in near-field communications
US9819394B2 (en) * 2013-04-29 2017-11-14 MEDIATEX Singapore Pte. Ltd. Method for controlling an antenna network quality factor of a near field communication device without changing matching network, and associated apparatus

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103340009A (en) * 2010-11-26 2013-10-02 惟动无线有限公司 Multi-mode communications system for a mobile phone
CN105049634A (en) * 2015-08-19 2015-11-11 Tcl移动通信科技(宁波)有限公司 Battery mobile terminal based on NFC recognition and recognition method
CN106597127A (en) * 2016-12-12 2017-04-26 电子科技大学 NFC (near field communication) antenna performance test system

Also Published As

Publication number Publication date
CN109639370A (en) 2019-04-16

Similar Documents

Publication Publication Date Title
CN106778707B (en) Fingerprint identification method, display screen and mobile terminal
US11868604B2 (en) Display processing method and apparatus
CN106293308B (en) Screen unlocking method and device
CN106445596B (en) Method and device for managing setting items
CN105653220B (en) Screen data display method and device in remote control
WO2018166204A1 (en) Method for controlling fingerprint recognition module, and mobile terminal and storage medium
CN107219951B (en) Touch screen control method and device, storage medium and terminal equipment
WO2019047862A1 (en) Fingerprint acquisition method and terminal device and storage medium
WO2018161540A1 (en) Fingerprint registration method and related product
CN109639370B (en) Near field communication antenna detection method and device, mobile terminal and storage medium
CN107066090B (en) Method for controlling fingerprint identification module and mobile terminal
CN109714476B (en) Data processing method and device, mobile terminal and storage medium
CN108196663B (en) Face recognition method and mobile terminal
CN107066374B (en) Data processing method and mobile terminal
CN107423598B (en) Unlocking control method and mobile terminal
CN109857305B (en) Input response method and mobile terminal
CN109688611B (en) Frequency band parameter configuration method, device, terminal and storage medium
CN111064847B (en) False touch prevention method and device, storage medium and electronic equipment
CN109600514B (en) Unlocking control method and device, mobile terminal and storage medium
CN111045737A (en) Equipment identifier acquisition method and device, terminal equipment and storage medium
CN108304709B (en) Face unlocking method and related product
CN112486350B (en) Detection method and device for touch screen of mobile terminal, storage medium and mobile terminal
CN110851014B (en) Touch recognition method and device, storage medium and terminal equipment
CN110086508B (en) Voltage adjusting method, system, storage medium and mobile terminal
CN108646928B (en) Character input method and terminal equipment

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
TR01 Transfer of patent right

Effective date of registration: 20221122

Address after: 518052 No.808-B051, Qianhai Xiangbin Building, No. 18, Zimao West Street, Nanshan Street, Qianhai Shenzhen Hong Kong Cooperation Zone, Shenzhen, Guangdong

Patentee after: Shenzhen Meikai Innovation Technology Co.,Ltd.

Address before: 516006 Zhongkai hi tech Zone, Huizhou, Guangdong, 86 Chang seven Road West

Patentee before: HUIZHOU TCL MOBILE COMMUNICATION Co.,Ltd.

TR01 Transfer of patent right