A low-power mobile terminal battery protection method, system, device and storage medium

By detecting the battery voltage of the mobile terminal in real time, predicting the peak control signal based on the preset configuration relationship, and performing envelope detection and attenuation control on the audio input signal, the hysteresis and insufficient volume output problems of the mobile terminal battery power protection method are solved, and flexible functional configuration and improved user experience are achieved.

CN115835088BActive Publication Date: 2025-09-12SHANGHAI FOURSEMI SEMICON CO LTD
View PDF 1 Cites 0 Cited by

Patent Information

Application Number
CN202211297449.X
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2022-10-21
Publication Date
2025-09-12
Estimated Expiration
2042-10-21

AI Technical Summary

Technical Problem

The existing mobile terminal battery power protection method has fixed functional modules, low volume output and delayed protection, resulting in a poor user experience.

Method used

By detecting the battery voltage of the mobile terminal in real time, predicting the peak control signal based on the preset configuration relationship, and performing envelope detection and attenuation control on the audio input signal, dynamic adjustment of the signal attenuation ratio is achieved.

Benefits of technology

Pre-protection is performed on the audio output signal before it is output to the speaker to avoid overall volume attenuation, improve user experience, and support flexible function module configuration and later upgrades.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN115835088B_ABST
    Figure CN115835088B_ABST
Patent Text Reader

Abstract

The embodiment of the present invention discloses a method, system, device and storage medium for protecting the battery of a low-power mobile terminal. The embodiment of the present invention is applied to an audio signal processing end outside the chip. First, the voltage of the mobile terminal battery is detected in real time to obtain a voltage detection result. Then, the voltage detection result is combined with a preset configuration relationship to predict a peak control signal. Then, envelope detection is performed on the audio input signal to update the audio signal envelope value. Based on the peak control signal and the updated audio signal envelope value, a signal attenuation ratio is obtained. Finally, according to the signal attenuation ratio, the audio input signal is attenuated and controlled to obtain an audio output signal. The embodiment of the present invention is applied to an audio signal processing end outside the chip, realizing flexible configuration of functional modules. By predicting the peak control signal, pre-protection is realized before the audio output signal is output at the speaker end. And only part of the peak signal is attenuated to ensure the output of the overall volume.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The embodiments of the present invention relate to the field of signal processing technology, and in particular to a method, system, device and storage medium for protecting a low-power mobile terminal battery. Background Art

[0002] High-power amplifier chips are increasingly used in mobile devices. To boost speaker volume, the output power of power amplifiers is increasing. To achieve better sound dynamics, the instantaneous output voltage is also increasing. However, due to the inherent output capacity limitations of mobile device batteries, high instantaneous power output can cause dramatic fluctuations in battery voltage. This excessive instantaneous output power can cause the battery voltage in the mobile device to drop below normal, leading to unexpected power loss.

[0003] Existing methods for protecting the battery power of mobile terminals are usually implemented on the chip by attenuating the chip-side output gain or limiting the chip-side current output peak. Since the functional modules of the existing methods implemented on the chip are solidified in the chip, the parameter configuration method is not flexible enough and is not convenient for subsequent upgrades. At the same time, if the chip-side output gain is directly attenuated or the chip-side current output peak is limited, although it can prevent battery power loss to a certain extent, it will cause a significant attenuation of the overall volume, resulting in a poor user experience. In addition, the existing methods for protecting the battery power of mobile terminals only trigger the battery protection function through real-time feedback of the battery voltage, and there is a lag in the protection of the battery power. Summary of the Invention

[0004] To this end, an embodiment of the present invention provides a low-power mobile terminal battery protection method to solve the problems of existing mobile terminal battery power protection methods such as solidified functional modules, too low overall volume output, and delayed protection.

[0005] In order to achieve the above objectives, the embodiments of the present invention provide the following technical solutions:

[0006] According to a first aspect of an embodiment of the present invention, a low-power mobile terminal battery protection method is provided. The method is applied to an off-chip audio signal processing end, and the method includes:

[0007] Detect the battery voltage of the mobile terminal in real time and obtain the voltage detection result;

[0008] Using the voltage detection result in combination with a preset configuration relationship, a peak control signal is predicted;

[0009] Performing envelope detection on the audio input signal and updating the audio signal envelope value;

[0010] Obtaining a signal attenuation ratio based on the peak control signal and the updated audio signal envelope value;

[0011] The audio input signal is attenuated according to the signal attenuation ratio to obtain an audio output signal.

[0012] Furthermore, the peak control signal is predicted by combining the voltage detection result with a preset configuration relationship, including:

[0013] Using the voltage detection result, the control signal amplitude is matched from the preset configuration relationship, where the preset configuration relationship is a correspondence between the voltage detection result and the control signal amplitude;

[0014] The peak control signal is obtained according to the amplitude of the control signal.

[0015] Furthermore, before performing envelope detection on the audio input signal and updating the audio signal envelope value, the method includes:

[0016] Pre-set envelope initial value, envelope coefficient initial value, attack coefficient, release coefficient, hysteresis counter initial value and hysteresis time;

[0017] The hysteresis count threshold is obtained by multiplying the hysteresis time by the sampling rate of the audio input signal.

[0018] Furthermore, performing envelope detection on the audio input signal and updating the audio signal envelope value includes:

[0019] Obtaining each sampling point of the audio input signal according to the audio sampling rate of the audio input signal;

[0020] For each of the sampling points, obtaining an envelope value of the audio signal before updating of the sampling point;

[0021] Taking the absolute value of the audio input signal corresponding to the current sampling point to obtain the absolute value of the audio signal at the sampling point;

[0022] Determining whether the absolute value of the audio signal is greater than the envelope value of the audio signal before updating;

[0023] If the absolute value of the audio signal is greater than the envelope value of the audio signal before updating, the attack coefficient is used as the envelope coefficient, and the count in the hysteresis counter is reset to the initial value of the hysteresis counter;

[0024] If the absolute value of the audio signal is less than or equal to the envelope value of the audio signal before updating, the count in the hysteresis counter is increased by 1;

[0025] Determining whether the count in the updated hysteresis counter reaches the hysteresis count threshold;

[0026] If the count in the updated hysteresis counter reaches the hysteresis count threshold, using the release coefficient as the envelope coefficient;

[0027] If the count in the updated hysteresis counter does not reach the hysteresis count threshold, using the initial value of the envelope coefficient as the envelope coefficient;

[0028] The audio signal envelope value corresponding to the current sampling point is calculated according to the obtained envelope coefficient. The calculation formula of the audio signal envelope value is:

[0029] E t =ax×cf+E t-1 ×(1-cf)

[0030] Among them, E t is the envelope value of the audio signal corresponding to the current sampling point, ax is the absolute value of the audio signal corresponding to the current sampling point, cf is the envelope coefficient, E t-1 The audio signal envelope value before updating.

[0031] Furthermore, for each of the sampling points, obtaining the envelope value of the audio signal before updating of the sampling point includes:

[0032] For each of the sampling points, determining whether the sampling point is the first sampling point of the audio input signal;

[0033] If the sampling point is the first sampling point of the audio input signal, the initial envelope value is used as the envelope value of the audio signal before updating;

[0034] If the sampling point is not the first sampling point of the audio input signal, the audio signal envelope value at the previous sampling point is used as the audio signal envelope value before updating.

[0035] Furthermore, obtaining a signal attenuation ratio based on the peak control signal and the updated audio signal envelope value includes:

[0036] The peak control signal is divided by the audio signal envelope value to obtain a signal attenuation ratio.

[0037] Furthermore, performing attenuation control on the audio input signal according to the signal attenuation ratio to obtain an audio output signal includes:

[0038] Determining whether the signal attenuation ratio is less than a preset ratio;

[0039] If the signal attenuation ratio is less than a preset ratio, attenuating the amplitude of the audio input signal corresponding to the signal attenuation ratio to the amplitude of the peak control signal to obtain an attenuated audio output signal;

[0040] If the signal attenuation ratio is greater than or equal to a preset ratio, the amplitude of the audio input signal corresponding to the signal attenuation ratio is not attenuated, and the audio input signal is directly used as an audio output signal.

[0041] According to a second aspect of an embodiment of the present invention, a low-battery mobile terminal battery protection system is provided, the system comprising:

[0042] The voltage detection module is used to detect the battery voltage of the mobile terminal in real time and obtain the voltage detection result;

[0043] A peak control signal prediction module, configured to predict a peak control signal by combining the voltage detection result with a preset configuration relationship;

[0044] An envelope detection module is used to perform envelope detection on the audio input signal and update the envelope value of the audio signal;

[0045] a signal attenuation ratio calculation module, configured to obtain a signal attenuation ratio based on the peak control signal and the updated audio signal envelope value;

