Nothing Special   »   [go: up one dir, main page]

CN115695640B - Shutdown prevention protection method and electronic equipment - Google Patents

Shutdown prevention protection method and electronic equipment Download PDF

Info

Publication number
CN115695640B
CN115695640B CN202110855575.1A CN202110855575A CN115695640B CN 115695640 B CN115695640 B CN 115695640B CN 202110855575 A CN202110855575 A CN 202110855575A CN 115695640 B CN115695640 B CN 115695640B
Authority
CN
China
Prior art keywords
electronic device
audio signal
input current
electronic equipment
audio
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
CN202110855575.1A
Other languages
Chinese (zh)
Other versions
CN115695640A (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.)
Huawei Technologies Co Ltd
Original Assignee
Huawei Technologies 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 Huawei Technologies Co Ltd filed Critical Huawei Technologies Co Ltd
Priority to CN202110855575.1A priority Critical patent/CN115695640B/en
Publication of CN115695640A publication Critical patent/CN115695640A/en
Application granted granted Critical
Publication of CN115695640B publication Critical patent/CN115695640B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Landscapes

  • Telephone Function (AREA)

Abstract

An anti-shutdown protection method and an electronic device. In the method, when the electronic equipment plays the audio, if the electronic equipment can detect that the battery voltage is lower than the voltage threshold and the electronic equipment predicts that the input current of the loudspeaker is higher than the current threshold, the electronic equipment adjusts the gain of the played audio signal, so that the power of the audio signal is reduced, and the power consumption for playing the audio is reduced. By implementing the technical scheme provided by the application, the electronic equipment can timely adjust the power of the audio played by the electronic equipment when the power supply quantity is low, so that the power consumption of an audio playing link is reduced, and the electronic equipment is prevented from being automatically powered off due to undervoltage.

Description

