CN111008090B - Battery electric quantity control method and device, storage medium and terminal equipment - Google Patents

Battery electric quantity control method and device, storage medium and terminal equipment Download PDF

Info

Publication number
CN111008090B
CN111008090B CN201911238044.7A CN201911238044A CN111008090B CN 111008090 B CN111008090 B CN 111008090B CN 201911238044 A CN201911238044 A CN 201911238044A CN 111008090 B CN111008090 B CN 111008090B
Authority
CN
China
Prior art keywords
power consumption
battery
electric quantity
power
capacity
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
CN201911238044.7A
Other languages
Chinese (zh)
Other versions
CN111008090A (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.)
TCL Mobile Communication Technology Ningbo Ltd
Original Assignee
TCL Mobile Communication Technology Ningbo 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 TCL Mobile Communication Technology Ningbo Ltd filed Critical TCL Mobile Communication Technology Ningbo Ltd
Priority to CN201911238044.7A priority Critical patent/CN111008090B/en
Publication of CN111008090A publication Critical patent/CN111008090A/en
Application granted granted Critical
Publication of CN111008090B publication Critical patent/CN111008090B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F11/00Error detection; Error correction; Monitoring
    • G06F11/07Responding to the occurrence of a fault, e.g. fault tolerance
    • G06F11/0796Safety measures, i.e. ensuring safe condition in the event of error, e.g. for controlling element
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F1/00Details not covered by groups G06F3/00 - G06F13/00 and G06F21/00
    • G06F1/26Power supply means, e.g. regulation thereof
    • G06F1/32Means for saving power
    • G06F1/3203Power management, i.e. event-based initiation of a power-saving mode
    • G06F1/3206Monitoring of events, devices or parameters that trigger a change in power modality
    • G06F1/3212Monitoring battery levels, e.g. power saving mode being initiated when battery voltage goes below a certain level
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F1/00Details not covered by groups G06F3/00 - G06F13/00 and G06F21/00
    • G06F1/26Power supply means, e.g. regulation thereof
    • G06F1/32Means for saving power
    • G06F1/3203Power management, i.e. event-based initiation of a power-saving mode
    • G06F1/3234Power saving characterised by the action undertaken
    • 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
    • Y02TCLIMATE CHANGE MITIGATION TECHNOLOGIES RELATED TO TRANSPORTATION
    • Y02T10/00Road transport of goods or passengers
    • Y02T10/60Other road transportation technologies with climate change mitigation effect
    • Y02T10/70Energy storage systems for electromobility, e.g. batteries

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Quality & Reliability (AREA)
  • Charge And Discharge Circuits For Batteries Or The Like (AREA)
  • Telephone Function (AREA)

Abstract

The embodiment of the application provides a battery power control method and device, a storage medium and terminal equipment, wherein when the power percentage of a battery is judged to be lower than a preset threshold value, the battery is controlled to enter a second power consumption mode from a first power consumption mode, so that a power consumption interval is divided again, the total available battery capacity of the power consumption interval is increased, the loss speed of the battery in low power is reduced, and the terminal equipment is prevented from being turned off instantly in low power to cause the user to lose communication information, so that user experience is improved.

Description

