CN112542867A - Mobile terminal power supply control method and device, terminal equipment and storage medium - Google Patents

Mobile terminal power supply control method and device, terminal equipment and storage medium Download PDF

Info

Publication number
CN112542867A
CN112542867A CN202011345709.7A CN202011345709A CN112542867A CN 112542867 A CN112542867 A CN 112542867A CN 202011345709 A CN202011345709 A CN 202011345709A CN 112542867 A CN112542867 A CN 112542867A
Authority
CN
China
Prior art keywords
battery
current
electric quantity
power supply
power
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Granted
Application number
CN202011345709.7A
Other languages
Chinese (zh)
Other versions
CN112542867B (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.)
Guangzhou Sanyi Electronics Co ltd
Original Assignee
Huizhou TCL Mobile Communication 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 Huizhou TCL Mobile Communication Co Ltd filed Critical Huizhou TCL Mobile Communication Co Ltd
Priority to CN202011345709.7A priority Critical patent/CN112542867B/en
Publication of CN112542867A publication Critical patent/CN112542867A/en
Application granted granted Critical
Publication of CN112542867B publication Critical patent/CN112542867B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • HELECTRICITY
    • H02GENERATION; CONVERSION OR DISTRIBUTION OF ELECTRIC POWER
    • H02JCIRCUIT ARRANGEMENTS OR SYSTEMS FOR SUPPLYING OR DISTRIBUTING ELECTRIC POWER; SYSTEMS FOR STORING ELECTRIC ENERGY
    • H02J7/00Circuit arrangements for charging or depolarising batteries or for supplying loads from batteries
    • H02J7/0063Circuit arrangements for charging or depolarising batteries or for supplying loads from batteries with circuits adapted for supplying loads from the battery
    • 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
    • HELECTRICITY
    • H02GENERATION; CONVERSION OR DISTRIBUTION OF ELECTRIC POWER
    • H02JCIRCUIT ARRANGEMENTS OR SYSTEMS FOR SUPPLYING OR DISTRIBUTING ELECTRIC POWER; SYSTEMS FOR STORING ELECTRIC ENERGY
    • H02J7/00Circuit arrangements for charging or depolarising batteries or for supplying loads from batteries
    • H02J7/0047Circuit arrangements for charging or depolarising batteries or for supplying loads from batteries with monitoring or indicating devices or circuits
    • H02J7/0048Detection of remaining charge capacity or state of charge [SOC]
    • YGENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
    • Y02TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
    • Y02EREDUCTION OF GREENHOUSE GAS [GHG] EMISSIONS, RELATED TO ENERGY GENERATION, TRANSMISSION OR DISTRIBUTION
    • Y02E60/00Enabling technologies; Technologies with a potential or indirect contribution to GHG emissions mitigation
    • Y02E60/10Energy storage using batteries

Abstract

The embodiment of the invention discloses a power supply control method and device for a mobile terminal, terminal equipment and a storage medium, wherein the current electric quantity of a battery of the mobile terminal is obtained, and the current electric quantity of the battery is compared with the preset electric quantity of the battery; if the current electric quantity of the battery is larger than the preset battery electric quantity, setting a first power supply current, and starting the battery to supply power to the external device by the first power supply current until the current electric quantity of the battery is not larger than the preset battery electric quantity; if the current electric quantity of the battery is not larger than the preset battery electric quantity, the battery is stopped to supply power to the external device by the first power supply current, after the second power supply current is set, the battery is charged, and the battery is started to supply power to the external device by the second power supply current until the current electric quantity of the battery is larger than the preset battery electric quantity, so that the power supply time of the external device is prolonged, and the situation that the mobile terminal supplies power by using large current in a short time and damages energy storage components such as the battery is avoided.

Description

