Vibration control method and device and electronic equipment
By injecting a low-frequency masking signal that matches the vibration signal into the vibration motor, the problem of high-frequency vibration noise is solved by utilizing the masking effect of the human ear, thereby improving the user experience and reducing costs.
Patent Information
- Application Number
- CN202511578337.5
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2025-10-30
- Publication Date
- 2026-02-10
AI Technical Summary
The high-frequency vibration noise generated by existing vibration motors during high-frequency vibration affects the user's auditory experience and creates noise interference.
By acquiring a vibration signal that matches the current vibration scene and generating a matching masking signal, the motor is driven to vibrate to mask the vibration. The masking signal is a low-frequency signal, which uses the masking effect of the human ear to reduce high-frequency vibration.
It effectively reduces the noise generated by motor vibration, improves the user experience, and does not require changes to the motor structure, thus reducing optimization costs.
Smart Images

Figure CN121508402A_ABST
Abstract
Description
Technical Field
[0001] This disclosure relates to the field of vibration motor technology, and more specifically, to a vibration control method, apparatus, and electronic device. Background Technology
[0002] With the rapid development of mobile communication technology and smart terminal technology, smartphones have become an indispensable core electronic device in people's daily lives, work, and social interactions. In order to improve the user interaction experience and the effectiveness of information reminders, haptic feedback has become one of the standard features of smartphones, and the vibration motor, as the core actuator to achieve this function, directly determines the quality of haptic feedback.
[0003] Currently, smartphones commonly use vibration motors to provide haptic feedback. Common types of vibration motors include eccentric rotor motors (ERM) and linear motors (LRA). In scenarios such as incoming calls, receiving messages, typing, touch operation, and gaming, these vibration motors generate vibrations through the mechanical movement of internal moving parts, which are then transmitted to the phone's body and ultimately perceived by the user to achieve a haptic feedback effect.
[0004] However, in actual use, vibration motors often generate high-frequency vibrations during high-frequency vibration. These vibrations typically manifest as a high-pitched sound, a springy sound, or other irregular high-frequency noise. Analysis shows that the generation of these high-frequency vibrations is mainly related to factors such as the motor's structural design, the resonance effect between the vibration frequency and the phone's body, the motor's mounting gap, and the fixing method. The frequency range is usually within the range where the human ear is most sensitive, and it is highly identifiable when propagating in a quiet environment.
[0005] The aforementioned high-frequency vibrations can cause auditory discomfort and noise interference, severely impacting the user experience. Summary of the Invention
[0006] One objective of this disclosure is to provide a new technical solution for reducing the vibration noise generated by motor vibration.
[0007] According to a first aspect of the present disclosure, a vibration control method is provided, applied to an electronic device, the method comprising: Acquire vibration signals that match the current vibration scenario; A masking signal matching the vibration signal is generated to mask the vibration noise produced by the motor of the electronic device under the drive of the vibration signal; The motor is driven to vibrate according to the vibration signal and the masking signal; wherein the duration of the vibration signal and the masking signal is the same.
[0008] Optionally, generating a masking signal that matches the vibration signal includes: Obtain the target frequency band and target amplitude; The masking signal is generated based on the target frequency band and the target amplitude.
[0009] Optionally, the target frequency band can be obtained, including: Obtain the first correspondence between vibration scenarios and frequency bands; The frequency band corresponding to the current vibration scenario is determined based on the first correspondence and is used as the target frequency band.
[0010] Optionally, the target amplitude can be obtained, including: Obtain the second correspondence between vibration scenarios and amplitudes; The amplitude corresponding to the current vibration scenario is determined based on the second correspondence, and is used as the target amplitude.
[0011] Optionally, the method further includes: Ambient noise signals are collected via the microphone of the electronic device; The target amplitude is adjusted based on the noise signal.
[0012] Optionally, adjusting the target amplitude based on the noise signal includes: Determine the target adjustment ratio corresponding to the amplitude of the noise signal; The target magnitude is adjusted according to the target adjustment ratio.
[0013] Optionally, the masking signal is a pink noise signal.
[0014] Optionally, the masking signal is a low-frequency signal.
[0015] According to a second aspect of this disclosure, a vibration control device is provided for use in an electronic device, the device comprising: The vibration signal acquisition module is used to acquire vibration signals that match the current vibration scenario; A masking signal generation module is used to generate a masking signal that matches the vibration signal, the masking signal being used to mask the vibration noise generated by the motor of the electronic device under the drive of the vibration signal; A motor drive module is used to drive the motor to vibrate according to the vibration signal and the masking signal; wherein the vibration signal and the masking signal have the same duration.
[0016] According to a third aspect of this disclosure, an electronic device is provided, including a processor and a memory, the memory being used to store a computer program, and the processor being used to execute the method as described in the first aspect of this disclosure under the control of the computer program.
[0017] According to a fourth aspect of this disclosure, a computer-readable storage medium is provided having a computer program stored thereon that, when executed by a processor, implements the method described in the first aspect of this disclosure.
[0018] Through the embodiments of this disclosure, a masking signal is injected on the basis of the vibration signal to drive the motor vibration, which can reduce the vibration noise generated by the motor under the drive of the vibration signal, and does not require changes to the motor structure, thus reducing optimization costs.
[0019] Other features and advantages of the invention will become clear from the following detailed description of exemplary embodiments of the invention with reference to the accompanying drawings. Attached Figure Description
[0020] The accompanying drawings, which are incorporated in and form part of this specification, illustrate embodiments of the invention and, together with their description, serve to explain the principles of the invention.
[0021] Figure 1 This is a block diagram illustrating the hardware configuration of an electronic device that can implement embodiments of the present disclosure; Figure 2 This is a flowchart of a vibration control method according to an embodiment of the present disclosure; Figure 3 This is a schematic diagram of the spectrum of an acoustic signal generated by a motor according to an embodiment of the present disclosure; Figure 4 This is a block diagram of a vibration control device according to an embodiment of the present disclosure; Figure 5 This is a block diagram of an electronic device according to an embodiment of the present disclosure. Detailed Implementation
[0022] Various exemplary embodiments of the present invention will now be described in detail with reference to the accompanying drawings. It should be noted that, unless otherwise specifically stated, the relative arrangement, numerical expressions, and values of the components and steps set forth in these embodiments do not limit the scope of the invention.
[0023] The following description of at least one exemplary embodiment is merely illustrative and is in no way intended to limit the invention or its application or use.
[0024] Techniques, methods, and apparatus known to those skilled in the art in the relevant field may not be discussed in detail, but where appropriate, such techniques, methods, and apparatus should be considered part of the specification.
[0025] In all the examples shown and discussed herein, any specific values should be interpreted as merely exemplary and not as limitations. Therefore, other examples of exemplary embodiments may have different values.
[0026] It should be noted that similar labels and letters in the following figures indicate similar items; therefore, once an item is defined in one figure, it does not need to be discussed further in subsequent figures.
[0027] <Hardware Configuration> Figure 1 This is a block diagram illustrating the hardware configuration of an electronic device 1000 that can implement embodiments of the present disclosure.
[0028] Electronic device 1000 can be a portable computer, desktop computer, mobile phone, tablet computer, etc. For example... Figure 1 As shown, the electronic device 1000 may include a processor 1100, a memory 1200, an interface device 1300, a communication device 1400, a display device 1500, an input device 1600, a speaker 1700, a microphone 1800, etc. The processor 1100 may be a CPU, a microprocessor (MCU), etc. The memory 1200 may include, for example, ROM (Read-Only Memory), RAM (Random Access Memory), or non-volatile memory such as a hard disk. The interface device 1300 may include, for example, a USB interface, a headphone jack, etc. The communication device 1400 may be capable of wired or wireless communication, specifically including Wi-Fi communication, Bluetooth communication, 2G / 3G / 4G / 5G communication, etc. The display device 1500 may be, for example, an LCD screen, a touch screen, etc. The input device 1600 may include, for example, a touch screen, a keyboard, motion input, etc. Users can input / output voice information through the speaker 1700 and the microphone 1800.
[0029] Figure 1 The electronic devices shown are merely illustrative and in no way intended to limit this disclosure, its application, or use. In embodiments applied to this disclosure, the memory 1200 of the electronic device 1000 is used to store instructions for controlling the processor 1100 to operate to perform any of the methods provided in the embodiments of this disclosure. Those skilled in the art will understand that, although... Figure 1 The electronic device 1000 is shown with multiple devices shown; however, this disclosure may relate only to some of these devices. For example, electronic device 1000 may only relate to processor 1100 and memory 1200. Those skilled in the art can design instructions based on the schemes disclosed herein. How the instructions control the processor to operate is well known in the art and will not be described in detail here.
[0030] <Method Implementation> This disclosure provides a vibration control method, which can be implemented by an electronic device. Specifically, the vibration control method can be implemented by, for example... Figure 1 The electronic device 1000 shown is implemented.
[0031] Figure 2 This is a flowchart of a vibration control method according to an embodiment of the present disclosure.
[0032] like Figure 2 As shown, the method includes the following steps S2100 to S2300: Step S2100: Obtain a vibration signal that matches the current vibration scenario.
[0033] In this embodiment, the method steps of this embodiment are performed when vibration feedback from an electronic device is required.
[0034] The vibration scenarios in this embodiment may include any one of the following: incoming call reminder, message reminder, typing input, touch operation, and game scenario.
[0035] In some embodiments, a matching vibration signal can be pre-set for each vibration scenario. Under any vibration scenario, the motor can be driven to vibrate according to the vibration signal matching the vibration scenario, so that the electronic device generates vibration feedback matching the vibration scenario.
[0036] In some embodiments, vibration parameters that match each vibration scenario can be preset in advance. Under any vibration scenario, a vibration signal that matches the vibration scenario can be generated according to the vibration parameters that match the vibration scenario, and the motor can be driven to vibrate according to the vibration signal, so that the electronic device generates vibration feedback that matches the vibration scenario.
[0037] Step S2200: Generate a masking signal that matches the vibration signal. The masking signal is used to mask the vibration noise generated by the motor under the drive of the vibration signal.
[0038] When two or more sounds exist simultaneously, one sound may audibly mask another (or other) sound; this phenomenon is called the "masking effect." In this embodiment, the first sound generated by the masking signal driving the motor can audibly mask the second sound generated by the driving signal driving the motor.
[0039] In this embodiment, the closer the frequencies of the first and second sounds are, the greater the masking effect of the first sound on the second sound. The masking effect of the first sound on the second sound is greatest when the frequencies of the first and second sounds are the same. In terms of time, the closer the first sound is to the second sound, the greater the masking effect of the first sound on the second sound, and the latter masking effect is greater than the former masking effect.
[0040] When the first sound is a polyphony composed of multiple sounds, the timbre of the second sound will change because each sound has a different masking value for the second sound.
[0041] In some embodiments, low-frequency sounds significantly mask high-frequency sounds, while high-frequency sounds have a very small masking effect on low-frequency sounds. Therefore, the masking signal can be a low-frequency signal.
[0042] Furthermore, the masking effect of monophonic hearing is greater than that of binaural hearing. Moreover, increasing the sound pressure level of the first sound can broaden the frequency range of masking.
[0043] In some embodiments, generating a masking signal that matches the vibration signal includes: acquiring a target frequency band and a target amplitude; and generating a masking signal based on the target frequency band and the target amplitude.
[0044] In this embodiment, the target frequency band can be a frequency band or a single frequency.
[0045] In some embodiments, the target frequency band may be a fixed value pre-set according to the performance of the motor in the electronic device. For example, the target frequency may be 50-200Hz.
[0046] In some embodiments, obtaining a target frequency band includes: obtaining a first correspondence between a vibration scene and a frequency band; and determining a frequency band corresponding to the current vibration scene based on the first correspondence, as the target frequency band.
[0047] In this embodiment, a corresponding frequency band can be pre-defined for each vibration scenario, and a first correspondence can be established. For example, the frequency band corresponding to the typing input scenario can be 80-150Hz, which can balance the masking effect of the masking signal and the clarity of the tactile feedback generated by the vibration signal. As another example, the frequency band corresponding to the incoming call reminder or message reminder scenario can be 50-200Hz, which can improve the masking effect of the masking signal.
[0048] In some embodiments, the target amplitude may be a fixed value pre-set based on the performance of the motor in the electronic device. For example, the target amplitude may be 1V.
[0049] In some embodiments, obtaining the target amplitude may include: obtaining a second correspondence between vibration scenarios and amplitudes; and determining the amplitude corresponding to the current vibration scenario based on the second correspondence as the target amplitude.
[0050] In this embodiment, a corresponding amplitude can be pre-set for each vibration scenario, and a first correspondence can be established. For example, the amplitude corresponding to the typing input scenario could be 1V, which can balance the masking effect of the masking signal and the clarity of the tactile feedback generated by the vibration signal. As another example, the amplitude corresponding to the incoming call reminder scenario or message reminder scenario could be 1.2V, which can improve the masking effect of the masking signal.
[0051] In some embodiments, the method further includes: acquiring ambient noise signals via a microphone of an electronic device; and adjusting a target amplitude based on the noise signals.
[0052] Specifically, the target amplitude obtained according to any of the foregoing embodiments can be adjusted based on the environmental noise level represented by the noise signal.
[0053] In some embodiments, adjusting the target amplitude based on the noise signal includes: determining a target adjustment ratio corresponding to the amplitude of the noise signal; and adjusting the target amplitude according to the target adjustment ratio.
[0054] In this embodiment, a first mapping data reflecting the mapping relationship between amplitude and adjustment ratio can be preset according to the masking effect curve (such as the equal loudness curve); based on the amplitude of the noise signal and the first mapping data, the adjustment ratio corresponding to the amplitude of the noise signal is obtained as the target adjustment ratio.
[0055] The first mapping data can be the first mapping function, or the first lookup table, etc., and is not limited here.
[0056] For the first mapping function, the dependent variable is the adjustment ratio and the independent variable is the amplitude. Thus, by substituting the amplitude of the noise signal into the first mapping function, the adjustment ratio corresponding to the amplitude of the noise signal can be obtained as the target adjustment ratio.
[0057] For the first lookup table, the adjustment ratio corresponding to the amplitude of the noise signal can be found in the first lookup table as the target adjustment ratio. If the amplitude of the noise signal cannot be found directly in the first lookup table, two values adjacent to the amplitude can be found, and based on these two values and the adjustment ratios corresponding to these two values, an interpolation method can be used to obtain the adjustment ratio corresponding to the amplitude as the target adjustment ratio.
[0058] In some embodiments, adjusting the target amplitude based on the noise signal includes: determining the current ambient noise level based on the noise signal; adjusting the target amplitude according to a target adjustment ratio corresponding to the current ambient noise level; and adjusting the target amplitude according to the target adjustment ratio.
[0059] In this embodiment, multiple environmental noise levels and corresponding adjustment ratios for each level can be pre-set according to the application scenario or specific requirements. The adjustment ratio for lower environmental noise levels is greater than the adjustment ratio for higher environmental noise levels.
[0060] For example, multiple environmental noise levels can include less than 30 dB, greater than or equal to 30 dB and less than or equal to 60 dB, and greater than 60 dB. The adjustment ratio corresponding to less than 30 dB is 120%, the adjustment ratio corresponding to greater than or equal to 30 dB and less than or equal to 60 dB is 100%, and the adjustment ratio corresponding to greater than 60 dB is 50%.
[0061] In this embodiment, a second mapping data reflecting the mapping relationship between the environmental noise level and the adjustment ratio can be preset; based on the current environmental noise level and the second mapping data, the adjustment ratio corresponding to the current environmental noise level is obtained as the target adjustment ratio.
[0062] The second mapping data can be a second mapping function, a second lookup table, etc., and is not limited here.
[0063] For the second mapping function, the dependent variable is the adjustment ratio and the independent variable is the environmental noise level. Thus, by substituting the current environmental noise level into the second mapping function, the adjustment ratio corresponding to the current environmental noise level can be obtained as the target adjustment ratio.
[0064] For the second comparison table, you can find the adjustment ratio corresponding to the current environmental noise level in the second comparison table as the target adjustment ratio.
[0065] This embodiment dynamically adjusts the target amplitude used to generate the masking signal in conjunction with ambient noise, which can enhance the masking effect of the masking signal in a quiet environment and reduce the power consumption of electronic devices in a noisy environment.
[0066] In some embodiments, the masking signal may be a pink noise signal.
[0067] Step S2300: Drive the motor to vibrate according to the vibration signal and the masking signal; wherein the duration of the vibration signal and the masking signal is the same.
[0068] In this embodiment, the motor vibration is driven based on the vibration signal and the masking signal. This can be achieved by providing both the vibration signal and the masking signal to the motor, that is, by superimposing the vibration signal and the masking signal to obtain a superimposed signal, and then driving the motor vibration based on the superimposed signal.
[0069] In this embodiment, the vibration signal and the masking signal have the same duration. The vibration signal and the masking signal can be provided to the motor at the same time, and the supply of the vibration signal and the masking signal to the motor can be stopped at the same time, so that the vibration signal and the masking signal drive the motor to vibrate simultaneously.
[0070] In one example, the vibration spectrum f1 of the acoustic signal generated by the motor under the drive of the vibration signal, and the vibration spectrum f2 of the acoustic signal generated by the motor under the drive of the vibration signal and the masking signal, can be as follows: Figure 3 As shown, the horizontal axis represents frequency and the vertical axis represents amplitude.
[0071] according to Figure 3 It can be seen that the acoustic signal generated by the motor driven by the vibration signal and the masking signal increases in the low-frequency short spectrum, making the vibration sound to the user as if it were masked by low-frequency noise, and the vibration sound is significantly reduced. Moreover, after adding the masking signal, the spectrum of the acoustic signal generated by the motor does not decrease in the high-frequency range, but rather utilizes the acoustic masking effect of the human ear, using the increase of the low-frequency masking signal to mask the high-frequency noise generated by the motor.
[0072] In this embodiment, a masking signal is injected into the vibration signal to drive the motor vibration, which can reduce the vibration noise generated by the motor under the drive of the vibration signal, and does not require changes to the motor structure, thus reducing optimization costs.
[0073] <Device Embodiment> This embodiment provides a vibration control device, such as... Figure 4 As shown, the vibration control device 4000 may include a vibration signal acquisition module 4100, a masking signal generation module 4200, and a motor drive module 4300.
[0074] The vibration signal acquisition module 4100 is used to acquire vibration signals that match the current vibration scenario.
[0075] The masking signal generation module 4200 is used to generate a masking signal that matches the vibration signal, the masking signal being used to mask the vibration noise generated by the motor under the drive of the vibration signal.
[0076] The motor drive module 4300 is used to drive the motor to vibrate according to the vibration signal and the masking signal; wherein the vibration signal and the masking signal have the same duration.
[0077] In some embodiments, the masking signal generation module 4200 is used for: Obtain the target frequency band and target amplitude; The masking signal is generated based on the target frequency band and the target amplitude.
[0078] In some embodiments, obtaining the target frequency band includes: Obtain the first correspondence between vibration scenarios and frequency bands; The frequency band corresponding to the current vibration scenario is determined based on the first correspondence and is used as the target frequency band.
[0079] In some embodiments, obtaining the target amplitude includes: Obtain the second correspondence between vibration scenarios and amplitudes; The amplitude corresponding to the current vibration scenario is determined based on the second correspondence, and is used as the target amplitude.
[0080] In some embodiments, the vibration control device 4000 further includes: A module for acquiring ambient noise signals via the microphone of the electronic device; A module for adjusting the target amplitude based on the noise signal.
[0081] In some embodiments, adjusting the target amplitude based on the noise signal includes: Determine the target adjustment ratio corresponding to the amplitude of the noise signal; The target magnitude is adjusted according to the target adjustment ratio.
[0082] In some embodiments, the masking signal is a pink noise signal.
[0083] <Electronic Device Examples> This embodiment provides an electronic device, which in one aspect may include the aforementioned vibration control device 4000.
[0084] On the other hand, such as Figure 5 As shown, the electronic device 5000 may include a processor 5100 and a memory 5200. The memory 5200 is used to store computer programs, and the processor 5100 is used to control the electronic device to execute the methods of any embodiment of this disclosure under the control of the computer programs.
[0085] <Example of a readable storage medium> This embodiment provides a computer-readable storage medium storing a computer program that, when executed by a processor, performs the methods described in any of the method embodiments of this disclosure.
[0086] This invention can be a system, method, and / or computer program product. A computer program product may include a computer-readable storage medium having computer-readable program instructions loaded thereon for causing a processor to implement various aspects of the invention.
[0087] Computer-readable storage media can be tangible devices capable of holding and storing instructions for use by an instruction execution device. Computer-readable storage media can be, for example—but not limited to—electrical storage devices, magnetic storage devices, optical storage devices, electromagnetic storage devices, semiconductor storage devices, or any suitable combination of the foregoing. More specific examples (a non-exhaustive list) of computer-readable storage media include: portable computer disks, hard disks, random access memory (RAM), read-only memory (ROM), erasable programmable read-only memory (EPROM or flash memory), static random access memory (SRAM), portable compact disc read-only memory (CD-ROM), digital multifunction disc (DVD), memory sticks, floppy disks, mechanical encoding devices, such as punch cards or recessed protrusions storing instructions thereon, and any suitable combination of the foregoing. The computer-readable storage media used herein are not to be construed as transient signals themselves, such as radio waves or other freely propagating electromagnetic waves, electromagnetic waves propagating through waveguides or other transmission media (e.g., light pulses through fiber optic cables), or electrical signals transmitted through wires.
[0088] The computer-readable program instructions described herein can be downloaded from computer-readable storage media to various computing / processing devices, or downloaded via a network, such as the Internet, local area network, wide area network, and / or wireless network, to an external computer or external storage device. The network may include copper transmission cables, fiber optic transmission, wireless transmission, routers, firewalls, switches, gateway computers, and / or edge servers. A network adapter card or network interface in each computing / processing device receives the computer-readable program instructions from the network and forwards them to the computer-readable storage media in the respective computing / processing device.
[0089] The computer program instructions used to perform the operations of this invention may be assembly instructions, instruction set architecture (ISA) instructions, machine instructions, machine-dependent instructions, microcode, firmware instructions, status setting data, or source code or object code written in any combination of one or more programming languages, including object-oriented programming languages such as Smalltalk, C++, etc., and conventional procedural programming languages such as the "C" language or similar programming languages. The computer-readable program instructions may be executed entirely on the user's computer, partially on the user's computer, as a standalone software package, partially on the user's computer and partially on a remote computer, or entirely on a remote computer or server. In cases involving remote computers, the remote computer may be connected to the user's computer via any type of network—including a local area network (LAN) or a wide area network (WAN)—or may be connected to an external computer (e.g., via the Internet using an Internet service provider). In some embodiments, electronic circuits, such as programmable logic circuits, field-programmable gate arrays (FPGAs), or programmable logic arrays (PLAs), are personalized by utilizing state information from computer-readable program instructions. These electronic circuits can execute computer-readable program instructions to implement various aspects of the present invention.
[0090] Various aspects of the present invention are described herein with reference to flowchart illustrations and / or block diagrams of methods, apparatus (systems), and computer program products according to embodiments of the invention. It should be understood that each block of the flowchart illustrations and / or block diagrams, and combinations of blocks in the flowchart illustrations and / or block diagrams, can be implemented by computer-readable program instructions.
[0091] These computer-readable program instructions can be provided to a processor of a general-purpose computer, a special-purpose computer, or other programmable data processing apparatus to produce a machine such that, when executed by the processor of the computer or other programmable data processing apparatus, they create means for implementing the functions / actions specified in one or more blocks of the flowchart and / or block diagram. These computer-readable program instructions can also be stored in a computer-readable storage medium that causes a computer, programmable data processing apparatus, and / or other device to operate in a particular manner; thus, the computer-readable medium storing the instructions comprises an article of manufacture that includes instructions for implementing aspects of the functions / actions specified in one or more blocks of the flowchart and / or block diagram.
[0092] Computer-readable program instructions may also be loaded onto a computer, other programmable data processing apparatus, or other device to cause a series of operational steps to be performed on the computer, other programmable data processing apparatus, or other device to produce a computer-implemented process, thereby causing the instructions executed on the computer, other programmable data processing apparatus, or other device to perform the functions / actions specified in one or more boxes of a flowchart and / or block diagram.
[0093] The flowcharts and block diagrams in the accompanying drawings illustrate the architecture, functionality, and operation of possible implementations of systems, methods, and computer program products according to various embodiments of the present invention. In this regard, each block in a flowchart or block diagram may represent a module, segment, or portion of an instruction containing one or more executable instructions for implementing a specified logical function. In some alternative implementations, the functions marked in the blocks may occur in a different order than those marked in the drawings. For example, two consecutive blocks may actually be executed substantially in parallel, and they may sometimes be executed in reverse order, depending on the functions involved. It should also be noted that each block in the block diagrams and / or flowcharts, and combinations of blocks in the block diagrams and / or flowcharts, can be implemented using a dedicated hardware-based system that performs the specified function or action, or using a combination of dedicated hardware and computer instructions. It will be known to those skilled in the art that implementation in hardware, implementation in software, and implementation using a combination of software and hardware are equivalent.
[0094] The various embodiments of the present invention have been described above. These descriptions are exemplary and not exhaustive, and are not limited to the disclosed embodiments. Many modifications and variations will be apparent to those skilled in the art without departing from the scope and spirit of the described embodiments. The terminology used herein is chosen to best explain the principles, practical application, or technical improvements to the embodiments in the market, or to enable others skilled in the art to understand the embodiments disclosed herein. The scope of the invention is defined by the appended claims.
Claims
1. A vibration control method, characterized in that, Applied to electronic devices, the method includes: Acquire vibration signals that match the current vibration scenario; A masking signal matching the vibration signal is generated to mask the vibration noise produced by the motor of the electronic device under the drive of the vibration signal; The motor is driven to vibrate according to the vibration signal and the masking signal; wherein the duration of the vibration signal and the masking signal is the same.
2. The method according to claim 1, characterized in that, The generation of a masking signal that matches the vibration signal includes: Obtain the target frequency band and target amplitude; The masking signal is generated based on the target frequency band and the target amplitude.
3. The method according to claim 2, characterized in that, Obtain the target frequency band, including: Obtain the first correspondence between vibration scenarios and frequency bands; The frequency band corresponding to the current vibration scenario is determined based on the first correspondence and is used as the target frequency band.
4. The method according to claim 2, characterized in that, To obtain the target amplitude, including: Obtain the second correspondence between vibration scenarios and amplitudes; The amplitude corresponding to the current vibration scenario is determined based on the second correspondence, and is used as the target amplitude.
5. The method according to claim 2 or 4, characterized in that, The method further includes: Ambient noise signals are collected via the microphone of the electronic device; The target amplitude is adjusted based on the noise signal.
6. The method according to claim 5, characterized in that, Adjusting the target amplitude based on the noise signal includes: Determine the target adjustment ratio corresponding to the amplitude of the noise signal; The target magnitude is adjusted according to the target adjustment ratio.
7. The method according to claim 2, characterized in that, The masking signal is a pink noise signal.
8. The method according to claim 1, characterized in that, The masking signal is a low-frequency signal.
9. A vibration control device, characterized in that, Applied to electronic devices, the device includes: The vibration signal acquisition module is used to acquire vibration signals that match the current vibration scenario; A masking signal generation module is used to generate a masking signal that matches the vibration signal, the masking signal being used to mask the vibration noise generated by the motor under the drive of the vibration signal; A motor drive module is used to drive the motor to vibrate according to the vibration signal and the masking signal; wherein the vibration signal and the masking signal have the same duration.
10. An electronic device, characterized in that, It includes a processor and a memory, the memory being used to store a computer program, and the processor being used, under the control of the computer program, to execute the method as described in any one of claims 1 to 8.