Shutdown prevention protection method and electronic equipment
Technical Field
The present application relates to electronic devices and electronic technologies, and in particular, to an anti-shutdown protection method and an electronic device.
Background
When electronic equipment such as mobile phones and flat panels are in a low-temperature and low-power state, the internal resistance of a battery in the electronic equipment can be increased. At this time, if the electronic device is playing audio, the current output by the audio link is larger, so that the internal resistance of the battery of the electronic device is excessively divided, and the system of the electronic device is undervoltage, and the electronic device is in screen flashing and shutdown.
Therefore, how to prevent the electronic device from flashing or turning off the electronic device on the premise of ensuring the audio playing effect is a problem to be solved urgently.
Disclosure of Invention
The application provides an anti-shutdown protection method and an electronic device, by the method provided by the embodiment of the application, under the scene of playing audio, if the output voltage of a battery of the electronic device is smaller than the preset threshold value of the battery voltage, when the input current of the loudspeaker predicted by the electronic equipment is larger than the current threshold value, the electronic equipment can reduce the gain of the audio signal, and the probability of shutdown or screen flashing of the electronic equipment in undervoltage can be effectively reduced.
In a first aspect, the present application provides an anti-shutdown protection method, which may include: when the electronic equipment plays the first audio, detecting the output voltage of a power supply in the electronic equipment; the electronic equipment predicts the input current of the loudspeaker according to a first audio signal, wherein the first audio signal is an audio signal generated by the electronic equipment when the electronic equipment plays the first audio; under the condition that the output voltage is smaller than the power voltage threshold and the input current is larger than the first current threshold, the electronic equipment reduces the gain of the first audio signal to obtain a second audio signal; the speaker of the electronic device plays the second audio signal.
Therefore, when the power supply is low or the electronic equipment is in a scene with high shutdown probability such as low temperature, the gain of audio played by the electronic equipment can be adjusted in time, the current of an audio playing link is reduced, and automatic shutdown of the electronic equipment due to undervoltage is avoided.
With reference to the first aspect, in one possible implementation manner, in a case that the output voltage is smaller than the power supply voltage threshold and the input current is greater than the first current threshold, the electronic device reduces the gain of the first audio signal to obtain the second audio signal; comprising the following steps: and under the condition that the output voltage is smaller than the power supply voltage threshold value and the input current is larger than the first current threshold value, the electronic equipment reduces the gain of the first audio signal by a first value to obtain a second audio signal.
Further, the electronic device may smoothly decrease the gain of the first audio signal by the first value.
In this way, the electronic device can reduce the current of the audio playback link in the electronic device by reducing the gain.
With reference to the first aspect, in a possible implementation manner, the method further includes: the electronic device determines a first value based on the input current and the output voltage.
In this way, the electronic device can determine how much the gain is specifically reduced.
With reference to the first aspect, in a possible implementation manner, after the electronic device predicts an input current of the speaker according to the first audio signal, the method further includes: when the output voltage is smaller than the power voltage threshold, the input current is larger than the second current threshold and smaller than the first current threshold, the electronic equipment reduces the gain of the first audio signal by a second value to obtain a third audio signal, and the second value is smaller than the first value; the speaker of the electronic device plays the third audio signal.
In this way, the electronic device can set the grading threshold of the input current of the loudspeaker, thereby realizing the gain grading control of the audio signal played by the electronic device.
With reference to the first aspect, in a possible implementation manner, after the electronic device predicts an input current of the speaker according to the first audio signal, the method further includes: when the output voltage is smaller than the power voltage threshold, the input current is larger than the third current threshold and smaller than the second current threshold, the electronic equipment reduces the gain of the first audio signal by a third value to obtain a fourth audio signal, and the third value is smaller than the second value; the speaker of the electronic device plays the fourth audio signal.
In this way, the electronic device can set the grading threshold of the input current of the loudspeaker, thereby realizing the gain grading control of the audio signal played by the electronic device.
With reference to the first aspect, in one possible implementation manner, a loudness at which the electronic device plays the second audio signal is smaller than a loudness at which the electronic device plays the first audio signal; the loudness of the third audio signal played by the electronic equipment is smaller than that of the first audio signal played by the electronic equipment; the loudness at which the electronic device plays the fourth audio signal is less than the loudness at which the electronic device plays the first audio signal.
With reference to the first aspect, in one possible implementation manner, the electronic device predicts an input current of the speaker according to the first audio signal, including: the electronic equipment inputs the first audio signal into a current prediction model to obtain the input current of a loudspeaker; the current prediction model can be obtained by training an audio signal and an input current of an actual loudspeaker in the electronic equipment, wherein the input of the current prediction model is the audio signal, and the output is the input current of the loudspeaker.
In this way, the electronic device can predict the input current of the speaker in real time through the prediction model.
With reference to the first aspect, in one possible implementation manner, when the electronic device plays the first audio, detecting an output voltage of a power supply in the electronic device includes: the electronic device obtains the output voltage of a battery in the electronic device from an audio power amplifier smartPA in the electronic device; or the electronic equipment acquires the output voltage of the battery in the electronic equipment from the power management unit in the electronic equipment.
In this way, the electronic device can obtain the output voltage of the power supply by different methods.
With reference to the first aspect, in a possible implementation manner, the method may further include: the electronic device obtains the actual input current of the speaker detected by the audio power amplifier smartPA. In this way, the electronic device can correct the predicted input current of the speaker.
With reference to the first aspect, in a possible implementation manner, after the electronic device predicts an input current of the speaker according to the first audio signal, the method may include: the electronic device corrects the input current of the loudspeaker according to the actual input current, and obtains corrected input current. In this way, the input current to the loudspeaker obtained by the electronic device can be made more accurate by correction.
Further, with reference to the first aspect, in a possible implementation manner, in a case where the output voltage is less than the power supply voltage threshold and the input current is greater than the first current threshold, the electronic device decreases the gain of the first audio signal to obtain the second audio signal, including: and under the condition that the output voltage is smaller than the power supply voltage threshold value and the corrected input current is larger than the first current threshold value, the electronic equipment reduces the gain of the first audio signal to obtain a second audio signal.
In a second aspect, the present application provides an electronic device, which may include: the system comprises a speaker, one or more processors, one or more memories coupled to the speaker, and one or more memories for storing computer program code comprising computer instructions that, when executed by the one or more processors, cause the electronic device to perform the shutdown prevention protection method in any of the possible implementations of the first aspect described above.
In a third aspect, an embodiment of the present application provides a computer storage medium, including computer instructions, which when executed on an electronic device, cause the electronic device to perform the shutdown prevention protection method in any one of the possible implementations of the first aspect.
In a fourth aspect, embodiments of the present application provide a computer program product, which when run on an electronic device, causes the electronic device to perform the shutdown prevention protection method in any of the possible implementations of the first aspect.
Drawings
Fig. 1A is a schematic structural diagram of an electronic device according to an embodiment of the present application;
Fig. 1B is a schematic structural diagram of a speaker in an electronic device according to an embodiment of the present application;
fig. 2 is a schematic software architecture of an electronic device according to an embodiment of the present application;
FIG. 3 is a schematic flow chart of an anti-shutdown protection method according to an embodiment of the present application;
FIG. 4 is a schematic diagram of a circuit connection according to an embodiment of the present application;
FIG. 5 is a schematic diagram of a waveform of a power supply voltage according to an embodiment of the present application;
FIG. 6 is a schematic circuit diagram of a voltage envelope according to an embodiment of the present application;
Fig. 7 is a schematic diagram of a power model of a speaker according to an embodiment of the present application;
FIG. 8A is a schematic diagram illustrating an implementation of an anti-shutdown protection method according to an embodiment of the present application;
Fig. 8B is a schematic diagram illustrating implementation of an anti-shutdown protection method according to an embodiment of the present application.
Detailed Description
The terminology used in the following embodiments of the application is for the purpose of describing particular embodiments only and is not intended to be limiting of the application. As used in the specification of the present application and the appended claims, the singular forms "a," "an," "the," and "the" are intended to include the plural forms as well, unless the context clearly indicates to the contrary. It should also be understood that the term "and/or" as used in this disclosure refers to and encompasses any or all possible combinations of one or more of the listed items.
The terms "first," "second," and the like, are used below for descriptive purposes only and are not to be construed as implying or implying relative importance or implicitly indicating the number of technical features indicated. Thus, a feature defining "a first" or "a second" may explicitly or implicitly include one or more such feature, and in the description of embodiments of the application, unless otherwise indicated, the meaning of "a plurality" is two or more.
When the electronic device is playing audio and the battery power of the electronic device is low, the electronic device is under-voltage, so that the electronic device is turned off. For example, the user is playing audio (e.g., playing music, or radio, or audio novels, etc.) using a mobile phone. When the battery of the mobile phone is in low power, the mobile phone can be automatically powered off. Thus, the user can not play the audio or perform other operations by using the mobile phone, and the user experience is low.
In some embodiments, the electronic device may obtain a battery temperature of the electronic device. If the temperature value acquired by the electronic equipment is lower than the temperature threshold value, the electronic equipment enters a low power consumption mode or is powered off. Or the electronic device may monitor the voltage of the battery or monitor the load of the battery. If the battery is lower than the voltage threshold or the load of the battery is higher than the load threshold, the electronic device enters a low power consumption mode or is powered off. Therefore, the electronic equipment cannot actively control the working state in the electronic equipment, and the capability of reducing the shutdown probability of the electronic equipment is limited.
In other embodiments, the electronic device may obtain a battery voltage value, a current value, and an internal resistance value in a power management chip (power manager unit, PMU), and may constrain the gain of the electronic device when an under-voltage occurs to the electronic device. In this way, the electronic device can be prevented from being powered off due to the under-voltage. However, since the PMU chip issues data (such as voltage value, current value, etc. of the battery) which increases the operation amount and power consumption of the electronic device, the PMU chip generally does not issue data in real time. Thus, the battery voltage and current values obtained by the electronic device from the PMU chip are not the real-time voltage and current values of the battery in the electronic device. However, the peak current of the battery changes rapidly, so that the shutdown preventing effect of the electronic equipment in the shutdown preventing method is limited.
The embodiment of the application provides an anti-shutdown protection method, which can comprise the following steps: and the electronic equipment plays the audio, and when the battery voltage in the electronic equipment is smaller than the voltage threshold value, the electronic equipment predicts that the loudspeaker current is larger than the current threshold value in real time according to the played audio, and the electronic equipment adjusts the audio gain according to the predicted loudspeaker current. Thus, when the electronic equipment is in low power, the electronic equipment can be prevented from being powered off due to the fact that the current of the audio link in the electronic equipment is too large.
In the embodiment of the application, the electronic device may be an electronic device with a speaker, for example, a mobile phone, a tablet, a notebook, a computer, etc. that can play audio.
An exemplary electronic device 100 provided by an embodiment of the present application is first described below.
Fig. 1A is a schematic structural diagram of an electronic device 100 according to an embodiment of the present application.
The embodiment will be specifically described below taking the electronic device 100 as an example. It should be understood that electronic device 100 may have more or fewer components than shown, may combine two or more components, or may have a different configuration of components. The various components shown in the figures may be implemented in hardware, software, or a combination of hardware and software, including one or more signal processing and/or application specific integrated circuits.
The electronic device 100 may include: processor 110, external memory interface 120, internal memory 121, universal serial bus (universal serial bus, USB) interface 130, charge management module 140, power management module 141, battery 142, antenna 1, antenna 2, mobile communication module 150, wireless communication module 160, audio module 170, speaker 170A, receiver 170B, microphone 170C, headset interface 170D, sensor module 180, keys 190, motor 191, indicator 192, camera 193, display 194, and subscriber identity module (subscriber identification module, SIM) card interface 195, etc. The sensor module 180 may include a pressure sensor 180A, a gyro sensor 180B, an air pressure sensor 180C, a magnetic sensor 180D, an acceleration sensor 180E, a distance sensor 180F, a proximity sensor 180G, a fingerprint sensor 180H, a temperature sensor 180J, a touch sensor 180K, an ambient light sensor 180L, a bone conduction sensor 180M, and the like.
It should be understood that the illustrated structure of the embodiment of the present application does not constitute a specific limitation on the electronic device 100. In other embodiments of the application, electronic device 100 may include more or fewer components than shown, or certain components may be combined, or certain components may be split, or different arrangements of components. The illustrated components may be implemented in hardware, software, or a combination of software and hardware.
The processor 110 may include one or more processing units, such as: the processor 110 may include an application processor (application processor, AP), a modem processor, a graphics processor (graphics processing unit, GPU), an image signal processor (IMAGE SIGNAL processor, ISP), a controller, a memory, a video codec, a digital signal processor (DIGITAL SIGNAL processor, DSP), a baseband processor, and/or a neural Network Processor (NPU), etc. Wherein the different processing units may be separate devices or may be integrated in one or more processors.
The controller may be a neural hub and a command center of the electronic device 100, among others. The controller can generate operation control signals according to the instruction operation codes and the time sequence signals to finish the control of instruction fetching and instruction execution.
A memory may also be provided in the processor 110 for storing instructions and data. In some embodiments, the memory in the processor 110 is a cache memory. The memory may hold instructions or data that the processor 110 has just used or recycled. If the processor 110 needs to reuse the instruction or data, it can be called directly from the memory. Repeated accesses are avoided and the latency of the processor 110 is reduced, thereby improving the efficiency of the system.
In some embodiments, the processor 110 may include one or more interfaces. The interfaces may include an integrated circuit (inter-INTEGRATED CIRCUIT, I2C) interface, an integrated circuit built-in audio (inter-INTEGRATED CIRCUIT SOUND, I2S) interface, a pulse code modulation (pulse code modulation, PCM) interface, a universal asynchronous receiver transmitter (universal asynchronous receiver/transmitter, UART) interface, a mobile industry processor interface (mobile industry processor interface, MIPI), a general-purpose input/output (GPIO) interface, a subscriber identity module (subscriber identity module, SIM) interface, and/or a universal serial bus (universal serial bus, USB) interface, among others.
The I2C interface is a bi-directional synchronous serial bus comprising a serial data line (SERIAL DATA LINE, SDA) and a serial clock line (derail clock line, SCL). In some embodiments, the processor 110 may contain multiple sets of I2C buses. The processor 110 may be coupled to the touch sensor 180K, charger, flash, camera 193, etc., respectively, through different I2C bus interfaces. For example: the processor 110 may be coupled to the touch sensor 180K through an I2C interface, such that the processor 110 communicates with the touch sensor 180K through an I2C bus interface to implement a touch function of the electronic device 100.
The I2S interface may be used for audio communication. In some embodiments, the processor 110 may contain multiple sets of I2S buses. The processor 110 may be coupled to the audio module 170 via an I2S bus to enable communication between the processor 110 and the audio module 170. In some embodiments, the audio module 170 may transmit an audio signal to the wireless communication module 160 through the I2S interface, to implement a function of answering a call through the bluetooth headset.
PCM interfaces may also be used for audio communication to sample, quantize and encode analog signals. In some embodiments, the audio module 170 and the wireless communication module 160 may be coupled through a PCM bus interface. In some embodiments, the audio module 170 may also transmit audio signals to the wireless communication module 160 through the PCM interface to implement a function of answering a call through the bluetooth headset. Both the I2S interface and the PCM interface may be used for audio communication.
The UART interface is a universal serial data bus for asynchronous communications. The bus may be a bi-directional communication bus. It converts the data to be transmitted between serial communication and parallel communication. In some embodiments, a UART interface is typically used to connect the processor 110 with the wireless communication module 160. For example: the processor 110 communicates with a bluetooth module in the wireless communication module 160 through a UART interface to implement a bluetooth function. In some embodiments, the audio module 170 may transmit an audio signal to the wireless communication module 160 through a UART interface, to implement a function of playing music through a bluetooth headset.
The MIPI interface may be used to connect the processor 110 to peripheral devices such as a display 194, a camera 193, and the like. The MIPI interfaces include camera serial interfaces (CAMERA SERIAL INTERFACE, CSI), display serial interfaces (DISPLAY SERIAL INTERFACE, DSI), and the like. In some embodiments, processor 110 and camera 193 communicate through a CSI interface to implement the photographing functions of electronic device 100. The processor 110 and the display 194 communicate via a DSI interface to implement the display functionality of the electronic device 100.
The GPIO interface may be configured by software. The GPIO interface may be configured as a control signal or as a data signal. In some embodiments, a GPIO interface may be used to connect the processor 110 with the camera 193, the display 194, the wireless communication module 160, the audio module 170, the sensor module 180, and the like. The GPIO interface may also be configured as an I2C interface, an I2S interface, a UART interface, an MIPI interface, etc.
The USB interface 130 is an interface conforming to the USB standard specification, and may specifically be a Mini USB interface, a Micro USB interface, a USB Type C interface, or the like. The USB interface 130 may be used to connect a charger to charge the electronic device 100, and may also be used to transfer data between the electronic device 100 and a peripheral device. And can also be used for connecting with a headset, and playing audio through the headset. The interface may also be used to connect other electronic devices, such as AR devices, etc.
It should be understood that the interfacing relationship between the modules illustrated in the embodiments of the present application is only illustrative, and is not meant to limit the structure of the electronic device 100. In other embodiments of the present application, the electronic device 100 may also employ different interfacing manners in the above embodiments, or a combination of multiple interfacing manners.
The charge management module 140 is configured to receive a charge input from a charger. The charger can be a wireless charger or a wired charger. In some wired charging embodiments, the charge management module 140 may receive a charging input of a wired charger through the USB interface 130. In some wireless charging embodiments, the charge management module 140 may receive wireless charging input through a wireless charging coil of the electronic device 100. The charging management module 140 may also supply power to the electronic device through the power management module 141 while charging the battery 142.
The power management module 141 is used for connecting the battery 142, and the charge management module 140 and the processor 110. The power management module 141 receives input from the battery 142 and/or the charge management module 140 and provides power to the processor 110, the internal memory 121, the external memory, the display 194, the camera 193, the wireless communication module 160, and the like. The power management module 141 may also be configured to monitor battery capacity, battery cycle number, battery health (leakage, impedance) and other parameters. In other embodiments, the power management module 141 may also be provided in the processor 110. In other embodiments, the power management module 141 and the charge management module 140 may be disposed in the same device.
The wireless communication function of the electronic device 100 may be implemented by the antenna 1, the antenna 2, the mobile communication module 150, the wireless communication module 160, a modem processor, a baseband processor, and the like.
The antennas 1 and 2 are used for transmitting and receiving electromagnetic wave signals. Each antenna in the electronic device 100 may be used to cover a single or multiple communication bands. Different antennas may also be multiplexed to improve the utilization of the antennas. For example: the antenna 1 may be multiplexed into a diversity antenna of a wireless local area network. In other embodiments, the antenna may be used in conjunction with a tuning switch.
The mobile communication module 150 may provide a solution for wireless communication including 2G/3G/4G/5G, etc., applied to the electronic device 100. The mobile communication module 150 may include at least one filter, switch, power amplifier, low noise amplifier (low noise amplifier, LNA), etc. The mobile communication module 150 may receive electromagnetic waves from the antenna 1, perform processes such as filtering, amplifying, and the like on the received electromagnetic waves, and transmit the processed electromagnetic waves to the modem processor for demodulation. The mobile communication module 150 can amplify the signal modulated by the modem processor, and convert the signal into electromagnetic waves through the antenna 1 to radiate. In some embodiments, at least some of the functional modules of the mobile communication module 150 may be disposed in the processor 110. In some embodiments, at least some of the functional modules of the mobile communication module 150 may be provided in the same device as at least some of the modules of the processor 110.
The modem processor may include a modulator and a demodulator. The modulator is used for modulating the low-frequency baseband signal to be transmitted into a medium-high frequency signal. The demodulator is used for demodulating the received electromagnetic wave signal into a low-frequency baseband signal. The demodulator then transmits the demodulated low frequency baseband signal to the baseband processor for processing. The low frequency baseband signal is processed by the baseband processor and then transferred to the application processor. The application processor outputs sound signals through an audio device (not limited to the speaker 170A, the receiver 170B, etc.), or displays images or video through the display screen 194. In some embodiments, the modem processor may be a stand-alone device. In other embodiments, the modem processor may be provided in the same device as the mobile communication module 150 or other functional module, independent of the processor 110.
The wireless communication module 160 may provide solutions for wireless communication including wireless local area network (wireless local area networks, WLAN) (e.g., wireless fidelity (WIRELESS FIDELITY, wi-Fi) network), bluetooth (BT), global navigation satellite system (global navigation SATELLITE SYSTEM, GNSS), frequency modulation (frequency modulation, FM), near field communication (NEAR FIELD communication, NFC), infrared (IR), etc., applied to the electronic device 100. The wireless communication module 160 may be one or more devices that integrate at least one communication processing module. The wireless communication module 160 receives electromagnetic waves via the antenna 2, modulates the electromagnetic wave signals, filters the electromagnetic wave signals, and transmits the processed signals to the processor 110. The wireless communication module 160 may also receive a signal to be transmitted from the processor 110, frequency modulate it, amplify it, and convert it to electromagnetic waves for radiation via the antenna 2.
In some embodiments, antenna 1 and mobile communication module 150 of electronic device 100 are coupled, and antenna 2 and wireless communication module 160 are coupled, such that electronic device 100 may communicate with a network and other devices through wireless communication techniques. The wireless communication techniques can include the Global System for Mobile communications (global system for mobile communications, GSM), general packet radio service (GENERAL PACKET radio service, GPRS), code division multiple access (code division multiple access, CDMA), wideband code division multiple access (wideband code division multiple access, WCDMA), time division code division multiple access (time-division code division multiple access, TD-SCDMA), long term evolution (long term evolution, LTE), BT, GNSS, WLAN, NFC, FM, and/or IR techniques, among others. The GNSS may include a global satellite positioning system (global positioning system, GPS), a global navigation satellite system (global navigation SATELLITE SYSTEM, GLONASS), a beidou satellite navigation system (beidou navigation SATELLITE SYSTEM, BDS), a quasi zenith satellite system (quasi-zenith SATELLITE SYSTEM, QZSS) and/or a satellite based augmentation system (SATELLITE BASED AUGMENTATION SYSTEMS, SBAS).
The electronic device 100 implements display functions through a GPU, a display screen 194, an application processor, and the like. The GPU is a microprocessor for image processing, and is connected to the display 194 and the application processor. The GPU is used to perform mathematical and geometric calculations for graphics rendering. Processor 110 may include one or more GPUs that execute program instructions to generate or change display information.
The display screen 194 is used to display images, videos, and the like. The display 194 includes a display panel. The display panel may employ a Liquid Crystal Display (LCD) CRYSTAL DISPLAY, an organic light-emitting diode (OLED), an active-matrix organic LIGHT EMITTING diode (AMOLED), a flexible light-emitting diode (FLED), miniled, microLed, micro-oLed, a quantum dot LIGHT EMITTING diode (QLED), or the like. In some embodiments, the electronic device 100 may include 1 or N display screens 194, N being a positive integer greater than 1.
The electronic device 100 may implement photographing functions through an ISP, a camera 193, a video codec, a GPU, a display screen 194, an application processor, and the like.
The ISP is used to process data fed back by the camera 193. For example, when photographing, the shutter is opened, light is transmitted to the camera photosensitive element through the lens, the optical signal is converted into an electric signal, and the camera photosensitive element transmits the electric signal to the ISP for processing and is converted into an image visible to naked eyes. ISP can also optimize the noise, brightness and skin color of the image. The ISP can also optimize parameters such as exposure, color temperature and the like of a shooting scene. In some embodiments, the ISP may be provided in the camera 193.
The camera 193 is used to capture still images or video. The object generates an optical image through the lens and projects the optical image onto the photosensitive element. The photosensitive element may be a charge coupled device (charge coupled device, CCD) or a Complementary Metal Oxide Semiconductor (CMOS) phototransistor. The photosensitive element converts the optical signal into an electrical signal, which is then transferred to the ISP to be converted into a digital image signal. The ISP outputs the digital image signal to the DSP for processing. The DSP converts the digital image signal into an image signal in a standard RGB, YUV, or the like format. In some embodiments, electronic device 100 may include 1 or N cameras 193, N being a positive integer greater than 1.
The digital signal processor is used for processing digital signals, and can process other digital signals besides digital image signals. For example, when the electronic device 100 selects a frequency bin, the digital signal processor is used to fourier transform the frequency bin energy, or the like.
Video codecs are used to compress or decompress digital video. The electronic device 100 may support one or more video codecs. In this way, the electronic device 100 may play or record video in a variety of encoding formats, such as: dynamic picture experts group (moving picture experts group, MPEG) 1, MPEG2, MPEG3, MPEG4, etc.
The NPU is a neural-network (NN) computing processor, and can rapidly process input information by referencing a biological neural network structure, for example, referencing a transmission mode between human brain neurons, and can also continuously perform self-learning. Applications such as intelligent awareness of the electronic device 100 may be implemented through the NPU, for example: image recognition, face recognition, speech recognition, text understanding, etc.
The external memory interface 120 may be used to connect an external memory card, such as a Micro SD card, to enable expansion of the memory capabilities of the electronic device 100. The external memory card communicates with the processor 110 through an external memory interface 120 to implement data storage functions. For example, files such as music, video, etc. are stored in an external memory card.
The internal memory 121 may be used to store computer executable program code including instructions. The processor 110 executes various functional applications of the electronic device 100 and data processing by executing instructions stored in the internal memory 121. The internal memory 121 may include a storage program area and a storage data area. The storage program area may store an application program (such as a sound playing function, an image playing function, etc.) required for at least one function of the operating system, etc. The storage data area may store data created during use of the electronic device 100 (e.g., audio data, phonebook, etc.), and so on. In addition, the internal memory 121 may include a high-speed random access memory, and may further include a nonvolatile memory such as at least one magnetic disk storage device, a flash memory device, a universal flash memory (universal flash storage, UFS), and the like.
The electronic device 100 may implement audio functions through an audio module 170, a speaker 170A, a receiver 170B, a microphone 170C, an earphone interface 170D, an application processor, and the like. Such as music playing, recording, etc.
The audio module 170 is used to convert digital audio information into an analog audio signal output and also to convert an analog audio input into a digital audio signal. The audio module 170 may also be used to encode and decode audio signals. In some embodiments, the audio module 170 may be disposed in the processor 110, or a portion of the functional modules of the audio module 170 may be disposed in the processor 110.
The speaker 170A, also referred to as a "horn," is used to convert audio electrical signals into sound signals. The electronic device 100 may listen to music, or to hands-free conversations, through the speaker 170A. Specifically, the audio electricity can make the cone or the diaphragm in the loudspeaker vibrate and generate resonance with surrounding air to make sound through electromagnetic, piezoelectric or electrostatic effects, so that the conversion process from electric energy to mechanical energy and then to sound energy is completed. The main components included in the speaker 170A may be described with reference to fig. 1B, and are not described herein.
In one possible implementation, the speaker 170A may also be connected to a Smart power amplifier (Smart Power Amplifier, smart PA) for audio. The audio signal is amplified by the Smart PA and then transmitted to the speaker 170A. The Smart PA is used for amplifying an audio electrical signal and also for monitoring the current voltage of a loudspeaker.
Optionally, in one possible implementation, the Smart PA may also be connected to the battery 142, and the Smart PA may detect the output voltage of the battery 142.
A receiver 170B, also referred to as a "earpiece", is used to convert the audio electrical signal into a sound signal. When electronic device 100 is answering a telephone call or voice message, voice may be received by placing receiver 170B in close proximity to the human ear.
Microphone 170C, also referred to as a "microphone" or "microphone", is used to convert sound signals into electrical signals. When making a call or transmitting voice information, the user can sound near the microphone 170C through the mouth, inputting a sound signal to the microphone 170C. The electronic device 100 may be provided with at least one microphone 170C. In other embodiments, the electronic device 100 may be provided with two microphones 170C, and may implement a noise reduction function in addition to collecting sound signals. In other embodiments, the electronic device 100 may also be provided with three, four, or more microphones 170C to enable collection of sound signals, noise reduction, identification of sound sources, directional recording functions, etc.
The earphone interface 170D is used to connect a wired earphone. The headset interface 170D may be a USB interface 130 or a 3.5mm open mobile electronic device platform (open mobile terminal platform, OMTP) standard interface, a american cellular telecommunications industry association (cellular telecommunications industry association of the USA, CTIA) standard interface.
The pressure sensor 180A is used to sense a pressure signal, and may convert the pressure signal into an electrical signal. In some embodiments, the pressure sensor 180A may be disposed on the display screen 194. The pressure sensor 180A is of various types, such as a resistive pressure sensor, an inductive pressure sensor, a capacitive pressure sensor, and the like. The capacitive pressure sensor may be a capacitive pressure sensor comprising at least two parallel plates with conductive material. The capacitance between the electrodes changes when a force is applied to the pressure sensor 180A. The electronic device 100 determines the strength of the pressure from the change in capacitance. When a touch operation is applied to the display screen 194, the electronic apparatus 100 detects the touch operation intensity according to the pressure sensor 180A. The electronic device 100 may also calculate the location of the touch based on the detection signal of the pressure sensor 180A. In some embodiments, touch operations that act on the same touch location, but at different touch operation strengths, may correspond to different operation instructions. For example: and executing an instruction for checking the short message when the touch operation with the touch operation intensity smaller than the first pressure threshold acts on the short message application icon. And executing an instruction for newly creating the short message when the touch operation with the touch operation intensity being greater than or equal to the first pressure threshold acts on the short message application icon.
The gyro sensor 180B may be used to determine a motion gesture of the electronic device 100. In some embodiments, the angular velocity of electronic device 100 about three axes (i.e., x, y, and z axes) may be determined by gyro sensor 180B. The gyro sensor 180B may be used for photographing anti-shake. For example, when the shutter is pressed, the gyro sensor 180B detects the shake angle of the electronic device 100, calculates the distance to be compensated by the lens module according to the angle, and makes the lens counteract the shake of the electronic device 100 through the reverse motion, so as to realize anti-shake. The gyro sensor 180B may also be used for navigating, somatosensory game scenes.
The air pressure sensor 180C is used to measure air pressure. In some embodiments, electronic device 100 calculates altitude from barometric pressure values measured by barometric pressure sensor 180C, aiding in positioning and navigation.
The magnetic sensor 180D includes a hall sensor. The electronic device 100 may detect the opening and closing of the flip cover using the magnetic sensor 180D. In some embodiments, when the electronic device 100 is a flip machine, the electronic device 100 may detect the opening and closing of the flip according to the magnetic sensor 180D. And then according to the detected opening and closing state of the leather sheath or the opening and closing state of the flip, the characteristics of automatic unlocking of the flip and the like are set.
The acceleration sensor 180E may detect the magnitude of acceleration of the electronic device 100 in various directions (typically three axes). The magnitude and direction of gravity may be detected when the electronic device 100 is stationary. The electronic equipment gesture recognition method can also be used for recognizing the gesture of the electronic equipment, and is applied to horizontal and vertical screen switching, pedometers and other applications.
A distance sensor 180F for measuring a distance. The electronic device 100 may measure the distance by infrared or laser. In some embodiments, the electronic device 100 may range using the distance sensor 180F to achieve quick focus.
The proximity light sensor 180G may include, for example, a Light Emitting Diode (LED) and a light detector, such as a photodiode. The light emitting diode may be an infrared light emitting diode. The electronic device 100 emits infrared light outward through the light emitting diode. The electronic device 100 detects infrared reflected light from nearby objects using a photodiode. When sufficient reflected light is detected, it may be determined that there is an object in the vicinity of the electronic device 100. When insufficient reflected light is detected, the electronic device 100 may determine that there is no object in the vicinity of the electronic device 100. The electronic device 100 can detect that the user holds the electronic device 100 close to the ear by using the proximity light sensor 180G, so as to automatically extinguish the screen for the purpose of saving power. The proximity light sensor 180G may also be used in holster mode, pocket mode to automatically unlock and lock the screen.
The ambient light sensor 180L is used to sense ambient light level. The electronic device 100 may adaptively adjust the brightness of the display 194 based on the perceived ambient light level. The ambient light sensor 180L may also be used to automatically adjust white balance when taking a photograph. Ambient light sensor 180L may also cooperate with proximity light sensor 180G to detect whether electronic device 100 is in a pocket to prevent false touches.
The fingerprint sensor 180H is used to collect a fingerprint. The electronic device 100 may utilize the collected fingerprint feature to unlock the fingerprint, access the application lock, photograph the fingerprint, answer the incoming call, etc.
The temperature sensor 180J is for detecting temperature. In some embodiments, the electronic device 100 performs a temperature processing strategy using the temperature detected by the temperature sensor 180J. For example, when the temperature reported by temperature sensor 180J exceeds a threshold, electronic device 100 performs a reduction in the performance of a processor located in the vicinity of temperature sensor 180J in order to reduce power consumption to implement thermal protection. In other embodiments, when the temperature is below another threshold, the electronic device 100 heats the battery 142 to avoid the low temperature causing the electronic device 100 to be abnormally shut down. In other embodiments, when the temperature is below a further threshold, the electronic device 100 performs boosting of the output voltage of the battery 142 to avoid abnormal shutdown caused by low temperatures.
The touch sensor 180K, also referred to as a "touch panel". The touch sensor 180K may be disposed on the display screen 194, and the touch sensor 180K and the display screen 194 form a touch screen, which is also called a "touch screen". The touch sensor 180K is for detecting a touch operation acting thereon or thereabout. The touch sensor may communicate the detected touch operation to the application processor to determine the touch event type. Visual output related to touch operations may be provided through the display 194. In other embodiments, the touch sensor 180K may also be disposed on the surface of the electronic device 100 at a different location than the display 194.
The bone conduction sensor 180M may acquire a vibration signal. In some embodiments, bone conduction sensor 180M may acquire a vibration signal of a human vocal tract vibrating bone pieces. The bone conduction sensor 180M may also contact the pulse of the human body to receive the blood pressure pulsation signal. In some embodiments, bone conduction sensor 180M may also be provided in a headset, in combination with an osteoinductive headset. The audio module 170 may analyze the voice signal based on the vibration signal of the sound portion vibration bone block obtained by the bone conduction sensor 180M, so as to implement a voice function. The application processor may analyze the heart rate information based on the blood pressure beat signal acquired by the bone conduction sensor 180M, so as to implement a heart rate detection function.
The keys 190 include a power-on key, a volume key, etc. The keys 190 may be mechanical keys. Or may be a touch key. The electronic device 100 may receive key inputs, generating key signal inputs related to user settings and function controls of the electronic device 100.
The motor 191 may generate a vibration cue. The motor 191 may be used for incoming call vibration alerting as well as for touch vibration feedback. For example, touch operations acting on different applications (e.g., photographing, audio playing, etc.) may correspond to different vibration feedback effects. The motor 191 may also correspond to different vibration feedback effects by touching different areas of the display screen 194. Different application scenarios (such as time reminding, receiving information, alarm clock, game, etc.) can also correspond to different vibration feedback effects. The touch vibration feedback effect may also support customization.
The indicator 192 may be an indicator light, may be used to indicate a state of charge, a change in charge, a message indicating a missed call, a notification, etc.
The SIM card interface 195 is used to connect a SIM card. The SIM card may be inserted into the SIM card interface 195, or removed from the SIM card interface 195 to enable contact and separation with the electronic device 100. The electronic device 100 may support 1 or N SIM card interfaces, N being a positive integer greater than 1. The SIM card interface 195 may support Nano SIM cards, micro SIM cards, and the like. The same SIM card interface 195 may be used to insert multiple cards simultaneously. The types of the plurality of cards may be the same or different. The SIM card interface 195 may also be compatible with different types of SIM cards. The SIM card interface 195 may also be compatible with external memory cards. The electronic device 100 interacts with the network through the SIM card to realize functions such as communication and data communication. In some embodiments, the electronic device 100 employs esims, i.e.: an embedded SIM card. The eSIM card can be embedded in the electronic device 100 and cannot be separated from the electronic device 100.
Fig. 1B is a schematic structural diagram of a speaker in an electronic device 100 according to an embodiment of the present application.
As shown in fig. 1B, the speaker may include a vibration system, a magnetic circuit system, and a support system. The vibration system mainly comprises a sound membrane, a voice coil, a dust cap and a damper. The magnetic circuit system mainly comprises a magnet, a yoke, a washer and a rear cover. The support system may include a basin stand and terminals. Wherein:
The sound membrane is a sound wave radiation element in the loudspeaker, is one of main components of the loudspeaker, and the characteristics of the sound membrane directly influence various electroacoustic parameters, sound quality and the like of the loudspeaker.
Voice coils are one of the important components of a loudspeaker, which may also be referred to as the heart of the loudspeaker. After the voice coil is conductive, the voice coil can generate motion according to the left hand rule of the fleming to drive the sound membrane to vibrate in the magnetic field.
The dust cap may also be referred to as a dust cap, a dust net, or the like, and may be used to prevent foreign matters such as dust from entering the magnetic gap from the front of the vibration plate to cause noise.
The spring wave can be called a damper, a centering support piece and can be used for fixing the center position of the voice coil, so that the voice coil is kept in the middle of the magnetic gap, and the voice coil is prevented from touching the magnetic circuit. The damper may also be used to control the low frequency resonant frequency of the speaker, limiting the maximum displacement of the voice coil.
The magnet is mainly used for providing a magnetic field for the loudspeaker.
The yoke iron plays a role in magnetic conduction in a magnetic circuit and can be divided into a U-shaped yoke and a T-shaped yoke according to the shape of the yoke iron.
The washer can be called as an upper plate or an upper sheet, and in a magnetic circuit, the washer and the yoke have magnetic conduction, and the washer and the yoke can concentrate the N pole and the S pole of the magnet to a gap through the circuit, so that the gap generates a stronger magnetic field.
The antimagnetic shield, which may also be referred to as a rear magnetic housing or cover, may be used to prevent the magnet from radiating a magnetic field outward.
The tub is a frame for mounting a vibration part, a magnetic circuit, and other parts in the speaker.
The terminals may be used to transmit external signals to the wires and into the voice coil to cause the voice coil to draw current.
Fig. 2 is a software configuration block diagram of the electronic device 100 according to the embodiment of the present application.
The layered architecture divides the software into several layers, each with distinct roles and branches. The layers communicate with each other through a software interface. In some embodiments, the system is divided into four layers, from top to bottom, an application layer, an application framework layer, runtime (run time) and system libraries, and a kernel layer, respectively.
The application layer may include a series of application packages.
As shown in fig. 2, the application package may include applications (also referred to as applications) such as cameras, gallery, calendar, phone calls, maps, navigation, WLAN, bluetooth, music, video, short messages, etc.
The application framework layer provides an application programming interface (application programming interface, API) and programming framework for the application of the application layer. The application framework layer includes a number of predefined functions.
As shown in FIG. 2, the application framework layer may include a window manager, a content provider, a view system, a telephony manager, a resource manager, a notification manager, and the like.
The window manager is used for managing window programs. The window manager can acquire the size of the display screen, judge whether a status bar exists, lock the screen, intercept the screen and the like.
The content provider is used to store and retrieve data and make such data accessible to applications. The data may include video, images, audio, calls made and received, browsing history and bookmarks, phonebooks, etc.
The view system includes visual controls, such as controls to display text, controls to display pictures, and the like. The view system may be used to build applications. The display interface may be composed of one or more views. For example, a display interface including a text message notification icon may include a view displaying text and a view displaying a picture.
The telephony manager is used to provide the communication functions of the electronic device 100. Such as the management of call status (including on, hung-up, etc.).
The resource manager provides various resources for the application program, such as localization strings, icons, pictures, layout files, video files, and the like.
The notification manager allows the application to display notification information in a status bar, can be used to communicate notification type messages, can automatically disappear after a short dwell, and does not require user interaction. Such as notification manager is used to inform that the download is complete, message alerts, etc. The notification manager may also be a notification presented in the form of a chart or scroll bar text in the system top status bar, such as a notification of a background running application, or a notification presented on a screen in the form of a dialog interface. For example, a text message is prompted in a status bar, a prompt tone is emitted, the electronic device vibrates, and an indicator light blinks, etc.
The Runtime (run time) includes core libraries and virtual machines. Run time is responsible for scheduling and management of the system.
The core library consists of two parts: one part is the function that the programming language (e.g., jave language) needs to call, and the other part is the core library of the system.
The application layer and the application framework layer run in a virtual machine. The virtual machine executes the programming files (e.g., jave files) of the application layer and the application framework layer as binary files. The virtual machine is used for executing the functions of object life cycle management, stack management, thread management, security and exception management, garbage collection and the like.
The system library may include a plurality of functional modules. For example: surface manager (surface manager), media Libraries (Media Libraries), three-dimensional graphics processing Libraries (e.g., openGL ES), two-dimensional graphics engines (e.g., SGL), etc.
The surface manager is used to manage the display subsystem and provides a fusion of two-Dimensional (2D) and three-Dimensional (3D) layers for multiple applications.
Media libraries support a variety of commonly used audio, video format playback and recording, still image files, and the like. The media library may support a variety of audio and video encoding formats, such as MPEG4, h.264, MP3, AAC, AMR, JPG, PNG, etc.
The three-dimensional graphic processing library is used for realizing 3D graphic drawing, image rendering, synthesis, layer processing and the like.
The 2D graphics engine is a drawing engine for 2D drawing.
The kernel layer is a layer between hardware and software. The kernel layer at least comprises a display driver, a camera driver, an audio driver, a sensor driver and a virtual card driver.
The workflow of the electronic device 100 software and hardware is illustrated below in connection with capturing a photo scene.
When touch sensor 180K receives a touch operation, a corresponding hardware interrupt is issued to the kernel layer. The kernel layer processes the touch operation into the original input event (including information such as touch coordinates, time stamp of touch operation, etc.). The original input event is stored at the kernel layer. The application framework layer acquires an original input event from the kernel layer, and identifies a control corresponding to the input event. Taking the touch operation as a touch click operation, taking a control corresponding to the click operation as an example of a control of a camera application icon, the camera application calls an interface of an application framework layer, starts the camera application, further starts a camera driver by calling a kernel layer, and captures a still image or video by the camera 193.
The following describes an anti-shutdown protection method provided by the embodiment of the application with reference to the accompanying drawings. Fig. 3 schematically illustrates a flowchart of an anti-shutdown protection method according to an embodiment of the present application. As shown in fig. 3, the method for protecting an anti-shutdown device according to the embodiment of the present application may include the following steps:
S301, when the electronic device 100 plays audio, it detects that the power supply voltage in the electronic device 100 is less than the voltage threshold Vth.
The electronic device 100 is playing audio, it being understood that the electronic device 100 is playing audio through speakers in the electronic device. The hardware architecture of the electronic device 100 may be as shown in fig. 1A, and a speaker 170A in the electronic device 100 may play audio.
The voltage threshold Vth, which is a threshold of the power supply output voltage configured by the electronic device 100, may be configured by a system of the electronic device 100.
The electronic device 100 may obtain a power supply voltage in the electronic device 100, i.e., a voltage of the battery 142 shown in fig. 1A. There are various ways in which the electronic device 100 obtains the voltage of the battery 142.
In one possible implementation, the electronic device 100 may obtain the voltage of the battery 142 from a power management chip (power manager unit, PMU) in the electronic device 100. Generally, the battery 142 may send the voltage data of the battery 142 to the PMU every 2 seconds, and the PMU may save the voltage data of the battery 142.
In another possible implementation, the electronic device 100 may obtain the voltage of the battery 142 in real time through a Smart power amplifier (Smart Power Amplifier, smart PA). The Smart PA may detect the output voltage of the battery 142 in real time.
Illustratively, fig. 4 shows a schematic circuit diagram of the electronic device 100 with Smart PA and speaker, and power supply connections. As shown in fig. 4, smart PA400 may be connected to a power supply of electronic device 100, and may also be connected to speaker 170A. The Smart PA400 may include a boost converter 401, a signal encoding module 402, an analog-to-digital converter 403, an analog-to-digital converter 404, an analog-to-digital converter 405, an amplifier 406, and a resistor 407.
The boost converter 401 may be connected to a power source, and the boost converter 401 may boost a power source voltage input to the boost converter 401. The booster converter 401 boosts the power supply voltage and inputs the boosted power supply voltage to the amplifier 406, and the amplifier 406 can amplify the power supply voltage and the amplified power supply voltage is divided by the resistor 407 and input to the speaker 170A.
The gain-adjusted audio signal stream may be amplified by amplifier 406 and transmitted to speaker 170A. The audio signal stream may be subjected to pulse code modulation (pulse code modulation, PCM) processing prior to adjusting the gain.
Smart PA400 may be coupled to a supply voltage via an analog-to-digital converter 403 to detect the output voltage of the power supply (which may be referred to simply as the supply voltage in embodiments of the application). The analog-to-digital converter 403 may convert the analog voltage signal into a digital voltage signal.
Smart PA400 may be coupled across resistor 407 through an analog-to-digital converter 404 to detect the input current to speaker 170A. The analog-to-digital converter 404 may convert the analog current signal to a digital current signal.
Smart PA400 may be coupled to speaker 170A through analog-to-digital converter 405 to detect the input voltage to speaker 170A. The analog-to-digital converter 405 may convert an analog voltage signal to a digital voltage signal.
The signal encoding module 402 may output the power supply voltage detected by the analog-to-digital converter 403, that is, the power supply voltage Vbat sense fed back by the Smart PA 400. The signal encoding module 402 may output the input current of the speaker 170A detected by the analog-to-digital converter 403, that is, the input current Isense of the speaker 170A fed back by the Smart PA 400. The signal encoding module 402 may output the input voltage of the speaker 170A detected by the analog-to-digital converter 403, that is, the input voltage Vsense of the speaker 170A fed back by the Smart PA 400.
The signal encoding module 402 may include an integrated circuit built-in audio signal transmission encoding scheme (inter-INTERGRATED CIRCUIT SOUND, I2S) and a time multiplexed signal transmission encoding scheme (time division multiplexing, TDM).
Further, since the load of the battery 142 in the electronic device 100 changes in real time, the battery 142 also changes in real time, and the power supply voltage Vbat sense fed back by the Smart PA400 also changes in real time. The electronic device needs to process the feedback supply voltage Vbat sense.
For example, the waveform change of Vbat sense may be as shown in fig. 5. As shown in fig. 5, the Vbat sense value varies greatly in a short time. If electronic device 100 directly compares Vbat sense acquired in real time with voltage threshold Vth, the result of the comparison may be unstable. That is, electronic device 100 determines that the acquired Vbat sense is smaller than voltage threshold Vth at time T1, and that the acquired Vbat sense is larger than voltage threshold Vth at time T2, and time T1 is a time before time T2. Thus, electronic device 100 may process the obtained Vbat sense, and electronic device 100 may treat the processed Vbat sense as the detected supply voltage.
In one possible implementation, the electronic device 100 may perform envelope detection on the power supply voltage Vbat sense fed back by the Smart PA400, and then use the envelope detection as the power supply voltage.
Illustratively, fig. 6 shows a schematic circuit diagram enveloping a voltage. As shown in fig. 6, the power supply voltage Vbat sense fed back by Smart PA400 may be input Uin in fig. 6, and output Uout may be the power supply voltage detected by electronic device 100. The circuit schematic may further include a diode D1, a capacitor C1, and a resistor R1. The input Uin is connected to the positive electrode of the diode D1, and the output Uout is connected to the negative electrode of the diode D1.
When Uin (n) is greater than Uout (n-1), the relationship of the output Uout and the input Uin may be as shown in equation (1):
uout (n) =uin (n) formula (1)
In the above formula (1), uout (n) is the output voltage of the circuit at time n, and Uin (n) is the input voltage of the circuit at time n; the output voltage of the circuit at time (n-1) of Uout (n-1).
When Uin (n) is smaller than Uout (n-1), the relationship of the output Uout and the input Uin can be as shown in formula (2):
In the above formula (2), uout (n) is the output voltage of the circuit at time n, and Uin (n) is the input voltage of the circuit at time n; the output voltage of the circuit at time (n-1) of Uout (n-1). R1 is a resistance value, and C1 is a capacitance value.
Since the different time inputs Uin may be different, the output Uout may also be different at different times. Uin (n) may be a power supply voltage Vbat sense fed back by Smart PA400 at time n, uout (n-1) may be a voltage obtained by enveloping power supply voltage Vbat sense fed back by Smart PA400 at time (n-1), and this voltage may be a power supply voltage of electronic device 100 at time (n-1). Uout (n) is a voltage enveloped by the power supply voltage Vbat sense fed back by Smart PA400 at time n, and this voltage may be used as the power supply voltage of electronic device 100 at time n.
Further, the electronic device 100 may compare the uot (n) with the voltage threshold Vth, and if uot (n) is smaller than the voltage threshold Vth, the electronic device 100 may perform steps S302-S304; if Uout (n) is less than the voltage threshold Vth, the electronic device 100 may not perform steps S302-S304, i.e. the electronic device 100 directly transmits the first audio signal of the played audio to the speaker for playing.
In one possible implementation, the voltage threshold Vth may be configured by the system of the electronic device 100.
Alternatively, in one possible implementation, the electronic device may perform step S301 and step S302 simultaneously.
S302, the electronic device 100 predicts the input current Ii of the loudspeaker according to the first audio signal of the played audio.
The electronic device 100 may predict the real-time input current Ii of the speaker in the electronic device 100 from the first audio signal of the played audio. The electronic device 100 may have a predictive model of the input current of the speaker, the input of which may be an audio signal, and the output of which may be the input current Ii of the speaker.
In particular, the predictive model may be a power model of a closed speaker as shown in fig. 7. As shown in fig. 7, the power model may define the following formula:
i(s) =u(s) ×h(s) formula (5)
Wherein, formula (3) is a calculation formula of the voltage inside the speaker in the power model shown in fig. 7; equation (4) is a calculation equation of the acting force of the magnetic field on the voice coil in the power model shown in fig. 7; equation (5) is a calculation equation of the speaker input current in the power model shown in fig. 7; equation (6) is the inverse of the impedance Z(s) for H(s) in the power model shown in fig. 7, H(s) being the transfer function; equation (7) is a calculation equation of the impedance Z(s) in the power model shown in fig. 7.
In the above formulas (3) - (7), u is the voltage at two ends of the speaker, i is the current input into the speaker, and R E is the voice coil dc resistance in the speaker; b is the magnetic induction in the magnetic gap of the speaker; l is the length of the voice coil wire in the magnetic field of the loudspeaker; l E is the inductance of the voice coil in the speaker; f is the acting force of the magnetic field in the loudspeaker to the voice coil; m ms is the mechanical mass of the loudspeaker box and the air load; r ms is the force resistance of the vibration system in the loudspeaker; c ms is the force sequence of a vibration system in the loudspeaker, and x is the amplitude value of a sound membrane in the loudspeaker; s is the Laplace operator. Z(s) is the impedance of the speaker, U(s) is the input voltage of the speaker, and I(s) is the input current of the speaker.
The power model may be present in the electronic device 100, and values of parameters such as R E、LE、Mms、Cms and Bl may be configured. And when an audio signal, i.e., an input voltage U(s), is input to the power model, the electronic device 100 can obtain a predicted input current I(s) of the speaker through the above formula (7).
In one possible implementation, the values of the various parameters in the power model may be calculated by a developer by modeling the speakers in the electronic device. The developer may then configure the calculated values of the parameters R E、LE、Mms、Cms, bl, etc. into the electronic device 100.
Further, in one possible implementation, a developer may collect an input current and an input voltage of a speaker in the electronic device 100, and calculate each parameter in the speaker power model according to the input current and the input voltage. For example, R E、LE、Mms、Cms, bl, etc. Then, the developer may configure the values of the parameters R E、LE、Mms、Cms, bl, etc. in the prediction model in the electronic device 100 according to the calculation result of each parameter.
Further, in one possible implementation, the electronic device 100 may utilize the input current Isense of the speaker 170A fed back by the Smart PA400 to adjust the values of the various parameters in the power model. In this way, the input current of the loudspeaker predicted by the power model can be more accurate.
In one possible implementation, the electronic device 100 may correct the input current Ii with the input current Isense of the speaker 170A fed back by Smart PA 400.
Further, in one possible implementation, the electronic device 100 may correct the input current of the speaker 170A at time tj predicted by the electronic device 100 at time tn using the input current of the speaker 170A at time tj and the input current of the speaker predicted at time tj fed back by the Smart PA 400. the tj time is a time before the tn time.
For example, at time tn, the input current of the speaker predicted by the electronic device 100 according to the audio signal is In, and the electronic device 100 receives the input current Isense (j) of the speaker 170A fed back by the Smart PA 400. The input current Isense (j) is the input current of the speaker detected by Smart PA400 at time tj. And the electronic device predicts an input current of the speaker at tj from the audio signal as Ij. The electronic device 100 may correct the input current of the speaker predicted at time tn to In based on the current difference between the actual input current of the speaker and the predicted input current of the speaker at time tj. If the current difference is-0.1A, the input current is In and the current difference should be added to obtain corrected input current In', i.e., in+ (-0.1A). The electronic device 100 then determines whether the corrected input current In' is greater than a current threshold (e.g., current threshold I1) preset In the electronic device 100.
Optionally, in one possible implementation, the electronic device 100 may correct the input current of the speaker 170A predicted at time tn by using an average of differences between the input current of the speaker 170A at times before time tn fed back by the Smart PA400 and the input current of the speaker predicted at the corresponding time.
For example, taking n as 10 as an example, the electronic device 100 predicts that the input current of the speaker is I10 at time t 10. At time t10, electronic device 100 receives Smart PA400 feedback of speaker input current Isense (5) at time t 5. The electronic device 100 may obtain a current difference δ5 between the input current Isense (5) of the speaker at time t5 and the input current I (i=5) of the speaker predicted at time t 5. The electronic device 100 may compare the input current Isense (4) of the speaker at time t4 with the current difference δ4 of the input current I (i=4) of the speaker predicted at time t 4. The electronic device 100 may compare the input current Isense (3) of the speaker at time t3 with the current difference δ3 of the input current I (i=3) of the speaker predicted at time t 3. The electronic device 100 may compare the input current Isense (2) of the speaker at time t2 with the current difference δ2 of the input current I (i=2) of the speaker predicted at time t 2. The electronic device 100 may compare the input current Isense (1) of the speaker at time t1 with the current difference δ1 of the input current I (i=1) of the speaker predicted at time t 1. The electronic device 100 may obtain a current difference δ5, a current difference δ4, a current difference δ3, a current difference δ2, and an average value δ (average) of the current differences δ2, and then correct the electronic device 100 to predict the input current of the speaker as I10 at time t10 by using the average value δ (average), so as to obtain a corrected input current as I10' (may be i10+δ (average)).
S303, if the input current Ii of the loudspeaker is larger than the current threshold I1, the electronic equipment adjusts the gain of the first audio signal to obtain a second audio signal.
When the input current Ii of the speaker is greater than the current threshold I1, the electronic device 100 may decrease the gain of the first audio signal, resulting in the second audio signal. For example, the peak amplitude of the first audio signal is 0 dBus, and the electronic device 100 may gain down the first audio signal such that the peak amplitude of the second audio signal becomes-3 dBus. The electronic device 100 may transmit the second audio signal to the Smart PA400, and transmit the second audio signal to the speaker for playing after digital-to-analog conversion by the Smart PA400 chip.
The current threshold I1 may be configured by a system of the electronic device 100.
It will be appreciated that the input current Isense to the speaker fed back by Smart PA400 is time-delayed. For example, smart PA400 detects the input current Isense of the speaker 2 seconds ago and feeds back to the processor of electronic device 100 after 2 seconds, or a module in electronic device 100 that predicts the input current of the speaker.
Further, the electronic device 100 may be configured with multiple current thresholds, such as current threshold I2, current threshold I3, etc., where the input current Ii is in different current threshold ranges, and the gains of the electronic device 100 to reduce the audio signal are different.
Specifically, when the input current Ii is greater than the current threshold I1, the electronic device 100 may decrease the gain of the first audio signal by a first value; when the input current Ii is greater than the current threshold I2 and less than the current threshold I1; the electronic device 100 may decrease the gain of the first audio signal by a second value; when the input current Ii is greater than the current threshold I3 and less than the current threshold I2; the electronic device 100 may decrease the gain of the first audio signal by a third value.
Wherein the current threshold I1 is greater than the current threshold I2; the current threshold I2 is greater than the current threshold I3. The first value is greater than the second value, and the second value is greater than the third value.
It is understood that the electronic device 100 may reduce the gain of the first audio signal by the target value (e.g., the first value, the second value, the third value) in a gain smoothing manner.
For example, the current threshold I1 may be 1.2A, the current threshold I2 may be 0.8A, and the current threshold I3 may be 0.4A. The first value may be 6dB, the second value may be 3dB, and the third value may be 1dB. If the input current Ii is 1.5A, the gain of the first audio signal is reduced by 6dB. If the input current Ii is 1.0A, the gain of the first audio signal is reduced by 3dB. If the input current Ii is 0.5A, the gain of the first audio signal is reduced by 1dB.
In one possible implementation, the electronic device 100 may determine how to adjust the gain of the first audio signal based on the input current Ii of the speaker and the current of the first audio signal. For example, the greater the current of the first audio signal, the more the gain of the first audio signal decreases.
It will be appreciated that a greater current of the first audio signal will result in a greater total output power of the electronic device 100 when playing the first audio signal. When the gain of the first audio signal is reduced, the current of the first audio signal may be reduced, so that the total output power of the battery in the electronic device 100 may be reduced, avoiding the battery being in an under-voltage state.
S304, the speaker of the electronic device 100 plays the second audio signal.
The speaker of the electronic device 100 may play the second audio signal. The second audio signal has a power lower than or equal to the first audio signal.
In the process that the electronic device 100 continuously plays the audio, after the electronic device 100 starts to perform the steps S301 to S304, since the electronic device 100 adjusts the gain of the played audio, the loudness of the audio signal played by the electronic device 100 is lower than or equal to the loudness of the audio signal played when the electronic device 100 does not perform the steps S301 to S304 (when the electronic device performs the steps S301 to S304, the user does not actively adjust the volume level of the electronic device 100).
In one possible implementation, the second audio signal is digital-to-analog converted by the Smart PA400, amplified by an amplifier in the Smart PA400, and then transmitted to a speaker for playing.
According to the anti-shutdown protection method provided by the embodiment of the application, when the electronic equipment plays audio, if the electronic equipment can detect that the battery voltage is lower than the voltage threshold and the electronic equipment predicts that the input current of the loudspeaker is higher than the current threshold, the electronic equipment adjusts the gain of the played audio signal, so that the signal amplitude of the audio signal is reduced, and the current of the audio circuit is reduced. The electronic equipment can adjust the gain of audio played by the electronic equipment in time when the power supply is low or the electronic equipment is in a scene with high shutdown probability such as low temperature, so that the current of an audio playing link is reduced, and the electronic equipment is prevented from being automatically shutdown due to undervoltage.
Fig. 8A is a schematic diagram illustrating implementation of an anti-shutdown protection method according to an embodiment of the present application. As shown in fig. 8A, the specific implementation steps of the shutdown prevention protection method provided by the embodiment of the present application may be as follows:
1. The electronic device 100 may input the first audio signal into the prediction module 801, resulting in an input current (hereinafter referred to as a prediction current) of the audio playback module 804. The prediction module 801 inputs the predicted current to the gain control module 802. The prediction module 801 has a prediction model, and an audio signal is input to the prediction model, and the prediction model can output current.
Optionally, the prediction module 801 may also receive an input current of the audio playing module 804 fed back by the amplifying module 803a, and the prediction module 801 may correct the predicted input current of the speaker according to the input current. The prediction model may be specifically referred to the above description, and will not be described herein.
The prediction module 801 is a module containing a current prediction algorithm, and the prediction module 801 may be run in a Digital Signal Processing (DSP) chip. The DSP chip may be a separate chip or may be integrated into the processor of the electronic device 100, which is not limited herein.
2. The gain control module 802 in the electronic device 100 may determine whether to gain control the input audio signal according to the predicted current obtained by the prediction module 801 and the power supply voltage input by the amplification module 803 a. Specifically, when the gain control module 802 determines that the supply voltage is less than the voltage threshold and the predicted current is greater than the current threshold, the electronic device 100 may gain control the input audio signal. For example, the gain control module 802 may perform gain control on the first audio signal to obtain the second audio signal. The gain of the second audio signal is smaller than the gain of the first audio signal.
Alternatively, the gain control module 802 may include an algorithm for gain control, and the gain control module 802 may operate in a DSP. The DSP may be a single chip, may be integrated into a single chip, or may be integrated into a processor of the electronic device 100, and is not limited herein.
3. The amplifying module 803a may amplify the input audio signal and transmit the amplified audio signal to the audio playing module 804.
The amplifying module 803a may amplify the input audio signal, and then perform digital-to-analog conversion (converting the audio signal in digital signal form into the audio signal in analog signal form) and transmit the amplified audio signal to the audio playing module 804.
Optionally, the amplification module 803a may monitor the supply voltage, as well as the input current of the audio playback module 804.
Alternatively, the gain control module 802 may also directly input the audio signal after the gain control to the audio playing module.
The amplification module 803a may be the Smart PA400 described above.
4. The audio playback module 804 plays audio. The audio playback module 804 may be a speaker of the electronic device 100.
Fig. 8B is a schematic diagram illustrating implementation of an anti-shutdown protection method according to an embodiment of the present application. As shown in fig. 8B, the specific implementation steps of the shutdown prevention protection method provided by the embodiment of the present application may be as follows:
1. The electronic device 100 may input the first audio signal into the prediction module 801, resulting in an input current (hereinafter referred to as a prediction current) of the audio playback module 804. The prediction module 801 inputs the predicted current to the gain control module 802. The prediction module 801 has a prediction model, and an audio signal is input to the prediction model, and the prediction model can output current.
Optionally, the prediction module 801 may also receive an input current of the audio playing module 804 input by the amplifying module 803a, and the prediction module 801 may correct the predicted current according to the input current. The prediction model may be specifically referred to the above description, and will not be described herein.
The prediction module 801 is a module containing a current prediction algorithm, and the prediction module 801 may be run in a Digital Signal Processing (DSP) chip. The DSP chip may be integrated into the processor of the electronic device 100, and is not limited herein.
2. The gain control module 802 in the electronic device 100 may determine whether to gain control the input audio signal according to the predicted current obtained by the prediction module 801 and the power supply voltage. Specifically, when the gain control module 802 determines that the supply voltage is less than the voltage threshold and the predicted current is greater than the current threshold, the electronic device 100 may gain control the input audio signal. For example, the gain control module 802 may perform gain control on the first audio signal to obtain the second audio signal. The gain of the second audio signal is smaller than the gain of the first audio signal.
Optionally, the amplification module 803b does not feed back the supply voltage to the gain control module 802. The gain control module 802 may obtain the supply voltage via a PMU chip that may send the supply voltage to the gain control module 802 once every fixed time period.
Alternatively, the gain control module 802 may include an algorithm for gain control, and the gain control module 802 may operate in a DSP. The DSP may be a single chip, may be integrated into a single chip, or may be integrated into a processor of the electronic device 100, and is not limited herein.
3. The amplifying module 803b may amplify the input audio signal and transmit the amplified audio signal to the audio playing module 804.
The amplifying module 803b may amplify the input audio signal, and then perform digital-to-analog conversion (converting the audio signal in digital signal form into the audio signal in analog signal form) and transmit the amplified audio signal to the audio playing module 804.
Alternatively, the amplifying module 803a may feed back the input current of the audio playing module 804 to the predicting module 801.
Alternatively, the gain control module 802 may also directly input the audio signal after the gain control to the audio playing module.
4. The audio playback module 804 plays audio. The audio playback module 804 may be a speaker of the electronic device 100.
According to the anti-shutdown protection method provided by the embodiment of the application, when the electronic equipment plays audio, if the electronic equipment can detect that the battery voltage is lower than the voltage threshold and the electronic equipment predicts that the input current of the loudspeaker is higher than the current threshold, the electronic equipment adjusts the gain of the played audio signal, so that the signal amplitude of the audio signal is reduced, and the current of the audio circuit is reduced. The electronic equipment can adjust the gain of audio played by the electronic equipment in time when the power supply is low or the electronic equipment is in a scene with high shutdown probability such as low temperature, so that the current of an audio playing link is reduced, and the electronic equipment is prevented from being automatically shutdown due to undervoltage.
The above embodiments are only for illustrating the technical solution of the present application, and not for limiting the same; although the application has been described in detail with reference to the foregoing embodiments, it will be understood by those of ordinary skill in the art that: the technical scheme described in the foregoing embodiments can be modified or some technical features thereof can be replaced by equivalents; such modifications and substitutions do not depart from the spirit of the application.
As used in the above embodiments, the term "when …" may be interpreted to mean "if …" or "after …" or "in response to determination …" or "in response to detection …" depending on the context. Similarly, the phrase "at the time of determination …" or "if detected (a stated condition or event)" may be interpreted to mean "if determined …" or "in response to determination …" or "at the time of detection (a stated condition or event)" or "in response to detection (a stated condition or event)" depending on the context.
In the above embodiments, it may be implemented in whole or in part by software, hardware, firmware, or any combination thereof. When implemented in software, may be implemented in whole or in part in the form of a computer program product. The computer program product includes one or more computer instructions. When loaded and executed on a computer, produces a flow or function in accordance with embodiments of the present application, in whole or in part. The computer may be a general purpose computer, a special purpose computer, a computer network, or other programmable apparatus. The computer instructions may be stored in a computer-readable storage medium or transmitted from one computer-readable storage medium to another computer-readable storage medium, for example, the computer instructions may be transmitted from one website, computer, server, or data center to another website, computer, server, or data center by a wired (e.g., coaxial cable, fiber optic, digital subscriber line), or wireless (e.g., infrared, wireless, microwave, etc.). The computer readable storage medium may be any available medium that can be accessed by a computer or a data storage device such as a server, data center, etc. that contains an integration of one or more available media. The usable medium may be a magnetic medium (e.g., floppy disk, hard disk, magnetic tape), an optical medium (e.g., DVD), or a semiconductor medium (e.g., solid state disk), etc.
Those of ordinary skill in the art will appreciate that implementing all or part of the above-described method embodiments may be accomplished by a computer program to instruct related hardware, the program may be stored in a computer readable storage medium, and the program may include the above-described method embodiments when executed. And the aforementioned storage medium includes: ROM or random access memory RAM, magnetic or optical disk, etc.

