Method, device, mobile terminal and storage medium for eliminating resonance frequency interference

By determining the resonant frequency of the gyroscope and the ultrasonic device in the mobile terminal, setting the frequency range and filtering out interference data in the target data, the problem of the gyroscope being unable to be used normally due to resonant frequency interference is solved, and frequency and space optimization is achieved. Flexibility improves the performance of mobile terminals.

CN114553324BInactive Publication Date: 2024-10-25BEIJING XIAOMI MOBILE SOFTWARE CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202011297568.6
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2020-11-18
Publication Date
2024-10-25
Estimated Expiration
Not applicable · inactive patent

AI Technical Summary

Technical Problem

The gyroscope and ultrasonic device in the mobile terminal have data anomalies due to the coincidence of resonant frequencies, causing the gyroscope to be unable to function normally. Existing solutions such as adjusting the operating frequency of the ultrasonic device or structural avoidance have performance and space limitations.

Method used

By determining the resonant frequency of the gyroscope and ultrasonic device, setting the frequency range, and filtering out periodic data exceeding the threshold in the target data, the resonant frequency interference is eliminated and the normal use of the gyroscope is ensured.

Benefits of technology

This method can not only maintain the operating frequency of the ultrasonic device in a large range, but also maintain the distance between the gyroscope and the ultrasonic device in a small range, improve the performance of the mobile terminal, and avoid frequency and space restrictions.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN114553324B_ABST
    Figure CN114553324B_ABST
Patent Text Reader

Abstract

The present disclosure relates to a method, device, mobile terminal and storage medium for eliminating resonant frequency interference, the method comprising: determining the target data of a gyroscope; when the number of periodic data with a set frequency in the target data exceeds a period threshold, filtering out the data with the set frequency in the target data; wherein the set frequency is determined according to the resonant frequency of an ultrasonic device and a gyroscope; and determining that the remaining data in the target data is uninterrupted data after eliminating the resonant frequency interference. This method can ensure that the operating frequency of the ultrasonic device is maintained within a larger range, and can also maintain the distance between the ultrasonic device and the gyroscope within a smaller range, thereby achieving no restrictions in space and frequency, and improving the performance of the mobile terminal.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present disclosure relates to the field of communication technology, and in particular to a method, device, mobile terminal and storage medium for eliminating resonance frequency interference. Background Art

[0002] Currently, most mobile terminals (such as mobile phones) use ultrasonic devices to replace proximity sensors. Ultrasonic devices have the advantages of low cost and low structural requirements.

[0003] Most mobile terminals are equipped with a gyroscope (eg, a Mems Gyro (micro-electromechanical gyroscope)). The gyroscope body generally has a resonant frequency, called the local oscillation frequency, which is generally 20Khz-35Khz.

[0004] The local oscillation frequency of the gyroscope overlaps with the operating frequency of the ultrasonic device. When the ultrasonic device operates at the resonant frequency of the gyroscope, the gyroscope data will be abnormal when the gyroscope is within a certain distance range of the ultrasonic device (usually 5 cm, depending on the power of the ultrasonic device), causing the gyroscope to fail to work properly. Summary of the invention

[0005] In order to overcome the problems existing in the related art, the present disclosure provides a method, device, mobile terminal and storage medium for eliminating resonance frequency interference.

[0006] According to a first aspect of an embodiment of the present disclosure, a method for eliminating resonance frequency interference is provided, which is applied to a terminal device having both a gyroscope and an ultrasonic device, and the method includes:

[0007] Determine the target data of the gyroscope;

[0008] When the number of periodic data with a set frequency in the target data exceeds a period threshold, filtering out the data with the set frequency in the target data; wherein the set frequency is determined according to the resonant frequency of the ultrasonic device and the gyroscope;

[0009] The remaining data in the target data is determined to be undisturbed data after the resonant frequency interference is eliminated.

[0010] Optionally, the method further comprises:

[0011] Determining whether the gyroscope and the ultrasonic device are both in working state;

[0012] After determining that the gyroscope and the ultrasonic device are both in working state, target data of the gyroscope is determined.

[0013] Optionally, the determining that both the gyroscope and the ultrasonic device are in working state includes:

[0014] Determine whether the gyroscope is in working condition;

[0015] If yes, then determine whether the ultrasonic device is in working state;

[0016] If the ultrasonic device is in working state, it is determined that both the gyroscope and the ultrasonic device are in working state.

[0017] Optionally, the method further comprises:

[0018] Based on the control command, enter the mode of eliminating the resonant frequency interference;

[0019] In the mode of eliminating resonance frequency interference, it is determined whether the gyroscope and the ultrasonic device are both in working state.

