CN111600355A - Charging control method, device and equipment - Google Patents

Charging control method, device and equipment Download PDF

Info

Publication number
CN111600355A
CN111600355A CN202010498072.9A CN202010498072A CN111600355A CN 111600355 A CN111600355 A CN 111600355A CN 202010498072 A CN202010498072 A CN 202010498072A CN 111600355 A CN111600355 A CN 111600355A
Authority
CN
China
Prior art keywords
charging
power consumption
electronic equipment
target
period
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
CN202010498072.9A
Other languages
Chinese (zh)
Other versions
CN111600355B (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.)
Xian Yep Telecommunication Technology Co Ltd
Original Assignee
Xian Yep Telecommunication Technology Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Xian Yep Telecommunication Technology Co Ltd filed Critical Xian Yep Telecommunication Technology Co Ltd
Priority to CN202010498072.9A priority Critical patent/CN111600355B/en
Publication of CN111600355A publication Critical patent/CN111600355A/en
Application granted granted Critical
Publication of CN111600355B publication Critical patent/CN111600355B/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/0029Circuit arrangements for charging or depolarising batteries or for supplying loads from batteries with safety or protection devices or circuits
    • H02J7/00302Overcharge protection
    • 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
    • Y02BCLIMATE CHANGE MITIGATION TECHNOLOGIES RELATED TO BUILDINGS, e.g. HOUSING, HOUSE APPLIANCES OR RELATED END-USER APPLICATIONS
    • Y02B40/00Technologies aiming at improving the efficiency of home appliances, e.g. induction cooking or efficient technologies for refrigerators, freezers or dish washers

Landscapes

  • Engineering & Computer Science (AREA)
  • Power Engineering (AREA)
  • Charge And Discharge Circuits For Batteries Or The Like (AREA)

Abstract

The application provides a charging control method, a charging control device and charging control equipment, wherein the method comprises the following steps: in the process of charging the electronic equipment, acquiring the current electric quantity of the electronic equipment and charging information in a historical time period, wherein the electronic equipment is in a high power consumption state in the charging process; determining whether to switch the electronic equipment to a low power consumption state or not according to the charging information and the current electric quantity; and if the electronic equipment is determined to be switched to the low power consumption state, controlling the switching circuit of the electronic equipment to be switched off so as to switch the electronic equipment to the low power consumption state. The charging energy efficiency of the electronic equipment is improved.

Description