[0046] The signal attenuation control module is used to perform attenuation control on the audio input signal according to the signal attenuation ratio to obtain an audio output signal.

[0047] Furthermore, the peak control signal is predicted by combining the voltage detection result with a preset configuration relationship, including:

[0048] Using the voltage detection result, the control signal amplitude is matched from the preset configuration relationship, where the preset configuration relationship is a correspondence between the voltage detection result and the control signal amplitude;

[0049] The peak control signal is obtained according to the amplitude of the control signal.

[0050] Furthermore, before performing envelope detection on the audio input signal and updating the audio signal envelope value, the method includes:

[0051] Pre-set envelope initial value, envelope coefficient initial value, attack coefficient, release coefficient, hysteresis counter initial value and hysteresis time;

[0052] The hysteresis count threshold is obtained by multiplying the hysteresis time by the sampling rate of the audio input signal.

[0053] Furthermore, performing envelope detection on the audio input signal and updating the audio signal envelope value includes:

[0054] Obtaining each sampling point of the audio input signal according to the audio sampling rate of the audio input signal;

[0055] For each of the sampling points, obtaining an envelope value of the audio signal before updating of the sampling point;

[0056] Taking the absolute value of the audio input signal corresponding to the current sampling point to obtain the absolute value of the audio signal at the sampling point;

[0057] Determining whether the absolute value of the audio signal is greater than the envelope value of the audio signal before updating;

[0058] If the absolute value of the audio signal is greater than the envelope value of the audio signal before updating, the attack coefficient is used as the envelope coefficient, and the count in the hysteresis counter is reset to the initial value of the hysteresis counter;

[0059] If the absolute value of the audio signal is less than or equal to the envelope value of the audio signal before updating, the count in the hysteresis counter is increased by 1;

[0060] Determining whether the count in the updated hysteresis counter reaches the hysteresis count threshold;

[0061] If the count in the updated hysteresis counter reaches the hysteresis count threshold, using the release coefficient as the envelope coefficient;

[0062] If the count in the updated hysteresis counter does not reach the hysteresis count threshold, using the initial value of the envelope coefficient as the envelope coefficient;

[0063] The audio signal envelope value corresponding to the current sampling point is calculated according to the obtained envelope coefficient. The calculation formula of the audio signal envelope value is:

[0064] E t =ax×cf+E t-1 ×(1-cf)

[0065] Among them, E t is the envelope value of the audio signal corresponding to the current sampling point, ax is the absolute value of the audio signal corresponding to the current sampling point, cf is the envelope coefficient, E t-1 The audio signal envelope value before updating.

[0066] Furthermore, for each of the sampling points, obtaining the envelope value of the audio signal before updating of the sampling point includes:

[0067] For each of the sampling points, determining whether the sampling point is the first sampling point of the audio input signal;

[0068] If the sampling point is the first sampling point of the audio input signal, the initial envelope value is used as the envelope value of the audio signal before updating;

[0069] If the sampling point is not the first sampling point of the audio input signal, the audio signal envelope value at the previous sampling point is used as the audio signal envelope value before updating.

[0070] Furthermore, obtaining a signal attenuation ratio based on the peak control signal and the updated audio signal envelope value includes:

[0071] The peak control signal is divided by the audio signal envelope value to obtain a signal attenuation ratio.

[0072] Furthermore, performing attenuation control on the audio input signal according to the signal attenuation ratio to obtain an audio output signal includes:

[0073] Determining whether the signal attenuation ratio is less than a preset ratio;

[0074] If the signal attenuation ratio is less than a preset ratio, attenuating the amplitude of the audio input signal corresponding to the signal attenuation ratio to the amplitude of the peak control signal to obtain an attenuated audio output signal;

[0075] If the signal attenuation ratio is greater than or equal to a preset ratio, the amplitude of the audio input signal corresponding to the signal attenuation ratio is not attenuated, and the audio input signal is directly used as an audio output signal.

[0076] According to a third aspect of an embodiment of the present invention, there is provided a low-battery mobile terminal battery protection device, the device comprising: a processor and a memory;

[0077] The memory is used to store one or more program instructions;

[0078] The processor is used to run one or more program instructions to execute the steps of the low-power mobile terminal battery protection method as described in any one of the above items.

[0079] According to a fourth aspect of an embodiment of the present invention, a computer-readable storage medium is provided, on which a computer program is stored. When the computer program is executed by a processor, the steps of a low-power mobile terminal battery protection method as described in any one of the above items are implemented.

