CN111124346A - Electronic equipment and volume adjusting method thereof - Google Patents

Electronic equipment and volume adjusting method thereof Download PDF

Info

Publication number
CN111124346A
CN111124346A CN201911206003.XA CN201911206003A CN111124346A CN 111124346 A CN111124346 A CN 111124346A CN 201911206003 A CN201911206003 A CN 201911206003A CN 111124346 A CN111124346 A CN 111124346A
Authority
CN
China
Prior art keywords
capacitance
value
real
time
compensation value
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Granted
Application number
CN201911206003.XA
Other languages
Chinese (zh)
Other versions
CN111124346B (en
Inventor
张志辉
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Vivo Mobile Communication Co Ltd
Original Assignee
Vivo Mobile Communication Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Vivo Mobile Communication Co Ltd filed Critical Vivo Mobile Communication Co Ltd
Priority to CN201911206003.XA priority Critical patent/CN111124346B/en
Publication of CN111124346A publication Critical patent/CN111124346A/en
Priority to PCT/CN2020/132219 priority patent/WO2021104450A1/en
Application granted granted Critical
Publication of CN111124346B publication Critical patent/CN111124346B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/16Sound input; Sound output
    • G06F3/165Management of the audio stream, e.g. setting of volume, audio stream path

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Audiology, Speech & Language Pathology (AREA)
  • Health & Medical Sciences (AREA)
  • General Health & Medical Sciences (AREA)
  • Human Computer Interaction (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Multimedia (AREA)
  • Circuit For Audible Band Transducer (AREA)
  • Piezo-Electric Transducers For Audible Bands (AREA)
  • Details Of Audible-Bandwidth Transducers (AREA)

Abstract

The embodiment of the invention provides electronic equipment and a volume adjusting method thereof. The electronic device comprises a shell, a ceramic loudspeaker, a capacitance detection assembly, a processor and a driver; the ceramic loudspeaker is arranged in the shell and provided with an exciter, and the exciter is connected with the shell; the capacitance detection assembly comprises a first capacitor piece, a second capacitor piece and a detection chip, the first capacitor piece is connected between the exciter and the shell, the second capacitor piece is connected to one side of the exciter, which is far away from the shell, the detection chip is respectively electrically connected with the first capacitor piece and the second capacitor piece, the first capacitor piece and the second capacitor piece form a variable capacitance unit, the capacitance value of the variable capacitance unit changes along with the deformation of the shell, and the detection chip is used for acquiring the real-time capacitance value of the variable capacitance unit; the processor is respectively electrically connected with the driver and the capacitance detection assembly, the driver is electrically connected with the exciter, and the processor controls the driver to adjust the output volume of the ceramic loudspeaker according to the real-time capacitance value.

Description

Electronic equipment and volume adjusting method thereof
Technical Field
The invention relates to the technical field of electronics, in particular to electronic equipment and a volume adjusting method thereof.
Background
Electronic devices are usually equipped with loudspeakers, and conventional electronic devices are equipped with loudspeakers of the moving coil type. However, the sound hole needs to be formed on the screen of the electronic device equipped with the moving-coil speaker, which not only affects the appearance of the electronic device, but also increases the difficulty in waterproofing the electronic device.
Based on this, the speaker that electronic equipment equipped is changed into piezoceramics speaker, and the pottery speaker relies on the casing that promotes electronic equipment and makes sound, and then can avoid offering on electronic equipment's screen and producing the sound hole.
However, when the electronic device casing is held by a human hand, the resonance point of the electronic device and the vibration of the piezoelectric ceramic loudspeaker are reduced, so that the volume of the electronic device is reduced, and the sound quality of the electronic device is affected.
Disclosure of Invention
The embodiment of the invention provides electronic equipment and a volume adjusting method thereof, aiming at solving the problem that the volume is reduced when a shell of the electronic equipment is held by a hand of a person.
In order to solve the technical problem, the invention is realized as follows:
in a first aspect, an embodiment of the present invention provides an electronic device, which includes a housing, a ceramic speaker, a capacitance detection component, a processor, and a driver;
the ceramic loudspeaker is arranged in the shell and provided with an exciter, and the exciter is connected with the shell;
the capacitance detection assembly comprises a first capacitor plate, a second capacitor plate and a detection chip, the first capacitor plate is arranged and connected between the exciter and the shell, the second capacitor plate is connected to one side, far away from the shell, of the exciter, the detection chip is electrically connected with the first capacitor plate and the second capacitor plate respectively, the first capacitor plate and the second capacitor plate form a variable capacitance unit, the capacitance value of the variable capacitance unit changes along with the deformation of the shell, and the detection chip is used for acquiring the real-time capacitance value of the variable capacitance unit;
the processor is respectively electrically connected with the driver and the capacitance detection assembly, the driver is electrically connected with the exciter, and the processor controls the driver to adjust the output volume of the ceramic loudspeaker according to the real-time capacitance value.
In a second aspect, an embodiment of the present invention further provides a volume adjustment method for an electronic device, which is applied to any one of the electronic devices in the first aspect, where the volume adjustment method includes:
and controlling the driver to adjust the output volume of the ceramic loudspeaker according to the real-time capacitance value.
In the electronic device and the volume adjusting method thereof provided by the embodiment of the invention, the capacitance detection assembly comprises a first capacitor plate, a second capacitor plate and a detection chip, the first capacitor plate is arranged and connected between the exciter and the shell, the second capacitor plate is connected to one side of the exciter far away from the shell, the detection chip is respectively electrically connected with the first capacitor plate and the second capacitor plate, the first capacitor plate and the second capacitor plate form a variable capacitance unit, the capacitance value of the variable capacitance unit changes along with the deformation of the shell, and the detection chip is used for acquiring the real-time capacitance value of the variable capacitance unit, so that when the shell of the electronic device is held or pressed by an operator, the capacitance detection assembly can detect the change of the real-time capacitance value of the variable capacitance unit at any time; and the processor is respectively electrically connected with the driver and the capacitance detection assembly, and the driver is electrically connected with the exciter, so that the processor can control the driver to adjust the output volume of the ceramic loudspeaker according to the real-time capacitance value, and the volume of the ceramic loudspeaker is not influenced by the holding or pressing of an operator.
Drawings
In order to more clearly illustrate the technical solutions of the embodiments of the present invention, the drawings needed to be used in the description of the embodiments of the present invention will be briefly introduced below, and it is obvious that the drawings in the following description are only some embodiments of the present invention, and it is obvious for those skilled in the art that other drawings can be obtained according to these drawings without inventive labor.
Fig. 1 is a schematic structural diagram of an electronic device according to an embodiment of the present invention;
fig. 2 is a flowchart illustrating a volume adjustment method of an electronic device according to an embodiment of the invention;
fig. 3 is a flowchart illustrating a volume adjustment method of another electronic device according to an embodiment of the present invention;
fig. 4 is a schematic diagram of a hardware structure of an electronic device according to an embodiment of the present invention.
Detailed Description
The technical solutions in the embodiments of the present invention will be clearly and completely described below with reference to the drawings in the embodiments of the present invention, and it is obvious that the described embodiments are some, not all, embodiments of the present invention. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present invention.
It should be appreciated that reference throughout this specification to "one embodiment" or "an embodiment" means that a particular feature, structure or characteristic described in connection with the embodiment is included in at least one embodiment of the present invention. Thus, the appearances of the phrases "in one embodiment" or "in an embodiment" in various places throughout this specification are not necessarily all referring to the same embodiment. Furthermore, the particular features, structures, or characteristics may be combined in any suitable manner in one or more embodiments.
In various embodiments of the present invention, it should be understood that the sequence numbers of the following processes do not mean the execution sequence, and the execution sequence of each process should be determined by its function and inherent logic, and should not constitute any limitation to the implementation process of the embodiments of the present invention.
Referring to fig. 1, an electronic device according to a first embodiment of the present invention includes a housing 1, a ceramic speaker 2, a capacitance detection assembly 3, a processor 4, and a driver 5;
the ceramic loudspeaker 2 is arranged in the shell 1, the ceramic loudspeaker 2 is provided with an exciter, and the exciter is connected with the shell 1;
the capacitance detection assembly 3 comprises a first capacitance piece 31, a second capacitance piece 32 and a detection chip 33, the first capacitance piece 31 is arranged between the exciter and the shell 1, the second capacitance piece 32 is connected to one side of the exciter, which is far away from the shell 1, the capacitance detection assembly 3 is electrically connected with the first capacitance piece 31 and the second capacitance piece 32 respectively, the first capacitance piece 31 and the second capacitance piece 32 form a variable capacitance unit, the capacitance value of the variable capacitance unit changes along with the deformation of the shell 1, and the detection chip 33 is used for acquiring the real-time capacitance value of the variable capacitance unit;
the processor 4 is respectively electrically connected with the driver 5 and the capacitance detection assembly 3, the driver 5 is electrically connected with the exciter, and the processor 4 controls the driver 5 to adjust the output volume of the ceramic loudspeaker 2 according to the real-time capacitance value.
In the embodiment of the present invention, the electronic apparatus generates sound by means of vibration of the ceramic speaker 2 and the housing 1. Specifically, the exciter included in the ceramic speaker 2 may include a first piezoelectric ceramic piece, a second piezoelectric ceramic piece, and a metal piece, the first piezoelectric ceramic piece and the second piezoelectric ceramic piece are respectively bonded to two sides of the metal piece, and when the upper piezoelectric piece extends and the lower piezoelectric piece contracts, the exciter is bent upward. Thus, when an alternating voltage is applied to the actuator, it oscillates up and down with the alternating voltage. The amount of displacement is proportional to the amplitude of the input signal. The vibration of the exciter causes the housing 1 to flow ambient air, thereby producing sound.
In the embodiment of the present invention, the ceramic speaker 2 may be fixed between the battery panel and the middle frame support, the first capacitor plate 31 is disposed between the exciter and the housing 1, the second capacitor plate 32 is connected to a side of the exciter away from the housing 1, and the detection chip 33 is electrically connected to the first capacitor plate 31 and the second capacitor plate 32, respectively. Like this, compare in traditional moving coil loudspeaker, can avoid can setting up out the sound hole on electronic equipment's the surface, avoid causing the influence to electronic equipment's outward appearance, reduce electronic equipment's the waterproof degree of difficulty simultaneously.
Note that, since the first capacitor plate 31 is disposed between the exciter and the housing 1, the first capacitor plate 31 and the surface of the housing 1 away from the ceramic speaker 2 constitute a variable capacitance unit. When the operator's hand presses or touches the surface of the housing 1 away from the ceramic speaker 2, the variable capacitance unit is caused to change due to the electrification of the human hand and the change of the resonance point of the exciter and the housing 1 with the pressing of the operator's hand. In addition, the detection chip 33 is electrically connected to the first capacitor plate 31, so that the real-time capacitance value of the variable capacitor unit can be obtained in real time through the detection chip 33. The detection chip 33 may be built in the processor 4 or may be external to the processor 4. It should be noted that, in the embodiment of the present invention, the first capacitor plate 31 may be a conductive diaphragm, a metal thin film sensor, or another conductive thin film plate capable of forming a variable capacitor unit, which is not limited in the embodiment of the present invention.
The second capacitor plate 32 is arranged at one end of the exciter far away from the shell 1, the detection chip 33 is electrically connected with the first capacitor plate 31 and the second capacitor plate 32 respectively, and the first capacitor plate 31 and the second capacitor plate 32 form a variable capacitor unit. In the embodiment of the present invention, the types of the second capacitor plate 32 and the first capacitor plate 31 are the same, and details of the embodiment of the present invention are not repeated, because the second capacitor plate 32 is disposed at one end of the exciter away from the housing 1, and the first capacitor plate 31 and the second capacitor plate 32 form a variable capacitor unit, the second capacitor plate 32 can be grounded. Because the distance between first capacitor piece 31 and second capacitor piece 32 is unchangeable, and then when operator's hand held or pressed electronic equipment's casing 1 for the unipolar capacitance on first capacitor piece 31 changes, because second capacitor piece 32 ground connection again for the unipolar capacitance on second capacitor piece 32 is 0, and then when detecting, only need detect the unipolar capacitance on second capacitor piece 32 and can reflect real-time capacitance value. In addition, the second capacitor plate 32 can be a metal film, so that the capacitor interference far away from one side of the electronic device shell 1 can be shielded, the influence on the capacitor detected by the variable capacitor unit is avoided, and the detection precision is higher.
In addition, the driver 5 may be one of power amplifiers, and the driver 5 may be externally disposed on the ceramic speaker 2 or internally disposed on the ceramic speaker 2 for increasing the output power of the ceramic speaker 2. The power amplifier may be one of a charge pump type amplifier or a boost type amplifier. The driver 5 is electrically connected to the processor 4 and the exciter, and the processor 4 and the detection chip 33 are electrically connected, so that the driver 5 can change the output power of the ceramic speaker 2 by changing the vibration of the exciter. In this way, the processor 4 can process the real-time capacitance value of the variable capacitance unit acquired by the detection chip 33, and can also control the driver 5 to increase the output power of the ceramic speaker 2 according to the real-time capacitance value, thereby achieving the effect of adjusting the output volume of the ceramic speaker 2.
In the electronic device provided in the embodiment of the present invention, the capacitance detection assembly 3 includes a first capacitor plate 31, a second capacitor plate 32 and a detection chip 33, the first capacitor plate 31 is disposed between the exciter and the housing 1, the second capacitor plate 32 is connected to a side of the exciter away from the housing 1, the detection chip 33 is electrically connected to the first capacitor plate 31 and the second capacitor plate 32, respectively, the first capacitor plate 31 and the second capacitor plate 32 form a variable capacitance unit, a capacitance value of the variable capacitance unit changes along with deformation of the housing 1, and the detection chip 33 is used for acquiring a real-time capacitance value of the variable capacitance unit, so that when the housing 1 of the electronic device is held or pressed by an operator, the detection chip 33 can detect a change in the real-time capacitance value of the variable capacitance unit at any time; since the processor 4 is electrically connected to the driver 5 and the capacitance detecting element 3, respectively, and the driver 5 is electrically connected to the exciter, the processor 4 can control the driver 5 to adjust the output volume of the ceramic speaker 2 according to the real-time capacitance value, so that the volume of the ceramic speaker 2 is not affected by the holding or pressing of the operator.
Optionally, the processor 4 controls the output volume of the ceramic speaker 2 according to the real-time capacitance value, including:
the processor 4 determines a real-time compensation value of the ceramic loudspeaker 2 according to the real-time capacitance value and a threshold capacitance value, wherein the threshold capacitance value is a capacitance value obtained by the capacitance detection component 3 under the condition that the shell 1 is not deformed;
the driver 5 adjusts the output power of the ceramic speaker 2 based on the real-time compensation value of the ceramic speaker 2 to adjust the output volume of the ceramic speaker 2.
In the embodiment of the present invention, since the first capacitor plate 31 and the second capacitor plate 32 form a variable capacitor unit, the capacitance value of the variable capacitor unit changes along with the deformation of the housing 1, and the detection chip 33 is used for acquiring the real-time capacitance value of the variable capacitor unit, when the operator presses or touches the surface of the housing 1 far from the ceramic speaker 2, the hand of the operator is charged, and the resonance point of the exciter and the housing 1 changes along with the pressing of the operator, which causes the change of the variable capacitor unit. In addition, the detection chip 33 may be built in the processor 4, or may be externally disposed in the processor 4, the detection chip 33 is electrically connected to the first capacitor plate 31 and the second capacitor plate 32, and further, the real-time capacitance value of the variable capacitor unit formed by the first capacitor plate 31 and the second capacitor plate 32 may be obtained in real time through the detection chip 33.
It should be noted that the threshold capacitance value is a capacitance value obtained by the capacitance detection component 3 when the housing 1 is not deformed, and the threshold capacitance value may be a capacitance value of the variable capacitance unit detected by the capacitance detection component 3 when the exciter is at a normal resonance point with the housing 1 when the exciter does not press or touch the surface of the housing 1 away from the ceramic speaker 2.
In the embodiment of the present invention, after the processor 4 obtains the real-time capacitance value and the threshold capacitance value, the real-time capacitance value and the threshold capacitance value may be processed, and the real-time compensation value of the ceramic speaker 2 is determined according to, but not limited to, a relationship between the real-time capacitance value and the threshold capacitance value. For example, when the obtained real-time capacitance value is equal to or smaller than the threshold capacitance value, it may be determined that the ceramic speaker 2 is in a normal sound production state, that is, the sound volume emitted by the ceramic speaker 2 is the sound volume that can be heard by the ear of the operator, and it may be determined that the real-time compensation value of the ceramic speaker 2 is 0, that is, the ceramic speaker 2 does not need to be compensated. If the acquired real-time capacitance value is larger than the threshold capacitance value, it can be determined that the ceramic speaker 2 is in an abnormal sounding state, that is, the operator presses or touches the surface of the shell 1 far away from the ceramic speaker 2, so that the resonance point of the exciter and the shell 1 is changed, the volume of the ceramic speaker 2 is reduced, the volume of the ceramic speaker 2 needs to be compensated, and the human ear can hear the sound.
Then, since the volume compensation of the ceramic speaker 2 is only required in a state where the resonance point of the exciter is changed by pressing or touching the surface of the housing 1 away from the ceramic speaker 2 with the hand of the operator, the generated volume gain commands are all commands for increasing the volume of the ceramic speaker 2 after the real-time compensation value of the ceramic speaker 2 is determined. The volume gain command is a command for triggering the driver 5 to perform power amplification.
When the volume gain instruction is generated, the volume gain instruction may be sent to the driver 5, and since the volume gain instruction is an instruction for triggering the driver 5 to perform power amplification, the output power of the ceramic speaker 2 may be adjusted after the driver 5 receives the volume gain instruction, so as to adjust the output volume of the ceramic speaker 2.
Thus, the processor 4 determines a real-time compensation value of the ceramic speaker 2 according to the real-time capacitance value and a threshold capacitance value, wherein the threshold capacitance value is a capacitance value obtained by the capacitance detection component 3 under the condition that the housing 1 is not deformed; then, the driver 5 adjusts the output power of the ceramic speaker 2 based on the real-time compensation value of the ceramic speaker 2, so that the volume of the ceramic speaker 2 is increased, and further, when the electronic device housing 1 is held by an operator or the electronic device housing 1 is pressed, the volume of the ceramic speaker 2 is not affected.
Optionally, the processor 4 is configured to: determining a real-time capacitance difference value according to the real-time capacitance value and the threshold capacitance value;
and determining a real-time compensation value of the ceramic loudspeaker 2 according to the real-time capacitance difference value.
In the embodiment of the present invention, when the real-time capacitance difference is a positive value, it indicates that the obtained real-time capacitance value is greater than the threshold capacitance value, and it can be determined that the ceramic speaker 2 is in an abnormal sounding state, that is, an operator presses or touches the surface of the housing 1 away from the ceramic speaker 2, so that a resonance point of the exciter and the housing 1 is changed, and the volume of the ceramic speaker 2 is reduced, and the volume of the ceramic speaker 2 needs to be compensated, so that a human ear can hear the sound. When the implementation capacitance value is less than or equal to 0, it indicates that the acquired real-time capacitance value is equal to or less than the threshold capacitance value, and it may be determined that the ceramic speaker 2 is in a normal sound production state, that is, the volume emitted by the ceramic speaker 2 is the volume that can be heard by the ear of the operator, and it may be determined that the real-time compensation value of the ceramic speaker 2 is 0, that is, the ceramic speaker 2 does not need to be compensated.
Optionally, the processor 4 is configured to: acquiring a preset capacitance value range and a preset compensation value; generating a corresponding relation between the preset capacitance value range and the preset compensation value based on the preset capacitance value range and the preset compensation value; and determining a real-time compensation value of the ceramic loudspeaker 2 based on the real-time capacitance difference value and the corresponding relation.
In the embodiment of the present invention, the preset capacitance range and the preset compensation value may be stored in the processor 4 according to the normal volume that can be heard by human ears. The preset compensation value may be determined according to the type of the driver 5. After the preset capacitance range and the preset compensation value are obtained, a correspondence between the preset capacitance range and the preset compensation value may be generated, and the generated correspondence between the preset capacitance range and the preset compensation value may be stored in the processor 4. The corresponding relationship may be a one-to-one mapping relationship. Table 1 is a table of correspondence between a preset capacitance range and a preset compensation value, for example, as shown in table 1:
TABLE 1
Preset range of capacitance (F) Preset offset (dB)
(0,5] 1.5
(5,10] 3
(10,15] 4.5
>15 6
When the capacitance value is greater than 0F and less than or equal to 5F, the corresponding preset compensation value is 1.5dB, when the capacitance value is greater than 5F and less than or equal to 10F, the corresponding preset compensation value is 3dB, when the capacitance value is greater than 10F and less than or equal to 15F, the corresponding preset compensation value is 4.5dB, and when the capacitance value is greater than 15F, the corresponding preset compensation value is 6 dB. The above embodiment is merely an example, and the specific numerical value is determined depending on the type of the ceramic speaker 2. When the real-time compensation value of the ceramic speaker 2 needs to be determined, the corresponding relationship between the pre-stored preset capacitance range and the pre-stored preset compensation value and the real-time capacitance difference value can be obtained, and the real-time compensation value of the ceramic speaker 2 is determined.
Optionally, the processor 4 is configured to:
if the real-time capacitance difference value is less than or equal to 0, determining the compensation value of the ceramic loudspeaker to be 0;
if the real-time capacitance difference value is within a first preset capacitance value range, determining the compensation value of the ceramic loudspeaker as a first compensation value;
if the real-time capacitance difference value is within a second preset capacitance value range, determining the compensation value of the ceramic loudspeaker as a second compensation value;
if the real-time capacitance difference value is within a third preset capacitance value range, determining the compensation value of the ceramic loudspeaker as a third compensation value;
and if the real-time capacitance difference value is within a fourth preset capacitance range, determining the compensation value of the ceramic loudspeaker to be a fourth compensation value, wherein the second compensation value is greater than the first compensation value, the third compensation value is greater than the second compensation value, and the fourth compensation value is greater than the third compensation value.
In the embodiment of the present invention, after the corresponding relationship between the preset capacitance range and the compensation value is generated, since the corresponding relationship may be a one-to-one mapping relationship, any real-time capacitance value may correspond to a preset compensation value. If the corresponding relationship between the preset capacitance range and the preset compensation value is the relationship shown in table 1, for example, if the obtained real-time capacitance value is 13F, it can be determined that the real-time capacitance value is located in the preset capacitance range of (10, 15), and according to the corresponding relationship, it can be determined that the compensation value of the ceramic loudspeaker is 4.5 dB.
It should be noted that the first preset capacitance range, the second preset capacitance range, the third preset capacitance range, and the fourth preset capacitance range may be equal capacitance intervals or unequal capacitance intervals. In addition, in one possible implementation manner, the second compensation value may be equal to 2 times the first compensation value, the third compensation value may be equal to 3 times the first compensation value, and the fourth compensation value may be equal to 4 times the first compensation value.
It should be noted that, because the preset capacitance range can be divided into a first preset capacitance range, a second preset capacitance range, a third preset capacitance range and a fourth preset capacitance range, the division of the preset capacitance range is more detailed, the corresponding relationship between the real-time capacitance and the real-time compensation value of the ceramic speaker 2 is more definite, and it is avoided that the corresponding real-time compensation value is relatively single due to the overlarge preset capacitance range, and the compensation effect of the volume of the ceramic speaker 2 is not affected.
In the electronic device provided in the embodiment of the present invention, the capacitance detection assembly 3 includes a first capacitor plate 31, a second capacitor plate 32 and a detection chip 33, the first capacitor plate 31 is disposed between the exciter and the housing 1, the second capacitor plate 32 is connected to a side of the exciter away from the housing 1, the detection chip 33 is electrically connected to the first capacitor plate 31 and the second capacitor plate 32, respectively, the first capacitor plate 31 and the second capacitor plate 32 form a variable capacitance unit, a capacitance value of the variable capacitance unit changes along with deformation of the housing 1, and the detection chip 33 is used for acquiring a real-time capacitance value of the variable capacitance unit, so that when the housing 1 of the electronic device is held or pressed by an operator, the detection chip 33 can detect a change in the real-time capacitance value of the variable capacitance unit at any time; since the processor 4 is electrically connected to the driver 5 and the capacitance detecting element 3, respectively, and the driver 5 is electrically connected to the exciter, the processor 4 can control the driver 5 to adjust the output volume of the ceramic speaker 2 according to the real-time capacitance value, so that the volume of the ceramic speaker 2 is not affected by the holding or pressing of the operator.
In addition, because predetermine the capacitance value scope and can divide into first predetermined capacitance value scope, the capacitance value scope is predetermine to the second, the capacitance value scope is predetermine to the third and the capacitance value scope is predetermine to the fourth, consequently, make the division of predetermineeing the capacitance value scope more careful, make the corresponding relation of real-time capacitance value and ceramic speaker 2's real-time compensation value more clear and definite, avoid leading to corresponding real-time compensation value comparatively single because of predetermineeing the capacitance value scope too big, can not cause the influence to the compensation effect of ceramic speaker 2's volume.
Referring to fig. 2, a second embodiment of the present invention further provides a volume adjustment method for a ceramic speaker 2, which is applied to an electronic device in the first embodiment of the present invention, and the volume adjustment method includes:
step 201: and controlling the driver 5 to adjust the output volume of the ceramic loudspeaker 2 according to the real-time capacitance value.
It should be noted that, the specific process of the volume adjustment method may be:
determining a real-time compensation value of the ceramic loudspeaker 2 according to the real-time capacitance value and a threshold capacitance value, wherein the threshold capacitance value is a capacitance value obtained by the capacitance detection component 3 under the condition that the shell 1 is not deformed;
the output power of the ceramic speaker 2 is adjusted based on the real-time compensation value of the ceramic speaker 2 to adjust the output volume of the ceramic speaker 2.
In the embodiment of the present invention, since the first capacitor plate 31 and the second capacitor plate 32 form a variable capacitor unit, the capacitance value of the variable capacitor unit changes along with the deformation of the housing 1, and the detection chip 33 is used for acquiring the real-time capacitance value of the variable capacitor unit, when the operator presses or touches the surface of the housing 1 far from the ceramic speaker 2, the hand of the operator is charged, and the resonance point of the exciter and the housing 1 changes along with the pressing of the operator, which causes the change of the variable capacitor unit. The detection chip 33 may be built in the processor 4, or may be externally disposed in the processor 4, and the detection chip 33 is electrically connected to the first capacitor plate 31, so that the real-time capacitance value of the variable capacitor unit can be obtained in real time through the detection chip 33.
It should be noted that the threshold capacitance value is a capacitance value obtained by the capacitance detection component 3 when the housing 1 is not deformed, and the threshold capacitance value may be a capacitance value of the variable capacitance unit detected by the capacitance detection component 3 when the exciter is at a normal resonance point with the housing 1 when the exciter does not press or touch the surface of the housing 1 away from the ceramic speaker 2.
In the embodiment of the present invention, after the processor 4 obtains the real-time capacitance value and the threshold capacitance value, the real-time capacitance value and the threshold capacitance value may be processed, and the real-time compensation value of the ceramic speaker 2 is determined according to, but not limited to, a relationship between the real-time capacitance value and the threshold capacitance value. For example, when the obtained real-time capacitance value is equal to or smaller than the threshold capacitance value, it may be determined that the ceramic speaker 2 is in a normal sound production state, that is, the sound volume emitted by the ceramic speaker 2 is the sound volume that can be heard by the ear of the operator, and it may be determined that the real-time compensation value of the ceramic speaker 2 is 0, that is, the ceramic speaker 2 does not need to be compensated. If the acquired real-time capacitance value is larger than the threshold capacitance value, it can be determined that the ceramic speaker 2 is in an abnormal sounding state, that is, the operator presses or touches the surface of the shell 1 far away from the ceramic speaker 2, so that the resonance point of the exciter and the shell 1 is changed, the volume of the ceramic speaker 2 is reduced, the volume of the ceramic speaker 2 needs to be compensated, and the human ear can hear the sound.
Then, since the volume compensation of the ceramic speaker 2 is only required in a state where the resonance point of the exciter is changed by pressing or touching the surface of the housing 1 away from the ceramic speaker 2 with the hand of the operator, the generated volume gain commands are all commands for increasing the volume of the ceramic speaker 2 after the real-time compensation value of the ceramic speaker 2 is determined. The volume gain command is a command for triggering the driver 5 to perform power amplification.
When the volume gain instruction is generated, the volume gain instruction may be sent to the driver 5, and since the volume gain instruction is an instruction for triggering the driver 5 to perform power amplification, the output power of the ceramic speaker 2 may be adjusted after the driver 5 receives the volume gain instruction, so as to adjust the output volume of the ceramic speaker 2.
Like this, processor 4 can confirm the real-time compensation value of ceramic speaker 2 according to the real-time capacitance value that electric capacity determine module 3 acquireed, and later, driver 5 is based on the real-time compensation value of ceramic speaker 2, adjusts the output of ceramic speaker 2 for the volume of ceramic speaker 2 obtains improving, and then when casing 1 of electronic equipment was held or was pressed electronic equipment's casing 1 by operator's hand, also can not cause the influence to the volume of ceramic speaker 2.
In the volume adjusting method provided by the embodiment of the invention, because the electronic device can adjust the output volume of the ceramic speaker 2 according to the real-time capacitance value control driver 5, when the housing 1 of the electronic device is held or pressed by the hand of an operator, the capacitance detecting component 3 included in the electronic device can detect the change of the real-time capacitance value of the variable capacitance unit at any time; the electronic device then comprises a processor 4 for adjusting the output volume of the ceramic speaker 2 according to the real-time capacitance value control driver 5, so that the volume of the ceramic speaker 2 is not affected by the holding or pressing of the operator's hand.
Referring to fig. 3, a third embodiment of the present invention further provides another volume adjustment method for a ceramic speaker 2, which is applied to an electronic device according to the first embodiment of the present invention, and the method includes:
step 301: and determining a real-time capacitance difference value according to the real-time capacitance value and the threshold capacitance value.
In the embodiment of the present invention, since the first capacitor plate 31 and the second capacitor plate 32 form a variable capacitor unit, the capacitance value of the variable capacitor unit changes along with the deformation of the housing 1, and the detection chip 33 is used for acquiring the real-time capacitance value of the variable capacitor unit, when the operator presses or touches the surface of the housing 1 far from the ceramic speaker 2, the hand of the operator is charged, and the resonance point of the exciter and the housing 1 changes along with the pressing of the operator, which causes the change of the variable capacitor unit. The detection chip 33 may be built in the processor 4, or may be externally disposed in the processor 4, and the detection chip 33 is electrically connected to the first capacitor plate 31, so that the real-time capacitance value of the variable capacitor unit can be obtained in real time through the detection chip 33.
It should be noted that the threshold capacitance value is a capacitance value obtained by the capacitance detection component 3 when the housing 1 is not deformed, and the threshold capacitance value may be a capacitance value of the variable capacitance unit detected by the capacitance detection component 3 when the exciter is at a normal resonance point with the housing 1 when the exciter does not press or touch the surface of the housing 1 away from the ceramic speaker 2.
When the real-time capacitance difference value is a positive value, it indicates that the acquired real-time capacitance value is greater than the threshold capacitance value, and it can be determined that the ceramic speaker 2 is in an abnormal sounding state, that is, the operator presses or touches the surface of the shell 1 away from the ceramic speaker 2, so that the resonance point of the exciter and the shell 1 is changed, the volume of the ceramic speaker 2 is reduced, the volume of the ceramic speaker 2 needs to be compensated, and the human ear can hear the sound. When the implementation capacitance value is less than or equal to 0, it indicates that the acquired real-time capacitance value is equal to or less than the threshold capacitance value, and it may be determined that the ceramic speaker 2 is in a normal sound production state, that is, the volume emitted by the ceramic speaker 2 is the volume that can be heard by the ear of the operator, and it may be determined that the real-time compensation value of the ceramic speaker 2 is 0, that is, the ceramic speaker 2 does not need to be compensated.
Step 302: and determining a real-time compensation value of the ceramic loudspeaker 2 according to the real-time capacitance difference value.
In the embodiment of the present invention, when the real-time capacitance difference is a positive value, it indicates that the obtained real-time capacitance value is greater than the threshold capacitance value, and it can be determined that the ceramic speaker 2 is in an abnormal sounding state, that is, an operator presses or touches the surface of the housing 1 away from the ceramic speaker 2, so that a resonance point of the exciter and the housing 1 is changed, and the volume of the ceramic speaker 2 is reduced, and the volume of the ceramic speaker 2 needs to be compensated, so that a human ear can hear the sound. When the implementation capacitance value is less than or equal to 0, it indicates that the acquired real-time capacitance value is equal to or less than the threshold capacitance value, and it may be determined that the ceramic speaker 2 is in a normal sound production state, that is, the volume emitted by the ceramic speaker 2 is the volume that can be heard by the ear of the operator, and it may be determined that the real-time compensation value of the ceramic speaker 2 is 0, that is, the ceramic speaker 2 does not need to be compensated.
Optionally, the step of determining a real-time compensation value of the ceramic speaker 2 according to the real-time capacitance difference may include: acquiring a preset capacitance value range and a preset compensation value; generating a corresponding relation between the preset capacitance value range and the preset compensation value based on the preset capacitance value range and the preset compensation value; and determining a real-time compensation value of the ceramic loudspeaker 2 based on the real-time capacitance difference value and the corresponding relation.
In the embodiment of the present invention, the preset capacitance range and the preset compensation value may be stored in the processor 4 according to the normal volume that can be heard by human ears. The preset compensation value may be determined according to the type of the driver 5. After the preset capacitance range and the preset compensation value are obtained, a correspondence between the preset capacitance range and the preset compensation value may be generated, and the generated correspondence between the preset capacitance range and the preset compensation value may be stored in the processor 4. The corresponding relationship may be a one-to-one mapping relationship. Table 1 is a table of correspondence between a preset capacitance range and a preset compensation value, for example, as shown in table 1:
TABLE 1
Preset range of capacitance (F) Preset offset (dB)
(0,5] 1.5
(5,10] 3
(10,15] 4.5
>15 6
When the capacitance value is greater than 0F and less than or equal to 5F, the corresponding preset compensation value is 1.5dB, when the capacitance value is greater than 5F and less than or equal to 10F, the corresponding preset compensation value is 3dB, when the capacitance value is greater than 10F and less than or equal to 15F, the corresponding preset compensation value is 4.5dB, and when the capacitance value is greater than 15F, the corresponding preset compensation value is 6 dB. The above embodiment is merely an example, and the specific numerical value is determined depending on the type of the ceramic speaker 2. When the real-time compensation value of the ceramic speaker 2 needs to be determined, the corresponding relationship between the pre-stored preset capacitance range and the pre-stored preset compensation value and the real-time capacitance difference value can be obtained, and the real-time compensation value of the ceramic speaker 2 is determined.
Optionally, the step of determining a real-time compensation value of the ceramic speaker 2 based on the real-time capacitance difference value and the corresponding relationship may include:
if the real-time capacitance difference value is less than or equal to 0, determining the compensation value of the ceramic loudspeaker to be 0;
if the real-time capacitance difference value is within a first preset capacitance value range, determining the compensation value of the ceramic loudspeaker as a first compensation value;
if the real-time capacitance difference value is within a second preset capacitance value range, determining the compensation value of the ceramic loudspeaker as a second compensation value;
if the real-time capacitance difference value is within a third preset capacitance value range, determining the compensation value of the ceramic loudspeaker as a third compensation value;
and if the real-time capacitance difference value is within a fourth preset capacitance range, determining the compensation value of the ceramic loudspeaker to be a fourth compensation value, wherein the second compensation value is greater than the first compensation value, the third compensation value is greater than the second compensation value, and the fourth compensation value is greater than the third compensation value.
In the embodiment of the present invention, after the corresponding relationship between the preset capacitance range and the compensation value is generated, since the corresponding relationship may be a one-to-one mapping relationship, any real-time capacitance value may correspond to a preset compensation value. If the corresponding relationship between the preset capacitance range and the preset compensation value is the relationship shown in table 1, for example, if the obtained real-time capacitance value is 13F, it can be determined that the real-time capacitance value is located in the preset capacitance range of (10, 15), and according to the corresponding relationship, it can be determined that the compensation value of the ceramic loudspeaker is 4.5 dB.
It should be noted that the first preset capacitance range, the second preset capacitance range, the third preset capacitance range, and the fourth preset capacitance range may be equal capacitance intervals or unequal capacitance intervals. In addition, in one possible implementation manner, the second compensation value may be equal to 2 times the first compensation value, the third compensation value may be equal to 3 times the first compensation value, and the fourth compensation value may be equal to 4 times the first compensation value.
It should be noted that, because the preset capacitance range can be divided into a first preset capacitance range, a second preset capacitance range, a third preset capacitance range and a fourth preset capacitance range, the division of the preset capacitance range is more detailed, the corresponding relationship between the real-time capacitance and the real-time compensation value of the ceramic speaker 2 is more definite, and it is avoided that the corresponding real-time compensation value is relatively single due to the overlarge preset capacitance range, and the compensation effect of the volume of the ceramic speaker 2 is not affected. .
In the embodiment of the present invention, the processor 4 may determine the real-time compensation value of the ceramic speaker 2 according to the real-time capacitance value of the variable capacitance unit acquired by the capacitance detection component 3 and then according to the real-time capacitance value and the threshold capacitance value, generate the volume gain instruction based on the real-time compensation value of the ceramic speaker 2, and send the volume gain instruction to the driver 5, so that the volume of the ceramic speaker 2 is increased, and further, when the housing 1 of the electronic device is held by the hand of an operator or the housing 1 of the electronic device is pressed, the volume of the ceramic speaker 2 is not affected.
In addition, because predetermine the capacitance value scope and can divide into first predetermined capacitance value scope, the capacitance value scope is predetermine to the second, the capacitance value scope is predetermine to the third and the capacitance value scope is predetermine to the fourth, consequently, make the division of predetermineeing the capacitance value scope more careful, make the corresponding relation of real-time capacitance value and ceramic speaker 2's real-time compensation value more clear and definite, avoid leading to corresponding real-time compensation value comparatively single because of predetermineeing the capacitance value scope too big, can not cause the influence to the compensation effect of ceramic speaker 2's volume.
Step 303: the output power of the ceramic speaker 2 is adjusted based on the real-time compensation value of the ceramic speaker 2 to adjust the output volume of the ceramic speaker 2.
In an embodiment of the present invention, when the real-time compensation value for ceramic speaker 2 is determined, processor 4 may generate an instruction to increase the volume of ceramic speaker 2. The volume gain command is a command for triggering the driver 5 to perform power amplification.
When the volume gain instruction is generated, the volume gain instruction may be sent to the driver 5, and since the volume gain instruction is an instruction for triggering the driver 5 to perform power amplification, the output power of the ceramic speaker 2 may be adjusted after the driver 5 receives the volume gain instruction, so as to adjust the output volume of the ceramic speaker 2.
Like this, processor 4 can confirm the real-time compensation value of ceramic speaker 2 according to the real-time capacitance value that electric capacity determine component 3 acquireed, and later, driver 5 is based on the real-time compensation value of ceramic speaker 2, adjusts ceramic speaker 2's output for the volume of ceramic speaker 2 obtains improving, and then when electronic equipment casing 1 was held or was pressed electronic equipment's casing 1 by operator's hand, also can not cause the influence to the volume of ceramic speaker 2.
FIG. 4 is a diagram illustrating a hardware configuration of an electronic device implementing various embodiments of the invention;
the electronic device 400 includes, but is not limited to: radio frequency unit 401, network module 402, audio output unit 403, input unit 404, sensor 405, display unit 406, user input unit 407, interface unit 408, memory 409, processor 4, and power supply 411. Those skilled in the art will appreciate that the electronic device configuration shown in fig. 4+1 does not constitute a limitation of the electronic device, and that the electronic device may include more or fewer components than shown, or some components may be combined, or a different arrangement of components. In the embodiment of the present invention, the electronic device includes, but is not limited to, a mobile phone, a tablet computer, a notebook computer, a palm computer, a vehicle-mounted terminal, a wearable device, a pedometer, and the like.
And the processor 4 is used for controlling the driver 5 to adjust the output volume of the ceramic loudspeaker 2 according to the real-time capacitance value.
In the embodiment of the present invention, the processor 4 is electrically connected to the driver 5 and the capacitance detecting assembly 3, respectively, and the driver 4 is electrically connected to the exciter, so that the processor 4 can control the driver 5 to adjust the output volume of the ceramic speaker 2 according to the real-time capacitance value, thereby preventing the volume of the ceramic speaker 2 from being affected by the holding or pressing of the operator.
It should be understood that, in the embodiment of the present invention, the radio frequency unit 401 may be used for receiving and sending signals during a message sending and receiving process or a call process, and specifically, receives downlink data from a base station and then processes the received downlink data to the processor 4; in addition, the uplink data is transmitted to the base station. Typically, radio unit 401 includes, but is not limited to, an antenna, at least one amplifier, a transceiver, a coupler, a low noise amplifier, a duplexer, and the like. Further, the radio unit 401 can also communicate with a network and other devices through a wireless communication system.
The electronic device provides wireless broadband internet access to the user via the network module 402, such as assisting the user in sending and receiving e-mails, browsing web pages, and accessing streaming media.
The audio output unit 403 may convert audio data received by the radio frequency unit 401 or the network module 402 or stored in the memory 409 into an audio signal and output as sound. Also, the audio output unit 403 may also provide audio output related to a specific function performed by the electronic apparatus 400 (e.g., a call signal reception sound, a message reception sound, etc.). The audio output unit 403 includes a speaker, a buzzer, a receiver, and the like.
The input unit 404 is used to receive audio or video signals. The input Unit 404 may include a Graphics Processing Unit (GPU) 4041 and a microphone 4042, and the Graphics processor 041 processes image data of still pictures or video obtained by an image capturing device (such as a camera) in a video capture mode or an image capture mode. The processed image frames may be displayed on the display unit 406. The image frames processed by the graphic processor 041 may be stored in the memory 409 (or other storage medium) or transmitted via the radio frequency unit 401 or the network module 402. The microphone 4042 may receive sound, and may be capable of processing such sound into audio data. The processed audio data may be converted into a format output transmittable to a mobile communication base station via the radio frequency unit 401 in case of the phone call mode.
The electronic device 400 also includes at least one sensor 405, such as light sensors, motion sensors, and other sensors. Specifically, the light sensor includes an ambient light sensor that adjusts the brightness of the display panel 4061 according to the brightness of ambient light, and a proximity sensor that turns off the display panel 4061 and/or the backlight when the electronic apparatus 400 is moved to the ear. As one type of motion sensor, an accelerometer sensor can detect the magnitude of acceleration in each direction (generally three axes), detect the magnitude and direction of gravity when stationary, and can be used to identify the posture of an electronic device (such as horizontal and vertical screen switching, related games, magnetometer posture calibration), and vibration identification related functions (such as pedometer, tapping); the sensors 405 may also include a fingerprint sensor, a pressure sensor, an iris sensor, a molecular sensor, a gyroscope, a barometer, a hygrometer, a thermometer, an infrared sensor, etc., which will not be described in detail herein.
The display unit 406 is used to display information input by the user or information provided to the user. The Display unit 606 may include a Display panel 4061, and the Display panel 4061 may be configured in the form of a Liquid Crystal Display (LCD), an Organic Light-Emitting Diode (OLED), or the like.
The user input unit 407 may be used to receive input numeric or character information and generate key signal inputs related to user settings and function control of the electronic device. Specifically, the user input unit 407 includes a touch panel 4071 and other input devices 4072. Touch panel 4071, also referred to as a touch screen, may collect touch operations by a user on or near it (e.g., operations by a user on or near touch panel 4071 using a finger, a stylus, or any suitable object or attachment). The touch panel 4071 may include two parts, a touch detection device and a touch controller. The touch detection device detects the touch direction of a user, detects a signal brought by touch operation and transmits the signal to the touch controller; the touch controller receives touch information from the touch detection device, converts the touch information into touch point coordinates, sends the touch point coordinates to the processor 4, receives a command sent by the processor 4 and executes the command. In addition, the touch panel 4071 can be implemented by using various types such as a resistive type, a capacitive type, an infrared ray, and a surface acoustic wave. In addition to the touch panel 4071, the user input unit 407 may include other input devices 4072. Specifically, the other input devices 4072 may include, but are not limited to, a physical keyboard, function keys (such as volume control keys, switch keys, etc.), a track ball, a mouse, and a joystick, which are not described herein again.
Further, the touch panel 4071 may be overlaid on the display panel 4061, and when the touch panel 6071 detects a touch operation on or near the touch panel 4071, the touch operation is transmitted to the processor 4 to determine the type of the touch event, and then the processor 4 provides a corresponding visual output on the display panel 4061 according to the type of the touch event. Although in fig. 4, the touch panel 4071 and the display panel 4061 are two independent components to implement the input and output functions of the electronic device, in some embodiments, the touch panel 4071 and the display panel 4061 may be integrated to implement the input and output functions of the electronic device, and the implementation is not limited herein.
The interface unit 408 is an interface for connecting an external device to the electronic apparatus 400. For example, the external device may include a wired or wireless headset port, an external power supply (or battery charger) port, a wired or wireless data port, a memory card port, a port for connecting a device having an identification module, an audio input/output (I/O) port, a video I/O port, an earphone port, and the like. The interface unit 408 may be used to receive input (e.g., data information, power, etc.) from an external device and transmit the received input to one or more elements within the electronic apparatus 400 or may be used to transmit data between the electronic apparatus 400 and an external device.
The memory 409 may be used to store software programs as well as various data. The memory 409 may mainly include a storage program area and a storage data area, wherein the storage program area may store an operating system, an application program required by at least one function (such as a sound playing function, an image playing function, etc.), and the like; the storage data area may store data (such as audio data, a phonebook, etc.) created according to the use of the cellular phone, and the like. Further, the memory 409 may include high speed random access memory, and may also include non-volatile memory, such as at least one magnetic disk storage device, flash memory device, or other volatile solid state storage device.
The processor 4 is a control center of the electronic device, connects various parts of the whole electronic device by various interfaces and lines, and performs various functions of the electronic device and processes data by operating or executing software programs and/or modules stored in the memory 409 and calling data stored in the memory 409, thereby performing overall monitoring of the electronic device. Processor 4 may include one or more processing units; preferably, the processor 4 may integrate an application processor, which mainly handles operating systems, user interfaces, application programs, etc., and a modem processor, which mainly handles wireless communications. It will be appreciated that the modem processor described above may not be integrated into the processor 4.
The electronic device 400 may further include a power supply 411 (e.g., a battery) for supplying power to various components, and preferably, the power supply 611 may be logically connected to the processor 4 through a power management system, so as to implement functions of managing charging, discharging, and power consumption through the power management system.
In addition, the electronic device 400 includes some functional modules that are not shown, and are not described in detail herein.
Preferably, an embodiment of the present invention further provides an electronic device, which includes a processor 5, a memory 5, and a computer program stored in the memory 5 and capable of running on the processor 5, where the computer program, when executed by the processor 5, implements each process of the control method embodiment of the application program, and can achieve the same technical effect, and details are not repeated here to avoid repetition.
It should be noted that, in this document, the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, article, or apparatus. Without further limitation, an element defined by the phrase "comprising an … …" does not exclude the presence of other like elements in a process, method, article, or apparatus that comprises the element.
Through the above description of the embodiments, those skilled in the art will clearly understand that the method of the above embodiments can be implemented by software plus a necessary general hardware platform, and certainly can also be implemented by hardware, but in many cases, the former is a better implementation manner. Based on such understanding, the technical solutions of the present invention may be embodied in the form of a software product, which is stored in a storage medium (such as ROM/RAM, magnetic disk, optical disk) and includes instructions for enabling a terminal (such as a mobile phone, a computer, a server, an air conditioner, or a network device) to execute the method according to the embodiments of the present invention.
While the present invention has been described with reference to the embodiments shown in the drawings, the present invention is not limited to the embodiments, which are illustrative and not restrictive, and it will be apparent to those skilled in the art that various changes and modifications can be made therein without departing from the spirit and scope of the invention as defined in the appended claims.

Claims (10)

1. An electronic device comprising a housing, a ceramic speaker, a capacitance detection component, a processor, and a driver;
the ceramic loudspeaker is arranged in the shell and provided with an exciter, and the exciter is connected with the shell;
the capacitance detection assembly comprises a first capacitor plate, a second capacitor plate and a detection chip, the first capacitor plate is connected between the exciter and the shell, the second capacitor plate is connected to one side of the exciter, which is far away from the shell, the detection chip is respectively electrically connected with the first capacitor plate and the second capacitor plate, the first capacitor plate and the second capacitor plate form a variable capacitance unit, the capacitance value of the variable capacitance unit changes along with the deformation of the shell, and the detection chip is used for acquiring the real-time capacitance value of the variable capacitance unit;
the processor is respectively electrically connected with the driver and the capacitance detection assembly, the driver is electrically connected with the exciter, and the processor controls the driver to adjust the output volume of the ceramic loudspeaker according to the real-time capacitance value.
2. The electronic device of claim 1, wherein the processor controls an output volume of the ceramic speaker according to the real-time capacitance value, comprising:
the processor determines a real-time compensation value of the ceramic loudspeaker according to the real-time capacitance value and a threshold capacitance value, wherein the threshold capacitance value is a capacitance value obtained by the capacitance detection assembly under the condition that the shell is not deformed;
the driver adjusts the output power of the ceramic speaker based on the real-time compensation value of the ceramic speaker to adjust the output volume of the ceramic speaker.
3. The electronic device of claim 2, wherein the processor is configured to:
determining the real-time capacitance difference value according to the real-time capacitance value and the threshold capacitance value;
and determining a real-time compensation value of the ceramic loudspeaker according to the real-time capacitance difference value.
4. The electronic device of claim 3, wherein the processor is configured to:
acquiring a preset capacitance value range and a preset compensation value;
generating a corresponding relation between the preset capacitance value range and the preset compensation value based on the preset capacitance value range and the preset compensation value;
and determining a real-time compensation value of the ceramic loudspeaker based on the real-time capacitance difference value and the corresponding relation.
5. The electronic device of claim 4, wherein the processor is configured to:
if the real-time capacitance difference value is less than or equal to 0, determining that the compensation value of the ceramic loudspeaker is 0;
if the real-time capacitance difference value is within a first capacitance range, determining the compensation value of the ceramic loudspeaker as a first compensation value;
if the real-time capacitance difference value is within a second capacitance range, determining the compensation value of the ceramic loudspeaker as a second compensation value;
if the real-time capacitance difference value is within a third capacitance range, determining the compensation value of the ceramic loudspeaker as a third compensation value;
and if the real-time capacitance difference value is within a fourth capacitance range, determining that the compensation value of the ceramic loudspeaker is a fourth compensation value, wherein the second compensation value is greater than the first compensation value, the third compensation value is greater than the second compensation value, and the fourth compensation value is greater than the third compensation value.
6. A volume adjustment method of an electronic device, applied to the electronic device of any one of claims 1-5, the volume adjustment method comprising:
and controlling the driver to adjust the output volume of the ceramic loudspeaker according to the real-time capacitance value.
7. The volume adjusting method of claim 6, wherein the controlling the driver to adjust the output volume of the ceramic speaker according to the real-time capacitance value comprises:
determining a real-time compensation value of the ceramic loudspeaker according to the real-time capacitance value and a threshold capacitance value, wherein the threshold capacitance value is a capacitance value obtained by the capacitance detection assembly under the condition that the shell is not deformed;
and adjusting the output power of the ceramic loudspeaker based on the real-time compensation value of the ceramic loudspeaker so as to adjust the output volume of the ceramic loudspeaker.
8. The method of claim 7, wherein the determining a real-time compensation value for the ceramic speaker according to the real-time capacitance value and a threshold capacitance value comprises:
determining the real-time capacitance difference value according to the real-time capacitance value and the threshold capacitance value;
and determining a real-time compensation value of the ceramic loudspeaker according to the real-time capacitance difference value.
9. The method for adjusting volume of an electronic device according to claim 8, wherein the determining a real-time compensation value of the ceramic speaker according to the real-time capacitance difference comprises:
acquiring a preset capacitance value range and a preset compensation value;
generating a corresponding relation between the preset capacitance value range and the preset compensation value based on the preset capacitance value range and the preset compensation value;
and determining a real-time compensation value of the ceramic loudspeaker based on the real-time capacitance difference value and the corresponding relation.
10. The method of adjusting volume of an electronic device according to claim 9, wherein said determining a real-time compensation value of said ceramic speaker based on said real-time capacitance difference value and said correspondence comprises:
if the real-time capacitance difference value is less than or equal to 0, determining that the compensation value of the ceramic loudspeaker is 0;
if the real-time capacitance difference value is within a first capacitance range, determining the compensation value of the ceramic loudspeaker as a first compensation value;
if the real-time capacitance difference value is within a second capacitance range, determining the compensation value of the ceramic loudspeaker as a second compensation value;
if the real-time capacitance difference value is within a third capacitance range, determining the compensation value of the ceramic loudspeaker as a third compensation value;
and if the real-time capacitance difference value is within a fourth capacitance range, determining that the compensation value of the ceramic loudspeaker is a fourth compensation value, wherein the second compensation value is greater than the first compensation value, the third compensation value is greater than the second compensation value, and the fourth compensation value is greater than the third compensation value.
CN201911206003.XA 2019-11-29 2019-11-29 Electronic equipment and volume adjusting method thereof Active CN111124346B (en)

Priority Applications (2)

Application Number Priority Date Filing Date Title
CN201911206003.XA CN111124346B (en) 2019-11-29 2019-11-29 Electronic equipment and volume adjusting method thereof
PCT/CN2020/132219 WO2021104450A1 (en) 2019-11-29 2020-11-27 Electronic device and volume adjustment method therefor

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201911206003.XA CN111124346B (en) 2019-11-29 2019-11-29 Electronic equipment and volume adjusting method thereof

Publications (2)

Publication Number Publication Date
CN111124346A true CN111124346A (en) 2020-05-08
CN111124346B CN111124346B (en) 2021-07-16

Family

ID=70497084

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201911206003.XA Active CN111124346B (en) 2019-11-29 2019-11-29 Electronic equipment and volume adjusting method thereof

Country Status (2)

Country Link
CN (1) CN111124346B (en)
WO (1) WO2021104450A1 (en)

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112084084A (en) * 2020-09-09 2020-12-15 维沃移动通信有限公司 Electronic equipment, detection method and device
WO2021104450A1 (en) * 2019-11-29 2021-06-03 维沃移动通信有限公司 Electronic device and volume adjustment method therefor
CN113829245A (en) * 2021-09-30 2021-12-24 中国人民解放军国防科技大学 Nano jet polishing device

Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN201541243U (en) * 2009-09-29 2010-08-04 华为终端有限公司 Terminal volume adjusting device
CN102622142A (en) * 2011-01-27 2012-08-01 丁行波 Induction quantity compensation method applied to capacitance touch control board
CN105027637A (en) * 2013-03-14 2015-11-04 美国思睿逻辑有限公司 Systems and methods for using a speaker as a microphone in a mobile device
CN108958632A (en) * 2018-07-09 2018-12-07 Oppo广东移动通信有限公司 Sounding control method, device, electronic equipment and storage medium
CN109189362A (en) * 2018-07-09 2019-01-11 Oppo广东移动通信有限公司 Sounding control method, device, electronic equipment and storage medium
CN109348365A (en) * 2018-11-05 2019-02-15 苏州延声家居科技有限公司 A kind of touch ceramics sound equipment
US20190287531A1 (en) * 2018-03-19 2019-09-19 Ricoh Company, Ltd. Shared terminal, information processing system, and display controlling method

Family Cites Families (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US8824702B2 (en) * 2012-08-20 2014-09-02 Abatech Electronics Co., Ltd. Reverse-phase modulating structure of piezoelectric ceramic speaker
CN107577446A (en) * 2017-08-23 2018-01-12 瑞声科技(新加坡)有限公司 The control method and mobile terminal of mobile terminal
CN108683761B (en) * 2018-05-17 2020-01-14 Oppo广东移动通信有限公司 Sound production control method and device, electronic device and computer readable medium
CN109085985B (en) * 2018-07-09 2021-01-26 Oppo广东移动通信有限公司 Sound production control method, sound production control device, electronic device, and storage medium
CN109218504B (en) * 2018-09-30 2021-03-30 维沃移动通信有限公司 Sound output method and terminal equipment
CN111124346B (en) * 2019-11-29 2021-07-16 维沃移动通信有限公司 Electronic equipment and volume adjusting method thereof

Patent Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN201541243U (en) * 2009-09-29 2010-08-04 华为终端有限公司 Terminal volume adjusting device
CN102622142A (en) * 2011-01-27 2012-08-01 丁行波 Induction quantity compensation method applied to capacitance touch control board
CN105027637A (en) * 2013-03-14 2015-11-04 美国思睿逻辑有限公司 Systems and methods for using a speaker as a microphone in a mobile device
US20190287531A1 (en) * 2018-03-19 2019-09-19 Ricoh Company, Ltd. Shared terminal, information processing system, and display controlling method
CN108958632A (en) * 2018-07-09 2018-12-07 Oppo广东移动通信有限公司 Sounding control method, device, electronic equipment and storage medium
CN109189362A (en) * 2018-07-09 2019-01-11 Oppo广东移动通信有限公司 Sounding control method, device, electronic equipment and storage medium
CN109348365A (en) * 2018-11-05 2019-02-15 苏州延声家居科技有限公司 A kind of touch ceramics sound equipment

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2021104450A1 (en) * 2019-11-29 2021-06-03 维沃移动通信有限公司 Electronic device and volume adjustment method therefor
CN112084084A (en) * 2020-09-09 2020-12-15 维沃移动通信有限公司 Electronic equipment, detection method and device
CN113829245A (en) * 2021-09-30 2021-12-24 中国人民解放军国防科技大学 Nano jet polishing device

Also Published As

Publication number Publication date
WO2021104450A1 (en) 2021-06-03
CN111124346B (en) 2021-07-16

Similar Documents

Publication Publication Date Title
CN111385714B (en) Method for determining voice coil temperature of loudspeaker, electronic device and storage medium
CN110784637B (en) Camera module and electronic equipment
CN111124346B (en) Electronic equipment and volume adjusting method thereof
CN110838748B (en) Electronic equipment and charging control system thereof
CN108196815B (en) Method for adjusting call sound and mobile terminal
CN108289270B (en) Loudspeaker and mobile terminal
CN109905812B (en) Input power control method and device and terminal equipment
CN110830861B (en) Telephone receiver control method and device and electronic equipment
CN111343540B (en) Piano audio processing method and electronic equipment
CN109739394B (en) SAR value processing method and mobile terminal
CN109547894B (en) Amplitude adjustment method and device for electroacoustic device and mobile terminal
CN111614329B (en) Power amplifier, electronic equipment, voltage control method and device
CN107749306B (en) Vibration optimization method and mobile terminal
CN111683171A (en) Audio output method and electronic equipment
CN109343811B (en) Display adjustment method and terminal equipment
CN108879856B (en) Charging method and terminal
CN110677770B (en) Sound production control method, electronic device, and medium
CN111328132B (en) Method for adjusting transmitting power and electronic equipment
CN110995909B (en) Sound compensation method and device
CN111061407B (en) Video program operation control method, electronic device, and storage medium
CN109270352B (en) Amplitude adjusting method and sound generating device
CN109348366B (en) Method for adjusting volume by using electrical parameters and mobile terminal
CN111443822A (en) Electronic device, control method thereof, and medium
CN109451146B (en) Vibration processing method and terminal
CN109413728B (en) Terminal equipment and signal processing method

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant