CN108594952B - Method for resisting charging interference and terminal equipment - Google Patents

Method for resisting charging interference and terminal equipment Download PDF

Info

Publication number
CN108594952B
CN108594952B CN201810378366.0A CN201810378366A CN108594952B CN 108594952 B CN108594952 B CN 108594952B CN 201810378366 A CN201810378366 A CN 201810378366A CN 108594952 B CN108594952 B CN 108594952B
Authority
CN
China
Prior art keywords
power adapter
mode noise
frequency
common mode
noise intensity
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
CN201810378366.0A
Other languages
Chinese (zh)
Other versions
CN108594952A (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.)
Vivo Mobile Communication Co Ltd
Original Assignee
Vivo 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 Vivo Mobile Communication Co Ltd filed Critical Vivo Mobile Communication Co Ltd
Priority to CN201810378366.0A priority Critical patent/CN108594952B/en
Publication of CN108594952A publication Critical patent/CN108594952A/en
Application granted granted Critical
Publication of CN108594952B publication Critical patent/CN108594952B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F1/00Details not covered by groups G06F3/00 - G06F13/00 and G06F21/00
    • G06F1/16Constructional details or arrangements
    • G06F1/18Packaging or power distribution
    • G06F1/181Enclosures
    • G06F1/182Enclosures with special features, e.g. for use in industrial environments; grounding or shielding against radio frequency interference [RFI] or electromagnetical interference [EMI]
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06VIMAGE OR VIDEO RECOGNITION OR UNDERSTANDING
    • G06V40/00Recognition of biometric, human-related or animal-related patterns in image or video data
    • G06V40/10Human or animal bodies, e.g. vehicle occupants or pedestrians; Body parts, e.g. hands
    • G06V40/12Fingerprints or palmprints
    • G06V40/13Sensors therefor

Landscapes

  • Engineering & Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • Theoretical Computer Science (AREA)
  • Human Computer Interaction (AREA)
  • General Physics & Mathematics (AREA)
  • Electromagnetism (AREA)
  • Computer Hardware Design (AREA)
  • Power Engineering (AREA)
  • General Engineering & Computer Science (AREA)
  • Multimedia (AREA)
  • Power Sources (AREA)
  • Charge And Discharge Circuits For Batteries Or The Like (AREA)

Abstract

The embodiment of the invention provides a method for resisting charging interference and terminal equipment, wherein the method for resisting charging interference comprises the following steps: when the power adapter charges the terminal equipment, acquiring a first common mode noise intensity generated by the power adapter under the current scanning frequency of the fingerprint module; judging whether the first common mode noise intensity is larger than a preset common mode noise intensity; when the first common mode noise intensity is greater than the preset common mode noise intensity, the switching frequency of the power adapter or the scanning frequency of the fingerprint module are adjusted to reduce the interference of the power adapter on the fingerprint module. According to the scheme, the problem of common-mode interference of the fingerprint module caused by charging of the terminal equipment is solved, the problem of unlocking failure of the fingerprint module caused by charging of the terminal equipment in the conventional method is solved, and the user experience effect is improved.

Description