Charging control method, device and equipment
Technical Field
The present application relates to the field of charging control technologies, and in particular, to a charging control method, apparatus, and device.
Background
Currently, a charger may be connected to an electronic device (e.g., a mobile phone, a tablet computer, etc.) through a Universal Serial Bus (USB) to perform charging. In practical applications, when the charger is powered on, the charger may charge the battery in the electronic device through the USB.
In the prior art, after a battery in an electronic device is fully charged, if a charger is continuously powered on, a USB connected to the charger still supplies power to the electronic device, so that the electronic device is in a high power consumption state, and further, the charging energy efficiency of the electronic device is low.
Disclosure of Invention
The application provides a charging control method, a charging control device and charging control equipment, which are used for improving the charging energy efficiency of electronic equipment.
In a first aspect, the present application provides a charging control method, including:
in the process of charging the electronic equipment, acquiring the current electric quantity of the electronic equipment and charging information in a historical time period, wherein the electronic equipment is in a high power consumption state in the charging process;
determining whether to switch the electronic equipment to a low power consumption state or not according to the charging information and the current electric quantity;
and if the electronic equipment is determined to be switched to the low power consumption state, controlling the switching circuit of the electronic equipment to be switched off so as to switch the electronic equipment to the low power consumption state.
In one possible design, determining whether to switch the electronic device to the low power consumption state according to the charging information and the current power amount includes:
processing the charging information to obtain a first charging threshold value;
and determining whether to switch the electronic equipment to a low power consumption state or not according to the first charging threshold and the current electric quantity.
In one possible design, the historical period includes at least one sub-period; the method for processing the charging information to obtain the first charging threshold value comprises the following steps:
determining charging information corresponding to each sub-period in the charging information, wherein the charging information comprises the total power consumption, the charging times and the power consumption corresponding to each charging;
determining a second charging threshold corresponding to each sub-period according to the total power consumption, the charging times and the power consumption corresponding to each charging in the charging information corresponding to each sub-period;
and processing the second charging threshold value to obtain a first charging threshold value.
In one possible design, for any target sub-period in the at least one sub-period, the charging information corresponding to the target sub-period includes a target total power consumption amount, a target charging number and a target power consumption amount corresponding to each charging; determining a second charging threshold corresponding to the target sub-period according to the target power consumption total, the target charging times and the target power consumption corresponding to each charging, wherein the second charging threshold comprises the following steps:
if the target total power consumption is less than or equal to the preset power consumption, determining the first preset threshold as a second charging threshold corresponding to the target sub-period,
and if the total target power consumption is larger than the preset power consumption, determining a second charging threshold corresponding to the target sub-period according to the target charging times and the target power consumption corresponding to each charging.
In one possible design, determining the second charging threshold corresponding to the target sub-period according to the target charging number and the target power consumption amount corresponding to each charging includes:
if the target charging times are less than or equal to the preset times, determining a second preset threshold as a second charging threshold corresponding to the target sub-period;
if the target charging times are larger than the preset times, when the target power consumption corresponding to each charging is smaller than or equal to the preset power consumption, determining the first preset threshold as a second charging threshold corresponding to the target sub-period, and when one target power consumption in the target power consumption corresponding to each charging is larger than the preset power consumption, determining the second preset threshold as a second charging threshold corresponding to the target sub-period.
In one possible design, processing the second charging threshold to obtain the first charging threshold includes:
acquiring a first probability when a second charging threshold is a first preset threshold and a second probability when the second charging threshold is a second preset threshold;
if the first probability is larger than or equal to the second probability, determining a first preset threshold as a first charging threshold;
and if the first probability is smaller than the second probability, determining a second preset threshold as the first charging threshold.
In one possible design, after the switch circuit of the control electronic device is opened, the method further includes:
acquiring the residual electric quantity of the electronic equipment;
and if the residual electric quantity is less than or equal to the preset residual electric threshold value, controlling the switch circuit of the electronic equipment to be switched on.
In a second aspect, the present application provides a charge control device, the device comprising: an acquisition module, a determination module, and a control module, wherein,
the acquisition module is used for acquiring the charging information of the electronic equipment in a historical time period and the current electric quantity at the current moment in the charging process of the electronic equipment, and the electronic equipment is in a high power consumption state in the charging process;
the determining module is used for determining whether to switch the electronic equipment to a low power consumption state or not according to the charging information and the current electric quantity.
The control module is used for controlling the switching circuit of the electronic equipment to be switched off if the electronic equipment is determined to be switched to the low power consumption state, so that the electronic equipment is switched to the low power consumption state.
In one possible design, the determining module is specifically configured to:
processing the charging information to obtain a first charging threshold value;
and determining whether to switch the electronic equipment to a low power consumption state or not according to the first charging threshold and the current electric quantity.
In one possible design, the historical period includes at least one sub-period, and the determining module 62 is specifically configured to:
determining charging information corresponding to each sub-period in the charging information, wherein the charging information comprises the total power consumption, the charging times and the power consumption corresponding to each charging;
determining a second charging threshold corresponding to each sub-period according to the total power consumption, the charging times and the power consumption corresponding to each charging in the charging information corresponding to each sub-period;
and processing the second charging threshold value to obtain a first charging threshold value.
In one possible design, for any target sub-period in the at least one sub-period, the charging information corresponding to the target sub-period includes a target total power consumption amount, a target charging number and a target power consumption amount corresponding to each charging; the determination module is specifically configured to:
if the target total power consumption is less than or equal to the preset power consumption, determining the first preset threshold as a second charging threshold corresponding to the target sub-period,
and if the total target power consumption is larger than the preset power consumption, determining a second charging threshold corresponding to the target sub-period according to the target charging times and the target power consumption corresponding to each charging.
In one possible design, the determining module is specifically configured to:
if the target charging times are less than or equal to the preset times, determining a second preset threshold as a second charging threshold corresponding to the target sub-period;
if the target charging times are larger than the preset times, when the target power consumption corresponding to each charging is smaller than or equal to the preset power consumption, determining the first preset threshold as a second charging threshold corresponding to the target sub-period, and when one target power consumption in the target power consumption corresponding to each charging is larger than the preset power consumption, determining the second preset threshold as a second charging threshold corresponding to the target sub-period.
In one possible design, the determining module is specifically configured to:
acquiring a first probability when a second charging threshold is a first preset threshold and a second probability when the second charging threshold is a second preset threshold;
if the first probability is larger than or equal to the second probability, determining a first preset threshold as a first charging threshold;
and if the first probability is smaller than the second probability, determining a second preset threshold as the first charging threshold.
In one possible design, the control module is further configured to obtain the remaining power of the electronic device after the switch circuit of the electronic device is turned off;
and if the residual electric quantity is less than or equal to the preset residual electric threshold value, controlling the switch circuit of the electronic equipment to be switched on.
In a third aspect, the present application provides an electronic device, comprising: the device comprises a processor, a controller, a switch circuit and a memory, wherein the processor is respectively connected with the controller, the switch circuit and the memory, the controller is respectively connected with the switch circuit and the memory, wherein,
the memory stores computer-executable instructions;
the processor executes the computer-executable instructions, so that the processor executes the charging control method in any one of the first aspects described above.
In one possible design, the switching circuit includes: the switch comprises a switch, a diode, a triode and a resistor, wherein the first end of the switch is connected with the controller, the second end of the switch is respectively connected with the third end of the switch and the cathode of the diode, and the fourth end of the switch is respectively connected with the anode of the diode and the collector of the triode;
the base electrode of the triode is connected with the processor through a resistor, and the emitting electrode of the triode is grounded.
In a fourth aspect, the present application provides a computer-readable storage medium, in which computer-executable instructions are stored, and when the processor executes the computer-executable instructions, the charging control method in any one of the above first aspects is implemented.
The application provides a charging control method, a charging control device and charging control equipment, wherein the method comprises the following steps: in the process of charging the electronic equipment, acquiring the current electric quantity of the electronic equipment and charging information in a historical time period, wherein the electronic equipment is in a high power consumption state in the process of charging the electronic equipment; and determining whether to switch the electronic equipment to a low power consumption state or not according to the charging information and the current electric quantity. And if the electronic equipment is determined to be switched to the low power consumption state, controlling the switching circuit of the electronic equipment to be switched off so as to switch the electronic equipment to the low power consumption state. In the method, if the electronic equipment is determined to be switched to the low power consumption state, the switching circuit of the electronic equipment is controlled to be switched off, so that the electronic equipment can be switched to the low power consumption state when the battery in the electronic equipment is fully charged, and the charging energy efficiency of the electronic equipment is improved.
Drawings
In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings needed to be used in the description of the embodiments or the prior art will be briefly introduced below, and it is obvious that the drawings in the following description are some embodiments of the present invention, and for those skilled in the art, other drawings can be obtained according to these drawings without creative efforts.
Fig. 1 is a first schematic flow chart of a charging control method provided in the present application;
fig. 2 is a second flowchart illustrating a charging control method provided in the present application;
FIG. 3 is a schematic flow chart of determining a second charging threshold provided herein;
FIG. 4 provides a charging prompt interface for the present application;
FIG. 5 provides another charge reminder interface for the present application;
fig. 6 is a schematic structural diagram of a charging control device provided in the present application;
fig. 7 is a first schematic structural diagram of an electronic device provided in the present application;
fig. 8 is a schematic structural diagram of an electronic device provided in the present application.
Detailed Description
In order to make the objects, technical solutions and advantages of the embodiments of the present invention clearer, the technical solutions in the embodiments of the present invention will be clearly and completely described below with reference to the drawings in the embodiments of the present invention, and it is obvious that the described embodiments are some, but not all, embodiments of the present 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 terms "first," "second," "third," "fourth," and the like in the description and/or in the claims of the invention and in the drawings described above, if any, are used for distinguishing between similar elements and not necessarily for describing a particular sequential or chronological order. It is to be understood that the data so used is interchangeable under appropriate circumstances such that the embodiments of the invention described herein are, for example, capable of operation in sequences other than those illustrated or otherwise described herein. Furthermore, the terms "comprises," "comprising," and "having," and any variations thereof, are intended to cover a non-exclusive inclusion, such that a process, method, system, article, or apparatus that comprises a list of steps or elements is not necessarily limited to those steps or elements expressly listed, but may include other steps or elements not expressly listed or inherent to such process, method, article, or apparatus.
For example, in the process of charging the electronic device at night, when a battery in the electronic device is fully charged, since a user is in a sleep state and cannot disconnect the electronic device and the charger in time, the charger may continue to supply power to the battery, so that the electronic device is always in a high power consumption state and cannot enter a low power consumption state, and the charging of the electronic device is energy efficient. In the method, when the battery in the electronic equipment is fully charged, the electronic equipment can be automatically disconnected from the charger and switched to a low power consumption state, so that the charging energy efficiency of the electronic equipment is improved.
The following describes a charging control method provided in the present application with reference to specific embodiments of the drawings.
Fig. 1 is a first flowchart illustrating a charging control method provided in the present application. As shown in fig. 1, the charging control method provided in this embodiment includes:
s100: in the process of charging the electronic equipment, the current electric quantity of the electronic equipment and the charging information in the historical time period are obtained, and the electronic equipment is in a high power consumption state in the charging process.
Alternatively, the execution subject of the present application is a processor in an electronic device, and may be a charging control device provided in the processor, and the charging control device may be implemented by a combination of software and/or hardware.
Alternatively, the electronic device may be a smartphone, a tablet computer, or the like that needs to be charged by a charger, and the charging process of the electronic device generally includes a pre-charging process, a constant-current charging process, and a constant-voltage charging process. In practical application, after the electronic device is subjected to a pre-charging process and a constant-current charging process, if the electronic device needs to be continuously charged, the electronic device keeps a constant-voltage charging process.
Optionally, the history period may include N sub-periods, and the time length of each sub-period is the same, where N may be 7, 8, 9, or 14, and the time length of each sub-period may be 1 day, or 2 days, and the like, which is not limited in this application.
Optionally, the charging information may include a preset charging threshold corresponding to each sub-period, where the preset charging threshold may be a first preset threshold or a second preset threshold, and the first preset threshold is smaller than the second preset threshold
Alternatively, the first preset threshold may be 80%, 90%, etc., and the second preset threshold may be 90%, 100%, for example: when the first preset threshold is 90%, the second preset threshold may be 100%.
S101: and determining whether to switch the electronic equipment to a low power consumption state or not according to the charging information and the current electric quantity.
In one possible design, determining whether to switch the electronic device to the low power consumption state according to the charging information and the current power amount includes:
processing the charging information to obtain a first charging threshold value;
and determining whether to switch the electronic equipment to a low power consumption state or not according to the first charging threshold and the current electric quantity.
Specifically, processing the charging information to obtain a first charging threshold includes:
when the charging information includes a preset charging threshold corresponding to each sub-period, a first probability when the preset charging threshold is a first preset threshold may be counted, and a second probability when the preset charging threshold is a second preset threshold may be counted;
the greater of the first probability and the second probability is determined to be a first charging threshold.
Further, if the current electric quantity is greater than the first charging threshold, the electronic device is determined to be switched to the low power consumption state, and if the current electric quantity is less than or equal to the first charging threshold, the electronic device is continuously charged.
S102: and if the electronic equipment is determined to be switched to the low power consumption state, controlling the switching circuit of the electronic equipment to be switched off so as to switch the electronic equipment to the low power consumption state.
Specifically, the switching circuit of the electronic device is controlled to be disconnected, so that the electronic device and the charger are disconnected, the electronic device is stopped from being charged, and the electronic device is switched to a low power consumption state.
After the electronic device is switched to the low power consumption state, the electronic device is standby to consume power.
The charging control method provided by the embodiment comprises the following steps: in the process of charging the electronic equipment, acquiring the current electric quantity of the electronic equipment and charging information in a historical time period, wherein the electronic equipment is in a high power consumption state in the process of charging the electronic equipment; and determining whether to switch the electronic equipment to a low power consumption state or not according to the charging information and the current electric quantity. And if the electronic equipment is determined to be switched to the low power consumption state, controlling the switching circuit of the electronic equipment to be switched off so as to switch the electronic equipment to the low power consumption state. In the method, if the electronic equipment is determined to be switched to the low power consumption state, the switching circuit of the electronic equipment is controlled to be switched off, so that the electronic equipment can be switched to the low power consumption state when the battery in the electronic equipment is fully charged, and the charging energy efficiency of the electronic equipment is improved.
In practical applications, since the reserved space of the battery in the electronic device is extremely limited, the user frequently charges the battery to the upper limit of the charging amount, but the frequent full charging (charging the battery to the upper limit of the charging amount) accelerates the aging of the battery and shortens the service life of the battery. In the application, whether the electronic equipment is switched to the low power consumption state or not is determined according to the charging information and the current electric quantity, so that the problem of accelerated aging speed of the battery caused by full charging can be solved, and the service life of the battery is prolonged.
Based on the above embodiment, the charging control method shown in the present application will be described in further detail with reference to fig. 2.
Fig. 2 is a schematic flow chart of a charging control method provided in the present application. As shown in fig. 2, the charging control method provided in this embodiment includes:
s200: in the process of charging the electronic equipment, the current electric quantity of the electronic equipment and charging information in a historical time period are obtained, the electronic equipment is in a high power consumption state in the process of charging the electronic equipment, and the historical time period comprises at least one sub-time period.
Optionally, the charging information in the history period includes a period identifier corresponding to each sub-period and charging information corresponding to each period identifier.
Specifically, the execution method of S200 is the same as the execution method of S100, and the execution process of S200 is not described herein again.
S201: and determining charging information corresponding to each sub-period in the charging information, wherein the charging information comprises the total power consumption, the charging times and the power consumption corresponding to each charging.
Optionally, the charging information corresponding to each sub-period may be determined in the charging information according to the charging information corresponding to each period identifier.
For example, when the time length of the sub-period is one day, the charging information corresponding to the sub-period includes the total power consumption amount, the number of times of charging, and the power consumption amount corresponding to each charging in one day.
S202: and determining a second charging threshold corresponding to each sub-period according to the total power consumption, the charging times and the power consumption corresponding to each charging in the charging information corresponding to each sub-period.
It should be noted that, please refer to the embodiment in fig. 3 for the execution method of S202, and the execution process of S202 is not described herein again.
In practical applications, after the time length of the sub-period and the number of the sub-periods included in the history period are determined, the method for determining the second charging threshold shown in the embodiment of fig. 3 may be performed for a sub-period, after the second charging threshold corresponding to the sub-period is obtained, it is determined whether the sub-period is the last sub-period in the history period, if so, the method for determining the second charging threshold shown in the embodiment of fig. 3 is performed, otherwise, the method for determining the second charging threshold shown in the embodiment of fig. 3 is performed for another sub-period until the second charging threshold corresponding to each sub-period is obtained.
S203: and processing the second charging threshold value to obtain a first charging threshold value.
Alternatively, the second charging threshold may be a first preset threshold, or a second preset threshold.
In one possible design, processing the second charging threshold to obtain the first charging threshold includes:
acquiring a first probability when a second charging threshold is a first preset threshold and a second probability when the second charging threshold is a second preset threshold;
if the first probability is larger than or equal to the second probability, determining a first preset threshold as a first charging threshold;
and if the first probability is smaller than the second probability, determining a second preset threshold as the first charging threshold.
Specifically, the second charging threshold corresponding to each sub-period is processed to obtain the first probability and the second probability. For example, if the number of each sub-period is 7, the second charging threshold corresponding to the sub-periods 1, 2, 3, 4, and 5 is a second preset threshold, and the second charging threshold corresponding to the sub-periods 6 and 7 is a first preset threshold, the second probability is 5/7, and the first probability is 2/7.
S204: and determining whether to switch the electronic equipment to a low power consumption state or not according to the first charging threshold and the current electric quantity.
If yes, go to S205-207.
If not, go to step S208.
It should be noted that the execution method of S204 is the same as the execution method of S101, and the execution process of S201 is not described herein again.
S205: and controlling the switching circuit of the electronic equipment to be switched off so as to switch the electronic equipment to a low power consumption state.
It should be noted that the execution method of S205 is the same as the execution method of S102, and the execution process of S205 is not described herein again.
S206: and acquiring the residual capacity of the electronic equipment.
S207: and judging whether the residual electric quantity is less than or equal to a preset residual electric threshold value or not.
If yes, go to step S208.
If not, go to S205.
Alternatively, the preset residual power threshold may be 2%, 5%, 10%, etc., which is not limited in this application.
S208: and controlling the switch circuit of the electronic equipment to be conducted so as to enable the electronic equipment to continue to be charged.
Optionally, the electronic device is in a constant voltage charging state while the electronic device continues to charge.
The charging control method provided by the embodiment comprises the following steps: in the process of charging the electronic equipment, acquiring the current electric quantity of the electronic equipment and charging information in a historical time period, wherein the electronic equipment is in a high power consumption state in the process of charging the electronic equipment, and the historical time period comprises at least one sub-time period; determining charging information corresponding to each sub-period in the charging information, wherein the charging information comprises the total power consumption, the charging times and the power consumption corresponding to each charging; determining a second charging threshold corresponding to each sub-period according to the total power consumption, the charging times and the power consumption corresponding to each charging in the charging information corresponding to each sub-period; processing the second charging threshold value to obtain a first charging threshold value; determining whether to switch the electronic equipment to a low power consumption state or not according to the first charging threshold and the current electric quantity; if so, controlling the switching circuit of the electronic equipment to be switched off so as to switch the electronic equipment to a low power consumption state, acquiring the residual electric quantity of the electronic equipment, judging whether the residual electric quantity is greater than a preset residual electric threshold value, if so, controlling the switching circuit of the electronic equipment to be switched off, and if not, controlling the switching circuit of the electronic equipment to be switched on so as to continuously charge the electronic equipment; if not, the switching circuit of the electronic equipment is controlled to be conducted, so that the electronic equipment is continuously charged. In the above method. And determining whether the electronic equipment is switched to a low power consumption state or not according to the first charging threshold and the current electric quantity, and if the electronic equipment is determined to be switched to the low power consumption state, controlling a switching circuit of the electronic equipment to be switched off so that the electronic equipment is switched to the low power consumption state, thereby avoiding slow charging of the electronic equipment and improving the charging energy efficiency of the electronic equipment.
On the basis of the above embodiment, the method for determining the second charging threshold according to the present application is described below with reference to the embodiment of fig. 3.
Fig. 3 is a schematic flowchart of determining a second charging threshold according to the present application. As shown in fig. 3, the present embodiment includes:
s300: and acquiring charging information corresponding to a target sub-period, wherein the charging information corresponding to the target sub-period comprises a target power consumption total amount, a target charging frequency and a target power consumption corresponding to each charging.
Wherein the target sub-period is any one of the at least one sub-period.
S301: and judging whether the target total power consumption is less than or equal to the preset power consumption.
If yes, go to step S302.
If not, executing S303 to S305.
Optionally, the preset power consumption may be 70%, 80%, and the like, which is not limited in this application.
S302: and determining the first preset threshold as a second charging threshold corresponding to the target sub-period.
S303: and judging whether the target charging times are less than or equal to the preset times.
If yes, go to step S304.
If not, S305 is executed.
S304: and determining a second preset threshold as a second charging threshold corresponding to the target sub-period.
S305: and judging whether the target power consumption corresponding to each charging is less than or equal to the preset power consumption.
If yes, go to step S302.
If not, go to step S304.
It should be noted that the method for determining the second charging threshold shown in the embodiment of fig. 3 may be used to determine the second charging threshold corresponding to each sub-period.
In the application, the problems that the battery in the electronic equipment is frequently fully charged by a user (the battery is charged to a charging value and is limited to a charging value) to cause the aging speed of the battery to be accelerated, the service life of the battery to be shortened and the like are solved. The application provides two charging prompt interfaces for prompting a user that the current electronic device defaults to a full charge percentage (i.e., the first charging threshold in the above embodiment, for example, 90%, 95%, etc.), and simultaneously meets the requirement of the user on the full charge of the battery, thereby improving the charging experience of the user, reducing the aging speed of the battery, and prolonging the service life of the battery.
Fig. 4 provides a charging prompt interface for the present application. As shown in fig. 4, the charge prompt interface 40 includes: toggle control 41 and close control 42.
The switching control 41 is configured to receive a switching instruction input by a user, where the switching instruction is generated after a long-time pressing operation is performed on the switching control 41 by the user, and the closing control 42 is configured to receive a display canceling instruction input by the user, where the display canceling instruction may be generated after a clicking operation is performed on the closing control 42 by the user.
In practical applications, if the user presses the switching control 41 for a long time, the current full charge percentage is switched to the target full charge percentage. For example, when the current full charge percentage is 90%, if the user presses the switch control 41 for a long time, the current full charge percentage 90% is switched to the target full charge percentage 100%.
In practical applications, if the user clicks the close control 42, the charging prompt interface 40 is not displayed.
FIG. 5 provides another charge reminder interface for the present application. As shown in fig. 5, the charging prompt interface 50 includes: a first control 51 and a second control 52.
The first control 51 is used for receiving a selection instruction input by a user, and the selection instruction is generated after the user performs a click operation on the first control 51. The second control 52 is configured to receive a no-selection instruction input by the user, where the no-selection instruction is generated after the user performs a click operation on the second control 52.
In practical applications, if the user clicks the first control 51, the current full percentage of 90% may be maintained, and no switching is performed. Alternatively, if the user clicks on the second control 52, the charging prompt interface 50 may be automatically dismissed.
In practical applications, if the user clicks the second control 52, the current full charge percentage 90% may be switched to the target full charge percentage 100%. Alternatively, if the user clicks the first control 51, the charging prompt interface 50 may be automatically canceled from being displayed.
Optionally, when the electronic device starts to be charged, if the current electric quantity of the electronic device is greater than or equal to the current full charge percentage 90%, a charging prompt interface shown in fig. 4 or 5 may be displayed. In the charging process, if the current electric quantity of the electronic device is equal to the current full charge percentage, the charging prompt interface shown in fig. 4 or fig. 5 may be displayed.
It should be noted that the charging prompt interfaces shown in fig. 4 and fig. 5 are only exemplary illustrations of the charging prompt interface, and are not limited to the charging prompt interface, and in practical applications, the charging prompt interface may be designed according to requirements.
Fig. 6 is a schematic structural diagram of a charge control device provided in the present application. As shown in fig. 6, the charge control device 60 includes: an acquisition module 61, a determination module 62, and a control module 63, wherein,
the obtaining module 61 is configured to, in a charging process of the electronic device, obtain charging information of the electronic device in a historical time period and a current electric quantity at a current time, where the electronic device is in a high power consumption state in the charging process;
the determining module 62 is configured to determine whether to switch the electronic device to the low power consumption state according to the charging information and the current power amount.
The control module 63 is configured to, if it is determined that the electronic device is switched to the low power consumption state, control the switching circuit of the electronic device to be turned off, so that the electronic device is switched to the low power consumption state.
The charging control device provided by the present application can implement the technical solutions shown in the above method embodiments, and the implementation principles and beneficial effects thereof are similar, and are not described herein again.
In one possible design, the determination module 62 is specifically configured to:
processing the charging information to obtain a first charging threshold value;
and determining whether to switch the electronic equipment to a low power consumption state or not according to the first charging threshold and the current electric quantity.
In one possible design, the historical period includes at least one sub-period, and the determining module 62 is specifically configured to:
determining charging information corresponding to each sub-period in the charging information, wherein the charging information comprises the total power consumption, the charging times and the power consumption corresponding to each charging;
determining a second charging threshold corresponding to each sub-period according to the total power consumption, the charging times and the power consumption corresponding to each charging in the charging information corresponding to each sub-period;
and processing the second charging threshold value to obtain a first charging threshold value.
In one possible design, for any target sub-period in the at least one sub-period, the charging information corresponding to the target sub-period includes a target total power consumption amount, a target charging number and a target power consumption amount corresponding to each charging; the determining module 62 is specifically configured to:
if the target total power consumption is less than or equal to the preset power consumption, determining the first preset threshold as a second charging threshold corresponding to the target sub-period,
and if the total target power consumption is larger than the preset power consumption, determining a second charging threshold corresponding to the target sub-period according to the target charging times and the target power consumption corresponding to each charging.
In one possible design, the determination module 62 is specifically configured to:
if the target charging times are less than or equal to the preset times, determining a second preset threshold as a second charging threshold corresponding to the target sub-period;
if the target charging times are larger than the preset times, when the target power consumption corresponding to each charging is smaller than or equal to the preset power consumption, determining the first preset threshold as a second charging threshold corresponding to the target sub-period, and when one target power consumption in the target power consumption corresponding to each charging is larger than the preset power consumption, determining the second preset threshold as a second charging threshold corresponding to the target sub-period.
In one possible design, the determination module 62 is specifically configured to:
acquiring a first probability when a second charging threshold is a first preset threshold and a second probability when the second charging threshold is a second preset threshold;
if the first probability is larger than or equal to the second probability, determining a first preset threshold as a first charging threshold;
and if the first probability is smaller than the second probability, determining a second preset threshold as the first charging threshold.
In one possible design, the control module is further configured to obtain the remaining power of the electronic device after the switch circuit of the electronic device is turned off;
and if the residual electric quantity is less than or equal to the preset residual electric threshold value, controlling the switch circuit of the electronic equipment to be switched on.
Fig. 7 is a first schematic structural diagram of an electronic device provided in the present application. As shown in fig. 7, the electronic apparatus 70 includes: a processor 71, a controller 72, a switching circuit 73, and a memory 74, wherein the processor 71 is connected to the controller 72, the switching circuit 73, and the memory 74, respectively, and the controller 72 is connected to the switching circuit 73 and the memory 74, respectively, wherein,
the memory 74 stores computer-executable instructions;
the processor 71 executes computer-executable instructions that cause the processor to perform the charging control method of any of the method embodiments described below.
It should be understood that the Processor 71 may be a Central Processing Unit (CPU), other general purpose Processor, a Digital Signal Processor (DSP), an Application Specific Integrated Circuit (ASIC), etc. A general purpose processor may be a microprocessor or the processor may be any conventional processor or the like. The steps of a method disclosed in connection with the present invention may be embodied directly in a hardware processor, or in a combination of the hardware and software modules within the processor.
Wherein, the external charger can be connected with the switch circuit 73 through USB, the controller 72 is also connected with the battery, when the switch circuit 73 is disconnected, the electric signal provided by the charger to the electronic device through USB can not be provided to the battery through the controller 72, when the switch circuit 73 is connected, the electric signal provided by the charger to the electronic device through USB can be provided to the battery through the controller 72.
Specifically, the processor 71 may send an open signal to the switch circuit 73, so that the switch circuit 73 is opened according to the open signal, thereby realizing opening of the switch circuit of the control electronic device, and the processor 71 may send a close signal to the switch circuit 73, so that the switch circuit 73 is turned on according to the close signal, thereby realizing turning on of the switch circuit of the control electronic device.
It should be noted that, by controlling the switching circuit of the electronic device to be turned off, the electronic device can be switched to the low power consumption state, and by controlling the switching circuit of the electronic device to be turned on, the electronic device can be switched to the high power consumption state.
Optionally, the controller 72 may report, to the processor 71, a total power consumption amount, a charging number, and a power consumption amount corresponding to each charging in the charging information corresponding to each sub-period, so that the processor 71 may write the charging information corresponding to each sub-period into the memory 74, and the controller 72 may further detect, when the processor 71 needs to obtain the current power amount, the power amount of the battery to obtain the current power amount, and send the current power amount to the processor 71.
The memory 74 may comprise high speed RAM memory and may also include non-volatile storage NVM, such as at least one disk memory.
The processor in the electronic device 70 provided in this embodiment may execute the technical solutions shown in the above method embodiments, and the implementation principle and the beneficial effects are similar, which are not described herein again.
Fig. 8 is a schematic structural diagram of an electronic device provided in the present application. In addition to fig. 7, as shown in fig. 8, the switch circuit 73 includes: a switch 731, a diode 732, a triode 733 and a resistor 734, wherein a first terminal 1 of the switch 731 is connected to the controller 72, a second terminal 2 of the switch 731 is connected to a third terminal 3 of the switch 731 and a cathode of the diode 732, respectively, and a fourth terminal 4 of the switch 731 is connected to an anode of the diode 732 and a collector of the triode 733, respectively;
the base of the triode 733 is connected to the processor 71 through a resistor 734, and the emitter of the triode 733 is grounded.
Specifically, when the processor 71 determines that the current power is less than or equal to the first charging threshold, a close signal (i.e., a high level) is sent to the triode 733 through the preset pin (GPIO _36), the triode 733 is turned on after receiving the close signal, and the contact a and the contact C of the switch 731 are connected, so that the electric signal provided by the charger to the electronic device through the USB can be provided to the battery through the controller 72. When the processor 71 determines that the current power is greater than the first charging threshold, the preset pin (GPIO _36) is used to send a disconnection signal (i.e., low level) to the triode 733, the triode 733 is disconnected after receiving the disconnection signal, and the contacts a and B of the switch 731 are connected, so that the electric signal provided by the charger to the electronic device through the USB cannot be provided to the battery through the controller 72.
The processor in the electronic device 70 provided in this embodiment may execute the technical solutions shown in the above method embodiments, and the implementation principle and the beneficial effects are similar, which are not described herein again.
The application also provides a computer-readable storage medium, wherein computer-executable instructions are stored in the computer-readable storage medium, and when the processor executes the computer-executable instructions, the charging control method is realized.
The computer-readable storage medium may be implemented by any type of volatile or non-volatile memory device or combination thereof, such as Static Random Access Memory (SRAM), electrically erasable programmable read-only memory (EEPROM), erasable programmable read-only memory (EPROM), programmable read-only memory (PROM), read-only memory (ROM), magnetic memory, flash memory, magnetic or optical disk. Readable storage media can be any available media that can be accessed by a general purpose or special purpose computer.
An exemplary readable storage medium is coupled to the processor such the processor can read information from, and write information to, the readable storage medium. Of course, the readable storage medium may also be an integral part of the processor. The processor and the readable storage medium may reside in an Application Specific Integrated Circuits (ASIC). Of course, the processor and the readable storage medium may also reside as discrete components in the apparatus.
The division of the unit is only a logical division, and other division ways are possible in actual implementation, for example, a plurality of units or components may be combined or integrated into another system, or some features may be omitted or not executed. In addition, the shown or discussed mutual coupling or direct coupling or communication connection may be an indirect coupling or communication connection through some interfaces, devices or units, and may be in an electrical, mechanical or other form.
Units described as separate parts may or may not be physically separate, and parts displayed as units may or may not be physical units, may be located in one place, or may be distributed on a plurality of network units. Some or all of the units can be selected according to actual needs to achieve the purpose of the solution of the embodiment.
In addition, functional units in the embodiments of the present invention may be integrated into one processing unit, or each unit may exist alone physically, or two or more units are integrated into one unit.
The functions, if implemented in the form of software functional units and sold or used as a stand-alone product, may be stored in a computer readable storage medium. Based on such understanding, the technical solution of the present invention may be embodied in the form of a software product, which is stored in a storage medium and includes instructions for causing a computer device (which may be a personal computer, a server, or a network device) to execute all or part of the steps of the method according to the embodiments of the present invention. And the aforementioned storage medium includes: a U-disk, a removable hard disk, a Read-Only Memory (ROM), a Random Access Memory (RAM), a magnetic disk or an optical disk, and other various media capable of storing program codes.
Those of ordinary skill in the art will understand that: all or a portion of the steps of implementing the above-described method embodiments may be performed by hardware associated with program instructions. The program may be stored in a computer-readable storage medium. When executed, the program performs steps comprising the method embodiments described above; and the aforementioned storage medium includes: various media that can store program codes, such as ROM, RAM, magnetic or optical disks.
Finally, it should be noted that: the above embodiments are only used to illustrate the technical solution of the present invention, and not to limit the same; while the invention has been described in detail and with reference to the foregoing embodiments, it will be understood by those skilled in the art that: the technical solutions described in the foregoing embodiments may still be modified, or some or all of the technical features may be equivalently replaced; and the modifications or the substitutions do not make the essence of the corresponding technical solutions depart from the scope of the technical solutions of the embodiments of the present invention.

