CN109905812B - Input power control method and device and terminal equipment - Google Patents

Input power control method and device and terminal equipment Download PDF

Info

Publication number
CN109905812B
CN109905812B CN201910100735.4A CN201910100735A CN109905812B CN 109905812 B CN109905812 B CN 109905812B CN 201910100735 A CN201910100735 A CN 201910100735A CN 109905812 B CN109905812 B CN 109905812B
Authority
CN
China
Prior art keywords
target
speaker
temperature
input power
output power
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN201910100735.4A
Other languages
Chinese (zh)
Other versions
CN109905812A (en
Inventor
周尧
申厚拯
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Vivo Mobile Communication Co Ltd
Original Assignee
Vivo Mobile Communication Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Vivo Mobile Communication Co Ltd filed Critical Vivo Mobile Communication Co Ltd
Priority to CN201910100735.4A priority Critical patent/CN109905812B/en
Publication of CN109905812A publication Critical patent/CN109905812A/en
Application granted granted Critical
Publication of CN109905812B publication Critical patent/CN109905812B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Landscapes

  • Circuit For Audible Band Transducer (AREA)

Abstract

The embodiment of the invention provides an input power control method and device and terminal equipment, relates to the technical field of communication, and aims to solve the problem that the existing terminal equipment cannot accurately control the temperature of a loudspeaker to cause damage to the loudspeaker. The method comprises the following steps: acquiring first output power, wherein the first output power is the output power of a loudspeaker in the terminal equipment; acquiring a target temperature according to the first output power, wherein the target temperature is the temperature of the loudspeaker when the output power of the loudspeaker is the first output power; and adjusting the input power of the loudspeaker according to the target temperature. The method can be applied in the scene of controlling the temperature of the loudspeaker.

Description

Input power control method and device and terminal equipment
Technical Field
The embodiment of the invention relates to the technical field of communication, in particular to an input power control method and device and terminal equipment.
Background
At present, a small speaker is often used as an audio output device in a terminal device, and since the power of the small speaker is relatively small, when the power of an audio signal is relatively large, the temperature of the speaker (for example, the temperature of a voice coil in the speaker) may be increased, and if the temperature of the speaker exceeds the safe temperature of the speaker, the speaker may be damaged.
In order to solve the above problem, the terminal device may obtain the power of the audio signal to be input to the speaker, and estimate the temperature that may be reached when the speaker plays the audio signal according to the power. When the estimated temperature of the loudspeaker is higher than the safe temperature of the loudspeaker, the terminal equipment can reduce the temperature of the loudspeaker by adjusting the voltage of the audio signal, so that the loudspeaker is protected from being damaged.
However, in the above process, since the temperature of the speaker is estimated by the power of the audio signal to be input to the speaker, there may be a certain error between the estimated temperature of the speaker and the actual temperature of the speaker (the temperature at which the speaker outputs the audio signal), so that the terminal device cannot accurately adjust the voltage of the audio signal input to the speaker, and further cannot accurately control the temperature of the speaker, resulting in damage to the speaker.
Disclosure of Invention
The embodiment of the invention provides an input power control method and device and terminal equipment, and aims to solve the problem that the existing terminal equipment cannot accurately control the temperature of a loudspeaker to cause damage to the loudspeaker.
In order to solve the technical problem, the invention is realized as follows:
in a first aspect, an embodiment of the present invention provides an input power control method, which may be applied to an input power control apparatus, and the method may include: acquiring first output power, and acquiring a target temperature according to the first output power; and adjusting the input power of a loudspeaker in the terminal equipment according to the target temperature. The first output power is the output power of the loudspeaker, and the target temperature is the temperature of the loudspeaker when the output power of the loudspeaker is the first output power.
In a second aspect, an embodiment of the present invention provides an input power control apparatus, which includes an obtaining module and a control module. The acquisition module is used for acquiring first output power and acquiring a target temperature according to the first output power; and the control module is used for adjusting the input power of the loudspeaker in the terminal equipment according to the target temperature acquired by the acquisition module. The first output power is the output power of the loudspeaker, and the target temperature is the temperature of the loudspeaker when the output power of the loudspeaker is the first output power.
In a third aspect, an embodiment of the present invention provides a terminal device, where the terminal device includes the input power control apparatus in the second aspect.
In the embodiment of the present invention, the first output power (the output power of the speaker in the terminal device) may be acquired, and the target temperature (i.e., the temperature of the speaker when the output power of the speaker is the first output power) may be acquired according to the first output power, and the input power of the speaker may be adjusted according to the target temperature. Through the scheme, the terminal device can acquire the output power of the loudspeaker (namely the first output power) in real time, so that the terminal device can acquire the temperature of the loudspeaker (namely the target temperature) when the output power of the loudspeaker is the first output power according to the corresponding relation between the output power of the loudspeaker and the temperature of the loudspeaker, and then the terminal device determines whether the input power of the loudspeaker is proper or not according to the target temperature and adjusts the input power of the loudspeaker, so that the output power of the loudspeaker is controlled to be in a proper range. Therefore, the terminal equipment can control the temperature of the loudspeaker in real time and accurately, so that the temperature of the loudspeaker is in a safety range, and the loudspeaker is prevented from being damaged.
Drawings
Fig. 1 is a schematic structural diagram of a speaker according to an embodiment of the present invention;
FIG. 2 is a schematic diagram illustrating an input power control method according to an embodiment of the present invention;
FIG. 3 is a block diagram of an input power control system according to an embodiment of the present invention;
FIG. 4 is a block diagram of a parameter estimation process based on a voltage error linear model according to an embodiment of the present invention;
fig. 5 is a second schematic diagram illustrating an input power control method according to an embodiment of the invention;
fig. 6 is a third schematic diagram illustrating an input power control method according to an embodiment of the invention;
FIG. 7 is a fourth schematic diagram illustrating an input power control method according to an embodiment of the present invention;
fig. 8 is a schematic structural diagram of an input power control apparatus according to an embodiment of the present invention;
fig. 9 is a hardware schematic diagram of a terminal device according to an embodiment of the present invention.
Detailed Description
The technical solutions in the embodiments of the present invention will be clearly and completely described below with reference to the drawings in the embodiments of the present invention, and it is obvious that the described embodiments are some, not all, embodiments of the present invention. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present invention.
The term "and/or" herein is an association relationship describing an associated object, meaning that three relationships may exist, e.g., a and/or B, may mean: a exists alone, A and B exist simultaneously, and B exists alone. The symbol "/" herein denotes a relationship in which the associated object is or, for example, a/B denotes a or B.
The terms "first" and "second," and the like, in the description and in the claims of the present invention are used for distinguishing between different objects and not for describing a particular order of the objects. For example, a first numerical value and a second numerical value, etc., are used to distinguish between the different numerical values and are not used to describe a particular order of the numerical values.
In the embodiments of the present invention, words such as "exemplary" or "for example" are used to mean serving as examples, illustrations or descriptions. Any embodiment or design described as "exemplary" or "e.g.," an embodiment of the present invention is not necessarily to be construed as preferred or advantageous over other embodiments or designs. Rather, use of the word "exemplary" or "such as" is intended to present concepts related in a concrete fashion.
In the description of the embodiments of the present invention, unless otherwise specified, "a plurality" means two or more, for example, a plurality of processing units means two or more processing units, and the like.
The following first explains each noun and/or term in the embodiment of the present invention.
Down-sampling: the method is a method for reducing the sampling rate of a sampling signal, namely, the sampling rate is changed to be a fraction of the original sampling rate, and the sampling period is changed to be a plurality of times of the original sampling period.
Embodiments of the present invention provide an input power control method and apparatus, and a terminal device, which may obtain a first output power (output power of a speaker in the terminal device), obtain a target temperature (i.e., a temperature of the speaker when the output power of the speaker is the first output power) according to the first output power, and adjust the input power of the speaker according to the target temperature. Through the scheme, the terminal device can acquire the output power of the loudspeaker (namely the first output power) in real time, so that the terminal device can acquire the real-time temperature (namely the target temperature) of the loudspeaker when the output power of the loudspeaker is the first output power according to the corresponding relation between the output power of the loudspeaker and the temperature of the loudspeaker, and then the terminal device determines whether the input power of the loudspeaker is proper or not according to the target temperature and adjusts the input power of the loudspeaker, so that the output power of the loudspeaker is controlled to be in a proper range. Therefore, the terminal equipment can control the temperature of the loudspeaker in real time and accurately, so that the temperature of the loudspeaker is in a safety range, and the loudspeaker is prevented from being damaged.
The input power control device in the embodiment of the present invention may be a Digital Signal Processing (DSP) device.
The terminal equipment in the embodiment of the invention can be a mobile terminal or a non-mobile terminal. For example, the mobile terminal may be a mobile phone, a sound box device, an audio device, a tablet computer, a laptop computer, a palm computer, a vehicle-mounted terminal, a wearable device, an ultra-mobile personal computer (UMPC), a netbook or a Personal Digital Assistant (PDA), and the like, and the non-mobile terminal may be a Personal Computer (PC), a Television (TV), a teller machine, a self-service machine, and the like, and the embodiment of the present invention is not particularly limited.
The execution main body of the input power control method provided by the embodiment of the invention can be an input power control device. The input power control apparatus may be the terminal device, or at least one of a hardware module, a functional module, and a functional entity capable of implementing the input power control method in the terminal device, and may be specifically determined according to actual use requirements, which is not limited in the embodiment of the present invention. The following takes a terminal device as an example to exemplarily explain an input power control method provided by the embodiment of the present invention.
In the embodiment of the present invention, the terminal device may play the audio signal through a speaker (hereinafter, referred to as a speaker) in the terminal device. Specifically, the terminal device may input an audio signal (in this case, in the form of an electrical signal) in the terminal device to a speaker, and the audio signal is output by the speaker, that is, the speaker converts the audio signal in the form of the electrical signal into an audio signal in the form of a sound signal and outputs the audio signal.
Illustratively, as shown in fig. 1, a schematic cross-sectional view of a speaker is provided for an embodiment of the present invention. Fig. 1 is a suspension 101 of a speaker, fig. 1 is a diaphragm 102 of the speaker, fig. 1 is a frame 103 of the speaker, fig. 1 is an opening 104 of the speaker, fig. 1 is a voice coil 105 of the speaker, fig. 1 is a magnetic circuit 106 of the speaker, and fig. 1 is a magnet 107 of the speaker. Wherein the magnetic circuit (106 in fig. 1) of the speaker is located at the upper and lower sides of the magnet (107 in fig. 1) of the speaker, and the voice coil (105 in fig. 1) of the speaker is wound on the magnet (107 in fig. 1) (105 in fig. 1 is only a schematic voice coil, and the effect of the winding on 107 is not shown in fig. 1).
It should be noted that, unless the parameters (including linear parameters and non-linear parameters) mentioned in the specification and claims of the present invention are specifically specified, the parameters after assignment are referred to unless otherwise specified. For example, temperature refers to temperature value, voltage refers to voltage value, current refers to current value, output power refers to output power value, input power refers to input power value, and the like.
The following describes an exemplary input power control method according to an embodiment of the present invention with reference to the drawings.
As shown in fig. 2, an embodiment of the present invention provides an input power control method, which may include the following S201 to S203.
S201, the terminal device obtains first output power.
The first output power may be an output power of a speaker in the terminal device.
In the embodiment of the present invention, when the terminal device inputs the audio signal in the terminal device to the speaker, the speaker may output a sound signal corresponding to the audio signal to the outside of the terminal device, and at this time, the terminal device may obtain the output power (hereinafter referred to as the first output power) of the speaker.
In the embodiment of the invention, the terminal equipment can acquire the first output power in real time.
Optionally, in the embodiment of the present invention, a relationship between the output power (denoted as P), the voltage (denoted as V), and the current (denoted as I) may be represented as: p ═ VI, the terminal device can therefore obtain the output power of the speaker (i.e., the above-described first output power) by obtaining the speaker output voltage and the speaker output current.
Optionally, in the embodiment of the present invention, the audio signal output by the speaker may be a voltage signal or a current signal. The method can be determined according to actual use requirements, and the embodiment of the invention is not limited.
Optionally, in this embodiment of the present invention, the audio signal output by the speaker may be an analog signal.
In the embodiment of the present invention, when the audio signal output by the speaker is an analog signal, the terminal device may obtain a digital signal corresponding to the audio signal through analog-to-digital conversion, so as to calculate the output power of the speaker (i.e., the first output power) according to the digital signal.
For example, in the embodiment of the present invention, it is assumed that the audio signal output by the speaker is an analog voltage signal, and then the terminal device may obtain the current of the audio signal through an external resistor of the speaker.
Optionally, in this embodiment of the present invention, the terminal device may obtain a voltage and a current of the audio signal output by the speaker by using a down-sampling method, and then obtain the first output power according to the voltage and the current.
Illustratively, as shown in fig. 3, a system block diagram for controlling input power of a speaker for a terminal device according to an embodiment of the present invention is provided. Assuming that an audio signal input to a speaker in a terminal device is a digital voltage signal, the audio signal is input from an audio input module 301, passes through a band-pass filter 302, and then enters a gain processing module 303, the gain processing module 303 performs gain processing on the audio signal (for example, amplifies the audio signal or reduces the audio signal), and inputs the gain-processed audio signal to a power amplifier 304, the power amplifier 304 amplifies the audio signal, and converts the audio signal from a digital form to an analog form (the power amplifier 304 includes a digital-to-analog conversion module), and then outputs the audio signal in an analog form to a speaker 305, and then the speaker 305 outputs the audio signal again (specifically, the audio signal may be output in a sound signal form). The terminal equipment can obtain the output voltage and the output current of the loudspeaker in a feedback mode, and the audio signal output by the loudspeaker is a voltage signal, so that the terminal equipment can obtain the output current of the loudspeaker through the external resistor of the loudspeaker. Since the speaker outputs the audio signal in the form of an analog signal, the terminal device may convert the fed back output voltage and output current of the speaker into digital signals through the analog-to-digital converter 306, and then obtain the output voltage value and output current value of the speaker through the down-sampling module 307, so as to obtain the output power (i.e., the first output power) of the speaker.
And S202, the terminal equipment acquires the target temperature according to the first output power.
The target temperature may be a temperature of the speaker when the output power of the speaker is the first output power.
In the embodiment of the present invention, after the terminal device obtains the first output power, the terminal device may obtain, according to the first output power, the temperature of the speaker when the output power of the speaker is the first output power.
Optionally, in the embodiment of the present invention, the method for the terminal device to obtain the target temperature may include the following first method and second method.
In the embodiment of the present invention, the target temperature obtained by the terminal device by using the following method one is a temperature of a voice coil in a speaker (hereinafter referred to as a voice coil temperature); the target temperature acquired by the terminal device by the following method two includes the temperature of the voice coil and the temperature of the magnet in the speaker (hereinafter referred to as the magnet temperature).
The method comprises the following steps: the terminal device may obtain a real-time impedance (hereinafter, referred to as a target impedance) of a voice coil (hereinafter, referred to as a voice coil) of the speaker when the output power of the speaker is the first output power, according to the output power of the speaker obtained by the terminal device (i.e., the first output power), and the terminal device may obtain a target temperature (i.e., a voice coil temperature) corresponding to the target impedance, according to a correspondence between the impedance and the temperature.
In response to the first method, in the embodiment of the present invention, the step S202 may be specifically realized by the following steps S1 and S2.
And S1, the terminal equipment acquires the target impedance according to the first output power.
The target impedance may be a real-time impedance of the voice coil when the output power of the speaker is the first output power.
In this embodiment of the present invention, after the terminal device obtains the first output power, the terminal device may obtain, according to the first output power, a real-time impedance (i.e., the target impedance) of a voice coil in the speaker when the output power of the speaker is the first output power.
Optionally, in the embodiment of the present invention, the terminal device may obtain the target impedance by using an impedance estimation method. Specifically, the terminal device may estimate the target impedance (i.e., the real-time impedance of the voice coil in the speaker) by a system identification method (including an impedance estimation method).
It should be noted that, in the embodiment of the present invention, the system identification method may be used to instruct the terminal device to estimate parameters of the speaker (specifically, to estimate values of the parameters of the speaker) according to the reference signal in the terminal device, and update the values of the parameters of the speaker in the terminal device. The parameters may include linear parameters and non-linear parameters, among others.
Optionally, in the embodiment of the present invention, the reference signal may be any reference signal that can be used for parameter estimation, such as a current error reference signal, a voltage error reference signal, a displacement error reference signal, or a speed error reference signal. The method can be determined according to actual use requirements, and the embodiment of the invention is not limited.
Optionally, in the embodiment of the present invention, the parameters of the speaker may include any parameters related to the performance of the speaker, such as a damping coefficient, a spring stiffness coefficient, and a magnetic force factor. The method can be determined according to actual use requirements, and the embodiment of the invention is not limited.
In the embodiment of the present invention, the process of estimating the parameters of the speaker is exemplarily described by taking the above reference signal as the voltage error reference signal as an example. As shown in fig. 4, a block diagram of a parameter estimation process based on a voltage error linear model (hereinafter, referred to as a linear model) is provided for the embodiment of the present invention. Wherein, the terminal device can realize the parameter estimation of the loudspeaker through the 10 steps of 401-410 described below.
401. The terminal device inputs a reference current in the linear model.
In the embodiment of the present invention, the reference current may be an output current of a speaker acquired by a terminal device.
402. The terminal device inputs the linear parameters of the loudspeaker in the linear model.
In an embodiment of the present invention, the linearity parameters of the speaker may include a damping coefficient, a spring stiffness coefficient, and a magnetic force factor.
403. The terminal device calculates a linear parameter force of the loudspeaker.
In an embodiment of the present invention, a relationship between the linear parameter force (denoted as F), the first current (i.e., the reference current, denoted as I), and the magnetic force factor (denoted as BI) may be represented as: f ═ I × BI.
In the embodiment of the invention, after the terminal device determines the reference current and the magnetic force factor, the terminal device can calculate the linear parameter force of the loudspeaker according to the reference current and the magnetic force factor.
404. The terminal device inputs the linear parametric forces into the linear mechanical model.
405. And the terminal equipment calculates the speed of the vibrating diaphragm of the loudspeaker through a linear mechanical model.
After the terminal device inputs the linear parameter force into the linear mechanical model, the terminal device may calculate the diaphragm velocity of the speaker according to the linear mechanical model.
406. The terminal device inputs the impedance of the voice coil in the linear model.
407. The terminal device predicts the voltage of the speaker (hereinafter referred to as predicted voltage).
In the embodiment of the invention, the voltage of the loudspeaker, the magnetic force factor, the diaphragm speed, the resistance and the reference of the loudspeakerThe current is relevant. Specifically, the voltage (denoted as V1), the magnetic force factor (denoted as BI), and the diaphragm velocity (denoted as V)Vibration device) Resistance of the speaker (denoted as R)E) And the relationship between the reference current (denoted as I) can be expressed as: v1 ═ BI × VVibration device+RE×I。
408. The terminal device inputs a reference voltage in the linear model.
In the embodiment of the present invention, the reference voltage may be an output voltage of a speaker acquired by a terminal device.
409. The terminal device calculates an error between the predicted voltage and the reference voltage (hereinafter simply referred to as a voltage error).
In the embodiment of the present invention, the relationship between the voltage error (denoted as X) and the predicted voltage (denoted as V1) and the reference voltage (denoted as V0) may be expressed as: and X is V1-V0.
410. And the terminal equipment updates the parameters.
In the embodiment of the present invention, after the terminal device obtains the voltage error, the terminal device may adjust values of parameters of the speaker according to the voltage error, and obtain the values of the parameters of the speaker when the voltage error is 0, and update the values of the parameters of the speaker to the values of the parameters of the speaker when the voltage error is 0 in the terminal device.
It should be noted that, in the embodiment of the present invention, the process of the terminal device estimating the values of the parameters of the speaker based on the voltage signal linear model is a process of the terminal device executing the system identification method.
In the embodiment of the present invention, the terminal device may obtain values of various parameters of the speaker when the voltage error is 0, and the parameters of the speaker include impedance of the voice coil, so that the terminal device may obtain real-time impedance of the voice coil (i.e., the target impedance) by using a system identification method.
It should be noted that, in the embodiment of the present invention, the circular box illustrated in fig. 4 may be used to indicate that the quantity represented by the box is a variable. Specifically, the circular box illustrated in 406 in fig. 4 may be used to indicate that the impedance of the voice coil indicated in 406 is a variable, and the circular box illustrated in 410 in fig. 4 may be used to indicate that the linearity parameter of the speaker indicated in 410 is a variable.
For example, as shown in fig. 3, the down-sampling module 307 may input the obtained output voltage of the speaker and the output voltage of the speaker to the impedance estimation module 311 (the impedance estimation module 311 may include a voltage signal linear model as shown in fig. 5 for obtaining the temperature of the voice coil), and then the impedance estimation module 311 may obtain the real-time impedance (i.e., the target impedance) of the voice coil when the output power of the speaker is the first output power (which may be obtained according to the output voltage of the speaker and the output current of the speaker) by using a system identification method.
And S2, the terminal equipment acquires the target temperature corresponding to the target impedance according to the corresponding relation between the impedance and the temperature.
In the embodiment of the present invention, after the terminal device obtains the target impedance, the terminal device may obtain the target temperature corresponding to the target impedance according to the corresponding relationship between the impedance and the temperature and the target impedance.
Optionally, in the embodiment of the present invention, the terminal device may obtain the voice coil temperature (i.e., the target temperature) by using a temperature estimation method.
Optionally, in the embodiment of the present invention, a relationship between the temperature of the voice coil and the impedance of the voice coil may be a linear relationship. Specifically, the voice coil temperature (denoted as T)Sound) And the impedance of the voice coil (denoted as R)Sound) The relationship between can be expressed as: t isSound=aRSound+ b, where a and b are both constants, and a ≠ 0.
For example, as shown in fig. 3, after the impedance estimation module 311 acquires the impedance of the voice coil when the output power of the speaker is the first output power, the impedance estimation module 311 may input the impedance to the temperature estimation module 312, and since the impedance of the voice coil is acquired according to the output power of the speaker (for example, the first output power) acquired in real time by the down-sampling module 307, the temperature estimation module 312 may acquire the temperature of the voice coil (the temperature of the voice coil when the output power of the speaker is the first output power, that is, the target temperature) based on the impedance of the voice coil according to the relationship between the impedance of the voice coil and the temperature of the voice coil.
The second method comprises the following steps: the terminal device may obtain the target temperature (including the voice coil temperature and the magnet temperature) according to the output power of the speaker (i.e., the first output power) obtained by the terminal device and the temperature model.
In the second method, in the embodiment of the present invention, the step S202 may be specifically implemented by the step S11 described below.
And S11, the terminal equipment acquires the target temperature according to the first output power and the temperature model.
Wherein the target temperature includes a voice coil temperature and a magnet temperature.
In this embodiment of the present invention, after the terminal device obtains the first output power, the terminal device may obtain the target temperature (including the voice coil temperature and the magnet temperature) according to the first output power and the temperature model.
Optionally, in an embodiment of the present invention, the temperature model may be a thermal model.
Specifically, the thermal model may include two sets of circuits, each set of circuits includes a capacitor and a resistor (hereinafter, referred to as an RC circuit). One set of RC circuits may be used to obtain the voice coil temperature and the other set of RC circuits may be used to obtain the magnet temperature.
For example, as shown in fig. 3, after the down-sampling module 307 obtains the output current of the speaker and the output voltage of the speaker, the down-sampling module 307 may input the output voltage and the output current into the temperature model 310, and the temperature model 310 obtains the first output power according to the output current and the output voltage, and then obtains the voice coil temperature and the magnet temperature (i.e., the target temperature) when the output power of the speaker is the first output power according to the relationship between the first output power and the temperature of the speaker.
And S203, the terminal equipment adjusts the input power of the loudspeaker according to the target temperature.
In the embodiment of the present invention, after the terminal device obtains the target temperature, the terminal device may determine whether the input power of the speaker meets the use requirement of the speaker according to the target temperature, and if the input power of the speaker does not meet the use requirement of the speaker, the terminal device may adjust the input power of the speaker so that the input power of the speaker meets the use requirement of the speaker.
In the embodiment of the present invention, the requirement of the speaker is that the speaker can work normally, and the temperature of the speaker is within the maximum safe temperature of the speaker.
In the embodiment of the present invention, the input power of the speaker refers to the power of an audio signal input to the speaker in the terminal device.
It can be understood that, in the embodiment of the present invention, the input power of the audio signal adjusted by the terminal device is the input power of the audio signal to be played in the terminal device.
In this embodiment of the present invention, in S202, the terminal device may obtain the target temperature by different methods, and the target temperature obtained by different methods is the temperature of different components of the speaker, so the method for the terminal device to adjust the input power of the speaker according to the temperature is also different. That is, in the embodiment of the present invention, based on the above S202, the above S203 may also be implemented in different manners. Specifically, S203 may be implemented in one or two of the following manners.
In the embodiment of the present invention, the target temperature in the first embodiment is a temperature of a voice coil in a speaker (hereinafter, referred to as a voice coil temperature). The target temperature in the second embodiment includes a voice coil temperature and a temperature of a magnet in the speaker (hereinafter referred to as a magnet temperature).
The first method is as follows: after the terminal device obtains the target temperature (i.e., the voice coil temperature), the terminal device may compare the target temperature with a temperature threshold of the speaker (hereinafter, referred to as a temperature threshold), and in a case where the target temperature is greater than or equal to the temperature threshold, switch the gain of the target audio signal input to the speaker from a first value to a second value, and since the first value is greater than the second value, the input power of the speaker may be reduced.
Corresponding to the first method and the first method, as shown in fig. 5, the input power control method provided in the embodiment of the present invention may specifically include the following steps S501 to S504.
S501, the terminal device obtains first output power.
The first output power may be an output power of a speaker in the terminal device.
In the embodiment of the present invention, for the detailed description of the above S501, reference may be specifically made to the description of the above S201 in the embodiment of the present invention, and details are not described herein again.
And S502, the terminal equipment acquires the target impedance according to the first output power.
The target impedance may be an impedance of the voice coil when the output power of the speaker is the first output power.
In the embodiment of the present invention, for the detailed description of the above S502, reference may be specifically made to the description of the above S1 in the embodiment of the present invention, and details are not described herein again.
S503, the terminal equipment acquires a target temperature corresponding to the target impedance according to the corresponding relation between the impedance and the temperature.
In the embodiment of the present invention, for the detailed description of the above S503, reference may be specifically made to the description of the above S2 in the embodiment of the present invention, and details are not described herein again.
And S504, under the condition that the target temperature is greater than or equal to the temperature threshold, the terminal equipment switches the gain of the target audio signal input to the loudspeaker from a first value to a second value so as to reduce the input power of the loudspeaker.
Wherein the first value may be greater than the second value.
In the embodiment of the present invention, after the terminal device obtains the target temperature, the terminal device may compare the target temperature with a temperature threshold, and when the target temperature is greater than or equal to the temperature threshold, the terminal device switches the gain of the target audio signal input to the speaker from a first value to a second value, which may reduce the input power of the speaker to adjust the input power of the speaker, so that the temperature of the speaker is reduced below the temperature threshold, and the speaker is further ensured not to be damaged.
It should be noted that, in the embodiment of the present invention, a frequency band of the frequency of the target audio signal is the same as a frequency band of the frequency of the audio signal corresponding to the first output power.
In the embodiment of the present invention, the temperature threshold may be a maximum temperature corresponding to the speaker when the speaker is working normally. I.e. it can be understood that the temperature threshold is the maximum safe temperature of the loudspeaker.
Optionally, in the embodiment of the present invention, the temperature threshold may be a preset value in the terminal device. The temperature threshold may be preset in the terminal device by the manufacturer of the terminal device according to the operating performance of the speaker. The method can be determined according to actual use requirements, and the embodiment of the invention is not limited.
Optionally, in this embodiment of the present invention, the first value may be a value preset in the terminal device, and the first value may be preset in the terminal device by a manufacturer of the terminal device according to the performance of the speaker. The method can be determined according to actual use requirements, and the embodiment of the invention is not limited.
Optionally, in this embodiment of the present invention, the second value may be a value smaller than the first value preset in the terminal device.
Optionally, in this embodiment of the present invention, the second value may be a ratio of a limit voltage of the speaker to an input voltage of the speaker.
In an embodiment of the present invention, the limit voltage of the speaker may be an input voltage of the corresponding speaker when the temperature of the voice coil is equal to the temperature threshold (that is, the temperature of the voice coil is the maximum safe temperature of the speaker).
Specifically, in the embodiment of the present invention, the second value may be represented as a limit voltage (denoted as V) of the speaker0) Input voltage (denoted as V) to the loudspeakeri) To a ratio of (i) to (ii)
Figure BDA0001965595350000081
For example, as shown in fig. 3, assuming that the temperature limiting module 313 determines that the temperature of the speaker is greater than or equal to the maximum safe temperature of the speaker, the temperature limiting module 313 may input the comparison result to the power limiting module 309, determine the maximum input power (hereinafter, may be referred to as limiting power) of the speaker according to the maximum safe temperature of the speaker by the power limiting module 309, input the limiting power to the limit voltage calculating module 314, obtain the limiting voltage by the limit voltage calculating module 314, input the limiting voltage to the gain calculating module 315, obtain the ratio (i.e., the second value) between the limiting voltage and the input voltage of the speaker (the input voltage obtained by the gain calculating module 315 from the band-pass filter 302) by the gain calculating module 315, feed the ratio back to the gain processing module 303, and finally adjust the gain of the target audio signal input to the speaker to the ratio by the gain processing module 303, thus, the input power of the speaker can be adjusted by adjusting the gain of the target audio signal.
In the embodiment of the present invention, since the first value is greater than the second value, after the terminal device switches the gain of the target audio signal input to the speaker from the first value to the second value, the gain of the target audio signal input to the speaker can be reduced, so that the input power of the speaker can be reduced, and the temperature of the speaker can be reduced, thereby ensuring that the speaker is not damaged.
In the embodiment of the present invention, the terminal device may obtain, according to the first output power obtained by the terminal device, the impedance (i.e., the target impedance) of the voice coil when the output power of the speaker is the first output power, so as to obtain, according to the correspondence between the impedance and the temperature, a target temperature (i.e., the real-time temperature of the voice coil) corresponding to the target impedance, and thus, the terminal device may determine whether to adjust the input power of the speaker according to the target temperature. Therefore, the terminal equipment can accurately adjust the input power of the loudspeaker according to the real-time temperature of the voice coil, so that the output power of the loudspeaker is in a proper range. Therefore, the terminal equipment can control the temperature of the loudspeaker in real time and accurately, so that the temperature of the loudspeaker is in a safety range, and the loudspeaker is prevented from being damaged.
The second method comprises the following steps: the terminal device may obtain a target allowable input power (hereinafter, referred to as a target allowable input power) of the speaker according to a target temperature (including a voice coil temperature and a magnet temperature) obtained by the terminal device, and then compare a first input power of the speaker with the target allowable input power, and in a case where the first input power is greater than or equal to the target allowable input power, switch a gain of a target audio signal input to the speaker from a first value to a second value, and since the first value is greater than the second value, the input power of the speaker may be reduced.
Corresponding to the second method and the second mode, as shown in fig. 6, the input power control method provided in the embodiment of the present invention may specifically include the following steps S601 to S605.
S601, the terminal device obtains first input power.
The first input power may be an input power of the speaker when the output power of the speaker is the first output power.
In the embodiment of the present invention, when the terminal device inputs the audio signal in the terminal device to the speaker, the speaker may output the sound signal corresponding to the audio signal to the outside of the terminal device, and at this time, the terminal device may obtain the input power (hereinafter referred to as the first input power) of the audio signal input to the speaker.
Optionally, in this embodiment of the present invention, the audio signal input to the speaker may be any possible signal such as a voltage signal or a current signal. The method can be determined according to actual use requirements, and the embodiment of the invention is not limited.
Optionally, in this embodiment of the present invention, assuming that the audio signal input to the speaker is an audio signal in the form of a voltage, the terminal device may obtain the voltage of the audio signal input to the speaker by using a down-sampling method, so as to obtain the input power (i.e., the first input power) of the audio signal input to the speaker.
For example, in the embodiment of the present invention, taking the audio signal input to the speaker as an audio signal in the form of a voltage as an example, when the terminal device acquires the voltage of the audio signal input to the speaker, the terminal device may acquire the first input power according to a relationship between the input power and the voltage and the resistance.
In the embodiment of the invention, the input power (denoted as P)Into) Voltage (denoted as U)Into) And resistance (denoted as R)0) The relationship between can be expressed as:
Figure BDA0001965595350000091
specifically, assume that the voltage of the audio signal input to the speaker acquired by the terminal device is U1The resistance of the loudspeaker is R1Then the first input power (denoted as P)1) Can be as follows:
Figure BDA0001965595350000092
illustratively, as shown in fig. 3, after the terminal device obtains the voltage of the audio signal input to the speaker through the down-sampling module 307, the voltage may be input to the input power calculating module 308, and the input power calculating module 308 calculates the input power according to the relationship between the input power, the input voltage, and the resistance impedance of the speaker
Figure BDA0001965595350000093
The input power of the speaker (i.e., the first input power described above) is obtained.
S602, the terminal device obtains first output power.
The first output power may be an output power of a speaker in the terminal device.
In the embodiment of the present invention, for the detailed description of the above S601, reference may be specifically made to the description of the above S201 in the embodiment of the present invention, and details are not described herein again.
And S603, the terminal equipment acquires the target temperature according to the first output power and the temperature model.
Wherein the target temperature includes a voice coil temperature and a magnet temperature.
In the embodiment of the present invention, for the detailed description of the above S602, reference may be specifically made to the description of the above S11 in the embodiment of the present invention, and details are not described herein again.
And S604, the terminal equipment acquires the target allowable input power of the loudspeaker according to the target temperature.
In the embodiment of the present invention, after the terminal device obtains the target temperature, the terminal device may obtain the target allowable input power of the speaker according to the target temperature.
It should be noted that, in the embodiment of the present invention, the target allowable input power may be a maximum allowable input power of the speaker at the target temperature.
Optionally, in the embodiment of the present invention, the terminal device may obtain the target allowable input power by using a temperature model.
For example, in the embodiment of the present invention, the terminal device uses a temperature model, and the target allowable input power may be obtained according to the temperature of the voice coil, the temperature of the magnet, and the impedance of the voice coil and the impedance of the magnet.
In the embodiment of the invention, the target allowable input power (denoted as P)Allow for) Voice coil temperature (denoted as T)Sound) Magnet temperature (denoted as T)Magnetic field) Impedance of voice coil (denoted as R)Sound) And magnet impedance (denoted as R)Magnetic field) The relationship between can be expressed as:
Figure BDA0001965595350000101
illustratively, as shown in fig. 3, the down-sampling module 307 inputs the acquired voltage of the audio signal input to the speaker to the calculation input power module 308, and acquires the input power of the speaker (i.e., the first input power) according to the relationship between the input power and the input voltage and the resistance of the speaker by the calculation input power module 308 and inputs the input power to the power limiting module 309; the temperature model 310 inputs the obtained target allowable input power to the power limit module 309; the power limiting module 309 compares the first input power with the target allowable input power, and the terminal device may adjust the input power of the speaker in the case that the input power is greater than or equal to the target allowable input power.
And S605, under the condition that the first input power is larger than or equal to the target allowable input power, the terminal equipment switches the gain of the target audio signal input to the loudspeaker from a first value to a second value so as to reduce the input power of the loudspeaker.
Wherein the first value may be greater than the second value.
In the embodiment of the present invention, after the terminal device determines that the first input power is greater than or equal to the target allowable input power, the terminal device may switch the gain of the target audio signal input to the speaker by the terminal device from the first value to the second value, so that the input power of the speaker may be reduced.
It should be noted that, in the embodiment of the present invention, a frequency band of the frequency of the target audio signal is the same as a frequency band of the frequency of the audio signal corresponding to the first output power.
In the embodiment of the present invention, for the detailed description of the first numerical value and the second numerical value, reference may be made to the related description of the first numerical value and the second numerical value in the above S504, and details are not repeated here.
In the embodiment of the present invention, since the first value is greater than or equal to the second value, after the terminal device switches the gain of the target audio signal input to the speaker from the first value to the second value, the gain of the target audio signal input to the speaker can be reduced, so that the input power of the speaker can be reduced, and the temperature of the speaker can be reduced.
Illustratively, as shown in fig. 3, the down-sampling module 307 inputs the voltage of the audio signal input to the speaker to the calculation input power module 308, obtains the input power (i.e., the first input power) input to the speaker according to the relationship between the input power, the input voltage, and the resistance of the speaker by the calculation input power module 308, and inputs the first input power to the power limiting module 309; and the target allowable input power of the speaker it acquires is input to the power limiting module 309 by the temperature model 310; then the power limiting module 309 compares the first input power with the target allowable input power, if the first input power is greater than or equal to the target allowable input power, the power limiting module 309 determines the target allowable input power as the maximum input power of the speaker (hereinafter may be referred to as limiting power), and inputs the limiting power into the calculation limiting voltage module 314, and then the calculation limiting voltage module 314 obtains the limiting voltage and inputs the limiting voltage into the gain calculating module 315, and then the gain calculating module 315 obtains the ratio (i.e. the second value) of the limiting voltage and the input voltage of the speaker (the input voltage obtained by the gain calculating module 315 from the band-pass filter 302), and then feeds the ratio back to the gain processing module 303, and finally the gain processing module 303 adjusts the gain of the target audio signal input to the speaker to the ratio, thus, the input power of the speaker can be adjusted by adjusting the gain of the target audio signal.
It should be noted that, in the embodiment of the present invention, the execution sequence between S601 and S602-S604 may not be limited. That is, in the embodiment of the present invention, S601 may be executed first, and then S602 to S604 may be executed; or executing S602-S604 first and then executing S601; s601 and S602-S604 may also be performed simultaneously. In fig. 6, S601 is executed first, and then S602 to S604 are executed as an exemplary illustration.
In the embodiment of the present invention, the terminal device may obtain the target temperature according to the first output power (that is, the real-time temperature of the voice coil when the output power of the speaker is the first output power), and according to the target temperature, the terminal device may obtain the target allowable input power of the speaker, so that the terminal device may accurately adjust the input power of the speaker according to the target allowable input power and the first input power obtained by the terminal device, and thus, the output power of the speaker is in an appropriate range. Therefore, the terminal equipment can control the temperature of the loudspeaker in real time and accurately, so that the temperature of the loudspeaker is in a safety range, and the loudspeaker is prevented from being damaged.
The embodiment of the invention provides an input power control method, because a terminal device can acquire the output power of a loudspeaker (namely, the first output power) in real time, the terminal device can acquire the real-time temperature of the loudspeaker (namely, the target temperature) when the output power of the loudspeaker is the first output power according to the corresponding relation between the output power of the loudspeaker and the temperature of the loudspeaker, and then the terminal device determines whether the input power of the loudspeaker is proper or not according to the target temperature and adjusts the input power of the loudspeaker, so that the output power of the loudspeaker is controlled to be in a proper range. Therefore, the terminal equipment can control the temperature of the loudspeaker in real time and accurately, so that the temperature of the loudspeaker is in a safety range, and the loudspeaker is prevented from being damaged.
Optionally, in this embodiment of the present invention, the terminal device may support outputting audio signals in multiple frequency bands. Taking a frequency band (hereinafter referred to as a target frequency band) of a plurality of frequency bands as an example, the terminal device may obtain, within a target duration, a number of times (hereinafter referred to as a first number) that the terminal device adjusts input power of a speaker corresponding to the target frequency band, and a number of times (hereinafter referred to as a second number) that the terminal device obtains output power corresponding to the target frequency band, so that a probability (which may be a ratio of the first number to the second number, hereinafter referred to as a target probability) of adjusting input power of the speaker within the target frequency band may be obtained according to the first number and the second number, and thus, the terminal device may obtain a probability of adjusting input power of the speaker within each frequency band.
For example, referring to fig. 2, as shown in fig. 7, the input power control method provided in the embodiment of the present invention may further include, after S203, the following S204 and S205.
S204, the terminal device obtains a first frequency corresponding to the target frequency band and a second frequency corresponding to the target frequency band.
The target frequency band may be a frequency band where a target audio signal input to the speaker is located, the first number may be a number of times of adjusting input power of the speaker within a target duration, and the second number may be a number of times of obtaining the first output power.
In this embodiment of the present invention, the terminal device may obtain, within the target duration, the number of times (i.e., the first number of times) that the terminal device in the target frequency band adjusts the input power of the speaker and the number of times (i.e., the second number of times) that the terminal device obtains the first output power.
Optionally, in this embodiment of the present invention, the target duration may be a preset numerical value in the terminal device. The value may be preset in the terminal device by the manufacturer of the terminal device according to the performance of the speaker. The method can be determined according to actual use requirements, and the embodiment of the invention is not limited.
Optionally, in the embodiment of the present invention, the target time period may be any possible time period, such as 5 minutes, 10 minutes, or 15 minutes. The method can be determined according to actual use requirements, and the embodiment of the invention is not limited.
Optionally, in this embodiment of the present invention, the audio signal may be a single-frequency audio signal or a multi-frequency audio signal. A multi-frequency audio signal may correspond to a frequency band or a plurality of frequency bands. That is, the terminal device may support a plurality of frequency bands, and the plurality of frequency bands may include at least two of a low frequency band, a middle frequency band, and a high frequency band.
Optionally, in the embodiment of the present invention, in a case that the terminal device supports two frequency bands, the target frequency band may be any one of a low frequency band and a medium frequency band; in the case that the terminal device includes three frequency bands, the target frequency band may be any one of a low frequency band, a medium frequency band, and a high frequency band. The method can be determined according to actual use requirements, and the embodiment of the invention is not limited.
Illustratively, as shown in fig. 3, 302 in fig. 3 includes three band pass filters, each of which can pass audio signals of one frequency band. For example, the three band pass filters in 302 of fig. 3 described above can pass the audio signals of the three frequency bands of the low frequency band, the middle frequency band, and the high frequency band, respectively. In this way, the terminal device may determine the frequency band in which the audio signal is located according to the band-pass filter that passes the audio signal.
And S205, the terminal equipment acquires the target probability according to the first times and the second times.
The target probability may be a probability of adjusting an input power of a speaker in the target frequency band.
In this embodiment of the present invention, after the terminal device obtains the first number and the second number, the terminal device may obtain, according to the first number and the second number, a probability (that is, the target probability) that the terminal device adjusts the input power of the speaker in the target frequency band.
Optionally, in an embodiment of the present invention, the target probability may be a ratio of the first number of times to the second number of times.
For example, as shown in fig. 3, the terminal device may obtain the target probability through the probability statistics module 315.
Optionally, in the embodiment of the present invention, after the terminal device acquires the target probability, the terminal device may input the target probability into a target interface, so as to display the probability that the terminal device adjusts the audio signal in the target frequency band to the user, so that the real performance of the speaker can be accurately reflected to the user.
Optionally, in this embodiment of the present invention, the target interface may be an interface corresponding to an "attribute" option of a speaker in the terminal device, or may also be a specific interface used for displaying information of adjusting the input power of the speaker by the terminal device in the terminal device, for example, an interface corresponding to a log generated by the speaker. The method can be determined according to actual use requirements, and the embodiment of the invention is not limited.
Optionally, in the embodiment of the present invention, the terminal device may obtain probabilities of adjusting the audio signal in each frequency band supported by the terminal device, so that all of the probabilities may be input to the target interface, and the probabilities of adjusting the audio signal in the target frequency band by the terminal device are displayed to the user, so that the real performance of the speaker may be accurately reflected to the user.
In the embodiment of the invention, by the method, the terminal equipment can acquire the probability of the terminal equipment for adjusting the audio signals in each frequency band, so that the terminal equipment can output the probabilities to a user, and the user can determine which frequency bands of the audio signals can cause the temperature of the loudspeaker to be too high according to the probabilities, so that the user can process the audio signals in the frequency bands, the temperature of the loudspeaker is in a safe range, and the loudspeaker is prevented from being damaged.
In the embodiment of the present invention, the input power control method shown in the above drawings is exemplarily described with reference to one drawing in the embodiment of the present invention. In specific implementation, the input power control shown in the above drawings may also be implemented in combination with any other drawings that may be combined and are illustrated in the above embodiments, and details are not described here again.
As shown in fig. 8, an input power control apparatus 800 according to an embodiment of the present invention includes an obtaining module 801 and a control module 802. An obtaining module 801, configured to obtain a first output power, and obtain a target temperature according to the first output power; and a control module 802, configured to adjust input power of a speaker in the terminal device according to the target temperature obtained by the obtaining module 801. The first output power is the output power of the loudspeaker, and the target temperature is the temperature of the loudspeaker when the output power of the loudspeaker is the first output power.
Optionally, the target temperature is a temperature of a voice coil in the speaker. An obtaining module 801, specifically configured to obtain a target impedance according to the first output power; and acquiring a target temperature corresponding to the target impedance according to the corresponding relation between the impedance and the temperature. Wherein, the target impedance is a real-time impedance of the voice coil when the output power of the speaker is the first output power.
Optionally, the control module 802 is specifically configured to switch the gain of the target audio signal input to the speaker from a first value to a second value when the target temperature is greater than or equal to the temperature threshold, so as to reduce the input power of the speaker. Wherein the first value is greater than the second value.
Optionally, the target temperature includes a temperature of a voice coil in the speaker and a temperature of a magnet in the speaker. The obtaining module 801 is specifically configured to obtain the target temperature according to the first output power and the temperature model.
Optionally, the obtaining module 801 is further configured to obtain a first input power before the control module 802 adjusts the input power of the speaker according to the target temperature; the control module 802 is specifically configured to obtain a target allowable input power of the speaker according to the target temperature; and switching the gain of the target audio signal input to the speaker from a first value to a second value to reduce the input power to the speaker if the first input power is greater than or equal to the target allowable input power. The first input power is the input power of the loudspeaker when the output power of the loudspeaker is the first output power, and the first value is larger than the second value.
Optionally, the obtaining module 801 is further configured to obtain a first number corresponding to the target frequency band and a second number corresponding to the target frequency band; and obtaining the target probability according to the first times and the second times. The target frequency band is a frequency band where a target audio signal input into the loudspeaker is located, the first times are times for adjusting the input power of the loudspeaker within a target duration, the second times are times for acquiring the first output power, and the target probability is a probability for adjusting the input power of the loudspeaker within the target frequency band.
The input power control device provided by the embodiment of the invention can realize each process executed by the terminal equipment in the embodiment of the input power control method, and can achieve the same technical effect, and the details are not repeated here in order to avoid repetition.
An embodiment of the present invention provides an input power control apparatus, where the input power control apparatus may obtain an output power of a speaker (i.e., the first output power) in real time, so that a terminal device may obtain a real-time temperature of the speaker (i.e., the target temperature) when the output power of the speaker is the first output power according to a corresponding relationship between the output power of the speaker and the temperature of the speaker, and then determine whether the input power of the speaker is appropriate according to the target temperature, and adjust the input power of the speaker, so as to control the output power of the speaker within an appropriate range. Therefore, the terminal equipment can control the temperature of the loudspeaker in real time and accurately, so that the temperature of the loudspeaker is in a safety range, and the loudspeaker is prevented from being damaged.
Fig. 9 is a hardware schematic diagram of a terminal device for implementing various embodiments of the present invention. As shown in fig. 9, the terminal device 100 includes, but is not limited to: radio frequency unit 101, network module 102, audio output unit 103, input unit 104, sensor 105, display unit 106, user input unit 107, interface unit 108, memory 109, processor 110, and power supply 111. Those skilled in the art will appreciate that the terminal device configuration shown in fig. 9 does not constitute a limitation of the terminal device, and that the terminal device may include more or fewer components than shown, or combine certain components, or a different arrangement of components. In the embodiment of the present invention, the terminal device includes, but is not limited to, a mobile phone, a tablet computer, a notebook computer, a palm computer, a vehicle-mounted terminal, a wearable device, a pedometer, and the like.
The processor 110 is configured to obtain a first output power, and obtain a target temperature according to the first output power; and adjusting the input power of a loudspeaker in the terminal equipment according to the target temperature. Wherein the first output power is the output power of the loudspeaker; the target temperature is the temperature of the speaker when the output power of the speaker is the first output power.
The embodiment of the present invention provides a terminal device, wherein the terminal device may obtain the output power of a speaker (i.e. the first output power) in real time, so that the terminal device may obtain the real-time temperature of the speaker (i.e. the target temperature) when the output power of the speaker is the first output power according to the corresponding relationship between the output power of the speaker and the temperature of the speaker, and then determine whether the input power of the speaker is appropriate according to the target temperature, and adjust the input power of the speaker, thereby controlling the output power of the speaker to be within an appropriate range. Therefore, the terminal equipment can control the temperature of the loudspeaker in real time and accurately, so that the temperature of the loudspeaker is in a safety range, and the loudspeaker is prevented from being damaged.
It should be understood that, in the embodiment of the present invention, the radio frequency unit 101 may be used for receiving and sending signals during a message transmission or call process, and specifically, after receiving downlink data from a base station, the downlink data is processed by the processor 110; in addition, the uplink data is transmitted to the base station. Typically, radio frequency unit 101 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 101 can also communicate with a network and other devices through a wireless communication system.
The terminal device provides wireless broadband internet access to the user through the network module 102, such as helping the user send and receive e-mails, browse webpages, access streaming media, and the like.
The audio output unit 103 may convert audio data received by the radio frequency unit 101 or the network module 102 or stored in the memory 109 into an audio signal and output as sound. Also, the audio output unit 103 may also provide audio output related to a specific function performed by the terminal device 100 (e.g., a call signal reception sound, a message reception sound, etc.). The audio output unit 103 includes a speaker, a buzzer, a receiver, and the like.
The input unit 104 is used to receive an audio or video signal. The input unit 104 may include a Graphics Processing Unit (GPU) 1041 and a microphone 1042, and the graphics processor 1041 processes image data of a still picture or video obtained by an image capturing device (e.g., a camera) in a video capturing mode or an image capturing mode. The processed image frames may be displayed on the display unit 106. The image frames processed by the graphic processor 1041 may be stored in the memory 109 (or other storage medium) or transmitted via the radio frequency unit 101 or the network module 102. The microphone 1042 may receive sound and may be capable of processing such sound into audio data. The processed audio data may be converted into a format output transmittable to a mobile communication base station via the radio frequency unit 101 in case of a phone call mode.
The terminal device 100 also includes at least one sensor 105, such as a light sensor, a motion sensor, and other sensors. Specifically, the light sensor includes an ambient light sensor that can adjust the brightness of the display panel 1061 according to the brightness of ambient light, and a proximity sensor that can turn off the display panel 1061 and/or the backlight when the terminal device 100 is moved to the ear. As one of the motion sensors, the accelerometer sensor can detect the magnitude of acceleration in each direction (generally three axes), detect the magnitude and direction of gravity when stationary, and can be used to identify the terminal device posture (such as horizontal and vertical screen switching, related games, magnetometer posture calibration), vibration identification related functions (such as pedometer, tapping), and the like; the sensors 105 may also include fingerprint sensors, pressure sensors, iris sensors, molecular sensors, gyroscopes, barometers, hygrometers, thermometers, infrared sensors, etc., which are not described in detail herein.
The display unit 106 is used to display information input by a user or information provided to the user. The display unit 106 may include a display panel 1061, and the display panel 1061 may be configured in the form of a Liquid Crystal Display (LCD), an organic light-emitting diode (OLED), or the like.
The user input unit 107 may be used to receive input numeric or character information and generate key signal inputs related to user settings and function control of the terminal device. Specifically, the user input unit 107 includes a touch panel 1071 and other input devices 1072. Touch panel 1071, also referred to as a touch screen, may collect touch operations by a user on or near the touch panel 1071 (e.g., operations by a user on or near touch panel 1071 using a finger, stylus, or any suitable object or attachment). The touch panel 1071 may include two parts of a touch detection device and a touch controller. The touch detection device detects the touch direction of a user, detects a signal brought by touch operation and transmits the signal to the touch controller; the touch controller receives touch information from the touch sensing device, converts the touch information into touch point coordinates, sends the touch point coordinates to the processor 110, and receives and executes commands sent by the processor 110. In addition, the touch panel 1071 may be implemented in various types, such as a resistive type, a capacitive type, an infrared ray, and a surface acoustic wave. In addition to the touch panel 1071, the user input unit 107 may include other input devices 1072. Specifically, other input devices 1072 may include, but are not limited to, a physical keyboard, function keys (e.g., volume control keys, switch keys, etc.), a trackball, a mouse, and a joystick, which are not described in detail herein.
Further, the touch panel 1071 may be overlaid on the display panel 1061, and when the touch panel 1071 detects a touch operation thereon or nearby, the touch panel 1071 transmits the touch operation to the processor 110 to determine the type of the touch event, and then the processor 110 provides a corresponding visual output on the display panel 1061 according to the type of the touch event. Although in fig. 9, the touch panel 1071 and the display panel 1061 are two independent components to implement the input and output functions of the terminal device, in some embodiments, the touch panel 1071 and the display panel 1061 may be integrated to implement the input and output functions of the terminal device, and is not limited herein.
The interface unit 108 is an interface for connecting an external device to the terminal apparatus 100. For example, the external device may include a wired or wireless headset port, an external power supply (or battery charger) port, a wired or wireless data port, a memory card port, a port for connecting a device having an identification module, an audio input/output (I/O) port, a video I/O port, an earphone port, and the like. The interface unit 108 may be used to receive input (e.g., data information, power, etc.) from an external device and transmit the received input to one or more elements within the terminal apparatus 100 or may be used to transmit data between the terminal apparatus 100 and the external device.
The memory 109 may be used to store software programs as well as various data. The memory 109 may mainly include a storage program area and a storage data area, wherein the storage program area may store an operating system, an application program required by at least one function (such as a sound playing function, an image playing function, etc.), and the like; the storage data area may store data (such as audio data, a phonebook, etc.) created according to the use of the cellular phone, and the like. Further, the memory 109 may include high speed random access memory, and may also include non-volatile memory, such as at least one magnetic disk storage device, flash memory device, or other volatile solid state storage device.
The processor 110 is a control center of the terminal device, connects various parts of the entire terminal device by using various interfaces and lines, and performs various functions of the terminal device and processes data by running or executing software programs and/or modules stored in the memory 109 and calling data stored in the memory 109, thereby performing overall monitoring of the terminal device. Processor 110 may include one or more processing units; alternatively, the processor 110 may integrate an application processor, which mainly handles operating systems, user interfaces, application programs, etc., and a modem processor, which mainly handles wireless communications. It will be appreciated that the modem processor described above may not be integrated into the processor 110.
The terminal device 100 may further include a power supply 111 (such as a battery) for supplying power to each component, and optionally, the power supply 111 may be logically connected to the processor 110 through a power management system, so as to implement functions of managing charging, discharging, and power consumption through the power management system.
In addition, the terminal device 100 includes some functional modules that are not shown, and are not described in detail here.
It should be noted that, in this document, the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, article, or apparatus. Without further limitation, an element defined by the phrase "comprising an … …" does not exclude the presence of other like elements in a process, method, article, or apparatus that comprises the element.
Through the above description of the embodiments, those skilled in the art will clearly understand that the method of the above embodiments can be implemented by software plus a necessary general hardware platform, and certainly can also be implemented by hardware, but in many cases, the former is a better implementation manner. Based on such understanding, the technical solutions of the present invention may be embodied in the form of a software product, which is stored in a storage medium (such as ROM/RAM, magnetic disk, optical disk) and includes instructions for enabling a terminal device (such as a mobile phone, a sound box device, an audio device, a computer, a server, an air conditioner, or a network device) to execute the method according to the embodiments of the present invention.
While the present invention has been described with reference to the embodiments shown in the drawings, the present invention is not limited to the embodiments, which are illustrative and not restrictive, and it will be apparent to those skilled in the art that various changes and modifications can be made therein without departing from the spirit and scope of the invention as defined in the appended claims.

