Method for processing abnormal noise of electronic equipment, electronic equipment and storage medium

By collecting and analyzing the comparison between the first motor vibration audio and the reference audio in the mobile phone, adjusting the vibration parameters solves the problem of resonance and abnormal noise of the entire motor and the camera motor, improving the user experience.

CN118264742BActive Publication Date: 2025-08-26HONOR DEVICE CO LTD
View PDF 1 Cites 0 Cited by

Patent Information

Application Number
CN202211676681.4
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2022-12-26
Publication Date
2025-08-26
Estimated Expiration
2042-12-26

AI Technical Summary

Technical Problem

When the vibration frequency of the entire motor in the mobile phone is the same as or close to the natural frequency of the camera motor, it will cause resonance and abnormal noise, affecting the user experience.

Method used

By collecting the audio when the first motor vibrates and the reference audio for comparison and analysis, the vibration parameters of the first motor are adjusted to eliminate resonance, including adjusting the vibration frequency and vibration amount, and adaptive adjustments are made using information such as resonance parameters and inclination angle.

Benefits of technology

Effectively eliminates resonant abnormal noise, improves user experience, and ensures that it can be adaptively adjusted at specific angles to avoid abnormal noise.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118264742B_ABST
    Figure CN118264742B_ABST
Patent Text Reader

Abstract

The present application discloses a method for processing abnormal noises in electronic devices, an electronic device, and a storage medium, and relates to the field of electronic devices. The method includes: the electronic device includes a first motor and a second motor, the first motor is vibrated in response to a first event, a first vibration audio when the first motor vibrates is collected, the first vibration audio and a reference audio are compared and analyzed to determine whether the electronic device has abnormal noises, and when the electronic device has abnormal noises, the vibration parameters of the first motor are adjusted according to an index that causes the first motor and the second motor to resonate, and a second vibration audio is emitted based on the adjusted vibration parameters. Since the audio when the electronic device has no abnormal noises is used as a reference, the collected first vibration audio is compared with the reference audio, so that the presence of abnormal noises in the electronic device can be accurately detected. Since the resonance parameter is an index that causes the first motor and the second motor to resonate, adjusting the vibration parameters of the first motor according to the index can effectively solve the problem of abnormal noises.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the field of electronic equipment, and in particular to a method for processing abnormal noise of an electronic equipment, an electronic equipment, and a storage medium. Background Art

[0002] The motor in a phone's integrated circuit generates vibration alerts, while the motor in the camera adjusts the camera's focus. Because the vibration frequency of the phone's integrated circuit motor is the same as or close to the natural frequency of the camera's motor, the camera's motor is affected by the vibration of the integrated circuit motor, causing unusual noises in the phone and impacting the user experience. Summary of the Invention

[0003] The present application provides a method for processing abnormal noises in electronic devices, electronic devices, and storage media, which solve the problem of abnormal noises in mobile phones and improve user experience.

[0004] In a first aspect, a method for processing abnormal noises in an electronic device is provided, the method comprising: the electronic device comprising a first motor and a second motor, the first motor being the motor of the electronic device, and the second motor being the motor of a microphone in the electronic device; in response to a first event, the first motor of the electronic device is vibrated, a first vibration audio when the first motor vibrates is collected, the first vibration audio is compared and analyzed with a reference audio to determine whether the electronic device has abnormal noises, the reference audio being the audio emitted by the electronic device when the first motor vibrates and the electronic device has no abnormal noises; in the case that the electronic device has abnormal noises, the vibration parameters of the first motor are adjusted according to resonance parameters, and a second vibration audio is emitted based on the adjusted vibration parameters, the second vibration audio being the audio when the abnormal noise of the electronic device is less than a first threshold value, the abnormal noise comprising resonance between the first motor and the second motor, the resonance parameters being used to indicate an indicator causing the first motor and the second motor to resonate, and the vibration parameters comprising vibration frequency and / or vibration amount.

[0005] Because the vibration frequency of the first motor in the electronic device coincides with or approaches the natural frequency of the second motor in the camera during vibration, resonance is induced and abnormal noise is generated. The vibration of the second motor can also cause the camera to collide with the housing of the electronic device or other locations inside the electronic device, generating abnormal noise. The present application collects a reference audio signal emitted by the electronic device when the first motor is vibrating and the second motor is not vibrating and does not cause the second motor to resonate. That is, the reference audio signal is the audio signal when the electronic device is not making abnormal noise. The reference audio signal can be used as a reference. By comparing and analyzing the first vibration audio signal collected when the electronic device may be making abnormal noise with the reference audio signal, it is possible to accurately detect the presence of abnormal noise in the electronic device. The resonance parameter is used to indicate the index that causes the first motor and the second motor to resonate. Experiments have previously verified that when the electronic device is at this index and produces abnormal noise, the electronic device eliminates the vibration parameter of the first motor that causes the abnormal noise and stores the corresponding relationship between the index and the vibration parameter. Therefore, when the electronic device is making abnormal noise, adjusting the vibration parameter of the first motor according to the index that causes the first motor and the second motor to resonate can effectively solve the problem of abnormal noise.

[0006] In combination with the first aspect, in a possible implementation method, the resonance parameter includes the tilt angle of the electronic device, the tilt angle of the electronic device is obtained through a sensor, and based on the current tilt angle of the electronic device, the target vibration parameter corresponding to the current tilt angle of the electronic device in the first corresponding relationship is determined, and the vibration parameter of the first motor is adjusted to the target vibration parameter.

[0007] Typically, when the electronic device is at a certain specific tilt angle and the vibration frequency of the first motor is the same as or close to the natural frequency of the second motor, the first motor and the second motor will resonate. However, the electronic device cannot control its own tilt angle and requires external equipment or manual adjustment, which cannot achieve self-adaptation. Therefore, when the electronic device is at the above-mentioned specific tilt angle, the vibration parameters of the first motor are adjusted according to the corresponding relationship between the tilt angle of the electronic device and the vibration parameters of the first motor stored in the electronic device, eliminating or weakening the resonance of the first motor and the second motor, and solving the problem of abnormal noise.

[0008] In combination with the first aspect, in another possible implementation method, the resonance parameters also include the frequency configuration of the second motor and the frequency configuration of the first motor. After adjusting the vibration parameters of the first motor according to the current tilt angle of the electronic device, if it is determined at the first moment that the abnormal sound of the electronic device is greater than the first threshold, the frequency configuration of the second motor and the frequency configuration of the first motor are obtained; based on the frequency configuration of the second motor and the frequency configuration of the first motor, it is determined that the first motor and the second motor belong to the target motor combination in the second corresponding relationship; and the vibration parameters of the first motor are adjusted to the target vibration parameters corresponding to the target motor combination.

[0009] Because the vibration frequency of the first motor is identical or close to the natural frequency of the second motor, the second motor resonates with the vibration of the first motor. Increasing the difference between the natural frequency of the second motor and the vibration frequency of the first motor can prevent this resonance, which in turn causes abnormal noise. Therefore, adjusting the vibration parameters of the first motor based on the second correspondence can further ensure the successful elimination of abnormal noise in electronic equipment.

[0010] In combination with the first aspect, in another possible implementation, when the electronic device does not have a sensor that can identify the tilt angle of the electronic device, the frequency configuration of the second motor and the frequency configuration of the first motor are obtained; based on the frequency configuration of the second motor and the frequency configuration of the first motor, it is determined that the first motor and the second motor belong to a target motor combination in a second corresponding relationship; and the vibration parameters of the first motor are adjusted to the target vibration parameters corresponding to the target motor combination.

[0011] Since the natural frequency of the second motor is the same as or close to the vibration frequency of the first motor, the second motor is affected by the vibration of the first motor and resonates. By increasing the difference between the natural frequency of the second motor and the vibration frequency of the first motor, the resonance between the first motor and the second motor can be avoided, thereby preventing abnormal noise. It can also solve the problem of abnormal noise generated by some electronic devices that do not have sensors that can identify the tilt angle.

[0012] In combination with the first aspect, in another possible implementation, a sound pressure level difference value is determined based on the first vibration audio and the reference audio. When the sound pressure level difference value is greater than a second threshold, it indicates that an abnormal sound exists in the electronic device.

[0013] Sound pressure level is a characteristic of the human ear's response to changes in sound intensity, that is, the sound pressure level indicates the size of the sound. The sound pressure level of the reference audio can be used to indicate the sound that the human ear can hear when the electronic device has no abnormal sound. The sound pressure level of the first vibration audio can be used to indicate the sound that the human ear can hear when both the first motor and the second motor are vibrating. The louder the abnormal sound that the human ear can hear, the greater the difference in sound pressure levels determined by the first vibration audio and the reference audio. Therefore, based on the difference in sound pressure levels between the first vibration audio and the reference audio, it is possible to accurately determine whether the electronic device has abnormal sounds that are audible to the human ear, so that when abnormal sounds are detected, the vibration parameters of the first motor can be adjusted in a timely manner to quickly eliminate the abnormal sounds, thereby preventing users of the electronic device from hearing abnormal sounds and mistakenly believing that the electronic device has a fault, thereby improving the user experience of the electronic device.