Claims (10)

1. A charge control method, comprising:
in the charging process of the electronic equipment, acquiring the current electric quantity of the electronic equipment and charging information in a historical time period, wherein the electronic equipment is in a high power consumption state in the charging process;
determining whether to switch the electronic equipment to a low power consumption state or not according to the charging information and the current electric quantity;
and if the electronic equipment is determined to be switched to the low power consumption state, controlling a switching circuit of the electronic equipment to be switched off so as to switch the electronic equipment to the low power consumption state.
2. The method of claim 1, wherein determining whether to switch the electronic device to a low power consumption state according to the charging information and the current power amount comprises:
processing the charging information to obtain a first charging threshold value;
and determining whether to switch the electronic equipment to a low power consumption state or not according to the first charging threshold and the current electric quantity.
3. The method of claim 2, wherein the historical period comprises at least one sub-period; processing the charging information to obtain a first charging threshold, including:
determining charging information corresponding to each sub-period in the charging information, wherein the charging information comprises the total power consumption, the charging times and the power consumption corresponding to each charging;
determining a second charging threshold corresponding to each sub-period according to the total power consumption, the charging times and the power consumption corresponding to each charging in the charging information corresponding to each sub-period;
and processing the second charging threshold value to obtain the first charging threshold value.
4. The method according to claim 3, wherein for any target sub-period in the at least one sub-period, the charging information corresponding to the target sub-period comprises a target total power consumption amount, a target charging number and a target power consumption amount corresponding to each charging; determining a second charging threshold corresponding to a target sub-period according to the target power consumption total, the target charging times and the target power consumption corresponding to each charging, including:
if the target total power consumption is less than or equal to the preset power consumption, determining a first preset threshold as a second charging threshold corresponding to the target sub-period,
and if the total target power consumption is larger than the preset power consumption, determining a second charging threshold corresponding to a target sub-period according to the target charging times and the target power consumption corresponding to each charging.
5. The method of claim 4, wherein determining the second charging threshold for the target sub-period based on the target number of charges and the target amount of power consumed for each charge comprises:
if the target charging times are less than or equal to preset times, determining a second preset threshold as a second charging threshold corresponding to the target sub-period;
if the target charging times are larger than the preset times, when the target power consumption amount corresponding to each charging is smaller than or equal to the preset power consumption amount, determining the first preset threshold value as a second charging threshold value corresponding to the target sub-period, and when one target power consumption amount existing in the target power consumption amount corresponding to each charging is larger than the preset power consumption amount, determining the second preset threshold value as a second charging threshold value corresponding to the target sub-period.
6. The method of claim 5, wherein processing the second charging threshold to obtain the first charging threshold comprises:
acquiring a first probability when the second charging threshold is the first preset threshold and a second probability when the second charging threshold is the second preset threshold;
if the first probability is greater than or equal to the second probability, determining the first preset threshold as the first charging threshold;
if the first probability is smaller than the second probability, determining the second preset threshold as the first charging threshold.
7. The method according to any one of claims 1 to 6, wherein after controlling the switching circuit of the electronic device to be opened, further comprising:
acquiring the residual electric quantity of the electronic equipment;
and if the residual electric quantity is less than or equal to a preset residual electric threshold value, controlling a switch circuit of the electronic equipment to be conducted.
8. A charge control device, characterized in that the device comprises: an acquisition module, a determination module, and a control module, wherein,
the acquisition module is used for acquiring the charging information of the electronic equipment in a historical time period and the current electric quantity at the current moment in the charging process of the electronic equipment, and the electronic equipment is in a high power consumption state in the charging process;
the determining module is used for determining whether to switch the electronic equipment to a low power consumption state according to the charging information and the current electric quantity;
the control module is used for controlling the switching circuit of the electronic equipment to be switched off if the electronic equipment is determined to be switched to the low power consumption state, so that the electronic equipment is switched to the low power consumption state.
9. An electronic device, comprising: a processor, a controller, a switch circuit and a memory, wherein the processor is connected with the controller, the switch circuit and the memory respectively, the controller is connected with the switch circuit and the memory respectively, wherein,
the memory stores computer-executable instructions;
the processor executes the computer-executable instructions to cause the processor to perform the charging control method of any one of claims 1 to 7.
10. The apparatus of claim 9, wherein the switching circuit comprises: a switch, a diode, a triode, and a resistor, wherein,
the first end of the switch is connected with the controller, the second end of the switch is respectively connected with the third end of the switch and the cathode of the diode, and the fourth end of the switch is respectively connected with the anode of the diode and the collector of the triode;
the base electrode of the triode is connected with the processor through the resistor, and the emitting electrode of the triode is grounded.
CN202010498072.9A 2020-06-04 2020-06-04 Charging control method, device and equipment Active CN111600355B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202010498072.9A CN111600355B (en) 2020-06-04 2020-06-04 Charging control method, device and equipment

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202010498072.9A CN111600355B (en) 2020-06-04 2020-06-04 Charging control method, device and equipment

