CN110505344B - Battery power supply method, electronic device and computer readable storage medium - Google Patents

Battery power supply method, electronic device and computer readable storage medium Download PDF

Info

Publication number
CN110505344B
CN110505344B CN201910758177.0A CN201910758177A CN110505344B CN 110505344 B CN110505344 B CN 110505344B CN 201910758177 A CN201910758177 A CN 201910758177A CN 110505344 B CN110505344 B CN 110505344B
Authority
CN
China
Prior art keywords
electronic device
battery
power
controlling
module
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN201910758177.0A
Other languages
Chinese (zh)
Other versions
CN110505344A (en
Inventor
张海平
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Guangdong Oppo Mobile Telecommunications Corp Ltd
Original Assignee
Guangdong Oppo Mobile Telecommunications Corp Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Guangdong Oppo Mobile Telecommunications Corp Ltd filed Critical Guangdong Oppo Mobile Telecommunications Corp Ltd
Priority to CN201910758177.0A priority Critical patent/CN110505344B/en
Publication of CN110505344A publication Critical patent/CN110505344A/en
Application granted granted Critical
Publication of CN110505344B publication Critical patent/CN110505344B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • HELECTRICITY
    • H01ELECTRIC ELEMENTS
    • H01MPROCESSES OR MEANS, e.g. BATTERIES, FOR THE DIRECT CONVERSION OF CHEMICAL ENERGY INTO ELECTRICAL ENERGY
    • H01M10/00Secondary cells; Manufacture thereof
    • H01M10/42Methods or arrangements for servicing or maintenance of secondary cells or secondary half-cells
    • H01M10/44Methods for charging or discharging
    • H01M10/441Methods for charging or discharging for several batteries or cells simultaneously or sequentially
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04MTELEPHONIC COMMUNICATION
    • H04M1/00Substation equipment, e.g. for use by subscribers
    • H04M1/72Mobile telephones; Cordless telephones, i.e. devices for establishing wireless links to base stations without route selection
    • H04M1/724User interfaces specially adapted for cordless or mobile telephones
    • H04M1/72448User interfaces specially adapted for cordless or mobile telephones with means for adapting the functionality of the device according to specific conditions
    • H04M1/72454User interfaces specially adapted for cordless or mobile telephones with means for adapting the functionality of the device according to specific conditions according to context-related or environment-related conditions
    • YGENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
    • Y02TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
    • Y02EREDUCTION OF GREENHOUSE GAS [GHG] EMISSIONS, RELATED TO ENERGY GENERATION, TRANSMISSION OR DISTRIBUTION
    • Y02E60/00Enabling technologies; Technologies with a potential or indirect contribution to GHG emissions mitigation
    • Y02E60/10Energy storage using batteries

Abstract

The embodiment of the invention discloses a battery power supply method, which is applied to the technical field of communication and comprises the following steps: detecting whether the electronic device enters a to-be-radiated running state, if so, controlling a first battery of the electronic device to supply power to the electronic device, and if not, controlling a second battery of the electronic device to supply power to the electronic device. The embodiment of the invention also discloses an electronic device and a computer readable storage medium, which can save the battery cost on the basis of accelerating the heat dissipation of the electronic device.

Description

Battery power supply method, electronic device and computer readable storage medium
Technical Field
The invention belongs to the technical field of communication, and particularly relates to a battery power supply method, an electronic device and a computer readable storage medium.
Background
The existing electronic devices mostly adopt lithium batteries, and the graphene batteries have the characteristics of high conductivity, high strength, ultra-light weight, high price and the like. Mobile games are now becoming an important way of everyday entertainment, and terminals are in a high power consumption state when running large games.
When the terminal is in a high power consumption state, the terminal is often heated seriously, the temperature is overhigh due to the existing lithium battery power supply technology, the problems of blockage, frame dropping and the like of a game can occur, and the user experience is influenced; and if the graphene battery is adopted for power supply, the cost is too high, and the popularization and the use cannot be realized.
Disclosure of Invention
The invention provides a battery power supply method, an electronic device and a computer readable storage medium, and aims to adopt double batteries to switch power supply so as to solve the problems of overheating caused by adopting a battery with poor heat dissipation to supply power to the electronic device and high cost caused by adopting a battery with good heat dissipation to supply power.
A first aspect of an embodiment of the present invention provides a battery power supply method, including:
detecting whether the electronic device enters a to-be-radiated running state or not;
if so, controlling a first battery of the electronic device to supply power to the electronic device;
and if not, controlling a second battery of the electronic device to supply power to the electronic device.
A second aspect of an embodiment of the present invention provides an electronic apparatus, including:
the detection module is used for detecting whether the electronic device enters a to-be-radiated running state or not;
the power supply module is used for controlling a first battery of the electronic device to supply power to the electronic device if the first battery is in the positive state;
and the power supply module is also used for controlling a second battery of the electronic device to supply power to the electronic device if the electronic device is not powered on.
A third aspect of embodiments of the present invention provides an electronic apparatus, including:
a memory and a processor;
the memory stores executable program code;
the processor coupled to the memory invokes the executable program code stored in the memory to perform the battery powered method as provided by the first aspect of the embodiments of the invention.
A fourth aspect of embodiments of the present invention provides a computer-readable storage medium having stored thereon a computer program which, when executed by a processor, performs the battery power supply method as provided in the first aspect of embodiments of the present invention.
It can be known from the foregoing embodiments of the present invention that whether an electronic device enters a to-be-cooled operating state is detected, and if the electronic device enters the to-be-cooled operating state, the first battery is controlled to supply power to the electronic device, and the first battery has good heat dissipation performance relative to the second battery, which can improve the heat dissipation speed of the electronic device, avoid the software operation and hardware function obstacles of the electronic device caused by high temperature, and improve user experience.
Drawings
In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings used in the description of the embodiments or the prior art will be briefly described below, and it is obvious that the drawings in the following description are only some embodiments of the present invention.
Fig. 1 is a schematic diagram of an internal battery connection of an electronic device according to a battery power supply method provided in an embodiment of the present invention;
fig. 2 is a schematic flow chart illustrating an implementation of a battery power supply method according to an embodiment of the present invention;
fig. 3 is a schematic flow chart illustrating an implementation of a battery power supply method according to another embodiment of the present invention;
fig. 4 is a schematic structural diagram of an electronic device according to an embodiment of the invention;
FIG. 5 is a schematic diagram of an electronic device according to another embodiment of the invention;
fig. 6 shows a hardware configuration diagram of an electronic apparatus.
Detailed Description
In order to make the objects, features and advantages of the present invention more obvious and understandable, the technical solutions in the embodiments of the present invention will be clearly and completely described below with reference to the accompanying drawings in the embodiments of the present invention, and it is apparent that the described embodiments are only a part of the embodiments of the present invention, and not all of the embodiments. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present invention.
Referring to fig. 1, fig. 1 is a schematic diagram of connection of an internal battery of an electronic device according to the battery power supply method provided by the embodiment of the invention. The electronic device 100 has 2 rechargeable batteries built therein, wherein 1 of the rechargeable batteries is a first battery 200 with good heat dissipation performance, which can dissipate heat quickly and charge quickly, such as a graphene battery, and 1 of the rechargeable batteries is a second battery 300 with poor heat dissipation performance than the first battery 200, which is slower than the first battery 200, such as a lithium battery. Note that the first battery 200 is not limited to 1, and may be a plurality of first batteries 200 constituting 1 group; the first battery 300 is not limited to 1, and may be a plurality of second batteries 300 constituting 1 group, and for convenience of description, 1 first battery 200 and 1 second battery 300 are taken as examples in the present embodiment. The first battery 200 is electrically connected to the second battery 300.
Referring to fig. 2, fig. 2 is a schematic diagram illustrating an implementation flow of a battery power supply method according to an embodiment of the present invention, where the method is applicable to an electronic device. The method comprises the following steps:
101. detecting whether the electronic device enters a to-be-radiated running state or not;
the operation state to be radiated means that the temperature of the electronic device is high and the heat is serious, and in the operation state to be radiated, if the heat radiation problem is not solved as soon as possible, the operation problems of each application in the electronic device, such as the problems of jamming, frame dropping and the like, can be influenced, and even the electronic device can be halted and restarted in serious cases.
The reason for the operating state to be dissipated may be that the applications running in the electronic device have a high operating memory ratio and/or a high cpu (central processing unit) ratio. Whether the electronic device enters the operating state to be radiated can be judged by detecting the operating memory ratio, the CPU ratio and the like of the running application, or whether the electronic device enters the operating state to be radiated can be judged directly by detecting the temperature of the electronic device.
If the electronic device enters a to-be-radiated operating state and needs a battery with good radiation performance to supply power, executing step 102; if the electronic device does not enter the operation state to be cooled and does not need the battery with good heat dissipation performance for supplying power temporarily, step 103 is executed.
102. Controlling a first battery of the electronic device to supply power to the electronic device;
the first cell is a cell having better heat dissipation performance than the second cell, such as a graphene cell.
103. And controlling a second battery of the electronic device to supply power to the electronic device.
The second battery is a battery, such as a lithium battery, which has lower heat dissipation performance than the first battery, but is less costly than the first battery. The lithium cell cost is lower than graphite alkene battery, can reduce like this to graphite alkene battery unnecessary consumption, increases graphite alkene battery's life-span, reduce cost.
In the embodiment of the invention, whether the electronic device enters the operation state to be radiated is detected, if the electronic device enters the operation state to be radiated, the first battery is controlled to supply power to the electronic device, the first battery has good heat radiation performance relative to the second battery, the heat radiation speed of the electronic device can be improved, the obstacles of software operation and hardware function of the electronic device caused by high temperature are avoided, the user experience is improved, if the electronic device does not enter the operation state to be radiated, the second battery is controlled to supply power to the electronic device, the cost of the second battery is low relative to that of the first battery, when the heat radiation speed is unnecessarily and immediately improved, the second battery is used as much as possible, the time for using the first battery can be reduced, the service life of the first battery is.
Referring to fig. 3, fig. 3 is a schematic diagram illustrating an implementation flow of a battery power supply method in another embodiment provided in the embodiment of the present invention, where the method is applicable to an electronic device, and a first battery and a second battery are built in the electronic device, and the first battery and the second battery are electrically connected, and a battery that supplies power may be switched through a switching module, or a battery that is charged may be switched, for example, power supply of the first battery may be controlled, power supply of the second battery may be switched, power charging of the second battery may be controlled, or the second battery may be switched to charge the first battery. The method mainly comprises the following steps:
201. detecting whether the electronic device enters a to-be-radiated operation state or not by applying operation state data operated in the electronic device or the temperature of the electronic device;
wherein, by applying the operating state data running in the electronic device, detecting whether the electronic device enters the operating state to be radiated specifically may include: and judging whether the electronic device enters a high power consumption state or not according to the running state data of the application running in the electronic device.
The method may include determining whether a memory ratio of the application operating memory to the electronic device reaches a preset first threshold, and/or determining whether an execution time ratio of the application operating memory to a processor of the electronic device reaches a preset second threshold, and if the operating memory ratio reaches the first threshold and/or the processor ratio reaches the second preset threshold, determining that the electronic device enters a high power consumption state, that is, determining that the electronic device enters a to-be-cooled operating state.
The above manner is suitable for determining whether the operation of a single application causes the electronic apparatus to enter a high power consumption state, for example, it may be determined whether the operation of one game APP causes the electronic apparatus to enter a high power consumption state. At this time, the operation state data specifically includes: this game APP's operational environment demand data to and this electronic device's configuration data, this operational environment demand data includes: the game APP is run by the memory and the CUP is run by the time; the configuration data includes: the running memory of the electronic device, the total execution time of the CUP and the like. And obtaining the information of the running memory occupied by running the game APP, the information of the occupied cpu proportion and the like according to the running environment requirement data and the configuration data. The first threshold and the second threshold may be the same or different, and when the first threshold and the second threshold are the same, both may take a value of 50%. When not the same, the setting can be reasonably performed around 50 percent.
Further, after determining that an application can cause the electronic device to enter a high power consumption state, marking the application as a high power consumption application.
In addition to the above-mentioned methods, when a plurality of applications are simultaneously run, it is impossible to accurately determine whether one of the applications can cause the electronic apparatus to perform a high power consumption state. At this time, the operation state data specifically includes actual operation state data of the electronic device after the application is operated. Namely, the running memory ratio and the CPU ratio of the electronic device when a plurality of current applications are running simultaneously. The first threshold and the second threshold may also be set to 50%, or other values.
It should be noted that the high power consumption state may be a general concept in the art, and is a well-known concept; the method can also be a user-defined concept of the electronic device, and the high power consumption state can be defined by automatically setting a first threshold and a second threshold corresponding to the running memory ratio and the CPU ratio according to the state of the running application of the electronic device.
Furthermore, whether the electronic device enters a state of waiting for heat dissipation can be judged by directly measuring the temperature of the electronic device, and whether the electronic device enters the state of waiting for heat dissipation can be judged more visually and accurately by detecting the temperature than the application running state. Specifically, the temperature of the electronic device is detected in real time, and if the temperature is higher than a preset temperature value, it is determined that the electronic device enters a to-be-cooled operating state, where the preset temperature value may be, for example, 50 ℃.
Further, if the electronic device is a modular electronic device, that is, the electronic device can be made into a plurality of independent modules according to functions or other indexes, and each module has its own independent hardware. A module corresponding to a high power application that causes the electronic apparatus to enter a high power consumption state, for example, an independent module such as a screen, an image processing unit, a camera, and the like that runs an ar (augmented reality) game application, may be detected. It is also possible to detect individual modules whose temperature is above the preset temperature value.
Further, if the electronic device enters a to-be-cooled operating state and needs a battery with good heat dissipation performance to supply power, step 202 is executed; if the electronic device does not enter the operation state to be cooled and the battery with good heat dissipation performance is not needed for supplying power temporarily, step 203 is executed.
202. Controlling a first battery of the electronic device to supply power to the electronic device;
the first cell is a cell having better heat dissipation performance than the second cell, such as a graphene cell.
Further, when the electronic device is a modular electronic device, after confirming that the operation results in the module corresponding to the high power consumption application in the high power consumption state in the electronic device in step 201, the first battery is controlled to supply power to the module corresponding to the high power consumption application, instead of supplying power to the whole electronic device, so that the power supply amount of the first battery with good heat dissipation can be further reduced, and the service life of the first battery can be prolonged.
Further, when the electronic device is a modular electronic device, after the module with a temperature higher than the preset temperature value is determined in step 201, the first battery is controlled to supply power to the module with a temperature higher than the preset temperature value, instead of supplying power to the whole electronic device, so that the power supply amount of the first battery with good heat dissipation can be further reduced, and the service life of the first battery can be prolonged.
203. Controlling a second battery of the electronic device to supply power to the electronic device;
further, when the electronic device is a modular electronic device, after confirming that the operation of the module corresponding to the high power consumption application in the electronic device results in the high power consumption state in step 201, the first battery is controlled to supply power to the module corresponding to the high power consumption application, and the second battery is controlled to supply power to modules other than the module corresponding to the high power consumption application.
Further, when the electronic device is a modular electronic device, after confirming that the temperature of the module is higher than the preset temperature value in step 201, the first battery is controlled to supply power to the module with the temperature higher than the preset temperature value, and the second battery is controlled to supply power to the modules other than the module corresponding to the high power consumption application.
204. And when the electronic device is detected to exit the operating state to be radiated, controlling to switch to the second battery to supply power to the electronic device.
When the electronic device does not need the first battery with good heat dissipation performance to continue to supply power, the first battery is switched to the second battery to continue to supply power to the electronic device, so that the power consumption of the first battery can be further saved, and the service life of the electronic device is prolonged. The operation state of exiting the to-be-radiated state means that the high-power-consumption app is not operated in the current electronic device, or all the operated apps do not cause the electronic device to be in the to-be-radiated operation state, or the temperature of the electronic device is lower than the preset temperature value.
Furthermore, when the first battery or the second battery is detected to be lower than the preset electric quantity, if the current power supply battery is the first battery, the first battery is charged, and because the charging speed of the first battery is high, the electric quantity support of the electronic device can be met by quick charging. And if the current power supply battery is the second battery, switching to the first battery to supply power to the electronic device. While the second battery may be charged.
Further, it can be set that when the remaining capacity of the first battery reaches a preset minimum capacity value, for example, 50% capacity, the second battery is stopped from being charged and the first battery is charged, because the second battery is charged slowly, the first battery is prevented from being consumed excessively, and the second battery is not charged sufficiently, so as to affect the power supply of the first battery to the electronic device.
Starting from the condition that the first battery or the second battery is lower than the preset electric quantity, prompt information can be displayed on a screen, and the prompt information can comprise: the first battery is low, the second battery is low, the first battery is being charged, the second battery is being charged, and the current remaining charge of one or both batteries.
This embodiment is not described in detail with reference to the previous description of the embodiment shown in fig. 2.
In the embodiment of the invention, whether the electronic device enters the operation state to be radiated is detected, if the electronic device enters the operation state to be radiated, the first battery is controlled to supply power to the electronic device, the first battery has good heat radiation performance relative to the second battery, the heat radiation speed of the electronic device can be improved, the obstacles of software operation and hardware function of the electronic device caused by high temperature are avoided, the user experience is improved, if the electronic device does not enter the operation state to be radiated, the second battery is controlled to supply power to the electronic device, the cost of the second battery is low relative to that of the first battery, when the heat radiation speed is unnecessarily and immediately improved, the second battery is used as much as possible, the time for using the first battery can be reduced, the service life of the first battery is.
Referring to fig. 4, fig. 4 is a schematic structural diagram of an electronic device according to an embodiment of the invention, and for convenience of description, only the parts related to the embodiment of the invention are shown. The electronic device illustrated in fig. 4 may be an execution subject of the battery power supply method provided in the foregoing embodiments illustrated in fig. 2 to 3. The electronic device includes:
the detection module 301 is configured to detect whether the electronic device enters a to-be-cooled operating state;
a power supply module 302, configured to control a first battery of the electronic device to supply power to the electronic device if yes;
and a power supply module 302, configured to control a second battery of the electronic device to supply power to the electronic device if the electronic device is not powered by the second battery.
In the embodiment of the invention, whether the electronic device enters the operation state to be radiated is detected, if the electronic device enters the operation state to be radiated, the first battery is controlled to supply power to the electronic device, the first battery has good heat radiation performance relative to the second battery, the heat radiation speed of the electronic device can be improved, the obstacles of software operation and hardware function of the electronic device caused by high temperature are avoided, the user experience is improved, if the electronic device does not enter the operation state to be radiated, the second battery is controlled to supply power to the electronic device, the cost of the second battery is low relative to that of the first battery, when the heat radiation speed is unnecessarily and immediately improved, the second battery is used as much as possible, the time for using the first battery can be reduced, the service life of the first battery is.
Referring to fig. 5, fig. 5 is a schematic structural diagram of an electronic device according to another embodiment of the present invention, which is different from the electronic device illustrated in fig. 4 in that the electronic device illustrated in fig. 5 includes:
further, the detection module 301 is further configured to determine whether the electronic device enters a high power consumption state according to the operating state data of the application running in the electronic device, and if so, confirm that the electronic device enters a to-be-cooled operating state.
Further, the detection module 301 is further configured to determine whether a ratio of the running time of the application to the memory of the electronic device reaches a preset first threshold, and/or determine whether a ratio of the running time of the application to the execution time of the processor of the electronic device reaches a preset second threshold; and if the operating memory ratio reaches a first threshold value and/or the processor ratio reaches a second preset threshold value, confirming that the electronic device enters a high power consumption state.
Further, the electronic device further includes:
the temperature detection module 401 is configured to detect a temperature of the electronic device in real time, and if the temperature is higher than a preset temperature value, determine that the electronic device enters a to-be-cooled operating state.
Further, the detection module 301 is further configured to determine a module corresponding to a high power consumption application that is operated to cause the electronic apparatus to enter a high power consumption state;
the power supply module 302 is further configured to control the first battery to supply power to a module corresponding to the high power consumption application;
and the power supply module 302 is further configured to control the second battery to supply power to modules other than the module corresponding to the high power consumption application.
Further, the temperature detection module 401 is further configured to determine that a temperature in the electronic device is higher than a preset temperature value;
the power supply module 302 is further configured to control the first battery to supply power to a module with a temperature higher than a preset temperature value;
further, the power supply module 302 is further configured to control the second battery to supply power to other modules except the module with the temperature higher than the preset temperature value.
Further, the electronic device further includes: a charging module 402, configured to charge the first battery if the current power supply battery is the first battery when it is detected that the first battery or the second battery is lower than a preset electric quantity;
and if the current power supply battery is the second battery, switching to the first battery to supply power to the electronic device.
For details that are not described in the present embodiment, please refer to the description of the embodiment shown in fig. 2 to fig. 4, which will not be described herein again.
In the embodiment of the invention, whether the electronic device enters the operating state to be radiated is detected, if the electronic device enters the operating state to be radiated, the first battery is controlled to supply power to the electronic device, the first battery has good heat radiation performance relative to the second battery, the heat radiation speed of the electronic device can be improved, the obstacles of software operation and hardware function of the electronic device caused by high temperature are avoided, the user experience is improved, if the electronic device does not enter the operating state to be radiated, the second battery is controlled to supply power to the electronic device, the cost of the second battery is low relative to that of the first battery, when the heat radiation speed is unnecessarily and immediately improved, the second battery is used as much as possible, the time for using the first battery can be reduced, the service life of the first battery is prolonged, and the.
An embodiment of the present invention further provides an electronic device, including: the battery power supply system comprises a memory, a processor and a computer program which is stored on the memory and can run on the processor, wherein when the processor executes the computer program, the battery power supply method as described in the previous figures 2-3 is realized.
Referring to fig. 6, fig. 6 is a hardware structure diagram of an electronic device according to an embodiment of the invention.
For example, the electronic device may be any of various types of computer system apparatuses that are mobile or portable and perform wireless communication. In particular, the electronic apparatus may be a mobile phone or a smart phone (e.g., iPhone (TM) -based phone), a Portable game device (e.g., Nintendo DS (TM), PlayStation Portable (TM), Gameboy Advance (TM), iPhone (TM)), a laptop, a PDA, a Portable internet appliance, a music player, and a data storage device, other handheld devices, and a head-mounted device (HMD) such as a watch, a headset, a pendant, a headset, and the like, and may also be other wearable devices (e.g., a head-mounted device (HMD) such as electronic glasses, electronic clothing, an electronic bracelet, an electronic necklace, an electronic tattoo, an electronic apparatus, or a smart watch).
The electronic device may also be any of a number of electronic devices including, but not limited to, cellular phones, smart phones, other wireless communication devices, personal digital assistants, audio players, other media players, music recorders, video recorders, cameras, other media recorders, radios, medical equipment, vehicle transportation equipment, calculators, programmable remote controllers, pagers, laptop computers, desktop computers, printers, netbook computers, Personal Digital Assistants (PDAs), Portable Multimedia Players (PMPs), moving picture experts group (MPEG-1 or MPEG-2) audio layer 3(MP3) players, portable medical equipment, and digital cameras and combinations thereof.
In some cases, the electronic device may perform a variety of functions (e.g., playing music, displaying video, storing pictures, and receiving and sending telephone calls). If desired, the electronic apparatus may be a portable device such as a cellular telephone, media player, other handheld device, wristwatch device, pendant device, earpiece device, or other compact portable device.
As shown in fig. 6, the electronic device 100 may include control circuitry, which may include the storage and processing circuitry 30. The storage and processing circuitry 30 may include memory, such as hard drive memory, non-volatile memory (e.g., flash memory or other electronically programmable erase limit memory used to form solid state drives, etc.), volatile memory (e.g., static or dynamic random access memory, etc.), and so forth, although the embodiments of the present application are not limited thereto. The processing circuitry in the storage and processing circuitry 30 may be used to control the operation of the electronic device 100. The processing circuitry may be implemented based on one or more microprocessors, microcontrollers, digital signal processors, baseband processors, power management units, audio codec chips, application specific integrated circuits, display driver integrated circuits, and the like.
The storage and processing circuitry 30 may be used to run software in the electronic device 100, such as an Internet browsing application, a Voice Over Internet Protocol (VOIP) telephone call application, an email application, a media playing application, operating system functions, and so forth. Such software may be used to perform control operations such as, for example, camera-based image capture, ambient light measurement based on an ambient light sensor, proximity sensor measurement based on a proximity sensor, information display functionality based on status indicators such as status indicator lights of light emitting diodes, touch event detection based on a touch sensor, functionality associated with displaying information on multiple (e.g., layered) displays, operations associated with performing wireless communication functions, operations associated with collecting and generating audio signals, control operations associated with collecting and processing button press event data, and other functions in the electronic device 100, and the like, without limitation of embodiments of the present application.
The electronic device 100 may also include an input-output circuit 42. The input-output circuit 42 may be used to enable the electronic apparatus 100 to implement input and output of data, i.e., to allow the electronic apparatus 100 to receive data from an external device and also to allow the electronic apparatus 100 to output data from the electronic apparatus 100 to the external device. The input-output circuitry 42 may further include the sensor 32. The sensors 32 may include ambient light sensors, optical and capacitive based proximity sensors, touch sensors (e.g., optical based touch sensors and/or capacitive touch sensors, where the touch sensors may be part of a touch display screen or may be used independently as a touch sensor structure), acceleration sensors, and other sensors, among others.
Input-output circuitry 42 may also include one or more displays, such as display 14. The display 14 may include one or a combination of liquid crystal displays, organic light emitting diode displays, electronic ink displays, plasma displays, displays using other display technologies. The display 14 may include an array of touch sensors (i.e., the display 14 may be a touch display screen). The touch sensor may be a capacitive touch sensor formed by a transparent touch sensor electrode (e.g., an Indium Tin Oxide (ITO) electrode) array, or may be a touch sensor formed using other touch technologies, such as acoustic wave touch, pressure sensitive touch, resistive touch, optical touch, and the like, and the embodiments of the present application are not limited thereto.
The electronic device 100 may also include an audio component 36. The audio component 36 may be used to provide audio input and output functionality for the electronic device 100. The audio components 36 in the electronic device 100 may include a speaker, a microphone, a buzzer, a tone generator, and other components for generating and detecting sound.
The communication circuit 38 may be used to provide the electronic device 100 with the capability to communicate with external devices. The communication circuit 38 may include analog and digital input-output interface circuits, and wireless communication circuits based on radio frequency signals and/or optical signals. The wireless communication circuitry in communication circuitry 38 may include radio-frequency transceiver circuitry, power amplifier circuitry, low noise amplifiers, switches, filters, and antennas. For example, the wireless Communication circuitry in Communication circuitry 38 may include circuitry to support Near Field Communication (NFC) by transmitting and receiving Near Field coupled electromagnetic signals. For example, the communication circuitry 38 may include a near field communication antenna and a near field communication transceiver. The communications circuitry 38 may also include a cellular telephone transceiver and antenna, a wireless local area network transceiver circuit and antenna, and the like.
The electronic device 100 may further include a battery, a power management circuit, and other input-output units 40. The input-output unit 40 may include buttons, joysticks, click wheels, scroll wheels, touch pads, keypads, keyboards, cameras, light emitting diodes and other status indicators, etc.
A user may input commands through input-output circuitry 42 to control the operation of electronic device 100, and may use output data of input-output circuitry 42 to enable receipt of status information and other outputs from electronic device 100.
Further, an embodiment of the present invention further provides a computer-readable storage medium, which may be disposed in the electronic device in the foregoing embodiments, and the computer-readable storage medium may be a memory in the storage and processing circuit 30 in the foregoing embodiment shown in fig. 6. The computer readable storage medium has stored thereon a computer program which, when executed by a processor, implements the battery power supply method described in the foregoing embodiment shown in fig. 3. Further, the computer-readable storage medium may be various media that can store program codes, such as a usb disk, a removable hard disk, a Read-Only Memory (ROM), a RAM, a magnetic disk, or an optical disk.
It should be noted that, for the sake of simplicity, the above-mentioned method embodiments are described as a series of acts or combinations, but those skilled in the art should understand that the present invention is not limited by the described order of acts, as some steps may be performed in other orders or simultaneously according to the present invention. Further, those skilled in the art will appreciate that the embodiments described in the specification are presently preferred and that no acts or modules are necessarily required of the invention.
In the above embodiments, the descriptions of the respective embodiments have respective emphasis, and for parts that are not described in detail in a certain embodiment, reference may be made to related descriptions of other embodiments.
In view of the above description of the battery power supply method, the electronic device and the computer readable storage medium provided by the present invention, those skilled in the art will recognize that there are variations in the embodiments and applications of the idea of the present invention, and therefore the present disclosure should not be construed as limiting the present invention.

Claims (9)

1. A battery power supply method applied to an electronic device, the method comprising:
detecting whether the electronic device enters a to-be-radiated running state or not;
if so, controlling a first battery of the electronic device to supply power to the electronic device;
if not, controlling a second battery of the electronic device to supply power to the electronic device;
when the first battery or the second battery is detected to be lower than a preset electric quantity, if the current power supply battery is the first battery, the first battery is charged;
if the current power supply battery is the second battery, switching to the first battery to supply power for the electronic device and charging the second battery;
the heat dissipation performance of the first battery is larger than that of the second battery, and the charging speed of the first battery is larger than that of the second battery.
2. The method of claim 1, wherein the detecting whether the electronic device enters a heat-to-be-dissipated operating state comprises:
judging whether the electronic device enters a high power consumption state or not according to running state data of an application running in the electronic device;
and if so, confirming that the electronic device enters a to-be-radiated operation state.
3. The method of claim 2, wherein the determining whether the electronic device enters a high power consumption state according to the operating state data of the application running on the electronic device comprises:
judging whether the proportion of the running memory of the application to the memory of the electronic device reaches a preset first threshold value or not;
and/or judging whether the execution time proportion of the application running time in a processor of the electronic device reaches a preset second threshold value or not;
and if the operating memory ratio reaches the preset first threshold value and/or the processor ratio reaches the preset second threshold value, confirming that the electronic device enters a high power consumption state.
4. The method of claim 1, wherein the detecting whether the electronic device enters a heat-to-be-dissipated operating state comprises:
and detecting the temperature of the electronic device in real time, and if the temperature is higher than a preset temperature value, confirming that the electronic device enters a to-be-radiated running state.
5. The method of claim 2, wherein if the electronic device is a modular electronic device, controlling the first battery of the electronic device to power the electronic device comprises:
confirming a module corresponding to a high-power-consumption application which causes the electronic device to enter a high-power-consumption state in operation;
the method further comprises:
and controlling the first battery to supply power to the module corresponding to the high-power-consumption application, and controlling the second battery to supply power to the modules except the module corresponding to the high-power-consumption application.
6. The method of claim 4, wherein if the electronic device is a modular electronic device, controlling the first battery of the electronic device to power the electronic device comprises:
a module for confirming that the temperature in the electronic device is higher than the preset temperature value;
the method further comprises:
and controlling the first battery to supply power to the module with the temperature higher than the preset temperature value, and controlling the second battery to supply power to other modules except the module with the temperature higher than the preset temperature value.
7. An electronic device, comprising:
the detection module is used for detecting whether the electronic device enters a to-be-radiated running state or not;
the power supply module is used for controlling a first battery of the electronic device to supply power to the electronic device if the first battery is in the positive state;
the power supply module is used for controlling a second battery of the electronic device to supply power to the electronic device if the electronic device is not powered;
the charging module is used for charging the first battery if the current power supply battery is the first battery when the first battery or the second battery is detected to be lower than the preset electric quantity;
if the current power supply battery is the second battery, switching to the first battery to supply power for the electronic device and charging the second battery;
the heat dissipation performance of the first battery is larger than that of the second battery, and the charging speed of the first battery is larger than that of the second battery.
8. An electronic device, comprising:
a memory and a processor;
the memory stores executable program code;
the processor, coupled to the memory, invokes the executable program code stored in the memory to perform the battery powered method of any of claims 1-6.
9. A computer-readable storage medium, having stored thereon a computer program which, when executed by a processor, performs the battery-powered method of any of claims 1 to 6.
CN201910758177.0A 2019-08-16 2019-08-16 Battery power supply method, electronic device and computer readable storage medium Active CN110505344B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201910758177.0A CN110505344B (en) 2019-08-16 2019-08-16 Battery power supply method, electronic device and computer readable storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201910758177.0A CN110505344B (en) 2019-08-16 2019-08-16 Battery power supply method, electronic device and computer readable storage medium

Publications (2)

Publication Number Publication Date
CN110505344A CN110505344A (en) 2019-11-26
CN110505344B true CN110505344B (en) 2021-06-22

Family

ID=68587554

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201910758177.0A Active CN110505344B (en) 2019-08-16 2019-08-16 Battery power supply method, electronic device and computer readable storage medium

Country Status (1)

Country Link
CN (1) CN110505344B (en)

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1457619A (en) * 2001-01-23 2003-11-19 索尼电脑娱乐公司 Radio operating apparatus and its power supply method
CN204189127U (en) * 2014-07-28 2015-03-04 联想(北京)有限公司 A kind of electronic equipment
CN204721409U (en) * 2015-07-13 2015-10-21 胡继良 A kind of high heat dispersion mobile phone

Family Cites Families (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP4085748B2 (en) * 2002-08-28 2008-05-14 日本電気株式会社 Composite mobile phone device, wireless method automatic switching method based on remaining battery level and program therefor
CN101399450A (en) * 2007-09-30 2009-04-01 联想(北京)有限公司 Apparatus and method for controlling electricity supply to portable device by multiple batteries
CN108155678A (en) * 2016-12-02 2018-06-12 富泰华工业(深圳)有限公司 Electronic device and the method for controlling the electronic device charge and discharge
CN110048479A (en) * 2019-04-22 2019-07-23 维沃移动通信有限公司 A kind of battery control method and terminal device

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1457619A (en) * 2001-01-23 2003-11-19 索尼电脑娱乐公司 Radio operating apparatus and its power supply method
CN204189127U (en) * 2014-07-28 2015-03-04 联想(北京)有限公司 A kind of electronic equipment
CN204721409U (en) * 2015-07-13 2015-10-21 胡继良 A kind of high heat dispersion mobile phone

Also Published As

Publication number Publication date
CN110505344A (en) 2019-11-26

Similar Documents

Publication Publication Date Title
US11102697B2 (en) Method for controlling earphone switching and earphone
CN108983211B (en) Proximity sensor, method of controlling the same, electronic device, and computer-readable storage medium
CN106786962B (en) Charging control method and device and terminal
CN110109759B (en) Catton optimization method, server, electronic device and computer-readable storage medium
CN109495871B (en) Bluetooth connection control method, electronic device and computer readable storage medium
KR20120138311A (en) Apparatus and method for changing a battery in a portable terminal
CN109246288B (en) Control method and device of electronic equipment, storage medium and electronic equipment
CN109450023B (en) Charging circuit, charging processing method, electronic device, and storage medium
US20210120118A1 (en) Method for establishing communication connection and related products
CN110429696B (en) Battery charging method, electronic device and computer readable storage medium
CN111373726B (en) Parameter adjustment method and terminal for audio service
CN110058980B (en) Terminal start time early warning method, electronic device and computer readable storage medium
CN109684011B (en) Interface display control method, electronic device and computer readable storage medium
CN108834206B (en) Control method of electronic device and electronic device
CN104348949A (en) Method and apparatus for switching operation state of electronic device
CN110505344B (en) Battery power supply method, electronic device and computer readable storage medium
CN111404242A (en) Charging method, charging device, storage medium and mobile terminal
CN110611347B (en) Charging control method and related product
US11122708B1 (en) Electronic device
CN109298942B (en) Picture processing method and electronic device
CN112486309A (en) Method for determining duration corresponding to idle state, control chip and electronic equipment
CN110620602B (en) Reverse charging and data transmission sharing system, multiplexing data line and electronic device
CN108650421B (en) Display control method and related product
CN106921793B (en) information prompting method and device and mobile terminal
CN107749751B (en) Mobile terminal power supply system and mobile terminal

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