[0014] In a second aspect, the present application provides an electronic device. The electronic device includes a microphone, a first motor, a second motor, a memory, and one or more processors. The first motor is a motor of the electronic device, and the second motor is a motor of a camera in the electronic device. The microphone, the first motor, the second motor, the memory, and the processor are coupled. The memory stores computer program code, which includes computer instructions. When executed by the processor, the computer instructions cause the electronic device to perform the following steps: in response to a first event, the first motor vibrates; the microphone collects a first vibration audio signal when the first motor vibrates; the first vibration audio signal is compared and analyzed with a reference audio signal to determine whether the electronic device has an abnormal sound; the reference audio signal is the audio signal emitted by the electronic device when the first motor vibrates and the electronic device does not have an abnormal sound; if the electronic device has an abnormal sound, the vibration parameters of the first motor are adjusted according to a resonance parameter, and a second vibration audio signal is emitted based on the adjusted vibration parameters. The second vibration audio signal is the audio signal when the abnormal sound of the electronic device is less than a first threshold value. The abnormal sound is caused by resonance between the first motor and the second motor. The resonance parameter indicates an indicator of the resonance between the first motor and the second motor. The vibration parameter includes vibration frequency and / or vibration volume.

[0015] In conjunction with the second aspect, in one possible implementation, the resonance parameter includes a tilt angle of the electronic device. When the computer instructions are executed by the processor, the electronic device further performs the following steps: identifying a current tilt angle of the electronic device; based on the current tilt angle of the electronic device, determining a target vibration parameter corresponding to the current tilt angle of the electronic device in the first correspondence, and adjusting the vibration parameter of the first motor to the target vibration parameter.

[0016] Among them, the first corresponding relationship includes at least one tilt angle of the electronic device and the target vibration parameters of the first motor corresponding to each tilt angle. The target vibration parameters of the first motor corresponding to the tilt angle are used to make the abnormal sound of the electronic device at the tilt angle when the first motor vibrates less than the first threshold.

[0017] In conjunction with the second aspect, in another possible implementation, the resonance parameters further include the frequency configuration of the second motor and the frequency configuration of the first motor. When the computer instructions are executed by the processor, the electronic device further performs the following steps: after adjusting the vibration parameters of the first motor according to the current tilt angle of the electronic device, if it is determined at a first moment that the abnormal sound of the electronic device is greater than a first threshold, the frequency configuration of the second motor and the frequency configuration of the first motor are obtained; the first moment is a moment after the current moment; based on the frequency configuration of the second motor and the frequency configuration of the first motor, it is determined that the first motor and the second motor belong to a target motor combination in a second corresponding relationship; and the vibration parameters of the first motor are adjusted to target vibration parameters corresponding to the target motor combination.

[0018] Among them, the second corresponding relationship includes at least one motor combination and the target vibration parameters corresponding to each motor combination, the motor combination includes a first motor and a second motor, and the electronic device including the motor combination generates an abnormal sound less than a first threshold when the first motor vibrates with the target vibration parameters corresponding to the motor combination.

[0019] In conjunction with the second aspect, in another possible implementation, the resonance parameters include the frequency configuration of the second motor and the frequency configuration of the first motor. When the computer instructions are executed by the processor, the electronic device further performs the following steps: obtaining the frequency configuration of the second motor and the frequency configuration of the first motor; determining, based on the frequency configuration of the second motor and the frequency configuration of the first motor, that the first motor and the second motor belong to a target motor combination in a second corresponding relationship; and adjusting the vibration parameters of the first motor to target vibration parameters corresponding to the target motor combination.

[0020] Among them, the second corresponding relationship includes at least one motor combination and the target vibration parameters corresponding to each motor combination, the motor combination includes a first motor and a second motor, and the electronic device including the motor combination generates an abnormal sound less than a first threshold when the first motor vibrates with the target vibration parameters corresponding to the motor combination.

[0021] In combination with the second aspect, in another possible implementation method, when the computer instruction is executed by the processor, the electronic device further performs the following steps: determining a sound pressure level difference value based on the first vibration audio and the reference audio, the sound pressure level difference value being used to indicate the difference between the sound level of the first vibration audio and the sound level of the reference audio; when the sound pressure level difference value is greater than a second threshold value, it indicates that the electronic device has an abnormal sound.

[0022] In a third aspect, a computer-readable storage medium is provided, comprising computer software instructions; when the computer software instructions are executed in a computer, the computer is caused to execute a method as described in the first aspect or any possible implementation of the first aspect.

[0023] In a fourth aspect, a computer program product comprising instructions is provided, which, when executed on a computer, enables the computer to execute the method described in the first aspect or any one of the implementations of the first aspect.

[0024] Based on the implementation methods provided in the above aspects, this application can also be further combined to provide more implementation methods. BRIEF DESCRIPTION OF THE DRAWINGS

[0025] Figure 1 A schematic diagram of an electronic device with abnormal noise provided by an embodiment of the present application;

[0026] Figure 2A schematic diagram of the structure of an electronic device provided in an embodiment of the present application;

[0027] Figure 3 A software structure block diagram of an electronic device provided in an embodiment of the present application;

[0028] Figure 4 A schematic diagram of a specific flow chart of a method for processing abnormal noise of an electronic device provided in an embodiment of the present application;

[0029] Figure 5 A schematic diagram of a process for calculating a sound pressure level difference value provided in an embodiment of the present application;

[0030] Figure 6 A first spectrum diagram provided in an embodiment of the present application;

[0031] Figure 7 A second spectrum diagram provided in an embodiment of the present application;

[0032] Figure 8 A third spectrum diagram provided in an embodiment of the present application;

[0033] Figure 9 A fourth spectrum diagram provided in an embodiment of the present application;

[0034] Figure 10 A schematic diagram of a process for adjusting the vibration parameters of a first motor provided in an embodiment of the present application;

[0035] Figure 11 A schematic diagram of another process for adjusting the vibration parameters of the first motor provided in an embodiment of the present application;

[0036] Figure 12 A schematic diagram of the process of adaptively adjusting abnormal noises in a mobile phone according to an embodiment of the present application;

[0037] Figure 13 A schematic diagram of the structure of a device for processing abnormal noise of an electronic device provided in an embodiment of the present application. DETAILED DESCRIPTION

[0038] When the first few natural frequencies of certain components in electronic devices (such as cameras) are the same as or close to the vibration frequency of the device's motor, they are affected by the vibration of the motor, causing resonance and abnormal noise at certain angles due to vibration modal issues. Because electronic devices (such as camera modules) also contain motors, the natural frequencies of some camera motors may be close to the vibration frequency of the motor, making them very prone to resonance. This makes the resonance of camera motors affected by the motor a very common problem.

[0039] When consumers use electronic devices at a certain angle, and the motor of the entire device vibrates due to scenarios such as incoming calls (only in vibration mode, the abnormal sound in ringing mode will be covered by the ringtone and not easily detected), the camera will be forced to vibrate due to the vibration of the entire motor, producing abnormal sounds, and consumers will think that it is a malfunction of the electronic device. The occurrence of resonant abnormal sounds does not necessarily occur during the use of electronic devices. Instead, the use of electronic devices at a specific angle can trigger the camera motor to resonate and produce resonant abnormal sounds. Moreover, considering the vibration effect of the motor of the entire device, the improvement of the resonant abnormal sounds cannot be achieved by limiting the vibration of the motor of the entire device. Therefore, a real-time self-detection and correction method is needed that can perform adaptive adjustments when resonant abnormal sounds occur.

[0040] An embodiment of the present application provides a method for processing abnormal noises in an electronic device, which can solve the problem that when the vibration frequency of the first motor of the electronic device is close to or the same as the natural frequency of the second motor in the camera, the first motor and the second motor resonate when the electronic device is at certain specific tilt angles, causing the electronic device to produce abnormal noises.

[0041] Specifically, the electronic device vibrates the first motor in response to the first event, and by collecting the first vibration audio when the first motor vibrates, comparing and analyzing the first vibration audio and the reference audio preset in the electronic device, it is determined whether the electronic device has an abnormal sound. The reference audio is the audio when the first motor vibrates and the electronic device has no abnormal sound. When the electronic device has an abnormal sound, the vibration parameters of the first motor are adjusted according to the indicators that cause the first motor and the second motor to resonate, such as the vibration frequency and / or vibration amount, and a second vibration audio is emitted based on the adjusted vibration parameters. The second vibration audio is the audio when the abnormal sound of the electronic device is less than the first threshold value, and the abnormal sound includes the resonance between the first motor and the second motor.

[0042] Take mobile phones as an example, Figure 1 As shown, when the mobile phone is set to vibrate mode, in response to the first event, that is, triggering the alarm, the first motor vibrates, and the user picks up the mobile phone from the desktop, so that the mobile phone has a certain tilt angle. Since the natural frequency of the mobile phone camera, that is, the second motor, is close to or the same as the vibration frequency of the first motor, and the mobile phone has a certain tilt angle, it may cause the second motor to resonate. At this time, the mobile phone can automatically collect the audio at this time through the microphone, and analyze and compare the audio collected by the microphone at this time with the stored audio collected when the mobile phone has no abnormal sound. When the comparison result indicates that the mobile phone has an abnormal sound, an indicator that causes the first motor and the second motor to resonate is obtained, and the vibration parameters of the first motor are adjusted according to the indicator. A second vibration audio is emitted based on the adjusted vibration parameters. The second vibration audio is the audio when the abnormal sound of the electronic device is less than the threshold.