Publications (2)

Publication Number Publication Date
CN111600355A true CN111600355A (en) 2020-08-28
CN111600355B CN111600355B (en) 2021-09-28

Family

ID=72192339

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202010498072.9A Active CN111600355B (en) 2020-06-04 2020-06-04 Charging control method, device and equipment

Country Status (1)

Country Link
CN (1) CN111600355B (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113220106A (en) * 2021-05-10 2021-08-06 维沃移动通信有限公司 Power saving control method and power saving control device

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20130009468A1 (en) * 2011-07-05 2013-01-10 Fujitsu Limited Electronic apparatus, and charging control method
CN109256835A (en) * 2018-10-16 2019-01-22 深圳壹账通智能科技有限公司 A kind of charge control method of mobile terminal, storage medium and mobile terminal
CN110429672A (en) * 2019-07-15 2019-11-08 百富计算机技术(深圳)有限公司 Battery charging management method, terminal device and storage medium
CN110568916A (en) * 2019-09-06 2019-12-13 秒针信息技术有限公司 Control method and device for equipment charging, electronic equipment and storage medium
CN111063955A (en) * 2019-12-27 2020-04-24 Oppo广东移动通信有限公司 Charging method and device, equipment and storage medium
CN111106400A (en) * 2019-12-27 2020-05-05 联想(北京)有限公司 Battery control method and battery management equipment

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20130009468A1 (en) * 2011-07-05 2013-01-10 Fujitsu Limited Electronic apparatus, and charging control method
CN109256835A (en) * 2018-10-16 2019-01-22 深圳壹账通智能科技有限公司 A kind of charge control method of mobile terminal, storage medium and mobile terminal
CN110429672A (en) * 2019-07-15 2019-11-08 百富计算机技术(深圳)有限公司 Battery charging management method, terminal device and storage medium
CN110568916A (en) * 2019-09-06 2019-12-13 秒针信息技术有限公司 Control method and device for equipment charging, electronic equipment and storage medium
CN111063955A (en) * 2019-12-27 2020-04-24 Oppo广东移动通信有限公司 Charging method and device, equipment and storage medium
CN111106400A (en) * 2019-12-27 2020-05-05 联想(北京)有限公司 Battery control method and battery management equipment

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113220106A (en) * 2021-05-10 2021-08-06 维沃移动通信有限公司 Power saving control method and power saving control device
CN113220106B (en) * 2021-05-10 2024-05-14 维沃移动通信有限公司 Power saving control method and power saving control device

Also Published As

Publication number Publication date
CN111600355B (en) 2021-09-28

Similar Documents

Publication Publication Date Title
WO2021190320A1 (en) Battery charging protection method and charging protection apparatus, mobile terminal, and storage medium
WO2021008403A1 (en) Battery charging management method, terminal device, and storage medium
CN112542863B (en) Charging method and device, and readable storage medium
US8063608B2 (en) Method and apparatus of charge management for battery in mobile terminal
WO2022218046A1 (en) Battery charging method and electronic device
CN110554945A (en) electric quantity control method, electronic equipment and computer readable storage medium
CN110416643B (en) Processing method and device and electronic equipment
CN101924384A (en) Mobile terminal and charging protection method and device thereof
CN111600355B (en) Charging control method, device and equipment
CN105576753A (en) Information processing method and electronic equipment
CN110365084B (en) Charging control method, device, terminal and storage medium
CN202759507U (en) A smart phone
CN110783970A (en) Charging method, charging device, charging terminal and computer readable storage medium
CN113961060B (en) Electronic device and electric quantity management method thereof
CN110308780B (en) Battery management method, system, terminal device and storage medium
CN111613840B (en) Portable electronic device and battery power management method thereof
CN104348140A (en) Low electric quantity prompting method and electronic equipment
CN111049229A (en) Electronic equipment, charging control method and device and power management chip
CN112349973A (en) Battery module, charging method and device, electronic device and readable storage medium
CN113690960B (en) Lithium battery management method and device and related components
CN108232346B (en) Charging method and device
CN108351386B (en) Electric quantity value calculation method, electronic equipment and storage medium
CN112448429B (en) Control method, terminal and computer storage medium
CN110427092B (en) Battery switching method, device, terminal and computer readable storage medium
CN110148992B (en) Charging control method, terminal device and storage medium

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant