CN117117998A - Device charging control method, device, electronic device and readable storage medium - Google Patents

Device charging control method, device, electronic device and readable storage medium Download PDF

Info

Publication number
CN117117998A
CN117117998A CN202210539845.2A CN202210539845A CN117117998A CN 117117998 A CN117117998 A CN 117117998A CN 202210539845 A CN202210539845 A CN 202210539845A CN 117117998 A CN117117998 A CN 117117998A
Authority
CN
China
Prior art keywords
charging
historical
parameter
time
electric quantity
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.)
Pending
Application number
CN202210539845.2A
Other languages
Chinese (zh)
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.)
Huizhou TCL Mobile Communication Co Ltd
Original Assignee
Huizhou TCL Mobile Communication Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Huizhou TCL Mobile Communication Co Ltd filed Critical Huizhou TCL Mobile Communication Co Ltd
Priority to CN202210539845.2A priority Critical patent/CN117117998A/en
Publication of CN117117998A publication Critical patent/CN117117998A/en
Pending legal-status Critical Current

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/007Regulation of charging or discharging current or voltage
    • H02J7/00712Regulation of charging or discharging current or voltage the cycle being controlled or terminated in response to electric parameters
    • 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]

Landscapes

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

Abstract

The embodiment of the application discloses a device charging control method, a device, electronic equipment and a readable storage medium; in the embodiment of the application, the charging parameters corresponding to the electric quantity of the electronic equipment reaching the first electric quantity threshold value in the charging process are obtained; when the electric quantity of the electronic equipment reaches a second electric quantity threshold value, suspending charging of the electronic equipment; acquiring a historical charging information set of the electronic equipment, wherein the historical charging information set comprises historical charging parameters corresponding to the electronic equipment when the electric quantity reaches a first electric quantity threshold value in a historical charging process and the historical charging time required by filling the electronic equipment from a second electric quantity threshold value; determining a predicted time required to fill from the second charge threshold based on a historical charge time corresponding to a historical charge parameter that matches the charge parameter; determining a charge recovery time according to the predicted time and the obtained predicted charge ending time; and restoring the charge to the electronic device based on the charge restoration time. The embodiment of the application can obtain the predicted time more accurately.

Description

