CN110767946B - Method and device for controlling discharging of mobile terminal and mobile terminal - Google Patents

Method and device for controlling discharging of mobile terminal and mobile terminal Download PDF

Info

Publication number
CN110767946B
CN110767946B CN201810847065.8A CN201810847065A CN110767946B CN 110767946 B CN110767946 B CN 110767946B CN 201810847065 A CN201810847065 A CN 201810847065A CN 110767946 B CN110767946 B CN 110767946B
Authority
CN
China
Prior art keywords
battery
mobile terminal
application program
discharging
preset
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
CN201810847065.8A
Other languages
Chinese (zh)
Other versions
CN110767946A (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.)
Oppo Chongqing Intelligent Technology Co Ltd
Original Assignee
Oppo Chongqing Intelligent Technology Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Oppo Chongqing Intelligent Technology Co Ltd filed Critical Oppo Chongqing Intelligent Technology Co Ltd
Priority to CN201810847065.8A priority Critical patent/CN110767946B/en
Publication of CN110767946A publication Critical patent/CN110767946A/en
Application granted granted Critical
Publication of CN110767946B publication Critical patent/CN110767946B/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/448End of discharge regulating measures
    • 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/4285Testing apparatus
    • 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
    • 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 application discloses a method and a device for controlling discharge of a mobile terminal, the mobile terminal and a computer readable storage medium, wherein the method for controlling discharge of the mobile terminal comprises the following steps: after receiving the control information for starting discharging, judging whether the battery electric quantity of the mobile terminal is higher than a preset electric quantity; if the battery power is higher than the preset power, discharging the battery of the mobile terminal by running a preset application program; the method comprises the steps of detecting the electric quantity of a battery in the process of discharging the battery of the mobile terminal by running a preset application program, and stopping running the preset application program when the electric quantity of the battery is not higher than the preset electric quantity. Through the method and the device, the battery discharging progress can be monitored, the discharging control efficiency of the mobile terminal is improved, and the method and the device have high practicability and usability.

Description

