CN112542867B - 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
CN112542867B
CN112542867B CN202011345709.7A CN202011345709A CN112542867B CN 112542867 B CN112542867 B CN 112542867B CN 202011345709 A CN202011345709 A CN 202011345709A CN 112542867 B CN112542867 B CN 112542867B
Authority
CN
China
Prior art keywords
battery
current
power supply
electric quantity
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.)
Active
Application number
CN202011345709.7A
Other languages
Chinese (zh)
Other versions
CN112542867A (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
Guangzhou Sanyi Electronics 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 Guangzhou Sanyi Electronics Co ltd filed Critical Guangzhou Sanyi Electronics 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

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

Landscapes

  • Engineering & Computer Science (AREA)
  • Power Engineering (AREA)
  • Manufacturing & Machinery (AREA)
  • Chemical & Material Sciences (AREA)
  • Chemical Kinetics & Catalysis (AREA)
  • Electrochemistry (AREA)
  • General Chemical & Material Sciences (AREA)
  • Charge And Discharge Circuits For Batteries Or The Like (AREA)

Abstract

The embodiment of the invention discloses a mobile terminal power supply control method, a device, terminal equipment and a storage medium, wherein the current electric quantity of a mobile terminal battery is obtained, and the current electric quantity of the battery is compared with the preset battery electric quantity; 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 outside 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 more than the preset battery electric quantity, stopping the battery to supply power to the outside by the first power supply current, after the second power supply current is set, charging the battery and starting the battery to supply power to the peripheral equipment by the second power supply current until the current electric quantity of the battery is more than the preset battery electric quantity, prolonging the power supply time for the external equipment, and avoiding the situation that the mobile terminal utilizes the high current to supply power in a short time to damage energy storage components such as the battery.

Description

Mobile terminal power supply control method and device, terminal equipment and storage medium
Technical Field
The present invention relates to the field of mobile communications technologies, and in particular, to a mobile terminal power supply control method, a device, a terminal device, and a storage medium.
Background
With development of technology, functions and applications of mobile terminals are becoming more and more widespread, and generally, the mobile terminals are all provided with USB interfaces. The USB (Universal Serial Bus ) is a serial bus standard, and is also a technical specification of an input/output interface, and is widely applied to information communication products such as mobile devices, where the mobile terminal may be externally connected to other terminal devices through the USB interface, and power the devices connected to the USB interface and perform common operations such as file copying. As long as the mobile terminal is connected with the external device by using the USB interface, if the external device has a component capable of storing energy, the mobile terminal will automatically supply power to the external device. If the mobile terminal provides a greater current to the external device than the external device actually consumes, the excess current will charge the energy storing means of the external device until the energy storing means is fully charged. In the research and practice process of the prior art, the inventor of the present invention finds that, under the condition that the electric quantity of the mobile terminal is not much, if larger current is still used for supplying power to an external device connected by using the USB interface, the battery of the mobile terminal is damaged.
Disclosure of Invention
The embodiment of the invention provides a mobile terminal power supply control method, a device, a terminal device and a storage medium.
The embodiment of the invention provides a mobile terminal control power supply method, which comprises the following steps:
acquiring the current electric quantity of a battery of the mobile terminal, 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 peripheral equipment by 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 greater than the preset battery electric quantity, stopping the battery to supply power to the peripheral equipment 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 peripheral equipment by the second power supply current until the current electric quantity of the battery is greater than the preset battery electric quantity.
Correspondingly, the embodiment of the invention also provides a mobile terminal power supply control device, which comprises:
the comparison unit is used for acquiring 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;
the first power supply unit is used for setting a first power supply current if the current electric quantity of the battery is larger than the preset battery electric quantity, and starting the battery to supply power to the peripheral equipment by the first power supply current until the current electric quantity of the battery is not larger 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 more than the preset battery electric quantity, and charging the battery 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 more than the preset battery electric quantity.
Optionally, the mobile terminal power supply control device is further configured to:
the state identification value and the time identification value are set when the battery is charged and started to supply power to the peripheral device 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 identification value;
and if the current state value is equal to the state identification value, stopping the battery to supply power to the peripheral equipment by the second power supply current, setting a third power supply current, and starting the battery to supply power to the peripheral equipment by the third power supply current.
Optionally, the second power supply unit is further configured to obtain a current time, and calculate a 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.
Optionally, the second power supply unit is further configured to set a charging current when the battery is stopped to supply power to the peripheral device 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 value is equal to the preset time difference value, setting a second current difference value 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 smaller than the first power supply current.
Optionally, the first power supply unit is further configured to stop charging the battery.
Also, 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 any step of a mobile terminal power supply control method when the application program is executed.
In addition, the embodiment of the invention also provides a storage medium, wherein an application program is stored on the storage medium, and the application program realizes any step of the mobile terminal power supply control method when being executed by a processor.
The embodiment of the invention provides a mobile terminal power supply control method, a device, a terminal device and a storage medium, wherein the mobile terminal determines a preset battery power as a judging basis for judging whether the current power of a battery of the mobile terminal is enough for peripheral power supply, if the current power of the battery is larger than the preset battery power, the current power of the battery of the mobile terminal is larger, a larger first power supply current is set, and the battery can be started to supply power by taking the first power supply current as the peripheral power under the condition that a charging function is not started for self power storage until the current power of the battery is not larger than the preset battery power. If the current electric quantity of the battery is not more than the preset battery electric quantity, the current electric quantity of the battery of the mobile terminal is less and insufficient to supply power to the peripheral equipment, a charging function is required to be started to store power for the peripheral equipment, the battery is stopped to supply power to the outside through a first power supply current, and a smaller second power supply current is set until the current electric quantity of the battery is more than the preset battery electric quantity. According to the embodiment of the invention, the power supply time for external equipment can be prolonged under the condition that the battery capacity of the mobile terminal is low, the situation that the mobile terminal is powered by large current in a short time to damage energy storage components such as a battery and the like is avoided, and the service life of the energy storage components of the mobile terminal is prolonged.
Drawings
In order to more clearly illustrate the technical solutions of the embodiments of the present invention, the drawings that are needed in the description of the embodiments will be briefly described below, it being obvious that the drawings in the following description are only some embodiments of the present invention, and that other drawings may be obtained according to these drawings without inventive effort for a person skilled in the art.
Fig. 1 is a schematic diagram 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 method for controlling power supply of 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 solutions in the embodiments of the present invention will be clearly and completely described below with reference to the accompanying drawings in the embodiments of the present invention. It will be apparent that the described embodiments are only some, but not all, embodiments of the invention. All other embodiments, which can be made by those skilled in the art based on the embodiments of the invention without making any inventive effort, are intended to fall within the scope of the invention.
The embodiment of the invention provides a mobile terminal power supply control method, a mobile terminal power supply control 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, a smart watch and other devices.
For example, as shown in fig. 1, the mobile terminal sets up the preset battery power for judging whether the current power of the battery is enough for the peripheral device to supply power, when the peripheral device to be charged, such as a tablet computer, is connected with the mobile terminal by using the USB interface, the current power of the battery is obtained, the current power of the battery is compared with the preset battery power, if the current power of the battery is greater than the preset battery power, the current power of the battery is more, a first power supply current is set, the function of supplying power to the peripheral device by using the first power supply current is started, and the peripheral device connected with the USB interface supplies power until the current power of the battery is not greater than the preset battery power. If the current electric quantity of the battery is smaller than the preset battery electric quantity, the current electric quantity of the battery is smaller, the charging function is started to supplement the electric quantity for the battery of the battery when the power supply is externally arranged, the second power supply current is set, the battery is started to supply power to the peripheral equipment, the charging function is started, the second power supply current is used for supplying power to the peripheral equipment 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, the smaller power supply current is set to supply power to the peripheral equipment when the power supply is performed, and the charging time of the mobile terminal is prolonged.
The following will describe in detail. The following description of the embodiments is not intended to limit the preferred embodiments.
The present embodiment will be described from the perspective of a mobile terminal control power supply device, which may be specifically integrated in a terminal device, and 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 of a mobile terminal is as follows:
step 201, obtaining the current electric quantity of a battery of the mobile terminal, 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 its battery, and compares the current electric quantity of the battery with the preset electric quantity of the battery, so as to determine whether the current electric quantity of the battery is sufficient to supply power to the peripheral device of the USB interface.
The preset battery power is a preset basis of the mobile terminal for judging whether the current power of the battery is enough to supply power to the peripheral, the setting of the preset battery power is not limited, and the preset battery power can be flexibly set according to practical situations, for example, the preset battery power can be 20%, that is, the preset battery power can be 20% of the total power of the battery of the mobile terminal.
In some embodiments, after the peripheral is connected to the mobile terminal by using the USB interface, the mobile terminal may default to consume its battery power to charge the peripheral by using the USB interface, and the user may enter a function setting interface of the mobile terminal to manually set the mobile terminal to stop consuming its battery power to charge the peripheral by using the USB interface, or may set the mobile terminal to provide other functions for the peripheral by using the USB interface, for example, functions of sharing a network and/or sharing a file.
Step 202, 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 outside by the first power supply current until the current electric quantity of the battery is not larger 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 more, and the mobile terminal is enough to supply power for the peripheral connected with the mobile terminal by using the USB interface, at the moment, a larger current is set as a first power supply current, the function of externally supplying power for the battery is started, and the first power supply current is used for supplying power for the peripheral until the current electric quantity of the battery is not larger than the preset electric quantity of the battery.
The first supply current is not limited in its magnitude, and may be flexibly set according to practical situations, for example, 1000mA.
The peripheral equipment is external equipment connected with the mobile terminal, and can be a mobile phone, an intelligent watch, an intelligent door lock 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, if the current electric quantity of the battery is greater than the preset battery electric quantity, continues to use the first power supply current to supply power for the peripheral connected with the mobile terminal by using the USB interface, and if the current electric quantity of the battery is not greater than the preset battery electric quantity, step 203 is executed.
The interval time of the mobile terminal for obtaining the current electric quantity of the battery at each time is not limited, can be flexibly set according to practical situations, and can be the same, for example, 60 seconds at each time.
In one embodiment, the interval time between each two times of obtaining the current electric quantity of the battery by the mobile terminal may be different from each other, that is, the mobile terminal may obtain the current electric quantity of the battery at any time. The interval time for obtaining the current electric quantity of the battery every two times can be changed regularly, for example, the interval time for obtaining the current electric quantity of the battery every two times of the mobile terminal can be in the form of an arithmetic progression, that is, the mobile terminal regularly obtains the current electric quantity of the battery according to the change rule of the interval time.
In one embodiment, if the current electric quantity of the battery of the mobile terminal is greater than the preset battery electric quantity, the current electric quantity of the battery of the mobile terminal is indicated to be more, and the battery is sufficient to supply power for the peripheral equipment connected with the mobile terminal by using the USB interface, the mobile terminal can close the charging function, stop charging the battery, and only start the battery to supply power to the peripheral equipment with the first power supply current.
In one embodiment, the current electric quantity of the battery of the mobile terminal is larger than the preset battery electric quantity, although the current electric quantity of the battery of the mobile terminal is more, the battery is enough to supply power for 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 uses larger current to charge the peripheral in a short time, so that the battery electric quantity of the mobile terminal is suddenly reduced, the mobile terminal is powered off or the battery is damaged, and the like, and the mobile terminal can start a charging function to charge the battery under the situation that the peripheral is powered by using the first power supply current.
And 203, if the current electric quantity of the battery is not greater than the preset battery electric quantity, stopping the battery to supply power to the external device by the first power supply current, charging the battery and starting the battery to supply power to the external device 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.
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 smaller and insufficient to supply power to the peripheral connected with the mobile terminal by using the USB interface, at the moment, the battery stops supplying power to the peripheral by using the first power supply current, a smaller current is set as the second power supply current, the function of supplying power to the peripheral by using the smaller current and the charging function of the battery are started, and the second power supply current is used for supplying power to the peripheral and simultaneously charging the battery.
The second supply current is not limited in its magnitude, and may be flexibly set according to practical situations, for example, 200mA.
In some embodiments, the power of the battery supplying power to the peripheral device with the second power supply current is smaller than the power of the battery supplying power to the peripheral device with the first power supply current, and in order to prolong the time for which the mobile terminal battery supplies power to the peripheral device, the second power supply current is set to be smaller than the first power supply current.
In some embodiments, the mobile terminal sets the status identification value and the time identification value while charging the battery and starting the battery to power the peripheral at the second power supply current.
The state identification value is used for identifying the state of the mobile terminal when the mobile terminal supplies power to the peripheral, the setting of the state identification value is not limited, and the state identification value can be flexibly set according to practical situations, 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 through the second power supply current.
In one embodiment, when the current electric quantity of the battery of the mobile terminal is not greater than the electric quantity of the battery, the current electric quantity of the battery of the mobile terminal is indicated to be smaller, so that after the second power supply current is set, the mobile terminal sets the charging current to charge the battery, and starts the battery to supply power to the outside 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, the current electric quantity of the mobile terminal battery is indicated to be less, so that after the second power supply current is set, the mobile terminal sets the charging current to charge the battery, and starts the battery to supply power to the outside with the second power supply current.
In one embodiment, the mobile terminal uses the second power supply current to supply power to the peripheral, although the battery is charged by the charging current, if the charging current is smaller than the power supply current, or the mobile terminal uses a larger current to supply power to the peripheral at a certain moment, the electric quantity of the battery of the mobile terminal is suddenly reduced, so that the mobile terminal is in a closed state, the charging of the peripheral by the second power supply current is stopped, the battery is only charged by the charging current, when the electric quantity of the battery reaches a certain degree, the mobile terminal is changed from the closed state to the open 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 to the peripheral currently, the battery is stopped from supplying power to the peripheral at the second power supply current, a third power supply current is set, and the battery is started to supply power to the peripheral at 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 is calculated, the difference is compared with a preset time difference, and the third supply current is set according to the comparison result.
The preset time difference value comprises two parts, wherein the first part is the time taken by the mobile terminal to reduce the battery power to zero when the mobile terminal starts to supply power to the peripheral equipment by using the second power supply current, and the second part is the time taken by the mobile terminal to increase the battery power from zero to the battery power when the current state value is detected, so that 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 identification value also includes the time spent in the same two-part power change process described above. The difference between the current time and the time identification value is less than or equal to the preset time difference.
In one embodiment, if the difference between the current time and the time identification value is smaller than the preset time difference, the battery is indicated not to be empty when the battery is powered up last time, and 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 setting of the preset current value is not limited, and can be flexibly set according to practical situations, for example, 20mA.
In one embodiment, if the difference between the current time and the time identification value is equal to the preset time difference, it indicates that the battery is empty when the battery is last powered, and the second current difference obtained by subtracting the charging current from the second power supply current is set as the third power supply current.
The mobile terminal power supply control method described in the above embodiments will be described in further detail below.
Referring to fig. 3, fig. 3 is another 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 can be applied to a mobile terminal, as shown in fig. 3, and the flow of the mobile terminal power supply control method can be as follows:
step 301, confirming the connection of the peripheral.
For example, the mobile terminal confirms that the peripheral is connected by using a USB interface or the like, and the user does not manually turn off the function of the mobile terminal for powering the peripheral, and the mobile terminal defaults to power the peripheral.
Step 302, obtaining the current electric quantity of the battery, 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 for the peripheral power supply, and obtains the current power of the battery and compares the current power with the preset battery power.
Step 303, determining that the current electric quantity of the battery is larger than the preset electric quantity of the battery, setting a first power supply current, and starting the battery to supply power to the outside with the first power supply current.
For example, if the comparison result shows that the current electric quantity of the battery is greater than the preset battery electric quantity, the current electric quantity of the battery of the mobile terminal is more, and the battery is enough to supply power for the peripheral connected with the mobile terminal by using the USB interface, and at the moment, a larger current is set as the first power supply current, and the first power supply current is used for supplying power for the peripheral.
Step 304, judging whether the current electric quantity of the battery is larger than the preset electric quantity of the battery.
For example, if yes, the step 303 is executed back, and the mobile terminal continues to supply power to the external device with the first supply current. If not, go to step 305.
Step 305, stopping the battery to supply power to the external device 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 external device at the second power supply current.
Step 306, judging whether the current electric quantity of the battery is larger than the preset electric quantity of the battery.
For example, if yes, go back to step 303, if no, go to step 307.
Step 307, determining whether the mobile terminal is in a closed state.
For example, if so, 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 is changed from the off state to the on state, and step 308 is performed. If not, go back to execute step 305.
Step 308, when the mobile terminal changes from the off state to the on state, detecting the current state value, and comparing the current state value with the state identification value.
For example, the status identification value is set when the battery is charged and started to supply power to the peripheral device at the second supply current.
Step 309, if the current status value is equal to the status identifier value, stopping the battery to supply power to the peripheral device with the 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 charging the battery and starting the battery to supply power to the external device at the second supply current.
Step 311, if the difference is smaller than the preset time difference, the first current difference obtained by subtracting the preset current value from the second power supply current is set as a third power supply current, and the peripheral is powered by the third power supply current.
Step 312, if the difference is equal to the preset time difference, the second current difference obtained by subtracting the charging current from the second supply current is set as a third supply current, and the peripheral is supplied with power by the third supply current.
According to the mobile terminal power supply control method provided by the embodiment of the invention, the preset battery power is determined and used as the judging basis for judging whether the current power of the battery of the mobile terminal is enough for peripheral power supply, if the current power of the battery is larger than the preset battery power, the current power of the battery of the mobile terminal is larger, the larger first power supply current is set, and the battery can be started to supply power by taking the first power supply current as the peripheral power under the condition that the charging function is not started to store power for the mobile terminal, until the current power of the battery is not larger than the preset battery power. If the current electric quantity of the battery is not more than the preset battery electric quantity, the current electric quantity of the battery of the mobile terminal is less and insufficient to supply power to the peripheral equipment, a charging function is required to be started to store power for the peripheral equipment, the battery is stopped to supply power to the outside through a first power supply current, and a smaller second power supply current is set until the current electric quantity of the battery is more than the preset battery electric quantity. According to the embodiment of the invention, the power supply time for external equipment can be prolonged under the condition that the battery capacity of the mobile terminal is low, the situation that the mobile terminal is powered by large current in a short time to damage energy storage components such as a battery and the like is avoided, and the service life of the energy storage components of the mobile terminal is prolonged.
In order to better implement the above method, the embodiment of the present invention may also provide a mobile terminal power supply control device, where the mobile terminal power supply control device may be specifically integrated in a network device, and the network device may be a device such as a mobile terminal.
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 comparing 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 of the battery is greater than the preset battery power, and start the battery to supply power to a peripheral device with the first power supply current until the current power of the battery is not greater than the preset battery power;
and the second power supply unit 403 is configured to stop the battery from supplying power to the peripheral device with the first power supply current if the current power of the battery is not greater than the preset battery power, and after setting the second power supply current, charge the battery and start the battery to supply power to the peripheral device with the second power supply current until the current power of the battery is greater than the preset battery power.
Optionally, the mobile terminal power supply control device is further configured to:
the state identification value and the time identification value are set when the battery is charged and started to supply power to the peripheral device 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 identification value;
and if the current state value is equal to the state identification value, stopping the battery to supply power to the peripheral equipment by the second power supply current, setting a third power supply current, and starting the battery to supply power to the peripheral equipment by 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 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 403 is further configured to set a charging current when the battery is stopped to supply power to the peripheral device 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 value is equal to the preset time difference value, setting a second current difference value 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.
According to the mobile terminal power supply control device provided by the embodiment of the invention, the current electric quantity of the battery of the mobile terminal is obtained through the comparison unit 401, the current electric quantity of the battery is compared with the electric quantity of the preset battery, then, the first power supply current is set through the first power supply unit 402, if the current electric quantity of the battery is larger than the electric quantity of the preset battery, the battery is started to supply power to the peripheral equipment through the first power supply current until the current electric quantity of the battery is not larger than the electric quantity of the preset battery, finally, the second power supply unit 403 is used for determining that if the current electric quantity of the battery is not larger than the electric quantity of the preset battery, the battery is stopped to supply power to the peripheral equipment through the first power supply current, after the second power supply current is set, the battery is charged and started to supply power to the peripheral equipment through the second power supply current, until the current electric quantity of the battery is larger than the electric quantity of the preset battery, the power supply time for the peripheral equipment can be prolonged under the condition that the battery electric quantity of the mobile terminal is smaller, the situation that the mobile terminal utilizes large current in a short time to damage the battery and other energy storage components of the mobile terminal are avoided, and the service life of the mobile terminal energy storage components is prolonged.
Accordingly, embodiments of the present invention also provide a terminal, as shown in fig. 5, which 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, wireless Fidelity) module 507, a processor 508 including one or more processing cores, and a power supply 509. It will be appreciated by those skilled in the art that the terminal structure shown in fig. 5 is not limiting of the terminal and may include more or fewer components than shown, or may combine certain components, or a different arrangement of components. Wherein:
the RF circuit 501 may be configured to receive and send information or signals during a call, and in particular, after receiving downlink information of a base station, the downlink information is processed by one or more processors 508; in addition, data relating to uplink is transmitted to the base station. Typically, RF circuitry 501 includes, but is not limited to, an antenna, at least one amplifier, a tuner, one or more oscillators, a subscriber identity module (SIM, subscriber Identity Module) card, a transceiver, a coupler, a low noise amplifier (LNA, low Noise Amplifier), a duplexer, and the like. In addition, 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, global System of Mobile communication), general packet radio service (GPRS, general Packet Radio Service), code division multiple access (CDMA, code Division Multiple Access), wideband code division multiple access (WCDMA, wideband Code Division Multiple Access), long term evolution (LTE, long Term Evolution), email, short message service (SMS, short Messaging Service), and the like.
The memory 502 may be used to store software programs and modules that the processor 508 performs various functional applications and data processing by executing the software programs and modules stored in the memory 502. The memory 502 may mainly include a storage program area and a storage data area, wherein the storage program area may store an operating system, an application program (such as a sound playing function, an image playing function, etc.) required for at least one function, and the like; the storage data area may store data (such as audio data, phonebook, etc.) created according to the use of the terminal, etc. In addition, 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 access to the memory 502 by the processor 508 and the input unit 503.
The input unit 503 may be used to receive input numeric or character information and to generate keyboard, mouse, joystick, optical or trackball signal inputs related to user settings and function control. In particular, 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 thereon or thereabout by a user (e.g., operations thereon or thereabout by a user using any suitable object or accessory such as a finger, stylus, etc.), and actuate the corresponding connection means according to a predetermined program. Alternatively, the touch-sensitive surface may comprise two parts, a touch detection device and a touch controller. The touch detection device detects the touch azimuth of a user, detects a signal brought by touch operation and transmits the signal to the touch controller; the touch controller receives touch information from the touch detection device and converts it into touch point coordinates, which are then sent to the processor 508, and can receive commands from the processor 508 and execute them. In addition, touch sensitive surfaces may be implemented in a variety of types, such as resistive, capacitive, infrared, and surface acoustic waves. The input unit 503 may comprise other input devices besides a 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, mouse, joystick, etc.
The display unit 504 may be used to display information input by a user or information provided to the user and various graphical user interfaces of the terminal, which may be composed of graphics, text, icons, video and any combination thereof. The display unit 504 may include a display panel, which may be optionally configured in the form of a liquid crystal display (LCD, liquid Crystal Display), an Organic Light-Emitting Diode (OLED), or the like. Further, the touch-sensitive surface may overlay a display panel, and upon detection of a touch operation thereon or thereabout, the touch-sensitive surface is passed to the processor 508 to determine the type of touch event, and the processor 508 then provides a corresponding visual output on the display panel based on the type of touch event. Although in fig. 5 the touch sensitive surface and the display panel are implemented as two separate components for input and output functions, in some embodiments the touch sensitive surface may be integrated with the display panel to implement the input and output functions.
The terminal may also include at least one sensor 505, such as a light sensor, a motion sensor, and other sensors. Specifically, the light sensor may include an ambient light sensor that may adjust the brightness of the display panel according to the brightness of ambient light, and a proximity sensor that may turn off the display panel and/or backlight when the terminal moves to the ear. As one of the motion sensors, the gravity acceleration sensor can detect the acceleration in all directions (generally three axes), and can detect the gravity and the direction when the mobile phone is stationary, and can be used for applications of recognizing the gesture of the mobile phone (such as horizontal and vertical screen switching, related games, magnetometer gesture calibration), vibration recognition related functions (such as pedometer and knocking), and the like; other sensors such as gyroscopes, barometers, hygrometers, thermometers, infrared sensors, etc. that may also be configured in the terminal are not described in detail herein.
Audio circuitry 506, speakers, and a microphone may provide an audio interface between the user and the terminal. The audio circuit 506 may transmit the received electrical signal after audio data conversion to a speaker, where the electrical signal is converted into a sound signal for output; on the other hand, the microphone converts the collected sound signals into electrical signals, which are received by the audio circuit 506 and converted into audio data, which are processed by the audio data output processor 508, and then sent to, for example, another terminal via the RF circuit 501, or the audio data are output to the memory 502 for further processing. The audio circuit 506 may also include an ear bud jack to provide communication of the peripheral ear bud with the terminal.
The WiFi belongs to a short-distance wireless transmission technology, and the terminal can help the user to send and receive e-mails, browse web pages, access streaming media and the like through the WiFi module 507, so that wireless broadband internet access is provided for the user. Although fig. 5 shows a WiFi module 507, it is understood that it does not belong to the essential constitution of the terminal, and may be omitted entirely as required within a range that does not change the essence of the invention.
The processor 508 is a control center of the terminal, and connects various parts of the entire mobile phone using various interfaces and lines, and performs various functions of the terminal and processes data by running or executing software programs and/or modules stored in the memory 502, and calling data stored in the memory 502, thereby performing overall monitoring of the mobile phone. Optionally, the processor 508 may include one or more processing cores; preferably, the processor 508 may integrate an application processor that primarily handles operating systems, user interfaces, applications, etc., with a modem processor that 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 be logically connected to the processor 508 via a power management system so as to provide for the management of charge, discharge, and power consumption by the power management system. The power supply 509 may also include one or more of any of a direct current or alternating current power supply, a recharging system, a power failure detection circuit, a power converter or inverter, a power status indicator, and the like.
Although not shown, the terminal may further include a camera, a bluetooth module, etc., which will not be described herein. In this embodiment, the processor 508 in the terminal loads executable files corresponding to the processes of one or more application programs into the memory 502 according to the following instructions, and the processor 508 executes the application programs stored in the memory 502, so as to implement various functions: acquiring the current electric quantity of a battery of the mobile terminal, 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 outside 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 greater than the electric quantity of the battery, stopping the battery to supply power to the outside 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 peripheral by the second power supply current until the current electric quantity of the battery is greater than the electric quantity of the battery.
Wherein the storage medium may include: read Only Memory (ROM), random access Memory (Random Access Memory, RAM), magnetic or optical disk, and the like.
The steps in any one of the mobile terminal power supply control methods provided by the embodiments of the present invention can be executed by the computer program stored in the storage medium, so that the beneficial effects that any one of the mobile terminal power supply control methods provided by the embodiments of the present invention can be achieved, which are detailed in the previous embodiments and are not described herein.
In the foregoing embodiments, the descriptions of the embodiments are emphasized, and for parts of one embodiment that are not described in detail, reference may be made to related descriptions of other embodiments.
The foregoing describes in detail a mobile terminal power supply control method, apparatus, terminal device and storage medium provided by the embodiments of the present invention, and specific examples are applied to describe the principles and embodiments of the present invention, where the descriptions of the foregoing embodiments are only used to help understand the technical solution and core idea of the present invention; those of ordinary skill in the art will appreciate that: the technical scheme described in the foregoing embodiments can be modified or some technical features thereof can be replaced by equivalents; such modifications and substitutions do not depart from the spirit of the invention.