[0020] Optionally, the set frequency is 10 Hz-15 Hz; and / or,

[0021] The cycle threshold is 1-5.

[0022] Optionally, the method further comprises:

[0023] The number of periodic data having a set frequency in the target data is determined by Fourier transform.

[0024] According to a second aspect of an embodiment of the present disclosure, there is provided a device for eliminating resonant frequency interference, which is applied to a terminal device having both a gyroscope and an ultrasonic device, and the device includes:

[0025] A determination module, used for determining target data of the gyroscope;

[0026] A filtering module, configured to filter out data with a set frequency in the target data when the number of periodic data with a set frequency in the target data exceeds a period threshold; wherein the set frequency is determined according to a resonant frequency of the ultrasonic device and the gyroscope;

[0027] The determination module is further used to determine that the remaining data in the target data is non-interference data after the resonant frequency interference is eliminated.

[0028] Optionally, the determining module is further used to:

[0029] Determining whether the gyroscope and the ultrasonic device are both in working state;

[0030] After determining that the gyroscope and the ultrasonic device are both in working state, target data of the gyroscope is determined.

[0031] Optionally, the determining module is further used to:

[0032] Determine whether the gyroscope is in working condition;

[0033] If yes, then determine whether the ultrasonic device is in working state;

[0034] If the ultrasonic device is in working state, it is determined that both the gyroscope and the ultrasonic device are in working state.

[0035] Optionally, the determining module is further used to:

[0036] Based on the control command, enter the mode of eliminating the resonant frequency interference;

[0037] In the mode of eliminating resonance frequency interference, it is determined whether the gyroscope and the ultrasonic device are both in working state.

[0038] Optionally,

[0039] The set frequency is 10 Hz-15 Hz; and / or,

[0040] The cycle threshold is 1-5.

[0041] Optionally, the determining module is further used to:

[0042] The number of periodic data having a set frequency in the target data is determined by Fourier transform.

[0043] According to a third aspect of an embodiment of the present disclosure, a mobile terminal is provided, the mobile terminal including a gyroscope and an ultrasonic device, the mobile terminal further including:

[0044] processor;

[0045] a memory for storing processor-executable instructions;

[0046] The processor is configured to execute the method as described in the first aspect.

[0047] According to a fourth aspect of an embodiment of the present disclosure, a non-transitory computer-readable storage medium is provided. When instructions in the storage medium are executed by a processor of a mobile terminal, the mobile terminal is enabled to execute the method described in the first aspect.

[0048] The technical solution provided by the embodiments of the present disclosure may include the following beneficial effects: In this method, the set frequency is determined according to the resonant frequency of the ultrasonic device and the gyroscope, and when the number of periodic data with the set frequency in the target data of the gyroscope exceeds the period threshold, the data with the set frequency is filtered out from the target data, thereby eliminating the interference of the resonant frequency and ensuring the normal use of the gyroscope. This method can ensure that the operating frequency of the ultrasonic device is maintained in a larger range, and the distance between the ultrasonic device and the gyroscope is maintained in a smaller range, thereby achieving no restrictions in space and frequency, and improving the performance of the mobile terminal.

[0049] It is to be understood that the foregoing general description and the following detailed description are exemplary and explanatory only and are not restrictive of the present disclosure. BRIEF DESCRIPTION OF THE DRAWINGS

[0050] The accompanying drawings, which are incorporated in and constitute a part of this specification, illustrate embodiments consistent with the invention and, together with the description, serve to explain the principles of the invention.

[0051] Figure 1 is a flow chart of a method for eliminating resonance frequency interference according to an exemplary embodiment.

[0052] Figure 2 is a flow chart of a method for eliminating resonance frequency interference according to an exemplary embodiment.

[0053] Figure 3 is a flow chart of a method for eliminating resonance frequency interference according to an exemplary embodiment.

[0054] Figure 4 is a flow chart of a method for eliminating resonance frequency interference according to an exemplary embodiment.

[0055] Figure 5 is a schematic diagram showing target data of a gyroscope according to an exemplary embodiment.

[0056] Figure 6 is a schematic diagram showing undisturbed data after resonant frequency interference is eliminated according to an exemplary embodiment.

[0057] Figure 7 is a block diagram of a device for eliminating resonance frequency interference according to an exemplary embodiment.

[0058] Figure 8 is a block diagram of a mobile terminal according to an exemplary embodiment. DETAILED DESCRIPTION