[0080] The embodiments of the present invention have the following advantages:

[0081] The embodiment of the present invention discloses a low-power mobile terminal battery protection method, system, device and storage medium. The embodiment of the present invention is applied to an audio signal processing end outside the chip. First, the voltage of the mobile terminal battery is detected in real time to obtain a voltage detection result. Then, the voltage detection result is combined with a preset configuration relationship to predict a peak control signal. Then, envelope detection is performed on the audio input signal to update the audio signal envelope value. Based on the peak control signal and the updated audio signal envelope value, a signal attenuation ratio is obtained. Finally, according to the signal attenuation ratio, the audio input signal is attenuated to obtain an audio output signal. The embodiment of the present invention is applied to an audio signal processing end outside the chip. It is implemented by a software algorithm, does not occupy the chip design cost, realizes flexible configuration of functional modules, and is convenient for later upgrades and maintenance. By predicting the peak control signal, pre-protection is realized before the audio output signal is output at the speaker end. And only part of the peak signal is attenuated to ensure the output of the overall volume. BRIEF DESCRIPTION OF THE DRAWINGS

[0082] To more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the following briefly introduces the drawings required for the embodiments or the description of the prior art. Obviously, the drawings described below are merely exemplary, and those skilled in the art can derive other implementation drawings based on the provided drawings without inventive effort.

[0083] The structures, proportions, sizes, etc. illustrated in this specification are intended only to complement the contents disclosed herein and to facilitate understanding and reading by persons familiar with the art. They are not intended to limit the conditions under which the present invention may be implemented and therefore have no substantive technical significance. Any structural modifications, changes in proportions, or adjustments in sizes, without affecting the efficacy and objectives of the present invention, shall still fall within the scope of the technical contents disclosed herein.

[0084] Figure 1 A schematic diagram of the logical structure of a low-power mobile terminal battery protection system provided by an embodiment of the present invention;

[0085] Figure 2 A flowchart of a low-power mobile terminal battery protection method provided by an embodiment of the present invention;

[0086] Figure 3 A schematic diagram of a process for performing envelope detection on an audio input signal according to an embodiment of the present invention;

[0087] Figure 4 A schematic diagram of a flow chart for performing attenuation control on an audio input signal according to an embodiment of the present invention;

[0088] Figure 5An envelope detection effect diagram provided by an embodiment of the present invention;

[0089] Figure 6 This is a diagram of the attenuation control effect provided by an embodiment of the present invention. DETAILED DESCRIPTION

[0090] The following describes the implementation of the present invention using specific embodiments. Those skilled in the art will readily understand the other advantages and benefits of the present invention from the disclosure herein. Obviously, the embodiments described are only a portion of the present invention, not all of it. All other embodiments derived by persons of ordinary skill in the art based on the embodiments of the present invention without inventive effort are intended to fall within the scope of protection of the present invention.

[0091] refer to Figure 1 An embodiment of the present invention provides a low-battery mobile terminal battery protection system, which specifically includes: a voltage detection module 1, a peak control signal prediction module 2, an envelope detection module 3, a signal attenuation ratio calculation module 4 and a signal attenuation control module 5.

[0092] Furthermore, the voltage detection module 1 is used to detect the battery voltage of the mobile terminal in real time to obtain a voltage detection result; the peak control signal prediction module 2 is used to use the voltage detection result in combination with a preset configuration relationship to predict the peak control signal; the envelope detection module 3 is used to perform envelope detection on the audio input signal and update the audio signal envelope value; the signal attenuation ratio calculation module 4 is used to obtain the signal attenuation ratio based on the peak control signal and the updated audio signal envelope value; the signal attenuation control module 5 is used to perform attenuation control on the audio input signal according to the signal attenuation ratio to obtain an audio output signal.

[0093] An embodiment of the present invention discloses a low-power mobile terminal battery protection system. The embodiment of the present invention is applied to an audio signal processing end outside the chip. First, the voltage of the mobile terminal battery is detected in real time to obtain a voltage detection result. Then, the voltage detection result is combined with a preset configuration relationship to predict a peak control signal. Then, envelope detection is performed on the audio input signal to update the audio signal envelope value. Based on the peak control signal and the updated audio signal envelope value, a signal attenuation ratio is obtained. Finally, according to the signal attenuation ratio, the audio input signal is attenuated to obtain an audio output signal. The embodiment of the present invention is applied to an audio signal processing end outside the chip and is implemented by a software algorithm. It does not occupy the chip design cost, realizes flexible configuration of functional modules, and is convenient for later upgrades and maintenance. By predicting the peak control signal, pre-protection is realized before the audio output signal is output at the speaker end. And only part of the peak signal is attenuated to ensure the output of the overall volume.