Battery electric quantity control method and device, storage medium and terminal equipment
Technical Field
The present disclosure relates to the field of terminals, and in particular, to a method and apparatus for controlling battery power, a storage medium, and a terminal device.
Background
With the development of mobile device technology, terminal devices have become an indispensable item for users. The terminal equipment has great demand on electric quantity, the battery is divided into a plurality of power consumption intervals in the prior art, each power consumption interval is N percent, and the electric quantity of each power consumption interval is N percent of the current capacity of the battery. The battery capacity of each power consumption interval gradually decreases, the smaller the electric quantity is, the faster the loss of each power consumption interval is, and when the electric quantity of the terminal equipment reaches the minimum state, the terminal equipment can be rapidly exhausted, so that the terminal equipment is rapidly powered off, and the user experience is greatly reduced. Stated another way, in the prior art, when the terminal device is powered down with a power percentage of 0%, a significant portion of the battery capacity is hidden from use.
Therefore, there is a need for a method and apparatus for controlling the battery power, which can reduce the battery power consumption at low power.
Disclosure of Invention
The embodiment of the application provides a battery power control method and device, a storage medium and terminal equipment, wherein when the power percentage of a battery is judged to be lower than a preset threshold value, the battery is controlled to enter a second power consumption mode from a first power consumption mode, so that a power consumption interval is divided again, the total available battery capacity of the power consumption interval is increased, the loss speed of the battery in low power is reduced, and the terminal equipment is prevented from being turned off instantly in low power to cause the user to lose communication information, so that user experience is improved.
According to a first aspect of the present application, an embodiment of the present application provides a method for controlling an electric quantity of a battery, including:
acquiring the electric quantity percentage of the battery;
judging whether the electric quantity percentage is lower than a preset threshold value or not; and
and when the electric quantity percentage is judged to be lower than the preset threshold value, controlling the battery to enter a second power consumption mode from a first power consumption mode, wherein the available battery capacity corresponding to the second power consumption mode is higher than that corresponding to the first power consumption mode.
In some embodiments, prior to the step of obtaining the percentage of charge of the battery, the control method further comprises: the battery capacity is divided into a plurality of power consumption intervals, each power consumption interval is N%, and the electric quantity of each power consumption interval is N% of the current capacity of the battery.
In some embodiments, when the battery is in the first power consumption mode, a voltage drop corresponding to each of the plurality of power consumption intervals increases as the percentage of the power is reduced.
In some embodiments, when the battery is in the first power consumption mode, a voltage drop corresponding to each of the plurality of power consumption intervals increases as the percentage of the power is reduced.
In some embodiments, the battery is further divided into power consumption intervals in the second power consumption mode, each power consumption interval is a%, the electric quantity of each power consumption interval is a% of the maximum capacity of the battery, where a% = Q x N%/P, Q is the capacity of the battery corresponding to the preset threshold, and P is the maximum capacity of the battery.
According to a second aspect of the present application, an embodiment of the present application provides a control device for battery power, including:
the acquisition module is used for acquiring the electric quantity percentage of the battery;
the judging module is used for judging whether the electric quantity percentage is lower than a preset threshold value or not; and
and the control module is used for controlling the battery to enter a second power consumption mode from a first power consumption mode when the electric quantity percentage is judged to be lower than the preset threshold value, wherein the available battery capacity corresponding to the second power consumption mode is higher than that corresponding to the first power consumption mode.
In some embodiments, the control device further includes a first dividing module, configured to divide the battery capacity into a plurality of power consumption intervals, where each power consumption interval is N%, and the power consumption of each power consumption interval is N% of the current capacity of the battery.
In some embodiments, the voltage drop corresponding to each of the number of power consumption intervals increases as the percentage of power is reduced.
In some embodiments, the control device further includes a second dividing module, configured to, when the battery is in the second power consumption mode, re-divide power consumption intervals, each power consumption interval being a%, and an amount of power in each power consumption interval being a% of a maximum capacity of the battery, where a% = Q x N%/P, Q being a capacity of the battery corresponding to the preset threshold, and P being the maximum capacity of the battery.
According to a third aspect of the present application, embodiments of the present application provide a storage medium having stored therein a plurality of instructions adapted to be loaded by a processor to perform the method of controlling the battery level of any one of the above.
According to a fourth aspect of the present application, an embodiment of the present application provides a terminal device, which includes a processor and a memory, where the processor is electrically connected to the memory, the memory is configured to store instructions and data, and the processor is configured to execute steps in the method for controlling battery power according to any one of the foregoing embodiments.
According to the method and the device, when the electric quantity percentage of the battery is lower than the preset threshold value, the battery is controlled to enter a second power consumption mode from a first power consumption mode, so that the power consumption interval is divided again, the total available battery capacity of the power consumption interval is increased, the loss speed of the battery in low electric quantity is reduced, the terminal equipment is prevented from being powered off instantly in low electric quantity, communication information is prevented from being lost by a user, and user experience is improved.
Drawings
Technical solutions and other advantageous effects of the present application will be made apparent from the following detailed description of specific embodiments of the present application with reference to the accompanying drawings.
Fig. 1 is a flowchart illustrating steps of a method for controlling battery power according to an embodiment of the present disclosure.
Fig. 2 is a schematic structural diagram of a battery power control device according to an embodiment of the present application.
Fig. 3 is a schematic structural diagram of a terminal device according to an embodiment of the present application.
Fig. 4 is a schematic specific structure of a terminal device according to an embodiment of the present application.
Detailed Description
The technical solutions in the embodiments of the present application will be clearly and completely described below with reference to the drawings in the embodiments of the present application. It will be apparent that the described embodiments are only some, but not all, of the embodiments of the present application. All other embodiments, which can be made by those skilled in the art based on the embodiments herein without making any inventive effort, are intended to be within the scope of the present application.
The terms first, second, third and the like in the description and in the claims of the present application and in the above-described figures, if any, are used for distinguishing between similar objects and not necessarily for describing a particular sequential or chronological order. It will be appreciated that the objects so described may be interchanged where appropriate. Furthermore, the terms "comprise" and "have," as well as any variations thereof, are intended to cover a non-exclusive inclusion.
In the detailed description, the drawings and examples set forth below to describe the principles disclosed herein are for illustration only and are not to be construed as limiting the scope of the disclosure. Those skilled in the art will understand that the principles of the present application may be implemented in any suitably arranged system. Exemplary embodiments will be described in detail, examples of which are illustrated in the accompanying drawings. Further, the terminal device according to the exemplary embodiment will be described in detail with reference to the accompanying drawings. Like reference symbols in the drawings indicate like elements.
The terminology used in this detailed description is for the purpose of describing particular embodiments only and is not intended to be limiting of the concepts of the application. The use of expressions in the singular encompasses plural forms of expressions unless the context clearly dictates otherwise. In this specification, it should be understood that terms such as "comprises," "comprising," "includes," and "including" are intended to specify the presence of the stated features, integers, steps, actions, or combinations thereof, disclosed in the specification, but are not intended to preclude the presence or addition of one or more other features, integers, steps, actions, or groups thereof. Like reference numerals in the drawings refer to like parts.
In the description of the present application, it should be noted that, unless explicitly specified and limited otherwise, the terms "mounted," "connected," and "connected" are to be construed broadly, and may be either fixedly connected, detachably connected, or integrally connected, for example; can be mechanically connected, electrically connected or can be communicated with each other; can be directly connected or indirectly connected through an intermediate medium, and can be communicated with the inside of two elements or the interaction relationship of the two elements. The specific meaning of the terms in this application will be understood by those of ordinary skill in the art as the case may be.
The following disclosure provides many different embodiments or examples for implementing different structures of the present application. In order to simplify the disclosure of the present application, the components and arrangements of specific examples are described below. Of course, they are merely examples and are not intended to limit the present application. Furthermore, the present application may repeat reference numerals and/or letters in the various examples, which are for the purpose of brevity and clarity, and which do not in themselves indicate the relationship between the various embodiments and/or arrangements discussed. In addition, the present application provides examples of various specific processes and materials, but one of ordinary skill in the art may recognize the application of other processes and/or the use of other materials.
Specifically, referring to fig. 1, an embodiment of the present application provides a method for controlling battery power, where the method for controlling battery power is used for a terminal device and includes the following steps.
Step S11, the electric quantity percentage of the battery is obtained.
In this embodiment, a preprocessing step S10 is further included before step S11, where the battery capacity is divided into a plurality of power consumption intervals, each power consumption interval is N% (where N% represents a difference value of the power values displayed by the terminal device, and the capacity of the battery represents an actual available capacity of the battery), and the power consumption of each power consumption interval is N% of the current capacity of the battery.
The value of the power percentage only shows the end point value of each power consumption interval. Specifically, for example, if a certain power consumption interval is [90%,85% ], the power consumption percentage becomes 85% when the power consumption interval is completed (i.e., the capacity of the battery corresponding to 5% of the power consumption interval is consumed) if the power consumption percentage is 90%.
Step S12, judging whether the electric quantity percentage is lower than a preset threshold value.
In the embodiment of the present application, the preset threshold is used as a flag for distinguishing whether the battery is sufficiently charged. Specifically, a critical point at which the power consumption speed becomes high is generally selected.
And S13, when the electric quantity percentage is judged to be lower than the preset threshold value, controlling the battery to enter a second power consumption mode from a first power consumption mode, wherein the available battery capacity corresponding to the second power consumption mode is higher than that corresponding to the first power consumption mode.
In the embodiment of the present application, the power consumption modes of the battery are divided into a first power consumption mode and a second power consumption mode.
Specifically, the first power consumption mode is the prior art, that is, the battery capacity is divided into a plurality of power consumption intervals, each power consumption interval is N%, and the electric quantity of each power consumption interval is N% of the current capacity of the battery. Therefore, the available battery capacity of each power consumption interval is sequentially reduced, that is, the lower the power amount is, the faster the power consumption speed of each power consumption interval is. Stated another way, the first power consumption mode is when the terminal device is powered down with a power percentage of 0%, and a significant portion of the battery capacity is hidden from use.
When the battery is in the first power consumption mode, voltage drops corresponding to the power consumption intervals are increased along with the reduction of the electric quantity percentage.
And a second power consumption mode, when the electric quantity percentage of the battery is lower than a preset threshold value, re-dividing power consumption intervals, wherein each power consumption interval is a%, the electric quantity of each power consumption interval is a% of the maximum capacity of the battery, wherein a% = Q is N%/P, Q is the capacity of the battery corresponding to the preset threshold value, and P is the maximum capacity of the battery. In other words, most of the battery capacity which is hidden and not used is equally divided into each power consumption interval again, so that each power consumption interval has sufficient electric quantity, the service time of the terminal equipment in low electric quantity is prolonged, and the situation that the terminal equipment is instantly powered off to cause the user to lose communication information is avoided, thereby improving the user experience.
The specific values are further described below.
Assume that the battery capacity of the battery is 4000mah and the preset threshold is 60%.
In the prior art, the battery is in the first power consumption mode all the way. At intervals of 5% as power consumption interval, when the power percentage is 0% and the power is turned off, the battery capacity is 4000 (95%) 20 = 1433.9mah, about 35.8% of the battery capacity is hidden from consumption.
In the embodiment of the application, the battery is in the first power consumption mode when the electric quantity is higher than 60%, and is in the second power consumption mode when the electric quantity is lower than 60%. At intervals of 5% as power consumption interval, when the power percentage is 0% and the power is turned off, the battery capacity is 4000 [ (95%) ] 8 -60%]=253.7mah, about 6.3% of the battery capacity is hidden and not consumed, compared with the prior art, most of the hidden electric quantity is released, so that the service time of the terminal equipment in low electric quantity is prolonged, and the situation that the terminal equipment is instantly powered off to cause the user to lose communication information is avoided, thereby improving the user experience.
It should be noted that, the electric quantity of the battery can be regarded as a percentage of the electric quantity displayed by the terminal device, the capacity of the battery is the actual available capacity of the battery, and the electric quantity and the capacity represent different meanings.
Referring to fig. 2, an embodiment of the present application provides a battery power control device 1, which includes a first dividing module 11, an obtaining module 12, a judging module 13, a control module 14, and a second dividing module 15.
The first dividing module 11 is configured to divide the battery capacity into a plurality of power consumption intervals, where each power consumption interval is N%, and the electric quantity of each power consumption interval is N% of the current capacity of the battery.
The acquisition module 12 is connected to the first division module 11. The acquisition module 12 is used for acquiring the electric quantity percentage of the battery.
In the embodiment of the present application, the value of the power percentage only shows the endpoint value of each power consumption interval. Specifically, for example, if a certain power consumption interval is [90%,85% ], the power consumption percentage becomes 85% when the power consumption interval is completed (i.e., the capacity of the battery corresponding to 5% of the power consumption interval is consumed) if the power consumption percentage is 90%.
The judgment module 13 is connected with the acquisition module 12. The judging module 13 is configured to judge whether the percentage of the electric power is lower than a preset threshold.
In the embodiment of the present application, the preset threshold is used as a flag for distinguishing whether the battery is sufficiently charged. Specifically, a critical point at which the power consumption speed becomes high is generally selected.
The control module 14 is connected with the judging module 13. The control module 14 is configured to control the battery to enter a second power consumption mode from a first power consumption mode when the percentage of the electric power is determined to be lower than the preset threshold, wherein the available battery capacity corresponding to the second power consumption mode is higher than the available battery capacity corresponding to the first power consumption mode.
The second dividing module 15 is connected to the control module 14. The second dividing module 15 is configured to re-divide power consumption intervals when the battery is in the second power consumption mode, wherein each power consumption interval is a%, and the electric quantity of each power consumption interval is a% of the maximum capacity of the battery, where a% = Q x N%/P, Q is the capacity of the battery corresponding to the preset threshold, and P is the maximum capacity of the battery.
In the embodiment of the present application, the power consumption modes of the battery are divided into a first power consumption mode and a second power consumption mode.
Specifically, the first power consumption mode is the prior art, that is, the battery capacity is divided into a plurality of power consumption intervals, each power consumption interval is N% (the N% represents the difference value of the electric quantity values displayed by the terminal device, the battery capacity represents the actual available capacity of the battery), and the electric quantity of each power consumption interval is N% of the current capacity of the battery. Therefore, the available battery capacity of each power consumption interval is sequentially reduced, that is, the lower the power amount is, the faster the power consumption speed of each power consumption interval is. Stated another way, the first power consumption mode is when the terminal device is powered down with a power percentage of 0%, and a significant portion of the battery capacity is hidden from use.
When the battery is in the first power consumption mode, voltage drops corresponding to the power consumption intervals are increased along with the reduction of the electric quantity percentage.
And a second power consumption mode, when the electric quantity percentage of the battery is lower than a preset threshold value, re-dividing power consumption intervals, wherein each power consumption interval is a%, the electric quantity of each power consumption interval is a% of the maximum capacity of the battery, wherein a% = Q is N%/P, Q is the capacity of the battery corresponding to the preset threshold value, and P is the maximum capacity of the battery. In other words, most of the battery capacity which is hidden and not used is equally divided into each power consumption interval again, so that each power consumption interval has sufficient electric quantity, the service time of the terminal equipment in low electric quantity is prolonged, and the situation that the terminal equipment is instantly powered off to cause the user to lose communication information is avoided, thereby improving the user experience.
Referring to fig. 3, the embodiment of the present invention further provides a terminal device 200, where the terminal device 200 may be a mobile phone, a tablet, a computer, or the like. As shown in fig. 3, the terminal device 200 includes a processor 201, a memory 202. The processor 201 is electrically connected to the memory 202.
The processor 201 is a control center of the terminal device 200, connects respective parts of the entire terminal device using various interfaces and lines, and performs various functions of the terminal device and processes data by running or loading an application program stored in the memory 202 and calling data stored in the memory 202, thereby performing overall monitoring of the terminal device.
In this embodiment, the terminal device 200 is provided with a plurality of storage partitions, where the plurality of storage partitions include a system partition and a target partition, and the processor 201 in the terminal device 200 loads instructions corresponding to the processes of one or more application programs into the memory 202 according to the following steps, and the processor 201 executes the application programs stored in the memory 202, thereby implementing various functions:
acquiring the electric quantity percentage of the battery;
judging whether the electric quantity percentage is lower than a preset threshold value or not; and
and when the electric quantity percentage is judged to be lower than the preset threshold value, controlling the battery to enter a second power consumption mode from a first power consumption mode, wherein the available battery capacity corresponding to the second power consumption mode is higher than that corresponding to the first power consumption mode.
Fig. 4 shows a specific block diagram of a terminal device 300 according to an embodiment of the present invention, and the terminal device 300 may be used to implement the method for controlling the battery power provided in the above embodiment. The terminal device 300 may be a cell phone or tablet.
The RF circuit 310 is configured to receive and transmit electromagnetic waves, and to perform mutual conversion between the electromagnetic waves and the electrical signals, thereby communicating with a communication network or other devices. RF circuitry 310 may include various existing circuit elements for performing these functions, such as an antenna, a radio frequency transceiver, a digital signal processor, an encryption/decryption chip, a Subscriber Identity Module (SIM) card, memory, and the like. The RF circuitry 310 may communicate with various networks such as the internet, intranets, wireless networks, or other devices via wireless networks. The wireless network may include a cellular telephone network, a wireless local area network, or a metropolitan area network. The wireless network may use various communication standards, protocols, and technologies including, but not limited to, global system for mobile communications (Global System for Mobile Communication, GSM), enhanced mobile communications technology (Enhanced Data GSM Environment, EDGE), wideband code division multiple access technology (Wideband Code Division Multiple Access, WCDMA), code division multiple access technology (Code Division Access, CDMA), time division multiple access technology (Time Division Multiple Access, TDMA), wireless fidelity technology (Wireless Fidelity, wi-Fi) (e.g., american society of electrical and electronic engineers standard IEEE802.11a, IEEE 802.11.11 b, IEEE802.11g, and/or IEEE802.11 n), internet telephony (Voice over Internet Protocol, voIP), worldwide interoperability for microwave access (Worldwide Interoperability for Microwave Access, wi-Max), other protocols for mail, instant messaging, and short messaging, and any other suitable communication protocols, even those not currently developed.
The memory 320 may be used to store software programs and modules, such as program instructions/modules corresponding to the battery level control method in the above embodiments, and the processor 380 executes the software programs and modules stored in the memory 320 to perform various functional applications and data processing, i.e., to implement the functions of the battery level control method. Memory 320 may include high-speed random access memory, and may also include non-volatile memory, such as one or more magnetic storage devices, flash memory, or other non-volatile solid-state memory. In some examples, memory 320 may further include memory remotely located relative to processor 380, which may be connected to terminal device 300 via a network. Examples of such networks include, but are not limited to, the internet, intranets, local area networks, mobile communication networks, and combinations thereof.
The input unit 330 may be used to receive input numeric or character information and to generate keyboard, mouse, joystick, optical or trackball signal inputs related to user settings and function control. In particular, the input unit 330 may include a touch-sensitive surface 331 as well as other input devices 332. The touch-sensitive surface 331, also referred to as a touch display screen or a touch pad, may collect touch operations thereon or thereabout by a user (e.g., operations of the user on the touch-sensitive surface 331 or thereabout using any suitable object or accessory such as a finger, stylus, etc.), and actuate the corresponding connection device according to a predetermined program. Alternatively, the touch sensitive surface 331 may comprise two parts, a touch detection device and a touch controller. The touch detection device detects the touch azimuth of a user, detects a signal brought by touch operation and transmits the signal to the touch controller; the touch controller receives touch information from the touch detection device, converts it into touch point coordinates, and sends the touch point coordinates to the processor 380, and can receive and execute commands sent from the processor 380. In addition, the touch-sensitive surface 331 may be implemented in a variety of types, such as resistive, capacitive, infrared, and surface acoustic wave. In addition to the touch-sensitive surface 331, the input unit 330 may also comprise other input devices 332. In particular, other input devices 332 may include, but are not limited to, one or more of a physical keyboard, function keys (e.g., volume control keys, switch keys, etc.), a trackball, mouse, joystick, etc.
The display unit 340 may be used to display information input by a user or information provided to the user and various graphical user interfaces of the terminal device 300, which may be composed of graphics, text, icons, video, and any combination thereof. The display unit 340 may include a display panel 341, and optionally, the display panel 341 may be configured in the form of an LCD (Liquid Crystal Display ), an OLED (Organic Light-Emitting Diode), or the like. Further, the touch sensitive surface 331 may overlay the display panel 341 and, upon detection of a touch operation thereon or thereabout by the touch sensitive surface 331, is communicated to the processor 380 to determine the type of touch event, and the processor 380 then provides a corresponding visual output on the display panel 341 based on the type of touch event. Although in fig. 4 the touch sensitive surface 331 and the display panel 341 are implemented as two separate components for input and output functions, in some embodiments the touch sensitive surface 331 may be integrated with the display panel 341 for input and output functions.
The terminal device 300 may also include at least one sensor 350, such as a light sensor, a motion sensor, and other sensors. Specifically, the light sensor may include an ambient light sensor that may adjust the brightness of the display panel 341 according to the brightness of ambient light, and a proximity sensor that may turn off the display panel 341 and/or the backlight when the terminal device 300 moves to the ear. As one of the motion sensors, the gravity acceleration sensor can detect the acceleration in all directions (generally three axes), and can detect the gravity and the direction when the mobile phone is stationary, and can be used for applications of recognizing the gesture of the mobile phone (such as horizontal and vertical screen switching, related games, magnetometer gesture calibration), vibration recognition related functions (such as pedometer and knocking), and the like; other sensors such as gyroscopes, barometers, hygrometers, thermometers, infrared sensors, etc. that may also be configured with the terminal device 300 are not described in detail herein.
Audio circuitry 360, speaker 361, and microphone 362 may provide an audio interface between a user and terminal device 300. The audio circuit 360 may transmit the received electrical signal converted from audio data to the speaker 361, and the electrical signal is converted into a sound signal by the speaker 361 and output; on the other hand, the microphone 362 converts the collected sound signals into electrical signals, receives the electrical signals from the audio circuit 360, converts the electrical signals into audio data, outputs the audio data to the processor 380 for processing, and transmits the audio data to, for example, another terminal via the RF circuit 310, or outputs the audio data to the memory 320 for further processing. Audio circuitry 360 may also include an ear bud jack to provide communication of the peripheral ear bud with terminal device 300.
The terminal device 300 may facilitate user email, web browsing, streaming media access, etc. via the transmission module 370 (e.g., wi-Fi module), which provides wireless broadband internet access to the user. Although fig. 4 shows the transmission module 370, it is understood that it does not belong to the essential constitution of the terminal device 300, and may be omitted entirely as needed within the scope of not changing the essence of the invention.
Processor 380 is a control center of terminal device 300 that connects the various parts of the overall handset using various interfaces and lines, performs various functions of terminal device 300 and processes data by running or executing software programs and/or modules stored in memory 320, and invoking data stored in memory 320, thereby performing overall monitoring of the handset. Optionally, processor 380 may include one or more processing cores; in some embodiments, processor 380 may integrate an application processor that primarily processes operating systems, user interfaces, applications, etc., with a modem processor that primarily processes wireless communications. It will be appreciated that the modem processor described above may not be integrated into the processor 380.
The terminal device 300 also includes a power supply 390 (e.g., a battery) that provides power to the various components, and in some embodiments, may be logically coupled to the processor 380 via a power management system to perform functions such as managing charging, discharging, and power consumption via the power management system. Power supply 390 may also include one or more of any of a DC or AC power source, a recharging system, a power failure detection circuit, a power converter or inverter, a power status indicator, and the like.
Although not shown, the terminal device 300 may further include a camera (such as a front camera, a rear camera), a bluetooth module, etc., which will not be described herein. In particular, in this embodiment, the display unit of the terminal device is a touch screen display, the terminal device further includes a memory, and one or more programs, wherein the one or more programs are stored in the memory and configured to be executed by the one or more processors, the one or more programs including instructions for:
acquiring the electric quantity percentage of the battery;
judging whether the electric quantity percentage is lower than a preset threshold value or not; and
and when the electric quantity percentage is judged to be lower than the preset threshold value, controlling the battery to enter a second power consumption mode from a first power consumption mode, wherein the available battery capacity corresponding to the second power consumption mode is higher than that corresponding to the first power consumption mode.
In the implementation, each module may be implemented as an independent entity, or may be combined arbitrarily, and implemented as the same entity or several entities, and the implementation of each module may be referred to the foregoing method embodiment, which is not described herein again.
Those of ordinary skill in the art will appreciate that all or a portion of the steps of the various methods of the above embodiments may be performed by instructions or by controlling associated hardware, which may be stored in a computer-readable storage medium and loaded and executed by a processor. To this end, an embodiment of the present invention provides a storage medium having stored therein a plurality of instructions capable of being loaded by a processor to perform the steps of any one of the battery power control methods provided in the embodiments of the present invention.
Wherein the storage medium may include: read Only Memory (ROM), random access Memory (RAM, random Access Memory), magnetic or optical disk, and the like.
The instructions stored in the storage medium may perform steps in any battery power control method provided by the embodiments of the present invention, so that the beneficial effects that any battery power control method provided by the embodiments of the present invention can be achieved, which are detailed in the previous embodiments and are not described herein. The specific implementation of each operation above may be referred to the previous embodiments, and will not be described herein.
According to the method and the device, when the electric quantity percentage of the battery is lower than the preset threshold value, the battery is controlled to enter a second power consumption mode from a first power consumption mode, so that the power consumption interval is divided again, the total available battery capacity of the power consumption interval is increased, the loss speed of the battery in low electric quantity is reduced, the terminal equipment is prevented from being powered off instantly in low electric quantity, communication information is prevented from being lost by a user, and user experience is improved.
In the foregoing embodiments, the descriptions of the embodiments are emphasized, and for parts of one embodiment that are not described in detail, reference may be made to related descriptions of other embodiments.
The foregoing describes in detail a method and apparatus for controlling battery power, a storage medium, and a terminal device provided in the embodiments of the present application, where specific examples are applied to illustrate principles and implementations of the present application, and the descriptions of the foregoing embodiments are only used to help understand the technical solutions and core ideas of the present application; those of ordinary skill in the art will appreciate that: the technical scheme described in the foregoing embodiments can be modified or some technical features thereof can be replaced by equivalents; such modifications and substitutions do not depart from the spirit of the corresponding technical solutions from the scope of the technical solutions of the embodiments of the present application.