[0059] Exemplary embodiments will be described in detail herein, examples of which are shown in the accompanying drawings. When the following description refers to the drawings, the same numbers in different drawings represent the same or similar elements unless otherwise indicated. The embodiments described in the following exemplary embodiments do not represent all embodiments consistent with the present invention. Instead, they are merely examples of devices and methods consistent with some aspects of the present invention as detailed in the appended claims.

[0060] In the related art, the interference of the local oscillator frequency on the gyroscope is generally eliminated in the following two ways:

[0061] Method 1: By adjusting the working frequency of the ultrasonic device, the local oscillation frequency of the gyroscope is avoided;

[0062] Method 2: Place the gyroscope at a distance of more than 5 cm from the ultrasonic device (eg, ultrasonic generator).

[0063] The above two methods have the following problems:

[0064] Problem with approach 1: Limiting the operating frequency range of the ultrasonic device may reduce the performance of the ultrasonic device and potentially affect the versatility of the ultrasonic algorithm;

[0065] Problems with method 2: It requires structural avoidance and has many space restrictions. For example, when the mobile terminal is a mobile phone, it is difficult to find a location to install the gyroscope in an area more than 5 cm away from the ultrasonic sound device (earpiece) of the mobile phone motherboard.

[0066] The present disclosure provides a method for eliminating resonant frequency interference, wherein a set frequency is determined according to the resonant frequency of an ultrasonic device and a gyroscope, and when the number of periodic data with the set frequency in the target data of the gyroscope exceeds a period threshold, the data of the set frequency is filtered out from the target data, thereby eliminating the interference of the resonant frequency and ensuring the normal use of the gyroscope. The method can ensure that the operating frequency of the ultrasonic device is maintained within a larger range, and the distance between the ultrasonic device and the gyroscope is maintained within a smaller range, thereby achieving no restrictions in space and frequency, and improving the performance of the mobile terminal.

[0067] In an exemplary embodiment, a method for eliminating resonance frequency interference is provided, which is applied to a mobile terminal having both a gyroscope and an ultrasonic device, referring to Figure 1 As shown, the method includes:

[0068] S110: Determine target data of the gyroscope.

[0069] The target data refers to the vibration data of the gyroscope, and the vibration data can be determined by a vibration detection method in the prior art.

[0070] S120. When the number of periodic data with a set frequency in the target data exceeds a period threshold, filter out the data with the set frequency in the target data; wherein the set frequency is determined according to a resonant frequency of the ultrasonic device and the gyroscope.

[0071] By analyzing the vibration data of the gyroscope after being affected by ultrasound, the characteristics of the vibration data are extracted, and it is determined that ultrasound will produce periodic interference data on the vibration data. According to actual tests, the interference data is determined to be periodic data with a frequency of 13Hz-14Hz. Based on this, the range of the set frequency is determined, for example, the set frequency is determined to be 10Hz-15Hz. The reason for setting the frequency to be larger than the frequency range of the above interference data is to better filter out the interference data and better eliminate the interference of the resonant frequency, so as to better ensure the normal use of the gyroscope. Of course, if the accuracy requirements for the gyroscope are lower, a set frequency with a smaller frequency range can also be set.

[0072] When the number of periodic data of the set frequency is small, it means that the ultrasonic device has little effect on the gyroscope. In the scenario where the gyroscope requires low precision, it will not affect the normal use of the gyroscope, and no filtering is required to save the memory of the mobile terminal and ensure the smoothness of the mobile terminal. Based on this, the period threshold is determined. In other words, a suitable period threshold can be set according to the precision requirements of the gyroscope. For example, the period threshold is 1-5.

[0073] S130: Determine that the remaining data in the target data is non-interference data after the resonant frequency interference is eliminated.

[0074] In this method, the set frequency is determined according to the resonant frequency of the ultrasonic device and the gyroscope. When the number of periodic data with the set frequency in the target data of the gyroscope exceeds the period threshold, the data with the set frequency is filtered out from the target data, thereby eliminating the interference of the resonant frequency and ensuring the normal use of the gyroscope. This method can ensure that the operating frequency of the ultrasonic device is maintained in a larger range, and the distance between the ultrasonic device and the gyroscope is maintained in a smaller range, thereby achieving no restrictions in space and frequency, and improving the performance of the mobile terminal.

[0075] In one embodiment, the accuracy requirement for the gyroscope is relatively low, so the frequency is set to 13 Hz-14 Hz and the cycle threshold is set to 4 to avoid unnecessary filtering processing.

[0076] When it is determined that the number of periodic data with 13Hz-14Hz in the target data of the gyroscope is 4, since this number is less than the period threshold, it means that the gyroscope can still be used normally, and there is no need to filter the target data, and the target data can be directly determined as non-interference data.