Method and device for controlling discharging of mobile terminal and mobile terminal
Technical Field
The present application belongs to the field of information processing technologies, and in particular, to a method and an apparatus for controlling discharge of a mobile terminal, and a computer-readable storage medium.
Background
Before the mobile terminal leaves the factory, a manufacturer of the mobile terminal needs to perform operations such as a discharge test or control of the power of the mobile terminal, and at this time, the battery in the mobile terminal may need to be discharged. In the discharging process, the electric quantity of the battery needs to be manually confirmed and controlled, and when the discharging is stopped untimely, the electric quantity of the battery is too low and exceeds the required electric quantity range, so that the mobile terminal needs to be charged again, the control difficulty in the discharging process is high, and the control efficiency is low.
Disclosure of Invention
In view of this, the present application provides a method and an apparatus for controlling discharging of a mobile terminal, the mobile terminal and a computer-readable storage medium, which can improve the controlling efficiency of discharging of the mobile terminal.
A first aspect of the present application provides a method for controlling discharge of a mobile terminal, where the method includes:
after receiving the control information for starting discharging, judging whether the battery electric quantity of the mobile terminal is higher than a preset electric quantity;
if the battery power is higher than the preset power, discharging the battery of the mobile terminal by running a preset application program;
and detecting the electric quantity of the battery in the process of discharging the battery of the mobile terminal by running a preset application program, and stopping running the preset application program when the electric quantity of the battery is not higher than the preset electric quantity.
A second aspect of the present application provides an apparatus for controlling discharge of a mobile terminal, the apparatus comprising:
the judging module is used for judging whether the battery electric quantity of the mobile terminal is higher than the preset electric quantity or not after receiving the control information for starting discharging;
the discharging module is used for discharging the battery of the mobile terminal by running a preset application program if the battery power is higher than the preset power;
and the processing module is used for detecting the electric quantity of the battery in the process of discharging the battery of the mobile terminal by running a preset application program, and stopping running the preset application program when the electric quantity of the battery is detected to be not higher than the preset electric quantity.
A third aspect of the present application provides a mobile terminal comprising a memory, a processor and a computer program stored in the memory and executable on the processor, the processor implementing the steps of the method according to the first aspect when executing the computer program.
A fourth aspect of the present application provides a computer readable storage medium having stored thereon a computer program which, when executed by a processor, performs the steps of the method of the first aspect as described above.
A fifth aspect of the application provides a computer program product comprising a computer program which, when executed by one or more processors, performs the steps of the method as described in the first aspect above.
Therefore, after the control information for starting discharging is received, whether the battery electric quantity of the mobile terminal is higher than the preset electric quantity is judged; if the battery power is higher than the preset power, discharging the battery of the mobile terminal by running a preset application program; and detecting the electric quantity of the battery in the process of discharging the battery of the mobile terminal by running a preset application program, and stopping running the preset application program when the electric quantity of the battery is not higher than the preset electric quantity. This application is predetermine the application through the operation and is discharged above-mentioned mobile terminal's battery, can control above-mentioned mobile terminal's discharge speed through setting up the application in advance, predetermine the in-process that the application discharged to above-mentioned mobile terminal's battery through the operation, detect above-mentioned battery power, can monitor the battery progress of discharging, avoid discharging too much and lead to the battery power to hang down excessively to improve the mobile terminal control efficiency who discharges, stronger practicality and ease for use have.
Drawings
In order to more clearly illustrate the technical solutions in the embodiments of the present application, the drawings needed to be used in the embodiments or the prior art descriptions will be briefly described below, and it is obvious that the drawings in the following description are only some embodiments of the present application, and it is obvious for those skilled in the art to obtain other drawings based on these drawings without inventive exercise.
Fig. 1 is a schematic flowchart of an implementation flow of a method for controlling discharging of a mobile terminal according to an embodiment of the present application;
fig. 2 is a schematic flow chart of an implementation of a method for discharging a battery of the mobile terminal by running a preset application according to an embodiment of the present application;
fig. 3 is a schematic flowchart of another implementation of a method for discharging a battery of the mobile terminal by running a preset application according to an embodiment of the present application;
fig. 4 is a schematic flowchart of another implementation of a method for discharging a battery of the mobile terminal by running a preset application according to an embodiment of the present application;
fig. 5 is a schematic structural diagram of an apparatus for controlling discharge of a mobile terminal according to an embodiment of the present application;
fig. 6 is a schematic structural diagram of a mobile terminal according to an embodiment of the present application.
Detailed Description
In the following description, for purposes of explanation and not limitation, specific details are set forth, such as particular system structures, techniques, etc. in order to provide a thorough understanding of the embodiments of the present application. It will be apparent, however, to one skilled in the art that the present application may be practiced in other embodiments that depart from these specific details. In other instances, detailed descriptions of well-known systems, devices, circuits, and methods are omitted so as not to obscure the description of the present application with unnecessary detail.
It will be understood that the terms "comprises" and/or "comprising," when used in this specification and the appended claims, specify the presence of stated features, integers, steps, operations, elements, and/or components, but do not preclude the presence or addition of one or more other features, integers, steps, operations, elements, components, and/or groups thereof.
It is also to be understood that the terminology used in the description of the present application herein is for the purpose of describing particular embodiments only and is not intended to be limiting of the application. As used in the specification of the present application and the appended claims, the singular forms "a," "an," and "the" are intended to include the plural forms as well, unless the context clearly indicates otherwise.
It should be further understood that the term "and/or" as used in this specification and the appended claims refers to and includes any and all possible combinations of one or more of the associated listed items.
As used in this specification and the appended claims, the term "if" may be interpreted contextually as "when", "upon" or "in response to a determination" or "in response to a detection". Similarly, the phrase "if it is determined" or "if a [ described condition or event ] is detected" may be interpreted contextually to mean "upon determining" or "in response to determining" or "upon detecting [ described condition or event ]" or "in response to detecting [ described condition or event ]".
In particular implementations, the mobile terminals described in embodiments of the present application include, but are not limited to, other portable devices such as mobile phones, laptop computers, or tablet computers having touch sensitive surfaces (e.g., touch screen displays and/or touch pads). It should also be understood that in some embodiments, the devices described above are not portable communication devices, but rather are desktop computers having touch-sensitive surfaces (e.g., touch screen displays and/or touch pads).
In the discussion that follows, a mobile terminal that includes a display and a touch-sensitive surface is described. However, it should be understood that the mobile terminal may include one or more other physical user interface devices such as a physical keyboard, mouse, and/or joystick.
The mobile terminal supports various applications, such as one or more of the following: a drawing application, a presentation application, a word processing application, a website creation application, a disc burning application, a spreadsheet application, a gaming application, a telephone application, a video conferencing application, an email application, an instant messaging application, an exercise support application, a photo management application, a digital camera application, a web browsing application, a digital music player application, and/or a digital video player application.
Various applications that may be executed on the mobile terminal may use at least one common physical user interface device, such as a touch-sensitive surface. One or more functions of the touch-sensitive surface and corresponding information displayed on the terminal can be adjusted and/or changed between applications and/or within respective applications. In this way, a common physical architecture (e.g., touch-sensitive surface) of the terminal can support various applications with user interfaces that are intuitive and transparent to the user.
In addition, in the description of the present application, the terms "first", "second", and the like are used only for distinguishing the description, and are not intended to indicate or imply relative importance.
In order to explain the technical solution of the present application, the following description will be given by way of specific examples.
Referring to fig. 1, it is a schematic diagram of an implementation flow of a method for controlling discharging of a mobile terminal provided in an embodiment of the present application, where the method for controlling discharging of a mobile terminal may include the following steps:
step 101, after receiving the control information for starting discharging, judging whether the battery capacity of the mobile terminal is higher than a preset capacity.
For example, the battery capacity may be expressed by a battery capacity, and in this case, the battery capacity may be in ampere-hour (a · h). In addition, the battery capacity may also be represented by a ratio of a current battery capacity to a total battery capacity, and in this case, the battery capacity may be in an interval of [0, 1 ]. Correspondingly, the unit of the preset electric quantity corresponds to the electric quantity of the battery.
For example, in this embodiment of the application, the control information may be input into the mobile terminal through a third party control platform, or may be generated by a user pressing a physical key or a virtual key, and a specific form is not limited herein.
Optionally, before receiving the control information for starting discharging, the preset electric quantity may be set, and at this time, the value input by the user through an input mode such as a third-party control platform, a virtual keyboard or a physical keyboard of the mobile terminal, or voice input may be received as the preset electric quantity.
And 102, if the battery power is higher than the preset power, discharging the battery of the mobile terminal by running a preset application program.
In the embodiment of the application, the battery of the mobile terminal is discharged by operating the preset application, and the discharging speed of the battery of the mobile terminal can be controlled by selecting the preset application with the running power consumption meeting the preset condition, so that the speed-adjustable battery discharging process can be realized by controlling the operation of the application. The power consumption may be electric power consumed by a battery of the mobile terminal.
For example, since a plurality of applications, such as a video player, an audio player, a game application, etc., are often installed in a mobile terminal in advance, different applications consume different power in different operating states. In the embodiment of the application, the power consumption of each application program in a specific running state can be tested in advance, for example, the power consumption of a video player when playing a specific video, the power consumption of a game application program when running a specific game, and the like; the discharging speed of the battery in the specific running state of each application program can be obtained by testing the power consumption of each application program in the specific running state in advance, so that the discharging speed of the battery of the mobile terminal can be controlled on the basis of the installed application program of the mobile terminal.
Optionally, the preset application program is an application program with power consumption higher than preset power during operation.
The preset application program may be one application program or a plurality of application programs. By selecting the application program with the power consumption higher than the preset power during the operation, the discharging speed of the battery of the mobile terminal can be increased, and the discharging time can be shortened.
In the embodiment of the present application, the power consumption may be electric power consumed by a battery of the mobile terminal. It should be noted that the preset application program may select the preset application program under other conditions as needed, for example, the preset application program may have power consumption in a preset interval during running, and the like, which is not limited herein.
Step 103, detecting the battery power during discharging the battery of the mobile terminal by running a preset application program, and stopping running the preset application program when detecting that the battery power is not higher than the preset power.
In the embodiment of the present application, the method for detecting the electric quantity of the battery may be various. For example, the battery power may be detected in real time in a process of discharging a battery of the mobile terminal by running a preset application program, so that a change condition of the battery power may be obtained in time. In addition, the operation of detecting the battery capacity may be performed once every preset time, and in this case, the preset time of the interval may be set according to a battery discharge speed. For example, when the received discharge rate information or the running application indicates that the discharge rate of the battery of the mobile terminal is slow, the preset time for detecting the battery charge amount interval may be set to 5 seconds, and when the received discharge rate information or the running application indicates that the discharge rate of the battery of the mobile terminal is fast, the preset time for detecting the battery charge amount interval may be set to 2 seconds.
For example, the battery power may be detected through a program in the mobile terminal, or may be detected through a third-party detection device or a third-party application platform.
Optionally, after the preset application program stops running, the mobile terminal may be instructed to execute a shutdown operation.
In this embodiment, the method for controlling the discharge of the mobile terminal may be used to test the discharge performance of the battery of the mobile terminal, and in this case, the method for controlling the discharge of the mobile terminal may be applied to multiple repeated discharges of the battery in the mobile terminal, and is not limited to controlling the mobile terminal to perform one discharge operation. In addition, the method can be applied to discharging the mobile terminal to the specified electric quantity before the mobile terminal leaves the factory so as to unify the electric quantity of the battery of the mobile terminal when the mobile terminal leaves the factory, and is convenient for a user to start up for trial use after purchasing. The specific application scenario of the above method for controlling the discharge of the mobile terminal may be various.
The battery of the mobile terminal is discharged through the operation of the preset application program, the discharging speed of the mobile terminal can be controlled through the preset application program, the battery of the mobile terminal is discharged through the operation of the preset application program, the battery electric quantity is detected, the discharging progress can be monitored, the phenomenon that too much discharging leads to too low battery electric quantity is avoided, the discharging control efficiency of the mobile terminal is improved, and the battery has high practicability and usability.
Optionally, in the method for controlling the discharge of the mobile terminal, referring to an implementation flowchart of the method for discharging the battery of the mobile terminal by running the preset application program provided in fig. 2, the method for discharging the battery of the mobile terminal by running the preset application program may include the following steps:
step 201, determining a corresponding application program according to the battery power, where the application program is an application program installed in the mobile terminal.
In this embodiment, the battery power may correspond to the application programs, for example, the battery power in different power intervals may correspond to different application programs respectively. It should be noted that the battery power in the designated interval may correspond to one or more applications. For example, when the battery power is in a certain interval, a plurality of applications may be simultaneously run to increase the discharge speed of the battery of the mobile terminal.
And 202, discharging the battery of the mobile terminal by running an application program corresponding to the electric quantity of the battery.
The discharging process of the battery can be controlled according to the existing program of the mobile terminal by acquiring the application program corresponding to the battery power in the installed application programs of the mobile terminal, and at the moment, the application program special for discharging does not need to be additionally installed, so that the situation that additional software is added to the mobile terminal is avoided, and the situation that the system load of the mobile terminal is increased due to the fact that the battery of the mobile terminal needs to be discharged, and the performance of the mobile terminal is influenced is avoided.
At this time, optionally, before determining the corresponding discharging speed according to the battery power, the method further includes:
and setting the corresponding relation between the battery electric quantity and the application program.
For example, the corresponding relationship between the battery power and the application program may be set by receiving setting information input by a user, or the corresponding relationship between the battery power and the application program may be obtained according to a pre-test result.
For example, when the battery power is represented by a ratio of a current battery capacity to a total battery capacity, a preset power may be set to be 30%, and when the battery power is in a [0.5, 1] interval, the corresponding application program may be an application program whose power consumption is higher than a first preset power during operation, for example, may be a video player for playing a specified video, and the like; the application program corresponding to the battery power in the interval [0.4, 0.5) may be an application program that consumes power higher than the second preset power but not higher than the first preset power when running, for example, may be a game application program in a specified game state, and the like; the application program corresponding to the battery power in the interval [0.3, 0.4) may be an application program consuming power higher than the third preset power but not higher than the second preset power when running, and may be, for example, an audio player playing specified audio.
Through confirming the corresponding application program according to above-mentioned battery electric quantity to discharge to above-mentioned mobile terminal's battery through the application program that the operation corresponds with above-mentioned battery electric quantity, can set up different battery discharge speed for different battery electric quantities, thereby the discharge speed of the different stages of discharging of control that can be better, avoid discharging excessively to lead to battery electric quantity too low simultaneously.
Optionally, in the method for controlling the discharge of the mobile terminal, referring to another implementation flowchart of the method for discharging the battery of the mobile terminal by running the preset application program provided in fig. 3, the method for discharging the battery of the mobile terminal by running the preset application program may include the following steps:
step 301, receiving discharge speed information input by a user, wherein the discharge speed information is used for indicating the discharge speed of the battery of the mobile terminal.
In this embodiment, the user may select the discharge speed information by using a virtual key or a physical key in the mobile terminal, or input the discharge speed information by inputting text information, digital information, or the like. The user may input the discharge rate information through another terminal that performs data transmission with the mobile terminal, which is not limited herein.
For example, the discharge speed information may include information indicating that the battery is rapidly discharged, information indicating that the battery is moderately discharged, and/or information indicating that the battery is slowly discharged, and the like.
Step 302, obtaining a corresponding application program according to the discharging speed information input by the user, and discharging the battery of the mobile terminal by running a preset application program corresponding to the input discharging speed information, wherein the application program is an installed application program of the mobile terminal.
Optionally, an application program corresponding to the pointing speed information may be preset.
For example, each discharge rate information may correspond to one or more application programs, respectively. For example, when the discharge speed information is information indicating that the battery is rapidly discharged, the mobile terminal may be instructed to run the application program a, the application program B, and the application program C to discharge the battery of the mobile terminal; when the discharge speed information is information indicating medium-speed discharge of the battery, the mobile terminal is instructed to run an application program A and an application program B to discharge the battery of the mobile terminal; and when the discharge speed information is information indicating that the battery discharges slowly, instructing the mobile terminal to run an application program A to discharge the battery of the mobile terminal. Further, the discharge rate information may be applied to applications having different power consumptions.
The corresponding application program is obtained according to the discharging speed information input by the user, the preset application program corresponding to the input discharging speed information is operated to discharge the battery of the mobile terminal, the discharging speed of the battery of the mobile terminal can be controlled by the user through inputting the discharging speed information, and therefore the discharging process of the battery can be customized to meet the requirements of various use scenes.
Optionally, in the method for controlling the discharge of the mobile terminal, referring to another implementation flowchart of the method for discharging the battery of the mobile terminal by running the preset application program provided in fig. 4, the method for discharging the battery of the mobile terminal by running the preset application program may include the following steps:
step 401, receiving an application program selected by a user, where the application program is an application program installed in the mobile terminal.
Optionally, in this embodiment of the application, before receiving the application selected by the user, the installed application may be displayed in the form of an application list, an icon, or the like, so as to facilitate the selection by the user.
And 402, discharging the battery of the mobile terminal by running the application program selected by the user.
In this embodiment, the number of the application programs selected by the user may be one or more. When the number of the application programs selected by the user is plural, the application programs may be run in the foreground or in the background. In addition, for an application program which may need to be run in the foreground, such as a video player playing a video, it may be preset that the user can select only one application program which needs to be run in the foreground, and during the running process, the application program which needs to be run in the foreground may be run in the foreground, while other application programs which do not need to be run in the foreground may be run in the background. The application selected by the user may be an application installed on the mobile terminal by the user.
In the embodiment of the invention, the battery of the mobile terminal is discharged by running the application program selected by the user, so that the user can control the discharging process of the battery according to the requirement of the user.
Referring to fig. 5, the device for controlling the discharge of the mobile terminal according to the embodiment of the present application is schematically shown, and for convenience of description, only the relevant parts related to the embodiment of the present application are shown. The device for controlling the discharge of the mobile terminal can be used in various terminals with image processing functions, such as a notebook Computer, a Pocket Computer (PPC), a Personal Digital Assistant (PDA), and the like, and can be a software unit, a hardware unit, a software and hardware combination unit, and the like, which are built in the terminals. The apparatus 500 for controlling the discharge of the mobile terminal in the embodiment of the present application includes:
the determining module 501 is configured to determine whether the battery power of the mobile terminal is higher than a preset power after receiving the control information for starting discharging;
a discharging module 502, configured to discharge the battery of the mobile terminal by running a preset application program if the battery power is higher than the preset power;
the processing module 503 is configured to detect the battery power during a process of discharging the battery of the mobile terminal by running a preset application, and stop running the preset application when the battery power is detected to be not higher than the preset power.
Optionally, in the embodiment of the present application, the preset application is an application that consumes power higher than a preset power when running.
Optionally, the discharge module 502 specifically includes:
a determining unit, configured to determine a corresponding application according to the battery power, where the application is an application installed in the mobile terminal;
and the first discharging unit is used for discharging the battery of the mobile terminal by running an application program corresponding to the electric quantity of the battery.
Optionally, the apparatus 500 for controlling the discharge of the mobile terminal further includes:
and the setting module is used for setting the corresponding relation between the battery electric quantity and the application program.
Optionally, the discharge module 502 specifically includes:
a first receiving unit, configured to receive discharge speed information input by a user, where the discharge speed information is used to indicate a discharge speed of a battery of the mobile terminal;
and the second discharging unit is used for acquiring a corresponding application program according to the discharging speed information input by the user and discharging the battery of the mobile terminal by running a preset application program corresponding to the input discharging speed information, wherein the application program is an installed application program of the mobile terminal.
Optionally, the discharge module 502 specifically includes:
a second receiving unit, configured to receive an application program selected by a user, where the application program is an application program installed in the mobile terminal;
and the third discharging unit is used for discharging the battery of the mobile terminal by running the application program selected by the user.
It will be apparent to those skilled in the art that, for convenience and brevity of description, only the above-mentioned division of the functional units and modules is illustrated, and in practical applications, the above-mentioned functions may be distributed as different functional units and modules according to needs, that is, the internal structure of the apparatus may be divided into different functional units or modules to implement all or part of the above-mentioned functions. Each functional unit and module in the embodiments may be integrated in one processing unit, or each unit may exist alone physically, or two or more units are integrated in one unit, and the integrated unit may be implemented in a form of hardware, or in a form of software functional unit. In addition, specific names of the functional units and modules are only for convenience of distinguishing from each other, and are not used for limiting the protection scope of the present application. The specific working processes of the units and modules in the system may refer to the corresponding processes in the foregoing method embodiments, and are not described herein again.
An embodiment of the present application provides a mobile terminal, please refer to fig. 6, where the mobile terminal in the embodiment of the present application includes: a memory 601, one or more processors 602 (only one shown in fig. 6), and computer programs stored on the memory 601 and executable on the processors. Wherein: the memory 601 is used to store software programs and modules, and the processor 602 executes various functional applications and data processing by operating the software programs and units stored in the memory 601. Specifically, the processor 602 implements the following steps by running the above-mentioned computer program stored in the memory 601:
after receiving the control information for starting discharging, judging whether the battery electric quantity of the mobile terminal is higher than a preset electric quantity;
if the battery power is higher than the preset power, discharging the battery of the mobile terminal by running a preset application program;
and detecting the electric quantity of the battery in the process of discharging the battery of the mobile terminal by running a preset application program, and stopping running the preset application program when the electric quantity of the battery is not higher than the preset electric quantity.
In a second possible embodiment based on the first possible embodiment, the preset application is an application that consumes power higher than a preset power when running.
In a third possible implementation manner provided on the basis of the first possible implementation manner, the discharging a battery of the mobile terminal by running a preset application includes:
determining a corresponding application program according to the battery power, wherein the application program is an installed application program of the mobile terminal;
and discharging the battery of the mobile terminal by running an application program corresponding to the electric quantity of the battery.
In a fourth possible implementation provided as a basis for the third possible implementation, the processor 602, by executing the above-mentioned computer program stored in the memory 601, further implements the following steps:
and setting the corresponding relation between the battery electric quantity and the application program.
In a fifth possible implementation manner provided on the basis of the first possible implementation manner, the discharging a battery of the mobile terminal by running a preset application includes:
receiving discharge speed information input by a user, wherein the discharge speed information is used for indicating the discharge speed of a battery of the mobile terminal;
and acquiring a corresponding application program according to the discharge speed information input by the user, and discharging the battery of the mobile terminal by running a preset application program corresponding to the input discharge speed information, wherein the application program is an installed application program of the mobile terminal.
In a sixth possible implementation manner provided on the basis of the first possible implementation manner, the discharging a battery of the mobile terminal by running a preset application includes:
receiving an application program selected by a user, wherein the application program is an installed application program of the mobile terminal;
and discharging the battery of the mobile terminal by running the application program selected by the user.
Further, as shown in fig. 6, the mobile terminal may further include: a battery, one or more input devices 603 (only one shown in fig. 6), and one or more output devices 604 (only one shown in fig. 6). The memory 601, processor 602, input device 603, and output device 604 are connected by a bus 605.
It should be understood that in the embodiments of the present Application, the Processor 602 may be a Central Processing Unit (CPU), and the Processor may be other general-purpose processors, Digital Signal Processors (DSPs), Application Specific Integrated Circuits (ASICs), Field-Programmable Gate arrays (FPGAs) or other Programmable logic devices, discrete Gate or transistor logic devices, discrete hardware components, or the like. A general purpose processor may be a microprocessor or the processor may be any conventional processor or the like.
The input device 603 may include a keyboard, a touch pad, a fingerprint sensor (for collecting fingerprint information of a user and direction information of the fingerprint), a microphone, a camera, etc., and the output device 604 may include a display, a speaker, etc.
Memory 601 may include both read-only memory and random-access memory, and provides instructions and data to processor 602. Some or all of memory 601 may also include non-volatile random access memory. For example, the memory 601 may also store device type information.
In the above embodiments, the descriptions of the respective embodiments have respective emphasis, and reference may be made to the related descriptions of other embodiments for parts that are not described or illustrated in a certain embodiment.
Those of ordinary skill in the art would appreciate that the various illustrative elements and algorithm steps described in connection with the embodiments disclosed herein may be implemented as electronic hardware or combinations of external device software and electronic hardware. Whether such functionality is implemented as hardware or software depends upon the particular application and design constraints imposed on the implementation. Skilled artisans may implement the described functionality in varying ways for each particular application, but such implementation decisions should not be interpreted as causing a departure from the scope of the present application.
In the embodiments provided in the present application, it should be understood that the disclosed apparatus and method may be implemented in other ways. For example, the above-described system embodiments are merely illustrative, and for example, the division of the above-described modules or units is only one logical functional division, and in actual implementation, there may be another division, for example, multiple units or components may be combined or integrated into another system, or some features may be omitted, or not executed. In addition, the shown or discussed mutual coupling or direct coupling or communication connection may be an indirect coupling or communication connection through some interfaces, devices or units, and may be in an electrical, mechanical or other form.
The units described as separate parts may or may not be physically separate, and parts displayed as units may or may not be physical units, may be located in one place, or may be distributed on a plurality of network units. Some or all of the units can be selected according to actual needs to achieve the purpose of the solution of the embodiment.
The integrated units, modules, if implemented in the form of software functional units and sold or used as separate products, may be stored in a computer readable storage medium. Based on such understanding, all or part of the flow in the method of the embodiments described above may be implemented by a computer program, which may be stored in a computer readable storage medium and used by a processor to implement the steps of the embodiments of the methods described above. The computer program includes computer program code, and the computer program code may be in a source code form, an object code form, an executable file or some intermediate form. The computer-readable storage medium may include: any entity or device capable of carrying the above-described computer program code, recording medium, usb disk, removable hard disk, magnetic disk, optical disk, computer readable Memory, Read-Only Memory (ROM), Random Access Memory (RAM), electrical carrier wave signal, telecommunication signal, software distribution medium, etc. It should be noted that the computer readable storage medium may contain other contents which can be appropriately increased or decreased according to the requirements of the legislation and the patent practice in the jurisdiction, for example, in some jurisdictions, the computer readable storage medium does not include an electrical carrier signal and a telecommunication signal according to the legislation and the patent practice.
The above embodiments are only used for illustrating the technical solutions of the present application, and not for limiting the same; although the present application has been described in detail with reference to the foregoing embodiments, it should be understood by those of ordinary skill in the art that: the technical solutions described in the foregoing embodiments may still be modified, or some technical features may be equivalently replaced; such modifications and substitutions do not substantially depart from the spirit and scope of the embodiments of the present application and are intended to be included within the scope of the present application.