Mobile terminal power supply control method and device, terminal equipment and storage medium
Technical Field
The invention relates to the technical field of mobile communication, in particular to a mobile terminal power supply control method, a mobile terminal power supply control device, terminal equipment and a storage medium.
Background
With the development of science and technology, the functions and applications of mobile terminals are more and more extensive, and generally, mobile terminals are all provided with USB interfaces. The USB (Universal Serial Bus) is a Serial Bus standard, is also a technical specification of an input/output interface, is widely applied to information communication products such as mobile devices, and the mobile terminal can be externally connected to other terminal devices through the USB interface, and supplies power to devices connected to the USB interface and performs common operations such as file copying. As long as the mobile terminal is connected with the external equipment by using the USB interface, if the external equipment is provided with a component capable of storing energy, the mobile terminal can automatically supply power to the external equipment. If the mobile terminal supplies a current to the external device that is greater than the current actually consumed by the external device, the excess current will charge the energy-storing component of the external device until the energy-storing component is fully charged. In the course of research and practice on the prior art, the inventor of the present invention found that, under the condition that the mobile terminal has a small amount of electric power, if the external device connected by the USB interface is still powered by a large current, the battery of the mobile terminal may be damaged.
Disclosure of Invention
The embodiment of the invention provides a power supply control method and device for a mobile terminal, terminal equipment and a storage medium.
The embodiment of the invention provides a power supply control method for a mobile terminal, which comprises the following steps:
acquiring the current electric quantity of a mobile terminal battery, and comparing the current electric quantity of the battery with the preset electric quantity of the battery;
if the current electric quantity of the battery is larger than the preset battery electric quantity, setting a first power supply current, and starting the battery to supply power to an external device by the first power supply current until the current electric quantity of the battery is not larger than the preset battery electric quantity;
if the current electric quantity of the battery is not larger than the preset battery electric quantity, stopping the battery to supply power to the peripheral equipment by the first supply current, and after setting a second supply current, charging the battery and starting the battery to supply power to the peripheral equipment by the second supply current until the current electric quantity of the battery is larger than the preset battery electric quantity.
Correspondingly, an embodiment of the present invention further provides a mobile terminal power supply control device, including:
the comparison unit is used for acquiring the current electric quantity of a mobile terminal battery and comparing the current electric quantity of the battery with the preset electric quantity of the battery;
the first power supply unit is used for setting a first power supply current if the current electric quantity of the battery is greater than the preset battery electric quantity, and starting the battery to supply power to an external device by the first power supply current until the current electric quantity of the battery is not greater than the preset battery electric quantity;
and the second power supply unit is used for stopping the battery to supply power to the peripheral equipment by the first power supply current if the current electric quantity of the battery is not greater than the preset battery electric quantity, and charging and starting the battery to supply power to the peripheral equipment by the second power supply current after the second power supply current is set until the current electric quantity of the battery is greater than the preset battery electric quantity.
Optionally, the mobile terminal power supply control device is further configured to:
and setting a state identification value and a time identification value when the battery is charged and started to supply power to the peripheral equipment at the second power supply current.
Optionally, the second power supply unit is further configured to detect a current state value when the mobile terminal changes from an off state to an on state, and compare the current state value with the state identifier value;
and if the current state value is equal to the state identification value, stopping supplying power to the peripheral by the battery with the second power supply current, setting a third power supply current, and starting supplying power to the peripheral by the battery with the third power supply current.
Optionally, the second power supply unit is further configured to obtain a current time, and calculate a difference between the current time and the time identification value;
comparing the difference value with a preset time difference value;
setting the third supply current according to the result of the comparison.
Optionally, the second power supply unit is further configured to set a charging current when the battery stops supplying power to the peripheral with the first power supply current;
if the difference value is smaller than the preset time difference value, setting a first current difference value obtained by subtracting a preset current value from the second power supply current as the third power supply current;
and if the difference is equal to the preset time difference, setting a second current difference obtained by subtracting the charging current from the second supply current as the third supply current.
Optionally, the second power supply unit is further configured to set the second power supply current to be smaller than the first power supply current.
Optionally, the first power supply unit is further configured to stop charging the battery.
Similarly, an embodiment of the present invention further provides a terminal device, including:
a memory for storing an application program;
and the processor is used for realizing the steps of any one of the power supply control methods of the mobile terminal when the application program is executed.
In addition, an embodiment of the present invention further provides a storage medium, where an application program is stored on the storage medium, and the application program, when executed by a processor, implements any one of the steps of the power supply control method for the mobile terminal.
The embodiment of the invention provides a mobile terminal power supply control method, a mobile terminal power supply control device, a terminal device and a storage medium, wherein a preset battery electric quantity is determined by a mobile terminal and is used as a judgment basis for judging whether the current electric quantity of a mobile terminal battery is enough to supply power for a peripheral, if the current electric quantity of the battery is larger than the preset battery electric quantity, the current electric quantity of the mobile terminal battery is more, a larger first power supply current is set, and the battery can be started to supply power for the peripheral by using the first power supply current under the condition that a charging function is not started to store power for the battery, until the current electric quantity of the battery is not larger than the preset battery electric quantity. If the current electric quantity of the battery is not larger than the preset battery electric quantity, the current electric quantity of the battery of the mobile terminal is less, the current electric quantity is insufficient to supply power for the peripheral equipment, the charging function needs to be started to store the electric power for the mobile terminal, the battery is stopped to supply power to the peripheral equipment by using the first supply current, and a smaller second supply current is set until the current electric quantity of the battery is larger than the preset battery electric quantity. The embodiment of the invention can prolong the power supply time of the external equipment under the condition that the battery of the mobile terminal has less electric quantity, avoid the condition that the mobile terminal utilizes large current for power supply in a short time to damage energy storage components such as a battery and the like, and prolong the service life of the energy storage components of the mobile terminal.
Drawings
In order to more clearly illustrate the technical solutions in the embodiments of the present invention, the drawings needed to be used in the description of the embodiments will be briefly introduced below, and it is obvious that the drawings in the following description are only some embodiments of the present invention, and it is obvious for those skilled in the art to obtain other drawings based on these drawings without creative efforts.
Fig. 1 is a schematic view of a scenario in which a mobile terminal controls power supply according to an embodiment of the present invention;
fig. 2 is a flowchart of a power supply control method for a mobile terminal according to an embodiment of the present invention;
fig. 3 is another flowchart of a method for controlling power supply of a mobile terminal according to an embodiment of the present invention;
fig. 4 is a schematic structural diagram of a mobile terminal control power supply device according to an embodiment of the present invention;
fig. 5 is a schematic structural diagram of a terminal according to an embodiment of the present invention.
Detailed Description
The technical solution in the embodiments of the present invention will be clearly and completely described below with reference to the accompanying drawings in the embodiments of the present invention. It is to be understood that the described embodiments are merely exemplary of the invention, and not restrictive of the full scope of the invention. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present invention.
The embodiment of the invention provides a mobile terminal power supply control method and device, terminal equipment and a storage medium. The device can be integrated in a mobile terminal, and the mobile terminal can be a mobile phone, a tablet computer, a notebook computer, an intelligent watch and other equipment.
For example, as shown in fig. 1, a mobile terminal presets a preset battery capacity for determining whether the current capacity of a battery is sufficient to supply power to a peripheral device, when the peripheral device to be charged, such as a tablet computer, is connected to the mobile terminal through a USB interface, the current capacity of the battery is obtained, the current capacity of the battery is compared with the preset battery capacity, if the current capacity of the battery is greater than the preset battery capacity, it is indicated that the current capacity of the battery is large, a first power supply current is set, a function of supplying power to the peripheral device through the battery is started, and the peripheral device connected to the USB interface is supplied with power through the first power supply current until the current capacity of the battery is not greater than the preset battery capacity. If the current electric quantity of the battery is less than the preset battery electric quantity, the current electric quantity of the battery is less, the charging function needs to be started to supplement the electric quantity for the battery of the mobile terminal while the external device supplies power, a second power supply current is set, the function of supplying power to the external device and the charging function are started by the battery, the second power supply current is used for supplying power to the external device connected with the USB interface, the second power supply current is smaller than the first power supply current until the current electric quantity of the battery is larger than the preset battery electric quantity, so that the smaller power supply current is set to supply power to the external device while the battery supplies power, and the charging time of the mobile terminal is prolonged.
The following are detailed below. It should be noted that the following description of the embodiments is not intended to limit the preferred order of the embodiments.
The embodiment will be described in terms of a mobile terminal controlling a power supply device, which may be specifically integrated in a terminal device, where the terminal device may include a notebook computer, a tablet computer, a smart phone, a smart watch, and the like.
As shown in fig. 2, a specific flow of a method for controlling power supply by a mobile terminal is as follows:
step 201, obtaining the current electric quantity of the mobile terminal battery, and comparing the current electric quantity of the battery with the preset electric quantity of the battery.
For example, after the USB interface of the mobile terminal is connected to the external device, the mobile terminal obtains the current electric quantity of the battery of the mobile terminal, and compares the current electric quantity of the battery with the preset electric quantity of the battery, thereby determining whether the current electric quantity of the battery is enough to supply power to the external device connected to the USB interface.
The preset battery electric quantity is a basis for judging whether the current electric quantity of the battery is enough to supply power to the peripheral equipment or not, the preset battery electric quantity is not limited, and can be flexibly set according to actual conditions, for example, the preset battery electric quantity can be 20%, namely the preset battery electric quantity can be 20% of the total electric quantity of the battery of the mobile terminal.
In some embodiments, after the peripheral device is connected to the mobile terminal through the USB interface, the mobile terminal may default to use the USB interface to consume its own battery power to charge the peripheral device, the user may enter a setting function interface of the mobile terminal, and manually set the mobile terminal to stop using the USB interface to consume its own battery power to charge the peripheral device, or set the mobile terminal to use the USB interface to provide other functions, such as functions of sharing a network and/or sharing files, for the peripheral device.
Step 202, if the current electric quantity of the battery is greater than the preset battery electric quantity, setting a first power supply current, and starting the battery to supply power to the external device with the first power supply current until the current electric quantity of the battery is not greater than the preset battery electric quantity.
For example, the mobile terminal compares the current electric quantity of the battery with the preset electric quantity of the battery, if the comparison result shows that the current electric quantity of the battery is larger than the preset electric quantity of the battery, the current electric quantity of the battery of the mobile terminal is larger, the current electric quantity is enough to supply power to a peripheral connected with the mobile terminal through a USB interface, a larger current is set as a first power supply current at the moment, the function of supplying power to the peripheral through the battery is started, and the first power supply current is used for supplying power to the peripheral until the current electric quantity of the battery is not larger than the preset electric quantity of the battery.
The setting of the magnitude of the first supply current is not limited, and can be flexibly set according to actual conditions, for example, 1000 mA.
The peripheral equipment is external equipment connected with the mobile terminal, and can be mobile phones, and/or intelligent watches, and/or intelligent door locks and other equipment.
In some embodiments, if the current electric quantity of the battery is greater than the preset battery electric quantity, the mobile terminal periodically obtains the current electric quantity of the battery, compares the current electric quantity of the battery with the preset battery electric quantity, determines the current electric quantity of the battery and the preset battery electric quantity, continues to use the first power supply current to supply power to an external device connected with the mobile terminal through the USB interface if the current electric quantity of the battery is greater than the preset battery electric quantity, and executes step 203 if the current electric quantity of the battery is not greater than the preset battery electric quantity.
The interval time for the mobile terminal to acquire the current electric quantity of the battery each time is not limited, and can be flexibly set according to actual conditions, and the interval time for the mobile terminal to acquire the current electric quantity of the battery each time can be the same, for example, the interval time for each time is 60 seconds.
In one embodiment, the interval between the two times of acquiring the current power of the battery by the mobile terminal may be different from each other, that is, the mobile terminal may acquire the current power of the battery at any time. The interval time for acquiring the current electric quantity of the battery every two times can be regularly changed, for example, the interval time for acquiring the current electric quantity of the battery every two times by the mobile terminal can be in the form of an arithmetic progression, that is, the mobile terminal acquires the current electric quantity of the battery regularly according to the change rule of the interval time.
In one embodiment, if the current electric quantity of the mobile terminal battery is greater than the preset battery electric quantity, it indicates that the current electric quantity of the mobile terminal battery is large enough to supply power to the peripheral connected with the mobile terminal through the USB interface, and the mobile terminal may turn off the charging function, stop charging the battery, and only start the battery to supply power to the peripheral with the first supply current.
In one embodiment, the current electric quantity of the mobile terminal battery is greater than the preset battery electric quantity, although the current electric quantity of the mobile terminal battery is more and enough to supply power to the peripheral connected with the mobile terminal by using the USB interface, in order to avoid the situation that the electric quantity required by the peripheral connected with the mobile terminal is larger, the mobile terminal charges the peripheral by using a larger current in a short time, so that the battery electric quantity of the mobile terminal is sharply reduced, and the situations that the mobile terminal is shut down or the battery is damaged are caused, the mobile terminal can start a charging function, and the battery is charged under the situation that the peripheral is supplied with power by using the first supply current.
Step 203, if the current electric quantity of the battery is not greater than the preset battery electric quantity, stopping the battery from supplying power to the external device by the first power supply current, after setting the second power supply current, charging the battery and starting the battery to supply power to the external device by the second power supply current until the current electric quantity of the battery is greater than the preset battery electric quantity.
For example, the mobile terminal compares the current electric quantity of the battery with the preset electric quantity of the battery, if the comparison result shows that the current electric quantity of the battery is not larger than the preset electric quantity of the battery, the current electric quantity of the battery of the mobile terminal is less and is not enough for supplying power to an external device connected with the mobile terminal by using the USB interface, at the moment, the battery is stopped to supply power to the external device by using the first supply current, a smaller current is set as a second supply current, the function of supplying power to the external device by using the battery and the charging function are started, the external device is supplied with power by using the second supply current, and the battery is charged at the.
The setting of the magnitude of the second supply current is not limited, and can be flexibly set according to actual conditions, for example, 200 mA.
In some embodiments, the power of the battery for supplying power to the peripheral at the second power supply current is less than the power of the battery for supplying power to the peripheral at the first power supply current, and the second power supply current is set to be less than the first power supply current in order to prolong the time for which the battery of the mobile terminal supplies power to the peripheral.
In some embodiments, the mobile terminal sets the state identification value and the time identification value when the battery is charged and the battery is started to supply power to the peripheral at the second supply current.
The state identification value is used for identifying the state of the mobile terminal when the mobile terminal supplies power for the peripheral, the setting of the state identification value is not limited, and the state identification value can be flexibly set according to actual conditions, for example, the state identification value can be 1.
The time identification value is used for identifying the specific time when the mobile terminal supplies power to the external device by the second power supply current.
In one embodiment, when the current electric quantity of the mobile terminal battery is not greater than the battery electric quantity, it indicates that the current electric quantity of the mobile terminal battery is less, so that after the mobile terminal sets the second power supply current, the mobile terminal sets the charging current to charge the battery, and starts the battery to supply power to the external device with the second power supply current.
In some embodiments, when the current electric quantity of the mobile terminal battery is not greater than the electric quantity of the battery, it indicates that the current electric quantity of the mobile terminal battery is less, so that after the mobile terminal sets the second supply current, the mobile terminal sets the charging current to charge the battery, and starts the battery to supply power to the peripheral device with the second supply current.
In one embodiment, the mobile terminal supplies power to the peripheral device at a second supply current, and while charging the battery with the charging current, if the charging current is less than the supply current, or the mobile terminal supplies power to the peripheral equipment at a certain moment by using a larger current, so that the electric quantity of the battery of the mobile terminal is sharply reduced, thereby causing the mobile terminal to be in a closed state, stopping charging the peripheral equipment by the second power supply current, charging the battery only by the charging current, when the battery power reaches a certain level, the mobile terminal is changed from the off state to the on state, the current state value is detected, the current state value is compared with the state identification value, if the current state value is equal to the state identification value, the mobile terminal is indicated to be in a state of supplying power for the peripheral equipment at present, at the moment, the battery is stopped to supply power to the peripheral equipment by using the second power supply current, a third power supply current is set, and the battery is started to supply power to the peripheral equipment by using the third power supply current.
In some embodiments, when the third supply current is set, the current time may be obtained, a difference between the current time and the time identification value may be calculated, the difference may be compared with a preset time difference, and the third supply current may be set according to the comparison result.
The preset time difference value comprises two parts, the first part is the time spent on reducing the battery power to zero when the mobile terminal starts to supply power to the peripheral with the second power supply current, and the second part is the time spent on increasing the battery power of the mobile terminal from zero to detecting the battery power of the current state value, so the preset time difference value can be set according to the time sum of the two parts.
Similarly, the difference between the current time and the time stamp value also includes the time taken for the same two-part power change process described above. The difference value between the current time and the time identification value is less than or equal to the preset time difference value.
In one embodiment, if the difference between the current time and the time identification value is smaller than the preset time difference, indicating that the battery has not emptied in the last power supply, the first current difference obtained by subtracting the preset current value from the second power supply current is set as the third power supply current. The supply current is reduced, thereby allowing the battery to drain.
The preset current value is not limited, and can be flexibly set according to actual conditions, for example, 20 mA.
In one embodiment, if the difference between the current time and the time identification value is equal to the preset time difference, indicating that the battery is empty when the battery is supplied last time, a second current difference obtained by subtracting the charging current from the second supply current is set as the third supply current.
The power supply control method of the mobile terminal according to the above embodiments will be described in further detail below.
Referring to fig. 3, fig. 3 is another schematic flow chart of a power supply control method of a mobile terminal according to an embodiment of the present application. The mobile terminal power supply control method may be applied to a mobile terminal, as shown in fig. 3, the flow of the mobile terminal power supply control method may be as follows:
step 301, confirming the connection of the peripheral.
For example, the mobile terminal confirms that the peripheral device is connected by using a USB interface or the like, and the user does not manually turn off the mobile terminal to supply power to the peripheral device, and the mobile terminal supplies power to the peripheral device by default.
Step 302, obtaining the current electric quantity of the battery of the mobile terminal, and comparing the current electric quantity of the battery with the preset electric quantity of the battery.
For example, the mobile terminal presets a preset battery power for judging whether the current power of the battery is enough to supply power to the peripheral, and obtains the current power of the battery to compare with the preset battery power.
Step 303, determining that the current electric quantity of the battery is greater than the preset electric quantity of the battery, setting a first power supply current, and starting the battery to supply power to the external device by the first power supply current.
For example, if the comparison result indicates that the current electric quantity of the battery is greater than the preset battery electric quantity, it indicates that the current electric quantity of the battery of the mobile terminal is large enough to supply power to the peripheral connected with the mobile terminal by using the USB interface, and at this time, a large current is set as a first supply current to supply power to the peripheral by using the first supply current.
And step 304, judging whether the current electric quantity of the battery is larger than the preset battery electric quantity.
For example, if yes, the process returns to step 303, and the mobile terminal continues to supply power to the peripheral device with the first power supply current. If not, go to step 305.
And 305, stopping supplying power to the peripheral equipment by the battery at the first power supply current, and after setting the second power supply current, charging the battery and starting the battery to supply power to the peripheral equipment at the second power supply current.
Step 306, determining whether the current electric quantity of the battery is greater than the preset battery electric quantity.
For example, if yes, the process returns to step 303, and if no, step 307 is executed.
And 307, judging whether the mobile terminal is in a closed state.
For example, if yes, the power supply to the peripheral device with the second power supply current is stopped, and the battery is charged with the charging current until the mobile terminal changes from the off state to the on state, and step 308 is executed. If not, the process returns to step 305.
And 308, when the mobile terminal is changed from the closed state to the open state, detecting the current state value, and comparing the current state value with the state identification value.
For example, the state identification value is set when the battery is charged and started to supply power to the peripheral at the second supply current.
And 309, if the current state value is equal to the state identification value, stopping supplying power to the peripheral equipment by the battery with a second power supply current.
Step 310, obtaining the current time, and calculating the difference between the current time and the time identification value.
For example, the time identification value is set when the battery is charged and started to supply power to the peripheral at the second supply current.
And 311, if the difference is smaller than the preset time difference, setting a first current difference obtained by subtracting the preset current value from the second power supply current as a third power supply current, and supplying power to the external equipment by using the third power supply current.
And step 312, if the difference is equal to the preset time difference, setting a second current difference obtained by subtracting the charging current from the second supply current as a third supply current, and supplying power to the external equipment by using the third supply current.
The mobile terminal power supply control method provided by the embodiment of the invention is used for determining the preset battery electric quantity as a judgment basis for judging whether the current electric quantity of the mobile terminal battery is enough to supply power to the peripheral equipment, if the current electric quantity of the battery is larger than the preset battery electric quantity, the current electric quantity of the mobile terminal battery is more, a larger first power supply current is set, and the battery can be started to supply power to the peripheral equipment by using the first power supply current under the condition that the charging function is not started to store power for the battery, until the current electric quantity of the battery is not larger than the preset battery electric quantity. If the current electric quantity of the battery is not larger than the preset battery electric quantity, the current electric quantity of the battery of the mobile terminal is less, the current electric quantity is insufficient to supply power for the peripheral equipment, the charging function needs to be started to store the electric power for the mobile terminal, the battery is stopped to supply power to the peripheral equipment by using the first supply current, and a smaller second supply current is set until the current electric quantity of the battery is larger than the preset battery electric quantity. The embodiment of the invention can prolong the power supply time of the external equipment under the condition that the battery of the mobile terminal has less electric quantity, avoid the condition that the mobile terminal utilizes large current for power supply in a short time to damage energy storage components such as a battery and the like, and prolong the service life of the energy storage components of the mobile terminal.
In order to better implement the above method, an embodiment of the present invention may further provide a mobile terminal power supply control apparatus, where the mobile terminal power supply control apparatus may be specifically integrated in a network device, and the network device may be a mobile terminal or another device.
For example, as shown in fig. 4, the mobile terminal power supply control device may include: the comparison unit 401, the first power supply unit 402, and the second power supply unit 403 are as follows:
the comparison unit 401 is configured to obtain a current electric quantity of a battery of the mobile terminal, and compare the current electric quantity of the battery with a preset electric quantity of the battery;
a first power supply unit 402, configured to set a first power supply current if the current power amount of the battery is greater than the preset battery power amount, and start the battery to supply power to an external device with the first power supply current until the current power amount of the battery is not greater than the preset battery power amount;
a second power supply unit 403, configured to stop the battery supplying power to the peripheral device with the first power supply current if the current electric quantity of the battery is not greater than the preset battery electric quantity, charge the battery and start the battery supplying power to the peripheral device with the second power supply current after setting a second power supply current until the current electric quantity of the battery is greater than the preset battery electric quantity.
Optionally, the mobile terminal power supply control device is further configured to:
and setting a state identification value and a time identification value when the battery is charged and started to supply power to the peripheral equipment at the second power supply current.
Optionally, the second power supply unit 403 is further configured to detect a current state value when the mobile terminal changes from an off state to an on state, and compare the current state value with the state identifier value;
and if the current state value is equal to the state identification value, stopping supplying power to the peripheral by the battery with the second power supply current, setting a third power supply current, and starting supplying power to the peripheral by the battery with the third power supply current.
Optionally, the second power supply unit 403 is further configured to obtain a current time, and calculate a difference between the current time and the time identifier value;
comparing the difference value with a preset time difference value;
setting the third supply current according to the result of the comparison.
Optionally, the second power supply unit 403 is further configured to set a charging current when the battery stops supplying power to the peripheral at the first power supply current;
if the difference value is smaller than the preset time difference value, setting a first current difference value obtained by subtracting a preset current value from the second power supply current as the third power supply current;
and if the difference is equal to the preset time difference, setting a second current difference obtained by subtracting the charging current from the second supply current as the third supply current.
Optionally, the second power supply unit 403 is further configured to set the second power supply current to be smaller than the first power supply current.
Optionally, the first power supply unit 402 is further configured to stop charging the battery.
The mobile terminal power supply control device provided in the embodiment of the present invention obtains the current power of a mobile terminal battery through a comparison unit 401, compares the current power of the battery with the preset battery power, then, determines through a first power supply unit 402 that if the current power of the battery is greater than the preset battery power, a first power supply current is set, starts the battery to supply power to an external device with the first power supply current until the current power of the battery is not greater than the preset battery power, and finally, determines through a second power supply unit 403 that if the current power of the battery is not greater than the preset battery power, stops the battery from supplying power to the external device with the first power supply current, after setting a second power supply current, charges the battery and starts the battery to supply power to the external device with the second power supply current until the current power of the battery is greater than the preset battery power, the power supply time of the external equipment can be prolonged under the condition that the battery power of the mobile terminal is less, the condition that the mobile terminal is powered by large current in a short time to damage energy storage components such as a battery is avoided, and the service life of the energy storage components of the mobile terminal is prolonged.
Accordingly, an embodiment of the present invention further provides a terminal, as shown in fig. 5, the terminal may include a Radio Frequency (RF) circuit 501, a memory 502 including one or more computer-readable storage media, an input unit 503, a display unit 504, a sensor 505, an audio circuit 506, a Wireless Fidelity (WiFi) module 507, a processor 508 including one or more processing cores, and a power supply 509. Those skilled in the art will appreciate that the terminal structure shown in fig. 5 is not intended to be limiting and may include more or fewer components than those shown, or some components may be combined, or a different arrangement of components. Wherein:
the RF circuit 501 may be used for receiving and transmitting signals during information transmission and reception or during a call, and in particular, for receiving downlink information of a base station and then sending the received downlink information to the one or more processors 508 for processing; in addition, data relating to uplink is transmitted to the base station. In general, RF circuit 501 includes, but is not limited to, an antenna, at least one Amplifier, a tuner, one or more oscillators, a Subscriber Identity Module (SIM) card, a transceiver, a coupler, a Low Noise Amplifier (LNA), a duplexer, and the like. In addition, the RF circuitry 501 may also communicate with networks and other devices via wireless communications. The wireless communication may use any communication standard or protocol, including but not limited to Global System for Mobile communications (GSM), General Packet Radio Service (GPRS), Code Division Multiple Access (CDMA), Wideband Code Division Multiple Access (WCDMA), Long Term Evolution (LTE), email, Short Message Service (SMS), and the like.
The memory 502 may be used to store software programs and modules, and the processor 508 executes various functional applications and data processing by operating the software programs and modules stored in the memory 502. The memory 502 may mainly include a program storage area and a data storage area, wherein the program storage area may store an operating system, an application program required by at least one function (such as a sound playing function, an image playing function, etc.), and the like; the storage data area may store data (such as audio data, a phonebook, etc.) created according to the use of the terminal, etc. Further, the memory 502 may include high speed random access memory, and may also include non-volatile memory, such as at least one magnetic disk storage device, flash memory device, or other volatile solid state storage device. Accordingly, the memory 502 may also include a memory controller to provide the processor 508 and the input unit 503 access to the memory 502.
The input unit 503 may be used to receive input numeric or character information and generate keyboard, mouse, joystick, optical or trackball signal inputs related to user settings and function control. In particular, in one particular embodiment, the input unit 503 may include a touch-sensitive surface as well as other input devices. The touch-sensitive surface, also referred to as a touch display screen or a touch pad, may collect touch operations by a user (e.g., operations by a user on or near the touch-sensitive surface using a finger, a stylus, or any other suitable object or attachment) thereon or nearby, and drive the corresponding connection device according to a predetermined program. Alternatively, the touch sensitive surface may comprise two parts, a touch detection means and a touch controller. The touch detection device detects the touch direction 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 sensing device, converts the touch information into touch point coordinates, sends the touch point coordinates to the processor 508, and can receive and execute commands sent by the processor 508. In addition, touch sensitive surfaces may be implemented using various types of resistive, capacitive, infrared, and surface acoustic waves. The input unit 503 may include other input devices in addition to the touch-sensitive surface. In particular, other input devices may include, but are not limited to, one or more of a physical keyboard, function keys (such as volume control keys, switch keys, etc.), a trackball, a mouse, a joystick, and the like.
The display unit 504 may be used to display information input by or provided to the user and various graphical user interfaces of the terminal, which may be made up of graphics, text, icons, video, and any combination thereof. The Display unit 504 may include a Display panel, and optionally, the Display panel may be configured in the form of a Liquid Crystal Display (LCD), an Organic Light-Emitting Diode (OLED), or the like. Further, the touch-sensitive surface may overlay the display panel, and when a touch operation is detected on or near the touch-sensitive surface, the touch operation is transmitted to the processor 508 to determine the type of touch event, and then the processor 508 provides a corresponding visual output on the display panel according to the type of touch event. Although in FIG. 5 the touch-sensitive surface and the display panel are two separate components to implement input and output functions, in some embodiments the touch-sensitive surface may be integrated with the display panel to implement input and output functions.
The terminal may also include at least one sensor 505, such as light sensors, motion sensors, and other sensors. Specifically, the light sensor may include an ambient light sensor that may adjust the brightness of the display panel according to the brightness of ambient light, and a proximity sensor that may turn off the display panel and/or the backlight when the terminal is moved to the ear. As one of the motion sensors, the gravity acceleration sensor can detect the magnitude of acceleration in each direction (generally, three axes), can detect the magnitude and direction of gravity when the mobile phone is stationary, and can be used for applications of recognizing the posture of the mobile phone (such as horizontal and vertical screen switching, related games, magnetometer posture calibration), vibration recognition related functions (such as pedometer and tapping), and the like; as for other sensors such as a gyroscope, a barometer, a hygrometer, a thermometer, and an infrared sensor, which can be configured in the terminal, detailed description is omitted here.
Audio circuitry 506, a speaker, and a microphone may provide an audio interface between the user and the terminal. The audio circuit 506 may transmit the electrical signal converted from the received audio data to a speaker, and convert the electrical signal into a sound signal for output; on the other hand, the microphone converts the collected sound signal into an electric signal, which is received by the audio circuit 506 and converted into audio data, which is then processed by the audio data output processor 508, and then transmitted to, for example, another terminal via the RF circuit 501, or the audio data is output to the memory 502 for further processing. The audio circuit 506 may also include an earbud jack to provide communication of peripheral headphones with the terminal.
WiFi belongs to short-distance wireless transmission technology, and the terminal can help a user to receive and send e-mails, browse webpages, access streaming media and the like through the WiFi module 507, and provides wireless broadband internet access for the user. Although fig. 5 shows the WiFi module 507, it is understood that it does not belong to the essential constitution of the terminal, and may be omitted entirely as needed within the scope not changing the essence of the invention.
The processor 508 is a control center of the terminal, connects various parts of the entire mobile phone by using various interfaces and lines, and performs various functions of the terminal and processes data by operating or executing software programs and/or modules stored in the memory 502 and calling data stored in the memory 502, thereby integrally monitoring the mobile phone. Optionally, processor 508 may include one or more processing cores; preferably, the processor 508 may integrate an application processor, which primarily handles operating systems, user interfaces, application programs, etc., and a modem processor, which primarily handles wireless communications. It will be appreciated that the modem processor described above may not be integrated into the processor 508.
The terminal also includes a power supply 509 (e.g., a battery) for powering the various components, which may preferably be logically connected to the processor 508 via a power management system that may be used to manage charging, discharging, and power consumption. The power supply 509 may also include any component such as one or more dc or ac power sources, recharging systems, power failure detection circuitry, power converters or inverters, power status indicators, and the like.
Although not shown, the terminal may further include a camera, a bluetooth module, and the like, which will not be described herein. Specifically, in this embodiment, the processor 508 in the terminal loads the executable file corresponding to the process of one or more application programs into the memory 502 according to the following instructions, and the processor 508 runs the application programs stored in the memory 502, thereby implementing various functions: acquiring the current electric quantity of a mobile terminal battery, and comparing the current electric quantity of the battery with the preset electric quantity of the battery; if the current electric quantity of the battery is larger than the preset battery electric quantity, setting a first power supply current, and starting the battery to supply power to the external device by using the first power supply current until the current electric quantity of the battery is not larger than the preset battery electric quantity; and if the current electric quantity of the battery is not larger than the electric quantity of the battery, stopping the power supply of the battery to the external equipment by using the first power supply current, charging the battery and starting the power supply of the battery to the external equipment by using the second power supply current after the second power supply current is set until the current electric quantity of the battery is larger than the electric quantity of the battery.
Wherein the storage medium may include: read Only Memory (ROM), Random Access Memory (RAM), magnetic or optical disks, and the like.
Since the computer program stored in the storage medium can execute the steps in any of the mobile terminal power supply control methods provided in the embodiments of the present invention, the beneficial effects that can be achieved by any of the mobile terminal power supply control methods provided in the embodiments of the present invention can be achieved, which are detailed in the foregoing embodiments and will not be described again here.
In the foregoing embodiments, the descriptions of the respective embodiments have respective emphasis, and for parts that are not described in detail in a certain embodiment, reference may be made to related descriptions of other embodiments.
The mobile terminal power supply control method, the mobile terminal power supply control device, the mobile terminal device and the storage medium provided by the embodiment of the invention are introduced in detail, a specific example is applied in the text to explain the principle and the implementation mode of the invention, and the description of the embodiment is only used for helping to understand the technical scheme and the core idea of the invention; those of ordinary skill in the art will understand that: the technical solutions described in the foregoing embodiments may still be modified, or some technical features may be equivalently replaced; and such modifications or substitutions do not depart from the spirit and scope of the corresponding technical solutions of the embodiments of the present invention.