[0077] When it is determined that the number of periodic data with 13Hz-14Hz in the target data of the gyroscope is 5, since this number is greater than the period threshold, it means that the gyroscope is greatly affected and cannot be used normally, and it is necessary to filter the target data, and filter out the data with 13Hz-14Hz in the target data through a filter (such as a digital filter), and determine that the remaining data is undisturbed data after eliminating the resonant frequency interference, so as to ensure the normal use of the gyroscope.

[0078] In one embodiment, the accuracy requirement for the gyroscope is relatively high, so the frequency is set to 10 Hz-15 Hz and the cycle threshold is set to 3 to perform appropriate filtering processing.

[0079] When it is determined that the number of periodic data with 10Hz-15Hz in the target data of the gyroscope is 1, since this number is less than the period threshold, it means that the gyroscope can still be used normally, and there is no need to filter the target data, and the target data can be directly determined as non-interference data.

[0080] When it is determined that the number of periodic data with a frequency of 10 Hz to 15 Hz in the target data of the gyroscope is 4, since this number is greater than the periodic threshold, it means that the gyroscope is greatly affected and cannot be used normally. In this case, it is necessary to filter the target data, and use a filter (such as a digital filter) to filter out the data with a frequency of 10 Hz to 15 Hz in the target data, and determine that the remaining data is undisturbed data after eliminating the resonant frequency interference, so as to ensure the normal use of the gyroscope.

[0081] In one embodiment, a higher accuracy requirement is imposed on the gyroscope, and therefore the frequency is set to 10 Hz-15 Hz and the cycle threshold is set to 1 to perform better filtering processing.

[0082] When it is determined that the number of periodic data with 10Hz-15Hz in the target data of the gyroscope is 1, since this number is less than the period threshold, it means that the gyroscope can still be used normally, and there is no need to filter the target data, and the target data can be directly determined as non-interference data.

[0083] When it is determined that the number of periodic data with a frequency of 10 Hz to 15 Hz in the target data of the gyroscope is 2, since this number is greater than the periodic threshold, it means that the gyroscope is greatly affected and cannot be used normally. In this case, it is necessary to filter the target data, and use a filter (such as a digital filter) to filter out the data with a frequency of 10 Hz to 15 Hz in the target data, and determine that the remaining data is undisturbed data after eliminating the resonant frequency interference, so as to ensure the normal use of the gyroscope.

[0084] In an exemplary embodiment, a method for eliminating resonant frequency interference is provided. In the method, before determining the target data of the gyroscope, the method also includes: determining whether the gyroscope and the ultrasonic device are both in working state; and determining the target data of the gyroscope after determining that the gyroscope and the ultrasonic device are both in working state.

[0085] It is understandable that when any one of the gyroscope and the ultrasonic device is not in working state, there is no need to eliminate the interference of the resonant frequency. For example, when the gyroscope is not in working state, there is no interfered target, so there is no need to perform the subsequent steps of eliminating the interference of the resonant frequency. For another example, when the ultrasonic device is not in working state, there is no interference source, so there is no need to perform the subsequent steps of eliminating the interference of the resonant frequency.

[0086] In this method, by adding a step of determining whether both the gyroscope and the ultrasonic device are in working condition, it can be better determined whether to perform the subsequent step of eliminating the resonant frequency interference. As long as either the gyroscope or the ultrasonic device is not in working condition, there is no need to perform the step of eliminating the resonant frequency interference, which can save the resource usage of the mobile terminal to a certain extent.

[0087] There are multiple ways to determine whether the gyroscope and the ultrasonic device are both in working state.

[0088] Method 1: Determine step by step, first determine whether there is an interfered target, and then determine whether there is an interference source. For details, refer to Figure 2 As shown, the method includes:

[0089] S21, determine whether the gyroscope is in working state; if the determination result is yes, proceed to step S22; if the determination result is no, continue to determine.

[0090] S22, determine whether the ultrasonic device is in working state; if the determination result is yes, proceed to step S23; if the determination result is no, continue to determine.

[0091] S23. Determine that the gyroscope and the ultrasonic device are both in working condition.

[0092] In some scenarios, the ultrasonic device is generally in working state, so the working state of the gyroscope can be determined first. In this way, if it is determined that the gyroscope is not in working state, the ultrasonic device is no longer determined to be in working state, which can save the resource occupation of the mobile terminal to a certain extent.

[0093] Method 2: Determine step by step, first determine whether there is an interference source, then determine whether there is an interfered target. For details, refer to Figure 3 As shown, the method includes:

[0094] S210, determine whether the ultrasonic device is in working state; if the determination result is yes, proceed to step S220; if the determination result is no, continue to determine.