[0043] Since the reference audio frequency when only the first motor vibrates is the audio captured when no abnormal noise is generated, the reference audio frequency can be used as a reference. Therefore, by comparing and analyzing the first vibration audio frequency captured when the electronic device is experiencing abnormal noise with the reference audio frequency, the presence of abnormal noise can be accurately detected. Since the resonance parameter indicates the index that causes the first and second motors to resonate, the vibration parameter that does not generate abnormal noise when the electronic device is at that index is pre-verified through experiments, and the corresponding relationship between that index and the vibration parameter is stored, when the electronic device is experiencing abnormal noise, adjusting the vibration parameter of the first motor based on the index that causes the first and second motors to resonate can effectively resolve the abnormal noise problem.

[0044] The embodiments of the present application will be described in detail below with reference to the accompanying drawings.

[0045] In some embodiments, the electronic device 200 may be a mobile phone, tablet computer, desktop, laptop, notebook computer, ultra-mobile personal computer (UMPC), handheld computer, netbook, personal digital assistant (PDA), wearable electronic device, smart watch, etc. The embodiment of the present application does not impose any special restrictions on the specific form of the above electronic devices. In this embodiment, the structure of the electronic device 200 may be as follows: Figure 2 , which is a structural diagram of an electronic device 200 provided in an embodiment of the present application, and which may be an example of a mobile phone.

[0046] like Figure 2 As shown, the electronic device 200 may include a processor 210, an internal memory 220, an audio module, a sensor module 240, a first motor 250, a camera 260 and a second motor 261, etc., wherein the audio module may include a microphone 230, etc.

[0047] It should be understood that the structure illustrated in this embodiment does not constitute a specific limitation on the electronic device 200. In other embodiments, the electronic device 200 may include more or fewer components than shown, or may combine or separate certain components, or arrange the components differently. The illustrated components may be implemented in hardware, software, or a combination of software and hardware.

[0048] The processor 210 may include one or more processing units, for example: the processor 210 may include an application processor (AP), a modem processor, a graphics processing unit (GPU), an image signal processor (ISP), a controller, a video codec, a digital signal processor (DSP), a baseband processor, and / or a neural-network processing unit (NPU). Among them, different processing units can be independent devices or integrated into one or more processors. For example, in an embodiment of the present application, the processor 210 can be used to compare and analyze the first vibration audio collected by the microphone 230 when the first motor 250 vibrates and the reference audio collected by the microphone 230 when only the first motor 250 vibrates; when the sound pressure level difference between the first vibration audio and the reference audio is greater than a threshold value, it indicates that the first motor 250 and the second motor 261 resonate to produce an abnormal sound, and adjust the vibration parameters of the first motor 250 according to the first corresponding relationship and / or the second corresponding relationship stored in the internal memory 220.

[0049] The controller may be the nerve center and command center of the electronic device 200. The controller may generate an operation control signal according to the instruction operation code and the timing signal to complete the control of fetching and executing instructions.

[0050] Processor 210 may also include a memory for storing instructions and data. In some embodiments, the memory in processor 210 is a cache memory. This memory can store instructions or data that have just been used or are being recycled by processor 210. If processor 210 needs to use the same instruction or data again, it can directly access the memory. This avoids duplicate accesses, reduces processor 210 latency, and thus improves system efficiency.

[0051] In some embodiments, processor 210 may include one or more interfaces. The interfaces may include an inter-integrated circuit sound (I2S) interface, a mobile industry processor interface (MIPI), and / or a general-purpose input / output (GPIO) interface.

[0052] The I2S interface can be used for audio communication. In some embodiments, the processor 210 can include multiple I2S buses. The processor 210 can be coupled to the audio module via the I2S bus to enable communication between the processor 210 and the audio module.

[0053] The MIPI interface can be used to connect the processor 210 to peripheral devices such as the camera 260. The MIPI interface includes the camera serial interface (CSI) of the camera 260. In some embodiments, the processor 210 and the camera 260 communicate via the CSI interface to implement the camera function of the electronic device 200.

[0054] The GPIO interface can be configured through software. The GPIO interface can be configured as a control signal or a data signal. In some embodiments, the GPIO interface can be used to connect the processor 210 to the camera 260, microphone 230, sensor module 240, etc. The GPIO interface can also be configured as an I2S interface, a MIPI interface, etc.

[0055] It is understood that the interface connection relationship between the modules illustrated in this embodiment is merely a schematic illustration and does not constitute a structural limitation on the electronic device 200. In other embodiments of the present application, the electronic device 200 may also adopt different interface connection methods from the above embodiments, or a combination of multiple interface connection methods.

[0056] The internal memory 220 can be used to store computer executable program codes, which include instructions. The processor 210 executes various functional applications and data processing of the electronic device 200 by running the instructions stored in the internal memory 220. For example, in this embodiment, the processor 210 can process abnormal noises of the electronic device by executing instructions stored in the internal memory 220. The internal memory 220 may include a program storage area and a data storage area. Among them, the program storage area can store an operating system and an application required for at least one function. The data storage area can store data (such as audio data, sound pressure level difference values, etc.) created during the use of the electronic device 200.

[0057] In addition, the internal memory 220 may include a high-speed random access memory and may also include a non-volatile memory, such as at least one disk storage device, a flash memory device, a universal flash storage (UFS), etc. The processor 210 executes various functional applications and data processing of the electronic device 200 by running instructions stored in the internal memory 220 and / or instructions stored in a memory provided in the processor.

[0058] The internal memory 220 may also be used to store a first correspondence and a second correspondence, so that the processor 210 can adjust the vibration parameters of the first motor 250 according to the first correspondence and / or the second correspondence. The first correspondence includes the relationship between the tilt angle of the electronic device and the vibration parameters of the first motor 250, and the second correspondence includes the relationship between the natural frequency of the second motor 261 and the vibration parameters of the first motor 250.

[0059] The electronic device 200 can implement audio functions such as music playback and recording through the speaker, receiver, microphone 230, headphone jack, and application processor in the audio module.

[0060] The audio module is used to convert digital audio information into analog audio signal output, and is also used to convert analog audio input into digital audio signals. The audio module can also be used to encode and decode audio signals. In some embodiments, the audio module can be provided in the processor 210, or some functional modules of the audio module can be provided in the processor 210.

[0061] The microphone 230, also known as a "microphone" or "microphone", is used to convert sound signals into electrical signals. When making a call or sending a voice message, the user can speak by putting their mouth close to the microphone 230 to input the sound signal into the microphone 230. In some embodiments, the microphone 230 can also be used to collect the first vibration audio when the first motor 250 vibrates. The electronic device 200 can be provided with at least one microphone 230. In other embodiments, the electronic device 200 can be provided with two microphones 230, which can not only collect sound signals but also realize noise reduction functions. In other embodiments, the electronic device 200 can also be provided with three, four or more microphones 230 to collect sound signals, reduce noise, identify the source of sound, realize directional recording functions, etc.

[0062] The first motor 250 can generate a vibration prompt. The first motor 250 can be used for incoming call vibration prompts or for touch vibration feedback. For example, touch operations on different applications (such as taking photos, playing audio, etc.) can correspond to different vibration feedback effects. Different application scenarios (such as time reminders, receiving messages, alarm clocks, games, etc.) can also correspond to different vibration feedback effects.

[0063] The second motor 261 can be a motor in the camera 260, providing focus power to the camera 260, enabling the camera 260 to have a focus function. For example, the camera 260 is a zoom camera, which uses the second motor 261 to control the movement of the lens, thereby adjusting the focal length of the camera.

[0064] The sensor module 240 may include a gyro sensor 241 , a pressure sensor, an air pressure sensor, a magnetic sensor, an acceleration sensor, a distance sensor, a proximity light sensor, a fingerprint sensor, a temperature sensor, a touch sensor, an ambient light sensor, a bone conduction sensor, and the like.

[0065] The gyro sensor 241 can be used to determine the motion posture of the electronic device 200. In some embodiments, the tilt angle of the electronic device 200 can be determined by the gyro sensor 241, so that the processor 210 can determine the vibration parameters of the first motor 250 according to the tilt angle determined by the gyro sensor 241.

[0066] Furthermore, operating systems run on the above components, such as the iOS operating system developed by Apple, the Android open-source operating system developed by Google, and the Windows operating system developed by Microsoft. Application programs can be installed and run on these operating systems.

[0067] The operating system of the electronic device 200 can adopt a layered architecture, an event-driven architecture, a micro-kernel architecture, a micro-service architecture, or a cloud architecture. In the embodiment of the present application, the Android system with a layered architecture is used as an example to illustrate the software structure of the electronic device 200.