Device charging control method, device, electronic device and readable storage medium
Technical Field
The present application relates to the field of charging technologies, and in particular, to a device charging control method, a device, an electronic device, and a readable storage medium.
Background
With the development of science and technology, electronic devices are becoming popular with users, and users are also focusing on the life of batteries of electronic devices. However, if the electronic device is charged for a long time, the aging degree of the battery of the electronic device is accelerated, thereby shortening the life of the battery.
In order not to shorten the life of the battery, the charging time of the electronic device is predicted, and then the charging of the electronic device is controlled according to the predicted time, however, the accuracy of the current method for predicting the charging time of the electronic device is low.
Disclosure of Invention
The embodiment of the application provides a device charging control method, a device, an electronic device and a readable storage medium, which can solve the technical problem that the accuracy of the current method for predicting the charging time of the electronic device is low.
A device charge control method, comprising:
acquiring a charging parameter corresponding to the electric quantity of the electronic equipment in the charging process reaching a first electric quantity threshold value;
when the electric quantity of the electronic equipment reaches a second electric quantity threshold value, suspending charging of the electronic equipment;
Acquiring a historical charging information set of the electronic equipment, wherein the historical charging information set comprises a historical charging parameter corresponding to the electronic equipment when the electric quantity reaches the first electric quantity threshold value in the historical charging process and a historical charging time required by the electronic equipment when the electronic equipment is full of the second electric quantity threshold value;
determining a predicted time required when the second power threshold is full, based on a historical charging time included in a historical charging information set corresponding to a historical charging parameter matched with the charging parameter;
acquiring predicted charge ending time, and determining charge recovery time according to the predicted time and the predicted charge ending time;
and restoring the charging of the electronic device based on the charging restoration time.
Accordingly, an embodiment of the present application provides a device charging control apparatus, including:
the first acquisition module is used for acquiring charging parameters corresponding to the electric quantity of the electronic equipment reaching a first electric quantity threshold value in the charging process;
the charging suspension module is used for suspending the charging of the electronic equipment when the electric quantity of the electronic equipment reaches a second electric quantity threshold value;
the second acquisition module is used for acquiring a historical charging information set of the electronic equipment, wherein the historical charging information set comprises historical charging parameters corresponding to the electronic equipment when the electric quantity reaches the first electric quantity threshold value in the historical charging process and the historical charging time required by the electronic equipment when the electronic equipment is full of the second electric quantity threshold value;
A time determining module, configured to determine a predicted time required when the second power threshold is full, based on a historical charging time included in a historical charging information set corresponding to a historical charging parameter matched with the charging parameter;
the third acquisition module is used for acquiring the predicted charge ending time and determining the charge recovery time according to the predicted time and the predicted charge ending time;
and the charging recovery module is used for recovering the charging of the electronic equipment based on the charging recovery time.
In addition, the embodiment of the application also provides electronic equipment, which comprises a processor and a memory, wherein the memory stores a computer program, and the processor is used for running the computer program in the memory to realize the equipment charging control method provided by the embodiment of the application.
In addition, the embodiment of the application also provides a computer readable storage medium, wherein the computer readable storage medium stores a computer program, and the computer program is suitable for being loaded by a processor to execute any device charging control method provided by the embodiment of the application.
In addition, the embodiment of the application also provides a computer program product, which comprises a computer program, and the computer program realizes any one of the device charging control methods provided by the embodiment of the application when being executed by a processor.
In the embodiment of the application, the corresponding charging parameters when the electric quantity of the electronic equipment reaches the first electric quantity threshold value in the charging process are acquired first. And when the electric quantity of the electronic equipment reaches the second electric quantity threshold value, suspending charging of the electronic equipment. And then acquiring a historical charging information set of the electronic equipment, wherein the historical charging information set comprises corresponding historical charging parameters of the electronic equipment when the electric quantity reaches a first electric quantity threshold value in a historical charging process and the required historical charging time when the electronic equipment is full of the second electric quantity threshold value. Next, a predicted time required to fill from the second charge threshold is determined based on the historical charge time included in the set of historical charge information corresponding to the historical charge parameter that matches the charge parameter. And secondly, acquiring a predicted charge ending time, and determining a charge recovery time according to the predicted time and the predicted charge ending time. And finally, based on the charging recovery time, recovering the charging of the electronic equipment.
That is, in the embodiment of the present application, because the prediction time required when the second electric quantity threshold is full can be obtained more accurately based on the historical charging time included in the historical charging information set corresponding to the historical charging parameter matched with the charging parameter, the charging recovery time obtained according to the prediction time and the predicted charging end time is also more accurate, so that the electronic device can be prevented from being charged for a long time, the time that the electronic device is in a high voltage state (the electronic device is in a high voltage state after being fully charged) is further reduced, and the service life of the battery of the electronic device is prolonged.
Drawings
In order to more clearly illustrate the technical solutions of the embodiments of the present application, 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 application, 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 flow chart of a device charging control method according to an embodiment of the present application;
fig. 2 is a schematic diagram of a charging control process according to an embodiment of the present application;
FIG. 3 is a schematic diagram of a historical charging information set provided by an embodiment of the present application;
FIG. 4 is a schematic diagram of another historical charging information set provided by an embodiment of the present application;
fig. 5 is a schematic diagram of a charge protection state prediction module according to an embodiment of the present application;
FIG. 6 is a schematic diagram of a full charge time prediction module according to an embodiment of the present application;
fig. 7 is a schematic diagram of another device charging control method according to an embodiment of the present application;
FIG. 8 is a schematic diagram of a system framework provided by an embodiment of the present application;
fig. 9 is a schematic structural diagram of a device charging control apparatus according to an embodiment of the present application;
Fig. 10 is a schematic structural diagram of an electronic device according to an embodiment of the present application.
Detailed Description
The following description of the embodiments of the present application will be made clearly and completely with reference to the accompanying drawings, in which it is apparent that the embodiments described are only some embodiments of the present application, but not all embodiments. All other embodiments, which can be made by those skilled in the art based on the embodiments of the application without making any inventive effort, are intended to fall within the scope of the application.
The embodiment of the application provides a device charging control method, a device charging control apparatus, an electronic device and a computer readable storage medium. The device charging control device may be integrated in an electronic device, which may be a server or a device such as a terminal.
The server may be an independent physical server, a server cluster or a distributed system formed by a plurality of physical servers, or a cloud server providing cloud services, cloud databases, cloud computing, cloud functions, cloud storage, network services, cloud communication, middleware services, domain name services, security services, network acceleration services (Content Delivery Network, CDN), basic cloud computing services such as big data and an artificial intelligent platform.
The terminal may be, but is not limited to, a smart phone, a tablet computer, a notebook computer, a desktop computer, a smart speaker, a smart watch, etc. The terminal and the server may be directly or indirectly connected through wired or wireless communication, and the present application is not limited herein.
In addition, "plurality" in the embodiments of the present application means two or more. "first" and "second" and the like in the embodiments of the present application are used for distinguishing descriptions and are not to be construed as implying relative importance.
The following will describe in detail. The following description of the embodiments is not intended to limit the preferred embodiments.
In this embodiment, description will be made from the viewpoint of a device charging control apparatus, which may be specifically integrated in an electronic device, and the electronic device may be a device such as a server or a terminal.
Referring to fig. 1, fig. 1 is a flowchart illustrating a device charging control method according to an embodiment of the application. The device charging control method may include:
s101, acquiring a charging parameter corresponding to the electric quantity of the electronic equipment in the charging process reaching a first electric quantity threshold value.
On the current day, when the electronic device detects that charging is started, the electronic device may acquire a charging parameter corresponding to when the electric quantity of the electronic device reaches a first electric quantity threshold. The charging parameter may be one of a charging current, a charging voltage, and a charging power.
The first power threshold may include one power threshold or may include a plurality of power thresholds, for example, the first power threshold may be 80%, or the first power threshold may include 58%, 59%, and 60%. The present embodiment is not limited herein.
It should be appreciated that the electronic device may be configured to automatically obtain, when the start of charging is detected, a charging parameter corresponding to the electric quantity of the electronic device when the first electric quantity threshold is reached. Or, the electronic device may display a confirmation interface when the start of charging is detected, where the confirmation interface includes a confirmation control, and then, in response to a triggering operation on the confirmation control, the terminal obtains a charging parameter corresponding to the electric quantity of the electronic device when the electric quantity reaches the first electric quantity threshold.
Or the electronic equipment displays a setting interface, the equipment interface comprises a triggering control of time, the electronic equipment obtains protection time in response to triggering operation of the triggering control, and after the protection time is reached, if the electronic equipment detects that charging is started, the electronic equipment obtains charging parameters corresponding to the situation that the electric quantity reaches a first electric quantity threshold value.
At this time, if the time zone in which the position of the electronic device is located changes, the protection time also changes, the electronic device may also acquire the position of the electronic device in real time through the GPS, then determine the time zone of the electronic device according to the position of the electronic device, and finally convert the protection time into a time corresponding to the time zone of the electronic device.
Or, when the electronic device detects that charging is started, whether the electronic device is in a protection charging state or not may be detected, and if the electronic device is in the charging protection state, the electronic device acquires a charging parameter corresponding to when the electric quantity of the electronic device reaches the first electric quantity threshold value.
That is, at this time, before acquiring the charging parameter corresponding to the electric quantity of the electronic device reaching the first electric quantity threshold value in the charging process, the method further includes:
detecting whether the electronic equipment is in a charging protection state;
obtaining a charging parameter corresponding to the electric quantity of the electronic equipment reaching a first electric quantity threshold value in the charging process comprises the following steps:
and if the electronic equipment is in the charging protection state, acquiring a charging parameter corresponding to the electric quantity of the electronic equipment in the charging process reaching a first electric quantity threshold value.
When the electronic device is in the charge protection state, it means that the electronic device may be charged for a long time, for example, when a user using the electronic device is in a sleep state, that is, when the user is in the sleep state, the electronic device is in the charge protection state, and for example, when the electronic device is charging and a user using the electronic device goes out, the electronic device may also be charged for a long time, that is, when the electronic device is not in the charge protection state with the user using the electronic device.
When the electronic equipment is in a charging protection state, the charging parameters corresponding to the first electric quantity threshold value are acquired when the electric quantity of the electronic equipment reaches the first electric quantity threshold value in the charging process, so that the electronic equipment does not need to acquire the charging parameters corresponding to the first electric quantity threshold value every time the electronic equipment detects that the electronic equipment starts to charge, and the occupied computer resources of the electronic equipment are reduced.
Wherein detecting whether the electronic device is in a charge protection state includes:
acquiring attribute information of the electronic equipment, wherein the attribute information comprises at least one of a bright screen state of the electronic equipment, a light sensation value of an environment where the electronic equipment is positioned and a static state of the electronic equipment;
and determining whether the electronic equipment belongs to a charging protection state according to the attribute information.
When a user using the electronic device is in a sleep state, the electronic device can be charged for a long time, so that whether the user using the electronic device is in the sleep state or not can be determined according to at least one of a bright screen state of the electronic device, a light sensation value of an environment where the electronic device is located and a static state of the electronic device, and when the user using the electronic device is in the sleep state, the electronic device is in a charge protection state.
The attribute information of the electronic device may be obtained by a sensor on the electronic device, for example, the electronic device may obtain a motion state of the electronic device by a gyro sensor.
When the attribute information includes a bright screen state of the electronic device, it may be determined that the attribute information satisfies a preset condition when a time of the electronic device in the off screen state exceeds a first preset time threshold, that is, the electronic device is in a charging protection state. Or, the electronic device may count the on-screen state of the electronic device in each time interval to obtain an average off-screen time, and if the average off-screen time exceeds a first preset time threshold, determine that the attribute information meets a preset condition, that is, determine that the electronic device is in a charging protection state.
Or counting the bright screen state and the time stamp of the electronic equipment every day, screening the longest average screen-off time period according to the day or the week, and judging whether the electronic equipment is in a charging protection state according to the GPS of the electronic equipment in the average screen-off time period, the motion state detected by a sensor, whether a doze mechanism is entered or not, and the like for weight analysis or accumulated scoring and the result of the weight analysis or accumulated scoring.
When the attribute information includes a light sensation value of an environment in which the electronic device is located, it may be determined that the attribute information satisfies a preset condition when the light sensation value is less than or equal to a preset light sensation value, that is, it is determined that the electronic device is in a charging protection state, and when the light sensation value is greater than the preset light sensation value, it is determined that the attribute information does not satisfy the preset condition, that is, it is determined that the electronic device is not in the charging protection state.
When the attribute information includes a motion state of the electronic device, it may be determined that the attribute information satisfies a preset condition when a time for which the electronic device remains in a stationary state exceeds a second preset time threshold, that is, it is determined that the electronic device is in a charge protection state, and when the time for which the electronic device remains in the stationary state does not exceed the second preset time threshold, it is determined that the attribute information does not satisfy the preset condition, that is, it is determined that the electronic device is not in the charge protection state.
Optionally, in order to more accurately detect whether the electronic device belongs to the charging protection state, the attribute information may include a bright screen state of the electronic device, a light sensation value of an environment where the electronic device is located, and a static state of the electronic device, that is, at this time, only when the bright screen state of the electronic device, the light sensation value of the environment where the electronic device is located, and the static state of the electronic device all meet preset conditions, it is determined that the electronic device belongs to the charging protection state.
That is, at this time, when the time corresponding to the bright screen state of the electronic device satisfying the preset condition, the time corresponding to the light sensation value of the environment where the electronic device satisfying the preset condition is located, and the time corresponding to the stationary state of the electronic device satisfying the preset condition overlap, it is determined that the electronic device belongs to the charging protection state.
In some embodiments, obtaining attribute information of an electronic device includes:
acquiring a first historical attribute information set of the electronic equipment, and determining a starting prediction time of a charging protection state according to the first historical attribute information set;
determining target ending time according to the starting prediction time;
acquiring attribute information of the electronic equipment according to a preset time period between a preset starting time and a target ending time to obtain an attribute information set;
according to the attribute information, determining whether the electronic device is in a charging protection state includes:
and when the target ending time is reached, determining whether the electronic equipment is in a charging protection state according to the attribute information set.
The first historical attribute information set may include first historical attribute information, alternatively, the first historical attribute information set may include first historical attribute information in a preset time interval, for example, the preset time interval may be first attribute information of the first three days of the current day, then an average value of corresponding times of the first historical attribute information meeting preset conditions in the preset time interval is used as a starting prediction time of a charging protection state of the current day, then a target ending time is determined according to the starting prediction time of the charging protection state, and the target ending time is before the starting prediction time.
For example, in the first three days of the current day, the first historical attribute information collected at 11 pm meets the preset condition, which means that 11 pm in the first three days starts to enter the charging protection state, that is, the current day may also enter the charging protection state at 11 pm in the current day, so the starting prediction time is 11 pm, and the target ending time may be 10 pm in the current day.
Since the starting prediction time of the charging protection state of the current day may be the same as the starting prediction time of the charging protection state of the preset time interval, when the target ending time is reached on the current day, whether the electronic device is in the charging protection state may be determined in advance according to the attribute information set.
In this embodiment, the starting prediction time of the charging protection state is determined according to the first historical attribute information, then the target ending time is determined according to the starting prediction time, and then when the target ending time is reached, whether the electronic device is in the charging protection state is determined according to the attribute information set, so that whether the electronic device is in the charging protection state can be determined in advance according to the attribute information set.
In other embodiments, when the target end time is reached, determining whether the electronic device is in a charge protection state according to the set of attribute information includes:
When the target ending time is reached, acquiring a second historical attribute information set of the electronic equipment;
and determining whether the electronic equipment is in a charging protection state according to the second historical attribute information set matched with the attribute information set.
The second set of historical attribute information may comprise a first set of historical attribute information, i.e. the second set of attribute information may comprise all sets of historical attribute information of the electronic device, the first set of attribute information comprising only sets of historical attribute information of the electronic device in a preset time interval.
Because the target ending time is before the starting prediction time of the charging protection state, that is, the electronic device has not acquired the attribute information corresponding to the charging protection state of the current day, only the attribute information set between the preset starting time and the target ending time is acquired, but the second history attribute information set includes the second history attribute information of each day, that is, the second history attribute information set includes not only the second history attribute information of each day between the preset starting time and the target ending time, but also the second history attribute information of each day corresponding to the charging protection state.
Therefore, when the target ending time is reached, the electronic device may match the second historical attribute information of each day between the preset starting time and the target ending time in the second historical attribute information set with the attribute information in the attribute information set, then use the second historical attribute information corresponding to the charging protection state included in the second historical attribute information set corresponding to the second historical attribute information matched with the attribute information as the first target attribute information, and then determine the actual starting time of the charging protection state of the current day according to the time corresponding to the first target attribute information, where the actual starting time is also the falling time or the leaving time of the user using the electronic device. When the start actual time is reached, the electronic device is in a charge protection state.
For example, as shown in fig. 3, there are a second historical attribute information set a and a second historical attribute information set b, the preset starting time is 12 pm, the target ending time is 22 pm, the second historical attribute information of the second historical attribute information set a between 12 pm and 22 pm is matched with the attribute information in the attribute information set, and the second historical attribute information of the second historical attribute information set b between 12 pm and 22 pm is matched with the attribute information in the attribute information set.
If the second historical attribute information of the second historical attribute information set a between 12 points and 22 points is matched with the attribute information in the attribute information set, since the start time of the charging protection state of the second historical attribute information set a is 22 points, the second historical attribute information corresponding to 22 points in the second historical attribute information set a is the first target attribute information, that is, 22 points are the actual starting time of the charging protection state of the current day.
In this embodiment, whether the electronic device is in the charging protection state may be determined according to the second historical attribute information and the attribute information set of the electronic device. And the attribute information of the electronic equipment is acquired according to a preset time period between the preset starting time and the target ending time to obtain an attribute information set, so that a second historical attribute information set with higher matching degree with the attribute information set can be found, and the matching precision is improved.
It should be understood that after the start actual time when the electronic device is in the charging protection state is obtained, when the start actual time is reached, the electronic device may verify the start actual time, that is, the electronic device may further continuously obtain attribute information corresponding to the start actual time, and then determine whether the attribute information corresponding to the start actual time meets a preset condition, and if yes, determine that the electronic device is actually in the charging protection state. If not, the electronic device may perform a hint operation, thereby achieving a lower misprediction rate.
And S102, when the electric quantity of the electronic equipment reaches a second electric quantity threshold value, suspending charging of the electronic equipment.
The second power threshold may or may not be the same as the first power threshold. The second power threshold may be set according to practical situations, for example, the second power threshold may be set to 80%, that is, when the power of the electronic device is 80%, charging of the electronic device is suspended, as shown in fig. 2, which is not limited herein.
S103, acquiring a historical charging information set of the electronic equipment, wherein the historical charging information set comprises historical charging parameters corresponding to the electronic equipment when the electric quantity reaches a first electric quantity threshold value in a historical charging process and the historical charging time required by the electronic equipment when the electronic equipment is full of a second electric quantity threshold value.
After the electronic device pauses the charging of the electronic device, in order to determine the predicted time required by the electronic device when the electronic device is full from the second electric quantity threshold, the electronic device may acquire a historical charging information set of the electronic device, where the historical charging set includes a historical charging parameter corresponding to when the electric quantity reaches the first electric quantity threshold in the charging process of the electronic device and a historical charging time required by the electronic device when the electronic device is full from the second electric quantity threshold.
It should be appreciated that the historical charging parameters corresponding to each time the electrical quantity reaches the first electrical quantity threshold and the historical charging time required to fill from the second electrical quantity threshold may not be the same in the charging process of the electronic device, and thus, there may be multiple sets of historical charging information for the electronic device.
S104, determining the predicted time required when the second electric quantity threshold is full based on the historical charging time included in the historical charging information set corresponding to the historical charging parameters matched with the charging parameters.
After the electronic device obtains the historical charging information sets and the charging parameters, the electronic device can match the charging parameters with the historical charging parameters in each historical charging information set, so that the historical charging parameters matched with the charging parameters are obtained.
The historical charging parameter matched with the charging parameter may refer to that the difference between the historical charging parameter and the charging parameter is within a preset range, and the historical charging parameter is matched with the charging parameter.
It should be noted that there may be one or more historical charging parameters that match the charging parameters. When there is one of the history charging parameters matching the charging parameters, the history charging time included in the history charging information set corresponding to the history charging parameter matching the charging parameter may be taken as the prediction time required when full from the second electric quantity threshold value.
Since the historical charging time is included in each of the historical charging information sets corresponding to the historical charging parameters that match the charging parameters, when there are a plurality of the historical charging parameters that match the charging parameters, this means that there are a plurality of the historical charging times, at this time, the average value of the historical charging times included in the historical charging information sets corresponding to the historical charging parameters that match the charging parameters may be taken as the prediction time required when full from the second electric quantity threshold. Alternatively, the historical charging time included in the corresponding historical charging information set may be used as the predicted time required when the second electric quantity threshold is full, with the historical charging parameter having the smallest difference from the charging parameter.
In some embodiments, the charging parameters include a first charging parameter of the electronic device and a second charging parameter corresponding to a charger of the electronic device;
before determining the predicted time required to fill from the second charge threshold based on the historical charge time included in the set of historical charge information corresponding to the historical charge parameter that matches the charge parameter, the method further includes:
acquiring priorities of the first charging parameter and the second charging parameter;
and sequentially matching the first charging parameter and the second charging parameter with the historical charging parameter according to the priority.
When the electric quantity of the electronic device reaches the first electric quantity threshold value, the first charging parameter of the electronic device and the second charging parameter of the charger of the electronic device may be different, that is, the second charging parameter is used to represent charging parameters of various types of chargers (the types of chargers may be a fast charging type, a slow charging type, a wireless charger type, a USB charging type, etc.), so in this embodiment, the charging parameters include the first charging parameter of the electronic device and the second charging parameter of the charger, and then the first charging parameter and the second charging parameter are sequentially matched with the historical charging parameter according to the priorities of the first charging parameter and the second charging parameter.
At this time, the historical charging parameters include a first historical charging parameter of the electronic device and a second historical charging parameter corresponding to a charger of the electronic device.
Because the predicted time of the electronic device can be obtained more accurately according to the second charging parameter of the charger, the priority of the second parameter can be set higher than the priority of the first charging parameter, and therefore, in some embodiments, the matching of the first charging parameter and the second charging parameter with the historical charging parameter sequentially according to the priority includes:
Comparing the second charging parameter with the second historical charging parameter;
if the difference value between the second charging parameter and the second historical charging parameter is within the preset range, determining that the second charging parameter is matched with the second historical charging parameter;
if the difference value between the second charging parameter and the second historical charging parameter is not in the preset range, comparing the first charging parameter with the first historical charging parameter.
In this embodiment, during the process of matching the charging parameter with the historical charging parameter in the historical charging information set, the second charging parameter is compared with the second historical charging parameter, if the difference between the second charging parameter and the second historical charging parameter is within the preset range, the second charging parameter is determined to be matched with the second historical charging parameter, and if the difference between the second charging parameter and the second historical charging parameter is not within the preset range, it is indicated that the second charging parameter is not matched with the second historical charging parameter, the first charging parameter is compared with the first historical charging parameter.
It should be noted that, when there are a plurality of sets of history charging information, for example, the sets of history charging information may include a first set of history charging information and a second set of history charging information.
If the second charging parameter does not match the second historical charging parameter of the first historical charging information set, the first charging parameter is compared with the first historical charging parameter of the first historical charging information set, and if the first historical charging parameter and the second historical charging parameter in the first historical charging information set do not match the first charging parameter and the second charging parameter, the first charging parameter and the second charging parameter are compared with the first historical charging parameter and the second historical charging parameter of the second historical charging information set until the second historical charging parameter matched with the second charging parameter is found or the first historical charging parameter matched with the first charging parameter is found to stop comparing.
For example, there are a historical charging information set 1 and a historical charging information set 2, the second charging parameter is compared with the second historical charging parameter in the historical charging information set 1, and if the second charging parameter does not match with the second historical charging parameter in the historical charging information set 1, the first charging parameter is compared with the first historical charging parameter in the historical charging information set 1.
If the first charging parameter does not match the first historical charging parameter in the historical charging information set 1, the second charging parameter is compared with the second historical charging parameter in the historical charging information set 2, if the second charging parameter matches the second historical charging parameter in the historical charging information set 2, the comparison is stopped, and if the second charging parameter does not match the second historical charging parameter in the historical charging information set 2, the first charging parameter is compared with the first historical charging parameter in the historical charging information set 2.
Or if the second charging parameter is not matched with the second historical charging parameter of the first historical charging information set, comparing the second charging parameter with the second historical charging parameter in the second historical charging information set, if all the historical charging information sets are traversed, and if the second historical charging parameter matched with the second charging parameter is not found, comparing the first charging parameter with the first historical charging parameter of the second historical charging information set until the first historical charging parameter matched with the first charging parameter is found.
For example, there are a historical charging information set 1 and a historical charging information set 2, the second charging parameter is compared with the second historical charging parameter in the historical charging information set 1, and if the second charging parameter does not match with the second historical charging parameter in the historical charging information set 1, the second charging parameter is compared with the second historical charging parameter in the historical charging information set 2.
If the second charging parameter does not match the second historical charging parameter in the historical charging information set 2, the first charging parameter is compared with the first historical charging parameter in the historical charging information set 2 because all the historical charging information sets are traversed at the moment, if the first charging parameter matches the first historical charging parameter in the historical charging information set 2, the comparison is stopped, and if the first charging parameter does not match the first historical charging parameter in the historical charging information set 2, the first charging parameter is compared with the first historical charging parameter in the historical charging information set 1.
At this time, determining a predicted time required when the second electric quantity threshold is full from the second electric quantity threshold based on the history charging information set corresponding to the history charging parameter matched with the charging parameter, including the history charging time, includes:
if the second charging parameter is matched with the second historical charging parameter, determining the predicted time required by filling from the second electric quantity threshold according to the historical charging time included in the historical charging information set corresponding to the second historical charging parameter matched with the second charging parameter;
if the second charging parameter is not matched with the second historical charging parameter and the first charging parameter is matched with the first historical charging parameter, determining the prediction time required when the second electric quantity threshold is full according to the historical charging time included in the historical charging information set corresponding to the first historical charging parameter matched with the first charging parameter.
If all the historical charging information sets of the electronic equipment are traversed, a second historical charging parameter matched with the second charging parameter is not found, or a first historical charging parameter matched with the first charging parameter is found, a preset charging time is obtained, and then the preset charging time is used as a prediction time.
In other embodiments, when the second power threshold is different from the first power threshold, the historical charging information set further includes a third historical charging parameter corresponding to when the power of the electronic device reaches the second power threshold during the historical charging process;
After obtaining the charging parameters corresponding to the electric quantity of the electronic equipment reaching the first electric quantity threshold value in the charging process, the method further comprises the following steps:
when the electric quantity of the electronic equipment reaches a second electric quantity threshold value, acquiring a third charging parameter corresponding to the second electric quantity threshold value;
determining a predicted time required to fill from the second charge threshold based on a set of historical charge information corresponding to historical charge parameters matching the charge parameters, including a historical charge time, comprising:
if the second charging parameter is not matched with the second historical charging parameter and the first charging parameter is not matched with the first historical charging parameter, determining the prediction time required by filling the second electric quantity threshold according to the historical charging time included in the historical charging information set corresponding to the third historical charging parameter matched with the third charging parameter.
The historical charging information set may be as shown in fig. 4, from left to right in fig. 4, where the first data represents the second historical charging parameter, the second data represents the first historical charging parameter, the third data represents the third historical charging parameter, and the fourth data represents the historical charging time. For example, the historical charging information set is current_list { ibus (uA), current60 (uA), current80 (uA), full_time (ms) }, where ibus (uA) represents a second historical charging parameter corresponding to a 60% first power threshold, current60 (uA) represents a first historical charging parameter corresponding to a 60% first power threshold, current80 (uA) represents a third charging parameter corresponding to a 80% second power threshold, and full_time (ms) represents a historical charging time.
The second charging parameter is compared to ibus (uA), the first charging parameter is compared to current60 (uA) if the second charging parameter does not match ibus (uA), the third charging parameter is compared to current80 (uA) if the first charging parameter does not match current60 (uA), and the historical charging time included in the set of historical charging information corresponding to the third historical charging parameter matching the third charging parameter is used as the predicted time required to fill from the second charge threshold if the third charging parameter matches current80 (uA).
In this embodiment, the charging parameter corresponding to the first electric quantity threshold and the third charging parameter corresponding to the second electric quantity threshold are obtained at the same time, and then the prediction time is determined according to the charging parameter, the third charging parameter and the historical charging information set, so that the prediction time is found through a plurality of charging parameters, the matching hit rate is improved under the condition that the recognition rate is not reduced, and the accuracy of the prediction time is improved.
In other embodiments, after determining the predicted time required to fill from the second charge threshold according to the historical charging time included in the set of historical charging information corresponding to the third historical charging parameter that matches the third charging parameter if the second charging parameter does not match the second historical charging parameter and the first charging parameter does not match the first historical charging parameter, further comprising:
If the second charging parameter is not matched with the second historical charging parameter, the first charging parameter is not matched with the first historical charging parameter, and the third charging parameter is not matched with the third historical charging parameter, acquiring preset charging time;
and determining the predicted time required when the second electric quantity threshold is full according to the preset charging time.
As the second historical charging parameters matching the second charging parameters, the first historical charging parameters matching the first charging parameters, and the third historical charging parameters matching the third charging parameters may not be found when the charger of the electronic device or the battery of the electronic device is replaced or the battery of the electronic device ages.
Therefore, in the present embodiment, when no matching historical charging parameters are found, the preset charging time is taken as the predicted time.
The preset charging time may be determined according to at least one of a type of a charger, a type of a battery of the electronic device, and a use time of the battery of the electronic device.
In other embodiments, the historical charging time in the historical charging information set may be taken as the prediction time when the second charging parameter in the historical charging information set matches the second historical charging parameter, the first charging parameter matches the first historical charging parameter, and the third charging parameter matches the third historical charging parameter.
Alternatively, when any two parameters in the historical charging information set are matched with the charging parameter and the third charging parameter, the historical charging time in the historical charging information set may be used as the prediction time.
For example, when the second charging parameter in the historical charging information set matches the second historical charging parameter and the first charging parameter matches the first historical charging parameter, the historical charging time in the historical charging information set may be used as the prediction time.
The second charging parameter and the third charging parameter in the historical charging information set may be matched with each other, and the historical charging time in the historical charging information set may be used as the prediction time.
Alternatively, the first charging parameter and the third charging parameter in the historical charging information set may be matched with each other, and the historical charging time in the historical charging information set may be used as the prediction time.
In other embodiments, the first power threshold includes a plurality of power thresholds, each power threshold corresponding to a first sub-charging parameter of the electronic device and a second sub-charging parameter corresponding to the charger;
Obtaining a charging parameter corresponding to the electric quantity of the electronic equipment reaching a first electric quantity threshold value in the charging process comprises the following steps:
determining a first charging parameter according to a first sub-charging parameter of the electronic equipment corresponding to each electric quantity threshold;
determining a second charging parameter according to a second sub-charging parameter corresponding to the charger corresponding to each electric quantity threshold;
and determining a charging parameter corresponding to the electric quantity of the electronic equipment in the charging process reaching a first electric quantity threshold value based on the first charging parameter and the second charging parameter.
The average value of the first sub-charging parameters may be used as the first charging parameter, and the average value of the second sub-charging parameters may be used as the second charging parameter.
Alternatively, the first sub-charging parameters and weights corresponding to the first sub-charging parameters may be multiplied to obtain first multiplication results, and then an average value of each first multiplication result is used as the first charging parameter. Similarly, the second sub-charging parameters and the weights corresponding to the second sub-charging parameters may be multiplied to obtain second multiplication results, and then the average value of each second multiplication result is used as the second charging parameter.
For example, the charging parameters are charging currents, the first electric quantity threshold includes 58% of the electric quantity threshold, 59% of the electric quantity threshold and 60% of the electric quantity threshold, and the first sub-charging parameters may be charging currents corresponding to the electronic device when the electric quantity of the electronic device reaches 58%, charging currents corresponding to the electronic device when the electric quantity of the electronic device reaches 59%, and charging currents corresponding to the electronic device when the electric quantity of the electronic device reaches 60%, and the second sub-charging parameters may be charging currents corresponding to the charger when the electric quantity of the electronic device reaches 58%, charging currents corresponding to the charger when the electric quantity of the electronic device reaches 59%, and charging currents corresponding to the charger when the electric quantity of the electronic device reaches 60%.
The first charging parameter may be a charging current corresponding to the electronic device when the electric quantity of the electronic device reaches 58%, a charging current corresponding to the electronic device when the electric quantity of the electronic device reaches 59%, and an average current of the charging currents corresponding to the electronic device when the electric quantity of the electronic device reaches 60%, and the second charging parameter may be a charging current corresponding to the charger when the electric quantity of the electronic device reaches 58%, a charging current corresponding to the charger when the electric quantity of the electronic device reaches 59%, and an average current of the charging currents corresponding to the charger when the electric quantity of the electronic device reaches 60%.
That is, at this time, the history charge information set may be current_list { (ibus 58+ibus59+ibus 60)/3, (current 58+current59+current 60)/3, current80, full_time (ms) }.
After the first charging parameter and the second charging parameter are obtained, the first charging parameter and the second charging parameter can be used as charging parameters corresponding to the situation that the electric quantity of the electronic equipment reaches the first electric quantity threshold value in the charging process. Or, after multiplying the first charging parameter by the weight corresponding to the first charging parameter, obtaining a first parameter result, multiplying the second charging parameter by the weight corresponding to the second charging parameter, obtaining a second parameter result, and then using the first parameter result and the second parameter result as charging parameters corresponding to the electric quantity of the electronic equipment reaching the first electric quantity threshold value in the charging process.
In this embodiment, the first power threshold includes a plurality of power thresholds, each power threshold corresponds to a first sub-charging parameter of the electronic device and a second sub-charging parameter corresponding to the charger, then the first charging parameter is determined according to the first sub-charging parameter of the electronic device corresponding to each power threshold, the second charging parameter is determined according to the second sub-charging parameter corresponding to the charger corresponding to each power threshold, and finally the charging parameter corresponding to the electronic device when the power reaches the first power threshold in the charging process is determined based on the first charging parameter and the second charging parameter, so that the obtained charging parameter is more accurate.
S105, acquiring predicted charge ending time, and determining charge recovery time according to the predicted time and the predicted charge ending time.
The process of determining the charge recovery time according to the predicted time and the predicted charge end time may be: and obtaining full charge insurance time, subtracting the predicted time from the predicted charging end time to obtain a first difference value, and subtracting the full charge insurance time from the first difference value to obtain charging recovery time.
The predicted charge time may determine the predicted charge end time based on habit data of a user using the electronic device. For example, the predicted time is 1 hour, according to the sleeping habit of the user, the user is predicted to wake up at 7 hours in the morning, and the full charge insurance time is 1 hour, then the charging recovery time can be 5 hours in the morning, that is, the time of full charge of the electronic device and the predicted charging end time differ by 1 hour, so that even if the predicted time has an error, the full charge before the predicted charging end time can be ensured.
Optionally, at this time, the electronic device may also display a notification message. For example, the communication message may be: to extend the battery life, the charge is suspended, and the charge is expected to be resumed at the charge resume time, if the charge needs to be continued to 100%, the charge is resumed by clicking.
In some embodiments, obtaining the predicted charge end time includes:
and determining the predicted charging end time according to the second historical attribute information set matched with the attribute information set.
Because the second set of historical attribute information matching the set of attribute information has been found, the end time of the charge protection state in the second set of historical attribute information matching the set of attribute information may be determined and then the end time of the charge protection state in the second set of historical attribute information matching the set of attribute information is taken as the predicted charge end time of the charge protection state on the current day.
For example, as shown in fig. 3, if the second history attribute information of the second history attribute information set a matches the attribute information in the attribute information set between 12 and 22 points, since the charge protection end time of the second history attribute information set a is 6 a.m., the predicted charge end time of the current day.
In this embodiment, the start actual time and the predicted charge ending time of the charge protection state may be determined according to the second historical attribute information and the attribute information set of the electronic device, so that the predicted charge ending time may be obtained more accurately, and whether the electronic device is in the charge protection state may be determined more accurately.
In this embodiment, the predicted time and the predicted charging end time are obtained more accurately, so that the charging mechanism is more accurate, and the low error rate is realized, so that the aging speed of the battery is not increased, the service life of the battery is further prolonged, and full charge before the end of the charging protection state is ensured.
In addition, the electronic equipment can also acquire alarm clock information, the predicted charging end time is determined according to the alarm clock information, if the difference between the alarm clock information and the predicted charging end time meets the time difference, the predicted charging end time is accurate, the weight of the predicted charging end time can be increased, so that the predicted time can be found more accurately, and the matching rate is increased.
In another embodiment, after determining the predicted charge ending time based on the second set of historical attribute information matching the set of attribute information, further comprising:
Acquiring actual charging end time;
and updating the second historical attribute information set matched with the attribute information set according to the actual charging ending time to obtain an updated second historical attribute information set.
Since the predicted charging end time is obtained according to the second historical attribute information set and is not the actual charging end time of the electronic device, that is, the actual charging end time is the wake-up time or the return time of the user using the electronic device, may be obtained later, and then the second historical attribute information set matched with the attribute information set is updated according to the actual charging end time, so as to obtain the updated second historical attribute information set.
Because the attribute information corresponding to the charging protection state is inconsistent with the second historical attribute information of the charging protection state in the second historical attribute information set when the actual charging end time is inconsistent with the predicted charging end time, the process of updating the second historical attribute information set matched with the attribute information set according to the actual charging end time to obtain the updated second historical attribute information set may be:
And taking the average value of the attribute information corresponding to the charging protection state and the second historical attribute information of the charging protection state in the second historical attribute information set as the updated second historical attribute information corresponding to the charging protection state in the second historical attribute information set, so that the predicted charging end time can be obtained more accurately according to the updated second historical attribute information set.
For example, as shown in fig. 5, when the charge protection state is the sleep state, the predicted charge end time may be determined by the charge protection state prediction module.
Since there may be multiple users using one electronic device, habit data of different users may be different, that is, second historical attribute information sets of different users may be different, acquiring the second historical attribute information sets of the electronic device may include:
determining a current user of the electronic device;
a second set of historical attribute information for the currently-used user is obtained.
In this embodiment, when there are multiple users in the electronic device, the current user of the electronic device is determined first, and then a second historical attribute information set of the current user is obtained, so that the number of second historical attribute information sets matched with the attribute information sets is reduced, and the second historical attribute information sets matched with the attribute information sets are obtained more quickly.
If the user unlocks the electronic device through the biometric feature, the electronic device may determine the identity of the currently used user according to the biometric feature (e.g., the biometric feature may be a fingerprint of the user or a facial image of the user), and then obtain the second set of historical attribute information corresponding to the currently used user according to the identity of the currently used user.
If the user does not unlock the electronic device through the biological feature, when the electronic device is detected to start charging, the electronic device may display an identity interface, where the identity interface may include an identification of a user of the electronic device, and in response to a selection operation of the identification of the user, obtain a second set of historical attribute information of the identification of the user corresponding to the selection operation.
It should be appreciated that when the charge protection state is the sleep state, the same second set of history attribute information of the user may also be used to represent different sleep models, for example, the sleep models may include a workday model, a weekend model, an outdoor model, a business trip model, a reverse day-night shift model, and the like, and then there is a corresponding second set of history attribute information for each sleep model, and the corresponding second set of history attribute information for the workday model may be as shown in fig. 3. When a second set of historical attribute information matching the set of attribute information is not found, which also means that a new sleep model is present, the charging parameters are stored as historical charging parameters.
And S106, based on the charge recovery time, recovering the charge of the electronic equipment.
And after the electronic equipment obtains the charging recovery time, when the charging recovery time is reached, the electronic equipment is recovered to be charged.
At this time, the electronic device may also display a reminder message, for example, the reminder message may be: "in-use mode, it is expected that the first difference is full. Also, at this time, the electronic device may also turn off some programs on the electronic device, for example, the electronic device may turn off a global positioning system (Global Positioning System, GPS), a Bit Torrent protocol (BT), near field communication (Near Field Communication, NFC), a Sensor (Sensor), a hot spot WiFi Ap, and the like on the electronic device, thereby accelerating charging.
It should be understood that the electronic device may also filter the error state, filter the error state if the sum of the predicted time, the charging life time, and the charging recovery time is greater than the predicted charging end time, and then not perform S102, or resume charging the electronic device if S102 is performed.
Optionally, when the electronic device detects that the electronic device is not in a pure state of charge, the electronic device may resume charging the electronic device or not suspend charging the electronic device, or alternatively, a prompt interface may be executed, where the prompt interface includes an exit control, and then the electronic device resumes charging the electronic device (if in a non-pure state of charge after the power reaches the second power threshold) or does not suspend charging the electronic device (if in a non-pure state of charge before the power reaches the second power threshold) in response to a triggering operation of the exit control.
When the electric quantity of the electronic equipment is between the first electric quantity threshold value and full power, if the electronic equipment detects that the parameters (such as charging current) of the electronic equipment for charging are greatly changed, the electronic equipment is judged to be in an unclean charging state.
For example, when the electric quantity of the electronic device is between 58% and 100%, if the electronic device detects an operation of lighting a screen, plugging in and out a USB, downloading or playing video, playing music, counting steps or talking, etc., which causes a large change in parameters of charging the electronic device, the charging of the electronic device is resumed or the charging of the electronic device is not suspended.
In the related art, the prediction time is generally estimated by combining the average time required for each full cell of electricity before the second electric quantity threshold is reached and how much electric quantity is worse than the full cell of electricity. However, if the charger is changed, or the electronic device is in an unclean charging environment, the charging time of each cell is greatly different, so that the prediction time is inaccurate.
When the predicted time is much smaller than the target time actually consumed when the second electric quantity threshold is full, the user cannot fully charge the battery, and when the predicted time is much larger than the target time, the time reserved for stopping charging is shortened, and the service life of the battery is shortened.
In this embodiment, because the prediction time required when the second electric quantity threshold is full can be obtained more accurately based on the historical charging time included in the historical charging information set corresponding to the historical charging parameter matched with the charging parameter, the charging recovery time obtained according to the prediction time and the predicted charging end time is also more accurate, so that the electronic device can be prevented from being charged for a long time, the time that the electronic device is in a high-voltage state (the electronic device is in a high-voltage state after being fully charged) is further reduced, and the service life of the battery of the electronic device is prolonged.
In some embodiments, when the second charging parameter does not match the second historical charging parameter, the first charging parameter does not match the first historical charging parameter, and the third charging parameter does not match the third historical charging parameter, after resuming charging of the electronic device based on the charge resume time, further comprising:
acquiring target time actually consumed by the electronic equipment when the second electric quantity threshold value is full, and taking the target time as historical charging time;
taking the first charging parameter as a first historical charging parameter, the second charging parameter as a second historical charging parameter and the third charging parameter as a third historical charging parameter;
The first historical charging parameter, the second historical charging parameter, the third historical charging parameter, and the historical charging time are stored in a historical charging information set.
When the second charging parameter is not matched with the second historical charging parameter, the first charging parameter is not matched with the first historical charging parameter, and the third charging parameter is not matched with the third historical charging parameter, which means that there is no historical charging information set matched with the first charging parameter, the second charging parameter and the third charging parameter, after the first charging parameter, the second charging parameter and the third charging parameter are obtained, the first charging parameter can be used as the first historical charging parameter, the second charging parameter can be used as the second historical charging parameter, the third charging parameter can be used as the third historical charging parameter, and then the first historical charging parameter, the second historical charging parameter, the third historical charging parameter and the historical charging time are stored in the historical charging information set, so that the first charging parameter, the second charging parameter and the third charging parameter can be used as the historical charging parameters.
For example, when the historical charging parameters are not included in the historical charging information set, the historical charging information set may be current_list { -1, -1, -1, -1} (-1 indicates the result of the initialization, that is, indicates that no data has been stored). When the second charging parameter does not match the second historical charging parameter, the first charging parameter does not match the first historical charging parameter, and the third charging parameter does not match the third historical charging parameter, the set of historical charging information may be {2.0A,1.9A,1.95A,0.8h }.
Or, the electronic device may store the first charging parameter and the second charging parameter in the charging information set when the first charging parameter and the second charging parameter are acquired, then store the third charging parameter in the charging information set when the third charging parameter is acquired, at this time, compare the second charging parameter with the second historical charging parameter, compare the first charging parameter with the first historical charging parameter, and compare the third charging parameter with the third historical charging parameter, and store the target time in the charging information set and store the charging information set as the historical charging information set if the second charging parameter does not match the second historical charging parameter, the first charging parameter does not match the first historical charging parameter, and the third charging parameter does not match the third historical charging parameter.
In other embodiments, when the second charging parameter matches the second historical charging parameter or the first charging parameter matches the first historical charging parameter, or the third charging parameter matches the third historical charging parameter, after resuming charging the electronic device based on the charge resume time, further comprising:
Acquiring the target time actually consumed by the electronic equipment when the second electric quantity threshold value is full;
updating the historical charging parameters matched with the charging parameters according to the charging parameters to obtain updated historical charging parameters;
according to the target time, updating the historical charging time included in the historical charging information set corresponding to the historical charging parameters matched with the charging parameters to obtain updated historical charging time;
and updating the historical charging information set corresponding to the historical charging parameters matched with the charging parameters according to the updated historical charging parameters and the updated historical charging time.
Due to the aging phenomenon of the battery of the electronic device, the target time and the historical charging time included in the historical charging time set corresponding to the historical charging parameters matched with the charging parameters may have differences, and if the historical charging time is not updated, the accuracy of the predicted time obtained according to the historical charging time is low.
Therefore, after the target time is obtained, the historical charging time included in the historical charging time set corresponding to the historical charging parameter matched with the charging parameter can be corrected according to the target time, and the historical charging parameter matched with the charging parameter is updated according to the charging parameter, so that the updated historical charging parameter is obtained, and the predicted time consumed when the battery is full from the second electric quantity threshold value is more accurately obtained.
For example, the historical charging information sets are current_list {2.0A,1.9A,1.95A,0.8h } and current_list {0.5A,0.48A,0.0.5A,1.5h }, the charging information sets are current_list {1.9A,1.95A,1.90A, -1}, and the preset range is 100mA. Since the difference between 2.0A and 1.9A is equal to 100mA, current_list {2.0A,1.9A,1.95A,0.8h } is a set of historical charging information matching current_list {1.9A,1.95A,1.90A, -1} and the prediction time is 0.8h. If the target time is 0.81h, the current_list {2.0A,1.9A,1.95A,0.8h } is updated according to the current_list {1.9A,1.95A,1.90A,0.81h }, and the updated historical charging information set is the current_list {1.9 5A,1.925A,1.925A,0.805h }.
The average value between the target time and the historical charging time included in the historical charging time set corresponding to the historical charging parameter matched with the charging parameter may be used as the updated historical charging time, and the average value between the charging parameter and the historical charging parameter matched with the charging parameter may be used as the updated historical charging parameter.
It should be noted that, if the historical charging information set corresponding to the historical charging parameter matched with the charging parameter is updated directly according to the charging parameter and the target time, the step of updating the historical charging information set corresponding to the historical charging parameter matched with the charging parameter according to the updated historical charging parameter and the updated historical charging time is not required to be performed.
It should be understood that, although there is a historical charging parameter matching the charging parameter, that is, there is a historical charging information set matching the charging parameter, the difference between the target time and the predicted time may exceed the preset difference range, meaning that a problem occurs, so after the target time is acquired, it is determined whether the difference between the target time and the predicted time is within the preset difference range, and if the difference between the target time and the predicted time is within the preset difference range, the historical charging information set is updated according to the target time and the charging parameter.
If the difference between the target time and the predicted time exceeds the preset difference range, the target time may be discarded because the electronic device is in an impure charging environment, resulting in a too large difference between the target time and the predicted time.
For example, as shown in fig. 6, the present embodiment may perform a method of determining a predicted time by the full charge time prediction module. When a battery event is detected through the full charge time prediction module, whether the battery event is in pure charge environment detection is detected, if the battery event belongs to the pure charge environment detection, a first charge parameter and a second charge parameter are collected through the data collection module, then the predicted time is determined through the historical charge information set, the historical charge information set is updated or the charge parameter is used as the historical charge parameter, and the target time is stored in the historical charge information set as the historical charge time.
In other embodiments, suspending charging of the electronic device when the power of the electronic device reaches a second power threshold comprises:
when the electric quantity of the electronic equipment reaches a second electric quantity threshold value, modifying the parameter value of the preset zone bit into a first target value so as to suspend the charging of the electronic equipment;
restoring charging of the electronic device based on the charge restoration time, comprising:
and based on the charging recovery time, modifying the parameter value of the preset zone bit into a second target value so as to recover the charging of the electronic equipment.
In this embodiment, the electronic device determines whether to suspend or resume charging of the electronic device according to the parameter value of the preset flag bit, that is, determines whether to suspend or resume charging of the electronic device according to the file node charged in the driving of the electronic device. For example, the first target value may be 0 and the second target value may be 1.
Experimental data of the examples of the present application are described below.
Before the scheme of the application is adopted, 16 hours (2/3 time) are at low pressure, 8 hours are at high pressure (1/3 time), after the scheme of the application is adopted, 22 hours (11/12 time) are at low pressure, and 2 hours are at high pressure (1/12 time). The capacity of the capacitor stored at the normal pressure of 3.9V within half a year is attenuated by 1.5 percent, and the full power storage is attenuated by 9 percent within half a year.
Aging rate L of half-year battery before adopting the scheme of the application 1 The method comprises the following steps:
L 1 =1.5% of normal pressure decay (2/3 of low voltage time) +9% of full electrical decay (1/3 of high voltage time) =4%
After adopting the scheme of the application, the aging rate L of the half-year battery 2 The method comprises the following steps:
L 2 =normal pressure decay 1.5% (11/12) +full electrical decay 9% (1/12) =2.125%
From the above experimental data, it is obvious that the scheme of the application can reduce the aging rate and prolong the service life of the battery.
The charging control method provided by the embodiment of the application is further described below with reference to fig. 7.
First historical charging parameters, second historical charging parameters and third historical charging parameters within 13 days are collected first, if the electronic equipment detects that a usb line is pulled out, the first historical charging parameters, the second historical charging parameters and the third historical charging parameters are discarded, then an average value of 58% of corresponding first sub-historical charging parameters, 59% of corresponding first sub-historical charging parameters and 60% of corresponding first sub-historical charging parameters is used as the first historical charging parameters, and an average value of 58% of corresponding second sub-historical charging parameters, 59% of corresponding second sub-historical charging parameters and 60% of corresponding second sub-historical charging parameters is used as the second historical charging parameters.
Judging whether the electronic equipment is in a sleep state or not, if not, or if the electric quantity is more than 80%, not entering an intelligent charging mode, and normally charging.
If the electronic device is in the sleep state, judging whether the electric quantity of the electronic device is equal to 80%, if yes, acquiring ibus (second charging parameter) and checking whether a second historical charging parameter (namely whether a second historical charging parameter matched with ibus exists) exists in current_list (historical charging information set), and if yes, taking the remaining time (historical charging time) in current_list as real_full_time (predicted time).
If not, current60 (the first charging parameter) is obtained and a check is made to see if there is a first historical charging parameter in current_list (i.e., if there is a first historical charging parameter matching current 60), if so, the remaining time from current_list is taken as real_full_time.
If not, current80 (third charging parameter) is obtained and a check is made to see if there is a third historical charging parameter in current_list (i.e., if there is a third historical charging parameter matching current 80), if so, the remaining time from current_list is taken as real_full_time.
If the real_full_time is between the preset maximum value and the preset minimum value, judging whether the real_full_time+1h is smaller than the wakeup time (wakeup time) or not, if the real_full_time is equal to or larger than the preset maximum value and the preset minimum value, not entering an intelligent charging mode, normally charging, and refreshing the current_list.
If (real_full_time+1h) is smaller than (wakeup-current time), the charging is suspended, a charging recovery time (wakeup-real_full_time-1 h) is recorded, the charging recovery time is set to recharge_alarm, and a prompt box is popped up.
When the charge_alarm is not reached, judging whether the electric quantity is less than 80%, if so, recovering the charging, and stopping the charging when the electric quantity reaches 80%, wherein the stopping time is recorded as T1. If the electric quantity is not less than 80%, checking whether the usb is pulled out, and if the usb is pulled out, exiting the intelligent charging model, and enabling the popup window to disappear. If the usb is not pulled out, checking whether to click a recovery charging button, if so, exiting the intelligent charging model, enabling the popup window to disappear, recovering charging, and recording the time at the moment. If the resume charge button is not clicked, execution returns to see if recharge_alarm is reached.
When the charging reaches recharge_alarm, the charging is resumed, the intelligent charging mode is exited, and the charging is prompted when the charging is full. If the usb is pulled out in this period, whether the battery is fully charged or not is checked, if so, the time T2 (target time) of the fully charged battery is recorded, and the current charging record is refreshed into the current_list.
A system frame diagram provided by an embodiment of the present application is described below with reference to fig. 8.
The system Framework diagram in the embodiment of the application comprises a cloud configuration layer, an application layer, a Framework layer, a Hal layer and a Hardware layer. The cloud configuration layer is used for storing the historical charging information set and the second historical attribute information set. The historical charging information set and the second historical attribute information set are stored in the cloud configuration layer, so that the cloud configuration layer can push the historical charging information set and the second historical attribute information set of other electronic equipment to the electronic equipment through big data, and the function of presetting the historical charging information set and the second historical attribute information set of the electronic equipment is achieved. And if the historical charging information set and the second historical attribute information set are highly matched with the electronic equipment, the matching can be directly carried out without culturing habit data of a user of the electronic equipment, so that a charging mechanism is enabled to take effect quickly.
Under the pure charging environment and when the difference of the batteries is not large, a universal historical charging information set of different electronic devices can be established. Because the habit data of different users are different and cannot be standardized, the second historical attribute information set is more data for maintaining personalization. Therefore, the cloud configuration layer is mainly used for user replacement, electronic equipment iteration or upgrading and the like, but is used for presetting a historical charging information set and a second historical attribute information set to be matched with habit data of a user quickly, so that a charging mechanism is enabled to take effect quickly.
And the application program (APP) layer provides a setting menu module and a message notification module, the setting menu module is convenient for a user to manually start and close a charging mechanism, and the message notification module is used for displaying message notification information according to an uplink event of the charging protection state management and control module and can enable the user to recover charging at any time under the condition of stopping charging.
The Framework layer comprises a charge protection state prediction module, a full charge time prediction module and a charge protection state management and control module. The charging protection state prediction module notifies the charging protection state management and control module of the predicted event, the charging protection state management and control module obtains the predicted time from the full charge time prediction module during the charging protection state, and according to the charging protection state, the predicted time and a triple false touch line formed by a pure charging environment, the accuracy of the charging recovery time is ensured, so that the charging state can be stopped for a target duration, and the charging can be recovered and the full charge state can be ensured before the charging protection state is ended.
Hal layer and Hardware layer: the function of stopping charging, recovering charging, acquiring the charging parameters of the charger and acquiring the charging parameters of the electronic equipment is mainly provided. Because the permission limit defined by Android cannot directly read and write the file node of Hardware, charging related information is obtained from the Hardware layer through the Hal layer.
As can be seen from the above, in the embodiment of the present application, the charging parameters corresponding to the electric quantity of the electronic device reaching the first electric quantity threshold value in the charging process are obtained first. And when the electric quantity of the electronic equipment reaches the second electric quantity threshold value, suspending charging of the electronic equipment. And then acquiring a historical charging information set of the electronic equipment, wherein the historical charging information set comprises corresponding historical charging parameters of the electronic equipment when the electric quantity reaches a first electric quantity threshold value in a historical charging process and the required historical charging time when the electronic equipment is full of the second electric quantity threshold value. Next, a predicted time required to fill from the second charge threshold is determined based on the historical charge time included in the set of historical charge information corresponding to the historical charge parameter that matches the charge parameter. And secondly, acquiring a predicted charge ending time, and determining a charge recovery time according to the predicted time and the predicted charge ending time. And finally, based on the charging recovery time, recovering the charging of the electronic equipment.
That is, in the embodiment of the present application, because the prediction time required when the second electric quantity threshold is full can be obtained more accurately based on the historical charging time included in the historical charging information set corresponding to the historical charging parameter matched with the charging parameter, the charging recovery time obtained according to the prediction time and the predicted charging end time is also more accurate, so that the electronic device can be prevented from being charged for a long time, the time that the electronic device is in a high voltage state (the electronic device is in a high voltage state after being fully charged) is further reduced, and the service life of the battery of the electronic device is prolonged.
In order to facilitate better implementation of the device charging control method provided by the embodiment of the application, the embodiment of the application also provides a device based on the device charging control method. The meaning of the term is the same as that of the device charging control method, and specific implementation details can be referred to the description of the method embodiment.
For example, as shown in fig. 9, the device charge control apparatus may include:
the first obtaining module 901 is configured to obtain a charging parameter corresponding to an electric quantity of the electronic device reaching a first electric quantity threshold in a charging process.
And a charging suspension module 902, configured to suspend charging of the electronic device when the power of the electronic device reaches the second power threshold.
The second obtaining module 903 is configured to obtain a historical charging information set of the electronic device, where the historical charging information set includes a historical charging parameter corresponding to an electric quantity of the electronic device reaching a first electric quantity threshold value in a historical charging process and a historical charging time required when the electronic device is full of the electric quantity from a second electric quantity threshold value.
The time determining module 904 is configured to determine a predicted time required when the second power threshold is full, based on a historical charging time included in a historical charging information set corresponding to a historical charging parameter that matches the charging parameter.
The third obtaining module 905 is configured to obtain the predicted charge ending time, and determine the charge recovery time according to the predicted time and the predicted charge ending time.
The charge recovery module 906 is configured to recover charging of the electronic device based on the charge recovery time.
Optionally, the charging parameters include a first charging parameter of the electronic device and a second charging parameter corresponding to a charger of the electronic device.
Correspondingly, the device charging control device further comprises:
a comparison module for performing:
acquiring priorities of the first charging parameter and the second charging parameter;
and sequentially matching the first charging parameter and the second charging parameter with the historical charging parameter according to the priority.
Optionally, the historical charging parameters include a first historical charging parameter of the electronic device and a second historical charging parameter corresponding to a charger of the electronic device.
When the priority of the second charging parameter is greater than the priority of the first charging parameter, the comparing module is specifically configured to perform:
comparing the second charging parameter with the second historical charging parameter;
if the difference value between the second charging parameter and the second historical charging parameter is within the preset range, determining that the second charging parameter is matched with the second historical charging parameter;
If the difference value between the second charging parameter and the second historical charging parameter is not in the preset range, comparing the first charging parameter with the first historical charging parameter.
Optionally, the time determining module 904 is specifically configured to perform:
if the second charging parameter is matched with the second historical charging parameter, determining the predicted time required by filling from the second electric quantity threshold according to the historical charging time included in the historical charging information set corresponding to the second historical charging parameter matched with the second charging parameter;
if the second charging parameter is not matched with the second historical charging parameter and the first charging parameter is matched with the first historical charging parameter, determining the prediction time required when the second electric quantity threshold is full according to the historical charging time included in the historical charging information set corresponding to the first historical charging parameter matched with the first charging parameter.
Optionally, the first power threshold includes a plurality of power thresholds, each corresponding to a first sub-charging parameter of the electronic device and a second sub-charging parameter corresponding to the charger.
Accordingly, the first obtaining module 901 is specifically configured to perform:
determining a first charging parameter according to a first sub-charging parameter of the electronic equipment corresponding to each electric quantity threshold;
Determining a second charging parameter according to a second sub-charging parameter corresponding to the charger corresponding to each electric quantity threshold;
and determining a charging parameter corresponding to the electric quantity of the electronic equipment in the charging process reaching a first electric quantity threshold value based on the first charging parameter and the second charging parameter.
Optionally, the historical charging information set further includes a third historical charging parameter corresponding to the electronic device when the electric quantity reaches the second electric quantity threshold value in the historical charging process;
accordingly, the first acquisition module 901 is further configured to perform:
when the electric quantity of the electronic equipment reaches the second electric quantity threshold value, a third charging parameter corresponding to the second electric quantity threshold value is obtained.
The time determining module 904 is specifically configured to perform:
if the second charging parameter is not matched with the second historical charging parameter and the first charging parameter is not matched with the first historical charging parameter, determining the prediction time required by filling the second electric quantity threshold according to the historical charging time included in the historical charging information set corresponding to the third historical charging parameter matched with the third charging parameter.
Optionally, the time determination module 904 is further configured to perform:
if the second charging parameter is not matched with the second historical charging parameter, the first charging parameter is not matched with the first historical charging parameter, and the third charging parameter is not matched with the third historical charging parameter, acquiring preset charging time;
And determining the predicted time required when the second electric quantity threshold is full according to the preset charging time.
Optionally, the device charging control apparatus further includes:
a storage module for performing:
acquiring target time actually consumed by the electronic equipment when the second electric quantity threshold value is full, and taking the target time as historical charging time;
taking the first charging parameter as a first historical charging parameter, the second charging parameter as a second historical charging parameter and the third charging parameter as a third historical charging parameter;
the first historical charging parameter, the second historical charging parameter, the third historical charging parameter, and the historical charging time are stored in a historical charging information set.
Optionally, the device charging control apparatus further includes:
an update module for performing:
acquiring the target time actually consumed by the electronic equipment when the second electric quantity threshold value is full;
updating the historical charging parameters matched with the charging parameters according to the charging parameters to obtain updated historical charging parameters;
according to the target time, updating the historical charging time included in the historical charging information set corresponding to the historical charging parameters matched with the charging parameters to obtain updated historical charging time;
And updating the historical charging information set corresponding to the historical charging parameters matched with the charging parameters according to the updated historical charging parameters and the updated historical charging time.
Optionally, the charging suspension module 902 is specifically configured to perform:
when the electric quantity of the electronic equipment reaches a second electric quantity threshold value, modifying the parameter value of the preset zone bit into a first target value so as to suspend the charging of the electronic equipment;
accordingly, the charge recovery module 906 is specifically configured to perform:
and based on the charging recovery time, modifying the parameter value of the preset zone bit into a second target value so as to recover the charging of the electronic equipment.
Optionally, the device charging control apparatus further includes:
a detection module for performing:
whether the electronic device is in a charge protection state is detected.
Accordingly, the first obtaining module 901 is specifically configured to perform:
and if the electronic equipment is in the charging protection state, acquiring a charging parameter corresponding to the electric quantity of the electronic equipment in the charging process reaching a first electric quantity threshold value.
Optionally, the detection module is specifically configured to perform:
acquiring attribute information of the electronic equipment, wherein the attribute information comprises at least one of a bright screen state of the electronic equipment, a light sensation value of an environment where the electronic equipment is positioned and a static state of the electronic equipment;
And determining whether the electronic equipment is in a charging protection state according to the attribute information.
Optionally, the detection module is specifically configured to perform:
acquiring a first historical attribute information set of the electronic equipment, and determining a starting prediction time of a charging protection state according to the first historical attribute information set;
determining target ending time according to the starting prediction time;
acquiring attribute information of the electronic equipment according to a preset time period between a preset starting time and a target ending time to obtain an attribute information set;
and when the target ending time is reached, determining whether the electronic equipment is in a charging protection state according to the attribute information set.
Optionally, the detection module is specifically configured to perform:
when the target ending time is reached, acquiring a second historical attribute information set of the electronic equipment;
and determining whether the electronic equipment is in a charging protection state according to the second historical attribute information set matched with the attribute information set.
Optionally, the third obtaining module 905 is specifically configured to perform:
and determining the predicted charging end time according to the second historical attribute information set matched with the attribute information set.
Optionally, the update module is further configured to perform:
acquiring actual charging end time;
And updating the second historical attribute information set matched with the attribute information set according to the actual charging ending time to obtain an updated second historical attribute information set.
In the specific implementation, each module may be implemented as an independent entity, or may be combined arbitrarily, and implemented as the same entity or a plurality of entities, and the specific implementation and the corresponding beneficial effects of each module may be referred to the foregoing method embodiments, which are not described herein again.
The embodiment of the application also provides an electronic device, which may be a server or a terminal, as shown in fig. 10, and shows a schematic structural diagram of the electronic device according to the embodiment of the application, specifically:
the electronic device may include one or more processing cores 'processors 1001, one or more computer-readable storage media's memory 1002, a power supply 1003, and an input unit 1004, among other components. It will be appreciated by those skilled in the art that the electronic device structure shown in fig. 10 is not limiting of the electronic device and may include more or fewer components than shown, or may combine certain components, or a different arrangement of components. Wherein:
The processor 1001 is a control center of the electronic device, connects various parts of the entire electronic device using various interfaces and lines, and performs various functions of the electronic device and processes data by running or executing computer programs and/or modules stored in the memory 1002, and calling data stored in the memory 1002. Optionally, the processor 1001 may include one or more processing cores; preferably, the processor 1001 may integrate an application processor and a modem processor, wherein the application processor mainly processes an operating system, a user interface, an application program, and the like, and the modem processor mainly processes wireless communication. It will be appreciated that the modem processor described above may not be integrated into the processor 1001.
The memory 1002 may be used for storing computer programs and modules, and the processor 1001 executes various functional applications and data processing by executing the computer programs and modules stored in the memory 1002. The memory 1002 may mainly include a stored program area that may store an operating system, computer programs required for at least one function (such as a sound playing function, an image playing function, etc.), and a stored data area; the storage data area may store data created according to the use of the electronic device, etc. In addition, memory 1002 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 1002 may also include a memory controller to provide the processor 1001 with access to the memory 1002.
The electronic device further comprises a power supply 1003 for powering the various components, preferably the power supply 1003 is logically connected to the processor 1001 by a power management system, whereby charging, discharging, and power consumption management functions are performed by the power management system. The power supply 1003 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.
The electronic device may also include an input unit 1004, which input unit 1004 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.
Although not shown, the electronic device may further include a display unit or the like, which is not described herein. In particular, in this embodiment, the processor 1001 in the electronic device loads executable files corresponding to the processes of one or more computer programs into the memory 1002 according to the following instructions, and the processor 1001 executes the computer programs stored in the memory 1002, so as to implement various functions, for example:
Acquiring a charging parameter corresponding to the electric quantity of the electronic equipment in the charging process reaching a first electric quantity threshold value;
when the electric quantity of the electronic equipment reaches a second electric quantity threshold value, suspending charging of the electronic equipment;
acquiring a historical charging information set of the electronic equipment, wherein the historical charging information set comprises historical charging parameters corresponding to the situation that the electric quantity reaches a first electric quantity threshold value in the historical charging process of the electronic equipment and the historical charging time required by the situation that the second electric quantity threshold value is full;
determining a predicted time required when the second power threshold is full based on the historical charging time included in the historical charging information set corresponding to the historical charging parameter matched with the charging parameter;
acquiring predicted charge ending time, and determining charge recovery time according to the predicted time and the predicted charge ending time;
and restoring the charge to the electronic device based on the charge restoration time.
The specific embodiments and the corresponding beneficial effects of the above operations can be referred to the above detailed description of the device charging control method, and are not described herein.
It will be appreciated by those of ordinary skill in the art that all or part of the steps of the various methods of the above embodiments may be performed by a computer program, or by computer program control related hardware, which may be stored in a computer readable storage medium and loaded and executed by a processor.
To this end, an embodiment of the present application provides a computer-readable storage medium in which a computer program is stored, the computer program being capable of being loaded by a processor to perform steps in any of the device charging control methods provided by the embodiment of the present application. For example, the computer program may perform the steps of:
acquiring a charging parameter corresponding to the electric quantity of the electronic equipment in the charging process reaching a first electric quantity threshold value;
when the electric quantity of the electronic equipment reaches a second electric quantity threshold value, suspending charging of the electronic equipment;
acquiring a historical charging information set of the electronic equipment, wherein the historical charging information set comprises historical charging parameters corresponding to the situation that the electric quantity reaches a first electric quantity threshold value in the historical charging process of the electronic equipment and the historical charging time required by the situation that the second electric quantity threshold value is full;
determining a predicted time required when the second power threshold is full based on the historical charging time included in the historical charging information set corresponding to the historical charging parameter matched with the charging parameter;
acquiring predicted charge ending time, and determining charge recovery time according to the predicted time and the predicted charge ending time;
and restoring the charge to the electronic device based on the charge restoration time.
The specific embodiments and the corresponding beneficial effects of each of the above operations can be found in the foregoing embodiments, and are not described herein again.
Wherein the computer-readable storage medium may comprise: read Only Memory (ROM), random access Memory (RAM, random Access Memory), magnetic or optical disk, and the like.
Because the computer program stored in the computer readable storage medium may execute the steps in any one of the device charging control methods provided by the embodiments of the present application, the beneficial effects that any one of the device charging control methods provided by the embodiments of the present application can be achieved, which are detailed in the previous embodiments and are not described herein.
Wherein according to an aspect of the application, a computer program product or a computer program is provided, the computer program product or computer program comprising computer instructions stored in a computer readable storage medium. The processor of the computer device reads the computer instructions from the computer-readable storage medium, and the processor executes the computer instructions so that the computer device performs the device charging control method described above.
The foregoing has described in detail the method, apparatus, electronic device and computer readable storage medium for controlling device charging according to the embodiments of the present application, and specific examples have been applied to illustrate the principles and embodiments of the present application, where the foregoing examples are provided to assist in understanding the method and core idea of the present application; meanwhile, as those skilled in the art will have variations in the specific embodiments and application scope in light of the ideas of the present application, the present description should not be construed as limiting the present application.