Claims (10)

1. A power supply control method for a mobile terminal is characterized by comprising the following steps:
acquiring the current electric quantity of a mobile terminal battery, and comparing the current electric quantity of the battery with the preset electric quantity of the battery;
if the current electric quantity of the battery is larger than the preset battery electric quantity, setting a first power supply current, and starting the battery to supply power to an external device by the first power supply current until the current electric quantity of the battery is not larger than the preset battery electric quantity;
if the current electric quantity of the battery is not larger than the preset battery electric quantity, stopping the battery to supply power to the peripheral equipment by the first supply current, and after setting a second supply current, charging the battery and starting the battery to supply power to the peripheral equipment by the second supply current until the current electric quantity of the battery is larger than the preset battery electric quantity.
2. The method of claim 1, further comprising:
and setting a state identification value and a time identification value when the battery is charged and started to supply power to the peripheral equipment at the second power supply current.
3. The method of claim 2, further comprising:
when the mobile terminal is changed from a closed state to an open state, detecting a current state value, and comparing the current state value with the state identification value;
and if the current state value is equal to the state identification value, stopping supplying power to the peripheral by the battery with the second power supply current, setting a third power supply current, and starting supplying power to the peripheral by the battery with the third power supply current.
4. The method of claim 3, wherein setting the third supply current comprises:
acquiring current time, and calculating the difference value between the current time and the time identification value;
comparing the difference value with a preset time difference value;
setting the third supply current according to the result of the comparison.
5. The method of claim 4, further comprising:
setting a charging current when the battery stops supplying power to the peripheral equipment at the first power supply current;
said setting said third supply current in dependence on a result of said comparing, comprising:
if the difference value is smaller than the preset time difference value, setting a first current difference value obtained by subtracting a preset current value from the second power supply current as the third power supply current;
and if the difference is equal to the preset time difference, setting a second current difference obtained by subtracting the charging current from the second supply current as the third supply current.
6. The method of claim 1, further comprising:
setting the second supply current to be less than the first supply current.
7. The method of claim 1, wherein the activating the battery to power the peripheral device at the first supply current further comprises:
stopping charging the battery.
8. A mobile terminal power supply control device, comprising:
the comparison unit is used for acquiring the current electric quantity of a mobile terminal battery and comparing the current electric quantity of the battery with the preset electric quantity of the battery;
the first power supply unit is used for setting a first power supply current if the current electric quantity of the battery is greater than the preset battery electric quantity, and starting the battery to supply power to an external device by the first power supply current until the current electric quantity of the battery is not greater than the preset battery electric quantity;
and the second power supply unit is used for stopping the battery to supply power to the peripheral equipment by the first power supply current if the current electric quantity of the battery is not greater than the preset battery electric quantity, and charging and starting the battery to supply power to the peripheral equipment by the second power supply current after the second power supply current is set until the current electric quantity of the battery is greater than the preset battery electric quantity.
9. A terminal device, comprising:
a memory for storing an application program;
a processor for implementing the steps in the mobile terminal power supply control method according to any one of claims 1 to 7 when executing the application program.
10. A storage medium having an application program stored thereon, wherein the application program, when executed by a processor, implements the steps of the power supply control method for a mobile terminal according to any one of claims 1 to 7.
CN202011345709.7A 2020-11-26 2020-11-26 Mobile terminal power supply control method and device, terminal equipment and storage medium Active CN112542867B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202011345709.7A CN112542867B (en) 2020-11-26 2020-11-26 Mobile terminal power supply control method and device, terminal equipment and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202011345709.7A CN112542867B (en) 2020-11-26 2020-11-26 Mobile terminal power supply control method and device, terminal equipment and storage medium