[0068] Figure 3 It is a software structure block diagram of the electronic device 200 provided in an embodiment of the present application.

[0069] A layered architecture divides software into several layers, each with distinct roles and responsibilities. Layers communicate with each other through software interfaces. In some embodiments, the Android system is divided into four layers: the application layer, the application framework layer, the Android runtime and system libraries, and the kernel layer.

[0070] The application layer can include a series of application packages. Figure 3 As shown, the application package may include applications such as camera, gallery, calendar, call, map, navigation, WLAN, Bluetooth, music, video, and short message. For example, in this embodiment of the application, the application package may also include abnormal sound processing. When the electronic device generates an abnormal sound, the camera application can access the abnormal sound processing interface management service provided by the application framework layer.

[0071] The application framework layer provides application programming interface (API) and programming framework for the applications in the application layer. The application framework layer includes some predefined functions. Figure 3As shown, the application framework layer may include a window manager, a content provider, a view system, a phone manager, a resource manager, a notification manager, etc. For example, in an embodiment of the present application, when handling abnormal sounds, the application framework layer may provide the application layer with APIs related to the abnormal sound handling function and provide the application layer with abnormal sound handling interface management services to implement the abnormal sound handling function.

[0072] The window manager is used to manage window programs. The window manager can obtain the display size, determine whether there is a status bar, lock the screen, take screenshots, etc.

[0073] Content providers are used to store and retrieve data and make it accessible to applications. The data may include videos, images, audio, calls made and received, browsing history and bookmarks, phone books, etc.

[0074] The view system includes visual controls, such as those for displaying text and images. The view system is used to build applications. A display interface can consist of one or more views. For example, a display interface containing a text notification icon might include a view for displaying text and a view for displaying images.

[0075] The phone manager is used to provide communication functions of the electronic device 200, such as management of call status (including answering, hanging up, etc.).

[0076] The resource manager provides various resources for applications, such as localized strings, icons, images, layout files, video files, and so on.

[0077] The Notification Manager allows applications to display notifications in the status bar. These messages can be displayed briefly and then disappear automatically without user interaction. For example, the Notification Manager is used to notify users of completed downloads and message reminders. The Notification Manager can also display notifications in the top status bar of the system as icons or scrolling text, such as notifications from background applications, or as dialog windows on the screen. Examples include text messages in the status bar, beeps, vibrations on electronic devices, and flashing indicator lights.

[0078] Android Runtime includes core libraries and a virtual machine. Android Runtime is responsible for scheduling and management of the Android system.

[0079] The core library consists of two parts: one is the function that needs to be called by the Java language, and the other is the Android core library.

[0080] The application layer and application framework layer run in a virtual machine. The virtual machine executes Java files in the application layer and application framework layer as binary files. The virtual machine manages object lifecycles, stack management, thread management, security and exception management, and garbage collection.

[0081] The system library can include multiple functional modules, such as surface manager, media library, 3D graphics processing library (such as OpenGL ES), 2D graphics engine (such as SGL), etc.

[0082] The surface manager is used to manage the display subsystem and provide fusion of 2D and 3D layers for multiple applications.

[0083] The media library supports playback and recording of a variety of common audio and video formats, as well as static image files. The media library can support a variety of audio and video encoding formats, such as: MPEG4, H.264, MP3, AAC, AMR, JPG, PNG, etc.

[0084] The 3D graphics processing library is used to implement 3D graphics drawing, image rendering, compositing, and layer processing.

[0085] A 2D graphics engine is a drawing engine for 2D drawings.

[0086] The kernel layer is the layer between hardware and software. The kernel layer includes at least display driver, camera driver, audio driver, and sensor driver.

[0087] It should be noted that although the embodiments of the present application are described using the Android system as an example, its basic principles are also applicable to electronic devices based on operating systems such as iOS or Windows.

[0088] The system architecture and application scenarios described in the embodiments of the present application are intended to more clearly illustrate the technical solutions of the embodiments of the present application, and do not constitute a limitation on the technical solutions provided in the embodiments of the present application. Those skilled in the art will appreciate that, with the evolution of the system architecture and the emergence of new business scenarios, the technical solutions provided in the embodiments of the present application are equally applicable to similar technical problems.

[0089] Next, a method for processing abnormal noise of an electronic device will be described in detail with reference to the accompanying drawings. Figure 4 A flowchart of a method for processing abnormal noise of an electronic device provided in an embodiment of the present application. The electronic device includes a processor, a memory, a microphone, a first motor and a second motor. For example, the electronic device may be Figure 2 The electronic device 200 is shown.

[0090] Step 410: In response to a first event, the first motor vibrates.

[0091] When the electronic device is set to vibrate, an excitation signal is generated in response to a first event to excite the first motor to begin vibrating. The first event indicates the event that causes the first motor to vibrate while the electronic device is in vibrate mode. For example, the first event can be an incoming call, an alarm, a text message, etc.

[0092] Step 420: The microphone collects the first vibration audio when the first motor vibrates.

[0093] When the electronic device is in a vibrating state, the first motor can be vibrated in response to a first event. In order to monitor whether the second motor is affected by the vibration of the first motor to resonate and produce abnormal noise, the first vibration audio when the first motor vibrates can also be collected by the microphone in the electronic device. The first vibration audio is used to compare with the preset reference audio to determine whether the second motor and the first motor resonate and make abnormal noise. The reference audio is collected in advance by the microphone of the electronic device when only the first motor vibrates, that is, the vibration noise of the first motor.

[0094] In one embodiment, the path of the first motor is called in response to a first event. Calling the path of the first motor means that the processor sends an excitation signal to the first motor to cause the first motor to start vibrating, such as vibration for an incoming call, vibration for an alarm, vibration for a text message, etc. Since the vibration frequency of the first motor is close to or the same as the natural frequency of the second motor, when the first motor starts to vibrate, the microphone can capture the first vibration audio emitted by the electronic device at this time. At this time, the second motor may be affected by the first motor and resonate to produce an abnormal sound. By analyzing and comparing the first vibration audio and the reference audio, it can be determined whether the first motor and the second motor resonate to produce an abnormal sound.

[0095] Step 430: The processor analyzes the first vibration audio and the reference audio to determine whether the electronic device has an abnormal sound.

[0096] The processor determines whether the second motor is resonating due to the vibration of the first motor. If so, the second motor is operating and not resonating due to the vibration of the first motor, and the vibration parameters of the first motor remain unchanged. If not, the second motor may be resonating due to the vibration of the first motor, causing the abnormal noise.

[0097] The processor can compare and analyze the first vibration audio collected by the microphone when the first motor vibrates and the reference audio preset in the electronic device when only the first motor vibrates, to determine whether there is an abnormal sound in the electronic device. Figure 5 This is a flow chart of calculating the sound pressure level difference value provided by the embodiment of the present application. Figure 5As shown, the process of calculating the sound pressure level difference value may include steps 510 to 550.

[0098] Exemplarily, first, spectrum analysis is performed on the first vibration audio and the reference audio by digital signal processing (DSP) (i.e., executing step 510) to obtain a first spectrum diagram. Specifically, the first vibration audio and the reference audio can be decomposed into a plurality of single harmonic components by Fourier transform to obtain the frequency structure of the first vibration audio and the reference audio as well as the harmonic and phase information, and the following is obtained: Figure 6 The spectrum diagram shown in Figure 1 is as follows. Figure 6 In the spectrum diagram shown, the horizontal axis is the frequency, which can be 0 Hz, 0.5*104 Hz, 1*104 Hz, 1.5*104 Hz, 2*104 Hz, and 2.5*104 Hz. Figure 6 In the spectrum diagram shown, the vertical axis is the gain, which can be -40dB, -30dB, -20dB, -10dB, 0dB, 10dB, 20dB, 30dB, 40dB. Figure 6 It can be seen that the gain of the first vibration audio is generally increased compared with the reference audio, and the difference is large. The spectrum of the first vibration audio is also relatively chaotic. Therefore, the first vibration audio may contain abnormal sounds and requires further analysis.

[0099] Secondly, when the first motor vibrates, the first motor itself produces vibration noise, and the fluctuation of the fundamental frequency of the vibration noise of the first motor itself has a great influence on the judgment of abnormal sound. Therefore, the fundamental frequency and its multiples of the first motor in the first spectrum can be filtered out by a high-pass filter (i.e., executing step 520) to obtain a second spectrum. The second spectrum with the fundamental frequency and multiples filtered out is as follows: Figure 7 As shown. Among them, Figure 7 In the spectrum diagram shown, the horizontal axis is the frequency, which can be 0 Hz, 0.5*104 Hz, 1*104 Hz, 1.5*104 Hz, 2*104 Hz, and 2.5*104 Hz. Figure 7 In the spectrum diagram shown, the vertical axis is gain, which can be -40 dB, -35 dB, -30 dB, -25 dB, -20 dB, -15 dB, -10 dB, -5 dB, and 0 dB.