[0094] Corresponding to the low-battery mobile terminal battery protection system disclosed above, an embodiment of the present invention also discloses a low-battery mobile terminal battery protection method. The following describes in detail the low-battery mobile terminal battery protection method disclosed in an embodiment of the present invention in conjunction with the low-battery mobile terminal battery protection system described above. The mobile terminal in the embodiment of the present application can be a mobile phone, a laptop computer, or the like.

[0095] refer to Figure 2 The following describes the specific steps of a low-power mobile terminal battery protection method provided by an embodiment of the present invention.

[0096] The voltage detection module 1 detects the battery voltage of the mobile terminal in real time to obtain a voltage detection result.

[0097] The above steps specifically include: reading the mobile terminal battery voltage in real time through a driver or directly through a battery voltage reading interface provided in the mobile terminal system, and feeding back the voltage to the peak control signal prediction module 2 .

[0098] The peak control signal prediction module 2 uses the voltage detection result in combination with the preset configuration relationship to predict the peak control signal.

[0099] The above steps specifically include: using the detected voltage detection result to match the control signal amplitude from the preset configuration relationship, and obtaining the peak control signal based on the matched control signal amplitude. The preset configuration relationship is the correspondence between the voltage detection result and the control signal amplitude. The preset configuration relationship will be configured according to the battery characteristics and speaker output voltage in the actual project. The preset configuration relationship can be further refined to add different amplitude limit methods for different signal frequency bands. Typical preset configuration relationships are shown in Table 1:

[0100] Voltage detection result (unit: volt) Control signal amplitude (unit: decibel) 4.2 -3 4.0 -3 3.8 -3.5 3.6 -3.8 3.4 -4 3.2 -4.2 3.0 -4.5

[0101] Table 1: Preset configuration relationships

[0102] The embodiment of the present invention predicts the peak control signal through the voltage detection result, and can predict the change of battery voltage before the audio output signal is output at the speaker end, thereby triggering the protection action in advance. This solves the problem that the existing low-power mobile terminal battery protection method only triggers the battery protection function by real-time feedback of the battery voltage, which has a lag in battery protection.

[0103] The envelope detection module 3 performs envelope detection on the audio input signal and updates the envelope value of the audio signal.

[0104] refer to Figure 3 and Figure 5The above steps specifically include: presetting the envelope initial value, envelope coefficient initial value, attack coefficient, release coefficient, hysteresis counter initial value and hysteresis time; usually the envelope initial value, envelope coefficient initial value and hysteresis counter initial value are set to 0, the attack coefficient is typically 1.0, and the attack coefficient can be any value less than or equal to 1 according to actual conditions; the release coefficient is typically 0.001, and the release coefficient can be selected between 0.00001 and 1.0 according to actual hardware; the hysteresis time is typically 0.02 seconds.

[0105] The hysteresis count threshold is obtained by multiplying the hysteresis time by the sampling rate of the audio input signal. For example, if the sampling rate of the audio input signal is 48000 Hz and the hysteresis time is 0.02 seconds, the hysteresis count threshold is calculated to be 960.

[0106] According to the audio sampling rate of the audio input signal, each sampling point of the audio input signal is obtained. If the sampling rate of the audio input signal is 48000 Hz, 48000 sampling points are obtained.

[0107] For each sampling point, determine whether the sampling point is the first sampling point of the audio input signal; if the sampling point is the first sampling point of the audio input signal, use the initial envelope value as the envelope value of the audio signal before updating; if the sampling point is not the first sampling point of the audio input signal, use the envelope value of the audio signal at the previous sampling point as the envelope value of the audio signal before updating.