Claims (8)

1. A method for controlling the delivery electric quantity of a mobile terminal is characterized by comprising the following steps:
after receiving the control information for starting discharging, judging whether the battery electric quantity of the mobile terminal is higher than a preset electric quantity;
if the battery power is higher than the preset power, discharging the battery of the mobile terminal by running a preset application program, including:
receiving discharge speed information input by a user, wherein the discharge speed information is used for indicating the discharge speed of a battery of the mobile terminal;
acquiring a corresponding application program according to discharge speed information input by a user, and discharging a battery of the mobile terminal by operating a preset application program corresponding to the input discharge speed information, wherein the application program is an installed application program of the mobile terminal, and different battery discharge speeds are set for different battery electric quantities, so that the discharge speeds of different discharge stages are controlled;
the method comprises the steps of detecting the electric quantity of a battery in the process of discharging the battery of the mobile terminal by running a preset application program, stopping running the preset application program when the electric quantity of the battery is not higher than the preset electric quantity, and indicating the mobile terminal to execute shutdown operation.
2. The method of claim 1, wherein the predetermined application is an application that consumes power higher than a predetermined power when running.
3. The method of claim 1, wherein the discharging the battery of the mobile terminal by running a preset application comprises:
determining a corresponding application program according to the battery electric quantity, wherein the application program is an installed application program of the mobile terminal;
and discharging the battery of the mobile terminal by operating an application program corresponding to the electric quantity of the battery.
4. The method of claim 3, prior to determining the corresponding application based on the battery power level, further comprising:
and setting the corresponding relation between the battery electric quantity and the application program.
5. The method of claim 1, wherein the discharging the battery of the mobile terminal by running a preset application comprises:
receiving an application program selected by a user, wherein the application program is an installed application program of the mobile terminal;
and discharging the battery of the mobile terminal by running the application program selected by the user.
6. An apparatus for controlling factory power of a mobile terminal, the apparatus comprising:
the judging module is used for judging whether the battery electric quantity of the mobile terminal is higher than the preset electric quantity or not after receiving the control information for starting discharging;
a discharging module, configured to discharge the battery of the mobile terminal by running a preset application if the battery power is higher than the preset power, where the discharging module includes:
the determining unit is used for determining a corresponding application program according to the battery power, wherein the application program is an installed application program of the mobile terminal;
the first discharging unit is used for discharging the battery of the mobile terminal by running an application program corresponding to the battery electric quantity, wherein the application program is an installed application program of the mobile terminal, and different battery discharging speeds are set for different battery electric quantities so as to control the discharging speeds in different discharging stages;
the processing module is used for detecting the electric quantity of the battery in the process of discharging the battery of the mobile terminal by running a preset application program, stopping running the preset application program when the electric quantity of the battery is not higher than the preset electric quantity, and indicating the mobile terminal to execute shutdown operation.
7. A mobile terminal comprising a memory, a processor and a computer program stored in the memory and executable on the processor, characterized in that the processor implements the steps of the method according to any of claims 1 to 5 when executing the computer program.
8. A computer-readable storage medium, in which a computer program is stored which, when being executed by a processor, carries out the steps of the method according to any one of claims 1 to 5.
CN201810847065.8A 2018-07-27 2018-07-27 Method and device for controlling discharging of mobile terminal and mobile terminal Active CN110767946B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201810847065.8A CN110767946B (en) 2018-07-27 2018-07-27 Method and device for controlling discharging of mobile terminal and mobile terminal

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201810847065.8A CN110767946B (en) 2018-07-27 2018-07-27 Method and device for controlling discharging of mobile terminal and mobile terminal