[0100] In the embodiment of the present application, after filtering out the fundamental frequency and the frequency multiplication of the first motor, there is still some noise of the first motor below 1kHz that has not been filtered out. Therefore, a high-pass filter is used to further perform high-pass filtering on the first vibration audio and the reference audio after filtering out the fundamental frequency and the frequency multiplication (i.e., executing step 530) to obtain a third spectrum diagram. The spectrum diagram after high-pass filtering is shown in FIG. Figure 8 As shown. Among them, Figure 8In the spectrum diagram shown, the horizontal axis is the frequency, which can be 0*104Hz, 0.2*104Hz, 0.4*104Hz, 0.6*104Hz, 0.8*104Hz, 1*104Hz, 1.2*104Hz, 1.4*104Hz, 1.6*104Hz, 1.8*104Hz, 2*104Hz. Figure 8 In the spectrum diagram shown, the vertical axis is gain, which can be -35 dB, -30 dB, -25 dB, -20 dB, -15 dB, -10 dB, and -5 dB.

[0101] Sounds audible to the human ear have a specific frequency range (20-20 kHz) and a specific sound pressure level range (0-130 dB). Sound pressure level is the characteristic of the human ear's response to changes in sound intensity; it indicates the loudness of a sound. The sound heard by the human ear differs from the sound measured by a microphone. This is because the human body alters the distribution of the sound field. The human body and outer ear cause sound reflection, absorption, and resonance, resulting in significant differences. Therefore, various weightings are often applied to the spectrum during audio analysis, such as A-weighting, B-weighting, C-weighting, and D-weighting.

[0102] Since the result obtained after A-weighted filtering is very close to the feeling of the human ear, in the embodiment of the present application, the first vibration audio and the reference audio after high-pass filtering are further filtered by A-weighted filtering (i.e., step 540 is executed) to obtain a fourth spectrum diagram. The fourth spectrum diagram after A-weighted filtering is as shown in FIG. Figure 9 As shown. Among them, Figure 9 In the spectrum diagram shown, the horizontal axis is the frequency, which can be 0*104Hz, 0.2*104Hz, 0.4*104Hz, 0.6*104Hz, 0.8*104Hz, 1*104Hz, 1.2*104Hz, 1.4*104Hz, 1.6*104Hz, 1.8*104Hz, 2*104Hz. Figure 9 In the spectrum diagram shown, the vertical axis is the gain, which can be -45 dB, -40 dB, -35 dB, -30 dB, -25 dB, -20 dB, -15 dB, -10 dB, -5 dB. Figure 9 It can be seen that the greater the difference in gain between the first vibration audio and the reference audio, the greater the abnormal noise is likely to be.

[0103] Afterwards, the sound pressure levels of the first vibration audio and the reference audio after A-weighted filtering can be calculated, and the sound pressure level difference value can be calculated (i.e., executing step 550). Then, by judging whether the sound pressure level difference value exceeds the second threshold value, it is judged whether the first motor and the second motor resonate, thereby generating abnormal noise. When the sound pressure level difference value of the first vibration audio and the reference audio is greater than the second threshold value, it indicates that the first motor and the second motor resonate, and the electronic device generates abnormal noise. When the sound pressure level difference value of the first vibration audio and the reference audio is less than the second threshold value, it indicates that the first motor and the second motor do not resonate, and the electronic device does not generate abnormal noise.

[0104] In summary, filtering out the fundamental frequency and harmonics of the motor's vibration can mitigate the impact of the motor's inherent vibration noise. High-pass filtering based on the spectral characteristics of the abnormal sound can further mitigate the impact of low-frequency bands. Finally, A-weighting is used to filter the sound based on the characteristics of the human ear, calculate the sound pressure level, and then calculate the difference in sound pressure levels. This difference in sound pressure levels can be used to determine whether the abnormal sound is audible to the human ear, thereby accurately determining whether the first and second motors are resonating and generating the abnormal sound.

[0105] Step 440: When an abnormal sound is generated in the electronic device, the processor adjusts the vibration parameters of the first motor according to the resonance parameters.

[0106] In one example, step 440 may be understood as adjusting the vibration parameters of the first motor according to the resonance parameters once the electronic device generates an abnormal sound, wherein the abnormal sound may refer to resonance between the first motor and the second motor.

[0107] In another example, step 440 can be understood as adjusting the vibration parameters of the first motor according to the resonance parameters when an abnormal sound occurs in the electronic device and the abnormal sound is greater than the first threshold, that is, when the abnormal sound is relatively loud.

[0108] In an embodiment of the present application, as described in the above embodiment, when the sound pressure level difference between the first vibration audio and the reference audio is greater than the second threshold value, it indicates that the first motor and the second motor resonate and the electronic device produces an abnormal sound. When the sound pressure level difference between the first vibration audio and the reference audio is greater than the first threshold value (the first threshold value is greater than the second threshold value), it indicates that the abnormal sound is large and exceeds the user's acceptable range. When the sound pressure level difference between the first vibration audio and the reference audio is less than the first threshold value and greater than the second threshold value, it indicates that although the abnormal sound exists, it is within the user's acceptable range.

[0109] In an embodiment of the present application, the processor can adjust the vibration parameters of the first motor, such as the vibration frequency and / or the vibration amount, according to the first corresponding relationship and / or the second corresponding relationship. The vibration frequency refers to the number of times the first motor vibrates per second. The vibration amount refers to the vibration amplitude of the first motor. Among them, the first corresponding relationship and the second corresponding relationship are obtained based on experimental verification and can be pre-stored in the memory. Therefore, adjusting the vibration frequency and vibration amount of the first motor according to the first corresponding relationship and / or the second corresponding relationship can effectively solve some resonance problems of electronic devices.

[0110] The first correspondence includes at least one tilt angle of the electronic device and a target vibration parameter of the first motor corresponding to each tilt angle. The target vibration parameter of the first motor corresponding to the tilt angle is used to ensure that the abnormal sound of the electronic device at the tilt angle when the first motor vibrates is less than a first threshold. The first correspondence can be obtained as follows.

[0111] For example, an electronic device is placed on a three-axis rotating mechanical device that can rotate and set the angle at which the electronic device stays, so that the electronic device is at different tilt angles. When the electronic device is at different tilt angles, the first motor is stimulated to vibrate and the audio at this time is collected; by calculating the difference in sound pressure levels between the audio collected when the electronic device is at different tilt angles and the audio collected when only the first motor vibrates, it is determined whether the abnormal sound of the electronic device is greater than a first threshold. For tilt angles where the abnormal sound is greater than the first threshold, the vibration frequency and vibration amount of the first motor are adjusted until the abnormal sound of the electronic device is less than the first threshold, that is, the sound pressure level difference is less than the threshold. The tilt angle, the vibration frequency, and the vibration amount are stored in a first correspondence in the memory, so that the processor can adjust the vibration frequency and vibration amount of the first motor in real time according to the first correspondence.

[0112] Table 1

[0113] Tilt angle Vibration frequency Vibration amount 30 degrees f1 a1 35 degrees f2 a2 40 degrees f3 a3 45 degrees f4 a4

[0114] Table 1 shows the first correspondence. As shown in Table 1, when the electronic device is tilted at a 35-degree angle, the vibration frequency of the first motor is f2, and the vibration amplitude is a2, the vibration of the first motor will not cause the second motor to resonate and produce abnormal noise. Therefore, if abnormal noise is detected in the electronic device at this tilt angle, the vibration frequency and vibration amplitude of the first motor in the electronic device can be adjusted to f2 and a2.

[0115] In another embodiment, a second corresponding relationship is stored in the electronic device, and the second corresponding relationship includes at least one motor combination and a target vibration parameter corresponding to each motor combination. The motor combination includes a first motor and a second motor, that is, it is composed of a first motor and a second motor. The electronic device including the motor combination generates an abnormal sound that is less than a first threshold when the first motor vibrates with the target vibration parameter corresponding to the motor combination.

[0116] Optionally, the first motor and the second motor can be products produced by different manufacturers, or different models produced by the same manufacturer. The motor combination can be randomly combined, and the motor combination can be characterized by the frequency configuration of the first motor and the frequency configuration of the second motor. The frequency configuration of the first motor includes the vibration fundamental frequency of the first motor and the frequency response characteristics of the available frequency band (such as the vibration amount). The frequency configuration of the second motor includes the natural frequency of the second motor. The natural frequency has N orders. In the embodiment of this application, the influence of the first three orders of natural frequencies is considered. The influence of natural frequencies of other orders can also refer to the description of the embodiment of this application.

[0117] The second corresponding relationship can be obtained in the following way: for electronic devices of different brands and models, and first motors and second motors of different models, a first motor and a second motor are selected to be combined together. For each combination, the vibration distribution simulation and experimental data collection of the whole machine under different vibration parameters of the first motor are performed to obtain the vibration condition of the second motor. At the same time, the abnormal noise condition of the electronic device under different output parameters of the first motor is simulated to obtain the second corresponding relationship shown in Table 2 below.