Claims (9)

1. An anti-shutdown protection method, wherein the method is applied to an electronic device, the electronic device including an audio power amplifier smartPA, the method comprising:
When the electronic equipment plays the first audio, detecting the output voltage of a power supply in the electronic equipment;
The electronic equipment predicts the input current of a loudspeaker according to a first audio signal, wherein the first audio signal is an audio signal generated by the electronic equipment when the first audio is played;
The electronic device corrects the input current of the loudspeaker according to the actual input current obtained by smartPA to obtain corrected input current, and the time of the actual input current obtained by smartPA is earlier than the time of the electronic device predicting the input current;
When the output voltage is smaller than a power supply voltage threshold value and the corrected input current is larger than a first current threshold value, the electronic equipment reduces the gain of the first audio signal to obtain a second audio signal;
And playing the second audio signal by a loudspeaker of the electronic device.
2. The method of claim 1, wherein the electronic device reduces the gain of the first audio signal to obtain a second audio signal if the output voltage is less than a supply voltage threshold and the corrected input current is greater than a first current threshold; comprising the following steps:
And under the condition that the output voltage is smaller than a power supply voltage threshold value and the corrected input current is larger than a first current threshold value, the electronic equipment reduces the gain of the first audio signal by a first value to obtain a second audio signal.
3. The method according to claim 2, wherein the method further comprises:
The electronic device determines the first value based on the corrected input current and the output voltage.
4. A method according to any of claims 1-3, wherein the electronic device corrects the input current of the loudspeaker based on the actual input current obtained by smartPA, and after obtaining the corrected input current, the method further comprises:
When the output voltage is smaller than a power supply voltage threshold, the corrected input current is larger than a second current threshold and smaller than the first current threshold, the electronic equipment reduces the gain of the first audio signal by a second value to obtain a third audio signal, and the second value is smaller than the first value;
And playing the third audio signal by a loudspeaker of the electronic equipment.
5. The method of claim 4, wherein the electronic device corrects the input current of the speaker based on the actual input current obtained by smartPA, and wherein after obtaining the corrected input current, the method further comprises:
When the output voltage is smaller than a power supply voltage threshold, the corrected input current is larger than a third current threshold and smaller than the second current threshold, and the electronic equipment reduces the gain of the first audio signal by a third value to obtain a fourth audio signal, wherein the third value is smaller than the second value;
and playing the fourth audio signal by a loudspeaker of the electronic equipment.
6. The method of claim 5, wherein the loudness at which the electronic device plays the second audio signal is less than the loudness at which the electronic device plays the first audio signal;
the loudness of the third audio signal played by the electronic equipment is smaller than the loudness of the first audio signal played by the electronic equipment;
and the loudness of the fourth audio signal played by the electronic equipment is smaller than the loudness of the first audio signal played by the electronic equipment.
7. The method of any of claims 5 or 6, wherein the electronic device predicting the input current to the speaker from the first audio signal comprises:
The electronic equipment inputs the first audio signal into a current prediction model to obtain input current of a loudspeaker; the current prediction model can be obtained by training an audio signal and an input current of an actual loudspeaker in the electronic equipment, wherein the input of the current prediction model is the audio signal, and the output is the input current of the loudspeaker.
8. The method of claim 1, wherein the electronic device, while playing the first audio, detects an output voltage of a power supply in the electronic device, comprising:
The electronic device obtains the output voltage of a battery in the electronic device from an audio power amplifier smartPA in the electronic device; or the electronic equipment acquires the output voltage of the battery in the electronic equipment from the power management unit in the electronic equipment.
9. An electronic device, comprising: a speaker, one or more processors, one or more memories coupled with the speaker, and the one or more memories, the one or more memories to store computer program code comprising computer instructions that, when executed by the one or more processors, cause the electronic device to perform the shutdown protection method of any of the above claims 1-8.
CN202110855575.1A 2021-07-28 2021-07-28 Shutdown prevention protection method and electronic equipment Active CN115695640B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202110855575.1A CN115695640B (en) 2021-07-28 2021-07-28 Shutdown prevention protection method and electronic equipment

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202110855575.1A CN115695640B (en) 2021-07-28 2021-07-28 Shutdown prevention protection method and electronic equipment