[0108] Taking the absolute value of the audio input signal corresponding to the current sampling point to obtain the absolute value of the audio signal at the sampling point; determining whether the absolute value of the audio signal is greater than the envelope value of the audio signal before the update; if the absolute value of the audio signal is greater than the envelope value of the audio signal before the update, using the attack coefficient as the envelope coefficient, and resetting the count in the hysteresis counter to the initial value of the hysteresis counter; if the absolute value of the audio signal is less than or equal to the envelope value of the audio signal before the update, adding 1 to the count in the hysteresis counter; determining whether the count in the updated hysteresis counter reaches the hysteresis count threshold; if the count in the updated hysteresis counter reaches the hysteresis count threshold, using the release coefficient as the envelope coefficient; if the count in the updated hysteresis counter does not reach the hysteresis count threshold, using the initial value of the envelope coefficient as the envelope coefficient; calculating the envelope value of the audio signal corresponding to the sampling point based on the obtained envelope coefficient, the calculation formula of the audio signal envelope value is:

[0109] E t =ax×cf+E t-1 ×(1-cf)

[0110] Among them, E t is the envelope value of the audio signal corresponding to the current sampling point, ax is the absolute value of the audio signal corresponding to the current sampling point, cf is the envelope coefficient, E t-1The audio signal envelope value before updating.

[0111] The signal attenuation ratio calculation module 4 obtains the signal attenuation ratio based on the peak control signal and the updated audio signal envelope value.

[0112] refer to Figure 4 The above steps specifically include: dividing the peak control signal by the audio signal envelope value to obtain a signal attenuation ratio.

[0113] The signal attenuation control module 5 performs attenuation control on the audio input signal according to the signal attenuation ratio to obtain an audio output signal.

[0114] refer to Figure 4 and Figure 6 The above steps specifically include: determining whether the signal attenuation ratio is less than a preset ratio; if the signal attenuation ratio is less than the preset ratio, attenuating the amplitude of the audio input signal corresponding to the signal attenuation ratio to the amplitude of the peak control signal to obtain an attenuated audio output signal; if the signal attenuation ratio is greater than or equal to the preset ratio, not attenuating the amplitude of the audio input signal corresponding to the signal attenuation ratio, and directly using the audio input signal as the audio output signal.

[0115] The embodiments of the present invention attenuate audio input signals whose amplitude exceeds the peak control signal without affecting the amplitude of small and medium signals, thereby minimizing the impact on the overall output loudness of the speaker. This solves the problem of existing methods that attenuate the output gain at the chip end or limit the current output peak at the chip end, resulting in significant overall volume attenuation and a poor user experience.

[0116] An embodiment of the present invention discloses a method for protecting a low-power mobile terminal battery. The embodiment of the present invention is applied to an audio signal processing end outside the chip. First, the voltage of the mobile terminal battery is detected in real time to obtain a voltage detection result. Then, the voltage detection result is combined with a preset configuration relationship to predict a peak control signal. Then, envelope detection is performed on the audio input signal to update the audio signal envelope value. Based on the peak control signal and the updated audio signal envelope value, a signal attenuation ratio is obtained. Finally, according to the signal attenuation ratio, the audio input signal is attenuated to obtain an audio output signal. The embodiment of the present invention is applied to an audio signal processing end outside the chip and is implemented by a software algorithm. It does not occupy the chip design cost, realizes flexible configuration of functional modules, and is convenient for later upgrades and maintenance. By predicting the peak control signal, pre-protection is realized before the audio output signal is output at the speaker end. And only part of the peak signal is attenuated to ensure the output of the overall volume.

[0117] In addition, an embodiment of the present invention also provides a low-power mobile terminal battery protection device, which includes: a processor and a memory; the memory is used to store one or more program instructions; the processor is used to run one or more program instructions to execute the steps of a low-power mobile terminal battery protection method as described in any of the above items.

[0118] In addition, an embodiment of the present invention further provides a computer-readable storage medium having a computer program stored thereon. When the computer program is executed by a processor, the steps of a low-power mobile terminal battery protection method as described in any one of the above items are implemented.

[0119] In the embodiments of the present invention, the processor may be an integrated circuit chip having signal processing capabilities. The processor may be a general-purpose processor, a digital signal processor (DSP), an application-specific integrated circuit (ASIC), a field programmable gate array (FPGA), or other programmable logic devices, discrete gate or transistor logic devices, or discrete hardware components.

[0120] The methods, steps, and logic diagrams disclosed in the embodiments of the present invention can be implemented or executed. A general-purpose processor can be a microprocessor or any conventional processor. The steps of the methods disclosed in the embodiments of the present invention can be directly implemented and executed by a hardware decoding processor, or by a combination of hardware and software modules within the decoding processor. The software modules can be located in a storage medium well-established in the art, such as random access memory, flash memory, read-only memory, programmable read-only memory, electrically erasable programmable memory, or registers. The processor reads the information from the storage medium and, in conjunction with its hardware, completes the steps of the aforementioned methods.