[0118] Taking the target vibration parameters corresponding to a set of motor combinations as an example, for example, for an electronic device with a default vibration fundamental frequency of the first motor being f1 and a vibration amount being a1, and the first three natural frequencies of the second motor being F1, F2, and F3, in this case, the first motor obtains the optimal value of the resonance and abnormal sound effect when the vibration frequency is fj and the vibration amount is ak under the combination of vibration frequencies f2, f3, f4, ..., fn and vibration amounts a2, a3, a4, ..., an, for example, less than the first threshold value, thereby ensuring the vibration effect of the first motor while controlling the resonance and abnormal sound within an acceptable range. Similarly, the target vibration parameters corresponding to other motor combinations can also be obtained by referring to this method. In addition, other electronic devices can also obtain the second corresponding relationship as a reference for adjusting the vibration parameters of their own motors.

[0119] When the abnormal sound of the electronic device exceeds a first threshold, the frequency configuration of the second motor and the frequency configuration of the first motor are first obtained. Based on the frequency configuration of the second motor and the frequency configuration of the first motor, it is determined whether the first motor and the second motor belong to a motor combination in a second corresponding relationship. If they belong to a target motor combination, the vibration parameters of the first motor are adjusted to the target vibration parameters corresponding to the target motor combination.

[0120] The frequency configuration of the first motor includes the fundamental vibration frequency and vibration amount of the first motor, and the frequency configuration of the second motor is the first three natural frequencies of the second motor. The fundamental vibration frequency, vibration amount, and natural frequency of the first motor are all set by the motor manufacturer before leaving the factory. Based on the frequency configuration of the second motor and the frequency configuration of the first motor, the target vibration parameters corresponding to the motor combination of the first motor and the second motor in the second corresponding relationship are determined, and the vibration parameters of the first motor are adjusted to the target vibration parameters.

[0121] Table 2

[0122]

[0123] Table 2 shows a second correspondence, which can be applied to electronic devices of different brands and models, and second motors with different natural frequencies. As shown in Table 2, when the second motor's frequency configuration is Fa1, Fa2, Fa3 (i.e., the first three natural frequencies of the second motor are Fa1, Fa2, Fa3), the target vibration parameters (frequency and amplitude) of the first motor are f2 and a2, respectively. This prevents resonance between the first and second motors and produces abnormal noise. Therefore, the vibration frequency and amplitude of the first motor in the electronic device can be adjusted from f1 and a1 to f2 and a2 to eliminate the abnormal noise.

[0124] In one embodiment, the electronic device includes an inertial measurement unit (IMU) sensor. Figure 10As shown, when an electronic device makes an abnormal sound, the tilt angle of the electronic device can be identified by the IMU sensor (i.e., executing step 441). The reference coordinate system of the IMU sensor is the IMU coordinate system in the world coordinate system, and the IMU sensor includes a gyroscope and an accelerometer. The coordinate origin of the IMU coordinate system is at the coordinate origin of the gyroscope and accelerometer, and the three axes X, Y, and Z are parallel to the corresponding axes of the gyroscope and accelerometer respectively. Afterwards, the processor can determine the vibration frequency and vibration amount corresponding to the tilt angle in the first corresponding relationship (i.e., executing step 442). Then, the processor can adjust the vibration frequency and vibration amount of the first motor to the vibration frequency and vibration amount corresponding to the tilt angle in the first corresponding relationship (i.e., executing step 443). The processor continues to monitor whether the electronic device will make an abnormal sound again (i.e., executing step 444). When the electronic device still makes an abnormal sound, the processor can adjust the vibration frequency and vibration amount of the first motor according to the frequency configuration of the second motor, the frequency configuration of the first motor, and the second corresponding relationship (i.e., executing step 445). When there is no abnormal sound from the electronic device, the processor may solidify and output the vibration frequency and vibration amount of the first motor (ie, execute step 446 ).

[0125] In this embodiment, the vibration frequency and vibration amount of the first motor can be adjusted based on the vibration frequency and vibration amount corresponding to the tilt angle in the first correspondence. After adjustment, if the abnormal noise still occurs, the vibration frequency and vibration amount of the first motor can be adjusted based on the vibration frequency and vibration amount corresponding to the tilt angle in the second correspondence. In this way, through dual abnormal noise detection and adjustment, abnormal noise in electronic equipment can be minimized or even avoided.

[0126] In another embodiment, after adjusting the vibration frequency and vibration amount of the first motor according to the vibration frequency and vibration amount corresponding to the tilt angle in the first corresponding relationship, as shown in step 445, the electronic device may still have abnormal noise. At this time, the processor can adjust the specific frequency of the first motor according to the frequency configuration of the second motor, the frequency configuration of the first motor, and the second corresponding relationship. It should be understood that the electronic device described in the embodiment of the present application has abnormal noise, which may specifically include: the abnormal noise of the electronic device is greater than a preset threshold (such as the first threshold). Specifically, as Figure 11As shown, step 445 may include: when the abnormal sound is greater than the first threshold, obtaining the frequency configuration of the first motor and the frequency configuration of the second motor processor to determine the vibration frequency and vibration amount corresponding to the tilt angle in the first correspondence (i.e., executing step 4451); based on the frequency configuration of the second motor and the frequency configuration of the first motor, determining that the first motor and the second motor belong to the target motor combination in the second correspondence (i.e., executing step 4452); using the target motor combination as the output solution of the first motor (i.e., executing step 4453); continuing to monitor whether the abnormal sound of the electronic device is greater than the first threshold (i.e., executing step 4454); when the abnormal sound is still greater than the first threshold, readjusting the vibration frequency and vibration amount of the first motor according to the second correspondence, i.e., re-finding the output solution of the first motor. When the abnormal sound is less than the first threshold, solidifying the vibration frequency and vibration amount of the first motor for output (i.e., executing step 4455).

[0127] Since the second corresponding relationship is verified in advance through simulation experiments, adjusting the vibration frequency and vibration amount of the first motor according to the second corresponding relationship can successfully eliminate the resonance between the first motor and the second motor, which in turn causes the electronic device to produce abnormal noise.

[0128] In another embodiment, the electronic device may not include an IMU sensor. In this embodiment, the vibration frequency and vibration amount of the first motor can be adjusted to the vibration frequency and vibration amount corresponding to the natural frequency in the second correspondence based on the second correspondence stored in the memory and the natural frequency of the second motor, thereby successfully eliminating the resonance between the first and second motors and resolving the issue of abnormal noise generated by the electronic device. The specific process is described in steps 4451-4455 and is not detailed here.

[0129] Furthermore, after adjusting the vibration frequency and vibration amount of the first motor according to the first corresponding relationship and / or the second corresponding relationship and eliminating the abnormal noise of the electronic device, the vibration frequency and vibration amount of the first motor are solidified and output, that is, the solidified vibration frequency and vibration amount of the first motor are stored in the log, and the electronic device is continued to be monitored to see whether it will produce abnormal noise again. For example, the user adjusts the tilt angle of the electronic device until the first motor stops vibrating. After the first motor stops vibrating, the vibration frequency and vibration amount of the first motor are adjusted to preset values. When an abnormal noise is detected, the vibration frequency and vibration amount of the first motor are adjusted according to the first corresponding relationship and / or the second corresponding relationship until the abnormal noise is eliminated. For details on the method of monitoring and adjusting abnormal noises of electronic devices, see the following. Figure 4 The method embodiment shown is not described in detail here.

[0130] Since the first corresponding relationship and the second corresponding relationship in the embodiment of the present application are obtained in advance through simulation experiments, the problem of abnormal noise in electronic equipment can be effectively eliminated based on the vibration frequency and vibration amount in the first corresponding relationship and the second corresponding relationship.

[0131] Step 450: When there is no abnormal sound from the electronic device, or when there is an abnormal sound from the electronic device but the abnormal sound is smaller than a first threshold, maintain the vibration parameters of the first motor unchanged.

[0132] When the difference in sound pressure levels between the first vibration audio and the reference audio is less than a second threshold, it indicates that the electronic device does not produce any abnormal sound. Alternatively, when the difference in sound pressure levels between the first vibration audio and the reference audio is less than the first threshold, such as greater than the second threshold but less than the first threshold, although the electronic device produces an abnormal sound, the abnormal sound is relatively small and within an acceptable range, and the user may assume that there is no abnormal sound. At this point, the electronic device may continue to be monitored, i.e., the audio emitted by the electronic device may be collected in real time and compared with the reference audio to determine whether the electronic device produces any abnormal sound. When an abnormal sound is detected, or when an abnormal sound is detected and the abnormal sound is greater than the first threshold, the vibration frequency and vibration amount of the first motor may be adjusted according to the first corresponding relationship and / or the second corresponding relationship, so that the adjusted abnormal sound is less than the first threshold and within an acceptable range for the user, so that the user does not hear any abnormal sound.

[0133] Optionally, for the current usage scenario, the adjusted vibration parameters of the first motor are solidified to output audio, and at the same time, the audio output during the current vibration of the first motor is continued to be monitored to see whether it causes abnormal resonance sound again during the current use (such as the user changes the angle of the mobile phone posture), and self-checking and correction are continued according to the method described in the embodiment of the present application until the path call of the first motor ends (such as the first motor is in a non-vibrating state); the next time the first motor is called again, its original default output is restored, and the self-checking and correction scheme of the method described in the embodiment of the present application is run at the same time.