Publications (2)

Publication Number Publication Date
CN112542867A true CN112542867A (en) 2021-03-23
CN112542867B CN112542867B (en) 2024-02-02

Family

ID=75016508

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202011345709.7A Active CN112542867B (en) 2020-11-26 2020-11-26 Mobile terminal power supply control method and device, terminal equipment and storage medium

Country Status (1)

Country Link
CN (1) CN112542867B (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113555935A (en) * 2021-07-23 2021-10-26 歌尔光学科技有限公司 Terminal equipment and battery power supply control method and device thereof

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104849669A (en) * 2015-04-17 2015-08-19 惠州Tcl移动通信有限公司 Discharging method and system of non-removable battery of mobile terminal
CN106685048A (en) * 2017-01-24 2017-05-17 努比亚技术有限公司 Charging method and terminal
US20170223180A1 (en) * 2014-10-15 2017-08-03 Nubia Technology Co., Ltd. Method for managing electric quantity of battery, mobile terminal and computer storage medium
CN109301911A (en) * 2018-11-30 2019-02-01 努比亚技术有限公司 Charging method, mobile terminal and computer readable storage medium
CN110429678A (en) * 2019-08-05 2019-11-08 惠州Tcl移动通信有限公司 Mobile terminal method of supplying power to, system, storage medium and mobile terminal
CN111142028A (en) * 2020-02-20 2020-05-12 广东天波信息技术股份有限公司 Method and device for measuring electric quantity of lithium battery

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20170223180A1 (en) * 2014-10-15 2017-08-03 Nubia Technology Co., Ltd. Method for managing electric quantity of battery, mobile terminal and computer storage medium
CN104849669A (en) * 2015-04-17 2015-08-19 惠州Tcl移动通信有限公司 Discharging method and system of non-removable battery of mobile terminal
CN106685048A (en) * 2017-01-24 2017-05-17 努比亚技术有限公司 Charging method and terminal
CN109301911A (en) * 2018-11-30 2019-02-01 努比亚技术有限公司 Charging method, mobile terminal and computer readable storage medium
CN110429678A (en) * 2019-08-05 2019-11-08 惠州Tcl移动通信有限公司 Mobile terminal method of supplying power to, system, storage medium and mobile terminal
CN111142028A (en) * 2020-02-20 2020-05-12 广东天波信息技术股份有限公司 Method and device for measuring electric quantity of lithium battery

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113555935A (en) * 2021-07-23 2021-10-26 歌尔光学科技有限公司 Terminal equipment and battery power supply control method and device thereof

Also Published As

Publication number Publication date
CN112542867B (en) 2024-02-02

Similar Documents

Publication Publication Date Title
CN106786962B (en) Charging control method and device and terminal
CN106655381B (en) Wireless charging method and device
CN109217409B (en) Charging method and device and electronic equipment
CN106532876B (en) Power supply control method and device and computer equipment
CN107635277B (en) Power saving management method of terminal equipment of Internet of things and terminal equipment of Internet of things
CN112542867B (en) Mobile terminal power supply control method and device, terminal equipment and storage medium
CN111404242A (en) Charging method, charging device, storage medium and mobile terminal
CN110688339A (en) Data transmission method and device, mobile terminal and storage medium
CN106155733B (en) Method and device for running application program
CN109672242B (en) Terminal charging control method and device and storage medium
CN112261634A (en) Bluetooth transmission control method, device, terminal equipment and storage medium
CN111984107B (en) Method and device for processing power supply abnormity of terminal equipment
CN111966206A (en) Power-saving control method and device for fingerprint sensor and mobile terminal
CN112286849A (en) Wireless charging base data switching method and system, storage medium and terminal equipment
CN106921793B (en) information prompting method and device and mobile terminal
CN111343325B (en) Port detection method and device, mobile terminal and storage medium
CN111654578B (en) Mobile terminal sensor restoration method
CN110891304B (en) gPS power consumption control method for mobile terminal
CN109445566B (en) OTG (on-the-go) power-saving processing method and system, storage medium and mobile terminal
CN111384754B (en) Charging method, charging device, storage medium and mobile terminal
CN109561415B (en) NFC function detection method and device, storage medium and mobile terminal
CN111987764B (en) Discharge control method and device, storage medium and mobile terminal
CN110784001A (en) Charging method, charging device, storage medium and electronic equipment
CN109995441B (en) Communication information processing method, device and storage medium
CN111614839B (en) Antenna self-adaptive control method and device

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
TA01 Transfer of patent application right
TA01 Transfer of patent application right

Effective date of registration: 20240108

Address after: 6th Floor, Liuxiang Commercial Building, No. 39 Shitan South Road, Songzhou Street, Baiyun District, Guangzhou City, Guangdong Province, 510080

Applicant after: Guangzhou Sanyi Electronics Co.,Ltd.

Address before: 516006 Zhongkai hi tech Zone, Huizhou, Guangdong, 86 Chang seven Road West

Applicant before: HUIZHOU TCL MOBILE COMMUNICATION Co.,Ltd.

GR01 Patent grant
GR01 Patent grant