Publications (2)

Publication Number Publication Date
CN115695640A CN115695640A (en) 2023-02-03
CN115695640B true CN115695640B (en) 2024-10-18

Family

ID=85058087

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202110855575.1A Active CN115695640B (en) 2021-07-28 2021-07-28 Shutdown prevention protection method and electronic equipment

Country Status (1)

Country Link
CN (1) CN115695640B (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN117032437B (en) * 2023-07-12 2024-08-30 荣耀终端有限公司 Audio playing method and electronic equipment

Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108767344A (en) * 2018-04-27 2018-11-06 出门问问信息科技有限公司 A kind of battery powered optimization method and device of intelligent sound
CN111373726A (en) * 2018-10-15 2020-07-03 华为技术有限公司 Parameter adjustment method and terminal for audio service

Family Cites Families (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101527543B (en) * 2008-03-06 2011-08-24 原景科技股份有限公司 Audio system capable of suppressing switch noise and audio amplifier
US9119159B2 (en) * 2011-01-10 2015-08-25 Qualcomm Incorporated Battery power monitoring and audio signal attenuation
CN106125880A (en) * 2016-06-14 2016-11-16 乐视控股(北京)有限公司 The method for controlling volume of a kind of intelligent terminal and device and storage medium
CN110618805B (en) * 2019-09-17 2023-12-08 Oppo广东移动通信有限公司 Method and device for adjusting electric quantity of equipment, electronic equipment and medium

Patent Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108767344A (en) * 2018-04-27 2018-11-06 出门问问信息科技有限公司 A kind of battery powered optimization method and device of intelligent sound
CN111373726A (en) * 2018-10-15 2020-07-03 华为技术有限公司 Parameter adjustment method and terminal for audio service

Also Published As

Publication number Publication date
CN115695640A (en) 2023-02-03

Similar Documents

Publication Publication Date Title
CN112789651B (en) Frequency adjustment method and device applied to terminal and electronic equipment
CN110506416A (en) A kind of method and terminal of terminal switching camera
WO2021083128A1 (en) Sound processing method and apparatus thereof
CN113448482B (en) Sliding response control method and device of touch screen and electronic equipment
CN111522425A (en) Power consumption control method of electronic equipment and electronic equipment
CN114915747B (en) Video call method, electronic device and readable storage medium
CN114466107A (en) Sound effect control method and device, electronic equipment and computer readable storage medium
CN111356222A (en) Transmission power adjustment method, terminal, storage medium, and electronic device
CN111031492B (en) Call demand response method and device and electronic equipment
CN114221402A (en) Charging method and device of terminal equipment and terminal equipment
CN113438364B (en) Vibration adjustment method, electronic device, and storage medium
CN115695640B (en) Shutdown prevention protection method and electronic equipment
CN116048831B (en) Target signal processing method and electronic equipment
CN113380240B (en) Voice interaction method and electronic equipment
CN114828098B (en) Data transmission method and electronic equipment
CN114079725B (en) Video anti-shake method, terminal device, and computer-readable storage medium
CN116069580A (en) Processor operation regulation method, electronic device and storage medium
CN113923372A (en) Exposure adjusting method and related equipment
CN115378303A (en) Method and device for adjusting drive waveform, electronic device and readable storage medium
CN114003241A (en) Interface adaptation display method and system of application program, electronic device and medium
CN113918003A (en) Method and device for detecting time length of skin contacting screen and electronic equipment
CN116320123B (en) Voice signal output method and electronic equipment
CN116719376B (en) Voltage control method, device, equipment and storage medium
CN116233599B (en) Video mode recommendation method and electronic equipment
CN117133311B (en) Audio scene recognition 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