[0121] The storage medium may be a memory and may be, for example, a volatile memory or a nonvolatile memory, or may include both volatile and nonvolatile memory.

[0122] Among them, the non-volatile memory can be a read-only memory (ROM), a programmable read-only memory (PROM), an erasable programmable read-only memory (EPROM), an electrically erasable programmable read-only memory (EEPROM), or a flash memory.

[0123] Volatile memory may be random access memory (RAM), which is used as an external cache memory. By way of example and not limitation, many forms of RAM are available, such as static random access memory (SRAM), dynamic random access memory (DRAM), synchronous dynamic random access memory (SDRAM), double data rate synchronous dynamic random access memory (DDRSDRAM), enhanced synchronous dynamic random access memory (ESDRAM), synchronous link dynamic random access memory (SLDRAM), and direct rambus random access memory (DRRAM).

[0124] The storage media described in the embodiments of the present invention are intended to include, but are not limited to, these and any other suitable types of memory.

[0125] Those skilled in the art will appreciate that in one or more of the above examples, the functions described herein can be implemented using a combination of hardware and software. When software is used, the corresponding functions can be stored in a computer-readable medium or transmitted as one or more instructions or codes on a computer-readable medium. Computer-readable media include computer storage media and communication media, wherein communication media includes any medium that facilitates the transmission of computer programs from one place to another. The storage medium can be any available medium that can be accessed by a general-purpose or special-purpose computer.

[0126] Although the present invention has been described in detail above using general descriptions and specific embodiments, it will be apparent to those skilled in the art that modifications and improvements may be made thereto. Therefore, such modifications and improvements, without departing from the spirit of the present invention, are intended to be within the scope of protection claimed herein.

Claims

1. A low-power mobile terminal battery protection method, characterized in that: The method is applied to an audio signal processing end outside the chip, and the method includes: Real-time detection of mobile terminal battery voltage to obtain voltage detection results; Using the voltage detection result in combination with a preset configuration relationship, a peak control signal is predicted; Perform envelope detection on the audio input signal and update the audio signal envelope value; Obtaining a signal attenuation ratio based on the peak control signal and the updated audio signal envelope value; performing attenuation control on the audio input signal according to the signal attenuation ratio to obtain an audio output signal; Multiplying the hysteresis time by the sampling rate of the audio input signal to obtain a hysteresis count threshold; Performing envelope detection on the audio input signal and updating the audio signal envelope value includes: Obtaining each sampling point of the audio input signal according to the audio sampling rate of the audio input signal; For each of the sampling points, obtaining an envelope value of the audio signal before updating of the sampling point; Taking the absolute value of the audio input signal corresponding to the current sampling point to obtain the absolute value of the audio signal at the sampling point; Determining whether the absolute value of the audio signal is greater than the envelope value of the audio signal before updating; If the absolute value of the audio signal is greater than the envelope value of the audio signal before updating, the attack coefficient is used as the envelope coefficient, and the count in the hysteresis counter is reset to the initial value of the hysteresis counter; If the absolute value of the audio signal is less than or equal to the envelope value of the audio signal before updating, the count in the hysteresis counter is increased by 1; Determining whether the count in the updated hysteresis counter reaches the hysteresis count threshold; If the count in the updated hysteresis counter reaches the hysteresis count threshold, using the release coefficient as the envelope coefficient; If the count in the updated hysteresis counter does not reach the hysteresis count threshold, using the initial value of the envelope coefficient as the envelope coefficient; The audio signal envelope value corresponding to the current sampling point is calculated according to the obtained envelope coefficient. The calculation formula of the audio signal envelope value is: ,in, is the audio signal envelope value corresponding to the current sampling point, is the absolute value of the audio signal corresponding to the current sampling point, is the envelope coefficient, The audio signal envelope value before updating.

2. A low-power mobile terminal battery protection method according to claim 1, characterized in that: The peak control signal is predicted by combining the voltage detection result with a preset configuration relationship, including: Using the voltage detection result, the control signal amplitude is matched from the preset configuration relationship, where the preset configuration relationship is a correspondence between the voltage detection result and the control signal amplitude; The peak control signal is obtained according to the amplitude of the control signal.