Claims (11)

1. An input power control method applied to an input power control device, the method comprising:
acquiring first output power, wherein the first output power is the output power of a loudspeaker in terminal equipment;
acquiring a target temperature according to the first output power, wherein the target temperature is the temperature of the loudspeaker when the output power of the loudspeaker is the first output power;
adjusting the input power of the loudspeaker according to the target temperature;
acquiring a first frequency corresponding to a target frequency band and a second frequency corresponding to the target frequency band, wherein the target frequency band is a frequency band where a target audio signal input into the loudspeaker is located, the first frequency is the frequency for adjusting the input power of the loudspeaker within a target time length, and the second frequency is the frequency for acquiring the first output power;
and acquiring a target probability according to the first frequency and the second frequency, wherein the target probability is the probability of adjusting the input power of the loudspeaker in the target frequency band.
2. The method of claim 1, wherein the target temperature is a temperature of a voice coil in the speaker;
the obtaining a target temperature according to the first output power includes:
obtaining a target impedance according to the first output power, wherein the target impedance is the real-time impedance of the voice coil when the output power of the loudspeaker is the first output power;
and acquiring the target temperature corresponding to the target impedance according to the corresponding relation between the impedance and the temperature.
3. The method of claim 2, wherein said adjusting the input power to the speaker based on the target temperature comprises:
switching a gain of a target audio signal input to the speaker from a first value to a second value to reduce an input power of the speaker if the target temperature is greater than or equal to a temperature threshold, the first value being greater than the second value.
4. The method of claim 1, wherein the target temperature comprises a temperature of a voice coil in the speaker and a temperature of a magnet in the speaker;
the obtaining a target temperature according to the first output power includes:
and acquiring the target temperature according to the first output power and the temperature model.
5. The method of claim 4, wherein before adjusting the input power to the speaker based on the target temperature, the method further comprises:
acquiring first input power, wherein the first input power is the input power of the loudspeaker when the output power of the loudspeaker is the first output power;
the adjusting the input power of the loudspeaker according to the target temperature comprises:
acquiring target allowable input power of the loudspeaker according to the target temperature;
switching a gain of a target audio signal input to the speaker from a first value to a second value to reduce the input power of the speaker in a case where the first input power is greater than or equal to the target allowable input power, the first value being greater than the second value.
6. An input power control device is characterized by comprising an acquisition module and a control module;
the obtaining module is configured to obtain a first output power, and obtain a target temperature according to the first output power, where the first output power is an output power of a speaker in a terminal device, and the target temperature is a temperature of the speaker when the output power of the speaker is the first output power;
the control module is used for adjusting the input power of the loudspeaker according to the target temperature acquired by the acquisition module;
the acquisition module is further used for acquiring a first time corresponding to a target frequency band and a second time corresponding to the target frequency band; and acquiring a target probability according to the first frequency and the second frequency, wherein the target frequency is a frequency band where a target audio signal input into the loudspeaker is located, the first frequency is the frequency for adjusting the input power of the loudspeaker within a target time length, the second frequency is the frequency for acquiring the first output power, and the target probability is the probability for adjusting the input power of the loudspeaker within the target frequency band.
7. The input power control apparatus of claim 6, wherein the target temperature is a temperature of a voice coil in the speaker;
the obtaining module is specifically configured to obtain a target impedance according to the first output power; and acquiring the target temperature corresponding to the target impedance according to the corresponding relation between the impedance and the temperature, wherein the target impedance is the real-time impedance of the voice coil when the output power of the loudspeaker is the first output power.
8. The input power control apparatus of claim 7, wherein the control module is specifically configured to switch the gain of the target audio signal input to the speaker from a first value to a second value to reduce the input power of the speaker when the target temperature is greater than or equal to a temperature threshold, and the first value is greater than the second value.
9. The input power control apparatus of claim 6, wherein the target temperature includes a temperature of a voice coil in the speaker and a temperature of a magnet in the speaker;
the obtaining module is specifically configured to obtain the target temperature according to the first output power and the temperature model.
10. The input power control apparatus of claim 9, wherein the obtaining module is further configured to obtain a first input power before the control module adjusts the input power of the speaker according to the target temperature, where the first input power is the input power of the speaker when the output power of the speaker is the first output power;
the control module is specifically configured to obtain a target allowable input power of the speaker according to the target temperature; and switching the gain of the target audio signal input to the loudspeaker from a first value to a second value to reduce the input power of the loudspeaker when the first input power is greater than or equal to the target allowable input power, wherein the first value is greater than the second value.
11. A terminal device, characterized in that it comprises an input power control apparatus according to any one of claims 6 to 10.
CN201910100735.4A 2019-01-31 2019-01-31 Input power control method and device and terminal equipment Active CN109905812B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201910100735.4A CN109905812B (en) 2019-01-31 2019-01-31 Input power control method and device and terminal equipment

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201910100735.4A CN109905812B (en) 2019-01-31 2019-01-31 Input power control method and device and terminal equipment