[0095] S220, determine whether the gyroscope is in working state; if the determination result is yes, proceed to step S230; if the determination result is no, continue to determine.

[0096] S230: Determine that the gyroscope and the ultrasonic device are both in working condition.

[0097] In some scenarios, the gyroscope is usually in working state, so the working state of the ultrasonic device can be determined first. In this way, if it is determined that the ultrasonic device is not in working state, the determination of whether the gyroscope is in working state will not be performed, which can save the resource usage of the mobile terminal to a certain extent.

[0098] Method three: determine at the same time whether there is an interfered target and an interference source, that is, when judging whether the ultrasonic device is in working state, judge whether the gyroscope is in working state at the same time; if both are in working state, this method can quickly determine that both the gyroscope and the ultrasonic device are in working state, so as to quickly proceed to the next step and improve the processing speed of eliminating resonant frequency interference.

[0099] It should be noted that the above three methods may be set in one mode when the mobile terminal leaves the factory, or all three modes may be set at the same time, and then the user can determine the corresponding mode according to the specific application scenario to improve the user experience.

[0100] For example, the relevant description of method one records that this method is applicable to scenarios where the ultrasonic device is generally in a working state; the relevant description of method two records that this method is applicable to scenarios where the gyroscope is generally in a working state; and the relevant description of method three records that this method is applicable to scenarios where both the gyroscope and the ultrasonic device are generally in a working state.

[0101] In an exemplary embodiment, a method for eliminating resonant frequency interference is provided, which is a further improvement of the above method. Specifically, the method includes: based on a control instruction, entering a mode for eliminating resonant frequency interference, and in the mode for eliminating resonant frequency interference, determining whether the gyroscope and the ultrasonic device are both in a working state.

[0102] In some scenarios, it is not necessary to eliminate the interference of the resonant frequency, or it is inconvenient to perform other related steps to eliminate the interference of the resonant frequency.

[0103] For example, although the gyroscope and ultrasonic device of the mobile terminal are both in working state, the mobile terminal does not use the gyroscope to achieve meaningful functions, that is, the gyroscope is in a meaningless working state, so even if the gyroscope is affected, it will not affect the normal use of the mobile terminal. In this case, there is no need to eliminate the interference of the resonant frequency.

[0104] For another example, the user is using the mobile terminal to perform operations that require high resources of the mobile terminal, and it is inconvenient to allocate some resources to perform steps related to eliminating resonance frequency interference. In this case, it is inconvenient to perform other steps related to eliminating resonance frequency interference.

[0105] In this method, only after the mobile terminal receives the control instruction and enters the mode of eliminating the resonant frequency interference, the subsequent related steps (determining whether the gyroscope and the ultrasonic device are both in working state) will be performed. This method provides users with more choices. Users can choose whether to enter the mode of eliminating the resonant frequency interference according to specific circumstances, which increases the scope of application of the method and improves the user experience.

[0106] In an exemplary embodiment, a method for eliminating resonant frequency interference is provided, referring to Figure 4 As shown, the method includes:

[0107] S310, based on the control instruction, entering a mode for eliminating resonance frequency interference;

[0108] S320, determine whether the gyroscope is in working state; if the determination result is yes, proceed to step S330; if the determination result is no, continue to determine.

[0109] S330, determine whether the ultrasonic device is in working state; if the determination result is yes, proceed to step S340; if the determination result is no, continue to determine.

[0110] S340, determining that the gyroscope and the ultrasonic device are both in working condition;

[0111] S350, determining target data of the gyroscope;

[0112] S360, performing Fourier transform processing on the target data, and determining whether the number of periodic data with a set frequency in the target data exceeds the period threshold; if the determination result is yes, proceeding to step S370; if the determination result is no, proceeding to step S350;

[0113] S370, filtering out data with a set frequency in the target data;

[0114] S380: Determine the remaining data in the target data as non-interferenced data after eliminating the resonant frequency interference.

[0115] In the method, based on the user's choice, a control instruction is sent to the mobile terminal, and the mobile terminal enters a mode for eliminating the interference of the resonant frequency in response to the control instruction. After entering this mode, first determine whether the gyroscope and the ultrasonic device are both in working state. If both are not in working state, continue to judge. When both are in working state, determine whether the number of periodic data with a set frequency in the target data of the gyroscope exceeds the period threshold by performing Fourier transform processing on the target data. If it does not exceed the period threshold, return to the step of obtaining the target data of the gyroscope, reacquire the target data, and then continue to judge; when the number of periodic data with a set frequency in the target data of the gyroscope exceeds the period threshold, the data of the set frequency is filtered out from the target data by a digital filter, thereby eliminating the interference of the resonant frequency and ensuring the normal use of the gyroscope.