3. A low-power mobile terminal battery protection method according to claim 2, characterized in that: Performing envelope detection on the audio input signal and updating the audio signal envelope value includes: The envelope initial value, envelope coefficient initial value, attack coefficient, release coefficient, hysteresis counter initial value and hysteresis time are preset; the attack coefficient is typically 1.0, and the attack coefficient is any value less than or equal to 1; the release coefficient is typically 0.001, and the release coefficient is between 0.00001 and 1.0; the hysteresis time is typically 0.02 seconds.

4. A low-power mobile terminal battery protection method according to claim 3, characterized in that: For each of the sampling points, obtaining the envelope value of the audio signal before updating of the sampling point includes: For each of the sampling points, determining whether the sampling point is the first sampling point of the audio input signal; If the sampling point is the first sampling point of the audio input signal, the initial envelope value is used as the envelope value of the audio signal before updating; If the sampling point is not the first sampling point of the audio input signal, the audio signal envelope value at the previous sampling point is used as the audio signal envelope value before updating.

5. A low-power mobile terminal battery protection method according to claim 4, characterized in that: Obtaining a signal attenuation ratio based on the peak control signal and the updated audio signal envelope value, including: The peak control signal is divided by the audio signal envelope value to obtain a signal attenuation ratio.

6. A low-power mobile terminal battery protection method according to claim 5, characterized in that: The method further comprises: performing attenuation control on the audio input signal according to the signal attenuation ratio to obtain an audio output signal, comprising: Determining whether the signal attenuation ratio is less than a preset ratio; If the signal attenuation ratio is less than a preset ratio, attenuating the amplitude of the audio input signal corresponding to the signal attenuation ratio to the amplitude of the peak control signal to obtain an attenuated audio output signal; If the signal attenuation ratio is greater than or equal to a preset ratio, the amplitude of the audio input signal corresponding to the signal attenuation ratio is not attenuated, and the audio input signal is directly used as an audio output signal.

7. A low-power mobile terminal battery protection system, characterized in that: The system comprises: The voltage detection module is used to detect the battery voltage of the mobile terminal in real time and obtain the voltage detection result; A peak control signal prediction module, configured to predict a peak control signal by combining the voltage detection result with a preset configuration relationship; An envelope detection module is used to perform envelope detection on the audio input signal and update the envelope value of the audio signal; a signal attenuation ratio calculation module, configured to obtain a signal attenuation ratio based on the peak control signal and the updated audio signal envelope value; a signal attenuation control module, configured to perform attenuation control on the audio input signal according to the signal attenuation ratio to obtain an audio output signal; Performing envelope detection on the audio input signal and updating the audio signal envelope value includes: Obtaining each sampling point of the audio input signal according to the audio sampling rate of the audio input signal; For each of the sampling points, obtaining an envelope value of the audio signal before updating of the sampling point; Taking the absolute value of the audio input signal corresponding to the current sampling point to obtain the absolute value of the audio signal at the sampling point; Determining whether the absolute value of the audio signal is greater than the envelope value of the audio signal before updating; If the absolute value of the audio signal is greater than the envelope value of the audio signal before updating, the attack coefficient is used as the envelope coefficient, and the count in the hysteresis counter is reset to the initial value of the hysteresis counter; If the absolute value of the audio signal is less than or equal to the envelope value of the audio signal before updating, the count in the hysteresis counter is increased by 1; Determining whether the count in the updated hysteresis counter reaches the hysteresis count threshold; If the count in the updated hysteresis counter reaches the hysteresis count threshold, using the release coefficient as the envelope coefficient; If the count in the updated hysteresis counter does not reach the hysteresis count threshold, using the initial value of the envelope coefficient as the envelope coefficient; The audio signal envelope value corresponding to the current sampling point is calculated according to the obtained envelope coefficient. The calculation formula of the audio signal envelope value is: ,in, is the audio signal envelope value corresponding to the current sampling point, is the absolute value of the audio signal corresponding to the current sampling point, is the envelope coefficient, The audio signal envelope value before updating.

8. A low-power mobile terminal battery protection device, characterized in that: The device includes: a processor and a memory; The memory is used to store one or more program instructions; The processor is configured to run one or more program instructions to execute the steps of a low-power mobile terminal battery protection method according to any one of claims 1 to 6.

9. A computer-readable storage medium, characterized in that The computer-readable storage medium stores a computer program, and when the computer program is executed by the processor, the steps of the low-power mobile terminal battery protection method according to any one of claims 1 to 6 are implemented.

Citation Information

Patent Citations

  • Power amplification control circuit, mobile terminal and walkie-talkie

    CN108307270A