Claims (6)

1. A mobile terminal power supply control method, comprising:
acquiring the current electric quantity of a battery of the mobile terminal, 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 peripheral equipment 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 greater than the preset battery electric quantity, stopping the battery to supply power to the peripheral equipment by the first power supply current, after setting a second power supply current, charging the battery, and starting the battery to supply power to the peripheral equipment by the second power supply current until the current electric quantity of the battery is greater than the preset battery electric quantity;
when the battery is charged and started to supply power to the peripheral equipment by the second power supply current, setting a state identification value and a time identification value, wherein the state identification value is used for identifying the state of the mobile terminal when the mobile terminal supplies power to the peripheral equipment, and the time identification value is used for identifying the specific time of the mobile terminal when the mobile terminal supplies power to the peripheral equipment by the second power supply current;
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;
if the current state value is equal to the state identification value, stopping the battery to supply power to the peripheral equipment by the second power supply current, obtaining the 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 a third power supply current according to the comparison result, and starting the battery to supply power to the peripheral equipment by the third power supply current;
setting a charging current when the battery is stopped to supply power to a peripheral device at the first power supply current;
said setting said third supply current according to the result of said comparison comprises:
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 value is equal to the preset time difference value, setting a second current difference value obtained by subtracting the charging current from the second supply current as the third supply current.
2. The method according to claim 1, wherein the method further comprises:
The second supply current is set to be smaller than the first supply current.
3. The method of claim 1, wherein said starting said battery to supply power to an external device at said first supply current further comprises:
and stopping charging the battery.
4. A mobile terminal power supply control device, characterized by comprising:
the comparison unit is used for acquiring 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;
the first power supply unit is used for setting a first power supply current if the current electric quantity of the battery is larger than the preset battery electric quantity, and starting the battery to supply power to the peripheral equipment by the first power supply current until the current electric quantity of the battery is not larger than the preset battery electric quantity;
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, charging the battery 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;
The mobile terminal power supply control device is further used for setting a state identification value and a time identification value when the battery is charged and started to supply power to the peripheral device by the second power supply current, wherein the state identification value is used for identifying the state of the mobile terminal when the mobile terminal supplies power to the peripheral device, and the time identification value is used for identifying the specific time of the mobile terminal when the mobile terminal supplies power to the peripheral device by the second power supply current; 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; if the current state value is equal to the state identification value, stopping the battery to supply power to the peripheral equipment by the second power supply current, obtaining the 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 a third power supply current according to the comparison result, and starting the battery to supply power to the peripheral equipment by the third power supply current; setting a charging current when the battery is stopped to supply power to a peripheral device at the first power supply current; said setting said third supply current according to the result of said comparison comprises: 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 value is equal to the preset time difference value, setting a second current difference value obtained by subtracting the charging current from the second supply current as the third supply current.
5. 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 3 when executing the application program.
6. A storage medium having stored thereon an application program which when executed by a processor performs the steps of the mobile terminal power supply control method according to any one of claims 1 to 3.
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 CN112542867A (en) 2021-03-23
CN112542867B true 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)