Claims (8)

1. A method for controlling the amount of battery power, comprising:
acquiring the electric quantity percentage of the battery;
judging whether the electric quantity percentage is lower than a preset threshold value or not; and
when the electric quantity percentage is judged to be lower than the preset threshold value, controlling the battery to enter a second power consumption mode from a first power consumption mode, wherein the available battery capacity corresponding to the second power consumption mode is higher than that corresponding to the first power consumption mode;
and when the battery is in the second power consumption mode, the power consumption intervals are divided again, each power consumption interval is a%, the electric quantity of each power consumption interval is a% of the maximum capacity of the battery, wherein a% = Q is N%/P, Q is the capacity of the battery corresponding to the preset threshold, P is the maximum capacity of the battery, and N% is the power consumption interval in the first power consumption mode.
2. The control method according to claim 1, characterized in that, before the step of acquiring the charge percentage of the battery, the control method further comprises: the battery capacity is divided into a plurality of power consumption intervals, each power consumption interval is N%, and the electric quantity of each power consumption interval is N% of the current capacity of the battery.
3. The control method of claim 2, wherein a voltage drop corresponding to each of the plurality of power consumption intervals increases as the percentage of the amount of power decreases when the battery is in the first power consumption mode.
4. A control device for battery power, comprising:
the acquisition module is used for acquiring the electric quantity percentage of the battery;
the judging module is used for judging whether the electric quantity percentage is lower than a preset threshold value or not; and
the control module is used for controlling the battery to enter a second power consumption mode from a first power consumption mode when the electric quantity percentage is judged to be lower than the preset threshold value, wherein the available battery capacity corresponding to the second power consumption mode is higher than the available battery capacity corresponding to the first power consumption mode;
the second dividing module is configured to re-divide power consumption intervals when the battery is in the second power consumption mode, wherein each power consumption interval is a%, the electric quantity of each power consumption interval is a% of the maximum capacity of the battery, a% = Q x N%/P, Q is the capacity of the battery corresponding to the preset threshold, P is the maximum capacity of the battery, and N% is the power consumption interval in the first power consumption mode.
5. The control device of claim 4, further comprising a first dividing module for dividing the battery capacity into a plurality of power consumption intervals, each power consumption interval being N%, and the amount of power in each power consumption interval being N% of the current capacity of the battery.
6. The control device of claim 5, wherein the voltage drop for each of the plurality of power consumption intervals increases as the percentage of power is reduced.
7. A storage medium having stored therein a plurality of instructions adapted to be loaded by a processor to perform the method of controlling battery charge of any one of claims 1 to 3.
8. A terminal device comprising a processor and a memory, the processor being electrically connected to the memory, the memory being for storing instructions and data, the processor being for performing the steps of the method for controlling battery power according to any one of claims 1 to 3.
CN201911238044.7A 2019-12-06 2019-12-06 Battery electric quantity control method and device, storage medium and terminal equipment Active CN111008090B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201911238044.7A CN111008090B (en) 2019-12-06 2019-12-06 Battery electric quantity control method and device, storage medium and terminal equipment

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201911238044.7A CN111008090B (en) 2019-12-06 2019-12-06 Battery electric quantity control method and device, storage medium and terminal equipment

Publications (2)

Publication Number Publication Date
CN111008090A CN111008090A (en) 2020-04-14
CN111008090B true CN111008090B (en) 2023-06-20

Family

ID=70114371

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201911238044.7A Active CN111008090B (en) 2019-12-06 2019-12-06 Battery electric quantity control method and device, storage medium and terminal equipment

Country Status (1)

Country Link
CN (1) CN111008090B (en)

Families Citing this family (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113807754A (en) * 2020-06-15 2021-12-17 Oppo(重庆)智能科技有限公司 Inventory equipment ex-warehouse management and control method and device, storage medium and terminal
CN113258655B (en) * 2021-06-28 2021-11-23 深圳小米通讯技术有限公司 Electric quantity control method and device, electronic equipment and storage medium
WO2023240549A1 (en) * 2022-06-16 2023-12-21 北京小米移动软件有限公司 Battery level display method and apparatus, and storage medium

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103344918A (en) * 2013-06-21 2013-10-09 广东欧珀移动通信有限公司 Mobile terminal cell electric quantity display method and system
CN104833927A (en) * 2015-05-15 2015-08-12 惠州Tcl移动通信有限公司 Battery capacity display method, system thereof and mobile terminal
CN104917882A (en) * 2015-04-30 2015-09-16 努比亚技术有限公司 Method and terminal for achieving cell electricity quantity display
CN105425931A (en) * 2015-11-02 2016-03-23 东莞酷派软件技术有限公司 Battery electric power management method, device and intelligent terminal
CN106505695A (en) * 2016-12-30 2017-03-15 广东欧珀移动通信有限公司 A kind of charge control method, device and terminal
CN110109806A (en) * 2019-04-23 2019-08-09 出门问问信息科技有限公司 A kind of method, apparatus and intelligent wearable device that concealed electricity is shown

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
KR102395171B1 (en) * 2015-04-27 2022-05-06 삼성전자주식회사 Method for displaying user interface and electronic device thereof

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103344918A (en) * 2013-06-21 2013-10-09 广东欧珀移动通信有限公司 Mobile terminal cell electric quantity display method and system
CN104917882A (en) * 2015-04-30 2015-09-16 努比亚技术有限公司 Method and terminal for achieving cell electricity quantity display
CN104833927A (en) * 2015-05-15 2015-08-12 惠州Tcl移动通信有限公司 Battery capacity display method, system thereof and mobile terminal
CN105425931A (en) * 2015-11-02 2016-03-23 东莞酷派软件技术有限公司 Battery electric power management method, device and intelligent terminal
CN106505695A (en) * 2016-12-30 2017-03-15 广东欧珀移动通信有限公司 A kind of charge control method, device and terminal
CN110109806A (en) * 2019-04-23 2019-08-09 出门问问信息科技有限公司 A kind of method, apparatus and intelligent wearable device that concealed electricity is shown

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
陶俊健 ; 张哲 ; .嵌入式Wince终端设备中电池管理的优化.电子器件.2006,(02),第486-489、492. *

Also Published As

Publication number Publication date
CN111008090A (en) 2020-04-14

Similar Documents

Publication Publication Date Title
CN106786962B (en) Charging control method and device and terminal
CN111008090B (en) Battery electric quantity control method and device, storage medium and terminal equipment
US11138041B2 (en) Method for automatically releasing resource occupied by process in background of terminal, storage medium and terminal
CN109714476B (en) Data processing method and device, mobile terminal and storage medium
US11556158B2 (en) On-the-go (OTG) control and configuration method, mobile terminal, and storage medium
CN111432387B (en) Many-to-many switching module, multi-machine wireless communication system and communication method thereof
CN110489177B (en) Application control method and device, storage medium and terminal equipment
CN106547400B (en) Method, device and terminal for reporting information
CN112261634B (en) Bluetooth transmission control method and device, terminal equipment and storage medium
CN112367425B (en) Volume adjusting method and device and terminal
CN110995324B (en) Bluetooth communication method, device, storage medium and terminal equipment
CN112367428A (en) Electric quantity display method and system, storage medium and mobile terminal
CN109831771B (en) Bluetooth searching method and device, mobile terminal and storage medium
CN112491562B (en) Communication control method and device and mobile terminal
CN112531835B (en) Mobile terminal charging method and device, storage medium and mobile terminal
CN112199245B (en) Mobile terminal screen detection method, system, storage medium and mobile terminal
CN112243269B (en) Method and device for downloading data and mobile terminal
CN112379857B (en) Audio data processing method and device, storage medium and mobile terminal
CN111163509B (en) Power saving display method and device, storage medium and mobile terminal
CN111338452B (en) Method, system, storage medium and mobile terminal for simulating acceleration charging of U disk
CN111262636B (en) Method and device for enhancing network data transmission speed, storage medium and mobile terminal
CN112433694B (en) Light intensity adjusting method and device, storage medium and mobile terminal
CN109617660B (en) Method and device for setting carrier aggregation frequency band, storage medium and mobile terminal
CN111405649B (en) Information transmission method and device and mobile terminal
CN110972221B (en) Communication signal processing method and device 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