CN115695640A - Shutdown prevention protection method and electronic equipment - Google Patents
Shutdown prevention protection method and electronic equipment Download PDFInfo
- Publication number
- CN115695640A CN115695640A CN202110855575.1A CN202110855575A CN115695640A CN 115695640 A CN115695640 A CN 115695640A CN 202110855575 A CN202110855575 A CN 202110855575A CN 115695640 A CN115695640 A CN 115695640A
- Authority
- CN
- China
- Prior art keywords
- electronic device
- audio signal
- electronic equipment
- input current
- 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.)
- Granted
Links
- 238000000034 method Methods 0.000 title claims abstract description 62
- 230000002265 prevention Effects 0.000 title claims abstract description 22
- 230000005236 sound signal Effects 0.000 claims abstract description 161
- 230000015654 memory Effects 0.000 claims description 25
- 238000004590 computer program Methods 0.000 claims description 9
- 238000012549 training Methods 0.000 claims description 2
- 238000004891 communication Methods 0.000 description 33
- 230000006854 communication Effects 0.000 description 33
- 230000006870 function Effects 0.000 description 26
- 238000007726 management method Methods 0.000 description 23
- 238000012545 processing Methods 0.000 description 18
- 238000010586 diagram Methods 0.000 description 11
- 238000010295 mobile communication Methods 0.000 description 11
- 230000008569 process Effects 0.000 description 11
- 210000000988 bone and bone Anatomy 0.000 description 10
- 230000000694 effects Effects 0.000 description 7
- 238000004364 calculation method Methods 0.000 description 6
- 238000001514 detection method Methods 0.000 description 6
- 230000003287 optical effect Effects 0.000 description 6
- 238000004422 calculation algorithm Methods 0.000 description 5
- 238000006243 chemical reaction Methods 0.000 description 5
- 239000000428 dust Substances 0.000 description 5
- XEEYBQQBJWHFJM-UHFFFAOYSA-N Iron Chemical compound [Fe] XEEYBQQBJWHFJM-UHFFFAOYSA-N 0.000 description 4
- 230000004044 response Effects 0.000 description 4
- 229920001621 AMOLED Polymers 0.000 description 3
- 230000001133 acceleration Effects 0.000 description 3
- 230000003321 amplification Effects 0.000 description 3
- 238000013528 artificial neural network Methods 0.000 description 3
- 238000013500 data storage Methods 0.000 description 3
- 238000005516 engineering process Methods 0.000 description 3
- 238000003199 nucleic acid amplification method Methods 0.000 description 3
- 230000036772 blood pressure Effects 0.000 description 2
- 230000001413 cellular effect Effects 0.000 description 2
- 230000008859 change Effects 0.000 description 2
- 230000005611 electricity Effects 0.000 description 2
- 230000001965 increasing effect Effects 0.000 description 2
- 229910052742 iron Inorganic materials 0.000 description 2
- 230000033001 locomotion Effects 0.000 description 2
- 230000002093 peripheral effect Effects 0.000 description 2
- 230000009467 reduction Effects 0.000 description 2
- 238000009877 rendering Methods 0.000 description 2
- 239000004065 semiconductor Substances 0.000 description 2
- 238000012546 transfer Methods 0.000 description 2
- 230000000007 visual effect Effects 0.000 description 2
- LFQSCWFLJHTTHZ-UHFFFAOYSA-N Ethanol Chemical compound CCO LFQSCWFLJHTTHZ-UHFFFAOYSA-N 0.000 description 1
- 230000002159 abnormal effect Effects 0.000 description 1
- 230000003416 augmentation Effects 0.000 description 1
- 238000010009 beating Methods 0.000 description 1
- 230000007175 bidirectional communication Effects 0.000 description 1
- 230000002457 bidirectional effect Effects 0.000 description 1
- 238000013529 biological neural network Methods 0.000 description 1
- 230000005540 biological transmission Effects 0.000 description 1
- 230000015572 biosynthetic process Effects 0.000 description 1
- 210000004556 brain Anatomy 0.000 description 1
- 239000003990 capacitor Substances 0.000 description 1
- 210000004027 cell Anatomy 0.000 description 1
- 230000000295 complement effect Effects 0.000 description 1
- 239000012141 concentrate Substances 0.000 description 1
- 239000004020 conductor Substances 0.000 description 1
- 238000012937 correction Methods 0.000 description 1
- 230000003111 delayed effect Effects 0.000 description 1
- 238000006073 displacement reaction Methods 0.000 description 1
- 239000000835 fiber Substances 0.000 description 1
- 238000001914 filtration Methods 0.000 description 1
- 230000004927 fusion Effects 0.000 description 1
- 230000005484 gravity Effects 0.000 description 1
- 238000009499 grossing Methods 0.000 description 1
- 230000036541 health Effects 0.000 description 1
- 239000012535 impurity Substances 0.000 description 1
- 230000006698 induction Effects 0.000 description 1
- 230000001939 inductive effect Effects 0.000 description 1
- 230000003993 interaction Effects 0.000 description 1
- 239000010985 leather Substances 0.000 description 1
- 239000004973 liquid crystal related substance Substances 0.000 description 1
- 230000007774 longterm Effects 0.000 description 1
- 238000012986 modification Methods 0.000 description 1
- 230000004048 modification Effects 0.000 description 1
- 238000012544 monitoring process Methods 0.000 description 1
- 230000001537 neural effect Effects 0.000 description 1
- 210000002569 neuron Anatomy 0.000 description 1
- 238000005457 optimization Methods 0.000 description 1
- 230000010349 pulsation Effects 0.000 description 1
- 239000002096 quantum dot Substances 0.000 description 1
- 238000012827 research and development Methods 0.000 description 1
- 230000002441 reversible effect Effects 0.000 description 1
- 238000005070 sampling Methods 0.000 description 1
- 230000008054 signal transmission Effects 0.000 description 1
- 239000007787 solid Substances 0.000 description 1
- 230000003238 somatosensory effect Effects 0.000 description 1
- 238000006467 substitution reaction Methods 0.000 description 1
- 230000001360 synchronised effect Effects 0.000 description 1
- 238000003786 synthesis reaction Methods 0.000 description 1
- 230000001755 vocal effect Effects 0.000 description 1
Images
Landscapes
- Telephone Function (AREA)
Abstract
A shutdown prevention protection method and electronic equipment are provided. In the method, when the electronic device plays audio, if the electronic device can detect that the battery voltage is lower than the voltage threshold and the electronic device predicts that the input current of the loudspeaker is higher than the current threshold, the electronic device 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 adjust the power of the audio played by the electronic equipment in time when the power supply electric quantity is low, the power consumption of an audio playing link is reduced, and the electronic equipment is prevented from being automatically turned off due to undervoltage.
Description
Technical Field
The present application relates to the field of electronic devices and electronic technologies, and in particular, to a shutdown prevention protection method and an electronic device.
Background
When electronic equipment such as a mobile phone and a tablet computer is in a low-temperature and low-power state, the internal resistance of a battery in the electronic equipment is increased. At this time, if the electronic device is playing audio, the current output by the audio link is large, which results in excessive internal resistance voltage division of the battery of the electronic device, so that the system of the electronic device is under-voltage, and the electronic device is subjected to screen flashing and shutdown.
Therefore, how to prevent the electronic equipment from flashing or being turned off on the premise of ensuring the audio playing effect when the electronic equipment plays audio is an urgent problem to be solved.
Disclosure of Invention
According to the method provided by the embodiment of the application, when the electronic equipment plays audio, if the output voltage of a battery of the electronic equipment is smaller than the preset threshold value of the battery voltage, and the input current of a loudspeaker predicted by the electronic equipment is larger than the current threshold value, the electronic equipment can reduce the gain of an audio signal, and can effectively reduce the probability of shutdown or screen flashing of the electronic equipment under the condition of undervoltage.
In a first aspect, the present application provides a shutdown prevention 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 when the electronic equipment plays a first audio; under the conditions 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 to obtain a second audio signal; and the loudspeaker of the electronic equipment plays the second audio signal.
Therefore, when the power supply is low in electricity or is in a scene with high shutdown probability such as low temperature, the electronic equipment can adjust the gain of the audio played by the electronic equipment in time, reduce the current of an audio playing link and avoid the automatic shutdown of the electronic equipment due to undervoltage.
With reference to the first aspect, in a possible implementation manner, under the condition 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 a gain of the first audio signal to obtain a second audio signal; the method comprises the following steps: and under the condition that the output voltage is smaller than the power supply voltage threshold and the input current is larger than the first current threshold, the electronic equipment reduces the gain of the first audio signal by a first numerical value to obtain a second audio signal.
Further, the electronic device may smoothly reduce 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 gain to decrease specifically.
With reference to the first aspect, in a possible implementation manner, after the electronic device predicts the input current of the speaker according to the first audio signal, the method further includes: when the output voltage is smaller than the power supply 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; and the loudspeaker of the electronic equipment plays the third audio signal.
In this way, the electronic device can set the classification threshold value of the input current of the loudspeaker, thereby realizing the gain classification 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 the input current of the speaker according to the first audio signal, the method further includes: when the output voltage is smaller than the power supply voltage threshold, the input current is larger than a third current threshold and smaller than a 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; and the loudspeaker of the electronic equipment plays the fourth audio signal.
In this way, the electronic device can set the classification threshold value of the input current of the loudspeaker, thereby realizing the gain classification control of the audio signal played by the electronic device.
With reference to the first aspect, in a possible implementation manner, a loudness of playing, by the electronic device, the second audio signal is smaller than a loudness of playing, by the electronic device, the first audio signal; the loudness of the electronic equipment playing the third audio signal is smaller than the loudness of the electronic equipment playing the first audio signal; the loudness of the electronic device playing the fourth audio signal is less than the loudness of the electronic device playing the first audio signal.
With reference to the first aspect, in one possible implementation manner, an electronic device predicting an input current of a speaker according to a first audio signal includes: the electronic equipment inputs the first audio signal into a current prediction model to obtain the input current of the loudspeaker; the current prediction model may be obtained by training an audio signal and an input current of an actual speaker in the electronic device, where an input of the current prediction model is the audio signal and an output thereof is the input current of the speaker.
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 a possible implementation manner, when the electronic device plays a first audio, detecting an output voltage of a power supply in the electronic device includes: the electronic equipment acquires the output voltage of a battery in the electronic equipment from an audio power amplifier smartPA in the electronic equipment; or, the electronic device acquires the output voltage of the battery in the electronic device from the power management unit in the electronic device.
In this way, the electronic device can acquire 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 electronics obtain the actual input current of the loudspeaker as 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 the input current of the speaker according to the first audio signal, the method may include: the electronic device corrects the input current of the speaker according to the actual input current to obtain a corrected input current. In this way, the input current of the speaker obtained by the electronic device can be made more accurate by the correction.
Further, with reference to the first aspect, in a possible implementation manner, in a case that the output voltage is smaller than a power supply voltage threshold and the input current is greater than a first current threshold, the electronic device reduces a gain of the first audio signal to obtain a second audio signal, including: and under the condition that the output voltage is smaller than the power supply voltage threshold and the corrected 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.
In a second aspect, the present application provides an electronic device, which may include: the computer program product may further include a speaker, one or more processors, one or more memories, the one or more processors coupled with the speaker, and the one or more memories for storing computer program code, the computer program code including computer instructions that, when executed by the one or more processors, cause the electronic device to perform the method of preventing shutdown 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, which includes computer instructions, and when the computer instructions are executed on an electronic device, the electronic device is caused 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 execute the shutdown prevention protection method in any one of the possible implementations of the first aspect.
Drawings
Fig. 1A is a schematic structural diagram of an electronic device provided in 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 diagram of a software architecture of an electronic device according to an embodiment of the present application;
FIG. 3 is a schematic flow chart of a shutdown prevention protection method provided in an embodiment of the present application;
FIG. 4 is a schematic diagram of a circuit connection provided by an embodiment of the present application;
FIG. 5 is a schematic diagram of a power supply voltage waveform provided by an embodiment of the present application;
FIG. 6 is a schematic circuit diagram of a voltage envelope according to an embodiment of the present disclosure;
fig. 7 is a schematic diagram of a power model of a speaker provided in an embodiment of the present application;
fig. 8A is a schematic view of an implementation of a shutdown prevention protection method provided in an embodiment of the present application;
fig. 8B is a schematic view of an implementation of a shutdown prevention protection method provided in the embodiment of the present application.
Detailed Description
The terminology used in the following embodiments of the present application is for the purpose of describing particular embodiments only and is not intended to be limiting of the present 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 otherwise. It should also be understood that the term "and/or" as used herein refers to and encompasses any and all possible combinations of one or more of the listed items.
In the following, the terms "first", "second" are used for descriptive purposes only and are not to be understood as implying or implying relative importance or implicitly indicating the number of technical features indicated. Thus, a feature defined as "first" or "second" may explicitly or implicitly include one or more of that feature, and in the description of embodiments of this application, a "plurality" means two or more unless indicated otherwise.
When the electronic device plays audio and the battery power of the electronic device is low, the electronic device is under-voltage, and the electronic device is shut down. For example, a user is playing audio (e.g., playing music, or a radio, or a talking novel, etc.) using a cell phone. When the battery of the mobile phone is in low power, the mobile phone can be automatically powered off. Therefore, the user can not use the mobile phone to play audio or perform other operations any more, and the user experience is low.
In some embodiments, the electronic device may obtain a battery temperature of the electronic device. And 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 shut down. 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 value or the load of the battery is higher than the load threshold value, the electronic device enters a low power consumption mode or is turned off. Thus, the electronic device does not actively control the operating state of the electronic device, and the capability of reducing the shutdown probability of the electronic device is limited.
In other embodiments, the electronic device may obtain a battery voltage value, a battery current value, and an internal resistance value in a Power Management Unit (PMU), and may constrain a gain of the electronic device when the electronic device is under-voltage. Thus, the electronic equipment can be prevented from being shut down due to undervoltage. However, the PMU chip generally does not issue data in real time because issuing data (data of voltage value, current value, etc. of the battery) increases the operation amount and power consumption of the electronic device. In this way, the voltage value and the current value of the battery obtained by the electronic device from the PMU chip are not the real-time voltage value and the real-time current value of the battery in the electronic device. However, the electronic device in the shutdown prevention method has a limited effect of preventing shutdown due to the fact that the peak current of the battery changes rapidly.
The embodiment of the application provides a shutdown prevention protection method, which comprises the following steps: the electronic equipment plays audio, and when the voltage of a battery in the electronic equipment is smaller than a voltage threshold value and the current of the loudspeaker is predicted to be larger than a current threshold value in real time according to the played audio, the electronic equipment adjusts the audio gain according to the predicted current of the loudspeaker. Therefore, the electronic equipment can be prevented from being shut down due to the fact that the current of the audio link in the electronic equipment is too large when the electronic equipment is in a low power state.
In the embodiment of the present application, the electronic device may be an electronic device having a speaker and capable of playing audio, for example, a mobile phone, a tablet, a notebook computer, a computer, and the like.
An exemplary electronic device 100 provided by embodiments 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 following describes an embodiment specifically by 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: the mobile terminal includes a processor 110, an external memory interface 120, an internal memory 121, a Universal Serial Bus (USB) interface 130, a charging management module 140, a power management module 141, a battery 142, an antenna 1, an antenna 2, a mobile communication module 150, a wireless communication module 160, an audio module 170, a speaker 170A, a receiver 170B, a microphone 170C, an earphone interface 170D, a sensor module 180, a button 190, a motor 191, an indicator 192, a camera 193, a display screen 194, a Subscriber Identity Module (SIM) card interface 195, and the like. The sensor module 180 may include a pressure sensor 180A, a gyroscope sensor 180B, an air pressure sensor 180C, a magnetic sensor 180D, an acceleration sensor 180E, a distance sensor 180F, a proximity light 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 is to be understood that the illustrated structure of the embodiment of the present invention does not specifically limit the electronic device 100. In other embodiments of the present application, electronic device 100 may include more or fewer components than shown, or some components may be combined, some components may be split, or a different arrangement of components. The illustrated components may be implemented in hardware, software, or a combination of software and hardware.
The controller may be, among other things, a neural center and a command center of the electronic device 100. The controller can generate an operation control signal according to the instruction operation code and the time sequence signal to finish the control of instruction fetching and instruction execution.
A memory may also be provided in 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 have just been used or recycled by the processor 110. If the processor 110 needs to use the instruction or data again, it can be called directly from the memory. Avoiding repeated accesses reduces the latency of the processor 110, thereby increasing the efficiency of the system.
In some embodiments, processor 110 may include one or more interfaces. The interface may include an integrated circuit (I2C) interface, an integrated circuit built-in audio (I2S) interface, a Pulse Code Modulation (PCM) interface, a universal asynchronous receiver/transmitter (UART) interface, a Mobile Industry Processor Interface (MIPI), a general-purpose input/output (GPIO) interface, a Subscriber Identity Module (SIM) interface, and/or a Universal Serial Bus (USB) interface, etc.
The I2C interface is a bidirectional synchronous serial bus including a serial data line (SDA) and a Serial Clock Line (SCL). In some embodiments, processor 110 may include multiple sets of I2C buses. The processor 110 may be coupled to the touch sensor 180K, the charger, the flash, the camera 193, etc. through different I2C bus interfaces, respectively. For example: the processor 110 may be coupled to the touch sensor 180K through an I2C interface, so that the processor 110 and the touch sensor 180K communicate 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, processor 110 may include multiple sets of I2S buses. The processor 110 may be coupled to the audio module 170 through an I2S bus to enable communication between the processor 110 and the audio module 170. In some embodiments, the audio module 170 may transmit the audio signal to the wireless communication module 160 through the I2S interface, so as to implement a function of receiving a call through a bluetooth headset.
The PCM interface may also be used for audio communication, sampling, quantizing and encoding analog signals. In some embodiments, audio module 170 and wireless communication module 160 may be coupled by 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, so as to implement a function of answering a call through a 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 used for asynchronous communications. The bus may be a bidirectional communication bus. It converts the data to be transmitted between serial communication and parallel communication. In some embodiments, a UART interface is generally used to connect the processor 110 and 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 the audio signal to the wireless communication module 160 through a UART interface, so as to implement the function of playing music through a bluetooth headset.
MIPI interfaces may be used to connect processor 110 with peripheral devices such as display screen 194, camera 193, and the like. The MIPI interface includes a Camera Serial Interface (CSI), a Display Serial Interface (DSI), and the like. In some embodiments, processor 110 and camera 193 communicate through a CSI interface to implement the capture functionality of electronic device 100. Processor 110 and display screen 194 communicate via a DSI interface to implement display functions of electronic device 100.
The GPIO interface may be configured by software. The GPIO interface may be configured as a control signal and may also be configured 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, I2S interface, UART interface, MIPI interface, and the like.
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 transmit data between the electronic device 100 and a peripheral device. And the earphone can also be used for connecting an earphone and playing audio through the earphone. The interface may also be used to connect other electronic devices, such as AR devices and the like.
It should be understood that the connection relationship between the modules according to the embodiment of the present invention is only illustrative, and is not limited to the structure of the electronic device 100. In other embodiments of the present application, the electronic device 100 may also adopt different interface connection manners or a combination of multiple interface connection manners in the above embodiments.
The charging management module 140 is configured to receive a charging input from a charger. The charger can be a wireless charger or a wired charger. In some wired charging embodiments, the charging management module 140 may receive charging input from a wired charger via the USB interface 130. In some wireless charging embodiments, the charging management module 140 may receive a 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 to connect the battery 142, the charging management module 140 and the processor 110. The power management module 141 receives input from the battery 142 and/or the charging 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 used to monitor parameters such as battery capacity, battery cycle count, battery state of health (leakage, impedance), etc. In some other embodiments, the power management module 141 may also be disposed in the processor 110. In other embodiments, the power management module 141 and the charging 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 can also be multiplexed to improve the utilization of the antennas. For example: the antenna 1 may be multiplexed as 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 including wireless communication of 2G/3G/4G/5G, etc. applied to the electronic device 100. The mobile communication module 150 may include at least one filter, a switch, a power amplifier, a Low Noise Amplifier (LNA), and the like. The mobile communication module 150 may receive the electromagnetic wave from the antenna 1, filter, amplify, etc. the received electromagnetic wave, and transmit the electromagnetic wave to the modem processor for demodulation. The mobile communication module 150 may also amplify the signal modulated by the modem processor, and convert the signal into electromagnetic wave through the antenna 1 to radiate the electromagnetic wave. 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 disposed 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 a 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 passes the demodulated low frequency baseband signal to a 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 a sound signal through an audio device (not limited to the speaker 170A, the receiver 170B, etc.) or displays an image 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 modules, independent of the processor 110.
The wireless communication module 160 may provide solutions for wireless communication applied to the electronic device 100, including Wireless Local Area Networks (WLANs) (e.g., wireless fidelity (Wi-Fi) networks), bluetooth (bluetooth, BT), global Navigation Satellite System (GNSS), frequency Modulation (FM), near Field Communication (NFC), infrared (IR), and the like. The wireless communication module 160 may be one or more devices integrating at least one communication processing module. The wireless communication module 160 receives electromagnetic waves via the antenna 2, performs frequency modulation and filtering processing on 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, perform frequency modulation and amplification on the signal, and convert the signal into electromagnetic waves through the antenna 2 to radiate the electromagnetic waves.
In some embodiments, antenna 1 of electronic device 100 is coupled to mobile communication module 150 and antenna 2 is coupled to wireless communication module 160 so that electronic device 100 can communicate with networks and other devices through wireless communication techniques. The wireless communication technology may include global system for mobile communications (GSM), general Packet Radio Service (GPRS), code division multiple access (code division multiple access, CDMA), wideband Code Division Multiple Access (WCDMA), time-division code division multiple access (time-division code division multiple access, TD-SCDMA), long Term Evolution (LTE), BT, GNSS, WLAN, NFC, FM, and/or IR technologies, etc. The GNSS may include a Global Positioning System (GPS), a global navigation satellite system (GLONASS), a beidou navigation satellite system (BDS), a quasi-zenith satellite system (QZSS), and/or a Satellite Based Augmentation System (SBAS).
The electronic device 100 implements display functions via the GPU, the display screen 194, and the application processor. The GPU is a microprocessor for image processing, and is connected to the display screen 194 and an application processor. The GPU is used to perform mathematical and geometric calculations for graphics rendering. The processor 110 may include one or more GPUs that execute program instructions to generate or alter display information.
The display screen 194 is used to display images, video, and the like. The display screen 194 includes a display panel. The display panel may adopt a Liquid Crystal Display (LCD), an organic light-emitting diode (OLED), an active-matrix organic light-emitting diode (active-matrix organic light-emitting diode, AMOLED), a flexible light-emitting diode (FLED), a miniature, a Micro-oeld, a quantum dot light-emitting diode (QLED), and 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 a shooting function through the ISP, the camera 193, the video codec, the GPU, the display 194, the application processor, and the like.
The ISP is used to process the data fed back by the camera 193. For example, when a photo is taken, the shutter is opened, light is transmitted to the camera photosensitive element through the lens, the optical signal is converted into an electrical signal, and the camera photosensitive element transmits the electrical signal to the ISP for processing and converting into an image visible to naked eyes. The ISP can also carry out algorithm optimization on 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 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 to the photosensitive element. The photosensitive element may be a Charge Coupled Device (CCD) or a complementary metal-oxide-semiconductor (CMOS) phototransistor. The light sensing element converts the optical signal into an electrical signal, which is then passed to the ISP where it is converted into a digital image signal. And 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 and other formats. 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 digital image signals and other digital signals. For example, when the electronic device 100 selects a frequency bin, the digital signal processor is used to perform fourier transform or the like on the frequency bin energy.
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: moving Picture Experts Group (MPEG) 1, MPEG2, MPEG3, MPEG4, and the like.
The NPU is a neural-network (NN) computing processor that processes input information quickly by using a biological neural network structure, for example, by using a transfer mode between neurons of a human brain, and can also learn by itself continuously. Applications such as intelligent recognition of the electronic device 100 can be implemented by the NPU, for example: image recognition, face recognition, speech recognition, text understanding, and the like.
The external memory interface 120 may be used to connect an external memory card, such as a Micro SD card, to extend the memory capability of the electronic device 100. The external memory card communicates with the processor 110 through the external memory interface 120 to implement a data storage function. For example, files such as music, video, etc. are saved in an external memory card.
The internal memory 121 may be used to store computer-executable program code, which includes 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 program storage area and a data storage area. The storage program area may store an operating system, an application program (such as a sound playing function, an image playing function, and the like) required by at least one function, and the like. The storage data area may store data (such as audio data, phone book, etc.) created during use of the electronic device 100, and the like. 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 (UFS), and the like.
The electronic device 100 may implement audio functions via the audio module 170, the speaker 170A, the receiver 170B, the microphone 170C, the headphone interface 170D, and the application processor. Such as music playing, recording, etc.
The audio module 170 is used to convert digital audio information into analog audio signals for output, and also used to convert analog audio inputs into digital audio signals. 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 some functional modules of the audio module 170 may be disposed in the processor 110.
The speaker 170A, also called a "horn", is used to convert the audio electrical signal into a sound signal. The electronic apparatus 100 can listen to music through the speaker 170A or listen to a handsfree call. Specifically, the audio electricity can make a cone or a diaphragm in the loudspeaker vibrate and generate resonance (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 can refer to the description in fig. 1B, and are not described herein again.
In this embodiment, in a possible implementation manner, the speaker 170A may further be connected to a Smart Power Amplifier (Smart PA) (for audio). The audio electrical signal is amplified by the Smart PA and then transmitted to the speaker 170A. The Smart PA is used for amplifying audio electric signals and can also be used for monitoring the current voltage of a loudspeaker.
Optionally, in a possible implementation manner, the Smart PA may be further connected to the battery 142, and the Smart PA may detect the output voltage of the battery 142.
The receiver 170B, also called "earpiece", is used to convert the electrical audio signal into an acoustic signal. When the electronic apparatus 100 receives a call or voice information, it can receive voice by placing the receiver 170B close to the ear of the person.
The microphone 170C, also referred to as a "microphone," is used to convert sound signals into electrical signals. When making a call or transmitting voice information, the user can input a voice signal to the microphone 170C by speaking near the microphone 170C through the mouth. 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 to achieve a noise reduction function in addition to collecting sound signals. In other embodiments, the electronic device 100 may further include three, four or more microphones 170C to collect sound signals, reduce noise, identify sound sources, perform directional recording, and so on.
The earphone interface 170D is used to connect a wired earphone. The headset interface 170D may be the USB interface 130, or may be a 3.5mm open mobile electronic device platform (OMTP) standard interface, a cellular telecommunications industry association (cellular telecommunications industry association) standard interface of the USA.
The pressure sensor 180A is used for sensing a pressure signal, and can 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 can be of a variety of 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 sensor comprising at least two parallel plates having an electrically conductive material. When a force acts on the pressure sensor 180A, the capacitance between the electrodes changes. 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 intensity of the touch operation according to the pressure sensor 180A. The electronic apparatus 100 may also calculate the touched position from the detection signal of the pressure sensor 180A. In some embodiments, the touch operations that are applied to the same touch position but have different touch operation intensities may correspond to different operation instructions. For example: and when the touch operation with the touch operation intensity smaller than the first pressure threshold value acts on the short message application icon, executing an instruction for viewing the short message. And when the touch operation with the touch operation intensity larger than or equal to the first pressure threshold value acts on the short message application icon, executing an instruction of newly building the short message.
The gyro sensor 180B may be used to determine the motion attitude of the electronic device 100. In some embodiments, the angular velocity of electronic device 100 about three axes (i.e., the x, y, and z axes) may be determined by gyroscope sensor 180B. The gyro sensor 180B may be used for photographing anti-shake. Illustratively, when the shutter is pressed, the gyro sensor 180B detects a shake angle of the electronic device 100, calculates a distance to be compensated for the lens module according to the shake angle, and allows the lens to counteract the shake of the electronic device 100 through a reverse movement, thereby achieving anti-shake. The gyroscope sensor 180B may also be used for navigation, somatosensory gaming scenes.
The air pressure sensor 180C is used to measure air pressure. In some embodiments, electronic device 100 calculates altitude, aiding in positioning and navigation, from barometric pressure values measured by barometric pressure sensor 180C.
The magnetic sensor 180D includes a hall sensor. The electronic device 100 may detect the opening and closing of the flip holster using the magnetic sensor 180D. In some embodiments, when the electronic device 100 is a flip phone, the electronic device 100 may detect the opening and closing of the flip according to the magnetic sensor 180D. And then according to the opening and closing state of the leather sheath or the opening and closing state of the flip cover, the automatic unlocking of the flip cover is 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 can be detected when the electronic device 100 is stationary. The method can also be used for recognizing the posture 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, taking a picture of a scene, electronic device 100 may utilize range sensor 180F to range for fast 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 to the outside through the light emitting diode. The electronic device 100 detects infrared reflected light from a nearby object using a photodiode. When sufficient reflected light is detected, it can be determined that there is an object near the electronic device 100. When insufficient reflected light is detected, the electronic device 100 may determine that there are no objects near the electronic device 100. The electronic device 100 can utilize the proximity light sensor 180G to detect that the user holds the electronic device 100 close to the ear for talking, so as to automatically turn off the screen to achieve the purpose of saving power. The proximity light sensor 180G can also be used in a holster mode, a pocket mode automatically unlocks and locks the screen.
The ambient light sensor 180L is used to sense ambient light brightness. Electronic device 100 may adaptively adjust the brightness of display screen 194 based on the perceived ambient light level. The ambient light sensor 180L can also be used to automatically adjust the white balance when taking a picture. The ambient light sensor 180L may also cooperate with the proximity light sensor 180G to detect whether the electronic device 100 is in a pocket to prevent accidental touches.
The fingerprint sensor 180H is used to collect a fingerprint. The electronic device 100 may utilize the collected fingerprint characteristics to unlock a fingerprint, access an application lock, photograph a fingerprint, answer an incoming call with a fingerprint, and so on.
The temperature sensor 180J is used to detect temperature. In some embodiments, electronic device 100 implements a temperature processing strategy using the temperature detected by temperature sensor 180J. For example, when the temperature reported by the temperature sensor 180J exceeds a threshold, the electronic device 100 performs a reduction in performance of a processor located near the temperature sensor 180J, so as to reduce power consumption and implement thermal protection. In other embodiments, the electronic device 100 heats the battery 142 when the temperature is below another threshold to avoid the low temperature causing the electronic device 100 to shut down abnormally. In other embodiments, when the temperature is lower than a further threshold, the electronic device 100 performs boosting on the output voltage of the battery 142 to avoid abnormal shutdown due to low temperature.
The touch sensor 180K is 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 used to detect a touch operation applied thereto or nearby. The touch sensor may communicate the detected touch operation to the application processor to determine the touch event type. Visual output associated with the touch operation may be provided via the display screen 194. In other embodiments, the touch sensor 180K may be disposed on a surface of the electronic device 100, different from the position of the display screen 194.
The bone conduction sensor 180M may acquire a vibration signal. In some embodiments, the bone conduction sensor 180M may acquire a vibration signal of the human vocal part vibrating the bone mass. The bone conduction sensor 180M may also contact the human body pulse to receive the blood pressure pulsation signal. In some embodiments, the bone conduction sensor 180M may also be disposed in a headset, integrated into a bone conduction headset. The audio module 170 may analyze a voice signal based on the vibration signal of the bone block vibrated by the sound part obtained by the bone conduction sensor 180M, so as to implement a voice function. The application processor can analyze heart rate information based on the blood pressure beating signal acquired by the bone conduction sensor 180M, so that the heart rate detection function is realized.
The keys 190 include a power-on key, a volume key, and the like. The keys 190 may be mechanical keys. Or may be touch keys. The electronic apparatus 100 may receive a key input, and generate a key signal input related to user setting and function control of the electronic apparatus 100.
The motor 191 may generate a vibration cue. The motor 191 may be used for incoming call vibration prompts as well as for touch vibration feedback. For example, touch operations applied to different applications (e.g., photographing, audio playing, etc.) may correspond to different vibration feedback effects. The motor 191 may also respond to different vibration feedback effects for touch operations applied to different areas of the display screen 194. Different application scenes (such as time reminding, receiving information, alarm clock, game and the like) can also correspond to different vibration feedback effects. The touch vibration feedback effect may also support customization.
Indicator 192 may be an indicator light that may be used to indicate a state of charge, a change in charge, or a message, missed call, notification, etc.
The SIM card interface 195 is used to connect a SIM card. The SIM card can be attached to and detached from the electronic device 100 by being inserted into the SIM card interface 195 or being pulled out of the SIM card interface 195. 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 a Nano SIM card, a Micro SIM card, a SIM card, etc. The same SIM card interface 195 can be inserted with multiple cards at the same time. 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 implement functions such as communication and data communication. In some embodiments, the electronic device 100 employs esims, namely: 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 the electronic device 100 according to the 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 film, a voice coil, a dust cap and an elastic wave. The magnetic circuit system mainly comprises a magnet, a yoke, a washer and a rear cover. The support system may include a frame and terminals therein. Wherein:
the diaphragm is a sound wave radiating element in the loudspeaker, and is one of the main components of the loudspeaker, and the characteristics of the diaphragm directly influence various electroacoustic parameters, sound quality and the like of the loudspeaker.
The voice coil is one of the important components of a speaker, which may also be referred to as the heart of the speaker. After the voice coil is conductive, the voice coil can move in the magnetic field according to the Fleming left hand rule to drive the voice diaphragm to vibrate.
The dust cap may be called as a dust cover, a dust screen, etc., and may be used to prevent impurities such as dust from entering the magnetic gap from the front of the vibrating plate to cause noise.
The elastic wave can be called as a damper and a centering support sheet, and can be used for fixing the central 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 can also be used to control the low frequency resonance frequency of the speaker, limiting the maximum displacement of the voice coil.
The magnet is primarily used to provide a magnetic field for the loudspeaker.
The yoke iron plays a role of 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 also be called as an upper plate or an upper sheet, in the magnetic circuit, the washer and the yoke have the magnetic conduction function, and the washer and the yoke can concentrate the N pole and the S pole of the magnet to the gap through the circuit, so that the gap generates a stronger magnetic field.
The antimagnetic shield, which may also be referred to as a back magnetic shell or back cover, may be used to prevent the magnet from radiating a magnetic field outward.
The frame is a frame for mounting a vibrating part, a magnetic circuit and other parts in the speaker.
The terminal can be used for transmitting an external signal to the conducting wire and entering the voice coil so that the voice coil can obtain current.
Fig. 2 is a block diagram of a software structure of the electronic device 100 according to the embodiment of the present application.
The layered architecture divides the software into several layers, each layer having a clear role and division of labor. The layers communicate with each other through a software interface. In some embodiments, the system is divided into four layers, an application layer, an application framework layer, a Runtime (Runtime) and system library, and a kernel layer, from top to bottom.
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 camera, gallery, calendar, phone call, map, navigation, WLAN, bluetooth, music, video, short message, etc.
The application framework layer provides an Application Programming Interface (API) and a programming framework for the application program of the application layer. The application framework layer includes a number of predefined functions.
As shown in FIG. 2, the application framework layers may include a window manager, content provider, view system, phone manager, resource manager, notification manager, and the like.
The window manager is used for managing window programs. The window manager can obtain the size of the display screen, judge whether a status bar exists, lock the screen, intercept the screen and the like.
Content providers are used to store and retrieve data and make it accessible to applications. The data may include video, images, audio, calls made and received, browsing history and bookmarks, phone books, 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, the display interface including the short message notification icon may include a view for displaying text and a view for displaying pictures.
The phone manager is used to provide communication functions for the electronic device 100. Such as management of call status (including on, off, etc.).
The resource manager provides various resources for the application, such as localized strings, icons, pictures, layout files, video files, and the like.
The notification manager enables the application to display notification information in the status bar, can be used to convey notification-type messages, can disappear automatically after a brief dwell, and does not require user interaction. Such as a notification manager used to inform download completion, message alerts, etc. The notification manager may also be a notification that appears in the form of a chart or scroll bar text at the top status bar of the system, such as a notification of a background running application, or a notification that appears on the screen in the form of a dialog interface. For example, prompting text information in the status bar, sounding a prompt tone, vibrating the electronic device, flashing an indicator light, etc.
The Runtime (Runtime) includes a core library and a virtual machine. Runtime is responsible for scheduling and management of the system.
The core library comprises two parts: one part is the function that the programming language (e.g. java 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 programming files (e.g., jave files) of the application layer and the application framework layer as binary files. The virtual machine is used for performing the functions of object life cycle management, stack management, thread management, safety and exception management, garbage collection and the like.
The system library may include a plurality of functional modules. For example: surface managers (surface managers), media Libraries (Media Libraries), three-dimensional graphics processing Libraries (e.g., openGL ES), two-dimensional graphics engines (e.g., SGL), and the like.
The surface manager is used to manage the display subsystem and provides a fusion of two-Dimensional (2-Dimensional, 2D) and three-Dimensional (3-Dimensional, 3D) layers for multiple applications.
The media library supports a variety of commonly used audio, video format playback and recording, and still image files, among others. The media library may support a variety of audio-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 following describes exemplary workflow of the software and hardware of the electronic device 100 in connection with capturing a photo scene.
When the 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 an original input event (including touch coordinates, a time stamp of the touch operation, and other information). The raw input events are stored at the kernel layer. And the application program framework layer acquires the original input event from the kernel layer and identifies the control corresponding to the input event. Taking the touch operation as a touch click operation, and taking a control corresponding to the click operation as a control of a camera application icon as an example, the camera application calls an interface of the application framework layer, starts the camera application, further starts the camera drive by calling the kernel layer, and captures a still image or a video through the camera 193.
The shutdown prevention protection method provided by the embodiment of the application is described below with reference to the accompanying drawings. Fig. 3 exemplarily illustrates a flow chart of a power-off prevention protection method provided by an embodiment of the present application. As shown in fig. 3, a shutdown prevention protection method provided in an embodiment of the present application may include the following steps:
s301, when the electronic device 100 plays the audio, detecting that the power voltage in the electronic device 100 is smaller than the voltage threshold Vth.
The electronic device 100 is playing audio, and it is understood that the electronic device 100 is playing audio through a speaker in the electronic device. The hardware configuration of the electronic device 100 may be as shown in fig. 1A, and the speaker 170A in the electronic device 100 may play audio.
The voltage threshold Vth may be configured by a system of the electronic device 100, which is a threshold of the power supply output voltage configured by the electronic device 100.
The electronic apparatus 100 can acquire a power supply voltage in the electronic apparatus 100, that is, 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 Manager Unit (PMU) in the electronic device 100. Generally, the battery 142 may send voltage data of the battery 142 to the PMU every 2 seconds, which may save the voltage data of the battery 142.
In another possible implementation manner, the electronic device 100 may obtain the voltage of the battery 142 in real time through a Smart Power Amplifier (for audio). The Smart PA can detect the output voltage of the battery 142 in real time.
Illustratively, fig. 4 shows a circuit schematic of the electronic device 100 in connection with a Smart PA and a speaker, and a power supply. As shown in fig. 4, a Smart PA400 may be connected to the power supply of the electronic device 100 and may also be connected to the 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 supply, and the boost converter 401 may boost a power supply voltage input to the boost converter 401. The boost converter 401 boosts the power supply voltage and inputs the boosted 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 audio signal stream with the adjusted gain may be amplified by amplifier 406 and transmitted to speaker 170A. The audio signal stream may be Pulse Code Modulation (PCM) processed before the gain is adjusted.
The Smart PA400 may be connected to a power supply voltage through an analog-digital converter 403, and detects an output voltage of the power supply (which may be simply referred to as a power supply voltage in the embodiment of the present application). The analog-to-digital converter 403 may convert the analog voltage signal into a digital voltage signal.
The Smart PA400 may be connected across a resistor 407 through an analog-to-digital converter 404 to detect the input current to the speaker 170A. The analog-to-digital converter 404 may convert the analog current signal to a digital current signal.
The Smart PA400 may be connected to the speaker 170A through the analog-to-digital converter 405 to detect the input voltage of the speaker 170A. The analog-to-digital converter 405 may convert the analog voltage signal to a digital voltage signal.
The signal encoding module 402 may output the power voltage detected by the analog-to-digital converter 403, i.e., the power voltage Vbat sense fed back by the Smart PA400. The signal encoding module 402 may output the input current of the speaker 170A detected by the analog-to-digital converter 403, i.e., the input current Isense of the speaker 170A fed back by the Smart PA400. The signal encoding module 402 may output the input voltage of the speaker 170A detected by the analog-to-digital converter 403, i.e., the input voltage Vsense of the speaker 170A fed back by the Smart PA400.
The signal encoding module 402 may include an inter-integrated circuit (I2S) audio signal transmission encoding scheme and a Time Division Multiplexing (TDM) signal transmission encoding scheme.
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 fed back supply voltage Vbat sense.
Illustratively, the waveform variation of Vbat sense may be as shown in fig. 5. As shown in fig. 5, vbat sense changes greatly in a short time. If the electronic device 100 directly compares Vbat sense acquired in real time with the voltage threshold Vth, the comparison result may be unstable. That is, electronic device 100 determines that acquired Vbat sense is less than voltage threshold Vth at time T1, and that acquired Vbat sense is greater than voltage threshold Vth at time T2, where time T1 is a time before time T2. Therefore, electronic device 100 may process the acquired Vbat sense, and electronic device 100 may use the processed Vbat sense as the detected power supply voltage.
In one possible implementation, the electronic device 100 may perform envelope detection on the supply voltage Vbat sense fed back by the Smart PA400 as the supply voltage.
Illustratively, fig. 6 shows a circuit schematic for enveloping a voltage. As shown in fig. 6, the supply voltage Vbat sense fed back by the Smart PA400 may be the input Uin in fig. 6, and the output Uout may be the supply voltage detected by the electronic device 100. The circuit schematic diagram may further include a diode D1, a capacitor C1, and a resistor R1. The input Uin is connected with the anode of the diode D1, and the output Uout is connected with the cathode of the diode D1.
When Uin (n) is greater than Uout (n-1), the relationship of output Uout and input Uin may be as shown in equation (1):
uout (n) = Uin (n) formula (1)
In the 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; uout (n-1) the output voltage of the circuit at time (n-1).
When Uin (n) is less than Uout (n-1), the relationship of output Uout and input Uin may be as shown in equation (2):
in the 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; uout (n-1) the output voltage of the circuit at time (n-1). R1 is a resistance value, and C1 is a capacitance value.
Since the input Uin may be different at different times, the output Uout may also be different at different times. Uin (n) may be the power supply voltage Vbat sense fed back from Smart PA400 at time n, uout (n-1) may be a voltage enveloped in the power supply voltage Vbat sense fed back from Smart PA400 at time n-1, and this voltage may be the power supply voltage of electronic apparatus 100 at time n-1. Uout (n) is a voltage enveloped by the power supply voltage Vbat sense fed back to the Smart PA400 at time n, and this voltage may be the power supply voltage of the electronic device 100 at time n.
Further, the electronic device 100 may compare Uout (n) with the voltage threshold Vth, and if Uout (n) is less 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, that is, 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 a system of the electronic device 100.
Optionally, in a possible implementation manner, the electronic device may perform step S301 and step S302 at the same time.
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 loudspeaker, the input of which may be the audio signal, and the output of which may be the input current Ii of the loudspeaker.
Specifically, the predictive model may be a power model of a sealed speaker as shown in fig. 7. As shown in fig. 7, the power model may be defined by the following equation:
i(s) = U(s) × H(s) formula (5)
Wherein, the formula (3) is a calculation formula of the voltage inside the speaker in the power model shown in fig. 7; formula (4) is a calculation formula 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) in the power model shown in fig. 7, where H(s) is a transfer function; equation (7) is a calculation equation of the impedance Z(s) in the power model shown in fig. 7.
In the above-mentioned formula (3) -formula (7), u is a voltage across the speaker, i is a current input into the speaker, and R E A direct current resistance of a voice coil in the loudspeaker; b is the magnetic induction intensity in the magnetic gap of the loudspeaker; l is the length of the voice coil wire in the loudspeaker magnetic field; l is a radical of an alcohol E Inductance of a voice coil in the loudspeaker; f is the acting force of the magnetic field in the loudspeaker to the voice coil; m is a group of ms Mechanical mass for the enclosure and air load; r ms Is the force resistance of the vibration system in the loudspeaker; c ms The method comprises the following steps that (1) the force sequence of a vibration system in a loudspeaker is adopted, and x is the amplitude value of a sound film in the loudspeaker; s is the laplacian 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 exist in the electronic device 100 and be configured with R E 、L E 、M ms 、C ms The values of the parameters Bl, etc. And when an audio signal, i.e., the input voltage U(s), is input to the power model, the electronic apparatus 100 may obtain the predicted input current I(s) of the speaker through the above equation (7).
In one possible implementation, the values of the parameters in the power model may be calculated by a developer through modeling a speaker in the electronic device. The developer may then calculate R E 、L E 、M ms 、C ms The values of the parameters Bl, etc. are configured into the electronic device 100.
Further, in a possible implementation manner, a research and development staff may collect input current and 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 、L E 、M ms 、C ms Bl l, etc. Then, the developer can configure R in the prediction model in the electronic device 100 according to the calculation results of the parameters E 、L E 、M ms 、C ms And Bl, etc.
Further, in one possible implementation, the electronic device 100 may adjust the values of the parameters in the power model by using the input current Isense of the speaker 170A fed back by the Smart PA400. Thus, 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 using the input current Isense of the speaker 170A fed back by the Smart PA400.
Further, in one possible implementation, the electronic device 100 may correct the input current of the speaker predicted by the electronic device 100 at the time tn by using the input current of the speaker 170A at the time tj fed back by the Smart PA400 and the input current of the speaker predicted at the time tj. the time tj is a time before the time tn.
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 PA400. The input current Isense (j) is the input current of the speaker detected by the Smart PA400 at time tj. And the input current of the loudspeaker predicted by the electronic device from the audio signal at time tj is Ij. The electronic apparatus 100 may correct the predicted input current of the speaker at the time tn to be In based on a current difference between the actual input current of the speaker at the time tj and the predicted input current of the speaker. If the current difference is-0.1A, the input current is In, and the corrected input current In', namely In + (-0.1A), is obtained by adding the current difference. The electronic apparatus 100 then determines whether the corrected input current In' is greater than a current threshold (e.g., current threshold I1) preset In the electronic apparatus 100.
Alternatively, in one possible implementation, the electronic device 100 may correct the input current of the speaker predicted by the electronic device 100 at the time tn by using an average value of differences between the input current of the speaker 170A at a plurality of times before the 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 for explanation, the electronic apparatus 100 predicts that the input current of the speaker is I10 at time t 10. At time t10, the electronic device 100 receives the Smart PA400 to feed back the input current Isense (5) of the speaker at time t 5. The electronic apparatus 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 apparatus 100 may set a current difference δ 4 between the input current Isense (4) of the speaker at time t4 and the input current I (I = 4) of the speaker predicted at time t 4. The electronic apparatus 100 may compare the input current Isense (3) of the speaker at the time t3 with the current difference δ 3 of the input current I (I = 3) of the speaker predicted at the time t 3. The electronic apparatus 100 may set a current difference δ 2 between the input current Isense (2) of the speaker at time t2 and the input current I (I = 2) of the speaker predicted at time t 2. The electronic apparatus 100 may set a current difference δ 1 between the input current Isense (1) of the speaker at the time t1 and the input current I (I = 1) of the speaker predicted at the time t 1. The electronic device 100 may obtain the current difference value δ 5, the current difference value δ 4, the current difference value δ 3, the current difference value δ 2, and the average value δ (average) of the current difference values δ 2, and then the electronic device corrects the input current of the speaker predicted by the electronic device 100 at time t10 to be I10 using the average value δ (average), and obtains the corrected input current to be I10' (may be I10+ δ (average)).
And S303, if the input current Ii of the loudspeaker is larger than the current threshold value 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 to obtain the second audio signal. For example, the peak amplitude of the first audio signal is 0dBFS, and the electronic device 100 may lower the gain of the first audio signal such that the peak amplitude of the second audio signal becomes-3 dBFS. 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 performing digital-to-analog conversion on the second audio signal by using the Smart PA400 chip.
The current threshold I1 may be configured by a system of the electronic device 100.
It is understood that the input current Isense of the speaker fed back by the Smart PA400 is time delayed. For example, the Smart PA400 detects the input current Isense of the speaker 2 seconds before and feeds back the input current Isense to the processor of the electronic device 100 after 2 seconds, or a module in the electronic device 100 for predicting the input current of the speaker.
Further, the electronic device 100 may be configured with a plurality of current thresholds, such as current threshold I2, current threshold I3, and so on, and the input current Ii is within different current thresholds, and the gain of the electronic device 100 for reducing the audio signal is 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 larger than the current threshold I2 and smaller 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 larger than the current threshold I3 and smaller 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 a target value (e.g., a first value, a second value, a third value) by gain smoothing.
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 specifically according to 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 is reduced.
It is understood that a larger current of the first audio signal results in a larger 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 can be reduced, so that the total output power of the battery in the electronic device 100 can be reduced, and the battery is prevented from being in an undervoltage state.
S304, the loudspeaker of the electronic device 100 plays the second audio signal.
The speaker of the electronic device 100 may play the second audio signal. The power of the second audio signal is lower than or equal to the first audio signal.
In the process of continuously playing the audio by the electronic device 100, after the electronic device 100 starts to perform 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 steps S301 to S304 (when the electronic device performs steps S301 to S304, the user does not actively turn down the volume level of the electronic device 100).
In a possible implementation manner, the second audio signal is subjected to digital-to-analog conversion by the Smart PA400, amplified by the amplifier in the Smart PA400, and then transmitted to the speaker for playing.
According to the shutdown prevention protection method provided by the embodiment of the application, when the electronic equipment plays audio, if the electronic equipment can detect that the voltage of the battery is lower than the voltage threshold value and predict that the input current of the loudspeaker is higher than the current threshold value, 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 for playing the audio circuit is reduced. The electronic equipment can adjust the gain of the audio played by the electronic equipment in time when the power supply is low in electric quantity or in a scene with high shutdown probability such as low temperature, the current of an audio playing link is reduced, and the electronic equipment is prevented from being automatically shut down due to undervoltage.
Fig. 8A is a schematic view of an implementation of a shutdown prevention protection method provided in an embodiment of the present application. As shown in fig. 8A, the specific implementation steps of the shutdown prevention protection method provided in 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 to obtain an input current (hereinafter, referred to as a prediction current) of the audio playing module 804. The prediction module 801 inputs the predicted current into 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 a current.
Optionally, the prediction module 801 may further 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 specifically refer to the description above, and is not described herein again.
The prediction module 801 is a module that includes a current prediction algorithm, and the prediction module 801 may operate 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 perform gain control on 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, the electronic device 100 may perform gain control on the input audio signal when the gain control module 802 determines that the power supply voltage is less than the voltage threshold and the predicted current is greater than the current threshold. 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 less than the gain of the first audio signal.
Optionally, the gain control module 802 may contain an algorithm for gain control, and the gain control module 802 may run in a DSP. The DSP may be a separate chip, or may be integrated into a processor of the electronic device 100, which 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, perform digital-to-analog conversion (converting the audio signal in the form of digital signal into the audio signal in the form of analog signal), and transmit the audio signal to the audio playing module 804.
Optionally, the amplifying module 803a can monitor the power voltage and the input current of the audio playing module 804.
Optionally, 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 a Smart PA400 as described above.
4. The audio playing module 804 plays audio. The audio playing module 804 may be a speaker of the electronic device 100.
Fig. 8B is a schematic view of an implementation of a shutdown prevention protection method provided in the embodiment of the present application. As shown in fig. 8B, the specific implementation steps of the shutdown prevention protection method provided in 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 to obtain an input current (hereinafter, referred to as a prediction current) of the audio playing module 804. The prediction module 801 inputs the predicted current into 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 a current.
Optionally, the prediction module 801 may further 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 specifically refer to the description above, and is not described herein again.
The prediction module 801 is a module that includes a current prediction algorithm, and the prediction module 801 may operate in a Digital Signal Processing (DSP) chip. The DSP chip may be integrated into a 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 perform gain control on the input audio signal according to the predicted current obtained by the prediction module 801 and the power supply voltage. Specifically, the electronic device 100 may perform gain control on the input audio signal when the gain control module 802 determines that the power supply voltage is less than the voltage threshold and the predicted current is greater than the current threshold. 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 less than the gain of the first audio signal.
Optionally, the amplifying module 803b does not feed back the power 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 at fixed intervals.
Alternatively, the gain control module 802 may contain an algorithm for gain control, and the gain control module 802 may run in a DSP. The DSP may be a separate chip, or may be integrated into a processor of the electronic device 100, which 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, perform digital-to-analog conversion (converting the audio signal in the form of a digital signal into the audio signal in the form of an analog signal), and transmit the audio signal to the audio playing module 804.
Optionally, the amplifying module 803a may feed back the input current of the audio playing module 804 to the prediction module 801.
Optionally, the gain control module 802 may also directly input the audio signal after the gain control to the audio playing module.
4. The audio playing module 804 plays audio. The audio playing module 804 may be a speaker of the electronic device 100.
According to the shutdown prevention protection method provided by the embodiment of the application, when the electronic equipment plays audio, if the electronic equipment can detect that the voltage of the battery is lower than the voltage threshold value and predict that the input current of the loudspeaker is higher than the current threshold value, 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 for playing the audio circuit is reduced. The electronic equipment can adjust the gain of the audio played by the electronic equipment in time when the power supply is low in electric quantity or in a scene with high shutdown probability such as low temperature, the current of an audio playing link is reduced, and the electronic equipment is prevented from being automatically shut down due to undervoltage.
The above embodiments are only used for illustrating the technical solutions of the present application, and not for limiting the same; although the present application has been described in detail with reference to the foregoing embodiments, it should be understood by those of ordinary skill in the art that: the technical solutions described in the foregoing embodiments may still be modified, or some technical features may be equivalently replaced; and the modifications or the substitutions do not make the essence of the corresponding technical solutions depart from the scope of the technical solutions of the embodiments of the present application.
As used in the above embodiments, the term "when 8230; may be interpreted to mean" if 8230, "or" after 8230; or "in response to a determination of 8230," or "in response to a detection of 8230," depending on the context. Similarly, the phrase "at the time of determination of \8230;" or "if (a stated condition or event) is detected" may be interpreted to mean "if it is determined 8230;" or "in response to the determination of 8230;" or "upon detection (a stated condition or event)" or "in response to the detection (a stated condition or event)" depending on the context.
In the above embodiments, the implementation may be wholly or partially realized 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, cause the processes or functions described in accordance with the embodiments of the application to occur, in whole or in part. The computer may be a general purpose computer, a special purpose computer, a network of computers, or other programmable device. 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 wire (e.g., coaxial cable, fiber optic, digital subscriber line) or wirelessly (e.g., infrared, wireless, microwave, etc.). The computer-readable storage medium can be any available medium that can be accessed by a computer or a data storage device, such as a server, a data center, etc., that incorporates one or more of the 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), among others.
Those skilled in the art can understand that all or part of the processes in the methods of the embodiments described above can be implemented by a computer program, which can be stored in a computer readable storage medium and can include the processes of the method embodiments described above when executed. And the aforementioned storage medium includes: various media capable of storing program codes, such as ROM or RAM, magnetic or optical disks, etc.
Claims (11)
1. A shutdown prevention protection method is characterized by comprising the following steps:
when the electronic equipment plays a 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 when the electronic equipment plays the first audio;
when the output voltage is smaller than a power supply voltage threshold and the input current is larger than a first current threshold, the electronic equipment reduces the gain of the first audio signal to obtain a second audio signal;
and the loudspeaker of the electronic equipment plays the second audio signal.
2. The method of claim 1, wherein in the case that the output voltage is less than a supply voltage threshold and the input current is greater than a first current threshold, the electronic device reduces a gain of the first audio signal resulting in a second audio signal; the method comprises the following steps:
and under the condition that the output voltage is smaller than a power supply voltage threshold value and the input current is larger than a first current threshold value, the electronic equipment reduces the gain of the first audio signal by a first numerical value to obtain a second audio signal.
3. The method of claim 2, further comprising:
the electronic device determines the first value based on the input current and the output voltage.
4. The method of any of claims 1-3, wherein after the electronic device predicts the input current to the speaker from the first audio signal, the method further comprises:
when the output voltage is smaller than a power supply voltage threshold, the 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 the loudspeaker of the electronic equipment plays the third audio signal.
5. The method of claim 4, wherein after the electronic device predicts the input current to the speaker from the first audio signal, the method further comprises:
when the output voltage is smaller than a power supply voltage threshold, the input current is larger than a third current threshold and smaller than a 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;
and the fourth audio signal is played by a loudspeaker of the electronic equipment.
6. The method of claim 5, wherein the loudness of the electronic device playing the second audio signal is less than the loudness of the electronic device playing the first audio signal;
the loudness of the electronic equipment playing the third audio signal is smaller than the loudness of the electronic equipment playing the first audio signal;
the loudness of the electronic device playing the fourth audio signal is less than the loudness of the electronic device playing the first audio signal.
7. The method of any of claims 1-6, wherein the electronic device predicts the input current to the speaker based on the first audio signal, comprising:
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 may be obtained by training an audio signal and an input current of an actual speaker in the electronic device, where an input of the current prediction model is the audio signal and an output thereof is an input current of the speaker.
8. The method of claim 1, wherein detecting, by the electronic device, an output voltage of a power source in the electronic device while playing the first audio comprises:
the electronic equipment acquires the output voltage of a battery in the electronic equipment from an audio power amplifier smartPA in the electronic equipment; or the electronic equipment acquires the output voltage of a battery in the electronic equipment from a power management unit in the electronic equipment.
9. The method of claim 8, further comprising:
the electronic device obtains the actual input current of the loudspeaker detected by the audio power amplifier smartPA.
10. The method of claim 9, wherein after the electronic device predicts the input current to the speaker from the first audio signal, the method comprises:
the electronic equipment corrects the input current of the loudspeaker according to the actual input current to obtain the corrected input current;
when the output voltage is smaller than a power supply voltage threshold and the input current is larger than a first current threshold, the electronic device reduces a gain of the first audio signal to obtain a second audio signal, including:
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 to obtain a second audio signal.
11. 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 storing computer program code, the computer program code comprising computer instructions that, when executed by the one or more processors, cause the electronic device to perform the power down protection method of any of claims 1-10.
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 true CN115695640A (en) | 2023-02-03 |
CN115695640B 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) |
Cited By (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN117032437A (en) * | 2023-07-12 | 2023-11-10 | 荣耀终端有限公司 | Audio playing method and electronic equipment |
Citations (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101527543A (en) * | 2008-03-06 | 2009-09-09 | 原景科技股份有限公司 | Audio system capable of suppressing switch noise and audio amplifier |
CN103283284A (en) * | 2011-01-10 | 2013-09-04 | 高通股份有限公司 | 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 |
CN108767344A (en) * | 2018-04-27 | 2018-11-06 | 出门问问信息科技有限公司 | A kind of battery powered optimization method and device of intelligent sound |
CN110618805A (en) * | 2019-09-17 | 2019-12-27 | Oppo广东移动通信有限公司 | Method and device for adjusting electric quantity of equipment, electronic equipment and medium |
CN111373726A (en) * | 2018-10-15 | 2020-07-03 | 华为技术有限公司 | Parameter adjustment method and terminal for audio service |
-
2021
- 2021-07-28 CN CN202110855575.1A patent/CN115695640B/en active Active
Patent Citations (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101527543A (en) * | 2008-03-06 | 2009-09-09 | 原景科技股份有限公司 | Audio system capable of suppressing switch noise and audio amplifier |
CN103283284A (en) * | 2011-01-10 | 2013-09-04 | 高通股份有限公司 | 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 |
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 |
CN110618805A (en) * | 2019-09-17 | 2019-12-27 | Oppo广东移动通信有限公司 | Method and device for adjusting electric quantity of equipment, electronic equipment and medium |
Cited By (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN117032437A (en) * | 2023-07-12 | 2023-11-10 | 荣耀终端有限公司 | Audio playing method and electronic equipment |
Also Published As
Publication number | Publication date |
---|---|
CN115695640B (en) | 2024-10-18 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN109559270B (en) | Image processing method and electronic equipment | |
CN110347269B (en) | Empty mouse mode realization method and related equipment | |
CN113475057B (en) | Video frame rate control method and related device | |
CN110506416A (en) | A kind of method and terminal of terminal switching camera | |
CN112492193B (en) | Method and equipment for processing callback stream | |
WO2021083128A1 (en) | Sound processing method and apparatus thereof | |
CN111182140B (en) | Motor control method and device, computer readable medium and terminal equipment | |
WO2021258814A1 (en) | Video synthesis method and apparatus, electronic device, and storage medium | |
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 | |
CN113891009B (en) | Exposure adjusting method and related equipment | |
CN112181616B (en) | Task processing method and related device | |
CN113722058A (en) | Resource calling method and electronic equipment | |
CN114466107A (en) | Sound effect control method and device, electronic equipment and computer readable storage medium | |
CN114115770A (en) | Display control method and related device | |
CN114915721A (en) | Method for establishing connection and electronic equipment | |
CN115714890A (en) | Power supply circuit and electronic device | |
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 | |
CN114915747A (en) | Video call method and related equipment | |
WO2022257563A1 (en) | Volume adjustment method, and electronic device and system | |
CN115022807A (en) | Express delivery information reminding method and electronic equipment | |
CN115695640B (en) | Shutdown prevention protection method and electronic equipment | |
CN114827098A (en) | Method and device for close shooting, electronic equipment and readable storage medium |
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 |