Method for resisting charging interference and terminal equipment
Technical Field
The present invention relates to the field of communications technologies, and in particular, to a method and a terminal device for preventing charging interference.
Background
The fingerprint has been widely used due to its uniqueness, invariance throughout the life, and convenience in collection, and especially with the importance of people on information security, the fingerprint module has become the standard of terminal equipment (such as mobile phones, tablets, and notebooks).
As is well known, mobile terminal products such as mobile phones consume much power, and therefore need to be charged frequently. The power adapter is generally a switch charger, and in the charging process, the switching frequency of the switch charger is about 20 kHz-100 kHz, and the generated harmonic electromagnetic interference is large. When the harmonic frequency is overlapped with or close to the scanning frequency (about 200 kHz-1.7 MHz) of the fingerprint module, the broadband common mode noise generated by the power adapter can generate electromagnetic interference on the fingerprint module, and the collection quality of a fingerprint image is directly influenced, so that the fingerprint identification rate of the mobile terminal is reduced, and even the problems of unlocking failure, authentication failure and the like are caused. With the wide application trend of large-current quick charging, the amplitude of the common-mode noise generated by the power adapter is increased due to the increase of the charging current, which will result in further enhancement of the charging electromagnetic interference on the fingerprint module.
When the power adapter charges the terminal equipment, common mode noise can interfere with a fingerprint module of the mobile terminal and cause unlocking failure of the fingerprint module, and the like. Specifically, the existing solutions have the following problems:
(1) and improving the fingerprint image acquisition frame number. The method has the following problems that firstly, the acquisition frame number of the fingerprint image is increased, the unlocking time is increased, the system blockage feeling is caused to a user, and the unlocking experience of the user is influenced; secondly, a new problem is introduced, for example, increasing the frequency of a Serial Peripheral Interface (SPI) for increasing the transmission speed of the fingerprint image may cause a risk of excessive FIFO (First Input First Output) overflow for storing the fingerprint image data.
(2) Prompting the user to switch to a gesture or password login. This is a compromise alternative solution, resulting in users not enjoying the information privacy brought by fingerprint unlocking, which is unacceptable for user groups with high information security requirements.
Disclosure of Invention
The embodiment of the invention provides a charging interference resisting method and terminal equipment, and aims to solve the problem that unlocking failure of a fingerprint module is caused when the terminal equipment is charged in the prior art when the problem that unlocking failure of the fingerprint module is caused when the terminal equipment is charged is solved or solved.
In order to solve the above technical problem, according to an aspect of an embodiment of the present invention, there is provided a method for resisting charging interference, including:
when the power adapter charges the terminal equipment, acquiring a first common mode noise intensity generated by the power adapter under the current scanning frequency of the fingerprint module;
judging whether the first common mode noise intensity is larger than a preset common mode noise intensity;
when the first common mode noise intensity is larger than the preset common mode noise intensity, the switching frequency of the power adapter or the scanning frequency of the fingerprint module is adjusted to reduce the interference of the power adapter on the fingerprint module.
According to another aspect of the embodiments of the present invention, there is also provided a terminal device, including:
the acquisition module is used for acquiring a first common mode noise intensity generated by the power adapter under the current scanning frequency of the fingerprint module when the power adapter charges the terminal equipment, wherein the power adapter charges the terminal equipment;
the judging module is used for judging whether the first common-mode noise intensity is larger than a preset common-mode noise intensity;
and the adjusting module is used for adjusting the switching frequency of the power adapter or the scanning frequency of the fingerprint module when the first common-mode noise intensity is greater than the preset common-mode noise intensity so as to reduce the interference of the power adapter on the fingerprint module.
According to still another aspect of the embodiments of the present invention, there is also provided a terminal device, including: a processor, a memory and a computer program stored on the memory and executable on the processor, which computer program, when executed by the processor, carries out the steps of the method of combating charging interference as described above.
The embodiment of the invention has the following beneficial effects:
in the embodiment of the invention, by acquiring the first common mode noise intensity generated by the power adapter at the current scanning frequency of the fingerprint module, when the first common mode noise intensity is greater than the preset common mode noise intensity, the switching frequency of the power adapter or the scanning frequency of the fingerprint module is adjusted to reduce the interference of the power adapter on the fingerprint module, so that the problem of common mode interference of the fingerprint module caused by the terminal equipment during charging is solved, the problem of unlocking failure of the fingerprint module caused by the conventional method during charging of the terminal equipment is further solved, and the user experience effect is improved.
Drawings
Fig. 1 is a flowchart of a method for preventing charging interference according to an embodiment of the present invention;
fig. 2 is a flowchart of another method for preventing charging interference according to an embodiment of the present invention;
fig. 3 is a flowchart of another method for preventing charging interference according to an embodiment of the present invention;
fig. 4 is a flowchart of another method for preventing charging interference according to an embodiment of the present invention;
fig. 5 is a flowchart of another method for preventing charging interference according to an embodiment of the present invention;
fig. 6 is a schematic structural diagram of a terminal device according to an embodiment of the present invention;
fig. 7 is a schematic structural diagram of another terminal device according to an embodiment of the present invention;
fig. 8 is a schematic structural diagram of another terminal device according to an embodiment of the present invention;
fig. 9 is a schematic structural diagram of another terminal device according to an embodiment of the present invention;
fig. 10 is a schematic structural diagram of another terminal device according to an embodiment of the present invention.
Detailed Description
In order to make the technical problems, technical solutions and advantages of the present invention more apparent, the following detailed description is given with reference to the accompanying drawings and specific embodiments.
The terms first, second and the like in the description and in the claims of the present invention are used for distinguishing between similar elements and not necessarily for describing a particular sequential or chronological order. It is to be understood that the data so used is interchangeable under appropriate circumstances such that the embodiments of the invention described herein are, for example, capable of operation in sequences other than those illustrated or otherwise described herein.
Through analysis, common mode harmonic noise generated by the power adapter when the terminal equipment is charged is the root cause of unlocking failure of the fingerprint module. In order to ensure that the fingerprint module is smoothly unlocked in the charging process, the embodiment of the invention provides a method for resisting charging interference, and the method is suitable for all electronic equipment with the fingerprint module which needs to be charged. Fig. 1 is a flowchart of a method for preventing charging interference according to an embodiment of the present invention, and referring to fig. 1, the method for preventing charging interference includes the following steps:
step 101: when the power adapter charges for terminal equipment, acquire the produced first common mode noise intensity of power adapter under the current scanning frequency of fingerprint module.
Common mode noise, also known as asymmetric noise or line-to-ground noise, is present at the input (power line and neutral line) of electrical equipment (e.g., terminal equipment) using an ac power source, and the strength of the common mode noise is used to indicate the magnitude of the common mode noise.
In the embodiment of the invention, the power adapter is connected to the terminal equipment and charges the terminal equipment. When the terminal equipment is charged through the accessed power adapter, the power adapter can generate a first common mode noise intensity under the current scanning frequency of the fingerprint module. The first common mode noise intensity is used for representing the size of the common mode noise generated by the power adapter at the current scanning frequency of the fingerprint module.
Step 102: judging whether the first common mode noise intensity is larger than a preset common mode noise intensity; if the first common mode noise intensity is greater than the preset common mode noise intensity, executing step 103; otherwise, the flow ends.
It should be noted that the preset common mode noise strength may be set according to a specific application scenario, and the embodiment of the present invention does not specifically limit the preset common mode noise strength.
Step 103: the switching frequency of adjustment power adapter or the scanning frequency of fingerprint module to reduce the interference that power adapter produced the fingerprint module.
In the embodiment of the invention, various ways can be adopted for reducing the interference of the power adapter on the fingerprint module. For example, if the power adapter is standard, the interference of the power adapter to the fingerprint module can be reduced by adjusting the switching frequency of the power adapter, a test-completed fingerprint module and power adapter frequency compatible combination table can be built in before delivery, and when the fingerprint module works in a charging state, the switching frequency of the power adapter can be quickly selected and adjusted according to the table, so that the problem of the charging interference is avoided. If the power adapter is not standard-matched, the interference of the power adapter to the fingerprint module can be reduced by adjusting the scanning frequency of the fingerprint module, the terminal equipment can automatically detect the intensity of the common-mode noise generated by the power adapter under different scanning frequencies of the fingerprint module, and select a scanning frequency which has no interference or minimum interference to the fingerprint module, which is certainly not limited thereto.
In the embodiment of the invention, the first common mode noise intensity generated by the power adapter under the current scanning frequency of the fingerprint module is obtained, and when the first common mode noise intensity is greater than the preset common mode noise intensity, the switching frequency of the power adapter or the scanning frequency of the fingerprint module is adjusted, so that the interference of the power adapter on the fingerprint module is reduced, the problem of common mode interference of the fingerprint module caused by terminal equipment during charging is solved, the problem of unlocking failure of the fingerprint module caused by the conventional method during charging of the terminal equipment is solved, and the user experience effect is improved.
In the embodiment of the invention, the switching frequency of the power adapter or the scanning frequency of the fingerprint module can be selectively adjusted according to whether the power adapter is standard, so that the interference of the power adapter on the fingerprint module is reduced. Referring to fig. 2, another method for preventing charging interference is further provided in the embodiments of the present invention, where the method for preventing charging interference includes the following steps:
step 201: when the power adapter charges for terminal equipment, acquire the produced first common mode noise intensity of power adapter under the current scanning frequency of fingerprint module.
The power adapter charges the terminal equipment, and the first common-mode noise intensity is used for representing the size of the common-mode noise generated by the power adapter under the current scanning frequency of the fingerprint module.
Step 202; judging whether the first common mode noise intensity is larger than a preset common mode noise intensity; if the first common mode noise intensity is greater than the preset common mode noise intensity, executing step 203; otherwise, the flow ends.
Step 203: judging whether the power adapter is standard; if the power adapter is standard, go to step 204; otherwise, step 205 is performed.
In the embodiment of the invention, when the terminal device judges whether the power adapter is standard, the terminal device can judge by sending the indication information to the power adapter. Specifically, step 203 may include:
sending an inquiry instruction to the power adapter, wherein the inquiry instruction is used for indicating the power adapter to reply the identification information of the power adapter to the terminal equipment;
and judging whether the power adapter is standard or not according to whether the identification information of the power adapter is received or not and whether the received identification information is consistent with preset identification information or not.
When the identification information of the power adapter is received and the received identification information is consistent with the preset identification information, determining that the power adapter is standard matching; and when the identification information of the power adapter is not received, or the received identification information of the power adapter is inconsistent with the preset identification information, determining that the power adapter is not standard.
In the embodiment of the present invention, the identification information of the power adapter may be an Identity identification number (ID), the ID is a unique identification number that is built in when the power adapter leaves a factory, and the ID may be formed by combining contents such as numbers and letters.
In the embodiment of the present invention, there are various ways to determine whether the power adapter is standard, and the above description of the manner of determining whether the power adapter is standard is only an example and is not limited.
Step 204: the switching frequency of the power adapter is adjusted.
Step 205: adjust the scanning frequency of fingerprint module.
Optionally, after determining whether the power adapter is standard, the method for resisting charging interference further includes the following steps:
if the power adapter is not standard, displaying first prompt information on a screen of the terminal device, wherein the first prompt information is used for prompting a user that the current power adapter is not standard, and suggesting to be replaced by the standard power adapter.
In the embodiment of the invention, whether the power adapter is standard or not is judged, and if the power adapter is standard, the switching frequency of the power adapter is adjusted; if the power adapter is not standard, the scanning frequency of the fingerprint module is adjusted, so that the anti-charging interference capability of the fingerprint module can be effectively enhanced, and the user experience is improved; meanwhile, the method for resisting charging interference of the embodiment of the invention respectively provides corresponding solutions for two scenes of whether the power adapter used by the user is standard or not, and has strong adaptability.
Referring to fig. 3, another method for preventing charging interference is further provided in the embodiments of the present invention, in which the method for preventing charging interference reduces interference generated by the power adapter to the fingerprint module by adjusting the switching frequency of the power adapter. The method for resisting charging interference comprises the following steps:
step 301: when the power adapter charges for terminal equipment, acquire the produced first common mode noise intensity of power adapter under the current scanning frequency of fingerprint module.
The power adapter charges the terminal equipment, and the first common-mode noise intensity is used for representing the size of the common-mode noise generated by the power adapter under the current scanning frequency of the fingerprint module.
Step 302: judging whether the first common mode noise intensity is larger than a preset common mode noise intensity; if the first common mode noise intensity is greater than the preset common mode noise intensity, executing step 303; otherwise, the flow ends.
Step 303: and determining a target switching frequency corresponding to the current scanning frequency according to the corresponding relation between the preset scanning frequency and the switching frequency.
Step 304: and adjusting the switching frequency of the power adapter according to the target switching frequency.
For example, the preset corresponding relationship between the scanning frequency and the switching frequency may be as shown in table 1 below, wherein according to the corresponding relationship table shown in table 1, a plurality of target switching frequencies corresponding to the current scanning frequency of the power adapter may be determined.
It should be noted that, the case shown in table 1 is that one fingerprint module scanning frequency corresponds to three power adapter target switching frequencies, and the embodiment of the present invention is not limited to the case shown in table 1.
Figure BDA0001640383610000071
TABLE 1
It should be pointed out that, for the power adapter of standard configuration, "fingerprint module and power adapter frequency compatible combination table" that can accomplish the test before dispatching from the factory to write in "fingerprint module and power adapter frequency compatible combination table" with the corresponding relation of scanning frequency and switching frequency that predetermine, when fingerprint module during operation under the charged state, can be according to "fingerprint module and power adapter frequency compatible combination table" quick selection and adjustment power adapter's switching frequency, thereby avoid this charging interference problem, promote user experience effect.
It should be noted that the above description of the storage form of the corresponding relationship between the preset scanning frequency and the switching frequency is only an example and is not limited.
It should be noted that the number of the target switching frequencies may be one or more. The switching frequency of the power adapter may be adjusted in different ways for one or more of them, as described below.
In a first mode
By way of example, the number of target switching frequencies determined is one, in which case step 305 may be:
and adjusting the switching frequency of the power adapter to the target switching frequency.
Mode two
In the second case, the number of the determined target switching frequencies is plural, in which case, step 305 may include:
determining the current switching frequency of the fingerprint module;
respectively calculating the difference value between each target switching frequency in the plurality of target switching frequencies and the current switching frequency to obtain a plurality of difference values;
and adjusting the switching frequency of the power adapter to a first target switching frequency according to the plurality of difference values, wherein the first target switching frequency is a target switching frequency corresponding to the minimum difference value in the plurality of difference values.
For example, according to Table 1, 3 target switching frequencies (f) at the current scanning frequency of the fingerprint module can be obtained1、f2、f3) The following operation a ═ min { abs (f) is performed0-f1),abs(f0-f2),abs(f0-f3) Let f2Such that ads (f)0-f2) At a minimum, then the switching frequency of the power adapter is set to f0Is adjusted to f2In special cases if f0=f2I.e. abs (f)0-f2) And 0, the power adapter continues to maintain the current switching frequency.
In the embodiment of the invention, by acquiring the first common mode noise intensity generated by the power adapter at the current scanning frequency of the fingerprint module, when the first common mode noise intensity is greater than the preset common mode noise intensity, the target switching frequency corresponding to the current scanning frequency is determined according to the corresponding relation between the preset scanning frequency and the switching frequency, and the switching frequency of the power adapter is adjusted according to the target switching frequency. According to the corresponding relation between the preset scanning frequency and the switching frequency, the switching frequency of the power adapter can be quickly selected and adjusted, so that the problem that terminal equipment causes fingerprint module common-mode interference when charging is solved, and the user experience effect is improved.
In the embodiment of the invention, the fingerprint module fails to authenticate, and if the authentication failure times exceed the preset threshold, the user can be prompted to change other authentication modes, such as a password or a gesture authentication mode. Specifically, the method for resisting charging interference further comprises the following steps:
when detecting that fingerprint module authentication failure number of times exceeds and predetermine the threshold value, show second tip information on the terminal equipment screen, second tip information is used for proposing the user to use password or gesture authentication mode.
In the embodiment of the invention, when the fingerprint module works in the charging state, the target switching frequency corresponding to the current scanning frequency is determined according to the preset corresponding relation between the scanning frequency and the switching frequency, and the switching frequency of the power adapter is adjusted according to the target switching frequency. Therefore, the switching frequency of the power adapter can be quickly selected and adjusted according to the corresponding relation between the preset scanning frequency and the switching frequency, so that the problem of charging interference is avoided, and the user experience effect is improved.
Referring to fig. 4, another method for preventing charging interference is provided in the embodiments of the present invention, in which the method for preventing charging interference reduces interference generated by the power adapter to the fingerprint module by adjusting the scanning frequency of the fingerprint module. The method for resisting charging interference comprises the following steps:
step 401: when the power adapter charges for terminal equipment, acquire the produced first common mode noise intensity of power adapter under the current scanning frequency of fingerprint module.
The power adapter charges the terminal equipment, and the first common-mode noise intensity is used for representing the size of the common-mode noise generated by the power adapter under the current scanning frequency of the fingerprint module.
Step 402: and judging whether the first common mode noise intensity is greater than a preset common mode noise intensity. If the first common mode noise intensity is greater than the preset common mode noise intensity, traversing the available frequencies in the preset available frequency set according to the sequence from high frequency to low frequency, and executing the steps 403 to 405 in the process of traversing the available frequencies; otherwise, the flow ends.
Step 403: and setting the available frequency as the scanning frequency of the fingerprint module, and acquiring the second common-mode noise intensity generated by the power adapter under the available frequency.
Step 404: and judging whether the second common mode noise intensity is greater than the preset common mode noise intensity.
Traversing the next available frequency when the second common mode noise intensity is greater than the preset common mode noise intensity; alternatively, when the second common mode noise strength is less than or equal to the preset common mode noise strength, step 405 is executed.
Step 405: adjust the scanning frequency of the fingerprint module to the available frequency and stop the process of traversing the available frequency.
Optionally, if the obtained second common mode noise intensity is greater than the preset common mode noise intensity after traversing the available frequency in the preset available frequency set, the method for resisting charging interference may further include:
selecting the minimum second common mode noise intensity from the obtained second common mode noise intensities;
determining a first available frequency corresponding to the minimum second common mode noise intensity;
adjust the scanning frequency of fingerprint module to first available frequency.
In the embodiment of the invention, the terminal equipment can automatically detect the common-mode noise intensity generated by the power adapter under different scanning frequencies of the fingerprint module, and selects a scanning frequency which has no interference or minimum interference to the fingerprint module; the extreme application scene that can't solve the interference of charging through changing fingerprint module scanning frequency is not standard to the power adapter who uses, then can give the suggestion of proposing to change the power adapter of standard to explain the reason of changing and not changing the consequence that brings.
In the embodiment of the invention, the fingerprint module fails to authenticate, and if the authentication failure times exceed the preset threshold, the user can be prompted to change other authentication modes, such as a password or a gesture authentication mode. Specifically, the method for resisting charging interference further comprises the following steps:
when detecting that fingerprint module authentication failure number of times exceeds and predetermine the threshold value, show second tip information on the terminal equipment screen, second tip information is used for proposing the user to use password or gesture authentication mode.
Referring to fig. 5, another method for preventing charging interference is further provided in an embodiment of the present invention, where the method for preventing charging interference includes the following steps:
step 501: judging whether the accessed power adapter is standard; if the accessed power adapter is standard, then step 502 is executed; otherwise, go to step 507.
In the embodiment of the invention, after the terminal equipment is connected with the power adapter, the terminal equipment judges whether the connected power adapter is in a standard matching mode or not. For example, a corresponding query instruction may be issued to request the power adapter to reply its identification information, for example, the identification information may be an identification number (ID), the ID is a unique identification number built in when the power adapter leaves a factory, and the ID may be formed by combining contents such as numbers and letters.
In the embodiment of the present invention, the communication mode for acquiring the identification information may be a USB, or may also be a wireless communication mode such as Wi-fi, bluetooth, NFC, or the like, which is not specifically limited in the present invention; if the power adapter does not respond after inquiring the preset times (for example, the preset times are three times), the power adapter is judged to be a mixed charger, and if the power adapter responds and the identification information is correct, the power adapter is judged to be standard matching.
Step 502: the terminal equipment judges the working state of the fingerprint module, if the fingerprint module does not work, the power adapter works according to the default switching frequency, and the process is finished; otherwise, step 503 is executed.
Step 503: and acquiring the current scanning frequency of the fingerprint module and the current switching frequency of the power adapter.
Step 504: and acquiring a plurality of target switching frequencies of the power adapter corresponding to the current scanning frequency of the fingerprint module according to the corresponding relation between the preset scanning frequency and the switching frequency.
If the fingerprint module starts to work, the current scanning frequency of the fingerprint module and the current switching frequency f of the power adapter can be obtained0(ii) a Wherein the current scanning frequency of the fingerprint module and the current switching frequency f of the power adapter are obtained0The communication mode of the present invention may be USB, or wireless communication modes such as wi-fi, bluetooth, NFC, etc., and the present invention is not specifically defined. Then according to the present scanning frequency of fingerprint module and as the corresponding relation table of the scanning frequency of the fingerprint module shown in table 1 and the target switching frequency of the power adapter, a plurality of target switching frequencies of the power adapter corresponding to the present scanning frequency of the fingerprint module are obtained.
It should be noted that the correspondence table between the scanning frequency of the fingerprint module and the target switching frequency of the power adapter may have various forms, and table 1 shows only one preferred form of the correspondence table between the scanning frequency of the fingerprint module and the target switching frequency of the power adapter, and the specific frequency value is generated in advance through experiments according to the available configurations of different terminal devices and power adapters and is preset in the memory of the terminal device.
Step 505: and selecting a target switching frequency with the smallest difference value with the current switching frequency from a plurality of target switching frequencies.
For example, according to Table 1, 3 target switching frequencies (f) at the current scanning frequency of the fingerprint module are obtained1、f2、f3) The following operation a ═ min { abs (f) is performed0-f1),abs(f0-f2),abs(f0-f3) Let f2Such that ads (f)0-f2) At a minimum, then the switching frequency of the power adapter is set to f0Is adjusted to f2In special cases if f0=f2I.e. abs (f)0-f2) And 0, the power adapter continues to maintain the current switching frequency. According to the selected switching frequency f2And calculating corresponding R, L, C values, and selecting different branches of corresponding R, L, C networks respectively to realize the adjustment of the switching frequency of the power adapter.
It should be noted that f is selected0The most recent switching frequency is to facilitate adjustment of the R network, the L network and/or the C network for controlling the switching frequency, and it is understood that one of the R network, the L network and the C network, or even a combination of the two or even the three, may be designed separately, and the invention is not limited thereto.
Step 506: and adjusting the switching frequency of the power adapter to a target switching frequency with the minimum difference value with the current switching frequency.
Step 507: and judging the working state of the fingerprint module, and if the fingerprint module is in the working state, executing the step 508.
Step 508: and acquiring the current scanning frequency of the fingerprint module and the first common mode noise intensity generated by the power adapter under the current scanning frequency, and recording.
Step 509: judging whether the first common mode noise intensity is larger than a preset common mode noise intensity; if the first common mode noise intensity is larger than the preset common mode noise intensity, traversing the available frequencies in the preset available frequency set according to the sequence from high frequency to low frequency, and executing the following steps 510 to 512 in the process of traversing the available frequencies; otherwise, the flow ends.
Step 510: and setting the available frequency in the preset available frequency set as the scanning frequency of the fingerprint module, and acquiring the second common mode noise intensity generated by the power adapter under the available frequency.
Step 511: judging whether the second common mode noise intensity is larger than a preset common mode noise intensity; if the second common mode noise intensity is greater than the preset common mode noise intensity, executing step 512, otherwise, adjusting the scanning frequency of the fingerprint module to the available frequency, stopping the process of traversing the available frequency, and ending the process.
In the embodiment of the invention, if the fingerprint module starts to work, the current scanning frequency F of the fingerprint module is obtained0And the current scanning frequency F0Common mode noise intensity P generated by lower power adapter1. The common mode noise intensity P1With a predetermined common mode noise level P0Making a comparison if P1≤P0Then maintain the current scanning frequency F of the fingerprint module0(ii) a If P1>P0Sequentially traversing each frequency point F from high to low in the available frequency set F of the fingerprint moduleiIn the traversal process, the frequency point F is processediSetting the scanning frequency of the fingerprint module to obtain the common mode noise intensity P under the current scanning frequencyiRecording the common mode noise intensity P under the current set scanning frequencyiAnd P0Making a comparison if Pi≤P0Then stopping traversing, and setting the scanning frequency of the fingerprint module to Fi
It should be noted that the interference threshold is a preset common mode noise intensity, and may be set according to a specific application scenario, which is not specifically limited in the present invention.
Step 512: judging whether the available frequency in the preset available frequency set is traversed completely; if the available frequencies in the preset available frequency set are traversed completely, and the second common mode noise intensities generated by all the available frequencies in the preset available frequency set are all greater than the preset common mode noise intensity, then go to step 513; otherwise, the process continues to step 510 to process the next available frequency.
Step 513: and selecting the minimum second common mode noise intensity from the obtained second common mode noise intensities, determining the first available frequency corresponding to the minimum second common mode noise intensity, and adjusting the scanning frequency of the fingerprint module to be the first available frequency.
Like this, will the scanning frequency adjustment of fingerprint module is for first available frequency can give the fingerprint module with the aforesaid frequency point that traverses the in-process and disturb the fingerprint module minimum.
Specifically, if there is no qualified scan frequency after the traversal is completed, the executable step 513 will select min { P }iThe corresponding frequency point FiSet up to the fingerprint module scanning frequency outside, still can provide following processing mode:
1) if the power adapter is not standard, displaying first prompt information on a screen of the terminal equipment; the first prompt message is used for prompting a user to replace the current power adapter with a standard power adapter.
In the embodiment of the invention, the user is prompted to replace the standard charger through the first prompt message, and the fingerprint module is possibly disturbed if the standard charger is not replaced, so that the success rate of fingerprint identification is influenced; if the user insists on using the power adapter which is not standard matched, the scanning frequency of the fingerprint module is set to be the frequency point F with minimum interference to the fingerprint modulei
2) If the user continues to use the power adapter which is not standard, and when the fingerprint module authentication failure times are detected to exceed a preset threshold value, displaying second prompt information on a screen of the terminal equipment; and the second prompt message is used for prompting the user to use a password or a gesture authentication mode.
For example, the preset threshold may be three times, and when the terminal device detects that the fingerprint module authentication fails for three times, the terminal device may turn to an authentication mode such as prompting the user to use a password or a gesture.
Referring to fig. 6, an embodiment of the present invention further provides a terminal device 600, including: an obtaining module 601, a judging module 602 and an adjusting module 603. Wherein the content of the first and second substances,
the obtaining module 601 is configured to obtain a first common mode noise intensity generated by the power adapter at a current scanning frequency of the fingerprint module when the power adapter charges the terminal device.
The determining module 602 is configured to determine whether the first common mode noise intensity is greater than a preset common mode noise intensity.
The adjusting module 603 is configured to adjust a switching frequency of the power adapter or a scanning frequency of the fingerprint module when the first common mode noise strength is greater than the predetermined common mode noise strength, so as to reduce interference of the power adapter on the fingerprint module.
In the embodiment of the invention, the first common mode noise intensity generated by the power adapter at the current scanning frequency of the fingerprint module is firstly acquired through the acquisition module 601, and when the first common mode noise intensity is greater than the preset common mode noise intensity, the switching frequency of the power adapter or the scanning frequency of the fingerprint module is adjusted through the adjustment module 603, so that the interference of the power adapter on the fingerprint module is reduced.
Optionally, the adjusting module 603 includes:
the first judging unit is used for judging whether the power adapter is standard.
The first adjusting unit is used for adjusting the switching frequency of the power adapter when the power adapter is standard.
And the second adjusting unit is used for adjusting the scanning frequency of the fingerprint module when the power adapter is not standard.
Optionally, referring to fig. 7, the determining module 602 includes:
a sending unit 6021, configured to send an inquiry instruction to the power adapter, where the inquiry instruction is used to instruct the power adapter to reply the identification information of the power adapter to the terminal device.
The second determination unit 6022 is configured to determine whether the power adapter is standard according to whether the identification information of the power adapter is received and whether the received identification information is consistent with the preset identification information.
When the identification information of the power adapter is received and the received identification information is consistent with the preset identification information, determining that the power adapter is standard matching; and when the identification information of the power adapter is not received, or the received identification information of the power adapter is inconsistent with the preset identification information, determining that the power adapter is not standard.
Optionally, the terminal device further includes: a first prompt module.
The first prompt module is used for displaying first prompt information on a screen of the terminal equipment when the power adapter is not in standard configuration, wherein the first prompt information is used for prompting a user to replace the current power adapter with the standard power adapter.
Optionally, referring to fig. 8, the adjusting module 603 may include:
a first determining unit 6031, configured to determine a target switching frequency corresponding to a current scanning frequency according to a preset corresponding relationship between the scanning frequency and the switching frequency.
And a third adjusting unit 6032, configured to adjust the switching frequency of the power adapter according to the target switching frequency.
Optionally, the number of the target switching frequencies is one, and the third adjusting unit 6032 includes:
and the first adjusting subunit is used for adjusting the switching frequency of the power adapter to the target switching frequency.
Optionally, the number of the target switching frequencies is multiple, and the third adjusting unit 6032 includes: the determining subunit, the calculating subunit and the second adjusting subunit. Wherein the content of the first and second substances,
the determining subunit is used for determining the current switching frequency of the fingerprint module;
and the calculating subunit is used for calculating the difference between each target switching frequency in the plurality of target switching frequencies and the current switching frequency respectively to obtain a plurality of differences.
And the second adjusting subunit is configured to adjust the switching frequency of the power adapter to a first target switching frequency according to the plurality of difference values, where the first target switching frequency is a target switching frequency corresponding to a minimum difference value of the plurality of difference values.
In the embodiment of the present invention, the first determining unit 6031 determines the target switching frequency corresponding to the current scanning frequency according to the corresponding relationship between the preset scanning frequency and the switching frequency; the switching frequency of the power adapter is adjusted by the third adjusting unit 6032 according to the target switching frequency. Therefore, the switching frequency of the power adapter can be quickly selected and adjusted according to the corresponding relation between the preset scanning frequency and the switching frequency, so that the problem of charging interference is avoided, and the user experience effect is improved.
Optionally, referring to fig. 9, the adjusting module 603 includes:
a traversing unit 6033, configured to traverse available frequencies in the preset available frequency set in an order from high frequencies to low frequencies, and perform the following steps in the process of traversing available frequencies:
and setting the available frequency as the scanning frequency of the fingerprint module, and acquiring the second common-mode noise intensity generated by the power adapter under the available frequency.
And judging whether the second common mode noise intensity is greater than the preset common mode noise intensity.
Traversing the next available frequency when the second common mode noise intensity is greater than the preset common mode noise intensity; or when the second common mode noise intensity is smaller than or equal to the preset common mode noise intensity, adjusting the scanning frequency of the fingerprint module to be the available frequency, and stopping the process of traversing the available frequency.
Optionally, if the traversing unit finishes traversing the available frequency in the preset available frequency set, the obtained second common mode noise intensity is greater than the preset common mode noise intensity, and the adjusting module 603 further includes:
and the acquisition unit is used for selecting the minimum second common mode noise intensity from the acquired second common mode noise intensities.
And the second determining unit is used for determining the first available frequency corresponding to the minimum second common mode noise intensity.
And the fourth adjusting unit is used for adjusting the scanning frequency of the fingerprint module into a first available frequency.
Optionally, the terminal device further includes: and a second prompting module.
And the second prompt module is used for displaying second prompt information on a screen of the terminal equipment when the authentication failure times of the fingerprint module is detected to exceed a preset threshold, wherein the second prompt information is used for prompting a user to use a password or a gesture authentication mode.
In the embodiment of the present invention, the traversal unit 6033 traverses the available frequencies in the preset available frequency set from high to low according to the frequency sequence, so as to detect the common mode noise intensity generated by the power adapter under different scanning frequencies of the fingerprint module, and select a scanning frequency that has no interference or minimal interference with the fingerprint module, so as to reduce the interference generated by the power adapter with the fingerprint module.
Fig. 10 is a schematic diagram of a hardware structure of a terminal device for implementing various embodiments of the present invention, and referring to fig. 10, the terminal device 1000 includes, but is not limited to: a radio frequency unit 1001, a network module 1002, an audio output unit 1003, an input unit 1004, a sensor 1005, a display unit 1006, a user input unit 1007, an interface unit 1008, a memory 1009, a processor 1010, and a power supply 1011. Those skilled in the art will appreciate that the terminal structure shown in fig. 10 does not constitute a limitation of the terminal, and that the terminal device may include more or fewer components than those shown, or may combine some components, or a different arrangement of components. In the embodiment of the present invention, the terminal device includes, but is not limited to, a mobile phone, a tablet computer, a notebook computer, a palm computer, a vehicle-mounted terminal, a wearable device, a pedometer, and the like.
The processor 1010 is configured to obtain a first common mode noise intensity generated by the power adapter at a current scanning frequency of the fingerprint module when the power adapter charges the terminal device; judging whether the first common mode noise intensity is larger than a preset common mode noise intensity; when the first common mode noise intensity is greater than the preset common mode noise intensity, the switching frequency of the power adapter or the scanning frequency of the fingerprint module are adjusted to reduce the interference of the power adapter on the fingerprint module.
In the embodiment of the invention, the processor 1010 is used for acquiring the first common mode noise intensity generated by the power adapter at the current scanning frequency of the fingerprint module, and when the first common mode noise intensity is greater than the preset common mode noise intensity, the processor 1010 is used for adjusting the switching frequency of the power adapter or the scanning frequency of the fingerprint module, so that the interference of the power adapter on the fingerprint module is reduced, the problem of unlocking failure of the fingerprint module caused by charging of terminal equipment is solved, and the user experience effect is improved.
It should be understood that, in the embodiment of the present invention, the radio frequency unit 1001 may be used for receiving and sending signals during a message transmission or a call, and specifically, receives downlink data from a base station and then processes the received downlink data to the processor 1010; in addition, the uplink data is transmitted to the base station. In general, radio frequency unit 1001 includes, but is not limited to, an antenna, at least one amplifier, a transceiver, a coupler, a low noise amplifier, a duplexer, and the like. Further, the radio frequency unit 1001 may also communicate with a network and other devices through a wireless communication system.
The terminal device provides the user with wireless broadband internet access through the network module 1002, such as helping the user send and receive e-mails, browse webpages, access streaming media, and the like.
The audio output unit 1003 may convert audio data received by the radio frequency unit 1001 or the network module 1002 or stored in the memory 1009 into an audio signal and output as sound. Also, the audio output unit 1003 can also provide audio output related to a specific function performed by the terminal apparatus 1000 (e.g., a call signal reception sound, a message reception sound, etc.). The audio output unit 1003 includes a speaker, a buzzer, a receiver, and the like.
The input unit 1004 is used to receive an audio or video signal. The input Unit 1004 may include a Graphics Processing Unit (GPU) 10041 and a microphone 10042, the Graphics processor 10041 Processing image data of still pictures or video obtained by an image capturing device (such as a camera) in a video capturing mode or an image capturing mode. The processed image frames may be displayed on the display unit 1006. The image frames processed by the graphic processor 10041 may be stored in the memory 1009 (or other storage medium) or transmitted via the radio frequency unit 1001 or the network module 1002. The microphone 10042 can receive sound and can process such sound into audio data. The processed audio data may be converted into a format output transmittable to a mobile communication base station via the radio frequency unit 1001 in case of a phone call mode.
Terminal device 1000 can also include at least one sensor 1005, such as a light sensor, motion sensor, and other sensors. Specifically, the light sensor includes an ambient light sensor that can adjust the brightness of the display panel 10061 according to the brightness of ambient light, and a proximity sensor that can turn off the display panel 10061 and/or backlight when the terminal device 1000 moves to the ear. As one of the motion sensors, the accelerometer sensor can detect the magnitude of acceleration in each direction (generally three axes), detect the magnitude and direction of gravity when stationary, and can be used to identify the terminal posture (such as horizontal and vertical screen switching, related games, magnetometer posture calibration), vibration identification related functions (such as pedometer, tapping), and the like; the sensors 1005 may also include a fingerprint sensor, a pressure sensor, an iris sensor, a molecular sensor, a gyroscope, a barometer, a hygrometer, a thermometer, an infrared sensor, etc., which will not be described in detail herein.
The display unit 1006 is used to display information input by the user or information provided to the user. The Display unit 1006 may include a Display panel 10061, and the Display panel 10061 may be configured in the form of a Liquid Crystal Display (LCD), an Organic Light-Emitting Diode (OLED), or the like.
The user input unit 1007 may be used to receive input numeric or character information and generate key signal inputs related to user settings and function control of the terminal. Specifically, the user input unit 1007 includes a touch panel 10071 and other input devices 10072. The touch panel 10071, also referred to as a touch screen, may collect touch operations by a user on or near the touch panel 10071 (e.g., operations by a user on or near the touch panel 10071 using a finger, a stylus, or any other suitable object or attachment). The touch panel 10071 may include two parts, a touch detection device 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 1010, and receives and executes commands sent by the processor 1010. In addition, the touch panel 10071 may be implemented by various types, such as a resistive type, a capacitive type, an infrared ray, and a surface acoustic wave. In addition to the touch panel 10071, the user input unit 1007 can include other input devices 10072. Specifically, the other input devices 10072 may include, but are not limited to, a physical keyboard, function keys (such as volume control keys, switch keys, etc.), a track ball, a mouse, and a joystick, which are not described herein again.
Further, the touch panel 10071 can be overlaid on the display panel 10061, and when the touch panel 10071 detects a touch operation thereon or nearby, the touch operation is transmitted to the processor 1010 to determine the type of the touch event, and then the processor 1010 provides a corresponding visual output on the display panel 10061 according to the type of the touch event. Although in fig. 10, the touch panel 10071 and the display panel 10061 are two independent components for implementing the input and output functions of the terminal, in some embodiments, the touch panel 10071 and the display panel 10061 may be integrated for implementing the input and output functions of the terminal, which is not limited herein.
The interface unit 1008 is an interface for connecting an external device to the terminal apparatus 1000. For example, the external device may include a wired or wireless headset port, an external power supply (or battery charger) port, a wired or wireless data port, a memory card port, a port for connecting a device having an identification module, an audio input/output (I/O) port, a video I/O port, an earphone port, and the like. Interface unit 1008 can be used to receive input from external devices (e.g., data information, power, etc.) and transmit the received input to one or more elements within terminal apparatus 1000 or can be used to transmit data between terminal apparatus 1000 and external devices.
The memory 1009 may be used to store software programs as well as various data. The memory 1009 may mainly include a program storage area and a data storage area, wherein the program storage area may store an operating system, an application program required by at least one function (such as a sound playing function, an image playing function, and the like), and the like; the storage data area may store data (such as audio data, a phonebook, etc.) created according to the use of the cellular phone, and the like. Further, the memory 1009 may include high-speed random access memory, and may also include non-volatile memory, such as at least one magnetic disk storage device, flash memory device, or other volatile solid state storage device.
The processor 1010 is a control center of the terminal device, connects various parts of the entire terminal device by using various interfaces and lines, and performs various functions of the terminal device and processes data by operating or executing software programs and/or modules stored in the memory 1009 and calling data stored in the memory 1009, thereby performing overall monitoring of the terminal device. Processor 1010 may include one or more processing units; preferably, the processor 1010 may integrate an application processor, which mainly handles operating systems, user interfaces, application programs, etc., and a modem processor, which mainly handles wireless communications. It will be appreciated that the modem processor described above may not be integrated into processor 1010.
Terminal device 1000 can also include a power source 1011 (e.g., a battery) for powering the various components, and preferably, power source 1011 can be logically coupled to processor 1010 through a power management system that provides management of charging, discharging, and power consumption.
In addition, the terminal device 1000 may further include some functional modules that are not shown, and are not described herein again.
Preferably, an embodiment of the present invention further provides a terminal device, which includes a processor 1010, a memory 1009, and a computer program stored in the memory 1009 and capable of running on the processor 1010, where the computer program is executed by the processor 110 to implement each process of the above method for preventing charging interference, and can achieve the same technical effect, and details are not described here to avoid repetition.
The embodiment of the present invention further provides a computer-readable storage medium, where a computer program is stored on the computer-readable storage medium, and when the computer program is executed by a processor, the computer program implements each process of the above method for preventing charging interference, and can achieve the same technical effect, and in order to avoid repetition, details are not repeated here.
The computer-readable storage medium is, for example, a Read-Only Memory (ROM), a Random Access Memory (RAM), a magnetic disk or an optical disk.
It should be noted that, in this document, the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, article, or apparatus. Without further limitation, an element defined by the phrase "comprising an … …" does not exclude the presence of other like elements in a process, method, article, or apparatus that comprises the element.
Through the above description of the embodiments, those skilled in the art will clearly understand that the method of the above embodiments can be implemented by software plus a necessary general hardware platform, and certainly can also be implemented by hardware, but in many cases, the former is a better implementation manner. Based on such understanding, the technical solutions of the present invention may be embodied in the form of a software product, which is stored in a storage medium (such as ROM/RAM, magnetic disk, optical disk) and includes instructions for enabling a terminal (such as a mobile phone, a computer, a server, an air conditioner, or a network device) to execute the method according to the embodiments of the present invention.
While the present invention has been described with reference to the embodiments shown in the drawings, the present invention is not limited to the embodiments, which are illustrative and not restrictive, and it will be apparent to those skilled in the art that various changes and modifications can be made therein without departing from the spirit and scope of the invention as defined in the appended claims.

