WO2021110015A1 - Electronic device and volume adjustment method therefor - Google Patents

Electronic device and volume adjustment method therefor Download PDF

Info

Publication number
WO2021110015A1
WO2021110015A1 PCT/CN2020/133257 CN2020133257W WO2021110015A1 WO 2021110015 A1 WO2021110015 A1 WO 2021110015A1 CN 2020133257 W CN2020133257 W CN 2020133257W WO 2021110015 A1 WO2021110015 A1 WO 2021110015A1
Authority
WO
WIPO (PCT)
Prior art keywords
ceramic speaker
exciter
electronic device
capacitance
ceramic
Prior art date
Application number
PCT/CN2020/133257
Other languages
French (fr)
Chinese (zh)
Inventor
张志辉
吴兴勤
Original Assignee
维沃移动通信有限公司
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 维沃移动通信有限公司 filed Critical 维沃移动通信有限公司
Publication of WO2021110015A1 publication Critical patent/WO2021110015A1/en

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

Definitions

  • the present invention relates to the technical field of electronic equipment, in particular to an electronic equipment and a volume adjustment method thereof.
  • the speakers of the existing electronic devices are dynamic speakers, and such speakers need to be designed with sound holes on the electronic devices to ensure that the sound of the dynamic speakers can be emitted outside.
  • the design of the sound hole will not only affect the aesthetics of the integrated appearance of the electronic device, but also increase the risk of water ingress into the speaker, thereby increasing the risk of electrostatic damage to the speaker, thereby seriously affecting the function of the speaker.
  • some electronic devices use piezoelectric ceramic speakers, but they usually use single-piece piezoelectric ceramic speakers.
  • the vibration of the speaker is usually blocked, and the volume of the sound emitted by the speaker is reduced, thereby affecting the user's hearing enjoyment. Therefore, how to avoid the problem of weakening the volume of the electronic device when the user's hand grips the electronic device still requires further solutions.
  • the embodiments of the present invention provide an electronic device and a volume adjustment method thereof, so as to solve the problem that the user's grip on the electronic device in the prior art causes its volume to decrease.
  • the present invention is implemented as follows:
  • an embodiment of the present invention provides an electronic device, including a central processing unit, a first ceramic speaker exciter, a second ceramic speaker exciter, a housing, a capacitance detector sensor, and a dual-channel ceramic speaker driver module, wherein :
  • the first ceramic speaker exciter is arranged in the housing, and the first ceramic speaker exciter is connected to the housing;
  • the second ceramic speaker exciter is arranged in the housing, the second ceramic speaker exciter is connected to the housing, and the second ceramic speaker exciter is spaced apart from the first ceramic speaker exciter ;
  • the capacitance detector sensor includes a first detection piece and a second detection piece, and the first detection piece is used to obtain first capacitance information of the housing at a position corresponding to the first ceramic speaker exciter, so The second detection piece is used to obtain second capacitance information of the housing at a position corresponding to the second ceramic speaker exciter;
  • the two-channel ceramic speaker drive module is used to drive the first ceramic speaker exciter and the second ceramic speaker exciter;
  • the central processing unit is respectively connected to the capacitance detector sensor and the dual-channel ceramic speaker driving module, and the central processing unit controls the dual-channel ceramic speaker based on the first capacitance information and the second capacitance information
  • the module is driven to emit sound through at least one of the first ceramic speaker exciter and the second ceramic speaker exciter.
  • an embodiment of the present invention provides a method for adjusting the volume of an electronic device.
  • the method is applied to the electronic device described in the first aspect, and includes:
  • the capacitance detector sensor detects that the target position of the housing is grasped, based on the capacitance information of the capacitance detector sensor, determine the target ceramic speaker on the housing corresponding to the target position Exciter; the target position is provided with the first detection piece or the second detection piece;
  • the volume of the electronic device is adjusted based on the target ceramic speaker exciter and the ceramic speaker exciter currently driven by the dual-channel ceramic speaker drive module.
  • an embodiment of the present invention also provides an electronic device.
  • the electronic device includes the electronic device described in the first aspect, including:
  • the determining unit is configured to determine the position on the housing and the target position based on the capacitance information of the capacitance detector sensor when the capacitance detector sensor detects that the target position of the housing is grasped.
  • Corresponding target ceramic speaker exciter; the target position is provided with the first detection piece or the second detection piece;
  • the adjustment unit is configured to adjust the volume of the electronic device based on the target ceramic speaker exciter and the ceramic speaker exciter currently driven by the dual-channel ceramic speaker drive module.
  • an embodiment of the present invention also provides an electronic device, including: a memory, a processor, and a computer program stored on the memory and capable of running on the processor, the computer program being used by the processor When executed, the steps of the method for adjusting the volume of an electronic device as described in the second aspect are implemented.
  • an embodiment of the present invention also provides a readable storage medium having a computer program stored on the computer readable storage medium, and when the computer program is executed by a processor, the electronic device as described in the second aspect is implemented The steps of the volume adjustment method.
  • the electronic device includes a central processing unit, a first ceramic speaker exciter, a second ceramic speaker exciter, a housing, a capacitance detector sensor and a dual-channel ceramic speaker drive module, a central processing unit and a capacitance detector
  • the sensor is connected; the first ceramic speaker exciter and the second ceramic speaker exciter are arranged in the housing at intervals; the first detection piece of the capacitance detector sensor is arranged between the first ceramic speaker exciter and the housing; the second A second detection piece of the capacitance detector sensor is arranged between the ceramic speaker exciter and the housing; the dual-channel ceramic speaker drive module is used to drive the first ceramic speaker exciter and/or the second ceramic speaker exciter.
  • the capacitance detector sensor arranged in the housing can be used. Detects the capacitance change caused by the human hand grip, and can send interrupt and capacitance change signals to the central processing unit, so that the central processing unit can be based on the current dual-channel ceramic speaker driver module to drive the ceramic speaker exciter and the corresponding grasped position Ceramic speaker exciter to adjust the volume of electronic equipment.
  • the dual-channel ceramic speaker driver module stop driving the corresponding ceramic speaker exciter at the grasping position and drive other ceramic speaker exciters, or increase the volume of the electronic device to ensure that the volume of the electronic device heard by the user does not change , So as to avoid affecting the user’s hearing experience.
  • FIG. 1 is a schematic structural diagram of an electronic device provided by an embodiment of the present invention.
  • FIG. 2 is a schematic structural diagram of a housing of an electronic device provided by an embodiment of the present invention.
  • FIG. 3 is a schematic diagram of an implementation process of a method for adjusting the volume of an electronic device according to an embodiment of the present invention
  • FIG. 4 is a schematic flowchart of a method for adjusting the volume of an electronic device according to an embodiment of the present invention applied in an actual scenario
  • FIG. 5 is a schematic structural diagram of an electronic device provided by an embodiment of the present invention.
  • FIG. 6 is a schematic diagram of the hardware structure of an electronic device according to an embodiment of the present invention.
  • inventions of the present invention provide an electronic device and a volume adjustment method thereof.
  • the capacitance detector in the electronic device includes a first detection piece and a second detection piece.
  • the sheet is used to obtain the first capacitance information of the shell pair at the position corresponding to the first ceramic speaker exciter, and the second detection sheet is used to obtain the second capacitance of the shell pair at the position corresponding to the second ceramic speaker exciter information.
  • the capacitance detector sensor is connected to the central processing unit, and the capacitance detector sensor is used to send a capacitance change signal to the central processing unit based on the capacitance change of the first detection piece or the second detection piece, and the central processing unit can be based on the capacitance of the capacitance detector sensor.
  • the capacitance change signal determines the ceramic speaker exciter corresponding to the position where the housing is grasped, so that when the user’s hand grips the housing where the first ceramic speaker exciter or the second ceramic speaker exciter is set, the ceramic When the vibration of the loudspeaker exciter is blocked, the capacitance detector sensor arranged inside the housing can detect the capacitance change caused by the grip of the human hand, and can send interruption and capacitance change signals to the central processing unit.
  • the central processing unit can adjust the volume of the electronic device according to the ceramic speaker exciter driven by the current dual-channel ceramic speaker driver module and the corresponding ceramic speaker exciter at the grasped position to ensure that the volume of the electronic device heard by the user does not change , So as to avoid affecting the user’s hearing experience.
  • FIG. 1 it is a schematic structural diagram of an electronic device provided by an embodiment of the present invention.
  • the electronic device includes a central processing unit 105, a first ceramic speaker exciter 1071, a second ceramic speaker exciter 1072, a housing 201, a capacitance detector sensor 106, and a dual-channel ceramic speaker driver module 103, in which:
  • the first ceramic speaker exciter 1071 is arranged in the housing 201, and the first ceramic speaker exciter 1071 is connected to the housing 201;
  • the second ceramic speaker exciter 1072 is arranged in the housing 201, the second ceramic speaker exciter 1072 is connected to the housing 201, and the second ceramic speaker exciter 1072 is spaced apart from the first ceramic speaker exciter 1071;
  • the capacitance detector sensor 106 includes a first detection piece 1061 and a second detection piece 1062.
  • the first detection piece 1061 is used to obtain the first capacitance information of the housing 201 at the position corresponding to the first ceramic speaker exciter 1071, and the second detection piece 1061.
  • the sheet 1062 is used to obtain the second capacitance information of the housing 201 at a position corresponding to the second ceramic speaker exciter 1072;
  • the dual-channel ceramic speaker driver module 103 is used to drive the first ceramic speaker exciter and the second ceramic speaker exciter;
  • the central processing unit 105 is respectively connected to the capacitance detector sensor 106 and the dual-channel ceramic speaker driving module 103.
  • the central processing unit 105 controls the dual-channel ceramic speaker driving module 103 based on the first capacitance information and the second capacitance information to pass the first At least one of the ceramic speaker exciter 1071 and the second ceramic speaker exciter 1072 emits sound.
  • FIG. 2 it is a schematic diagram of a housing structure of an electronic device according to an embodiment of the present invention.
  • the embodiment of the present invention is provided with a capacitance detector between the first ceramic speaker exciter 1071 and the housing 201 between the first detection piece 1061 of the sensor 106, the second ceramic speaker exciter 1072 and the housing 201, a second detection piece 1062 of the capacitance detector sensor 106 is provided.
  • first ceramic speaker exciter 1071 is closely attached to the first detection piece 1061 of the capacitance detector sensor 106
  • the second ceramic speaker actuator 1072 is closely attached to the second detection piece 1062 of the capacitance detector sensor 106
  • the first detection piece 1062 of the capacitance detector sensor 106 is closely attached.
  • a detection piece 1061 and a second detection piece 1062 are both closely attached to the housing 201, so that whether the ceramic speaker exciter 107 is grasped can be detected more timely and accurately.
  • the preset time period can be very short The time period, such as 1 millisecond or 3 milliseconds.
  • the capacitance detector sensor 1061 can be connected to the first detection piece 1061 and the second detection piece 1602 of the capacitance detector sensor 106 through the feed point 104, where the feed point 104 can be used to transmit the dual-channel ceramic speaker driver module 103 and the ceramic speaker exciter
  • the audio signal between 107 and the capacitance information between the capacitance detector sensor 106 and the detection chip of the capacitance detector sensor are transferred.
  • the feed point 104 is set in the first ceramic speaker exciter 1071 and the second ceramic speaker exciter 1072.
  • the middle is close to the position of the housing 201.
  • the central processing unit 105 may interact with the capacitance detection
  • the meter sensor 106 is connected so that the capacitance detector sensor 106 can send the capacitance signal to the central processing unit 105 in time.
  • the central processing unit 105 is connected to the dual-channel ceramic speaker drive module 103 so that the central processing unit 105 can obtain the ceramic speaker exciter currently driven by the dual-channel ceramic speaker drive module 103, and compare the capacitance information corresponding to the acquired capacitance change signal with The ceramic speaker exciter currently driven by the dual-channel ceramic speaker driving module 103 adjusts the volume of the electronic device.
  • the audio processor module 101 can output audio signals, and the audio bus 102 can transmit the audio signals output by the audio processor module 101 to the dual-channel ceramic speaker driving module 103.
  • the dual-channel ceramic speaker driver module 103 can drive the first ceramic speaker exciter 1071 and/or the second ceramic speaker driver 1072, that is, the dual-channel ceramic speaker driver module 103 outputs a voltage signal that varies with the sound signal, so that the first ceramic speaker is excited
  • the device 1071 and/or the second ceramic loudspeaker exciter 1072 deforms with the voltage, which pushes the shell diaphragm to vibrate, which in turn pushes the air to vibrate to produce sound.
  • the dual-channel ceramic speaker driving module 103 specifically drives which of the first ceramic speaker exciters 1071 and 1072 to be determined by receiving instructions from the central processing unit 105.
  • the feed point 104 can realize the signal transmission between the dual-channel ceramic speaker driver module 103 and the first ceramic speaker exciter 1071 and/or the second ceramic speaker exciter 1072, and can also realize the capacitance detector sensor 106 and the first detection piece 1061 And the second detection chip 1062 signal transmission.
  • the feed point 104 can be set in the middle of the first ceramic speaker exciter 1071 and the second ceramic speaker exciter 1072 to ensure that the feed point 104 is transmitted to the first ceramic speaker exciter 1071 and the second ceramic speaker exciter 1072.
  • the signals are in phase.
  • the capacitance detector sensor 106 includes a first detection piece 1061 and a second detection piece 1062.
  • the capacitance detector sensor 106 can detect the first ceramic speaker actuator 1071 corresponding to the first detection piece 1061 and the second detection piece 1062.
  • the signal line connecting the capacitance detector sensor 106 with the first detection piece 1061 and the second detection piece 1062 can transmit the capacitance change information of the first detection piece 1061 and/or the second detection piece 1062 to the capacitance detector sensor 106;
  • the signal line connecting the dual-channel ceramic speaker driver module 103 and the first ceramic speaker exciters 1071 and 1072 can transmit the sound signal that the dual-channel ceramic speaker driver module 103 sends to the first ceramic speaker driver 1071 and/or 1072. Voltage signal.
  • the electronic device includes a central processing unit, a first ceramic speaker exciter, a second ceramic speaker exciter, a housing, a capacitance detector sensor and a dual-channel ceramic speaker drive module, a central processing unit and a capacitance detector
  • the sensor is connected; the first ceramic speaker exciter and the second ceramic speaker exciter are arranged in the housing at intervals; the first detection piece of the capacitance detector sensor is arranged between the first ceramic speaker exciter and the housing; the second A second detection piece of the capacitance detector sensor is arranged between the ceramic speaker exciter and the housing; the dual-channel ceramic speaker drive module is used to drive the first ceramic speaker exciter and/or the second ceramic speaker exciter.
  • the capacitance detector sensor arranged in the housing can be used. Detects the capacitance change signal caused by the human hand grip, and can send interrupt and capacitance change signals to the central processing unit, so that the central processing unit can correspond to the ceramic speaker exciter driven by the current dual-channel ceramic speaker drive module and the grasped position
  • the ceramic speaker exciter adjusts the volume of electronic equipment.
  • the dual-channel ceramic speaker driver module stop driving the corresponding ceramic speaker exciter at the grasping position and drive other ceramic speaker exciters, or increase the volume of the electronic device to ensure that the volume of the electronic device heard by the user does not change , So as to avoid affecting the user’s hearing experience.
  • the present invention also provides a method for adjusting the volume of the electronic device.
  • the execution body of the method can be, but not limited to, mobile phones, tablets, wearable devices, etc. It can be configured to execute at least one of the user terminals of the method provided in the embodiments of the present invention, or the execution subject of the method may also be the client itself capable of executing the method.
  • the implementation of the method is introduced below by taking an electronic device capable of executing the method as an example. It can be understood that the implementation of the method as an electronic device is only an exemplary description, and should not be understood as a limitation on the method.
  • FIG. 3 it is a schematic diagram of a specific implementation process of a method for adjusting the volume of an electronic device according to an embodiment of the invention, and the method is applied to the electronic device described above.
  • Step 301 in the case where the capacitance detector sensor detects that the target position of the housing is grasped, based on the capacitance information of the capacitance detector sensor, determine the target ceramic speaker exciter on the housing corresponding to the target position;
  • the embodiment of the present invention may be based on the setting at the target position
  • the capacitance change of the first detection piece or the second detection piece is used to determine the target ceramic speaker exciter corresponding to the target position in the electronic device.
  • the capacitance change signal of the capacitance detector sensor is used to determine which ceramic speaker exciter is affected by the target position being grasped.
  • the capacitance detector sensor in the embodiment of the present invention sends a capacitance change signal to the central processing unit, and can also send an interrupt to make the central processing unit suspend processing the current running process, so as to be based on the capacitance as soon as possible. Change the signal to determine the target ceramic speaker exciter set at the target position.
  • the determination of the target ceramic speaker exciter corresponding to the target position in the electronic device based on the capacitance information of the capacitance detector sensor includes:
  • the central processing unit determines the target ceramic speaker exciter corresponding to the target position in the electronic device based on the interrupt and the capacitance change signal.
  • the interrupt can enable the central processing unit to suspend the current programs with lower priority among all parallel programs first, and start processing the process corresponding to the capacitance change signal of the capacitance detector sensor.
  • the central processing unit when the central processing unit receives the interrupt and capacitance change signals sent by the capacitance detector sensor, in order to enable the central processing unit to quickly and effectively adjust the volume of the electronic device and switch the ceramic speaker exciters to be driven, the embodiment of the present invention
  • the central processing unit can obtain the first capacitance information of the first detection piece, the second capacitance information of the second detection piece, the corresponding relationship between the first detection piece and the first ceramic speaker exciter, and the second detection piece and the first 2. Correspondence of ceramic speaker exciters.
  • the central processing unit determines the target ceramic speaker exciter corresponding to the target position in the electronic device based on the interrupt and the capacitance change signal, including:
  • the central processing unit based on the capacitance information corresponding to the capacitance change signal, the first capacitance information of the first detection piece, the second capacitance information of the second detection piece, and the correspondence between the detection piece of the capacitance detector sensor and the ceramic speaker exciter, Determine the target ceramic speaker exciter corresponding to the target location in the electronic device.
  • the central processing unit can suspend the lower priority tasks in the current process, and start processing the volume adjustment of the electronic device in the embodiment of the present invention.
  • the task is to obtain the capacitance information corresponding to the capacitance change signal.
  • the capacitance information corresponding to the capacitance change signal may include features such as the amount of capacitance change.
  • the central processing unit can be based on the first capacitance information of the first detection piece, the second capacitance information of the second detection piece, the capacitance information corresponding to the capacitance change signal, and the correspondence between the detection piece of the capacitance detector sensor and the ceramic speaker exciter. It determines the capacitance information corresponding to the capacitance change of which detection chip matches the capacitance information. Assuming that the capacitance information matches the first capacitance information of the first detection piece, based on the corresponding relationship between the detection piece of the capacitance detector sensor and the ceramic speaker exciter, it can be determined that the ceramic speaker exciter corresponding to the position grasped by the human hand is The first ceramic speaker exciter.
  • Step 302 Adjust the volume of the electronic device based on the target ceramic speaker exciter and the ceramic speaker exciter currently driven by the dual-channel ceramic speaker drive module;
  • the dual-channel ceramic speaker driver module drives the first ceramic speaker exciter and the second ceramic speaker exciter at the same time, and detects one of the ceramic speaker exciters (assumed to be the first
  • the embodiment of the present invention can double the volume of the electronic device, and Make the dual-channel ceramic speaker drive module stop driving the first ceramic speaker exciter.
  • the ceramic loudspeaker exciter currently driven by the dual-channel ceramic loudspeaker drive module includes: a first ceramic loudspeaker exciter and a second ceramic loudspeaker exciter,
  • Adjust the volume of electronic equipment based on the target ceramic speaker exciter and the ceramic speaker exciter currently driven by the dual-channel ceramic speaker driver module including:
  • the volume of the electronic device is adjusted to twice the initial volume, and the dual-channel ceramic speaker driving module stops driving the first ceramic speaker exciter.
  • the first ceramic speaker exciter has stopped working, that is, it has stopped being driven by the dual-channel ceramic speaker driver module.
  • the dual-channel ceramic speaker driver module drives only the second ceramic speaker driver to adjust the volume of the electronic device to that of the electronic device. The case is twice as large as before being grasped, so that the volume of the electronic device heard by the user does not change, thereby avoiding affecting the user's hearing experience.
  • the electronic device is currently mono output, that is, the two-channel ceramic speaker driver module only drives one of the first ceramic speaker exciter or the second ceramic speaker exciter, and it is detected that the currently driven ceramic speaker is excited
  • the speaker (assumed as the first ceramic speaker exciter) is grasped at the corresponding position on the housing, in order to prevent the vibration of the ceramic speaker exciter from being blocked and the sound heard by the user is greatly reduced
  • the embodiment of the present invention may The ceramic speaker exciter driven by the dual-channel ceramic speaker driver module is adjusted to the second ceramic speaker driver, and the dual-channel ceramic speaker driver module stops driving the first ceramic speaker driver.
  • the ceramic loudspeaker exciter currently driven by the two-channel ceramic loudspeaker drive module includes the first ceramic loudspeaker exciter
  • Adjust the volume of electronic equipment based on the target ceramic speaker exciter and the ceramic speaker exciter currently driven by the dual-channel ceramic speaker driver module including:
  • the ceramic speaker exciter driven by the dual-channel ceramic speaker driver module is adjusted to the second ceramic speaker driver, and the dual-channel ceramic speaker driver module stops driving the first ceramic speaker driver.
  • the dual-channel electronic device drive module currently drives only the second ceramic speaker exciter and detects that the second ceramic speaker exciter is grasped at the corresponding position of the housing, in order to avoid excitation of the ceramic speaker The vibration of the speaker is blocked and the sound heard by the user is greatly weakened, so that the dual-channel ceramic speaker driving module can drive the first ceramic speaker exciter and stop driving the second ceramic speaker exciter at the same time.
  • the electronic device may not be adjusted, that is, the current drive is maintained Status to ensure that the volume heard by the user has not changed.
  • the dual-channel ceramic speaker drive module when the dual-channel ceramic speaker drive module currently drives includes a first ceramic speaker exciter and a second ceramic speaker exciter, and it is detected that the first ceramic speaker exciter and the second ceramic speaker exciter are in the housing
  • the corresponding positions are all grasped, in order to prevent the vibration of the ceramic speaker exciter from being blocked and the sound heard by the user is greatly reduced, the volume of the electronic device can be increased.
  • the target ceramic loudspeaker exciter includes a first ceramic loudspeaker exciter and a second ceramic loudspeaker exciter
  • the ceramic loudspeaker exciter currently driven by the two-channel ceramic loudspeaker drive module includes the first ceramic loudspeaker exciter and the second ceramic loudspeaker
  • Adjust the volume of electronic equipment based on the target ceramic speaker exciter and the ceramic speaker exciter currently driven by the dual-channel ceramic speaker driver module including:
  • the volume of the electronic device is adjusted to a preset volume, and the preset volume is greater than the initial volume.
  • the electronic device can be obtained. Grasp the initial volume when gripping, and then adjust the volume of the electronic device to a preset multiple of the initial volume.
  • the preset multiple may be determined according to the actual application, such as 1.25 times or 1.5 times. At this time, the overall volume of the electronic device is increased to prevent the user from hearing the volume of the output of the electronic device from weakening.
  • FIG. 4 it is a schematic flowchart of a method for adjusting the volume of an electronic device according to an embodiment of the present invention applied in an actual scenario, including:
  • the capacitance detector sensor detects that the capacitance of the detection piece of the capacitance sensor has changed
  • the capacitance detector sensor sends interrupt and capacitance change signals to the central processing unit;
  • the central processing unit processes the current running process based on the interruption sent by the capacitance detector sensor, and obtains the initial state of the ceramic speaker actuator and electronic device corresponding to the position where the housing is grasped based on the capacitance change signal sent by the capacitance detector sensor. volume;
  • the central processing unit obtains the ceramic speaker exciter currently driven by the dual-channel ceramic speaker drive module to determine whether the current is a dual-channel output, that is, the first ceramic speaker exciter and the second ceramic speaker exciter are both driven by the dual-channel ceramic speaker Module drive;
  • the central processing unit sends a control command to the dual-channel ceramic speaker drive module to make the dual-channel ceramic speaker drive module
  • the speaker drive module adjusts the currently driven ceramic speaker exciter into another ceramic speaker exciter.
  • the electronic device in the method for adjusting the volume of the electronic device provided by the embodiment of the present invention includes a central processing unit, a first ceramic speaker exciter, a second ceramic speaker exciter, a housing, a capacitance detector sensor, and a dual-channel ceramic speaker driver module,
  • the central processing unit is connected with the capacitance detector sensor; the first ceramic speaker exciter and the second ceramic speaker exciter are arranged in the housing at intervals; the first ceramic speaker exciter and the housing are provided with a capacitance detector sensor.
  • a detection piece; a second detection piece of a capacitance detector sensor is arranged between the second ceramic speaker exciter and the housing; the dual-channel ceramic speaker drive module is used to drive the first ceramic speaker exciter and/or the second Two ceramic speaker exciters.
  • the capacitance detector sensor arranged in the housing can be used. Detects the capacitance change signal caused by the human hand grip, and can send interrupt and capacitance change signals to the central processing unit, so that the central processing unit can correspond to the ceramic speaker exciter driven by the current dual-channel ceramic speaker drive module and the grasped position
  • the ceramic speaker exciter adjusts the volume of electronic equipment.
  • the dual-channel ceramic speaker driver module stop driving the corresponding ceramic speaker exciter at the gripping position and drive other ceramic speaker exciters, or increase the volume of the electronic device to ensure that the volume of the electronic device heard by the user does not change , So as to avoid affecting the user’s hearing experience.
  • An embodiment of the present invention also provides an electronic device, as shown in FIG. 5, including:
  • the determining unit 501 is configured to determine the relationship between the capacitance detector sensor and the target position of the shell based on the capacitance information of the capacitance detector sensor when the capacitance detector sensor detects that the target position of the shell is grasped.
  • the adjusting unit 502 is configured to adjust the volume of the electronic device based on the target ceramic speaker exciter and the ceramic speaker exciter currently driven by the dual-channel ceramic speaker drive module.
  • the determining unit 501 is configured to:
  • the central processing unit determines the target ceramic speaker exciter corresponding to the target position in the electronic device based on the interrupt and the capacitance change signal.
  • the determining unit 501 is configured to:
  • the central processing unit suspends processing the currently running process
  • the central processing unit based on the capacitance information corresponding to the capacitance change signal, the first capacitance information of the first detection piece, the second capacitance information of the second detection piece, and the detection of the capacitance detector sensor The corresponding relationship between the sheet and the ceramic speaker exciter determines the target ceramic speaker exciter corresponding to the target position in the electronic device.
  • the ceramic speaker exciter currently driven by the dual-channel ceramic speaker drive module includes: the first ceramic speaker exciter In the case of a ceramic speaker exciter and the second ceramic speaker exciter, the adjustment unit 502 is used for:
  • Adjusting the volume of the electronic device based on the target ceramic speaker exciter and the ceramic speaker exciter currently driven by the dual-channel ceramic speaker drive module includes:
  • the volume of the electronic device is adjusted to twice the initial volume, and the two-channel ceramic speaker driving module stops driving the first ceramic speaker exciter.
  • the adjustment unit 502 is used for:
  • Adjusting the volume of the electronic device based on the target ceramic speaker exciter and the ceramic speaker exciter currently driven by the dual-channel ceramic speaker drive module includes:
  • the ceramic speaker exciter driven by the dual-channel ceramic speaker drive module is adjusted to the second ceramic speaker exciter, and the dual-channel ceramic speaker drive module stops driving the first ceramic speaker exciter.
  • the adjusting unit 502 is used for:
  • Adjusting the volume of the electronic device based on the target ceramic speaker exciter and the ceramic speaker exciter currently driven by the dual-channel ceramic speaker drive module includes:
  • the volume of the electronic device is adjusted to a preset volume, and the preset volume is greater than the initial volume.
  • the electronic device 500 can implement the method of the method embodiment shown in FIGS. 1 to 4. For details, please refer to the method for adjusting the volume of the electronic device in the embodiment shown in FIGS. 1 to 4, which will not be repeated here.
  • FIG. 6 is a schematic diagram of the hardware structure of an electronic device that implements various embodiments of the present invention.
  • the electronic device 600 includes, but is not limited to: a radio frequency unit 601, a network module 602, an audio output unit 603, an input unit 604, a sensor 305, a display unit 606, a user input unit 607, an interface unit 608, a memory 609, a processor 610, and Power 611 and other components.
  • a radio frequency unit 601 includes, but is not limited to: a radio frequency unit 601, a network module 602, an audio output unit 603, an input unit 604, a sensor 305, a display unit 606, a user input unit 607, an interface unit 608, a memory 609, a processor 610, and Power 611 and other components.
  • the electronic device may include more or fewer components than those shown in the figure, or a combination of certain components, or different components. Layout.
  • electronic devices include, but are not limited to, mobile phones, tablet computers, notebook computers, palmtop computers, vehicle-mounted terminals, wearable devices, and pedometers.
  • the processor 610 is configured to determine the target ceramic speaker actuator on the housing corresponding to the target position based on the capacitance information of the capacitance detector sensor when the capacitance detector sensor detects that the target position of the housing is grasped
  • the target position is provided with a first detection piece or a second detection piece; based on the target ceramic speaker exciter and the ceramic speaker exciter currently driven by the dual-channel ceramic speaker drive module, the volume of the electronic device is adjusted.
  • the electronic device in the method for adjusting the volume of the electronic device provided by the embodiment of the present invention includes a central processing unit, a first ceramic speaker exciter, a second ceramic speaker exciter, a housing, a capacitance detector sensor, and a dual-channel ceramic speaker driver module,
  • the central processing unit is connected with the capacitance detector sensor; the first ceramic speaker exciter and the second ceramic speaker exciter are arranged in the housing at intervals; the first ceramic speaker exciter and the housing are provided with a capacitance detector sensor.
  • a detection piece; a second detection piece of a capacitance detector sensor is arranged between the second ceramic speaker exciter and the housing; the dual-channel ceramic speaker drive module is used to drive the first ceramic speaker exciter and/or the second Two ceramic speaker exciters.
  • the capacitance detector sensor arranged in the housing can be used. Detects the capacitance change signal caused by the human hand grip, and can send interrupt and capacitance change signals to the central processing unit, so that the central processing unit can correspond to the ceramic speaker exciter driven by the current dual-channel ceramic speaker drive module and the grasped position
  • the ceramic speaker exciter adjusts the volume of electronic equipment.
  • the dual-channel ceramic speaker driver module stop driving the corresponding ceramic speaker exciter at the gripping position and drive other ceramic speaker exciters, or increase the volume of the electronic device to ensure that the volume of the electronic device heard by the user does not change , So as to avoid affecting the user’s hearing experience.
  • the radio frequency unit 601 can be used to receive and send signals during information transmission or communication. Specifically, the downlink data from the base station is received and sent to the processor 610 for processing; in addition, Uplink data is sent to the base station.
  • the radio frequency unit 601 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.
  • the radio frequency unit 601 can also communicate with the network and other devices through a wireless communication system.
  • the electronic device provides users with wireless broadband Internet access through the network module 602, such as helping users to send and receive emails, browse web pages, and access streaming media.
  • the audio output unit 603 can convert the audio data received by the radio frequency unit 601 or the network module 602 or stored in the memory 609 into audio signals and output them as sounds. Moreover, the audio output unit 603 may also provide audio output related to a specific function performed by the electronic device 600 (for example, call signal reception sound, message reception sound, etc.).
  • the audio output unit 603 includes a speaker, a buzzer, a receiver, and the like.
  • the input unit 604 is used to receive audio or video signals.
  • the input unit 604 may include a graphics processing unit (GPU) 6041 and a microphone 6042, and the graphics processor 6041 is used to capture images of still pictures or videos obtained by an image capture device (such as a camera) in a video capture mode or an image capture mode. Data is processed.
  • the processed image frame may be displayed on the display unit 606.
  • the image frame processed by the graphics processor 6041 may be stored in the memory 609 (or other storage medium) or sent via the radio frequency unit 601 or the network module 602.
  • the microphone 6042 can receive sound, and can process such sound into audio data.
  • the processed audio data can be converted into a format that can be sent to a mobile communication base station via the radio frequency unit 601 for output in the case of a telephone call mode.
  • the electronic device 600 further includes at least one sensor 605, such as a light sensor, a motion sensor, and other sensors.
  • the light sensor includes an ambient light sensor and a proximity sensor.
  • the ambient light sensor can adjust the brightness of the display panel 6061 according to the brightness of the ambient light.
  • the proximity sensor can close the display panel 6061 and the display panel 6061 when the electronic device 600 is moved to the ear. / Or backlight.
  • the accelerometer sensor can detect the magnitude of acceleration in various directions (usually three axes), and can detect the magnitude and direction of gravity when stationary, and can be used to identify the posture of electronic devices (such as horizontal and vertical screen switching, related games) , Magnetometer attitude calibration), vibration recognition related functions (such as pedometer, percussion), etc.; sensor 605 can also include fingerprint sensors, pressure sensors, iris sensors, molecular sensors, gyroscopes, barometers, hygrometers, thermometers, Infrared sensors, etc., will not be repeated here.
  • the display unit 606 is used to display information input by the user or information provided to the user.
  • the display unit 606 may include a display panel 6061, and the display panel 6061 may be configured in the form of a liquid crystal display (LCD), an organic light-emitting diode (OLED), etc.
  • LCD liquid crystal display
  • OLED organic light-emitting diode
  • the user input unit 607 may be used to receive inputted number or character information, and generate key signal input related to user settings and function control of the electronic device.
  • the user input unit 607 includes a touch panel 6071 and other input devices 6072.
  • the touch panel 6071 also called a touch screen, can collect user touch operations on or near it (for example, the user uses any suitable objects or accessories such as fingers, stylus, etc.) on the touch panel 6071 or near the touch panel 6071. operating).
  • the touch panel 6071 may include two parts: a touch detection device and a touch controller.
  • the touch detection device detects the user's touch position, 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 contact coordinates, and then sends it To the processor 610, the command sent by the processor 610 is received and executed.
  • the touch panel 6071 can be implemented in multiple types such as resistive, capacitive, infrared, and surface acoustic wave.
  • the user input unit 607 may also include other input devices 6072.
  • other input devices 6072 may include, but are not limited to, a physical keyboard, function keys (such as volume control buttons, switch buttons, etc.), trackball, mouse, and joystick, which will not be repeated here.
  • the touch panel 6071 can cover the display panel 6061.
  • the touch panel 6071 detects a touch operation on or near it, it is transmitted to the processor 610 to determine the type of the touch event, and then the processor 610 determines the type of the touch event according to the touch.
  • the type of event provides corresponding visual output on the display panel 6061.
  • the touch panel 6071 and the display panel 6061 are used as two independent components to implement the input and output functions of the electronic device, in some embodiments, the touch panel 6071 and the display panel 6061 can be integrated
  • the implementation of the input and output functions of the electronic device is not specifically limited here.
  • the interface unit 608 is an interface for connecting an external device and the electronic device 600.
  • the external device may include a wired or wireless headset port, an external power source (or battery charger) port, a wired or wireless data port, a memory card port, a port for connecting a device with an identification module, audio input/output (I/O) port, video I/O port, headphone port, etc.
  • the interface unit 608 can be used to receive input (for example, data information, power, etc.) from an external device and transmit the received input to one or more elements in the electronic device 600 or can be used to connect the electronic device 600 to an external device. Transfer data between devices.
  • the memory 609 can be used to store software programs and various data.
  • the memory 609 may mainly include a storage program area and a storage data area.
  • the storage program area may store an operating system, an application program required by at least one function (such as a sound playback function, an image playback function, etc.), etc.; Data created by the use of mobile phones (such as audio data, phone book, etc.), etc.
  • the memory 609 may include a high-speed random access memory, and may also include a non-volatile memory, such as at least one magnetic disk storage device, a flash memory device, or other volatile solid-state storage devices.
  • the processor 610 is the control center of the electronic device. It uses various interfaces and lines to connect the various parts of the entire electronic device, runs or executes software programs and/or modules stored in the memory 609, and calls data stored in the memory 609. , Perform various functions of electronic equipment and process data, so as to monitor the electronic equipment as a whole.
  • the processor 610 may include one or more processing units; preferably, the processor 610 may integrate an application processor and a modem processor, where the application processor mainly processes the operating system, user interface, application programs, etc., and the modem The processor mainly deals with wireless communication. It can be understood that the foregoing modem processor may not be integrated into the processor 610.
  • the electronic device 600 may also include a power source 611 (such as a battery) for supplying power to various components.
  • a power source 611 such as a battery
  • the power source 611 may be logically connected to the processor 610 through a power management system, so as to manage charging, discharging, and power consumption management through the power management system. And other functions.
  • the electronic device 600 includes some functional modules not shown, which will not be repeated here.
  • the embodiment of the present invention also provides an electronic device, including a processor 610, a memory 609, and a computer program stored on the memory 609 and running on the processor 610.
  • an electronic device including a processor 610, a memory 609, and a computer program stored on the memory 609 and running on the processor 610.
  • the computer program is executed by the processor 610,
  • the various processes of the foregoing embodiments of the method for adjusting the volume of an electronic device are implemented, and the same technical effect can be achieved. To avoid repetition, details are not repeated here.
  • the embodiment of the present invention also provides a computer-readable storage medium, and a computer program is stored on the computer-readable storage medium.
  • a computer program is stored on the computer-readable storage medium.
  • the computer program is executed by a processor, each process of the above-mentioned electronic device volume adjustment method embodiment is realized, and can achieve The same technical effect, in order to avoid repetition, will not be repeated here.
  • the computer-readable storage medium such as read-only memory (Read-Only Memory, ROM), random access memory (Random Access Memory, RAM), magnetic disk, or optical disk, etc.
  • the technical solution of the present invention essentially or the part that contributes to the existing technology can be embodied in the form of a software product, and the computer software product is stored in a storage medium (such as ROM/RAM, magnetic disk, The optical disc) includes several instructions to make a terminal (which can be a mobile phone, a computer, a server, an air conditioner, or a network device, etc.) execute the method described in each embodiment of the present invention.
  • a terminal which can be a mobile phone, a computer, a server, an air conditioner, or a network device, etc.

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Multimedia (AREA)
  • Health & Medical Sciences (AREA)
  • Audiology, Speech & Language Pathology (AREA)
  • General Health & Medical Sciences (AREA)
  • Human Computer Interaction (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Circuit For Audible Band Transducer (AREA)

Abstract

An electronic device and a volume adjustment method therefor. The method comprises: in the case that a capacitance meter sensor (106) detects that a target position of a housing is grasped, determining a target ceramic loudspeaker exciter corresponding to the target position on the housing on the basis of capacitance information of the capacitance meter sensor (106), a first detection sheet (1061) or a second detection sheet (1062) being disposed at the target position; and adjusting the volume of the electronic device on the basis of the target ceramic loudspeaker exciter and a ceramic loudspeaker exciter currently driven by a dual-channel ceramic loudspeaker driving module (103).

Description

电子设备及其音量调节方法Electronic equipment and its volume adjustment method
相关申请的交叉引用Cross-references to related applications
本申请主张在2019年12月2日在中国提交的中国专利申请号No.201911214150.1的优先权,其全部内容通过引用包含于此。This application claims the priority of Chinese Patent Application No. 201911214150.1 filed in China on December 2, 2019, the entire content of which is incorporated herein by reference.
技术领域Technical field
本发明涉及电子设备技术领域,尤其涉及一种电子设备及其音量调节方法。The present invention relates to the technical field of electronic equipment, in particular to an electronic equipment and a volume adjustment method thereof.
背景技术Background technique
随着电子设备的快速发展,为了满足用户的听觉享受,许多电子设备都设置有扬声器,为用户提供播放音频的功能。With the rapid development of electronic devices, in order to satisfy users' hearing enjoyment, many electronic devices are equipped with speakers to provide users with a function of playing audio.
现有的电子设备的扬声器大多数都是动圈式扬声器,这类扬声器需要在电子设备上设计出音孔,以确保动圈式扬声器的声音能够外放。然而,出音孔的设计不仅会影响电子设备外观一体化的美观,还会增加扬声器进水的风险,从而增加扬声器受到静电损伤的风险,进而使得扬声器的功能受到严重影响。Most of the speakers of the existing electronic devices are dynamic speakers, and such speakers need to be designed with sound holes on the electronic devices to ensure that the sound of the dynamic speakers can be emitted outside. However, the design of the sound hole will not only affect the aesthetics of the integrated appearance of the electronic device, but also increase the risk of water ingress into the speaker, thereby increasing the risk of electrostatic damage to the speaker, thereby seriously affecting the function of the speaker.
目前,也有一部分电子设备的扬声器采用压电陶瓷扬声器,但通常采用的是单品压电陶瓷扬声器。这类扬声器在用户的手紧握其振动发声部位时,通常会导致扬声器的振动受阻,使得扬声器发出的声音的音量减弱,从而影响用户的听觉享受。因此,如何避免用户的手紧握电子设备时导致其音量减弱的问题,仍然需要进一步的解决方案。At present, some electronic devices use piezoelectric ceramic speakers, but they usually use single-piece piezoelectric ceramic speakers. When the user's hand grips the vibrating sound-producing part of this type of speaker, the vibration of the speaker is usually blocked, and the volume of the sound emitted by the speaker is reduced, thereby affecting the user's hearing enjoyment. Therefore, how to avoid the problem of weakening the volume of the electronic device when the user's hand grips the electronic device still requires further solutions.
发明内容Summary of the invention
本发明实施例提供一种电子设备及其音量调节方法,以解决现有技术中用户紧握电子设备导致其音量减弱的问题。The embodiments of the present invention provide an electronic device and a volume adjustment method thereof, so as to solve the problem that the user's grip on the electronic device in the prior art causes its volume to decrease.
为了解决上述技术问题,本发明是这样实现的:In order to solve the above technical problems, the present invention is implemented as follows:
第一方面,本发明实施例提供了一种电子设备,包括中央处理器、第一 陶瓷扬声器激励器、第二陶瓷扬声器激励器、壳体、电容检测计传感器和双通道陶瓷扬声器驱动模块,其中:In the first aspect, an embodiment of the present invention provides an electronic device, including a central processing unit, a first ceramic speaker exciter, a second ceramic speaker exciter, a housing, a capacitance detector sensor, and a dual-channel ceramic speaker driver module, wherein :
所述第一陶瓷扬声器激励器设置于所述壳体内,所述第一陶瓷扬声器激励器与所述壳体相连;The first ceramic speaker exciter is arranged in the housing, and the first ceramic speaker exciter is connected to the housing;
所述第二陶瓷扬声器激励器设置于所述壳体内,所述第二陶瓷扬声器激励器与所述壳体相连,且所述第二陶瓷扬声器激励器与所述第一陶瓷扬声器激励器间隔设置;The second ceramic speaker exciter is arranged in the housing, the second ceramic speaker exciter is connected to the housing, and the second ceramic speaker exciter is spaced apart from the first ceramic speaker exciter ;
所述电容检测计传感器包括第一检测片和第二检测片,所述第一检测片用于获取所述壳体的与所述第一陶瓷扬声器激励器对应位置处的第一电容信息,所述第二检测片用于获取所述壳体的与所述第二陶瓷扬声器激励器对应位置处的第二电容信息;The capacitance detector sensor includes a first detection piece and a second detection piece, and the first detection piece is used to obtain first capacitance information of the housing at a position corresponding to the first ceramic speaker exciter, so The second detection piece is used to obtain second capacitance information of the housing at a position corresponding to the second ceramic speaker exciter;
所述双通道陶瓷扬声器驱动模块,用于驱动所述第一陶瓷扬声器激励器和所述第二陶瓷扬声器激励器;The two-channel ceramic speaker drive module is used to drive the first ceramic speaker exciter and the second ceramic speaker exciter;
所述中央处理器分别与所述电容检测计传感器和所述双通道陶瓷扬声器驱动模块连接,所述中央处理器基于所述第一电容信息和所述第二电容信息控制所述双通道陶瓷扬声器驱动模块,以通过所述第一陶瓷扬声器激励器和所述第二陶瓷扬声器激励器中的至少一个发声。The central processing unit is respectively connected to the capacitance detector sensor and the dual-channel ceramic speaker driving module, and the central processing unit controls the dual-channel ceramic speaker based on the first capacitance information and the second capacitance information The module is driven to emit sound through at least one of the first ceramic speaker exciter and the second ceramic speaker exciter.
第二方面,本发明实施例提供了一种电子设备的音量调节方法,所述方法应用于第一方面所述的电子设备,包括:In a second aspect, an embodiment of the present invention provides a method for adjusting the volume of an electronic device. The method is applied to the electronic device described in the first aspect, and includes:
在所述电容检测计传感器检测到所述壳体的目标位置被抓握的情况下,基于所述电容检测计传感器的电容信息,确定所述壳体上与所述目标位置对应的目标陶瓷扬声器激励器;所述目标位置设置有所述第一检测片或所述第二检测片;In the case where the capacitance detector sensor detects that the target position of the housing is grasped, based on the capacitance information of the capacitance detector sensor, determine the target ceramic speaker on the housing corresponding to the target position Exciter; the target position is provided with the first detection piece or the second detection piece;
基于所述目标陶瓷扬声器激励器和所述双通道陶瓷扬声器驱动模块当前驱动的陶瓷扬声器激励器,调节所述电子设备的音量。The volume of the electronic device is adjusted based on the target ceramic speaker exciter and the ceramic speaker exciter currently driven by the dual-channel ceramic speaker drive module.
第三方面,本发明实施例还提供一种电子设备,所述电子设备包括第一方面所述的电子设备,包括:In a third aspect, an embodiment of the present invention also provides an electronic device. The electronic device includes the electronic device described in the first aspect, including:
确定单元,用于在所述电容检测计传感器检测到所述壳体的目标位置被抓握的情况下,基于所述电容检测计传感器的电容信息,确定所述壳体上与 所述目标位置对应的目标陶瓷扬声器激励器;所述目标位置设置有所述第一检测片或所述第二检测片;The determining unit is configured to determine the position on the housing and the target position based on the capacitance information of the capacitance detector sensor when the capacitance detector sensor detects that the target position of the housing is grasped. Corresponding target ceramic speaker exciter; the target position is provided with the first detection piece or the second detection piece;
调节单元,用于基于所述目标陶瓷扬声器激励器和所述双通道陶瓷扬声器驱动模块当前驱动的陶瓷扬声器激励器,调节所述电子设备的音量。The adjustment unit is configured to adjust the volume of the electronic device based on the target ceramic speaker exciter and the ceramic speaker exciter currently driven by the dual-channel ceramic speaker drive module.
第四方面,本发明实施例还提供一种电子设备,包括:存储器、处理器及存储在所述存储器上并可在所述处理器上运行的计算机程序,所述计算机程序被所述处理器执行时实现如第二方面所述的电子设备的音量调节方法的步骤。In a fourth aspect, an embodiment of the present invention also provides an electronic device, including: a memory, a processor, and a computer program stored on the memory and capable of running on the processor, the computer program being used by the processor When executed, the steps of the method for adjusting the volume of an electronic device as described in the second aspect are implemented.
第五方面,本发明实施例还提供一种可读存储介质,所述计算机可读存储介质上存储有计算机程序,所述计算机程序被处理器执行时实现如第二方面所述的电子设备的音量调节方法的步骤。In a fifth aspect, an embodiment of the present invention also provides a readable storage medium having a computer program stored on the computer readable storage medium, and when the computer program is executed by a processor, the electronic device as described in the second aspect is implemented The steps of the volume adjustment method.
本发明实施例提供的电子设备,包括中央处理器、第一陶瓷扬声器激励器、第二陶瓷扬声器激励器、壳体、电容检测计传感器和双通道陶瓷扬声器驱动模块,中央处理器与电容检测计传感器连接;第一陶瓷扬声器激励器与第二陶瓷扬声器激励器间隔设置在壳体内;该第一陶瓷扬声器激励器与该壳体之间设置有电容检测计传感器的第一检测片;该第二陶瓷扬声器激励器与该壳体之间设置有电容检测计传感器的第二检测片;该双通道陶瓷扬声器驱动模块,用于驱动第一陶瓷扬声器激励器和/或第二陶瓷扬声器激励器。The electronic device provided by the embodiment of the present invention includes a central processing unit, a first ceramic speaker exciter, a second ceramic speaker exciter, a housing, a capacitance detector sensor and a dual-channel ceramic speaker drive module, a central processing unit and a capacitance detector The sensor is connected; the first ceramic speaker exciter and the second ceramic speaker exciter are arranged in the housing at intervals; the first detection piece of the capacitance detector sensor is arranged between the first ceramic speaker exciter and the housing; the second A second detection piece of the capacitance detector sensor is arranged between the ceramic speaker exciter and the housing; the dual-channel ceramic speaker drive module is used to drive the first ceramic speaker exciter and/or the second ceramic speaker exciter.
这样,当用户的手抓握到设置有第一陶瓷扬声器激励器或第二陶瓷扬声器激励器的壳体处,引起该陶瓷扬声器激励器振动受阻时,设置在壳体内的电容检测计传感器便可以检测到人手紧握引起的电容变化,并能够发送中断和电容变化信号至中央处理器,使得中央处理器可以根据当前双通道陶瓷扬声器驱动模块驱动的陶瓷扬声器激励器和被抓握位置处对应的陶瓷扬声器激励器,调节电子设备的音量。比如,使得双通道陶瓷扬声器驱动模块停止驱动抓握位置处对应的陶瓷扬声器激励器,并驱动其它陶瓷扬声器激励器,或增大电子设备的音量以保证用户听到的电子设备的音量不发生变化,从而避免影响用户的听觉体验。In this way, when the user's hand grasps the housing where the first ceramic speaker exciter or the second ceramic speaker exciter is arranged, and the vibration of the ceramic speaker exciter is blocked, the capacitance detector sensor arranged in the housing can be used. Detects the capacitance change caused by the human hand grip, and can send interrupt and capacitance change signals to the central processing unit, so that the central processing unit can be based on the current dual-channel ceramic speaker driver module to drive the ceramic speaker exciter and the corresponding grasped position Ceramic speaker exciter to adjust the volume of electronic equipment. For example, make the dual-channel ceramic speaker driver module stop driving the corresponding ceramic speaker exciter at the grasping position and drive other ceramic speaker exciters, or increase the volume of the electronic device to ensure that the volume of the electronic device heard by the user does not change , So as to avoid affecting the user’s hearing experience.
附图说明Description of the drawings
为了更清楚地说明本发明实施例的技术方案,下面将对本发明实施例的描述中所需要使用的附图作简单地介绍,显而易见地,下面描述中的附图仅仅是本发明的一些实施例,对于本领域普通技术人员来讲,在不付出创造性劳动性的前提下,还可以根据这些附图获得其他的附图。In order to explain the technical solutions of the embodiments of the present invention more clearly, the following will briefly introduce the drawings that need to be used in the description of the embodiments of the present invention. Obviously, the drawings in the following description are only some embodiments of the present invention. For those of ordinary skill in the art, other drawings can be obtained based on these drawings without creative labor.
图1为本发明实施例提供的一种电子设备的结构示意图;FIG. 1 is a schematic structural diagram of an electronic device provided by an embodiment of the present invention;
图2为本发明实施例提供的一种电子设备的壳体的结构示意图;2 is a schematic structural diagram of a housing of an electronic device provided by an embodiment of the present invention;
图3为本发明实施例提供的一种电子设备的音量调节方法的实现流程示意图;3 is a schematic diagram of an implementation process of a method for adjusting the volume of an electronic device according to an embodiment of the present invention;
图4为本发明实施例提供的一种电子设备的音量调节方法应用在一种实际场景中的流程示意图;4 is a schematic flowchart of a method for adjusting the volume of an electronic device according to an embodiment of the present invention applied in an actual scenario;
图5为本发明实施例提供的一种电子设备的结构示意图;FIG. 5 is a schematic structural diagram of an electronic device provided by an embodiment of the present invention;
图6本发明实施例提供的一种电子设备的硬件结构示意图。FIG. 6 is a schematic diagram of the hardware structure of an electronic device according to an embodiment of the present invention.
具体实施方式Detailed ways
下面将结合本发明实施例中的附图,对本发明实施例中的技术方案进行清楚、完整地描述,显然,所描述的实施例是本发明一部分实施例,而不是全部的实施例。基于本发明中的实施例,本领域普通技术人员在没有做出创造性劳动前提下所获得的所有其他实施例,都属于本发明保护的范围。The technical solutions in the embodiments of the present invention will be clearly and completely described below in conjunction with the accompanying drawings in the embodiments of the present invention. Obviously, the described embodiments are part of the embodiments of the present invention, not all of them. Based on the embodiments of the present invention, all other embodiments obtained by those of ordinary skill in the art without creative work shall fall within the protection scope of the present invention.
以下结合附图,详细说明本发明各实施例提供的技术方案。The technical solutions provided by the embodiments of the present invention will be described in detail below with reference to the accompanying drawings.
为了解决现有技术中的存在的上述问题,本发明实施例提供一种电子设备及其音量调节方法,该电子设备中的电容检测计包括第一检测片和第二检测片,该第一检测片用于获取壳体对的与第一陶瓷扬声器激励器对应位置处的第一电容信息,该第二检测片用于获取壳体对的与第二陶瓷扬声器激励器对应位置处的第二电容信息。In order to solve the above-mentioned problems in the prior art, embodiments of the present invention provide an electronic device and a volume adjustment method thereof. The capacitance detector in the electronic device includes a first detection piece and a second detection piece. The sheet is used to obtain the first capacitance information of the shell pair at the position corresponding to the first ceramic speaker exciter, and the second detection sheet is used to obtain the second capacitance of the shell pair at the position corresponding to the second ceramic speaker exciter information.
该电容检测计传感器与中央处理器连接,电容检测计传感器用于基于第一检测片或第二检测片的电容变化,向中央处理器发送电容变化信号,中央处理器能够基于电容检测计传感器的电容变化信号,确定壳体被抓握位置对应的陶瓷扬声器激励器,这样,当用户的手抓握到设置有第一陶瓷扬声器激 励器或第二陶瓷扬声器激励器的壳体处,引起该陶瓷扬声器激励器振动受阻时,设置在壳体内侧的电容检测计传感器便可以检测到人手紧握引起的电容变化,并能够发送中断和电容变化信号至中央处理器。The capacitance detector sensor is connected to the central processing unit, and the capacitance detector sensor is used to send a capacitance change signal to the central processing unit based on the capacitance change of the first detection piece or the second detection piece, and the central processing unit can be based on the capacitance of the capacitance detector sensor. The capacitance change signal determines the ceramic speaker exciter corresponding to the position where the housing is grasped, so that when the user’s hand grips the housing where the first ceramic speaker exciter or the second ceramic speaker exciter is set, the ceramic When the vibration of the loudspeaker exciter is blocked, the capacitance detector sensor arranged inside the housing can detect the capacitance change caused by the grip of the human hand, and can send interruption and capacitance change signals to the central processing unit.
中央处理器可以根据当前双通道陶瓷扬声器驱动模块驱动的陶瓷扬声器激励器和被抓握位置处对应的陶瓷扬声器激励器,调节电子设备的音量,以保证用户听到的电子设备的音量不发生变化,从而避免影响用户的听觉体验。The central processing unit can adjust the volume of the electronic device according to the ceramic speaker exciter driven by the current dual-channel ceramic speaker driver module and the corresponding ceramic speaker exciter at the grasped position to ensure that the volume of the electronic device heard by the user does not change , So as to avoid affecting the user’s hearing experience.
如图1所示,为本发明实施例提供的一种电子设备的结构示意图。该电子设备包括中央处理器105、第一陶瓷扬声器激励器1071、第二陶瓷扬声器激励器1072、壳体201、电容检测计传感器106和双通道陶瓷扬声器驱动模块103,其中:As shown in FIG. 1, it is a schematic structural diagram of an electronic device provided by an embodiment of the present invention. The electronic device includes a central processing unit 105, a first ceramic speaker exciter 1071, a second ceramic speaker exciter 1072, a housing 201, a capacitance detector sensor 106, and a dual-channel ceramic speaker driver module 103, in which:
第一陶瓷扬声器激励器1071设置于壳体201内,第一陶瓷扬声器激励器1071与壳体201相连;The first ceramic speaker exciter 1071 is arranged in the housing 201, and the first ceramic speaker exciter 1071 is connected to the housing 201;
第二陶瓷扬声器激励器1072设置于壳体201内,第二陶瓷扬声器激励器1072与壳体201相连,且第二陶瓷扬声器激励器1072与第一陶瓷扬声器激励器1071间隔设置;The second ceramic speaker exciter 1072 is arranged in the housing 201, the second ceramic speaker exciter 1072 is connected to the housing 201, and the second ceramic speaker exciter 1072 is spaced apart from the first ceramic speaker exciter 1071;
电容检测计传感器106包括第一检测片1061和第二检测片1062,第一检测片1061用于获取壳体201的与第一陶瓷扬声器激励器1071对应位置处的第一电容信息,第二检测片1062用于获取壳体201的与第二陶瓷扬声器激励器1072对应位置处的第二电容信息;The capacitance detector sensor 106 includes a first detection piece 1061 and a second detection piece 1062. The first detection piece 1061 is used to obtain the first capacitance information of the housing 201 at the position corresponding to the first ceramic speaker exciter 1071, and the second detection piece 1061. The sheet 1062 is used to obtain the second capacitance information of the housing 201 at a position corresponding to the second ceramic speaker exciter 1072;
双通道陶瓷扬声器驱动模块103,用于驱动第一陶瓷扬声器激励器和第二陶瓷扬声器激励器;The dual-channel ceramic speaker driver module 103 is used to drive the first ceramic speaker exciter and the second ceramic speaker exciter;
中央处理器105分别与电容检测计传感器106和双通道陶瓷扬声器驱动模块103连接,中央处理器105基于第一电容信息和所述第二电容信息控制双通道陶瓷扬声器驱动模块103,以通过第一陶瓷扬声器激励器1071和第二陶瓷扬声器激励器1072中的至少一个发声。The central processing unit 105 is respectively connected to the capacitance detector sensor 106 and the dual-channel ceramic speaker driving module 103. The central processing unit 105 controls the dual-channel ceramic speaker driving module 103 based on the first capacitance information and the second capacitance information to pass the first At least one of the ceramic speaker exciter 1071 and the second ceramic speaker exciter 1072 emits sound.
具体地,如图2所示,为本发明实施例提供的一种电子设备的壳体结构示意图。为了确定被抓握位置对应于陶瓷扬声器激励器1071和1072中的哪一个,以便调节电子设备的音量,本发明实施例在第一陶瓷扬声器激励器1071与壳体201之间设置有电容检测计传感器106的第一检测片1061,第二陶瓷 扬声器激励器1072与壳体201之间设置有电容检测计传感器106的第二检测片1062。Specifically, as shown in FIG. 2, it is a schematic diagram of a housing structure of an electronic device according to an embodiment of the present invention. In order to determine which of the ceramic speaker exciters 1071 and 1072 the grasped position corresponds to, so as to adjust the volume of the electronic device, the embodiment of the present invention is provided with a capacitance detector between the first ceramic speaker exciter 1071 and the housing 201 Between the first detection piece 1061 of the sensor 106, the second ceramic speaker exciter 1072 and the housing 201, a second detection piece 1062 of the capacitance detector sensor 106 is provided.
且第一陶瓷扬声器激励器1071紧贴电容检测计传感器106的第一检测片1061,第二陶瓷扬声器激励器1072紧贴电容检测计传感器106的第二检测片1062,电容检测计传感器106的第一检测片1061与第二检测片1062均紧贴于壳体201,以便于能够更及时准确地检测到陶瓷扬声器激励器107是否被抓握。In addition, the first ceramic speaker exciter 1071 is closely attached to the first detection piece 1061 of the capacitance detector sensor 106, the second ceramic speaker actuator 1072 is closely attached to the second detection piece 1062 of the capacitance detector sensor 106, and the first detection piece 1062 of the capacitance detector sensor 106 is closely attached. A detection piece 1061 and a second detection piece 1062 are both closely attached to the housing 201, so that whether the ceramic speaker exciter 107 is grasped can be detected more timely and accurately.
为便于电容检测计传感器106每经过一个预设时间周期都可以检测第一检测片1061的第一电容信息与第二检测片1062的第二电容信息,其中,预设时间周期可以为很短的时间周期,如1毫秒或3毫秒等。电容检测计传感器1061可通过馈点104与电容检测计传感器106的第一检测片1061和第二检测片1602连接,其中,馈点104可用于传递双通道陶瓷扬声器驱动模块103与陶瓷扬声器激励器107之间的音频信号,以及传递电容检测计传感器106与电容检测计传感器的检测片之间的电容信息。In order to facilitate the capacitance detector sensor 106 to detect the first capacitance information of the first detection piece 1061 and the second capacitance information of the second detection piece 1062 every preset time period, the preset time period can be very short The time period, such as 1 millisecond or 3 milliseconds. The capacitance detector sensor 1061 can be connected to the first detection piece 1061 and the second detection piece 1602 of the capacitance detector sensor 106 through the feed point 104, where the feed point 104 can be used to transmit the dual-channel ceramic speaker driver module 103 and the ceramic speaker exciter The audio signal between 107 and the capacitance information between the capacitance detector sensor 106 and the detection chip of the capacitance detector sensor are transferred.
并且,为了保证馈点104向第一陶瓷扬声器激励器1071与第二陶瓷扬声器激励器1072传递的信号的相位一致,馈点104设置在第一陶瓷扬声器激励器1071与第二陶瓷扬声器激励器1072的正中间紧贴壳体201的位置。In addition, in order to ensure that the phases of the signals transmitted by the feed point 104 to the first ceramic speaker exciter 1071 and the second ceramic speaker exciter 1072 are consistent, the feed point 104 is set in the first ceramic speaker exciter 1071 and the second ceramic speaker exciter 1072. The middle is close to the position of the housing 201.
应理解,在检测到电容检测计传感器106的检测片的电容发生变化时,为了能够确定电容发生变化的电容检测计传感器106的检测片对应的陶瓷扬声器激励器,中央处理器105可以与电容检测计传感器106连接,以便电容检测计传感器106能够及时将电容信号发送给中央处理器105。中央处理器105与双通道陶瓷扬声器驱动模块103连接,以便中央处理器105可以获取到双通道陶瓷扬声器驱动模块103当前驱动的陶瓷扬声器激励器,并根据获取到的电容变化信号对应的电容信息与双通道陶瓷扬声器驱动模块103当前驱动的陶瓷扬声器激励器,调节电子设备的音量。It should be understood that when a change in the capacitance of the detection piece of the capacitance detector sensor 106 is detected, in order to be able to determine the ceramic speaker exciter corresponding to the detection piece of the capacitance detector sensor 106 whose capacitance has changed, the central processing unit 105 may interact with the capacitance detection The meter sensor 106 is connected so that the capacitance detector sensor 106 can send the capacitance signal to the central processing unit 105 in time. The central processing unit 105 is connected to the dual-channel ceramic speaker drive module 103 so that the central processing unit 105 can obtain the ceramic speaker exciter currently driven by the dual-channel ceramic speaker drive module 103, and compare the capacitance information corresponding to the acquired capacitance change signal with The ceramic speaker exciter currently driven by the dual-channel ceramic speaker driving module 103 adjusts the volume of the electronic device.
具体地,音频处理器模块101能够输出音频信号,音频总线102能够将音频处理器模块101输出的音频信号传递给双通道陶瓷扬声器驱动模块103。双通道陶瓷扬声器驱动模块103能够驱动第一陶瓷扬声器激励器1071和/或第二陶瓷扬声器激励器1072,即双通道陶瓷扬声器驱动模块103输出随声音 信号变化的电压信号,使得第一陶瓷扬声器激励器1071和/或第二陶瓷扬声器激励器1072随电压发生形变,推动壳体振膜振动,进而推动空气振动,发出声音。而双通道陶瓷扬声器驱动模块103具体驱动第一陶瓷扬声器激励器1071和1072中的哪一个,则可以通过接收中央处理器105的指令来确定。Specifically, the audio processor module 101 can output audio signals, and the audio bus 102 can transmit the audio signals output by the audio processor module 101 to the dual-channel ceramic speaker driving module 103. The dual-channel ceramic speaker driver module 103 can drive the first ceramic speaker exciter 1071 and/or the second ceramic speaker driver 1072, that is, the dual-channel ceramic speaker driver module 103 outputs a voltage signal that varies with the sound signal, so that the first ceramic speaker is excited The device 1071 and/or the second ceramic loudspeaker exciter 1072 deforms with the voltage, which pushes the shell diaphragm to vibrate, which in turn pushes the air to vibrate to produce sound. The dual-channel ceramic speaker driving module 103 specifically drives which of the first ceramic speaker exciters 1071 and 1072 to be determined by receiving instructions from the central processing unit 105.
馈点104能够实现双通道陶瓷扬声器驱动模块103与第一陶瓷扬声器激励器1071和/或第二陶瓷扬声器激励器1072之间的信号传递,还能够实现电容检测计传感器106与第一检测片1061和第二检测片1062之间的信号传递。此外,馈点104可以设置在第一陶瓷扬声器激励器1071与第二陶瓷扬声器激励器1072的正中间,以保证馈点104传输至第一陶瓷扬声器激励器1071与第二陶瓷扬声器激励器1072的信号同相位。The feed point 104 can realize the signal transmission between the dual-channel ceramic speaker driver module 103 and the first ceramic speaker exciter 1071 and/or the second ceramic speaker exciter 1072, and can also realize the capacitance detector sensor 106 and the first detection piece 1061 And the second detection chip 1062 signal transmission. In addition, the feed point 104 can be set in the middle of the first ceramic speaker exciter 1071 and the second ceramic speaker exciter 1072 to ensure that the feed point 104 is transmitted to the first ceramic speaker exciter 1071 and the second ceramic speaker exciter 1072. The signals are in phase.
电容检测计传感器106包括第一检测片1061与第二检测片1062,该电容检测计传感器106能够检测到第一检测片1061对应的第一陶瓷扬声器激励器1071、与第二检测片1062对应的第二陶瓷扬声器激励器1072振动受阻时的电容变化。The capacitance detector sensor 106 includes a first detection piece 1061 and a second detection piece 1062. The capacitance detector sensor 106 can detect the first ceramic speaker actuator 1071 corresponding to the first detection piece 1061 and the second detection piece 1062. The capacitance change of the second ceramic speaker exciter 1072 when the vibration is blocked.
连接电容检测计传感器106与第一检测片1061和第二检测片1062的信号线,能够向电容检测计传感器106传递第一检测片1061和/或第二检测片1062的电容变化信息;The signal line connecting the capacitance detector sensor 106 with the first detection piece 1061 and the second detection piece 1062 can transmit the capacitance change information of the first detection piece 1061 and/or the second detection piece 1062 to the capacitance detector sensor 106;
连接双通道陶瓷扬声器驱动模块103与第一陶瓷扬声器激励器1071和1072的信号线,能够向第一陶瓷扬声器激励器1071和/或1072传递双通道陶瓷扬声器驱动模块103发送的随声音信号变化的电压信号。The signal line connecting the dual-channel ceramic speaker driver module 103 and the first ceramic speaker exciters 1071 and 1072 can transmit the sound signal that the dual-channel ceramic speaker driver module 103 sends to the first ceramic speaker driver 1071 and/or 1072. Voltage signal.
本发明实施例提供的电子设备,包括中央处理器、第一陶瓷扬声器激励器、第二陶瓷扬声器激励器、壳体、电容检测计传感器和双通道陶瓷扬声器驱动模块,中央处理器与电容检测计传感器连接;第一陶瓷扬声器激励器与第二陶瓷扬声器激励器间隔设置在壳体内;该第一陶瓷扬声器激励器与该壳体之间设置有电容检测计传感器的第一检测片;该第二陶瓷扬声器激励器与该壳体之间设置有电容检测计传感器的第二检测片;该双通道陶瓷扬声器驱动模块,用于驱动第一陶瓷扬声器激励器和/或第二陶瓷扬声器激励器。The electronic device provided by the embodiment of the present invention includes a central processing unit, a first ceramic speaker exciter, a second ceramic speaker exciter, a housing, a capacitance detector sensor and a dual-channel ceramic speaker drive module, a central processing unit and a capacitance detector The sensor is connected; the first ceramic speaker exciter and the second ceramic speaker exciter are arranged in the housing at intervals; the first detection piece of the capacitance detector sensor is arranged between the first ceramic speaker exciter and the housing; the second A second detection piece of the capacitance detector sensor is arranged between the ceramic speaker exciter and the housing; the dual-channel ceramic speaker drive module is used to drive the first ceramic speaker exciter and/or the second ceramic speaker exciter.
这样,当用户的手抓握到设置有第一陶瓷扬声器激励器或第二陶瓷扬声器激励器的壳体处,引起该陶瓷扬声器激励器振动受阻时,设置在壳体内的 电容检测计传感器便可以检测到人手紧握引起的电容变化信号,并能够发送中断和电容变化信号至中央处理器,使得中央处理器可以根据当前双通道陶瓷扬声器驱动模块驱动的陶瓷扬声器激励器和被抓握位置处对应的陶瓷扬声器激励器,调节电子设备的音量。比如,使得双通道陶瓷扬声器驱动模块停止驱动抓握位置处对应的陶瓷扬声器激励器,并驱动其它陶瓷扬声器激励器,或增大电子设备的音量以保证用户听到的电子设备的音量不发生变化,从而避免影响用户的听觉体验。In this way, when the user's hand grasps the housing where the first ceramic speaker exciter or the second ceramic speaker exciter is arranged, and the vibration of the ceramic speaker exciter is blocked, the capacitance detector sensor arranged in the housing can be used. Detects the capacitance change signal caused by the human hand grip, and can send interrupt and capacitance change signals to the central processing unit, so that the central processing unit can correspond to the ceramic speaker exciter driven by the current dual-channel ceramic speaker drive module and the grasped position The ceramic speaker exciter adjusts the volume of electronic equipment. For example, make the dual-channel ceramic speaker driver module stop driving the corresponding ceramic speaker exciter at the grasping position and drive other ceramic speaker exciters, or increase the volume of the electronic device to ensure that the volume of the electronic device heard by the user does not change , So as to avoid affecting the user’s hearing experience.
为解决现有技术中用户紧握电子设备导致其音量减弱的问题,本发明还提供一种电子设备的音量调节方法,该方法的执行主体,可以但不限于手机、平板电脑、可穿戴设备等能够被配置为执行本发明实施例提供的该方法用户终端中的至少一种,或者,该方法的执行主体,还可以是能够执行该方法的客户端本身。In order to solve the problem in the prior art that the user's grip on the electronic device causes its volume to be weakened, the present invention also provides a method for adjusting the volume of the electronic device. The execution body of the method can be, but not limited to, mobile phones, tablets, wearable devices, etc. It can be configured to execute at least one of the user terminals of the method provided in the embodiments of the present invention, or the execution subject of the method may also be the client itself capable of executing the method.
为便于描述,下文以该方法的执行主体为能够执行该方法的电子设备为例,对该方法的实施方式进行介绍。可以理解,该方法的执行主体为电子设备只是一种示例性的说明,并不应理解为对该方法的限定。For ease of description, the implementation of the method is introduced below by taking an electronic device capable of executing the method as an example. It can be understood that the implementation of the method as an electronic device is only an exemplary description, and should not be understood as a limitation on the method.
下面结合附图,详细说明本发明各实施例的提供的技术方案。The technical solutions provided by the embodiments of the present invention will be described in detail below with reference to the accompanying drawings.
如图3所示,为发明实施例提供的一种电子设备的音量调节方法的具体实施流程示意图,该方法应用于上文所述的电子设备。As shown in FIG. 3, it is a schematic diagram of a specific implementation process of a method for adjusting the volume of an electronic device according to an embodiment of the invention, and the method is applied to the electronic device described above.
下面结合图3所示的电子设备的音量调节方法的具体实施流程示意图,对该方法的实施过程进行详细介绍,包括:The following describes the implementation process of the method in detail with reference to the specific implementation flow diagram of the method for adjusting the volume of the electronic device shown in FIG. 3, including:
步骤301,在电容检测计传感器检测到壳体的目标位置被抓握的情况下,基于电容检测计传感器的电容信息,确定壳体上与目标位置对应的目标陶瓷扬声器激励器; Step 301, in the case where the capacitance detector sensor detects that the target position of the housing is grasped, based on the capacitance information of the capacitance detector sensor, determine the target ceramic speaker exciter on the housing corresponding to the target position;
可选地,在壳体的目标位置被抓握时,为了避免该目标位置处设置的陶瓷扬声器激励器的震动受阻,进而影响电子设备的输出音量,本发明实施例可以基于目标位置处设置的第一检测片或第二检测片的电容变化,来确定电子设备中与目标位置对应的目标陶瓷扬声器激励器。也就是说,通过电容检测计传感器的电容变化信号,确定哪个陶瓷扬声器激励器因目标位置被抓握 而受到影响。Optionally, when the target position of the housing is grasped, in order to prevent the vibration of the ceramic speaker exciter set at the target position from being blocked, thereby affecting the output volume of the electronic device, the embodiment of the present invention may be based on the setting at the target position The capacitance change of the first detection piece or the second detection piece is used to determine the target ceramic speaker exciter corresponding to the target position in the electronic device. In other words, the capacitance change signal of the capacitance detector sensor is used to determine which ceramic speaker exciter is affected by the target position being grasped.
可选地,在通过电容检测计传感器检测到电容检测计传感器的检测片的电容发生变化时,为了使中央处理器能够及时调节电子设备的音量,以尽量缩短因抓握电子设备的壳体而影响用户听觉体验的时间,本发明实施例中的电容检测计传感器向中央处理发送电容变化信号的同时,还可发送中断,用于让中央处理器暂停处理当前运行的进程,从而尽快基于该电容变化信号,确定目标位置处设置的目标陶瓷扬声器激励器。Optionally, when a change in the capacitance of the detection piece of the capacitance detector sensor is detected by the capacitance detector sensor, in order to enable the central processing unit to adjust the volume of the electronic device in time, so as to minimize the impact caused by grasping the housing of the electronic device. The time that affects the user’s auditory experience, the capacitance detector sensor in the embodiment of the present invention sends a capacitance change signal to the central processing unit, and can also send an interrupt to make the central processing unit suspend processing the current running process, so as to be based on the capacitance as soon as possible. Change the signal to determine the target ceramic speaker exciter set at the target position.
具体地,在本发明实施例中,基于电容检测计传感器的电容信息,确定电子设备中与目标位置对应的目标陶瓷扬声器激励器,包括:Specifically, in the embodiment of the present invention, the determination of the target ceramic speaker exciter corresponding to the target position in the electronic device based on the capacitance information of the capacitance detector sensor includes:
基于电容检测计传感器的检测片的电容变化,通过电容检测计传感器向中央处理器发送中断和电容变化信号;Based on the capacitance change of the detection piece of the capacitance detector sensor, send interrupt and capacitance change signals to the central processing unit through the capacitance detector sensor;
通过中央处理器基于中断和电容变化信号,确定电子设备中与目标位置对应的目标陶瓷扬声器激励器。The central processing unit determines the target ceramic speaker exciter corresponding to the target position in the electronic device based on the interrupt and the capacitance change signal.
其中,中断可使得中央处理器能够先暂停所有并行程序中优先级较低的现行程序,并开始处理电容检测计传感器的电容变化信号对应的进程。Among them, the interrupt can enable the central processing unit to suspend the current programs with lower priority among all parallel programs first, and start processing the process corresponding to the capacitance change signal of the capacitance detector sensor.
可选地,在中央处理器接收到电容检测计传感器发送的中断和电容变化信号时,为了使中央处理器能够快速有效地调节电子设备的音量并切换驱动的陶瓷扬声器激励器,本发明实施例中的中央处理器可预先获取第一检测片的第一电容信息、第二检测片的第二电容信息、以及第一检测片与第一陶瓷扬声器激励器的对应关系和第二检测片与第二陶瓷扬声器激励器的对应关系。Optionally, when the central processing unit receives the interrupt and capacitance change signals sent by the capacitance detector sensor, in order to enable the central processing unit to quickly and effectively adjust the volume of the electronic device and switch the ceramic speaker exciters to be driven, the embodiment of the present invention The central processing unit can obtain the first capacitance information of the first detection piece, the second capacitance information of the second detection piece, the corresponding relationship between the first detection piece and the first ceramic speaker exciter, and the second detection piece and the first 2. Correspondence of ceramic speaker exciters.
具体地,通过中央处理器基于中断和电容变化信号,确定电子设备中与目标位置对应的目标陶瓷扬声器激励器,包括:Specifically, the central processing unit determines the target ceramic speaker exciter corresponding to the target position in the electronic device based on the interrupt and the capacitance change signal, including:
通过中央处理器基于中断,暂停处理当前运行的进程;Through the central processing unit based on interrupt, the current running process is suspended;
通过中央处理器获取电容变化信号对应的电容信息;Obtain the capacitance information corresponding to the capacitance change signal through the central processing unit;
通过中央处理器基于电容变化信号对应的电容信息、第一检测片的第一电容信息、第二检测片的第二电容信息、以及电容检测计传感器的检测片与陶瓷扬声器激励器的对应关系,确定电子设备中与目标位置对应的目标陶瓷扬声器激励器。Through the central processing unit based on the capacitance information corresponding to the capacitance change signal, the first capacitance information of the first detection piece, the second capacitance information of the second detection piece, and the correspondence between the detection piece of the capacitance detector sensor and the ceramic speaker exciter, Determine the target ceramic speaker exciter corresponding to the target location in the electronic device.
具体地,中央处理器在接收到中断和电容检测计传感器的电容变化信号 之后,中央处理器可以暂停当前进程中优先级较低的任务,并开始处理本发明实施例中的调节电子设备音量的任务,再获取电容变化信号对应的电容信息,该电容变化信号对应的电容信息可以包括电容变化量等特征。Specifically, after the central processing unit receives the interrupt and the capacitance change signal of the capacitance detector sensor, the central processing unit can suspend the lower priority tasks in the current process, and start processing the volume adjustment of the electronic device in the embodiment of the present invention. The task is to obtain the capacitance information corresponding to the capacitance change signal. The capacitance information corresponding to the capacitance change signal may include features such as the amount of capacitance change.
然后,中央处理器可以基于第一检测片的第一电容信息、第二检测片的第二电容信息、电容变化信号对应的电容信息、以及电容检测计传感器的检测片与陶瓷扬声器激励器的对应关系,确定哪个检测片的电容变化对应的电容信息与该电容信息相匹配。假设该电容信息与第一检测片的第一电容信息相匹配,则可以基于电容检测计传感器的检测片与陶瓷扬声器激励器的对应关系,确定被人手抓握的位置对应的陶瓷扬声器激励器为第一陶瓷扬声器激励器。Then, the central processing unit can be based on the first capacitance information of the first detection piece, the second capacitance information of the second detection piece, the capacitance information corresponding to the capacitance change signal, and the correspondence between the detection piece of the capacitance detector sensor and the ceramic speaker exciter. It determines the capacitance information corresponding to the capacitance change of which detection chip matches the capacitance information. Assuming that the capacitance information matches the first capacitance information of the first detection piece, based on the corresponding relationship between the detection piece of the capacitance detector sensor and the ceramic speaker exciter, it can be determined that the ceramic speaker exciter corresponding to the position grasped by the human hand is The first ceramic speaker exciter.
步骤302,基于目标陶瓷扬声器激励器和双通道陶瓷扬声器驱动模块当前驱动的陶瓷扬声器激励器,调节电子设备的音量;Step 302: Adjust the volume of the electronic device based on the target ceramic speaker exciter and the ceramic speaker exciter currently driven by the dual-channel ceramic speaker drive module;
可选地,若电子设备当前为双通道输出,即双通道陶瓷扬声器驱动模块同时驱动第一陶瓷扬声器激励器和第二陶瓷扬声器激励器,且检测到其中一个陶瓷扬声器激励器(假设为第一陶瓷扬声器激励器)在壳体上的对应位置被抓握时,为了避免因该陶瓷扬声器激励器的振动受阻而导致用户听到的声音减弱,本发明实施例可以将电子设备的音量加倍,并使得双通道陶瓷扬声器驱动模块停止驱动第一陶瓷扬声器激励器。Optionally, if the electronic device is currently dual-channel output, that is, the dual-channel ceramic speaker driver module drives the first ceramic speaker exciter and the second ceramic speaker exciter at the same time, and detects one of the ceramic speaker exciters (assumed to be the first When the ceramic speaker exciter is grasped at the corresponding position on the housing, in order to prevent the vibration of the ceramic speaker exciter from being blocked and causing the user to hear the sound weakened, the embodiment of the present invention can double the volume of the electronic device, and Make the dual-channel ceramic speaker drive module stop driving the first ceramic speaker exciter.
具体地,当目标陶瓷扬声器激励器为第一陶瓷扬声器激励器、且双通道陶瓷扬声器驱动模块当前驱动的陶瓷扬声器激励器包括:第一陶瓷扬声器激励器和第二陶瓷扬声器激励器时,Specifically, when the target ceramic loudspeaker exciter is the first ceramic loudspeaker exciter, and the ceramic loudspeaker exciter currently driven by the dual-channel ceramic loudspeaker drive module includes: a first ceramic loudspeaker exciter and a second ceramic loudspeaker exciter,
基于目标陶瓷扬声器激励器和双通道陶瓷扬声器驱动模块当前驱动的陶瓷扬声器激励器,调节电子设备的音量,包括:Adjust the volume of electronic equipment based on the target ceramic speaker exciter and the ceramic speaker exciter currently driven by the dual-channel ceramic speaker driver module, including:
获取电子设备的壳体的目标位置被抓握时电子设备的初始音量;Acquiring the initial volume of the electronic device when the target position of the housing of the electronic device is grasped;
将电子设备的音量调节为初始音量的两倍,并使得双通道陶瓷扬声器驱动模块停止驱动第一陶瓷扬声器激励器。The volume of the electronic device is adjusted to twice the initial volume, and the dual-channel ceramic speaker driving module stops driving the first ceramic speaker exciter.
此时,第一陶瓷扬声器激励器已停止工作,即停止被双通道陶瓷扬声器驱动模块驱动,双通道陶瓷扬声器驱动模块驱动的只有第二陶瓷扬声器激励器,将电子设备的音量调节为电子设备的壳体被抓握前的两倍,则可以使得 用户听到的电子设备的音量没有发生变化,从而避免了影响用户的听觉体验。At this time, the first ceramic speaker exciter has stopped working, that is, it has stopped being driven by the dual-channel ceramic speaker driver module. The dual-channel ceramic speaker driver module drives only the second ceramic speaker driver to adjust the volume of the electronic device to that of the electronic device. The case is twice as large as before being grasped, so that the volume of the electronic device heard by the user does not change, thereby avoiding affecting the user's hearing experience.
可选地,若电子设备当前为单声道输出,即双通道陶瓷扬声器驱动模块仅驱动第一陶瓷扬声器激励器或第二陶瓷扬声器激励器中的一个,且检测到当前被驱动的陶瓷扬声器激励器(假设为第一陶瓷扬声器激励器)在壳体上的对应位置被抓握时,为了避免因该陶瓷扬声器激励器的振动受阻而导致用户听到的声音极大地减弱,本发明实施例可以将双通道陶瓷扬声器驱动模块驱动的陶瓷扬声器激励器调整为第二陶瓷扬声器激励器,并使得双通道陶瓷扬声器驱动模块停止驱动第一陶瓷扬声器激励器。Optionally, if the electronic device is currently mono output, that is, the two-channel ceramic speaker driver module only drives one of the first ceramic speaker exciter or the second ceramic speaker exciter, and it is detected that the currently driven ceramic speaker is excited When the speaker (assumed as the first ceramic speaker exciter) is grasped at the corresponding position on the housing, in order to prevent the vibration of the ceramic speaker exciter from being blocked and the sound heard by the user is greatly reduced, the embodiment of the present invention may The ceramic speaker exciter driven by the dual-channel ceramic speaker driver module is adjusted to the second ceramic speaker driver, and the dual-channel ceramic speaker driver module stops driving the first ceramic speaker driver.
具体地,当目标陶瓷扬声器激励器为第一陶瓷扬声器激励器、且双通道陶瓷扬声器驱动模块当前驱动的陶瓷扬声器激励器包括第一陶瓷扬声器激励器时,Specifically, when the target ceramic loudspeaker exciter is the first ceramic loudspeaker exciter, and the ceramic loudspeaker exciter currently driven by the two-channel ceramic loudspeaker drive module includes the first ceramic loudspeaker exciter,
基于目标陶瓷扬声器激励器和双通道陶瓷扬声器驱动模块当前驱动的陶瓷扬声器激励器,调节电子设备的音量,包括:Adjust the volume of electronic equipment based on the target ceramic speaker exciter and the ceramic speaker exciter currently driven by the dual-channel ceramic speaker driver module, including:
将双通道陶瓷扬声器驱动模块驱动的陶瓷扬声器激励器调整为第二陶瓷扬声器激励器,并使得双通道陶瓷扬声器驱动模块停止驱动第一陶瓷扬声器激励器。The ceramic speaker exciter driven by the dual-channel ceramic speaker driver module is adjusted to the second ceramic speaker driver, and the dual-channel ceramic speaker driver module stops driving the first ceramic speaker driver.
可选地,当双通道电子设备驱动模块当前驱动的只有第二陶瓷扬声器激励器,且检测到该第二陶瓷扬声器激励器在壳体的对应位置被抓握时,为了避免因该陶瓷扬声器激励器的振动受阻而导致用户听到的声音极大地减弱,可使得双通道陶瓷扬声器驱动模块驱动第一陶瓷扬声器激励器,并同时停止驱动第二陶瓷扬声器激励器。Optionally, when the dual-channel electronic device drive module currently drives only the second ceramic speaker exciter and detects that the second ceramic speaker exciter is grasped at the corresponding position of the housing, in order to avoid excitation of the ceramic speaker The vibration of the speaker is blocked and the sound heard by the user is greatly weakened, so that the dual-channel ceramic speaker driving module can drive the first ceramic speaker exciter and stop driving the second ceramic speaker exciter at the same time.
若检测到双通道陶瓷扬声器驱动模块当前仅驱动第二陶瓷扬声器激励器,且检测到第一陶瓷扬声器激励器对应于壳体的位置被抓握时,电子设备则可不做调整,即维持当前驱动状态,以确保用户听到的音量没有发生变化。If it is detected that the dual-channel ceramic speaker driver module is currently only driving the second ceramic speaker exciter, and it is detected that the position of the first ceramic speaker exciter corresponding to the housing is grasped, the electronic device may not be adjusted, that is, the current drive is maintained Status to ensure that the volume heard by the user has not changed.
可选地,当双通道陶瓷扬声器驱动模块当前驱动的包括第一陶瓷扬声器激励器和第二陶瓷扬声器激励器,且检测到该第一陶瓷扬声器激励器和该第二陶瓷扬声器激励器在壳体的对应位置都被抓握时,为了避免因该陶瓷扬声器激励器的振动受阻而导致用户听到的声音极大地减弱,可增大电子设备的音量。Optionally, when the dual-channel ceramic speaker drive module currently drives includes a first ceramic speaker exciter and a second ceramic speaker exciter, and it is detected that the first ceramic speaker exciter and the second ceramic speaker exciter are in the housing When the corresponding positions are all grasped, in order to prevent the vibration of the ceramic speaker exciter from being blocked and the sound heard by the user is greatly reduced, the volume of the electronic device can be increased.
具体地,当目标陶瓷扬声器激励器包括第一陶瓷扬声器激励器和第二陶瓷扬声器激励器、且双通道陶瓷扬声器驱动模块当前驱动的陶瓷扬声器激励器包括第一陶瓷扬声器激励器和第二陶瓷扬声器激励器时,Specifically, when the target ceramic loudspeaker exciter includes a first ceramic loudspeaker exciter and a second ceramic loudspeaker exciter, and the ceramic loudspeaker exciter currently driven by the two-channel ceramic loudspeaker drive module includes the first ceramic loudspeaker exciter and the second ceramic loudspeaker When the exciter,
基于目标陶瓷扬声器激励器和双通道陶瓷扬声器驱动模块当前驱动的陶瓷扬声器激励器,调节电子设备的音量,包括:Adjust the volume of electronic equipment based on the target ceramic speaker exciter and the ceramic speaker exciter currently driven by the dual-channel ceramic speaker driver module, including:
获取电子设备的壳体的目标位置被抓握时电子设备的初始音量;Acquiring the initial volume of the electronic device when the target position of the housing of the electronic device is grasped;
将电子设备的音量调节为预设音量,预设音量大于初始音量。The volume of the electronic device is adjusted to a preset volume, and the preset volume is greater than the initial volume.
例如,若电子设备当前为双输出通道,且检测到电子设备的第一陶瓷扬声器激励器与第二陶瓷扬声器激励器在壳体上的对应位置都被抓握时,首先,可获取电子设备被抓握时的初始音量,然后将电子设备的音量调节至初始音量的预设倍数,该预设倍数可以根据实际应用中的情况而定,如1.25倍或1.5倍等。此时,电子设备的整体音量增大,以避免用户听到的电子设备输出的音量减弱。For example, if the electronic device currently has dual output channels, and it is detected that the corresponding positions of the first ceramic speaker exciter and the second ceramic speaker exciter of the electronic device on the housing are both grasped, first, the electronic device can be obtained. Grasp the initial volume when gripping, and then adjust the volume of the electronic device to a preset multiple of the initial volume. The preset multiple may be determined according to the actual application, such as 1.25 times or 1.5 times. At this time, the overall volume of the electronic device is increased to prevent the user from hearing the volume of the output of the electronic device from weakening.
具体地,如图4所示,为本发明实施例提供的一种电子设备的音量调节方法应用于在一种实际场景中的流程示意图,包括:Specifically, as shown in FIG. 4, it is a schematic flowchart of a method for adjusting the volume of an electronic device according to an embodiment of the present invention applied in an actual scenario, including:
S41,用户的手抓握电子设备的壳体;S41, the user's hand grasps the housing of the electronic device;
S42,电容检测计传感器检测到电容传感器的检测片的电容发生变化;S42: The capacitance detector sensor detects that the capacitance of the detection piece of the capacitance sensor has changed;
S43,电容检测计传感器发送中断和电容变化信号至中央处理器;S43: The capacitance detector sensor sends interrupt and capacitance change signals to the central processing unit;
S44,中央处理器基于电容检测计传感器发送的中断暂停处理当前运行的进程,并基于电容检测计传感器发送的电容变化信号,获取壳体被抓握位置对应的陶瓷扬声器激励器与电子设备的初始音量;S44. The central processing unit processes the current running process based on the interruption sent by the capacitance detector sensor, and obtains the initial state of the ceramic speaker actuator and electronic device corresponding to the position where the housing is grasped based on the capacitance change signal sent by the capacitance detector sensor. volume;
S45,中央处理器获取双通道陶瓷扬声器驱动模块当前驱动的陶瓷扬声器激励器,以确定当前是否为双通道输出,即第一陶瓷扬声器激励器与第二陶瓷扬声器激励器都被双通道陶瓷扬声器驱动模块驱动;S45: The central processing unit obtains the ceramic speaker exciter currently driven by the dual-channel ceramic speaker drive module to determine whether the current is a dual-channel output, that is, the first ceramic speaker exciter and the second ceramic speaker exciter are both driven by the dual-channel ceramic speaker Module drive;
S46,若当前为双通道输出,且被抓握位置处只对应于一个陶瓷扬声器激励器,则将电子设备的音量调至被抓握时的初始音量的两倍,同时使得双通道陶瓷扬声器驱动模块停止驱动被抓握位置处对应的陶瓷扬声器激励器;S46, if the current is a dual-channel output, and the grasped position corresponds to only one ceramic speaker exciter, adjust the volume of the electronic device to twice the initial volume when grasped, and at the same time enable the dual-channel ceramic speaker to drive The module stops driving the corresponding ceramic speaker exciter at the grasped position;
S47,若双通道陶瓷扬声器驱动模块当前只驱动一个陶瓷扬声器激励器,即为单通道输出,则判断被抓握位置处对应的陶瓷扬声器激励器是否与双通 道陶瓷扬声器驱动模块当前驱动的陶瓷扬声器激励器一致;S47: If the dual-channel ceramic speaker driver module currently drives only one ceramic speaker driver, that is, a single-channel output, determine whether the corresponding ceramic speaker driver at the grasped position is the same as the ceramic speaker currently driven by the dual-channel ceramic speaker driver module The exciter is consistent;
S48,若被抓握位置处对应的陶瓷扬声器激励器与双通道陶瓷扬声器驱动模块当前驱动的陶瓷扬声器激励器不一致,则保持电子设备的正常音频输出,不做调整;S48: If the corresponding ceramic speaker exciter at the grasped position is inconsistent with the ceramic speaker exciter currently driven by the dual-channel ceramic speaker drive module, the normal audio output of the electronic device is maintained without adjustment;
S49,若被抓握位置处对应的陶瓷扬声器激励器与双通道陶瓷扬声器驱动模块当前驱动的陶瓷扬声器激励器一致,中央处理器则发送控制指令至双通道陶瓷扬声器驱动模块,以使得双通道陶瓷扬声器驱动模块将当前驱动的陶瓷扬声器激励器调整为另一个陶瓷扬声器激励器。S49: If the corresponding ceramic speaker exciter at the grasped position is the same as the ceramic speaker exciter currently driven by the dual-channel ceramic speaker drive module, the central processing unit sends a control command to the dual-channel ceramic speaker drive module to make the dual-channel ceramic speaker drive module The speaker drive module adjusts the currently driven ceramic speaker exciter into another ceramic speaker exciter.
本发明实施例提供的电子设备的音量调节方法中的电子设备包括中央处理器、第一陶瓷扬声器激励器、第二陶瓷扬声器激励器、壳体、电容检测计传感器和双通道陶瓷扬声器驱动模块,中央处理器与电容检测计传感器连接;第一陶瓷扬声器激励器与第二陶瓷扬声器激励器间隔设置在壳体内;该第一陶瓷扬声器激励器与该壳体之间设置有电容检测计传感器的第一检测片;该第二陶瓷扬声器激励器与该壳体之间设置有电容检测计传感器的第二检测片;该双通道陶瓷扬声器驱动模块,用于驱动第一陶瓷扬声器激励器和/或第二陶瓷扬声器激励器。The electronic device in the method for adjusting the volume of the electronic device provided by the embodiment of the present invention includes a central processing unit, a first ceramic speaker exciter, a second ceramic speaker exciter, a housing, a capacitance detector sensor, and a dual-channel ceramic speaker driver module, The central processing unit is connected with the capacitance detector sensor; the first ceramic speaker exciter and the second ceramic speaker exciter are arranged in the housing at intervals; the first ceramic speaker exciter and the housing are provided with a capacitance detector sensor. A detection piece; a second detection piece of a capacitance detector sensor is arranged between the second ceramic speaker exciter and the housing; the dual-channel ceramic speaker drive module is used to drive the first ceramic speaker exciter and/or the second Two ceramic speaker exciters.
这样,当用户的手抓握到设置有第一陶瓷扬声器激励器或第二陶瓷扬声器激励器的壳体处,引起该陶瓷扬声器激励器振动受阻时,设置在壳体内的电容检测计传感器便可以检测到人手紧握引起的电容变化信号,并能够发送中断和电容变化信号至中央处理器,使得中央处理器可以根据当前双通道陶瓷扬声器驱动模块驱动的陶瓷扬声器激励器和被抓握位置处对应的陶瓷扬声器激励器,调节电子设备的音量。比如,使得双通道陶瓷扬声器驱动模块停止驱动抓握位置处对应的陶瓷扬声器激励器,并驱动其它陶瓷扬声器激励器,或增大电子设备的音量以保证用户听到的电子设备的音量不发生变化,从而避免影响用户的听觉体验。In this way, when the user's hand grasps the housing where the first ceramic speaker exciter or the second ceramic speaker exciter is arranged, and the vibration of the ceramic speaker exciter is blocked, the capacitance detector sensor arranged in the housing can be used. Detects the capacitance change signal caused by the human hand grip, and can send interrupt and capacitance change signals to the central processing unit, so that the central processing unit can correspond to the ceramic speaker exciter driven by the current dual-channel ceramic speaker drive module and the grasped position The ceramic speaker exciter adjusts the volume of electronic equipment. For example, make the dual-channel ceramic speaker driver module stop driving the corresponding ceramic speaker exciter at the gripping position and drive other ceramic speaker exciters, or increase the volume of the electronic device to ensure that the volume of the electronic device heard by the user does not change , So as to avoid affecting the user’s hearing experience.
本发明实施例还提供一种电子设备,如图5所示,包括:An embodiment of the present invention also provides an electronic device, as shown in FIG. 5, including:
确定单元501,用于在所述电容检测计传感器检测到所述壳体的目标位置被抓握的情况下,基于所述电容检测计传感器的电容信息,确定所述壳体 上与所述目标位置对应的目标陶瓷扬声器激励器;所述目标位置设置有所述第一检测片或所述第二检测片;The determining unit 501 is configured to determine the relationship between the capacitance detector sensor and the target position of the shell based on the capacitance information of the capacitance detector sensor when the capacitance detector sensor detects that the target position of the shell is grasped. The target ceramic speaker exciter corresponding to the position; the target position is provided with the first detection piece or the second detection piece;
调节单元502,用于基于所述目标陶瓷扬声器激励器和所述双通道陶瓷扬声器驱动模块当前驱动的陶瓷扬声器激励器,调节所述电子设备的音量。The adjusting unit 502 is configured to adjust the volume of the electronic device based on the target ceramic speaker exciter and the ceramic speaker exciter currently driven by the dual-channel ceramic speaker drive module.
可选地,在一种实施方式中,所述确定单元501,用于:Optionally, in an implementation manner, the determining unit 501 is configured to:
基于所述电容检测计传感器的检测片的电容变化,通过所述电容检测计传感器向所述中央处理器发送中断和所述电容变化信号;Based on the capacitance change of the detection piece of the capacitance detector sensor, sending an interrupt and the capacitance change signal to the central processing unit through the capacitance detector sensor;
通过所述中央处理器基于所述中断和所述电容变化信号,确定所述电子设备中与所述目标位置对应的目标陶瓷扬声器激励器。The central processing unit determines the target ceramic speaker exciter corresponding to the target position in the electronic device based on the interrupt and the capacitance change signal.
可选地,在一种实施方式中,所述确定单元501,用于:Optionally, in an implementation manner, the determining unit 501 is configured to:
通过所述中央处理器基于所述中断,暂停处理当前运行的进程;Based on the interrupt, the central processing unit suspends processing the currently running process;
通过所述中央处理器获取所述电容变化信号对应的电容信息;Obtaining the capacitance information corresponding to the capacitance change signal through the central processing unit;
通过所述中央处理器基于所述电容变化信号对应的电容信息、所述第一检测片的第一电容信息、所述第二检测片的第二电容信息、以及所述电容检测计传感器的检测片与陶瓷扬声器激励器的对应关系,确定所述电子设备中与所述目标位置对应的目标陶瓷扬声器激励器。Through the central processing unit based on the capacitance information corresponding to the capacitance change signal, the first capacitance information of the first detection piece, the second capacitance information of the second detection piece, and the detection of the capacitance detector sensor The corresponding relationship between the sheet and the ceramic speaker exciter determines the target ceramic speaker exciter corresponding to the target position in the electronic device.
可选地,在一种实施方式中,当所述目标陶瓷扬声器激励器为所述第一陶瓷扬声器激励器、且所述双通道陶瓷扬声器驱动模块当前驱动的陶瓷扬声器激励器包括:所述第一陶瓷扬声器激励器和所述第二陶瓷扬声器激励器时,所述调节单元502,用于:Optionally, in an embodiment, when the target ceramic speaker exciter is the first ceramic speaker exciter, and the ceramic speaker exciter currently driven by the dual-channel ceramic speaker drive module includes: the first ceramic speaker exciter In the case of a ceramic speaker exciter and the second ceramic speaker exciter, the adjustment unit 502 is used for:
基于所述目标陶瓷扬声器激励器和所述双通道陶瓷扬声器驱动模块当前驱动的陶瓷扬声器激励器,调节所述电子设备的音量,包括:Adjusting the volume of the electronic device based on the target ceramic speaker exciter and the ceramic speaker exciter currently driven by the dual-channel ceramic speaker drive module includes:
获取所述电子设备的壳体的目标位置被抓握时所述电子设备的初始音量;Acquiring the initial volume of the electronic device when the target position of the housing of the electronic device is grasped;
将所述电子设备的音量调节为所述初始音量的两倍,并使得所述双通道陶瓷扬声器驱动模块停止驱动所述第一陶瓷扬声器激励器。The volume of the electronic device is adjusted to twice the initial volume, and the two-channel ceramic speaker driving module stops driving the first ceramic speaker exciter.
可选地,在一种实施方式中,当所述目标陶瓷扬声器激励器为所述第一陶瓷扬声器激励器、且所述双通道陶瓷扬声器驱动模块当前驱动的陶瓷扬声器激励器包括所述第一陶瓷扬声器激励器时,所述调节单元502,用于:Optionally, in an embodiment, when the target ceramic speaker exciter is the first ceramic speaker exciter, and the ceramic speaker exciter currently driven by the dual-channel ceramic speaker drive module includes the first ceramic speaker exciter In the case of a ceramic speaker exciter, the adjustment unit 502 is used for:
基于所述目标陶瓷扬声器激励器和所述双通道陶瓷扬声器驱动模块当前 驱动的陶瓷扬声器激励器,调节所述电子设备的音量,包括:Adjusting the volume of the electronic device based on the target ceramic speaker exciter and the ceramic speaker exciter currently driven by the dual-channel ceramic speaker drive module includes:
将所述双通道陶瓷扬声器驱动模块驱动的陶瓷扬声器激励器调节为所述第二陶瓷扬声器激励器,并使得所述双通道陶瓷扬声器驱动模块停止驱动所述第一陶瓷扬声器激励器。The ceramic speaker exciter driven by the dual-channel ceramic speaker drive module is adjusted to the second ceramic speaker exciter, and the dual-channel ceramic speaker drive module stops driving the first ceramic speaker exciter.
可选地,在一种实施方式中,当所述目标陶瓷扬声器激励器包括所述第一陶瓷扬声器激励器和所述第二陶瓷扬声器激励器、且所述双通道陶瓷扬声器驱动模块当前驱动的陶瓷扬声器激励器包括所述第一陶瓷扬声器激励器和所述第二陶瓷扬声器激励器时,所述调节单元502,用于:Optionally, in an embodiment, when the target ceramic speaker exciter includes the first ceramic speaker exciter and the second ceramic speaker exciter, and the two-channel ceramic speaker drive module currently drives When the ceramic loudspeaker exciter includes the first ceramic loudspeaker exciter and the second ceramic loudspeaker exciter, the adjusting unit 502 is used for:
基于所述目标陶瓷扬声器激励器和所述双通道陶瓷扬声器驱动模块当前驱动的陶瓷扬声器激励器,调节所述电子设备的音量,包括:Adjusting the volume of the electronic device based on the target ceramic speaker exciter and the ceramic speaker exciter currently driven by the dual-channel ceramic speaker drive module includes:
获取所述电子设备的壳体的目标位置被抓握时所述电子设备的初始音量;Acquiring the initial volume of the electronic device when the target position of the housing of the electronic device is grasped;
将所述电子设备的音量调节为预设音量,所述预设音量大于所述初始音量。The volume of the electronic device is adjusted to a preset volume, and the preset volume is greater than the initial volume.
电子设备500能够实现图1~图4的方法实施例的方法,具体可参考图1~图4所示实施例的电子设备的音量调节方法,不再赘述。The electronic device 500 can implement the method of the method embodiment shown in FIGS. 1 to 4. For details, please refer to the method for adjusting the volume of the electronic device in the embodiment shown in FIGS. 1 to 4, which will not be repeated here.
图6为实现本发明各个实施例的一种电子设备的硬件结构示意图,6 is a schematic diagram of the hardware structure of an electronic device that implements various embodiments of the present invention.
该电子设备600包括但不限于:射频单元601、网络模块602、音频输出单元603、输入单元604、传感器305、显示单元606、用户输入单元607、接口单元608、存储器609、处理器610、以及电源611等部件。本领域技术人员可以理解,图6中示出的电子设备结构并不构成对电子设备的限定,电子设备可以包括比图示更多或更少的部件,或者组合某些部件,或者不同的部件布置。在本发明实施例中,电子设备包括但不限于手机、平板电脑、笔记本电脑、掌上电脑、车载终端、可穿戴设备、以及计步器等。The electronic device 600 includes, but is not limited to: a radio frequency unit 601, a network module 602, an audio output unit 603, an input unit 604, a sensor 305, a display unit 606, a user input unit 607, an interface unit 608, a memory 609, a processor 610, and Power 611 and other components. Those skilled in the art can understand that the structure of the electronic device shown in FIG. 6 does not constitute a limitation on the electronic device. The electronic device may include more or fewer components than those shown in the figure, or a combination of certain components, or different components. Layout. In the embodiments of the present invention, electronic devices include, but are not limited to, mobile phones, tablet computers, notebook computers, palmtop computers, vehicle-mounted terminals, wearable devices, and pedometers.
其中,处理器610,用于在电容检测计传感器检测到壳体的目标位置被抓握的情况下,基于电容检测计传感器的电容信息,确定壳体上与目标位置对应的目标陶瓷扬声器激励器;目标位置设置有第一检测片或第二检测片;基于目标陶瓷扬声器激励器和双通道陶瓷扬声器驱动模块当前驱动的陶瓷扬声器激励器,调节电子设备的音量。The processor 610 is configured to determine the target ceramic speaker actuator on the housing corresponding to the target position based on the capacitance information of the capacitance detector sensor when the capacitance detector sensor detects that the target position of the housing is grasped The target position is provided with a first detection piece or a second detection piece; based on the target ceramic speaker exciter and the ceramic speaker exciter currently driven by the dual-channel ceramic speaker drive module, the volume of the electronic device is adjusted.
本发明实施例提供的电子设备的音量调节方法中的电子设备包括中央处理器、第一陶瓷扬声器激励器、第二陶瓷扬声器激励器、壳体、电容检测计传感器和双通道陶瓷扬声器驱动模块,中央处理器与电容检测计传感器连接;第一陶瓷扬声器激励器与第二陶瓷扬声器激励器间隔设置在壳体内;该第一陶瓷扬声器激励器与该壳体之间设置有电容检测计传感器的第一检测片;该第二陶瓷扬声器激励器与该壳体之间设置有电容检测计传感器的第二检测片;该双通道陶瓷扬声器驱动模块,用于驱动第一陶瓷扬声器激励器和/或第二陶瓷扬声器激励器。The electronic device in the method for adjusting the volume of the electronic device provided by the embodiment of the present invention includes a central processing unit, a first ceramic speaker exciter, a second ceramic speaker exciter, a housing, a capacitance detector sensor, and a dual-channel ceramic speaker driver module, The central processing unit is connected with the capacitance detector sensor; the first ceramic speaker exciter and the second ceramic speaker exciter are arranged in the housing at intervals; the first ceramic speaker exciter and the housing are provided with a capacitance detector sensor. A detection piece; a second detection piece of a capacitance detector sensor is arranged between the second ceramic speaker exciter and the housing; the dual-channel ceramic speaker drive module is used to drive the first ceramic speaker exciter and/or the second Two ceramic speaker exciters.
这样,当用户的手抓握到设置有第一陶瓷扬声器激励器或第二陶瓷扬声器激励器的壳体处,引起该陶瓷扬声器激励器振动受阻时,设置在壳体内的电容检测计传感器便可以检测到人手紧握引起的电容变化信号,并能够发送中断和电容变化信号至中央处理器,使得中央处理器可以根据当前双通道陶瓷扬声器驱动模块驱动的陶瓷扬声器激励器和被抓握位置处对应的陶瓷扬声器激励器,调节电子设备的音量。比如,使得双通道陶瓷扬声器驱动模块停止驱动抓握位置处对应的陶瓷扬声器激励器,并驱动其它陶瓷扬声器激励器,或增大电子设备的音量以保证用户听到的电子设备的音量不发生变化,从而避免影响用户的听觉体验。In this way, when the user's hand grasps the housing where the first ceramic speaker exciter or the second ceramic speaker exciter is arranged, and the vibration of the ceramic speaker exciter is blocked, the capacitance detector sensor arranged in the housing can be used. Detects the capacitance change signal caused by the human hand grip, and can send interrupt and capacitance change signals to the central processing unit, so that the central processing unit can correspond to the ceramic speaker exciter driven by the current dual-channel ceramic speaker drive module and the grasped position The ceramic speaker exciter adjusts the volume of electronic equipment. For example, make the dual-channel ceramic speaker driver module stop driving the corresponding ceramic speaker exciter at the gripping position and drive other ceramic speaker exciters, or increase the volume of the electronic device to ensure that the volume of the electronic device heard by the user does not change , So as to avoid affecting the user’s hearing experience.
应理解的是,本发明实施例中,射频单元601可用于收发信息或通话过程中,信号的接收和发送,具体的,将来自基站的下行数据接收后,给处理器610处理;另外,将上行的数据发送给基站。通常,射频单元601包括但不限于天线、至少一个放大器、收发信机、耦合器、低噪声放大器、双工器等。此外,射频单元601还可以通过无线通信系统与网络和其他设备通信。It should be understood that, in the embodiment of the present invention, the radio frequency unit 601 can be used to receive and send signals during information transmission or communication. Specifically, the downlink data from the base station is received and sent to the processor 610 for processing; in addition, Uplink data is sent to the base station. Generally, the radio frequency unit 601 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. In addition, the radio frequency unit 601 can also communicate with the network and other devices through a wireless communication system.
电子设备通过网络模块602为用户提供了无线的宽带互联网访问,如帮助用户收发电子邮件、浏览网页和访问流式媒体等。The electronic device provides users with wireless broadband Internet access through the network module 602, such as helping users to send and receive emails, browse web pages, and access streaming media.
音频输出单元603可以将射频单元601或网络模块602接收的或者在存储器609中存储的音频数据转换成音频信号并且输出为声音。而且,音频输出单元603还可以提供与电子设备600执行的特定功能相关的音频输出(例如,呼叫信号接收声音、消息接收声音等等)。音频输出单元603包括扬声器、蜂鸣器以及受话器等。The audio output unit 603 can convert the audio data received by the radio frequency unit 601 or the network module 602 or stored in the memory 609 into audio signals and output them as sounds. Moreover, the audio output unit 603 may also provide audio output related to a specific function performed by the electronic device 600 (for example, call signal reception sound, message reception sound, etc.). The audio output unit 603 includes a speaker, a buzzer, a receiver, and the like.
输入单元604用于接收音频或视频信号。输入单元604可以包括图形处理器(Graphics Processing Unit,GPU)6041和麦克风6042,图形处理器6041对在视频捕获模式或图像捕获模式中由图像捕获装置(如摄像头)获得的静态图片或视频的图像数据进行处理。处理后的图像帧可以显示在显示单元606上。经图形处理器6041处理后的图像帧可以存储在存储器609(或其它存储介质)中或者经由射频单元601或网络模块602进行发送。麦克风6042可以接收声音,并且能够将这样的声音处理为音频数据。处理后的音频数据可以在电话通话模式的情况下转换为可经由射频单元601发送到移动通信基站的格式输出。The input unit 604 is used to receive audio or video signals. The input unit 604 may include a graphics processing unit (GPU) 6041 and a microphone 6042, and the graphics processor 6041 is used to capture images of still pictures or videos obtained by an image capture device (such as a camera) in a video capture mode or an image capture mode. Data is processed. The processed image frame may be displayed on the display unit 606. The image frame processed by the graphics processor 6041 may be stored in the memory 609 (or other storage medium) or sent via the radio frequency unit 601 or the network module 602. The microphone 6042 can receive sound, and can process such sound into audio data. The processed audio data can be converted into a format that can be sent to a mobile communication base station via the radio frequency unit 601 for output in the case of a telephone call mode.
电子设备600还包括至少一种传感器605,比如光传感器、运动传感器以及其他传感器。具体地,光传感器包括环境光传感器及接近传感器,其中,环境光传感器可根据环境光线的明暗来调节显示面板6061的亮度,接近传感器可在电子设备600移动到耳边时,关闭显示面板6061和/或背光。作为运动传感器的一种,加速计传感器可检测各个方向上(一般为三轴)加速度的大小,静止时可检测出重力的大小及方向,可用于识别电子设备姿态(比如横竖屏切换、相关游戏、磁力计姿态校准)、振动识别相关功能(比如计步器、敲击)等;传感器605还可以包括指纹传感器、压力传感器、虹膜传感器、分子传感器、陀螺仪、气压计、湿度计、温度计、红外线传感器等,在此不再赘述。The electronic device 600 further includes at least one sensor 605, such as a light sensor, a motion sensor, and other sensors. Specifically, the light sensor includes an ambient light sensor and a proximity sensor. The ambient light sensor can adjust the brightness of the display panel 6061 according to the brightness of the ambient light. The proximity sensor can close the display panel 6061 and the display panel 6061 when the electronic device 600 is moved to the ear. / Or backlight. As a kind of motion sensor, the accelerometer sensor can detect the magnitude of acceleration in various directions (usually three axes), and can detect the magnitude and direction of gravity when stationary, and can be used to identify the posture of electronic devices (such as horizontal and vertical screen switching, related games) , Magnetometer attitude calibration), vibration recognition related functions (such as pedometer, percussion), etc.; sensor 605 can also include fingerprint sensors, pressure sensors, iris sensors, molecular sensors, gyroscopes, barometers, hygrometers, thermometers, Infrared sensors, etc., will not be repeated here.
显示单元606用于显示由用户输入的信息或提供给用户的信息。显示单元606可包括显示面板6061,可以采用液晶显示器(Liquid Crystal Display,LCD)、有机发光二极管(Organic Light-Emitting Diode,OLED)等形式来配置显示面板6061。The display unit 606 is used to display information input by the user or information provided to the user. The display unit 606 may include a display panel 6061, and the display panel 6061 may be configured in the form of a liquid crystal display (LCD), an organic light-emitting diode (OLED), etc.
用户输入单元607可用于接收输入的数字或字符信息,以及产生与电子设备的用户设置以及功能控制有关的键信号输入。具体地,用户输入单元607包括触控面板6071以及其他输入设备6072。触控面板6071,也称为触摸屏,可收集用户在其上或附近的触摸操作(比如用户使用手指、触笔等任何适合的物体或附件在触控面板6071上或在触控面板6071附近的操作)。触控面板6071可包括触摸检测装置和触摸控制器两个部分。其中,触摸检测装置检测 用户的触摸方位,并检测触摸操作带来的信号,将信号传送给触摸控制器;触摸控制器从触摸检测装置上接收触摸信息,并将它转换成触点坐标,再送给处理器610,接收处理器610发来的命令并加以执行。此外,可以采用电阻式、电容式、红外线以及表面声波等多种类型实现触控面板6071。除了触控面板6071,用户输入单元607还可以包括其他输入设备6072。具体地,其他输入设备6072可以包括但不限于物理键盘、功能键(比如音量控制按键、开关按键等)、轨迹球、鼠标、操作杆,在此不再赘述。The user input unit 607 may be used to receive inputted number or character information, and generate key signal input related to user settings and function control of the electronic device. Specifically, the user input unit 607 includes a touch panel 6071 and other input devices 6072. The touch panel 6071, also called a touch screen, can collect user touch operations on or near it (for example, the user uses any suitable objects or accessories such as fingers, stylus, etc.) on the touch panel 6071 or near the touch panel 6071. operating). The touch panel 6071 may include two parts: a touch detection device and a touch controller. Among them, the touch detection device detects the user's touch position, 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 contact coordinates, and then sends it To the processor 610, the command sent by the processor 610 is received and executed. In addition, the touch panel 6071 can be implemented in multiple types such as resistive, capacitive, infrared, and surface acoustic wave. In addition to the touch panel 6071, the user input unit 607 may also include other input devices 6072. Specifically, other input devices 6072 may include, but are not limited to, a physical keyboard, function keys (such as volume control buttons, switch buttons, etc.), trackball, mouse, and joystick, which will not be repeated here.
进一步的,触控面板6071可覆盖在显示面板6061上,当触控面板6071检测到在其上或附近的触摸操作后,传送给处理器610以确定触摸事件的类型,随后处理器610根据触摸事件的类型在显示面板6061上提供相应的视觉输出。虽然在图6中,触控面板6071与显示面板6061是作为两个独立的部件来实现电子设备的输入和输出功能,但是在某些实施例中,可以将触控面板6071与显示面板6061集成而实现电子设备的输入和输出功能,具体此处不做限定。Further, the touch panel 6071 can cover the display panel 6061. When the touch panel 6071 detects a touch operation on or near it, it is transmitted to the processor 610 to determine the type of the touch event, and then the processor 610 determines the type of the touch event according to the touch. The type of event provides corresponding visual output on the display panel 6061. Although in FIG. 6, the touch panel 6071 and the display panel 6061 are used as two independent components to implement the input and output functions of the electronic device, in some embodiments, the touch panel 6071 and the display panel 6061 can be integrated The implementation of the input and output functions of the electronic device is not specifically limited here.
接口单元608为外部装置与电子设备600连接的接口。例如,外部装置可以包括有线或无线头戴式耳机端口、外部电源(或电池充电器)端口、有线或无线数据端口、存储卡端口、用于连接具有识别模块的装置的端口、音频输入/输出(I/O)端口、视频I/O端口、耳机端口等等。接口单元608可以用于接收来自外部装置的输入(例如,数据信息、电力等等)并且将接收到的输入传输到电子设备600内的一个或多个元件或者可以用于在电子设备600和外部装置之间传输数据。The interface unit 608 is an interface for connecting an external device and the electronic device 600. For example, the external device may include a wired or wireless headset port, an external power source (or battery charger) port, a wired or wireless data port, a memory card port, a port for connecting a device with an identification module, audio input/output (I/O) port, video I/O port, headphone port, etc. The interface unit 608 can be used to receive input (for example, data information, power, etc.) from an external device and transmit the received input to one or more elements in the electronic device 600 or can be used to connect the electronic device 600 to an external device. Transfer data between devices.
存储器609可用于存储软件程序以及各种数据。存储器609可主要包括存储程序区和存储数据区,其中,存储程序区可存储操作系统、至少一个功能所需的应用程序(比如声音播放功能、图像播放功能等)等;存储数据区可存储根据手机的使用所创建的数据(比如音频数据、电话本等)等。此外,存储器609可以包括高速随机存取存储器,还可以包括非易失性存储器,例如至少一个磁盘存储器件、闪存器件、或其他易失性固态存储器件。The memory 609 can be used to store software programs and various data. The memory 609 may mainly include a storage program area and a storage data area. The storage program area may store an operating system, an application program required by at least one function (such as a sound playback function, an image playback function, etc.), etc.; Data created by the use of mobile phones (such as audio data, phone book, etc.), etc. In addition, the memory 609 may include a high-speed random access memory, and may also include a non-volatile memory, such as at least one magnetic disk storage device, a flash memory device, or other volatile solid-state storage devices.
处理器610是电子设备的控制中心,利用各种接口和线路连接整个电子设备的各个部分,通过运行或执行存储在存储器609内的软件程序和/或模块, 以及调用存储在存储器609内的数据,执行电子设备的各种功能和处理数据,从而对电子设备进行整体监控。处理器610可包括一个或多个处理单元;优选的,处理器610可集成应用处理器和调制解调处理器,其中,应用处理器主要处理操作系统、用户界面和应用程序等,调制解调处理器主要处理无线通信。可以理解的是,上述调制解调处理器也可以不集成到处理器610中。The processor 610 is the control center of the electronic device. It uses various interfaces and lines to connect the various parts of the entire electronic device, runs or executes software programs and/or modules stored in the memory 609, and calls data stored in the memory 609. , Perform various functions of electronic equipment and process data, so as to monitor the electronic equipment as a whole. The processor 610 may include one or more processing units; preferably, the processor 610 may integrate an application processor and a modem processor, where the application processor mainly processes the operating system, user interface, application programs, etc., and the modem The processor mainly deals with wireless communication. It can be understood that the foregoing modem processor may not be integrated into the processor 610.
电子设备600还可以包括给各个部件供电的电源611(比如电池),优选的,电源611可以通过电源管理系统与处理器610逻辑相连,从而通过电源管理系统实现管理充电、放电、以及功耗管理等功能。The electronic device 600 may also include a power source 611 (such as a battery) for supplying power to various components. Preferably, the power source 611 may be logically connected to the processor 610 through a power management system, so as to manage charging, discharging, and power consumption management through the power management system. And other functions.
另外,电子设备600包括一些未示出的功能模块,在此不再赘述。In addition, the electronic device 600 includes some functional modules not shown, which will not be repeated here.
优选的,本发明实施例还提供一种电子设备,包括处理器610,存储器609,存储在存储器609上并可在所述处理器610上运行的计算机程序,该计算机程序被处理器610执行时实现上述电子设备的音量调节方法实施例的各个过程,且能达到相同的技术效果,为避免重复,这里不再赘述。Preferably, the embodiment of the present invention also provides an electronic device, including a processor 610, a memory 609, and a computer program stored on the memory 609 and running on the processor 610. When the computer program is executed by the processor 610, The various processes of the foregoing embodiments of the method for adjusting the volume of an electronic device are implemented, and the same technical effect can be achieved. To avoid repetition, details are not repeated here.
本发明实施例还提供一种计算机可读存储介质,计算机可读存储介质上存储有计算机程序,该计算机程序被处理器执行时实现上述电子设备的音量调节方法实施例的各个过程,且能达到相同的技术效果,为避免重复,这里不再赘述。其中,所述的计算机可读存储介质,如只读存储器(Read-Only Memory,ROM)、随机存取存储器(Random Access Memory,RAM)、磁碟或者光盘等。The embodiment of the present invention also provides a computer-readable storage medium, and a computer program is stored on the computer-readable storage medium. When the computer program is executed by a processor, each process of the above-mentioned electronic device volume adjustment method embodiment is realized, and can achieve The same technical effect, in order to avoid repetition, will not be repeated here. Wherein, the computer-readable storage medium, such as read-only memory (Read-Only Memory, ROM), random access memory (Random Access Memory, RAM), magnetic disk, or optical disk, etc.
需要说明的是,在本文中,术语“包括”、“包含”或者其任何其他变体意在涵盖非排他性的包含,从而使得包括一系列要素的过程、方法、物品或者装置不仅包括那些要素,而且还包括没有明确列出的其他要素,或者是还包括为这种过程、方法、物品或者装置所固有的要素。在没有更多限制的情况下,由语句“包括一个……”限定的要素,并不排除在包括该要素的过程、方法、物品或者装置中还存在另外的相同要素。It should be noted that in this article, the terms "include", "include" or any other variants thereof are intended to cover non-exclusive inclusion, so that a process, method, article or device including a series of elements not only includes those elements, It also includes other elements that are not explicitly listed, or elements inherent to the process, method, article, or device. If there are no more restrictions, the element defined by the sentence "including a..." does not exclude the existence of other identical elements in the process, method, article, or device that includes the element.
通过以上的实施方式的描述,本领域的技术人员可以清楚地了解到上述实施例方法可借助软件加必需的通用硬件平台的方式来实现,当然也可以通过硬件,但很多情况下前者是更佳的实施方式。基于这样的理解,本发明的技术方案本质上或者说对现有技术做出贡献的部分可以以软件产品的形式体 现出来,该计算机软件产品存储在一个存储介质(如ROM/RAM、磁碟、光盘)中,包括若干指令用以使得一台终端(可以是手机,计算机,服务器,空调器,或者网络设备等)执行本发明各个实施例所述的方法。Through the description of the above implementation manners, those skilled in the art can clearly understand that the above-mentioned embodiment method can be implemented by means of software plus the necessary general hardware platform, of course, it can also be implemented by hardware, but in many cases the former is better.的实施方式。 Based on this understanding, the technical solution of the present invention essentially or the part that contributes to the existing technology can be embodied in the form of a software product, and the computer software product is stored in a storage medium (such as ROM/RAM, magnetic disk, The optical disc) includes several instructions to make a terminal (which can be a mobile phone, a computer, a server, an air conditioner, or a network device, etc.) execute the method described in each embodiment of the present invention.
上面结合附图对本发明的实施例进行了描述,但是本发明并不局限于上述的具体实施方式,上述的具体实施方式仅仅是示意性的,而不是限制性的,本领域的普通技术人员在本发明的启示下,在不脱离本发明宗旨和权利要求所保护的范围情况下,还可做出很多形式,均属于本发明的保护之内。The embodiments of the present invention are described above with reference to the accompanying drawings, but the present invention is not limited to the above-mentioned specific embodiments. The above-mentioned specific embodiments are only illustrative and not restrictive. Those of ordinary skill in the art are Under the enlightenment of the present invention, many forms can be made without departing from the purpose of the present invention and the scope of protection of the claims, and they all fall within the protection of the present invention.

Claims (10)

  1. 一种电子设备,包括中央处理器、第一陶瓷扬声器激励器、第二陶瓷扬声器激励器、壳体、电容检测计传感器和双通道陶瓷扬声器驱动模块,其中:An electronic device including a central processing unit, a first ceramic speaker exciter, a second ceramic speaker exciter, a housing, a capacitance detector sensor and a dual-channel ceramic speaker drive module, wherein:
    所述第一陶瓷扬声器激励器设置于所述壳体内,所述第一陶瓷扬声器激励器与所述壳体相连;The first ceramic speaker exciter is arranged in the housing, and the first ceramic speaker exciter is connected to the housing;
    所述第二陶瓷扬声器激励器设置于所述壳体内,所述第二陶瓷扬声器激励器与所述壳体相连,且所述第二陶瓷扬声器激励器与所述第一陶瓷扬声器激励器间隔设置;The second ceramic speaker exciter is arranged in the housing, the second ceramic speaker exciter is connected to the housing, and the second ceramic speaker exciter is spaced apart from the first ceramic speaker exciter ;
    所述电容检测计传感器包括第一检测片和第二检测片,所述第一检测片用于获取所述壳体的与所述第一陶瓷扬声器激励器对应位置处的第一电容信息,所述第二检测片用于获取所述壳体的与所述第二陶瓷扬声器激励器对应位置处的第二电容信息;The capacitance detector sensor includes a first detection piece and a second detection piece, and the first detection piece is used to obtain first capacitance information of the housing at a position corresponding to the first ceramic speaker exciter, so The second detection piece is used to obtain second capacitance information of the housing at a position corresponding to the second ceramic speaker exciter;
    所述双通道陶瓷扬声器驱动模块,用于驱动所述第一陶瓷扬声器激励器和所述第二陶瓷扬声器激励器;The two-channel ceramic speaker drive module is used to drive the first ceramic speaker exciter and the second ceramic speaker exciter;
    所述中央处理器分别与所述电容检测计传感器和所述双通道陶瓷扬声器驱动模块连接,所述中央处理器基于所述第一电容信息和所述第二电容信息控制所述双通道陶瓷扬声器驱动模块,以通过所述第一陶瓷扬声器激励器和所述第二陶瓷扬声器激励器中的至少一个发声。The central processing unit is respectively connected to the capacitance detector sensor and the dual-channel ceramic speaker driving module, and the central processing unit controls the dual-channel ceramic speaker based on the first capacitance information and the second capacitance information The module is driven to emit sound through at least one of the first ceramic speaker exciter and the second ceramic speaker exciter.
  2. 根据权利要求1所述的电子设备,其中,所述第一检测片连接在所述第一陶瓷扬声器激励器与所述壳体之间,所述第二检测片连接在所述第二陶瓷扬声器激励器与所述壳体之间。The electronic device according to claim 1, wherein the first detection piece is connected between the first ceramic speaker exciter and the housing, and the second detection piece is connected to the second ceramic speaker Between the exciter and the housing.
  3. 一种电子设备的音量调节方法,所述方法用于权利要求1所述的电子设备,包括:A method for adjusting the volume of an electronic device, the method being used for the electronic device according to claim 1, comprising:
    在所述电容检测计传感器检测到所述壳体的目标位置被抓握的情况下,基于所述电容检测计传感器的电容信息,确定所述壳体上与所述目标位置对应的目标陶瓷扬声器激励器;所述目标位置设置有所述第一检测片或所述第二检测片;In the case where the capacitance detector sensor detects that the target position of the housing is grasped, based on the capacitance information of the capacitance detector sensor, determine the target ceramic speaker on the housing corresponding to the target position Exciter; the target position is provided with the first detection piece or the second detection piece;
    基于所述目标陶瓷扬声器激励器和所述双通道陶瓷扬声器驱动模块当前驱动的陶瓷扬声器激励器,调节所述电子设备的音量。The volume of the electronic device is adjusted based on the target ceramic speaker exciter and the ceramic speaker exciter currently driven by the dual-channel ceramic speaker drive module.
  4. 根据权利要求3所述的方法,其中,基于所述电容检测计传感器的电容信息,确定所述电子设备中与所述目标位置对应的目标陶瓷扬声器激励器,包括:The method according to claim 3, wherein, based on the capacitance information of the capacitance detector sensor, determining the target ceramic speaker exciter corresponding to the target position in the electronic device comprises:
    基于所述电容检测计传感器的检测片的电容变化,通过所述电容检测计传感器向所述中央处理器发送中断和所述电容变化信号;Based on the capacitance change of the detection piece of the capacitance detector sensor, sending an interrupt and the capacitance change signal to the central processing unit through the capacitance detector sensor;
    通过所述中央处理器基于所述中断和所述电容变化信号,确定所述电子设备中与所述目标位置对应的目标陶瓷扬声器激励器。The central processing unit determines the target ceramic speaker exciter corresponding to the target position in the electronic device based on the interrupt and the capacitance change signal.
  5. 根据权利要求4所述的方法,其中,通过所述中央处理器基于所述中断和所述电容变化信号,确定所述电子设备中与所述目标位置对应的目标陶瓷扬声器激励器,包括:The method according to claim 4, wherein determining, by the central processing unit, based on the interrupt and the capacitance change signal, a target ceramic speaker exciter in the electronic device corresponding to the target position, comprises:
    通过所述中央处理器基于所述中断,暂停处理当前运行的进程;Based on the interrupt, the central processing unit suspends processing the currently running process;
    通过所述中央处理器获取所述电容变化信号对应的电容信息;Obtaining the capacitance information corresponding to the capacitance change signal through the central processing unit;
    通过所述中央处理器基于所述电容变化信号对应的电容信息、所述第一检测片的第一电容信息、所述第二检测片的第二电容信息、以及所述电容检测计传感器的检测片与陶瓷扬声器激励器的对应关系,确定所述电子设备中与所述目标位置对应的目标陶瓷扬声器激励器。Through the central processing unit based on the capacitance information corresponding to the capacitance change signal, the first capacitance information of the first detection piece, the second capacitance information of the second detection piece, and the detection of the capacitance detector sensor The corresponding relationship between the sheet and the ceramic speaker exciter determines the target ceramic speaker exciter corresponding to the target position in the electronic device.
  6. 根据权利要求3~5中任一所述的方法,其中,当所述目标陶瓷扬声器激励器为所述第一陶瓷扬声器激励器、且所述双通道陶瓷扬声器驱动模块当前驱动的陶瓷扬声器激励器包括:所述第一陶瓷扬声器激励器和所述第二陶瓷扬声器激励器时,The method according to any one of claims 3 to 5, wherein when the target ceramic speaker exciter is the first ceramic speaker exciter and the ceramic speaker exciter currently driven by the dual-channel ceramic speaker drive module When including: the first ceramic speaker exciter and the second ceramic speaker exciter,
    基于所述目标陶瓷扬声器激励器和所述双通道陶瓷扬声器驱动模块当前驱动的陶瓷扬声器激励器,调节所述电子设备的音量,包括:Adjusting the volume of the electronic device based on the target ceramic speaker exciter and the ceramic speaker exciter currently driven by the dual-channel ceramic speaker drive module includes:
    获取所述电子设备的壳体的目标位置被抓握时所述电子设备的初始音量;Acquiring the initial volume of the electronic device when the target position of the housing of the electronic device is grasped;
    将所述电子设备的音量调节为所述初始音量的两倍,并使得所述双通道陶瓷扬声器驱动模块停止驱动所述第一陶瓷扬声器激励器。The volume of the electronic device is adjusted to twice the initial volume, and the two-channel ceramic speaker driving module stops driving the first ceramic speaker exciter.
  7. 根据权利要求3~5中任一所述的方法,其中,当所述目标陶瓷扬声器激励器为所述第一陶瓷扬声器激励器、且所述双通道陶瓷扬声器驱动模块当 前驱动的陶瓷扬声器激励器包括所述第一陶瓷扬声器激励器时,The method according to any one of claims 3 to 5, wherein when the target ceramic speaker exciter is the first ceramic speaker exciter and the ceramic speaker exciter currently driven by the dual-channel ceramic speaker drive module When the first ceramic speaker exciter is included,
    基于所述目标陶瓷扬声器激励器和所述双通道陶瓷扬声器驱动模块当前驱动的陶瓷扬声器激励器,调节所述电子设备的音量,包括:Adjusting the volume of the electronic device based on the target ceramic speaker exciter and the ceramic speaker exciter currently driven by the dual-channel ceramic speaker drive module includes:
    将所述双通道陶瓷扬声器驱动模块驱动的陶瓷扬声器激励器调节为所述第二陶瓷扬声器激励器,并使得所述双通道陶瓷扬声器驱动模块停止驱动所述第一陶瓷扬声器激励器。The ceramic speaker exciter driven by the dual-channel ceramic speaker drive module is adjusted to the second ceramic speaker exciter, and the dual-channel ceramic speaker drive module stops driving the first ceramic speaker exciter.
  8. 根据权利要求3~5中任一所述的方法,其中,当所述目标陶瓷扬声器激励器包括所述第一陶瓷扬声器激励器和所述第二陶瓷扬声器激励器、且所述双通道陶瓷扬声器驱动模块当前驱动的陶瓷扬声器激励器包括所述第一陶瓷扬声器激励器和所述第二陶瓷扬声器激励器时,The method according to any one of claims 3 to 5, wherein when the target ceramic speaker exciter includes the first ceramic speaker exciter and the second ceramic speaker exciter, and the two-channel ceramic speaker When the ceramic speaker exciter currently driven by the driving module includes the first ceramic speaker exciter and the second ceramic speaker exciter,
    基于所述目标陶瓷扬声器激励器和所述双通道陶瓷扬声器驱动模块当前驱动的陶瓷扬声器激励器,调节所述电子设备的音量,包括:Adjusting the volume of the electronic device based on the target ceramic speaker exciter and the ceramic speaker exciter currently driven by the dual-channel ceramic speaker drive module includes:
    获取所述电子设备的壳体的目标位置被抓握时所述电子设备的初始音量;Acquiring the initial volume of the electronic device when the target position of the housing of the electronic device is grasped;
    将所述电子设备的音量调节为预设音量,所述预设音量大于所述初始音量。The volume of the electronic device is adjusted to a preset volume, and the preset volume is greater than the initial volume.
  9. 一种电子设备,所述电子设备包括如权利要求1所述的电子设备,包括:An electronic device, said electronic device comprising the electronic device according to claim 1, comprising:
    确定单元,用于在所述电容检测计传感器检测到所述壳体的目标位置被抓握的情况下,基于所述电容检测计传感器的电容信息,确定所述壳体上与所述目标位置对应的目标陶瓷扬声器激励器;所述目标位置设置有所述第一检测片或所述第二检测片;The determining unit is configured to determine the position on the housing and the target position based on the capacitance information of the capacitance detector sensor when the capacitance detector sensor detects that the target position of the housing is grasped. Corresponding target ceramic speaker exciter; the target position is provided with the first detection piece or the second detection piece;
    调节单元,用于基于所述目标陶瓷扬声器激励器和所述双通道陶瓷扬声器驱动模块当前驱动的陶瓷扬声器激励器,调节所述电子设备的音量。The adjustment unit is configured to adjust the volume of the electronic device based on the target ceramic speaker exciter and the ceramic speaker exciter currently driven by the dual-channel ceramic speaker drive module.
  10. 一种电子设备,包括:存储器、处理器及存储在所述存储器上并可在所述处理器上运行的计算机程序,所述计算机程序被所述处理器执行时实现如权利要求3至8中任一项所述的电子设备的音量调节方法的步骤。An electronic device, comprising: a memory, a processor, and a computer program stored on the memory and capable of running on the processor, the computer program being executed by the processor is implemented as in claims 3 to 8 Any one of the steps of the method for adjusting the volume of an electronic device.
PCT/CN2020/133257 2019-12-02 2020-12-02 Electronic device and volume adjustment method therefor WO2021110015A1 (en)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN201911214150.1 2019-12-02
CN201911214150.1A CN111176606B (en) 2019-12-02 2019-12-02 Electronic equipment and volume adjusting method thereof

Publications (1)

Publication Number Publication Date
WO2021110015A1 true WO2021110015A1 (en) 2021-06-10

Family

ID=70624093

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2020/133257 WO2021110015A1 (en) 2019-12-02 2020-12-02 Electronic device and volume adjustment method therefor

Country Status (2)

Country Link
CN (1) CN111176606B (en)
WO (1) WO2021110015A1 (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111176606B (en) * 2019-12-02 2021-04-02 维沃移动通信有限公司 Electronic equipment and volume adjusting method thereof

Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104185125A (en) * 2014-08-14 2014-12-03 瑞声声学科技(深圳)有限公司 Loudspeaker system and driving method thereof
US20150091691A1 (en) * 2013-09-30 2015-04-02 Sonos, Inc. Capacitive Proximity Sensor Configuration Including a Speaker Grille
CN106471741A (en) * 2015-06-19 2017-03-01 华为技术有限公司 User equipment
CN106850966A (en) * 2016-12-28 2017-06-13 努比亚技术有限公司 A kind of method for realizing volume control, device and mobile terminal
CN108958632A (en) * 2018-07-09 2018-12-07 Oppo广东移动通信有限公司 Sounding control method, device, electronic equipment and storage medium
CN109600463A (en) * 2018-11-23 2019-04-09 维沃移动通信有限公司 A kind of mobile terminal
CN110300201A (en) * 2019-07-29 2019-10-01 Oppo广东移动通信有限公司 Terminal device
CN111176606A (en) * 2019-12-02 2020-05-19 维沃移动通信有限公司 Electronic equipment and volume adjusting method thereof

Family Cites Families (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US9124970B2 (en) * 2013-07-22 2015-09-01 Qualcomm Incorporated System and method for using a headset jack to control electronic device functions
DE112018000312T5 (en) * 2017-01-04 2019-09-19 Joyson Safety Systems Acquisition Llc Systems and methods for providing haptic feedback
CN108762711A (en) * 2018-05-17 2018-11-06 Oppo广东移动通信有限公司 Method, apparatus, electronic device and the storage medium of screen sounding
CN109088980A (en) * 2018-07-09 2018-12-25 Oppo广东移动通信有限公司 Sounding control method, device, electronic device and computer-readable medium
CN109062535B (en) * 2018-07-23 2021-07-13 Oppo广东移动通信有限公司 Sound production control method and device, electronic device and computer readable medium

Patent Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20150091691A1 (en) * 2013-09-30 2015-04-02 Sonos, Inc. Capacitive Proximity Sensor Configuration Including a Speaker Grille
CN104185125A (en) * 2014-08-14 2014-12-03 瑞声声学科技(深圳)有限公司 Loudspeaker system and driving method thereof
CN106471741A (en) * 2015-06-19 2017-03-01 华为技术有限公司 User equipment
CN106850966A (en) * 2016-12-28 2017-06-13 努比亚技术有限公司 A kind of method for realizing volume control, device and mobile terminal
CN108958632A (en) * 2018-07-09 2018-12-07 Oppo广东移动通信有限公司 Sounding control method, device, electronic equipment and storage medium
CN109600463A (en) * 2018-11-23 2019-04-09 维沃移动通信有限公司 A kind of mobile terminal
CN110300201A (en) * 2019-07-29 2019-10-01 Oppo广东移动通信有限公司 Terminal device
CN111176606A (en) * 2019-12-02 2020-05-19 维沃移动通信有限公司 Electronic equipment and volume adjusting method thereof

Also Published As

Publication number Publication date
CN111176606A (en) 2020-05-19
CN111176606B (en) 2021-04-02

Similar Documents

Publication Publication Date Title
WO2019196707A1 (en) Mobile terminal control method and mobile terminal
WO2019154181A1 (en) Display control method and mobile terminal
US11635939B2 (en) Prompting method and mobile terminal
WO2019228163A1 (en) Speaker control method and mobile terminal
WO2019120087A1 (en) Processing method for reducing power consumption and mobile terminal
WO2021204045A1 (en) Audio control method and electronic device
US20230254395A1 (en) Electronic Device and Control Method Thereof
CN109739465B (en) Audio output method and mobile terminal
WO2020186964A1 (en) Audio signal outputting method and terminal device
WO2021068885A1 (en) Control method and electronic device
CN108008858B (en) Terminal control method and mobile terminal
WO2021197124A1 (en) Electronic device and method for operating pressure button
WO2020220990A1 (en) Receiver control method and terminal
WO2019076371A1 (en) Resource data display method and mobile terminal
CN111372228A (en) Audio control method and electronic equipment
US11989330B2 (en) Permission management method and terminal device
WO2021129835A1 (en) Volume control method and device, and computer-readable storage medium
WO2021238844A1 (en) Audio output method and electronic device
WO2020173396A1 (en) Mobile terminal and sound output control method
WO2021104232A1 (en) Display method and electronic device
US20230037238A1 (en) Audio output mode switching method and electronic device
WO2020143616A1 (en) Flexible screen control method and display assembly
WO2019091301A1 (en) Information processing method for radio frequency device, and mobile terminal
WO2021110015A1 (en) Electronic device and volume adjustment method therefor
CN110677770B (en) Sound production control method, electronic device, and medium

Legal Events

Date Code Title Description
121 Ep: the epo has been informed by wipo that ep was designated in this application

Ref document number: 20896637

Country of ref document: EP

Kind code of ref document: A1

NENP Non-entry into the national phase

Ref country code: DE

122 Ep: pct application non-entry in european phase

Ref document number: 20896637

Country of ref document: EP

Kind code of ref document: A1

122 Ep: pct application non-entry in european phase

Ref document number: 20896637

Country of ref document: EP

Kind code of ref document: A1

32PN Ep: public notification in the ep bulletin as address of the adressee cannot be established

Free format text: NOTING OF LOSS OF RIGHTS PURSUANT TO RULE 112(1) EPC (EPO FORM 1205A DATED 27.02.2023)

122 Ep: pct application non-entry in european phase

Ref document number: 20896637

Country of ref document: EP

Kind code of ref document: A1