Publications (2)

Publication Number Publication Date
CN109905812A CN109905812A (en) 2019-06-18
CN109905812B true CN109905812B (en) 2021-03-19

Family

ID=66944670

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201910100735.4A Active CN109905812B (en) 2019-01-31 2019-01-31 Input power control method and device and terminal equipment

Country Status (1)

Country Link
CN (1) CN109905812B (en)

Families Citing this family (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111385714B (en) * 2020-03-17 2021-07-27 维沃移动通信有限公司 Method for determining voice coil temperature of loudspeaker, electronic device and storage medium
CN111479198B (en) * 2020-04-09 2021-11-12 维沃移动通信有限公司 Audio signal processing method and electronic equipment
CN113965851B (en) * 2020-07-02 2024-02-09 上海艾为电子技术股份有限公司 Loudspeaker diaphragm displacement control circuit and control method and electronic equipment
CN112271979B (en) * 2020-10-30 2022-04-26 瑞声新能源发展(常州)有限公司科教城分公司 Motor protection method and device based on temperature measurement and calculation, electronic equipment and medium
CN112965551A (en) * 2021-01-29 2021-06-15 维沃移动通信有限公司 Heating control method and device for loudspeaker
CN116055951B (en) * 2022-07-20 2023-10-20 荣耀终端有限公司 Signal processing method and electronic equipment

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104662398A (en) * 2012-07-20 2015-05-27 雅马哈株式会社 Temperature measurement device and protection device for acoustic signal converter
CN107734427A (en) * 2017-09-13 2018-02-23 广州市迪士普信息科技有限公司 A kind of guard method and device according to voice coil loudspeaker voice coil temperature rise adjust automatically speaker volume
CN107911778A (en) * 2017-10-30 2018-04-13 努比亚技术有限公司 A kind of playback method based on loudspeaker in parallel, mobile terminal and readable storage medium storing program for executing
CN109040910A (en) * 2018-07-11 2018-12-18 北海和思科技有限公司 One kind is judged based on signal time and is adjusted intelligent sound box tuning system and its control method

Family Cites Families (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20130077796A1 (en) * 2011-09-28 2013-03-28 Texas Instruments Incorporated Thermal Protection for Loudspeakers
US9226071B2 (en) * 2012-12-13 2015-12-29 Maxim Integrated Products, Inc. Direct measurement of an input signal to a loudspeaker to determine and limit a temperature of a voice coil of the loudspeaker
US9794687B2 (en) * 2015-09-28 2017-10-17 Cirrus Logic, Inc. Loudspeaker protection circuitry and methods

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104662398A (en) * 2012-07-20 2015-05-27 雅马哈株式会社 Temperature measurement device and protection device for acoustic signal converter
CN107734427A (en) * 2017-09-13 2018-02-23 广州市迪士普信息科技有限公司 A kind of guard method and device according to voice coil loudspeaker voice coil temperature rise adjust automatically speaker volume
CN107911778A (en) * 2017-10-30 2018-04-13 努比亚技术有限公司 A kind of playback method based on loudspeaker in parallel, mobile terminal and readable storage medium storing program for executing
CN109040910A (en) * 2018-07-11 2018-12-18 北海和思科技有限公司 One kind is judged based on signal time and is adjusted intelligent sound box tuning system and its control method

Also Published As

Publication number Publication date
CN109905812A (en) 2019-06-18

Similar Documents

Publication Publication Date Title
CN109905812B (en) Input power control method and device and terminal equipment
CN109788402B (en) Audio signal processing method and audio signal processing device
CN111385714B (en) Method for determining voice coil temperature of loudspeaker, electronic device and storage medium
CN110045807B (en) Voltage control method and terminal
CN110399000B (en) Mobile terminal and temperature control method thereof
CN110830861B (en) Telephone receiver control method and device and electronic equipment
CN108196815B (en) Method for adjusting call sound and mobile terminal
CN109739394B (en) SAR value processing method and mobile terminal
CN111562896A (en) Screen projection method and electronic equipment
CN109547894B (en) Amplitude adjustment method and device for electroacoustic device and mobile terminal
CN111459447B (en) Volume adjustment display method and electronic equipment
CN111093137B (en) Volume control method, volume control equipment and computer readable storage medium
CN111225315B (en) Audio playing device, audio playing method and electronic equipment
CN110099434B (en) Power adjustment method, terminal equipment and computer readable storage medium
CN111614329A (en) Power amplifier, electronic equipment, voltage control method and device
CN109782970B (en) Display method and terminal
CN109041190B (en) Power control method and terminal
CN108879856B (en) Charging method and terminal
CN111541975B (en) Audio signal adjusting method and electronic equipment
CN109348366B (en) Method for adjusting volume by using electrical parameters and mobile terminal
CN109270352B (en) Amplitude adjusting method and sound generating device
CN110086483B (en) Communication control method and terminal
CN109450508B (en) Antenna determination method and device and mobile terminal
CN108924319B (en) Proximity detection method and mobile terminal
CN108900942B (en) Play control method and electronic equipment

Legal Events

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