Claims (9)

1. A method for resisting charging interference is applied to terminal equipment, and is characterized by comprising the following steps:
when the power adapter charges the terminal equipment, acquiring a first common mode noise intensity generated by the power adapter under the current scanning frequency of the fingerprint module;
judging whether the first common mode noise intensity is larger than a preset common mode noise intensity;
when the first common mode noise intensity is larger than the preset common mode noise intensity, adjusting the switching frequency of the power adapter or the scanning frequency of the fingerprint module to reduce the interference of the power adapter on the fingerprint module;
the adjustment power adapter's switching frequency perhaps the scanning frequency of fingerprint module includes:
judging whether the power adapter is standard or not;
if the power adapter is standard, adjusting the switching frequency of the power adapter;
if the power adapter is not standard, adjusting the scanning frequency of the fingerprint module;
the adjusting the switching frequency of the power adapter comprises:
determining a target switching frequency corresponding to the current scanning frequency according to a corresponding relation between a preset scanning frequency and a switching frequency;
adjusting the switching frequency of the power adapter according to the target switching frequency;
the number of the target switching frequencies is multiple, and the adjusting the switching frequency of the power adapter according to the target switching frequency includes:
determining the current switching frequency of the fingerprint module;
respectively calculating the difference value between each target switching frequency in the plurality of target switching frequencies and the current switching frequency to obtain a plurality of difference values;
and adjusting the switching frequency of the power adapter to a first target switching frequency according to the plurality of difference values, wherein the first target switching frequency is a target switching frequency corresponding to the minimum difference value in the plurality of difference values.
2. The method of claim 1, wherein said determining whether the power adapter is a standard power adapter comprises:
sending an inquiry instruction to the power adapter, wherein the inquiry instruction is used for indicating the power adapter to reply the identification information of the power adapter to the terminal equipment;
judging whether the power adapter is standard or not according to whether the identification information of the power adapter is received or not and whether the received identification information is consistent with preset identification information or not;
when the identification information of the power adapter is received and the received identification information is consistent with preset identification information, determining that the power adapter is standard; and when the identification information of the power adapter is not received, or the identification information of the power adapter is received but the received identification information is inconsistent with the preset identification information, determining that the power adapter is not standard-matched.
3. The method of claim 1, wherein the adjusting the scanning frequency of the fingerprint module comprises:
traversing available frequencies in a preset available frequency set according to the sequence of frequencies from high to low, and executing the following steps in the process of traversing the available frequencies:
setting available frequency as scanning frequency of the fingerprint module, and acquiring second common mode noise intensity generated by the power adapter under the available frequency;
judging whether the second common mode noise intensity is larger than a preset common mode noise intensity;
traversing the next available frequency when the second common mode noise intensity is greater than the preset common mode noise intensity; or when the second common mode noise intensity is smaller than or equal to the preset common mode noise intensity, adjusting the scanning frequency of the fingerprint module to the available frequency, and stopping the process of traversing the available frequency.
4. The method of claim 3, wherein if the obtained second common mode noise intensity is greater than the predetermined common mode noise intensity after traversing the available frequencies in the predetermined set of available frequencies, the adjusting the scanning frequency of the fingerprint module further comprises:
selecting the minimum second common mode noise intensity from the obtained second common mode noise intensities;
determining a first available frequency corresponding to the minimum second common mode noise intensity;
and adjusting the scanning frequency of the fingerprint module to the first available frequency.
5. A terminal device, comprising:
the acquisition module is used for acquiring a first common mode noise intensity generated by the power adapter under the current scanning frequency of the fingerprint module when the power adapter charges the terminal equipment;
the judging module is used for judging whether the first common-mode noise intensity is larger than a preset common-mode noise intensity;
the adjusting module is used for adjusting the switching frequency of the power adapter or the scanning frequency of the fingerprint module when the first common-mode noise intensity is larger than the preset common-mode noise intensity so as to reduce the interference of the power adapter on the fingerprint module;
the adjustment module includes:
the first judgment unit is used for judging whether the power adapter is standard or not;
the first adjusting unit is used for adjusting the switching frequency of the power adapter when the power adapter is standard;
the second adjusting unit is used for adjusting the scanning frequency of the fingerprint module when the power adapter is not standard;
the adjustment module includes:
the first determining unit is used for determining a target switching frequency corresponding to the current scanning frequency according to a preset corresponding relation between the scanning frequency and the switching frequency;
a third adjusting unit, configured to adjust a switching frequency of the power adapter according to the target switching frequency;
the number of the target switching frequencies is plural, and the third adjusting unit includes:
the determining subunit is used for determining the current switching frequency of the fingerprint module; the calculating subunit is used for calculating a difference value between each target switching frequency in the plurality of target switching frequencies and the current switching frequency respectively to obtain a plurality of difference values;
and the second adjusting subunit is configured to adjust the switching frequency of the power adapter to a first target switching frequency according to the plurality of difference values, where the first target switching frequency is a target switching frequency corresponding to a minimum difference value of the plurality of difference values.
6. The terminal device of claim 5, wherein the determining module comprises:
a sending unit, configured to send an inquiry instruction to the power adapter, where the inquiry instruction is used to instruct the power adapter to reply to the terminal device with identification information of the power adapter;
the second judgment unit is used for judging whether the power adapter is standard according to whether the identification information of the power adapter is received and whether the received identification information is consistent with preset identification information;
when the identification information of the power adapter is received and the received identification information is consistent with preset identification information, determining that the power adapter is standard; and when the identification information of the power adapter is not received, or the identification information of the power adapter is received but the received identification information is inconsistent with the preset identification information, determining that the power adapter is not standard-matched.
7. The terminal device of claim 5, wherein the adjusting module comprises:
the traversing unit is used for traversing the available frequencies in the preset available frequency set according to the sequence of the frequencies from high to low, and executing the following steps in the process of traversing the available frequencies:
setting available frequency as scanning frequency of the fingerprint module, and acquiring second common mode noise intensity generated by the power adapter under the available frequency;
judging whether the second common mode noise intensity is larger than a preset common mode noise intensity;
traversing the next available frequency when the second common mode noise intensity is greater than the preset common mode noise intensity; or when the second common mode noise intensity is smaller than or equal to the preset common mode noise intensity, adjusting the scanning frequency of the fingerprint module to the available frequency, and stopping the process of traversing the available frequency.
8. The terminal device of claim 7, wherein if the traversing unit traverses available frequencies in a preset available frequency set, the obtained second common mode noise strength is greater than a preset common mode noise strength, and the adjusting module further comprises:
the acquisition unit is used for selecting the minimum second common mode noise intensity from the acquired second common mode noise intensities;
a second determining unit, configured to determine a first available frequency corresponding to the minimum second common mode noise strength;
and the fourth adjusting unit is used for adjusting the scanning frequency of the fingerprint module to the first available frequency.
9. A terminal device, comprising a processor, a memory and a computer program stored on the memory and executable on the processor, the computer program, when executed by the processor, implementing the steps of the method of combating charging interference according to any of claims 1 to 4.
CN201810378366.0A 2018-04-25 2018-04-25 Method for resisting charging interference and terminal equipment Active CN108594952B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201810378366.0A CN108594952B (en) 2018-04-25 2018-04-25 Method for resisting charging interference and terminal equipment

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201810378366.0A CN108594952B (en) 2018-04-25 2018-04-25 Method for resisting charging interference and terminal equipment

