A method, device and storage medium for adjusting the position of a loudspeaker diaphragm
By detecting the speaker capacitance value and calculating the capacitance change value, adjusting the electrical parameters to control the diaphragm position, the problem of speaker diaphragm position deviation is solved to ensure the stability of speaker performance.
Patent Information
- Application Number
- CN202210389156.8
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2020-11-26
- Publication Date
- 2025-02-25
- Estimated Expiration
- 2040-11-26
AI Technical Summary
During use, the speaker diaphragm may deviate from the normal range due to user error use, which affects the working performance of the speaker. The prior art lacks effective correction methods.
By detecting the capacitance value of the speaker, if the capacitance value is not within the preset range, calculate the capacitance change value and adjust the standard electrical parameters according to the value to control the movement of the diaphragm to the target position and return it to the preset position range.
It is realized that the position deviation of the speaker diaphragm is corrected to ensure that the diaphragm returns to the preset position range, thereby maintaining the normal performance of the speaker.
Smart Images

Figure CN114845224B_ABST
Abstract
Description
[0001] This application is a divisional application. The application date of the original application "A method, device and storage medium for adjusting the position of a loudspeaker diaphragm" is November 26, 2020, and the application number is 202011366902.9. Technical Field
[0002] The embodiments of the present invention relate to the technical field of loudspeakers, and in particular to a method, device and storage medium for adjusting the position of a loudspeaker diaphragm. Background Art
[0003] At present, speakers are widely used in people's daily production and life as a sound-generating device for electronic products such as mobile phones, televisions, and computers. Speakers generate electromagnetic fields based on electromagnetic coils to drive the diaphragm to vibrate and produce sound, so the diaphragm is an indispensable component that determines the performance of the speaker.
[0004] The position of the diaphragm in the speaker is not fixed. During the operation of the speaker, the position of the diaphragm may deviate from the normal range due to incorrect use by the user, thus affecting the working performance of the speaker. Therefore, how to correct the position of the diaphragm is an urgent problem to be solved. Summary of the invention
[0005] The embodiment of the present invention provides a method, device and storage medium for adjusting the position of a loudspeaker diaphragm, so as to solve the problem of how to correct the position of the diaphragm in the prior art. In order to solve the above technical problem, the embodiment of the present invention is implemented as follows:
[0006] In a first aspect, a method for adjusting the position of a loudspeaker diaphragm is provided, the method comprising: detecting a first capacitance value of the loudspeaker, and if the first capacitance value is not within a preset capacitance value range, obtaining a capacitance change value according to the first capacitance value and a standard capacitance value; the standard capacitance value corresponds to a standard position of the loudspeaker diaphragm, and the first capacitance value corresponds to a current position of the loudspeaker diaphragm;
[0007] According to the capacitance change value, the standard electrical parameter value corresponding to the standard capacitance value is adjusted to control the speaker diaphragm to move to a target position, the target position is within a preset position range, and the preset position range corresponds to the preset capacitance value range.
[0008] As an optional implementation, in a first aspect of the embodiments of the present invention, adjusting the standard electrical parameter value corresponding to the standard capacitance value according to the capacitance change value to control the speaker diaphragm to move to the target position includes:
[0009] According to the capacitance change value, adjusting the standard electrical parameter value corresponding to the standard capacitance value to a target electrical parameter value;
[0010] According to the target electrical parameter value, a first force acting on the speaker diaphragm is generated to move the speaker diaphragm to the target position.
[0011] As an optional implementation manner, in the first aspect of the embodiment of the present invention, adjusting the standard electrical parameter value corresponding to the standard capacitance value to the target electrical parameter value according to the capacitance change value includes:
[0012] Calculating a first electrical parameter change value according to the capacitance change value;
[0013] According to the first electrical parameter change value, the standard electrical parameter value corresponding to the standard capacitance value is adjusted to the target electrical parameter value.
[0014] As an optional implementation manner, in the first aspect of the embodiment of the present invention, the calculating the first electrical parameter change value according to the capacitance change value includes:
[0015] Determine the current position according to the first capacitance value, and determine the standard position according to the standard capacitance value;
[0016] Acquire a position difference of the speaker diaphragm according to the current position and the standard position;
[0017] The first electrical parameter change value is obtained by calculating the position difference through a force balance model.
[0018] As an optional implementation manner, in the first aspect of the embodiment of the present invention, the speaker is in a non-sealed environment, and the force balance model includes:
[0019] BLI = kx;
[0020] Among them, B is the magnetic induction intensity of the speaker, L is the effective length of the voice coil of the speaker diaphragm, I is the current applied to the voice coil of the speaker diaphragm, k is the elastic coefficient of the speaker diaphragm, and x is the position difference.
[0021] As an optional implementation, in the first aspect of the embodiment of the present invention, the speaker is in a closed environment, and the force balance model includes:
[0022] BLI = kx + PS;
[0023] Among them, B is the magnetic induction intensity of the speaker, L is the effective length of the voice coil of the speaker diaphragm, I is the current applied to the voice coil of the speaker diaphragm, k is the elastic coefficient of the speaker diaphragm, x is the position difference, P is the pressure in the speaker, and S is the effective area of the speaker diaphragm.
[0024] As an optional implementation, in the first aspect of the embodiment of the present invention, adjusting the standard electrical parameter value corresponding to the standard capacitance value according to the capacitance change value to control the speaker diaphragm to move to the target position includes:
[0025] Determining a second electrical parameter change value according to the capacitance change value;
[0026] Controlling the speaker diaphragm to move to a first position according to the standard electrical parameter value and the second electrical parameter change value;
[0027] If the second capacitance value corresponding to the first position is not within the preset capacitance value range, the second capacitance value is used as the first capacitance value until the first position is within the preset position range.
[0028] In a second aspect, a position adjustment device is provided, the position adjustment device comprising: an acquisition module, configured to detect a first capacitance value of a speaker, and if the first capacitance value is not within a preset capacitance value range, acquire a capacitance change value according to the first capacitance value and a standard capacitance value; the standard capacitance value corresponds to a standard position of a speaker diaphragm, and the first capacitance value corresponds to a current position of the speaker diaphragm;
[0029] A processing module is used to adjust the standard electrical parameter value corresponding to the standard capacitance value according to the capacitance change value to control the speaker diaphragm to move to a target position, wherein the target position is within a preset position range, and the preset position range corresponds to the preset capacitance value range.
[0030] As an optional implementation, in the second aspect of the embodiment of the present invention, the processing module is further used to adjust the standard electrical parameter value corresponding to the standard capacitance value to a target electrical parameter value according to the capacitance change value;
[0031] The processing module is further configured to generate a first force acting on the speaker diaphragm according to the target electrical parameter value, so as to move the speaker diaphragm to the target position.
[0032] As an optional implementation manner, in the second aspect of the embodiment of the present invention, the processing module is further used to calculate the first electrical parameter change value according to the capacitance change value;
[0033] The processing module is further configured to adjust the standard electrical parameter value corresponding to the standard capacitance value to the target electrical parameter value according to the first electrical parameter change value.
[0034] As an optional implementation manner, in the second aspect of the embodiment of the present invention, the acquisition module is further used to determine the current position according to the first capacitance value, and determine the standard position according to the standard capacitance value;
[0035] The acquisition module is further used to acquire a position difference of the speaker diaphragm according to the current position and the standard position;
[0036] The processing module is further used to calculate the first electrical parameter change value according to the position difference through a force balance model.
[0037] As an optional implementation, in the second aspect of the embodiment of the present invention, the speaker is in a non-sealed environment, and the force balance model includes:
[0038] BLI = kx;
[0039] Among them, B is the magnetic induction intensity of the speaker, L is the effective length of the voice coil of the speaker diaphragm, I is the current applied to the voice coil of the speaker diaphragm, k is the elastic coefficient of the speaker diaphragm, and x is the position difference.
[0040] As an optional implementation, in a second aspect of the embodiment of the present invention, the speaker is in a closed environment, and the force balance model includes:
[0041] BLI = kx + PS;
[0042] Among them, B is the magnetic induction intensity of the speaker, L is the effective length of the voice coil of the speaker diaphragm, I is the current applied to the voice coil of the speaker diaphragm, k is the elastic coefficient of the speaker diaphragm, x is the position difference, P is the pressure in the speaker, and S is the effective area of the speaker diaphragm.
[0043] As an optional implementation, in the second aspect of the embodiment of the present invention, the acquisition module is further used to determine a second electrical parameter change value according to the capacitance change value;
[0044] The processing module is further used to control the speaker diaphragm to move to a first position according to the standard electrical parameter value and the second electrical parameter change value;
[0045] The processing module is further configured to use the second capacitance value as the first capacitance value if the second capacitance value corresponding to the first position is not within the preset capacitance value range, until the first position is within the preset position range.
[0046] In a third aspect, a position adjustment device is provided, comprising:
[0047] A memory storing executable program code;
[0048] a processor coupled to the memory;
[0049] The processor calls the executable program code stored in the memory to execute the position adjustment method in the first aspect of the embodiment of the present invention.
[0050] In a fourth aspect, a terminal device is provided, wherein the terminal device comprises a position adjustment device as described in the second aspect or the third aspect of the embodiment of the present invention.
[0051] In a fifth aspect, a computer-readable storage medium is provided, which stores a computer program, wherein the computer program enables a computer to execute the position adjustment method in the first aspect of the embodiment of the present invention. The computer-readable storage medium includes a ROM / RAM, a magnetic disk or an optical disk, etc.
[0052] According to a sixth aspect, a computer program product is provided. When the computer program product is run on a computer, the computer is caused to execute part or all of the steps of any one of the methods according to the first aspect.
[0053] In a seventh aspect, an application publishing platform is provided, wherein the application publishing platform is used to publish a computer program product, wherein when the computer program product runs on a computer, the computer executes part or all of the steps of any one method of the first aspect.
[0054] Compared with the prior art, the embodiments of the present invention have the following beneficial effects:
[0055] In an embodiment of the present invention, the terminal device can detect the first capacitance value of the speaker. If the first capacitance value is not within the preset capacitance value range, the capacitance change value is obtained according to the first capacitance value and the standard capacitance value; wherein the standard capacitance value corresponds to the standard position of the speaker diaphragm, and the first capacitance value corresponds to the current position of the speaker diaphragm; then, according to the capacitance change value, the standard electrical parameter value corresponding to the standard capacitance value is adjusted to control the speaker diaphragm to move to the target position, which is within the preset position range, and the preset position range corresponds to the preset capacitance value range. In this technical solution, because the capacitance value and the position of the speaker diaphragm correspond to each other, when the first capacitance value is not within the preset capacitance value range, it can be said that the position of the speaker diaphragm has also shifted and is not within the preset position range; then the terminal device can obtain the capacitance change value according to the first capacitance value and the standard capacitance value, and then adjust the standard electrical parameter value corresponding to the standard capacitance value according to the capacitance change value, so that the speaker diaphragm moves to the target position within the preset position range. In this way, the effect of correcting the position of the speaker diaphragm deviating from the preset position range can be achieved, ensuring that the speaker diaphragm can return to the preset position range, so that the performance of the speaker is not affected. BRIEF DESCRIPTION OF THE DRAWINGS
[0056] In order to more clearly illustrate the technical solutions in the embodiments of the present invention, the drawings required for use in the embodiments will be briefly introduced below. Obviously, the drawings described below are only some embodiments of the present invention. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying creative work.
[0057] Figure 1a is a schematic diagram of a cone loudspeaker provided by an embodiment of the present invention;
[0058] Figure 1b is a schematic diagram of a dome speaker provided by an embodiment of the present invention;
[0059] Figure 1c is an exploded schematic diagram of an electromagnetic speaker provided by an embodiment of the present invention;
[0060] Figure 1d is a side sectional view of an electromagnetic speaker provided by an embodiment of the present invention;
[0061] Figure 2 1 is a flow chart of a position adjustment method provided by an embodiment of the present invention;
[0062] Figure 3 A schematic diagram of a position adjustment method provided by an embodiment of the present invention Figure 2 ;
[0063] Figure 4A schematic diagram of a position adjustment method provided by an embodiment of the present invention Figure 3 ;
[0064] Figure 5 1 is a structural schematic diagram of a position adjustment device provided by an embodiment of the present invention;
[0065] Figure 6 The structure of a position adjustment device provided by an embodiment of the present invention is shown in FIG. Figure 2 ;
[0066] Figure 7 is a schematic diagram of the structure of a terminal device provided by an embodiment of the present invention;
[0067] Figure 8 It is a schematic diagram of the hardware structure of a position adjustment device provided in an embodiment of the present invention. DETAILED DESCRIPTION
[0068] The following will be combined with the drawings in the embodiments of the present invention to clearly and completely describe the technical solutions in the embodiments of the present invention. Obviously, the described embodiments are part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of the present invention.
[0069] The terms "first" and "second" in the specification and claims of the present invention are used to distinguish different objects rather than to describe a specific order of objects. For example, a first capacitance value and a second capacitance value are used to distinguish different capacitance values rather than to describe a specific order of capacitance values.
[0070] The terms "including" and "having" and any variations thereof in the embodiments of the present invention are intended to cover non-exclusive inclusions. For example, a process, method, system, product or apparatus comprising a series of steps or units is not necessarily limited to those steps or units explicitly listed, but may include other steps or units not explicitly listed or inherent to these processes, methods, products or apparatus.
[0071] It should be noted that, in the embodiments of the present invention, words such as "exemplary" or "for example" are used to indicate examples, illustrations or descriptions. Any embodiment or design described as "exemplary" or "for example" in the embodiments of the present invention should not be interpreted as being more preferred or more advantageous than other embodiments or designs. Specifically, the use of words such as "exemplary" or "for example" is intended to present related concepts in a specific way.
[0072] A speaker is a transducer that converts electrical signals into sound signals. The performance of the speaker has a great impact on the sound quality. Speakers can be divided into many types, including Figure 1a The basic structure of a cone speaker is shown. Figure 1b Shown is the basic construction of a dome speaker.
[0073] pass Figure 1a and Figure 1b As you can see, the speaker includes a diaphragm, a voice coil, a magnetic plate, a magnet and a folding ring; the magnetic force generated by the magnetic plate and the magnet can drive the voice coil to move, and because the folding ring is flexible, the diaphragm connected to the folding ring can vibrate under the drive of the voice coil, thereby generating sound. In addition, Figure 1a The cone speaker also includes: a pressing edge, a dust cover, a basin stand, a T iron (magnetic column), and a centering support. Figure 1b The dome speaker also includes: pads and back chamber. Among them, the functions of the edge and pads are similar, both of which are to fix the folding ring; the basin frame is to support the external structure of the entire speaker; the dust cover is to prevent dust from entering the speaker and affecting the performance; the centering support is also called the elastic wave, which is an important component of the speaker and the supporting component of the speaker suspension system. Its function is to support the joint between the voice coil and the basin frame in the speaker, so that the voice coil can move freely up and down in the magnetic gap without moving horizontally, ensuring that the voice coil does not collide with the magnetic plate to produce abnormal sound; T iron can form a magnetic field with the magnetic plate and magnet. The back chamber is the internal space of the entire speaker, which is generally filled with sound-absorbing materials.
[0074] like Figure 1c is a three-dimensional decomposition diagram of the electromagnetic speaker, such as Figure 1d for Figure 1c The electromagnetic speaker is shown in a side cross-sectional view after assembly. Figure 1c and Figure 1d The electromagnetic speaker 1 includes a basin frame 10, a magnetic component 11 and a vibration system 12. The magnetic component 11 includes Figure 1d The magnetic gap 111 and the washer 112 in the electromagnetic speaker are formed by the washer 112 and the core column of the T iron after the electromagnetic speaker is assembled. The vibration system 12 includes a diaphragm 13 and a voice coil 14. The diaphragm 13 is arranged above the magnetic component 11, and its edge is fixed to the edge of the basin frame 10. One end of the voice coil 14 is suspended in the magnetic gap 111, and the other end thereof is connected to the diaphragm 13. The diaphragm 13 includes a folding ring 131 and a dome 135 stacked on the folding ring 131. The folding ring 131 includes a folding ring portion 132 and a plane 134 located at the center thereof, and the lower surface of the dome 135 is tightly fitted with the plane 134.
[0075] In the embodiment of the present invention, the dome 135 and the washer 112 form two plates of a flat plate capacitor.
[0076] Optionally, the dome can also form two plates of a flat-panel capacitor with other planes opposite to it, such as the dome and the front cover of the speaker, the dome and the sound cavity wall, the dome and the casing wall can all form two plates of a flat-panel capacitor, and the embodiments of the present invention are not limited thereto.
[0077] During the operation of the speaker, the position of the speaker diaphragm may shift due to various reasons, such as: the speaker cavity is in a closed state, and heat is generated during operation, causing the internal pressure to increase, causing the diaphragm to shift due to pressure; or the user adjusts the volume too high, causing the diaphragm to fall off and the diaphragm position to shift. If the speaker diaphragm shifts, the performance of the speaker will also be affected to a certain extent. However, there is currently no good way to correct the position of the speaker diaphragm.
[0078] In order to solve the above problems, an embodiment of the present invention provides a method, device and storage medium for adjusting the position of a speaker diaphragm, which can correct the position of the speaker diaphragm that deviates from a preset position range, ensure that the speaker diaphragm can return to the preset position range, and thus the performance of the speaker is not affected.
[0079] The execution subject of the position adjustment method provided in the embodiment of the present invention may be a position adjustment device, or may be a terminal device including the position adjustment device, and specifically may include the following three situations:
[0080] (1) The execution subject is a terminal device, and the terminal device is provided with a speaker;
[0081] (2) The execution subject is a functional module capable of implementing the position adjustment method, the functional module exists in a terminal device, and a speaker is provided in the terminal device;
[0082] (3) The execution subject is a position adjustment device in a speaker, and the speaker exists in the terminal device.
[0083] The terminal device involved in the embodiment of the present invention may be a mobile phone, a tablet computer, a laptop computer, a PDA, a vehicle-mounted terminal device, a wearable device, an ultra-mobile personal computer (UMPC), a netbook, or a personal digital assistant (PDA) and other electronic devices. Among them, the wearable device may be a smart watch, a smart bracelet, a watch phone, a smart anklet, a smart earring, a smart necklace, a smart headset, etc., which is not limited in the embodiment of the present invention.
[0084] The specific method can be determined according to actual use requirements, and is not limited in the embodiment of the present invention. The following takes a terminal device as an example to exemplarily illustrate the position adjustment method provided in the embodiment of the present invention.
[0085] The position adjustment method provided in the embodiment of the present invention can be applied to a scenario where the diaphragm position is offset when the speaker is in working state.
[0086] Embodiment 1
[0087] like Figure 2 As shown, an embodiment of the present invention provides a position adjustment method, which may include the following steps:
[0088] 201. Detect a first capacitance value of a speaker.
[0089] It should be noted that capacitance can be expressed as the ability of a capacitor to store charge under a certain potential difference, represented by the symbol C. For a flat plate capacitor, there are two calculation formulas for capacitance:
[0090] (1) The determining formula of capacitance:
[0091]
[0092] Among them, ε is the dielectric constant of the medium between the two plates of the flat plate capacitor, S is the relative area between the two plates of the flat plate capacitor, and d is the distance between the two plates of the flat plate capacitor.
[0093] (2) Calculation formula of capacitance:
[0094]
[0095] Among them, Q is the charge between the two plates of the flat plate capacitor, and U is the voltage between the two plates of the flat plate capacitor.
[0096] In the embodiment of the present invention, when the loudspeaker diaphragm deviates in the vibration direction, Figure 1c The distance between the dome 135 and the washer 112 will change, that is, d in the capacitance determining formula will change, and ε and S will not change, thus causing the capacitance to change.
[0097] It should be noted that, according to the calculation formula and determination formula of capacitance, it can be seen that when the terminal device detects the first capacitance value of the speaker, a fixed voltage can be added to the two plates, so that when the current is changed, only the charge can be changed, thereby changing the capacitance, and adjusting the distance between the two plates while the dielectric constant and the relative area remain unchanged; when the terminal device detects the first capacitance value of the speaker, the two plates can also have a fixed charge, so that when the current is changed, only the voltage can be changed, thereby changing the capacitance, and adjusting the distance between the two plates while the dielectric constant and the relative area remain unchanged.
[0098] 202. Obtain capacitance change value.
[0099] In the embodiment of the present invention, if the first capacitance value is not within the preset capacitance value range, the capacitance change value is obtained according to the first capacitance value and the standard capacitance value. The standard capacitance value corresponds to the standard position of the speaker diaphragm, and the first capacitance value corresponds to the current position of the speaker diaphragm.
[0100] It can be seen from the above formula (2) that when the speaker diaphragm is offset, only the distance d between the two plates changes, while the dielectric constant ε of the medium between the plates and the relative area S of the two plates do not change. Therefore, the capacitance value and the position of the speaker diaphragm can correspond one to one.
[0101] It should be noted that the standard capacitance value is the capacitance value corresponding to the standard position of the speaker diaphragm, and the standard position is the position when the performance of the speaker reaches the national standard. The standard capacitance value is within the preset capacitance value range, and the preset capacitance value range is set by the terminal device according to the performance of the speaker. When the first capacitance value is within the preset capacitance value range, the performance of the speaker is not greatly affected.
[0102] 203. Adjust the standard electrical parameter value corresponding to the standard capacitance value to control the speaker diaphragm to move to the target position.
[0103] In the embodiment of the present invention, the terminal device can adjust the standard electrical parameter value corresponding to the standard capacitance value according to the capacitance change value, so as to control the speaker diaphragm to move to the target position.
[0104] It should be noted that the target position is within a preset position range, and the preset position range corresponds to a preset capacitance value range. The target position may be a standard position, or may be another position within the preset position range except the standard position.
[0105] Optionally, the electrical parameter value includes at least one of: current magnitude, current direction, voltage magnitude, and voltage direction.
[0106] The embodiment of the present invention provides a position adjustment method, and the terminal device can detect the first capacitance value of the speaker. If the first capacitance value is not within the preset capacitance value range, the capacitance change value is obtained according to the first capacitance value and the standard capacitance value; and then the standard electrical parameter value corresponding to the standard capacitance value is adjusted according to the capacitance change value to control the speaker diaphragm to move to the target position. In this technical solution, because the capacitance value and the position of the speaker diaphragm correspond to each other, when the first capacitance value is not within the preset capacitance value range, it can be explained that the position of the speaker diaphragm has also shifted and is not within the preset position range; then the terminal device can obtain the capacitance change value according to the first capacitance value and the standard capacitance value, and then adjust the standard electrical parameter value corresponding to the standard capacitance value according to the capacitance change value, so that the speaker diaphragm moves to the target position within the preset position range. In this way, the effect of correcting the position of the speaker diaphragm deviating from the preset position range can be achieved, ensuring that the speaker diaphragm can return to the preset position range, so that the performance of the speaker is not affected.
[0107] Embodiment 2
[0108] like Figure 3 As shown, the position adjustment method provided in the embodiment of the present invention may also include the following steps:
[0109] 301. Detect a first capacitance value of a speaker.
[0110] 302. Obtain a capacitance change value.
[0111] In the embodiment of the present invention, for the description of steps 301 to 302, please refer to the detailed description of steps 201 to 202 in the first embodiment, and the embodiment of the present invention will not be repeated here.
[0112] 303. Adjust the standard electrical parameter value corresponding to the standard capacitance value to the target electrical parameter value.
[0113] In the embodiment of the present invention, the terminal device can adjust the standard electrical parameter value corresponding to the standard capacitance value to the target electrical parameter value according to the capacitance change value.
[0114] It should be noted that before the speaker diaphragm is offset, the electrical parameter value is the standard electrical parameter value corresponding to the standard capacitance value. After the speaker diaphragm is offset, in order to move the speaker diaphragm to a preset position range, the terminal device needs to adjust the standard electrical parameter value, that is, adjust the current standard electrical parameter value to the target electrical parameter value.
[0115] Optionally, the terminal device adjusts the standard electrical parameter value corresponding to the standard capacitance value to the target electrical parameter value, which may include: calculating a first electrical parameter change value based on the capacitance change value; and adjusting the standard electrical parameter value corresponding to the standard capacitance value to the target electrical parameter value based on the first electrical parameter change value.
[0116] In the embodiment of the present invention, after the terminal device calculates and obtains the first electrical parameter change value, it can add the first electrical parameter change value to the standard electrical parameter value to obtain the target electrical parameter value.
[0117] Furthermore, calculating the first electrical parameter change value based on the capacitance change value may include: determining the current position based on the first capacitance value, and determining the standard position based on the standard capacitance value; obtaining the position difference of the speaker diaphragm based on the current position and the standard position; and calculating the first electrical parameter change value through a force balance model based on the position difference.
[0118] It should be noted that the capacitance value and the position of the speaker diaphragm are one-to-one corresponding, so the terminal device can determine the current position based on the first capacitance value, and then determine the standard position based on the standard capacitance value. Based on the current position and the standard position, the position difference of the speaker diaphragm can be obtained, that is, the distance the speaker diaphragm is offset. The terminal device can substitute the position difference into the force balance model, and obtain the first electrical parameter change value through calculation. The first electrical parameter change value is the numerical value of the electrical parameter value change, that is, the difference between the target electrical parameter value and the standard electrical parameter value.
[0119] Among them, the force balance model can be applied to two scenarios:
[0120] Scenario 1: When the speaker is in a non-sealed environment, the force balance model can be expressed as:
[0121] BLI=kx
[0122] Among them, B is the magnetic induction intensity of the speaker, L is the effective length of the voice coil of the speaker diaphragm, I is the current applied to the voice coil of the speaker diaphragm, k is the elastic coefficient of the speaker diaphragm, and x is the position difference.
[0123] It should be noted that because the speaker is in a non-sealed environment, the speaker diaphragm is only subjected to elastic force when it deflects. In this case, the terminal device needs to apply a first force to the speaker diaphragm so that the speaker diaphragm can move to the target position under the action of the first force.
[0124] Among them, because the voice coil of the speaker diaphragm is connected to the entire magnetic circuit system, and the voice coil is a current-carrying coil, when current flows through the voice coil, the voice coil will be subjected to the Ampere force. The Ampere force is the force of the magnetic field on the current. In essence, it is the resultant force of the Lorentz force on the charges that form the directional movement of the current. Through experiments, it can be known that the magnitude of the Ampere force F on a section of current-carrying wire perpendicular to the magnetic field at a certain point in the magnetic field is proportional to the product of the current intensity I and the length L of the wire.
[0125] In the embodiment of the present invention, for the speaker, after leaving the factory, its magnetic induction intensity and the effective length of the voice coil are constant, so the Ampere force of the voice coil is only affected by the current. When the position of the speaker diaphragm is not offset, its Ampere force and elastic force are balanced; when the position of the speaker diaphragm is offset to a certain extent, the elastic force will be greater than the Ampere force. At this time, the terminal device can increase the Ampere force by increasing the intensity of the current, so that the speaker diaphragm moves to the target position under the action of the Ampere force and continues to maintain force balance.
[0126] It should be noted that the current and voltage correspond through resistance. Since the resistance of the voice coil is constant, the terminal device can adjust the current or the voltage to achieve the effect of adjusting the Ampere force.
[0127] Scenario 2: When the speaker is in a closed environment, the force balance model can be expressed as:
[0128] BLI=kx+PS
[0129] Among them, B is the magnetic induction intensity of the speaker, L is the effective length of the voice coil of the speaker diaphragm, I is the current applied to the voice coil of the speaker diaphragm, k is the elastic coefficient of the speaker diaphragm, x is the position difference, P is the pressure in the speaker, and S is the effective area of the speaker diaphragm.
[0130] It should be noted that because the speaker is in a closed environment, it will generate heat when working, causing the air to expand. At this time, the speaker will be affected by the combined effect of elastic force and pressure. Therefore, when the terminal device adjusts the current value, it needs to maintain the balance of Ampere force and elastic force and pressure.
[0131] Optionally, calculating the first electrical parameter change value based on the capacitance change value may also include: determining the current position based on the first capacitance value, and determining the standard position based on the standard capacitance value; obtaining the position difference of the speaker diaphragm based on the current position and the standard position; and obtaining the first electrical parameter change value based on the position difference and the corresponding relationship between the position difference and the electrical parameter change value.
[0132] It should be noted that the terminal device can also store the correspondence between the position difference and the electrical parameter change value after multiple tests. When the speaker diaphragm has a certain displacement, the first electrical parameter change value corresponding to the position difference can be directly obtained from the correspondence between the position difference and the electrical parameter change value.
[0133] Exemplarily, it is assumed that the corresponding relationship between the position difference and the electrical parameter change value includes: when the position difference is 0.1cm, the electrical parameter change value is a current adjustment of 0.5A; when the position difference is 0.15cm, the electrical parameter change value is a current adjustment of 0.7A; when the position difference is 0.2cm, the electrical parameter change value is a current adjustment of 0.95A; when the position difference is 0.25cm, the electrical parameter change value is a current adjustment of 1.3A; when the position difference is 0.3cm, the electrical parameter change value is a current adjustment of 1.75A; when the position difference is 0.35cm, the electrical parameter change value is a current adjustment of 2.4A. If the terminal device determines the current position and the standard position according to the first capacitance value and the standard capacitance value, and the obtained position difference is 0.2cm, then the first electrical parameter change value can be directly obtained as 0.95A from the corresponding relationship between the position difference and the electrical parameter change value.
[0134] This technical solution stores the correspondence between the position difference and the electrical parameter change value. In the subsequent process of adjusting the electrical parameter value, there is no need to calculate the electrical parameter change value through the force balance model every time. The electrical parameter change value can be directly obtained through the correspondence, which can reduce the power consumption of the terminal device.
[0135] 304. Generate a first force on the speaker diaphragm to move the speaker diaphragm to a target position.
[0136] In the embodiment of the present invention, after adjusting the standard electrical parameter value to the target electrical parameter value, the terminal device may generate a first force on the speaker diaphragm according to the target electrical parameter value, so that the speaker diaphragm moves to the target position.
[0137] It should be noted that after the electrical parameter value is adjusted, the voice coil will generate a first force on the speaker diaphragm, so that the speaker diaphragm moves to the target position under the action of the first force. The target position is any position in the preset position range, which can be a standard position or any position in the preset position range other than the standard position, which is not limited in the embodiment of the present invention.
[0138] The embodiment of the present invention provides a position adjustment method. Since the capacitance value and the position of the speaker diaphragm correspond to each other, when the first capacitance value is not within the preset capacitance value range, it can be said that the position of the speaker diaphragm has also shifted and is not within the preset position range. Then the terminal device can obtain the capacitance change value according to the first capacitance value and the standard capacitance value. Then, according to the capacitance change value, the standard electrical parameter value is adjusted to the target electrical parameter value, thereby generating a first force on the speaker diaphragm to move the speaker diaphragm to the target position. This technical solution can detect the offset of the speaker diaphragm in a timely manner. When the speaker diaphragm is offset, the electrical parameter value is adjusted so that the speaker diaphragm moves to the target position within the preset position range under the action of the first force. In this way, the position of the speaker diaphragm can be corrected more accurately, ensuring that the speaker diaphragm can return to the preset position range, thereby ensuring that the performance of the speaker is not affected.
[0139] Embodiment 3
[0140] like Figure 4 As shown, the position adjustment method provided in the embodiment of the present invention may also include the following steps:
[0141] 401. Detect a first capacitance value of a speaker.
[0142] 402. Obtain a capacitance change value.
[0143] In the embodiment of the present invention, for the description of steps 401 to 402, please refer to the detailed description of steps 201 to 202 in the first embodiment, and the embodiment of the present invention will not be repeated here.
[0144] 403. Determine a second electrical parameter change value.
[0145] In the embodiment of the present invention, the terminal device may determine the second electrical parameter change value according to the capacitance change value.
[0146] It should be noted that the second electrical parameter change value is arbitrarily set according to the capacitance change value.
[0147] 404. Control the speaker diaphragm to move to a first position.
[0148] In an embodiment of the present invention, the terminal device can generate a second force on the speaker diaphragm according to the standard electrical parameter value and the second electrical parameter change value, so that the voice coil on the speaker diaphragm drives the speaker diaphragm to move to the first position under the action of the second force.
[0149] 405 . Detect whether the second capacitance value corresponding to the first position is within a preset capacitance value range.
[0150] In the embodiment of the present invention, if the second capacitance value corresponding to the first position is within the preset capacitance value range, the step is ended; if the second capacitance value corresponding to the first position is not within the preset capacitance value range, the following step 406 is executed.
[0151] 406. Use the second capacitance value as the first capacitance value until the first position is within a preset position range.
[0152] In the embodiment of the present invention, if the second capacitance value corresponding to the first position is not within the preset capacitance value range, the second capacitance value is used as the first capacitance value, and the steps in the embodiment of the present invention are continued until the first position is within the preset position range.
[0153] There are three specific situations:
[0154] Case 1: When the second capacitance value is closer to the preset capacitance value range than the first capacitance value, and the second capacitance value and the first capacitance value are on the same side of the preset capacitance value range, it can be explained that the first adjustment of the electrical parameter value is to promote the movement of the speaker diaphragm to the preset position range, but the adjusted electrical parameter change value is not enough. At this time, the terminal device can increase a certain electrical parameter change value based on the second electrical parameter change value.
[0155] For example, assuming that the preset capacitance value range is 1.5 farads (F) to 2F, and the standard capacitance value is 1.7F. When the first capacitance value obtained by the terminal device is 3F, which is not within the preset capacitance value range, and according to the standard capacitance value, the capacitance change value is 1.3F, then the electrical parameter value can be appropriately adjusted at this time. Assuming that the second electrical parameter change value is 0.2 amperes (A), the current can be changed from 3A to 3.2A. At this time, the speaker diaphragm will move. At this time, the terminal device detects that the capacitance value corresponding to the position after the speaker diaphragm moves is 2.6F, which is not within the preset capacitance value range. However, 3F and 2.6F are both greater than 2F, and 2.6F is closer to 2F than 3F, so it can be explained that the current is changed from 3A to 3.2A. 2A is effective, but the change is not enough; then the terminal device can use 2.6F as the first capacitance value and determine the second electrical parameter change value again, assuming it is 0.3A, that is, the current can be changed from 3.2A to 3.5A. At this time, the speaker diaphragm will move again. At this time, the terminal device detects that the capacitance value corresponding to the position of the speaker diaphragm after movement is 2.15F, which is closer to the preset capacitance value range. Then the terminal device can use 2.15F as the first capacitance value and perform the above steps again until the terminal device detects that the capacitance value corresponding to the position of the speaker diaphragm after movement is in the range of 1.5F to 2F.
[0156] Case 2: When the second capacitance value is farther away from the preset capacitance value range than the first capacitance value, and the second capacitance value and the first capacitance value are on the same side of the preset capacitance value range, it can be explained that the first adjustment of the electrical parameter value is to suppress the movement of the speaker diaphragm to the preset position range. At this time, the terminal device can change the direction of the electrical parameter change value.
[0157] For example, assuming that the preset capacitance value range is 1.5F to 2F, and the standard capacitance value is 1.7F. When the first capacitance value obtained by the terminal device is 3F, which is not within the preset capacitance value range, and according to the standard capacitance value, the capacitance change value is 1.3F, then the electrical parameter value can be appropriately adjusted at this time. Assuming that the second electrical parameter change value is 0.2A, the current can be changed from 3A to 3.2A. At this time, the speaker diaphragm will move. At this time, the terminal device detects that the capacitance value corresponding to the position after the speaker diaphragm moves is 3.4F, which is not within the preset capacitance value range. However, 3.4F and 3F are both greater than 2F, but 3.4F is farther away from 2F than 3F, which means that the direction of the first adjustment of the electrical parameter value is wrong; then the terminal device can use 3.4F as the first capacitance value, and change the direction of the second electrical parameter change value, and perform the above steps again until the terminal device detects that the capacitance value corresponding to the position after the speaker diaphragm moves is within the range of 1.5F to 2F.
[0158] Case three: When the second capacitance value and the first capacitance value are on different sides of the preset capacitance value range, it can be said that the second electrical parameter change value is too large, causing the speaker diaphragm to move beyond the range. At this time, the terminal device can reduce a certain electrical parameter change value based on the second electrical parameter change value and change the direction of the electrical parameter change value.
[0159] For example, assume that the preset capacitance value range is 1.5F to 2F, and the standard capacitance value is 1.7F. When the first capacitance value obtained by the terminal device is 3F, which is not within the preset capacitance value range, and the capacitance change value is 1.3F according to the standard capacitance value, then the electrical parameter value can be appropriately adjusted at this time. Assuming that the second electrical parameter change value is 0.2A, the current can be changed from 3A to 3.2A. At this time, the speaker diaphragm will move. At this time, the terminal device detects that the capacitance value corresponding to the position after the speaker diaphragm moves is 1.3F, which is not within the preset capacitance value range. Moreover, 1.3F and 3F are on both sides of 1.5F to 2F. It can be said that the second electrical parameter change value is too large, and the speaker diaphragm should be moved. If the moving distance is too large, 1.3F can be used as the first capacitance value, and the second electrical parameter change value can be determined again, assuming it is 0.05A, and the direction of the second electrical parameter change value is changed. At this time, the speaker diaphragm will move again. At this time, the terminal device detects that the capacitance value corresponding to the position after the speaker diaphragm moves is 1.45F, which is closer to the preset capacitance value range than 1.3F. Then the terminal device can use 1.45F as the first capacitance value and perform the above steps again until the terminal device detects that the capacitance value corresponding to the position after the speaker diaphragm moves is in the range of 1.5F to 2F.
[0160] The embodiment of the present invention provides a position adjustment method. Since the capacitance value and the position of the speaker diaphragm correspond to each other, when the first capacitance value is not within the preset capacitance value range, it can be said that the position of the speaker diaphragm has also shifted and is not within the preset position range. Then the terminal device can obtain the capacitance change value based on the first capacitance value and the standard capacitance value. Then, according to the capacitance change value, the second electrical parameter change value is determined, and the standard electrical parameter value is adjusted to control the speaker diaphragm to move to the first position. If the second capacitance value corresponding to the first position is not within the preset capacitance value range, the second capacitance value is used as the first capacitance value and all the steps of the embodiment of the present invention are continued until the first position is within the preset position range. This technical solution can adjust the electrical parameter value through multiple cycles to move the speaker diaphragm to the target position within the preset position range. Because the displacement of the speaker diaphragm may not be large in practice, this solution can move the speaker diaphragm to the preset position range as soon as possible.
[0161] Embodiment 4
[0162] like Figure 5 As shown, an embodiment of the present invention provides a position adjustment device, the position adjustment device comprising:
[0163] The acquisition module 501 is used to detect a first capacitance value of the speaker. If the first capacitance value is not within a preset capacitance value range, a capacitance change value is acquired according to the first capacitance value and a standard capacitance value; the standard capacitance value corresponds to a standard position of the speaker diaphragm, and the first capacitance value corresponds to a current position of the speaker diaphragm;
[0164] The processing module 502 is used to adjust the standard electrical parameter value corresponding to the standard capacitance value according to the capacitance change value to control the speaker diaphragm to move to the target position, the target position is within a preset position range, and the preset position range corresponds to the preset capacitance value range.
[0165] As an optional implementation, the processing module 502 is further configured to adjust the standard electrical parameter value corresponding to the standard capacitance value to the target electrical parameter value according to the capacitance change value;
[0166] The processing module 502 is further configured to generate a first force acting on the speaker diaphragm according to the target electrical parameter value, so as to move the speaker diaphragm to a target position.
[0167] As an optional implementation, the processing module 502 is further configured to calculate a first electrical parameter change value according to the capacitance change value;
[0168] The processing module 502 is further configured to adjust the standard electrical parameter value corresponding to the standard capacitance value to the target electrical parameter value according to the first electrical parameter change value.
[0169] As an optional implementation, the acquisition module 501 is further used to determine the current position according to the first capacitance value, and determine the standard position according to the standard capacitance value;
[0170] The acquisition module 501 is further used to acquire a position difference of the loudspeaker diaphragm according to the first position and the standard position;
[0171] The processing module 502 is further used to calculate the first electrical parameter change value according to the position difference through the force balance model.
[0172] As an optional implementation, the loudspeaker is in a non-enclosed environment, and the force balance model includes:
[0173] BLI=kx
[0174] Wherein, B is the magnetic induction intensity of the speaker, L is the effective length of the voice coil of the speaker diaphragm, I is the current applied to the voice coil of the speaker diaphragm, k is the elastic coefficient of the speaker diaphragm, and x is the first offset.
[0175] As an optional implementation, the loudspeaker is in a closed environment, and the force balance model includes:
[0176] BLI=kx+PS
[0177] Among them, B is the magnetic induction intensity of the speaker, L is the effective length of the voice coil of the speaker diaphragm, I is the current applied to the voice coil of the speaker diaphragm, k is the elastic coefficient of the speaker diaphragm, x is the first offset, P is the pressure in the speaker, and S is the effective area of the speaker diaphragm.
[0178] As an optional implementation, the acquisition module 501 is further used to determine a second electrical parameter change value according to the capacitance change value;
[0179] The processing module 502 is further used to control the speaker diaphragm to move to the first position according to the standard electrical parameter value and the second electrical parameter change value;
[0180] The processing module 502 is further configured to use the second capacitance value as the first capacitance value if the second capacitance value corresponding to the first position is not within the preset capacitance value range, until the first position is within the preset position range.
[0181] In the embodiment of the present invention, each module can implement the position adjustment method provided in the above method embodiment and can achieve the same technical effect. To avoid repetition, it will not be described here.
[0182] like Figure 6 As shown, an embodiment of the present invention further provides a position adjustment device, which may include:
[0183] A memory 601 storing executable program codes;
[0184] a processor 602 coupled to the memory 601;
[0185] The processor 602 calls the executable program code stored in the memory 601 to execute all or part of the steps in the position adjustment method in the above embodiment.
[0186] like Figure 7 As shown, the embodiment of the present invention further provides a terminal device, which may include: Figure 5 or Figure 6 The position adjustment device shown.
[0187] like Figure 8As shown, the embodiment of the present invention further provides a position adjustment device, which includes but is not limited to: a radio frequency (RF) circuit 801, a memory 802, an input unit 803, a display unit 804, a sensor 805, an audio circuit 806, a WiFi (wireless fidelity) module 807, a processor 808, a power supply 809, and a camera 810. Among them, the RF circuit 801 includes a receiver 8011 and a transmitter 8012. Those skilled in the art can understand that Figure 8 The structure of the position adjustment device shown in the figure does not constitute a limitation on the position adjustment device, and may include more or less components than shown in the figure, or combine certain components, or arrange the components differently.
[0188] The RF circuit 801 can be used for receiving and sending signals during information transmission or calls. In particular, after receiving the downlink information of the base station, it is sent to the processor 808 for processing; in addition, the designed uplink data is sent to the base station. Generally, the RF circuit 801 includes but is not limited to an antenna, at least one amplifier, a transceiver, a coupler, a low noise amplifier (LNA), a duplexer, etc. In addition, the RF circuit 801 can also communicate with the network and other devices through wireless communication. The above wireless communication can use any communication standard or protocol, including but not limited to the global system of mobile communication (GSM), general packet radio service (GPRS), code division multiple access (CDMA), wideband code division multiple access (WCDMA), long term evolution (LTE), email, short messaging service (SMS), etc.
[0189] The memory 802 can be used to store software programs and modules. The processor 808 executes various functional applications and data processing of the position adjustment device by running the software programs and modules stored in the memory 802. The memory 802 can mainly include a program storage area and a data storage area, wherein the program storage area can store an operating system, an application required for at least one function (such as a sound playback function, an image playback function, etc.), etc.; the data storage area can store data created according to the use of the position adjustment device (such as audio data, a phone book, etc.), etc. In addition, the memory 802 can include a high-speed random access memory, and can also include a non-volatile memory, such as at least one disk storage device, a flash memory device, or other volatile solid-state storage devices.
[0190] The input unit 803 can be used to receive input digital or character information, and to generate key signal input related to the user setting and function control of the position adjustment device. Specifically, the input unit 803 may include a touch panel 8031 and other input devices 8032. The touch panel 8031, also known as a touch screen, can collect the user's touch operation on or near it (such as the user using any suitable object or accessory such as a finger, stylus, etc. on the touch panel 8031 or near the touch panel 8031) and drive the corresponding connection device according to a pre-set program. Optionally, the touch panel 8031 may include a touch detection device and a touch controller. Among them, the touch detection device detects the user's touch orientation, detects the signal brought by the touch operation, and transmits the signal to the touch controller; the touch controller receives the touch information from the touch detection device, converts it into the contact point coordinates, and then sends it to the processor 808, and can receive and execute the command sent by the processor 808. In addition, the touch panel 8031 can be realized by multiple methods such as resistive, capacitive, infrared and surface acoustic wave. In addition to the touch panel 8031, the input unit 803 may also include other input devices 8032. Specifically, the other input devices 8032 may include but are not limited to one or more of a physical keyboard, function keys (such as volume control keys, switch keys, etc.), a trackball, a mouse, a joystick, etc.
[0191] The display unit 804 can be used to display information input by the user or information provided to the user and various menus of the position adjustment device. The display unit 804 may include a display panel 8041. Optionally, the display panel 8041 may be configured in the form of a liquid crystal display (LCD), an organic light-emitting diode (OLED), etc. Further, the touch panel 8031 may cover the display panel 8041. When the touch panel 8031 detects a touch operation on or near it, it is transmitted to the processor 808 to determine the touch event. Subsequently, the processor 808 provides a corresponding visual output on the display panel 8041 according to the touch event. Although in Figure 8 In the embodiment, the touch panel 8031 and the display panel 8041 are used as two independent components to realize the input and output functions of the position adjustment device, but in some embodiments, the touch panel 8031 and the display panel 8041 can be integrated to realize the input and output functions of the position adjustment device.
[0192] The position adjustment device may also include at least one sensor 805, such as a light sensor, a motion sensor, and other sensors. Specifically, the light sensor may include an ambient light sensor and a proximity sensor, wherein the ambient light sensor may adjust the brightness of the display panel 8041 according to the brightness of the ambient light, and the proximity sensor may exit the display panel 8041 and / or the backlight when the position adjustment device is moved to the ear. As a type of motion sensor, the accelerometer sensor can detect the magnitude of acceleration in each direction (generally three axes), and can detect the magnitude and direction of gravity when stationary, which can be used to identify the application of the position adjustment device posture (such as horizontal and vertical screen switching, related games, magnetometer posture calibration), vibration recognition related functions (such as pedometer, tapping), etc.; as for other sensors such as gyroscopes, barometers, hygrometers, thermometers, infrared sensors, etc. that can also be configured in the position adjustment device, they will not be repeated here. In an embodiment of the present invention, the position adjustment device may include an accelerometer, a depth sensor, or a distance sensor, etc.
[0193] The audio circuit 806, the speaker 8061, and the microphone 8062 can provide an audio interface between the user and the position adjustment device. The audio circuit 806 can transmit the received audio data to the speaker 8061 after converting the received audio data into an electrical signal, which is converted into a sound signal for output; on the other hand, the microphone 8062 converts the collected sound signal into an electrical signal, which is received by the audio circuit 806 and converted into audio data, and then the audio data is output to the processor 808 for processing, and then sent to, for example, another position adjustment device through the RF circuit 801, or the audio data is output to the memory 802 for further processing.
[0194] WiFi is a short-range wireless transmission technology. The location adjustment device can help users send and receive emails, browse web pages, and access streaming media through the WiFi module 807. It provides users with wireless broadband Internet access. Figure 8 A WiFi module 807 is shown, but it is understandable that it is not a necessary component of the position adjustment device and can be omitted as needed without changing the essence of the invention.
[0195] The processor 808 is the control center of the position adjustment device. It uses various interfaces and lines to connect the various parts of the entire position adjustment device. By running or executing the software programs and / or modules stored in the memory 802 and calling the data stored in the memory 802, it performs various functions of the position adjustment device and processes data, thereby monitoring the position adjustment device as a whole. Optionally, the processor 808 may include one or more processing units; preferably, the processor 808 may integrate an application processor and a modem processor, wherein the application processor mainly processes the operating system, user interface and application programs, etc., and the modem processor mainly processes wireless communications. It is understandable that the above-mentioned modem processor may not be integrated into the processor 808.
[0196] The position adjustment device also includes a power supply 809 (such as a battery) for supplying power to each component. Preferably, the power supply can be logically connected to the processor 808 through a power management system, so that the power management system can manage charging, discharging, and power consumption. Although not shown, the position adjustment device can also include a Bluetooth module, etc., which will not be repeated here.
[0197] In the embodiment of the present invention, the processor 808 is used to detect a first capacitance value of the speaker, and if the first capacitance value is not within a preset capacitance value range, obtain a capacitance change value according to the first capacitance value and a standard capacitance value; the standard capacitance value corresponds to a standard position of the speaker diaphragm, and the first capacitance value corresponds to a current position of the speaker diaphragm;
[0198] According to the capacitance change value, the standard electrical parameter value corresponding to the standard capacitance value is adjusted to control the speaker diaphragm to move to the target position, the target position is within the preset position range, and the preset position range corresponds to the preset capacitance value range.
[0199] Optionally, the processor 808 may also be used to implement other processes implemented by the terminal device in the method embodiment.
[0200] An embodiment of the present invention provides a computer-readable storage medium storing a computer program, wherein the computer program enables a computer to execute part or all of the steps of the method in the above method embodiments.
[0201] An embodiment of the present invention further provides a computer program product, wherein when the computer program product runs on a computer, the computer is enabled to execute part or all of the steps of the methods in the above method embodiments.
[0202] An embodiment of the present invention further provides an application publishing platform, wherein the application publishing platform is used to publish a computer program product, wherein when the computer program product runs on a computer, the computer executes part or all of the steps of the method in the above method embodiments.
[0203] It should be understood that the "one embodiment" or "an embodiment" mentioned throughout the specification means that the specific features, structures or characteristics related to the embodiment are included in at least one embodiment of the present invention. Therefore, "in one embodiment" or "in an embodiment" appearing throughout the specification does not necessarily refer to the same embodiment. In addition, these specific features, structures or characteristics can be combined in one or more embodiments in any suitable manner. Those skilled in the art should also be aware that the embodiments described in the specification are all optional embodiments, and the actions and modules involved are not necessarily required by the present invention.
[0204] The terminal device provided in the embodiment of the present invention can implement each process shown in the above method embodiment, and will not be described again here to avoid repetition.
[0205] In various embodiments of the present invention, it should be understood that the size of the serial numbers of the above-mentioned processes does not necessarily mean the order of execution. The execution order of each process should be determined by its function and internal logic, and should not constitute any limitation on the implementation process of the embodiments of the present invention.
[0206] The units described above as separate components may or may not be physically separated, and the components shown as units may or may not be physical units, that is, they may be located in one place or distributed on multiple network units. Some or all of the units may be selected according to actual needs to achieve the purpose of the solution of this embodiment.
[0207] In addition, each functional unit in each embodiment of the present invention may be integrated into one processing unit, or each unit may exist physically separately, or two or more units may be integrated into one unit. The above integrated unit may be implemented in the form of hardware or in the form of software functional units.
[0208] If the above integrated unit is implemented in the form of a software functional unit and sold or used as an independent product, it can be stored in a computer-accessible memory. Based on this understanding, the technical solution of the present invention, in essence, or the part that contributes to the prior art, or all or part of the technical solution, can be embodied in the form of a software product, which is stored in a memory and includes several requests for a computer device (which can be a personal computer, a server or a network device, etc., specifically a processor in a computer device) to perform some or all of the steps of the above methods of various embodiments of the present invention.
[0209] Those skilled in the art can understand that all or part of the steps in the various methods of the above embodiments can be completed by instructing related hardware through a program, and the program can be stored in a computer-readable storage medium, and the storage medium includes a read-only memory (ROM), a random access memory (RAM), a programmable read-only memory (PROM), an erasable programmable read-only memory (EPROM), a one-time programmable read-only memory (OTPROM), an electronically erasable rewritable read-only memory (EEPROM), a compact disc (CD-ROM) or other optical disc storage, magnetic disk storage, magnetic tape storage, or any other computer-readable medium that can be used to carry or store data.
Claims
1. A method for adjusting the position of a loudspeaker diaphragm, characterized in that: The method comprises: Detecting a first capacitance value of the speaker, and if the first capacitance value is not within a preset capacitance value range, obtaining a capacitance change value according to the first capacitance value and a standard capacitance value; the standard capacitance value corresponds to a standard position of a speaker diaphragm, and the first capacitance value corresponds to a current position of the speaker diaphragm; Determining a second electrical parameter change value according to the capacitance change value; Controlling the speaker diaphragm to move to a first position according to a standard electrical parameter value and the second electrical parameter change value; If the second capacitance value corresponding to the first position is not within the preset capacitance value range, the second capacitance value is used as the new first capacitance value, and the speaker diaphragm is controlled to perform the next movement operation according to the new first capacitance value until the first position is within the preset position range, and the preset position range corresponds to the preset capacitance value range.
2. The method according to claim 1, characterized in that The controlling the speaker diaphragm to perform the next movement operation according to the new first capacitance value includes: when the second capacitance value is closer to the preset capacitance value range than the first capacitance value, and the second capacitance value and the first capacitance value are in the same range of the preset capacitance value, adding the electrical parameter change value on the basis of the new second electrical parameter change value; the new second electrical parameter change value is determined according to the new capacitance change value obtained by the new first capacitance value and the standard capacitance value; According to the standard electrical parameter value and the new second electrical parameter change value after the electrical parameter change value is added, the speaker diaphragm is controlled to perform the next movement operation.
3. The method according to claim 1, characterized in that The controlling the speaker diaphragm to perform the next movement operation according to the new first capacitance value includes: when the second capacitance value and the second capacitance value are farther away from the preset capacitance value range than the first capacitance value, and the second capacitance value and the first capacitance value are on the same side of the preset capacitance value range, changing the direction of the new second electrical parameter change value; the new second parameter change value is determined according to the new capacitance change value obtained by the new first capacitance value and the standard capacitance value; According to the standard electrical parameter value and the new second electrical parameter change value with a changed direction, the speaker diaphragm is controlled to perform the next movement operation.
4. The method according to claim 1, characterized in that: The controlling the speaker diaphragm to perform the next movement operation according to the new first capacitance value includes: when the second capacitance value and the first capacitance value are on different sides of the preset capacitance value range, reducing the electrical parameter change value based on the new second electrical parameter change value, and changing the direction of the new second electrical parameter change value; The new second parameter change value is determined by a new capacitance change value obtained according to the new first capacitance value and the standard capacitance value; According to the standard electrical parameter value and the new second electrical parameter change value with a reduced electrical parameter change value and a changed direction, the speaker diaphragm is controlled to perform the next movement operation.
5. The method according to any one of claims 1 to 4, characterized in that: The second electrical parameter change value is arbitrarily set according to the capacitance change value.
6. The method according to any one of claims 1 to 4, characterized in that: The method of controlling the speaker diaphragm to move to the first position according to the standard electrical parameter value and the second electrical parameter change value includes: generating a second force on the speaker diaphragm according to the standard electrical parameter value and the second electrical parameter change value, so that the voice coil on the speaker diaphragm drives the speaker diaphragm to move to the first position under the action of the second force.
7. A position adjustment device, characterized in that: include: an acquisition module, configured to detect a first capacitance value of the speaker, and if the first capacitance value is not within a preset capacitance value range, acquire a capacitance change value according to the first capacitance value and a standard capacitance value; the standard capacitance value corresponds to a standard position of a speaker diaphragm, and the first capacitance value corresponds to a current position of the speaker diaphragm; The acquisition module is further used to determine a second electrical parameter change value according to the capacitance change value; A processing module, configured to control the speaker diaphragm to move to a first position according to a standard electrical parameter value and the second electrical parameter change value; The processing module is also used to use the second capacitance value as a new first capacitance value when the second capacitance value corresponding to the first position is not within the preset capacitance value range, and control the speaker diaphragm to perform the next movement operation according to the new first capacitance value until the first position is within the preset position range, and the preset position range corresponds to the preset capacitance value range.
8. A position adjustment device, characterized in that: include: A memory storing executable program code; and a processor coupled to the memory; The processor calls the executable program code stored in the memory to execute the position adjustment method as described in any one of claims 1 to 6.
9. A terminal device, characterized in that: include: A position adjustment device as claimed in claim 7 or 8.
10. A computer-readable storage medium, characterized in that: include: The computer-readable storage medium stores computer instructions, and when the computer instructions are executed by a processor, the position adjustment method according to any one of claims 1 to 6 is implemented.
Citation Information
Patent Citations
Diaphragm assembly defective detection device, loudspeaker and electronic equipment
CN106060747A
Loudspeaker control method and smart terminal
CN107222807A