[0116] In one embodiment, the target data of the gyroscope is determined as follows: Figure 5 As shown, after filtering, the uninterfered data after eliminating the resonant frequency interference is determined as follows Figure 6 As shown, it can be seen that this method can effectively eliminate the interference of the ultrasonic device on the gyroscope caused by the resonant frequency of the gyroscope.

[0117] It should be noted that in this method, after step S380, the method can directly return to step S320 and then re-perform the above steps in the mode of eliminating resonance frequency interference, or return to step S350 to continue processing the subsequent target data of the gyroscope.

[0118] This method can ensure that the working frequency of the ultrasonic device is maintained within a larger range, and can also maintain the distance between the ultrasonic device and the gyroscope within a smaller range, thereby achieving no restrictions in space and frequency, and improving the performance of the mobile terminal.

[0119] The present disclosure also proposes a device for eliminating resonance frequency interference, which is applied to a mobile terminal having a gyroscope and an ultrasonic device, and is used to implement the above method.

[0120] In an exemplary embodiment, a device for eliminating resonant frequency interference is provided, referring to Figure 7 As shown, the device includes a determination module 101 and a filtering module 102. The device is used to implement the above method. During the implementation process,

[0121] A determination module 101 is used to determine target data of a gyroscope;

[0122] A filtering module 102, configured to filter out data with a set frequency in the target data when the number of periodic data with a set frequency in the target data exceeds a period threshold; wherein the set frequency is determined according to a resonant frequency of the ultrasonic device and the gyroscope;

[0123] The determination module 101 is further configured to determine that the remaining data in the target data is non-interferenced data after the resonant frequency interference is eliminated.

[0124] In an exemplary embodiment, a device for eliminating resonant frequency interference is provided, which is an improvement of the above device. Specifically, referring to Figure 7 As shown, in the device, the determination module 101 is also used for:

[0125] Determining whether the gyroscope and the ultrasonic device are both in working state;

[0126] After determining that the gyroscope and the ultrasonic device are both in working state, target data of the gyroscope is determined.

[0127] In an exemplary embodiment, a device for eliminating resonant frequency interference is provided, which is an improvement of the above device. Specifically, referring to Figure 7 As shown, in the device, the determination module 101 is also used for:

[0128] Determine whether the gyroscope is in working condition;

[0129] If yes, then determine whether the ultrasonic device is in working state;

[0130] If the ultrasonic device is in working state, it is determined that both the gyroscope and the ultrasonic device are in working state.

[0131] In an exemplary embodiment, a device for eliminating resonant frequency interference is provided, which is an improvement of the above device. Specifically, referring to Figure 7 As shown, in the device, the determination module 101 is also used for:

[0132] Based on the control command, enter the mode of eliminating the resonant frequency interference;

[0133] In the mode of eliminating resonance frequency interference, it is determined whether the gyroscope and the ultrasonic device are both in working state.

[0134] In an exemplary embodiment, a device for eliminating resonant frequency interference is provided, which is an improvement of the above device. Specifically, referring to Figure 7 As shown, during the implementation of the above method, the device

[0135] The set frequency is 10 Hz-15 Hz; and / or the cycle threshold is 1-5.

[0136] In an exemplary embodiment, a device for eliminating resonant frequency interference is provided, which is an improvement of the above device. Specifically, referring to Figure 7 As shown, in the device, the determination module 101 is also used for:

[0137] The number of periodic data having a set frequency in the target data is determined by Fourier transform.

[0138] In an exemplary embodiment, a mobile terminal is provided. For example, the mobile terminal may be a mobile phone, a tablet computer, a notebook computer, or the like, which is a terminal having both a gyroscope and an ultrasonic device.

[0139] refer to Figure 8 As shown, mobile terminal 400 may include one or more of the following components: a processing component 402 , a memory 404 , a power component 406 , a multimedia component 408 , an audio component 410 , an input / output (I / O) interface 412 , a sensor component 414 , and a communication component 416 .

[0140] The processing component 402 generally controls the overall operation of the mobile terminal 400, such as operations associated with display, phone calls, data communications, camera operations, and recording operations. The processing component 402 may include one or more processors 420 to execute instructions to complete all or part of the steps of the above-mentioned method. In addition, the processing component 402 may include one or more modules to facilitate the interaction between the processing component 402 and other components. For example, the processing component 402 may include a multimedia module to facilitate the interaction between the multimedia component 408 and the processing component 402.

[0141] The memory 404 is configured to store various types of data to support operations on the mobile terminal 400. Examples of such data include instructions for any application or method operating on the mobile terminal 400, contact data, phone book data, messages, pictures, videos, etc. The memory 404 may be implemented by any type of volatile or non-volatile storage device or a combination thereof, such as static random access memory (SRAM), electrically erasable programmable read-only memory (EEPROM), erasable programmable read-only memory (EPROM), programmable read-only memory (PROM), read-only memory (ROM), magnetic memory, flash memory, magnetic disk or optical disk.

[0142] The power component 406 provides power to the various components of the mobile terminal 400. The power component 406 may include a power management system, one or more power supplies, and other components associated with generating, managing, and distributing power for the mobile terminal 400.

[0143] The multimedia component 408 includes a screen that provides an output interface between the mobile terminal 400 and the user. In some embodiments, the screen may include a liquid crystal display (LCD) and a touch panel (TP). If the screen includes a touch panel, the screen may be implemented as a touch screen to receive input signals from the user. The touch panel includes one or more touch sensors to sense touch, slide, and gestures on the touch panel. The touch sensor may not only sense the boundaries of the touch or slide action, but also detect the duration and pressure associated with the touch or slide operation. In some embodiments, the multimedia component 408 includes a front camera and / or a rear camera. When the mobile terminal 400 is in an operating mode, such as a shooting mode or a video mode, the front camera and / or the rear camera may receive external multimedia data. Each front camera and rear camera may be a fixed optical lens system or have a focal length and optical zoom capability.

[0144] The audio component 410 is configured to output and / or input audio signals. For example, the audio component 410 includes a microphone (MIC), and when the mobile terminal 400 is in an operation mode, such as a call mode, a recording mode, and a voice recognition mode, the microphone is configured to receive an external audio signal. The received audio signal can be further stored in the memory 404 or sent via the communication component 416. In some embodiments, the audio component 410 also includes a speaker for outputting audio signals.

[0145] I / O interface 412 provides an interface between processing component 402 and peripheral interface modules, such as keyboards, click wheels, buttons, etc. These buttons may include but are not limited to: a home button, a volume button, a start button, and a lock button.

[0146] The sensor assembly 414 includes one or more sensors for providing various aspects of status assessment for the mobile terminal 400. For example, the sensor assembly 414 can detect the open / closed state of the mobile terminal 400, the relative positioning of components, such as the display and keypad of the mobile terminal 400, and the sensor assembly 414 can also detect the position change of the mobile terminal 400 or a component of the mobile terminal 400, the presence or absence of user contact with the mobile terminal 400, the orientation or acceleration / deceleration of the mobile terminal 400, and the temperature change of the mobile terminal 400. The sensor assembly 414 may include a proximity sensor configured to detect the presence of nearby objects without any physical contact. The sensor assembly 414 may also include an optical sensor, such as a CMOS or CCD image sensor, for use in imaging applications. In some embodiments, the sensor assembly 414 may also include an acceleration sensor, a gyroscope sensor, a magnetic sensor, a pressure sensor, or a temperature sensor.

[0147] The communication component 416 is configured to facilitate wired or wireless communication between the mobile terminal 400 and other devices. The device 700 can access a wireless network based on a communication standard, such as WiFi, 2G or 3G, or a combination thereof. In an exemplary embodiment, the communication component 416 receives a broadcast signal or broadcast-related information from an external broadcast management system via a broadcast channel. In an exemplary embodiment, the communication component 416 also includes a near field communication (NFC) module to facilitate short-range communication. For example, the NFC module can be implemented based on radio frequency identification (RFID) technology, infrared data association (IrDA) technology, ultra-wideband (UWB) technology, Bluetooth (BT) technology and other technologies.

[0148] In an exemplary embodiment, the mobile terminal 400 may be implemented by one or more application-specific integrated circuits (ASICs), digital signal processors (DSPs), digital signal processing devices (DSPDs), programmable logic devices (PLDs), field programmable gate arrays (FPGAs), controllers, microcontrollers, microprocessors or other electronic components to perform the above methods.

[0149] In an exemplary embodiment, a non-transitory computer-readable storage medium including instructions is also provided, such as a memory 404 including instructions, and the above instructions can be executed by the processor 420 of the mobile terminal 400 to complete the above method. For example, the non-transitory computer-readable storage medium can be a ROM, a random access memory (RAM), a CD-ROM, a magnetic tape, a floppy disk, and an optical data storage device, etc. When the instructions in the storage medium are executed by the processor of the mobile terminal, the mobile terminal is enabled to perform the method shown in the above embodiment.