Claims (19)

1. A device charging control method, characterized by comprising:
acquiring a charging parameter corresponding to the electric quantity of the electronic equipment in the charging process reaching a first electric quantity threshold value;
when the electric quantity of the electronic equipment reaches a second electric quantity threshold value, suspending charging of the electronic equipment;
acquiring a historical charging information set of the electronic equipment, wherein the historical charging information set comprises a historical charging parameter corresponding to the electronic equipment when the electric quantity reaches the first electric quantity threshold value in a historical charging process and a historical charging time required by the electronic equipment when the second electric quantity threshold value is full;
determining a predicted time required when the second power threshold is full based on a historical charging time included in a historical charging information set corresponding to the historical charging parameter matched with the charging parameter;
acquiring predicted charge ending time, and determining charge recovery time according to the predicted time and the predicted charge ending time;
and based on the charging recovery time, recovering the charging of the electronic equipment.
2. The device charging control method according to claim 1, wherein the charging parameters include a first charging parameter of the electronic device and a second charging parameter corresponding to a charger of the electronic device;
Before determining the predicted time required to fill from the second charge threshold based on the historical charging time included in the set of historical charging information corresponding to the historical charging parameters that match the charging parameters, the method further includes:
acquiring priorities of the first charging parameter and the second charging parameter;
and sequentially matching the first charging parameter and the second charging parameter with the historical charging parameter according to the priority.
3. The device charge control method of claim 2, wherein the historical charge parameters include a first historical charge parameter of the electronic device and a second historical charge parameter corresponding to a charger of the electronic device;
when the priority of the second charging parameter is greater than the priority of the first charging parameter, the sequentially matching the first charging parameter and the second charging parameter with the historical charging parameter according to the priority includes:
comparing the second charging parameter with the second historical charging parameter;
if the difference value between the second charging parameter and the second historical charging parameter is within a preset range, determining that the second charging parameter is matched with the second historical charging parameter;
And if the difference value between the second charging parameter and the second historical charging parameter is not in the preset range, comparing the first charging parameter with the first historical charging parameter.
4. The device charge control method of claim 3, wherein the determining a predicted time required to fill from the second charge threshold based on a set of historical charge information corresponding to historical charge parameters that match the charge parameters, including a historical charge time, comprises:
if the second charging parameter is matched with the second historical charging parameter, determining the prediction time required by filling the second electric quantity threshold according to the historical charging time included in the historical charging information set corresponding to the second historical charging parameter matched with the second charging parameter;
if the second charging parameter is not matched with the second historical charging parameter and the first charging parameter is matched with the first historical charging parameter, determining the prediction time required when the second electric quantity threshold is full according to the historical charging time included in the historical charging information set corresponding to the first historical charging parameter matched with the first charging parameter.
5. The device charge control method of claim 1, wherein the first power threshold comprises a plurality of power thresholds, each power threshold corresponding to a first sub-charge parameter of the electronic device and a second sub-charge parameter of the charger;
the obtaining the charging parameters corresponding to the electric quantity of the electronic equipment reaching the first electric quantity threshold value in the charging process comprises the following steps:
determining a first charging parameter according to a first sub-charging parameter of the electronic equipment corresponding to each electric quantity threshold;
determining a second charging parameter according to a second sub-charging parameter corresponding to the charger corresponding to each electric quantity threshold;
and determining a charging parameter corresponding to the electric quantity of the electronic equipment in the charging process reaching a first electric quantity threshold value based on the first charging parameter and the second charging parameter.
6. The device charging control method of claim 4, wherein the historical charging information set further comprises a third historical charging parameter corresponding to when the electronic device history has reached the second power threshold during charging;
after the obtaining the charging parameters corresponding to the electric quantity of the electronic device reaching the first electric quantity threshold value in the charging process, the method further comprises:
When the electric quantity of the electronic equipment reaches a second electric quantity threshold value, acquiring a third charging parameter corresponding to the second electric quantity threshold value;
the determining, based on the historical charging information set corresponding to the historical charging parameter matched with the charging parameter, a predicted time required when the second power threshold is full, including:
if the second charging parameter is not matched with the second historical charging parameter and the first charging parameter is not matched with the first historical charging parameter, determining the prediction time required when the second electric quantity threshold is full according to the historical charging time included in the historical charging information set corresponding to the third historical charging parameter matched with the third charging parameter.
7. The device charge control method of claim 6, further comprising, after determining a predicted time required to fill from the second charge threshold based on a historical charge time included in a set of historical charge information corresponding to a third historical charge parameter that matches the third charge parameter if the second charge parameter does not match the second historical charge parameter and the first charge parameter does not match the first historical charge parameter:
If the second charging parameter is not matched with the second historical charging parameter, the first charging parameter is not matched with the first historical charging parameter, and the third charging parameter is not matched with the third historical charging parameter, acquiring preset charging time;
and determining the predicted time required when the second electric quantity threshold is full according to the preset charging time.
8. The device charging control method according to claim 7, characterized by further comprising, after the recovery of the charging of the electronic device based on the charging recovery time:
acquiring target time actually consumed by the electronic equipment when the second electric quantity threshold value is full, and taking the target time as the historical charging time;
taking the first charging parameter as the first historical charging parameter, the second charging parameter as the second historical charging parameter, and the third charging parameter as the third historical charging parameter;
the first historical charging parameter, the second historical charging parameter, the third historical charging parameter, and the historical charging time are stored in the historical charging information set.
9. The device charging control method according to claim 1, characterized by further comprising, after the recovery of the charging of the electronic device based on the charging recovery time:
acquiring the target time actually consumed by the electronic equipment when the second electric quantity threshold value is full;
updating the historical charging parameters matched with the charging parameters according to the charging parameters to obtain updated historical charging parameters;
updating the historical charging time included in the historical charging information set corresponding to the historical charging parameters matched with the charging parameters according to the target time to obtain updated historical charging time;
and updating a historical charging information set corresponding to the historical charging parameters matched with the charging parameters according to the updated historical charging parameters and the updated historical charging time.
10. The device charging control method according to claim 1, wherein suspending charging of the electronic device when the power of the electronic device reaches a second power threshold value comprises:
when the electric quantity of the electronic equipment reaches a second electric quantity threshold value, modifying a parameter value of a preset zone bit into a first target value so as to suspend charging of the electronic equipment;
The restoring the charging of the electronic device based on the charging restoration time includes:
and based on the charging recovery time, modifying the parameter value of the preset zone bit into a second target value so as to recover the charging of the electronic equipment.
11. The device charging control method according to any one of claims 1 to 10, further comprising, before the acquiring the charging parameter corresponding to the electric quantity of the electronic device reaching the first electric quantity threshold value during the charging process:
detecting whether the electronic equipment is in a charging protection state;
the obtaining the charging parameters corresponding to the electric quantity of the electronic equipment reaching the first electric quantity threshold value in the charging process comprises the following steps:
and if the electronic equipment is in a charging protection state, acquiring a charging parameter corresponding to the electric quantity of the electronic equipment in the charging process reaching a first electric quantity threshold value.
12. The device charge control method of claim 11, wherein the detecting whether the electronic device is in a charge-protected state comprises:
acquiring attribute information of the electronic equipment, wherein the attribute information comprises at least one of a bright screen state of the electronic equipment, a light sensation value of an environment where the electronic equipment is positioned and a static state of the electronic equipment;
And determining whether the electronic equipment is in a charging protection state according to the attribute information.
13. The device charging control method according to claim 12, wherein the acquiring attribute information of the electronic device includes:
acquiring a first historical attribute information set of the electronic equipment, and determining a starting prediction time of the charging protection state according to the first historical attribute information set;
determining target ending time according to the starting prediction time;
acquiring attribute information of the electronic equipment according to a preset time period between a preset starting time and the target ending time to obtain an attribute information set;
according to the attribute information, determining whether the electronic device is in a charging protection state includes:
and when the target ending time is reached, determining whether the electronic equipment is in a charging protection state according to the attribute information set.
14. The device charging control method according to claim 13, wherein the determining whether the electronic device is in a charging protection state according to the attribute information set when the target end time is reached comprises:
When the target ending time is reached, acquiring a second historical attribute information set of the electronic equipment;
and determining whether the electronic equipment is in a charging protection state according to a second historical attribute information set matched with the attribute information set.
15. The device charge control method according to claim 14, wherein the acquiring the predicted charge end time includes:
and determining the predicted charging end time according to the second historical attribute information set matched with the attribute information set.
16. The device charging control method according to claim 15, further comprising, after the determination of the predicted charging end time from the second set of history attribute information that matches the set of attribute information:
acquiring actual charging end time;
and updating the second historical attribute information set matched with the attribute information set according to the actual charging ending time to obtain an updated second historical attribute information set.
17. A device charging control apparatus, characterized by comprising:
the first acquisition module is used for acquiring charging parameters corresponding to the electric quantity of the electronic equipment reaching a first electric quantity threshold value in the charging process;
The charging suspension module is used for suspending the charging of the electronic equipment when the electric quantity of the electronic equipment reaches a second electric quantity threshold value;
the second acquisition module is used for acquiring a historical charging information set of the electronic equipment, wherein the historical charging information set comprises historical charging parameters corresponding to the electronic equipment when the electric quantity reaches the first electric quantity threshold value in the historical charging process and the historical charging time required by the electronic equipment when the electronic equipment is full of the second electric quantity threshold value;
a time determining module, configured to determine a predicted time required when the second power threshold is full, based on a historical charging time included in a historical charging information set corresponding to a historical charging parameter that matches the charging parameter;
the third acquisition module is used for acquiring the predicted charge ending time and determining the charge recovery time according to the predicted time and the predicted charge ending time;
and the charging recovery module is used for recovering the charging of the electronic equipment based on the charging recovery time.
18. An electronic device comprising a processor and a memory, the memory storing a computer program, the processor configured to execute the computer program in the memory to perform the device charging control method of any one of claims 1 to 16.
19. A computer readable storage medium, characterized in that the computer readable storage medium stores a computer program adapted to be loaded by a processor for executing the device charging control method according to any one of claims 1 to 16.
CN202210539845.2A 2022-05-17 2022-05-17 Device charging control method, device, electronic device and readable storage medium Pending CN117117998A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202210539845.2A CN117117998A (en) 2022-05-17 2022-05-17 Device charging control method, device, electronic device and readable storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202210539845.2A CN117117998A (en) 2022-05-17 2022-05-17 Device charging control method, device, electronic device and readable storage medium