[0134] Below, as Figure 12For example, the detailed process of the embodiment of the present application is described using a mobile phone as an electronic device. When the first motor path is called (that is, when the first motor is working, such as when a call or alarm is received), the motor vibration sound is picked up through the microphone of the mobile phone (i.e., executing step 1201). Based on the audio when the first motor vibrates and the built-in normal motor vibration noise, feature analysis is performed (i.e., executing step 1202) to identify whether the camera generates forced vibration, i.e., camera resonance pattern recognition (i.e., executing step 1203). If it is determined that camera resonance occurs at this time, it is determined whether the difference in sound pressure level between the audio when the first motor vibrates and the built-in normal motor vibration noise is less than a second threshold (i.e., executing step 1204). If the difference in sound pressure level is greater than the second threshold, the vibration of the first motor is adjusted and corrected (i.e., executing step 1205), temporarily sacrificing the motor vibration effect to solve the problem of abnormal resonance. In non-camera resonance noise scenarios, the original vibration output effect of the first motor is maintained (i.e., executing step 1206).

[0135] in Figure 12 The specific implementation of the processes of feature analysis, resonance pattern recognition, etc. can refer to the above and will not be described in detail.

[0136] Thus, the solution described in the embodiments of the present application can achieve adaptive adjustment of the vibration of the entire motor when the camera is subjected to resonance of the entire motor. For example, by analyzing the audio data output during the vibration of the entire motor, it can be determined that the vibration frequency and vibration amount of the entire motor have been adaptively adjusted. The audio data output during the vibration of the entire motor can be acquired by the microphone by invoking the microphone path.

[0137] It is understood that in order to implement the functions in the above embodiments, the computer includes hardware structures and / or software modules that perform the corresponding functions. Those skilled in the art should readily appreciate that, in combination with the units and method steps of the various examples described in the embodiments disclosed in the present application, the embodiments of the present application can be implemented in the form of hardware or a combination of hardware and computer software. Whether a function is executed in the form of hardware or computer software driving hardware depends on the specific application scenario and design constraints of the technical solution.

[0138] Figure 13 Schematic diagram of the structure of the device for processing abnormal sound of electronic equipment provided in the embodiment of the present application. These devices for processing abnormal sound of electronic equipment can be used to implement the functions of the electronic equipment in the above method embodiment, and thus can also achieve the beneficial effects of the above method embodiment. In the embodiment of the present application, the device for processing abnormal sound of electronic equipment can be as follows: Figure 2 The electronic device 200 is shown.

[0139] like Figure 13As shown, the device 1300 for processing abnormal sound of electronic equipment includes a collection module 1301, an analysis module 1302 and an adjustment module 1303. The device 1300 for processing abnormal sound of electronic equipment is used to implement the above Figure 4 The functions of the electronic device 200 in the method embodiment shown in FIG.

[0140] When the processing device 1300 of the abnormal sound of the electronic device is used to implement Figure 4 In the method embodiment shown, the functions of the electronic device 200 are:

[0141] The acquisition module 1301 is configured to respond to a first event and acquire a first vibration audio when the first motor vibrates.

[0142] The analysis module 1302 is used to compare and analyze the first vibration audio with a reference audio to determine whether the electronic device has an abnormal sound. The reference audio is the audio emitted by the electronic device when the first motor vibrates and the electronic device has no abnormal sound.

[0143] The adjustment module 1303 is used to adjust the vibration parameters of the first motor according to the resonance parameters when an abnormal sound occurs in the electronic device, and emit a second vibration audio based on the adjusted vibration parameters. The second vibration audio is the audio when the abnormal sound of the electronic device is less than the first threshold. The abnormal sound includes resonance between the first motor and the second motor. The resonance parameters are used to indicate indicators that cause the first motor and the second motor to resonate. The vibration parameters include vibration frequency and / or vibration amount.

[0144] The device 1300 for processing abnormal noises of an electronic device also includes a storage module 1304, which is used to store a first corresponding relationship and a second corresponding relationship, wherein the first corresponding relationship includes at least one tilt angle of the electronic device and the target vibration parameters of the first motor corresponding to each tilt angle, and the target vibration parameters of the first motor corresponding to the tilt angle are used to make the abnormal noise of the electronic device at the tilt angle when the first motor vibrates smaller than a first threshold; the second corresponding relationship includes at least one motor combination and the target vibration parameters corresponding to each motor combination, the motor combination includes a first motor and a second motor, and the electronic device including the motor combination generates an abnormal noise smaller than the first threshold when the first motor vibrates with the target vibration parameters corresponding to the motor combination.

[0145] The adjustment module 1303 is specifically used to: identify the tilt angle of the electronic device; determine the target vibration parameters corresponding to the current tilt angle of the electronic device in the first correspondence based on the current tilt angle of the electronic device, and adjust the vibration parameters of the first motor to the target vibration parameters.

[0146] The adjustment module 1303 is also used to: after adjusting the vibration parameters of the first motor according to the current tilt angle of the electronic device, if it is determined at the first moment that the abnormal sound of the electronic device is greater than the first threshold, then obtain the frequency configuration of the second motor and the frequency configuration of the first motor; the first moment is a moment after the current moment; based on the frequency configuration of the second motor and the frequency configuration of the first motor, determine that the first motor and the second motor belong to a target motor combination in a second corresponding relationship; adjust the vibration parameters of the first motor to the target vibration parameters corresponding to the target motor combination.

[0147] The adjustment module 1303 is specifically used to: when the tilt angle of the electronic device cannot be identified, obtain the frequency configuration of the second motor and the frequency configuration of the first motor; based on the frequency configuration of the second motor and the frequency configuration of the first motor, determine that the first motor and the second motor belong to a target motor combination in a second corresponding relationship; adjust the vibration parameters of the first motor to the target vibration parameters corresponding to the target motor combination.

[0148] The analysis module 1302 is specifically configured to determine a sound pressure level difference value based on the first vibration audio and the reference audio; when the sound pressure level difference value is greater than a second threshold, it indicates that an abnormal sound exists in the electronic device.

[0149] For more detailed description of the acquisition module 1301, analysis module 1302, adjustment module 1303 and storage module 1304, please refer to Figure 4 The relevant description in the method embodiment shown is directly obtained and will not be repeated here.

[0150] Some other embodiments of the present application provide an electronic device, which may include: a microphone, a first motor, a second motor, a memory, and one or more processors. The first motor is a motor of the electronic device (such as a whole motor), and the second motor is a motor of the camera in the electronic device. The memory is used to store computer program code, which includes computer instructions. When the processor executes the computer instructions, the electronic device can execute the various functions or steps performed by the mobile phone in the above method embodiment. The structure of the electronic device can refer to Figure 5 The structure of the mobile phone shown.

[0151] An embodiment of the present application further provides a computer storage medium, which includes computer instructions. When the computer instructions are executed on the above-mentioned electronic device, the electronic device executes the various functions or steps executed by the mobile phone in the above-mentioned method embodiment.

[0152] The present application also provides a computer program product that, when executed on a computer, causes the computer to perform the functions or steps performed by the mobile phone in the above-described method embodiments. The computer program product may be a software installation package that can be downloaded and executed on a computer when any of the above-described methods is required.

[0153] It should also be noted that the device embodiments described above are merely illustrative, wherein the units described as separate components may or may not be physically separate, and the components displayed as units may or may not be physical units, that is, they may be located in one place, or they may be distributed across multiple network units. Some or all of the modules may be selected according to actual needs to achieve the purpose of the present embodiment. In addition, in the drawings of the device embodiments provided in this application, the connection relationship between the modules indicates that there is a communication connection between them, which can be specifically implemented as one or more communication buses or signal lines.

[0154] Through the description of the above embodiments, those skilled in the art can clearly understand that the present application can be implemented by means of software plus necessary general hardware, and of course can also be implemented by special hardware including application-specific integrated circuits, special CPUs, special memories, special components, etc. In general, all functions performed by computer programs can be easily implemented with corresponding hardware, and the specific hardware structures used to implement the same function can also be diverse, such as analog circuits, digital circuits or special circuits, etc. However, for the present application, software program implementation is a better implementation method in most cases. Based on this understanding, the technical solution of the present application is essentially or the part that contributes to the prior art can be embodied in the form of a software product, which is stored in a readable storage medium, such as a computer's floppy disk, USB flash drive, mobile hard disk, ROM, RAM, magnetic disk or optical disk, etc., and includes a number of instructions to enable a computer device (which can be a personal computer, training equipment, or network equipment, etc.) to execute the methods described in each embodiment of the present application.

[0155] In the above embodiments, all or part of the embodiments may be implemented by software, hardware, firmware, or any combination thereof. When implemented by software, all or part of the embodiments may be implemented in the form of a computer program product.