Publications (2)

Publication Number Publication Date
CN110767946A CN110767946A (en) 2020-02-07
CN110767946B true CN110767946B (en) 2021-08-24

Family

ID=69328358

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201810847065.8A Active CN110767946B (en) 2018-07-27 2018-07-27 Method and device for controlling discharging of mobile terminal and mobile terminal

Country Status (1)

Country Link
CN (1) CN110767946B (en)

Families Citing this family (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111598589A (en) * 2020-05-20 2020-08-28 闻泰通讯股份有限公司 Electronic equipment detection method and device, storage medium and electronic equipment
CN111987764B (en) * 2020-08-10 2022-03-25 Tcl通讯(宁波)有限公司 Discharge control method and device, storage medium and mobile terminal

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103402026A (en) * 2013-07-25 2013-11-20 Tcl通讯(宁波)有限公司 Method for processing idle mode of mobile terminal and mobile terminal
CN106131342A (en) * 2016-08-25 2016-11-16 惠州Tcl移动通信有限公司 A kind of method and system controlling mobile terminal shutdown
CN106973138A (en) * 2017-03-10 2017-07-21 广东欧珀移动通信有限公司 A kind of control method of mobile terminal, device and mobile terminal

Family Cites Families (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1896916A (en) * 2005-07-14 2007-01-17 英业达股份有限公司 Automatic discharging unit
KR20110123301A (en) * 2010-05-07 2011-11-15 주식회사 인프라웨어 Automatic practice method of a built-in application by battery charge sensing of mobile terminal unit
CN103369124A (en) * 2012-04-10 2013-10-23 腾讯科技(深圳)有限公司 Battery management method and device
CN202759507U (en) * 2012-09-11 2013-02-27 李平 A smart phone
US9531038B2 (en) * 2013-07-31 2016-12-27 Dell Products, Lp System and method of cell block voltage analytics to improve balancing effectiveness and identify self-discharge rate
CN105072292A (en) * 2015-08-04 2015-11-18 深圳市金立通信设备有限公司 Application control method and terminal
CN106162849A (en) * 2016-07-21 2016-11-23 努比亚技术有限公司 A kind of terminal and power control method

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103402026A (en) * 2013-07-25 2013-11-20 Tcl通讯(宁波)有限公司 Method for processing idle mode of mobile terminal and mobile terminal
CN106131342A (en) * 2016-08-25 2016-11-16 惠州Tcl移动通信有限公司 A kind of method and system controlling mobile terminal shutdown
CN106973138A (en) * 2017-03-10 2017-07-21 广东欧珀移动通信有限公司 A kind of control method of mobile terminal, device and mobile terminal

Also Published As

Publication number Publication date
CN110767946A (en) 2020-02-07

Similar Documents

Publication Publication Date Title
CN108733342B (en) Volume adjusting method, mobile terminal and computer readable storage medium
CN106951057B (en) Application control method and mobile terminal
CN108900770B (en) Method and device for controlling rotation of camera, smart watch and mobile terminal
CN107181858B (en) Method and terminal for displaying notification message
CN107193598B (en) Application starting method, mobile terminal and computer readable storage medium
US10542406B2 (en) Tethering distribution apparatus, control method thereof, and central mediator
WO2018129991A1 (en) Charging method, charging device and terminal
CN106469396B (en) Method and terminal for pushing advertisement information
CN110767946B (en) Method and device for controlling discharging of mobile terminal and mobile terminal
CN109032727B (en) Application program starting method, application program starting device and terminal equipment
CN105760259A (en) Data backup method and device and electronic equipment
CN108681514B (en) Device detection method and device, storage medium and electronic device
CN107317928B (en) Information processing method, mobile terminal and computer readable storage medium
CN112328070A (en) Charging control method, charging control device and electronic equipment
CN106650409B (en) A kind of terminal control method and terminal
WO2020057241A1 (en) Method and apparatus for displaying application program, and terminal device
CN107783932B (en) Information processing method of calculator, mobile terminal and computer readable storage medium
CN110336355B (en) Charging method, charging device and terminal equipment
CN108536512B (en) Interface switching method and device and terminal equipment
CN111404242A (en) Charging method, charging device, storage medium and mobile terminal
EP4099037B1 (en) Prediction method and apparatus of battery health, and storage medium
CN106886600B (en) File management method and terminal
CN107316197B (en) Payment protection method, mobile terminal and computer readable storage medium
CN110874729A (en) Switching method and switching device for electronic red packet identification strategy and mobile terminal
CN107580030B (en) Data management method and device and server

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