Families Citing this family (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

Family Cites Families (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104301547B (en) * 2014-10-15 2016-03-02 深圳市中兴移动通信有限公司 The management method of battery electric quantity and mobile terminal
CN104849669B (en) * 2015-04-17 2018-06-19 惠州Tcl移动通信有限公司 A kind of charging method and system of the non-dismountable 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
CN111142028B (en) * 2020-02-20 2022-02-08 广东天波信息技术股份有限公司 Method and device for measuring electric quantity of lithium battery

Also Published As

Publication number Publication date
CN112542867A (en) 2021-03-23

Similar Documents

Publication Publication Date Title
CN106786962B (en) Charging control method and device and terminal
CN107734616B (en) Application program closing method and device, storage medium and electronic equipment
CN106293308B (en) Screen unlocking method and device
CN106655381B (en) Wireless charging method and device
CN111158455A (en) Power consumption control method and device, storage medium and terminal
CN107734618B (en) Application program closing method and device, storage medium 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
CN106454953B (en) Flow control method, device and terminal
CN115985323B (en) Voice wakeup method and device, electronic equipment and readable storage medium
CN111404242A (en) Charging method, charging device, storage medium and mobile terminal
CN106155733B (en) Method and device for running application program
CN111966206B (en) Power saving control method and device for fingerprint sensor and mobile terminal
CN110995324B (en) Bluetooth communication method, device, storage medium and terminal equipment
CN109672242B (en) Terminal charging control method and device and storage medium
CN112261634A (en) Bluetooth transmission control method, device, terminal equipment and storage medium
CN112286849A (en) Wireless charging base data switching method and system, storage medium and terminal equipment
CN109151154B (en) Power consumption control method and mobile terminal
CN111984107B (en) Method and device for processing power supply abnormity of terminal equipment
CN110891304B (en) gPS power consumption control method for mobile terminal
CN111405649B (en) Information transmission method and device and mobile terminal
CN111638897B (en) System updating method, device, terminal equipment and storage medium
CN109995441B (en) Communication information processing method, device and storage medium
CN111654578B (en) Mobile terminal sensor restoration method

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