[0156] The computer program product includes one or more computer instructions. When the computer program instructions are loaded and executed on a computer, the process or function described in the embodiment of the present application is generated in whole or in part. The computer can be a general-purpose computer, a special-purpose computer, a computer network, or other programmable devices. The computer instructions can be stored in a computer-readable storage medium, or transmitted from one computer-readable storage medium to another computer-readable storage medium. For example, the computer instructions can be transmitted from a website, a computer, a training device or a data center by wired (e.g., coaxial cable, optical fiber, digital subscriber line (DSL)) or wireless (e.g., infrared, wireless, microwave, etc.) mode to another website, a computer, a training device or a data center. The computer-readable storage medium can be any available medium that a computer can store or a data storage device such as a training device, a data center, etc. that includes one or more available media integrations. The available medium can be a magnetic medium, (e.g., a floppy disk, a hard disk, a tape), an optical medium (e.g., a DVD), or a semiconductor medium (e.g., a solid-state drive (SSD)).

Claims

1. A method for processing abnormal noise of electronic equipment, characterized in that: Applied to an electronic device, the electronic device includes a first motor and a second motor, the first motor is a motor of the electronic device, and the second motor is a motor of a camera in the electronic device, the method includes: In response to the first event, the first motor of the electronic device vibrates; collecting a first vibration audio when the first motor vibrates; Comparing and analyzing the first vibration audio with a reference audio to determine whether the electronic device has an abnormal sound, the reference audio being the audio emitted by the electronic device when the first motor vibrates and the electronic device does not make an abnormal sound; When an abnormal sound is produced by the electronic device, adjusting a vibration parameter of the first motor to a target vibration parameter; when the first motor vibrates at the target vibration parameter, the abnormal sound produced by the electronic device is less than a first threshold; the target vibration parameter is adapted to a current tilt angle of the electronic device, or the target vibration parameter is adapted to a frequency configuration of the second motor and a frequency configuration of the first motor; A second vibration audio is emitted based on the adjusted vibration parameters, where the second vibration audio is the audio when the abnormal sound of the electronic device is less than a first threshold; the abnormal sound includes resonance between the first motor and the second motor, and the vibration parameters include vibration frequency and / or vibration amount.

2. The method according to claim 1, characterized in that Before adjusting the vibration parameters of the first motor to target vibration parameters, the method further includes: Identifying a current tilt angle of the electronic device; Based on the current tilt angle of the electronic device, determining a target vibration parameter corresponding to the current tilt angle of the electronic device in a first correspondence; wherein the first correspondence includes at least one tilt angle of the electronic device and a target vibration parameter of the first motor corresponding to each tilt angle, the target vibration parameter of the first motor corresponding to the tilt angle being used to ensure that an abnormal sound of the electronic device at the tilt angle when the first motor vibrates is less than a first threshold value; Adjusting the vibration parameter of the first motor to a target vibration parameter includes adjusting the vibration parameter of the first motor to a target vibration parameter corresponding to a current tilt angle of the electronic device.

3. The method according to claim 2, characterized in that After adjusting the vibration parameter of the first motor to a target vibration parameter corresponding to the current tilt angle of the electronic device, the method further includes: If it is determined at a first moment that the abnormal sound of the electronic device is greater than a first threshold, obtaining the frequency configuration of the second motor and the frequency configuration of the first motor; the first moment is a moment after the current moment; determining, based on the frequency configuration of the second motor and the frequency configuration of the first motor, that the first motor and the second motor belong to a target motor combination in a second corresponding relationship; adjusting the vibration parameters of the first motor to target vibration parameters corresponding to the target motor combination; The second corresponding relationship includes at least one motor combination and target vibration parameters corresponding to each motor combination, the motor combination includes a first motor and a second motor, and the electronic device including the motor combination generates an abnormal sound smaller than a first threshold when the first motor vibrates with the target vibration parameters corresponding to the motor combination.

4. The method according to claim 1, wherein Before adjusting the vibration parameters of the first motor to target vibration parameters, the method further includes: Obtaining a frequency configuration of the second motor and a frequency configuration of the first motor; determining, based on the frequency configuration of the second motor and the frequency configuration of the first motor, that the first motor and the second motor belong to a target motor combination in a second corresponding relationship; The second corresponding relationship includes at least one motor combination and a target vibration parameter corresponding to each motor combination, the motor combination including a first motor and a second motor, and the abnormal sound generated by the electronic device including the motor combination when the first motor vibrates at the target vibration parameter corresponding to the motor combination is less than a first threshold; Adjusting the vibration parameters of the first motor to target vibration parameters includes adjusting the vibration parameters of the first motor to target vibration parameters corresponding to the target motor combination.

5. The method according to any one of claims 1 to 4, characterized in that Comparing and analyzing the first vibration audio with a reference audio to determine whether the electronic device has an abnormal sound includes: determining a sound pressure level difference value based on the first vibration audio and the reference audio, wherein the sound pressure level difference value indicates a difference between a volume of the first vibration audio and a volume of the reference audio; When the sound pressure level difference is greater than a second threshold, it indicates that an abnormal sound exists in the electronic device.

6. An electronic device, characterized in that: The electronic device includes a microphone, a first motor, a second motor, a memory, and one or more processors. The first motor is a motor of the electronic device, and the second motor is a motor of a camera in the electronic device. The memory stores computer program code, which includes computer instructions. When the computer instructions are executed by the processor, the electronic device performs the following steps: In response to a first event, the first motor vibrates; the microphone collects a first vibration audio when the first motor vibrates; the first vibration audio is compared and analyzed with a reference audio to determine whether the electronic device has an abnormal sound, the reference audio being the audio emitted by the electronic device when the first motor vibrates and the electronic device has no abnormal sound; when the electronic device has an abnormal sound, the vibration parameters of the first motor are adjusted to target vibration parameters; when the first motor vibrates at the target vibration parameters, the abnormal sound of the electronic device is less than a first threshold; the target vibration parameters are adapted to the current tilt angle of the electronic device, or the target vibration parameters are adapted to the frequency configuration of the second motor and the frequency configuration of the first motor; a second vibration audio is emitted based on the adjusted vibration parameters, the second vibration audio being the audio when the abnormal sound of the electronic device is less than the first threshold, the abnormal sound includes resonance between the first motor and the second motor, and the vibration parameters include vibration frequency and / or vibration amount.

7. The electronic device according to claim 6, wherein: The target vibration parameter is a target vibration parameter corresponding to the current tilt angle of the electronic device; when the computer instructions are executed by the processor, the electronic device further performs the following steps: before adjusting the vibration parameter of the first motor to the target vibration parameter, identifying the current tilt angle of the electronic device; based on the current tilt angle of the electronic device, determining the target vibration parameter corresponding to the current tilt angle of the electronic device in a first corresponding relationship; Among them, the first corresponding relationship includes at least one tilt angle of the electronic device and the target vibration parameters of the first motor corresponding to each tilt angle. The target vibration parameters of the first motor corresponding to the tilt angle are used to make the abnormal sound of the electronic device at the tilt angle when the first motor vibrates smaller than the first threshold.

8. The electronic device according to claim 7, wherein: When the computer instructions are executed by the processor, the electronic device further performs the following steps: after adjusting the vibration parameters of the first motor to target vibration parameters corresponding to the current tilt angle of the electronic device, if it is determined at a first moment that the abnormal sound of the electronic device is greater than a first threshold, obtaining the frequency configuration of the second motor and the frequency configuration of the first motor; the first moment is a moment after the current moment; based on the frequency configuration of the second motor and the frequency configuration of the first motor, determining that the first motor and the second motor belong to a target motor combination in a second corresponding relationship; and adjusting the vibration parameters of the first motor to the target vibration parameters corresponding to the target motor combination; The second corresponding relationship includes at least one motor combination and target vibration parameters corresponding to each motor combination, the motor combination includes a first motor and a second motor, and the electronic device including the motor combination generates an abnormal sound smaller than a first threshold when the first motor vibrates with the target vibration parameters corresponding to the motor combination.

9. The electronic device according to claim 6, wherein: The target vibration parameter is a target vibration parameter corresponding to a target motor combination; when the computer instruction is executed by the processor, the electronic device further performs the following steps: before adjusting the vibration parameter of the first motor to the target vibration parameter, obtaining the frequency configuration of the second motor and the frequency configuration of the first motor; based on the frequency configuration of the second motor and the frequency configuration of the first motor, determining that the first motor and the second motor belong to a target motor combination in a second corresponding relationship The second corresponding relationship includes at least one motor combination and target vibration parameters corresponding to each motor combination, the motor combination includes a first motor and a second motor, and the electronic device including the motor combination generates an abnormal sound smaller than a first threshold when the first motor vibrates with the target vibration parameters corresponding to the motor combination.

10. The electronic device according to any one of claims 6 to 9, characterized in that: When the computer instructions are executed by the processor, the electronic device further performs the following steps: determining a sound pressure level difference value based on the first vibration audio and the reference audio, the sound pressure level difference value being used to indicate the difference between the sound volume of the first vibration audio and the sound volume of the reference audio; when the sound pressure level difference value is greater than a second threshold, indicating that an abnormal sound exists in the electronic device.

11. A computer-readable storage medium, characterized in that Used to store computer instructions, which, when executed on a computer device, cause the computer to execute the method according to any one of claims 1 to 5.

Citation Information

Patent Citations

  • Driving voltage adjusting method, electronic equipment and storage medium

    CN115037827A