Publications (1)

Publication Number Publication Date
CN117117998A true CN117117998A (en) 2023-11-24

Family

ID=88795338

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202210539845.2A Pending CN117117998A (en) 2022-05-17 2022-05-17 Device charging control method, device, electronic device and readable storage medium

Country Status (1)

Country Link
CN (1) CN117117998A (en)

Similar Documents

Publication Publication Date Title
CN109690900B (en) Charging method and terminal
US11955827B2 (en) Rule based smart charging
CN109960395B (en) Resource scheduling method and computer equipment
US11966315B2 (en) Smart advice to charge notification
KR101477179B1 (en) Method And Mobile Terminal For Determining and Displaying Power Efficiency of Application
US11481014B2 (en) Power control method based on user habit and terminal
CN110676905A (en) Battery charging management method, system, intelligent terminal and computer readable storage medium
CN104156050B (en) The method of Mission Monitor and electronic equipment
CN107302633A (en) application control method, device, storage medium and electronic equipment
CN112153216A (en) Electric quantity early warning method and device, terminal equipment and storage medium
US11502529B2 (en) Battery charging method employing historical data
CN111479016B (en) Terminal use duration reminding method and device, terminal and storage medium
WO2019062462A1 (en) Application control method and apparatus, storage medium and electronic device
CN103837835A (en) Method and device for detecting capacity decreasing degree of mobile device battery
WO2021169162A1 (en) Battery backup unit monitoring method and apparatus, and server and readable storage medium
CN116320147B (en) Awakening method and electronic equipment
CN117117998A (en) Device charging control method, device, electronic device and readable storage medium
CN116861133A (en) Calculation method and device for static average current of low-voltage lithium battery
CN109100654A (en) A kind of battery loss based reminding method and mobile terminal
US11079827B2 (en) Cognitive battery state of charge recalibration
CN113824840B (en) Method and device for dynamically adjusting screen refresh rate, electronic equipment and storage medium
CN114987368B (en) Control method and device for vehicle quiescent current, electronic equipment and storage medium
CN114217969A (en) Execution function execution method and related equipment
CN117930957A (en) Electric quantity management method of monitoring equipment, electronic equipment and storage medium
CN113759268A (en) Battery health detection method and device of electronic equipment and electronic equipment

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