[0150] Those skilled in the art will readily appreciate other embodiments of the present invention after considering the specification and practicing the invention disclosed herein. This application is intended to cover any variations, uses or adaptations of the present invention that follow the general principles of the present invention and include common knowledge or customary techniques in the art that are not disclosed in this disclosure. The specification and examples are intended to be exemplary only, and the true scope and spirit of the present invention are indicated by the claims.

[0151] It should be understood that the present invention is not limited to the exact construction that has been described above and shown in the drawings and that various modifications and changes may be made without departing from the scope thereof. The scope of the present invention is limited only by the appended claims.

Claims

1. A method for eliminating resonant frequency interference, applied to a terminal device having both a gyroscope and an ultrasonic device, characterized in that: The method comprises: Determine the target data of the gyroscope; When the number of periodic data with a set frequency in the target data exceeds a period threshold, filtering out the data with the set frequency in the target data; wherein the set frequency is determined according to the resonant frequency of the ultrasonic device and the gyroscope; The remaining data in the target data is determined to be undisturbed data after the resonant frequency interference is eliminated.

2. The method for eliminating resonant frequency interference according to claim 1, characterized in that: The method further comprises: determining whether the gyroscope and the ultrasonic device are both in working state; After determining that the gyroscope and the ultrasonic device are both in working state, target data of the gyroscope is determined.

3. The method for eliminating resonant frequency interference according to claim 2, characterized in that: The step of determining that both the gyroscope and the ultrasonic device are in working state comprises: Determine whether the gyroscope is in working condition; If yes, then determine whether the ultrasonic device is in working state; If the ultrasonic device is in working state, it is determined that both the gyroscope and the ultrasonic device are in working state.

4. The method for eliminating resonant frequency interference according to claim 2, characterized in that: The method further comprises: Based on the control command, enter the mode of eliminating the resonant frequency interference; In the mode of eliminating resonance frequency interference, it is determined whether the gyroscope and the ultrasonic device are both in working state.

5. The method for eliminating resonant frequency interference according to any one of claims 1 to 4, characterized in that: The set frequency is 10 Hz-15 Hz; and / or, The cycle threshold is 1-5.

6. The method for eliminating resonant frequency interference according to any one of claims 1 to 4, characterized in that: The method further comprises: The number of periodic data having a set frequency in the target data is determined by Fourier transform.

7. A device for eliminating resonant frequency interference, applied to a terminal device having both a gyroscope and an ultrasonic device, characterized in that: The device comprises: A determination module, used for determining target data of the gyroscope; A filtering module, configured to filter out data with a set frequency in the target data when the number of periodic data with a set frequency in the target data exceeds a period threshold; wherein the set frequency is determined according to a resonant frequency of the ultrasonic device and the gyroscope; The determination module is further used to determine that the remaining data in the target data is non-interference data after the resonant frequency interference is eliminated.

8. The device for eliminating resonance frequency interference according to claim 7, characterized in that: The determining module is further used for: Determining whether the gyroscope and the ultrasonic device are both in working state; After determining that the gyroscope and the ultrasonic device are both in working state, target data of the gyroscope is determined.

9. The device for eliminating resonance frequency interference according to claim 8, characterized in that: The determining module is further used for: Determine whether the gyroscope is in working condition; If yes, then determine whether the ultrasonic device is in working state; If the ultrasonic device is in working state, it is determined that both the gyroscope and the ultrasonic device are in working state.

10. The device for eliminating resonance frequency interference according to claim 8, characterized in that: The determining module is further used for: Based on the control command, enter the mode of eliminating the resonant frequency interference; In the mode of eliminating resonance frequency interference, it is determined whether the gyroscope and the ultrasonic device are both in working state.

11. The device for eliminating resonant frequency interference according to any one of claims 7 to 10, characterized in that: The set frequency is 10 Hz-15 Hz; and / or, The cycle threshold is 1-5.

12. The device for eliminating resonant frequency interference according to any one of claims 7 to 10, characterized in that: The determining module is further used for: The number of periodic data having a set frequency in the target data is determined by Fourier transform.

13. A mobile terminal, characterized in that: The mobile terminal includes a gyroscope and an ultrasonic device, and the mobile terminal also includes: processor; a memory for storing processor-executable instructions; The processor is configured to execute the method for eliminating resonance frequency interference according to any one of claims 1 to 6.

14. A non-transitory computer-readable storage medium, characterized in that: When the instructions in the storage medium are executed by a processor of a mobile terminal, the mobile terminal is enabled to execute the method for eliminating resonance frequency interference as claimed in any one of claims 1 to 6.