Publications (2)

Publication Number Publication Date
CN108594952A CN108594952A (en) 2018-09-28
CN108594952B true CN108594952B (en) 2020-04-21

Family

ID=63609156

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201810378366.0A Active CN108594952B (en) 2018-04-25 2018-04-25 Method for resisting charging interference and terminal equipment

Country Status (1)

Country Link
CN (1) CN108594952B (en)

Families Citing this family (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109508266B (en) * 2018-11-06 2022-01-21 晶晨半导体(上海)股份有限公司 Method for suppressing EMI interference
CN110390319B (en) * 2019-07-30 2021-06-25 Oppo广东移动通信有限公司 Fingerprint identification method and related product
CN112928908B (en) * 2021-01-22 2023-06-02 维沃移动通信有限公司 Power conversion apparatus

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104662765A (en) * 2012-06-26 2015-05-27 摩托罗拉移动技术公司 Battery charging interrupt
CN105093007A (en) * 2013-01-22 2015-11-25 青岛海信移动通信技术股份有限公司 Standard charger determining method for capacitive touch screen
CN105144048A (en) * 2013-03-12 2015-12-09 谷歌技术控股有限责任公司 Adaptive touch sensor control based on identification of attached accessory
CN106845422A (en) * 2017-01-22 2017-06-13 广东欧珀移动通信有限公司 A kind of fingerprint recognition module, fingerprint identification method and mobile terminal
CN107132949A (en) * 2017-04-28 2017-09-05 北京小米移动软件有限公司 anti-interference method, device, terminal and storage medium
CN107436666A (en) * 2016-05-26 2017-12-05 华为终端(东莞)有限公司 The control method and control device of a kind of power supply adaptor

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104662765A (en) * 2012-06-26 2015-05-27 摩托罗拉移动技术公司 Battery charging interrupt
CN105093007A (en) * 2013-01-22 2015-11-25 青岛海信移动通信技术股份有限公司 Standard charger determining method for capacitive touch screen
CN105144048A (en) * 2013-03-12 2015-12-09 谷歌技术控股有限责任公司 Adaptive touch sensor control based on identification of attached accessory
CN107436666A (en) * 2016-05-26 2017-12-05 华为终端(东莞)有限公司 The control method and control device of a kind of power supply adaptor
CN106845422A (en) * 2017-01-22 2017-06-13 广东欧珀移动通信有限公司 A kind of fingerprint recognition module, fingerprint identification method and mobile terminal
CN107132949A (en) * 2017-04-28 2017-09-05 北京小米移动软件有限公司 anti-interference method, device, terminal and storage medium

Also Published As

Publication number Publication date
CN108594952A (en) 2018-09-28

Similar Documents

Publication Publication Date Title
CN108182019B (en) Suspension control display processing method and mobile terminal
CN108459797B (en) Control method of folding screen and mobile terminal
CN109905907B (en) Network searching method and mobile terminal
CN107734175B (en) Notification message prompting method and mobile terminal
CN108256308B (en) Face recognition unlocking control method and mobile terminal
CN108521501B (en) Voice input method, mobile terminal and computer readable storage medium
CN107977113B (en) Control method and mobile terminal
CN110855921B (en) Video recording control method and electronic equipment
CN108594952B (en) Method for resisting charging interference and terminal equipment
CN109739300B (en) Antenna control method and terminal
CN111443815A (en) Vibration reminding method and electronic equipment
CN111756696A (en) Login method of application program, first electronic device and second electronic device
CN111597540B (en) Login method of application program, electronic device and readable storage medium
CN108229423B (en) Fingerprint identification scanning method and mobile terminal
CN110941469A (en) Application body-splitting creating method and terminal equipment thereof
CN108762641B (en) Text editing method and terminal equipment
CN107949039B (en) Wireless network connection method and mobile terminal
CN111310165B (en) Account switching or registering method and electronic equipment
CN110113486B (en) Application icon moving method and terminal
CN108108608B (en) Control method of mobile terminal and mobile terminal
CN108234745B (en) Signal receiving method, mobile terminal and computer readable storage medium
CN108089799B (en) Control method of screen edge control and mobile terminal
CN108062465B (en) Unlocking method and mobile terminal
CN110472520B (en) Identity recognition method and mobile terminal
CN110769153B (en) Image processing method and electronic 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