WO2021185106A1 - 一种充电管控方法及电子设备 - Google Patents

一种充电管控方法及电子设备 Download PDF

Info

Publication number
WO2021185106A1
WO2021185106A1 PCT/CN2021/079536 CN2021079536W WO2021185106A1 WO 2021185106 A1 WO2021185106 A1 WO 2021185106A1 CN 2021079536 W CN2021079536 W CN 2021079536W WO 2021185106 A1 WO2021185106 A1 WO 2021185106A1
Authority
WO
WIPO (PCT)
Prior art keywords
charging
electronic device
time
battery
duration
Prior art date
Application number
PCT/CN2021/079536
Other languages
English (en)
French (fr)
Inventor
刘克楠
卢信先
苗磊
汪俊杰
刘宏马
唐朝辉
吴都明
Original Assignee
华为技术有限公司
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 华为技术有限公司 filed Critical 华为技术有限公司
Priority to EP21772557.1A priority Critical patent/EP4113780A4/en
Publication of WO2021185106A1 publication Critical patent/WO2021185106A1/zh
Priority to US17/947,986 priority patent/US20230014616A1/en

Links

Images

Classifications

    • HELECTRICITY
    • H02GENERATION; CONVERSION OR DISTRIBUTION OF ELECTRIC POWER
    • H02JCIRCUIT ARRANGEMENTS OR SYSTEMS FOR SUPPLYING OR DISTRIBUTING ELECTRIC POWER; SYSTEMS FOR STORING ELECTRIC ENERGY
    • H02J7/00Circuit arrangements for charging or depolarising batteries or for supplying loads from batteries
    • H02J7/0029Circuit arrangements for charging or depolarising batteries or for supplying loads from batteries with safety or protection devices or circuits
    • H02J7/0036Circuit arrangements for charging or depolarising batteries or for supplying loads from batteries with safety or protection devices or circuits using connection detecting circuits
    • 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
    • H02J7/007182Regulation of charging or discharging current or voltage the cycle being controlled or terminated in response to electric parameters in response to battery voltage
    • HELECTRICITY
    • H01ELECTRIC ELEMENTS
    • H01MPROCESSES OR MEANS, e.g. BATTERIES, FOR THE DIRECT CONVERSION OF CHEMICAL ENERGY INTO ELECTRICAL ENERGY
    • H01M10/00Secondary cells; Manufacture thereof
    • H01M10/42Methods or arrangements for servicing or maintenance of secondary cells or secondary half-cells
    • H01M10/425Structural combination with electronic components, e.g. electronic circuits integrated to the outside of the casing
    • HELECTRICITY
    • H01ELECTRIC ELEMENTS
    • H01MPROCESSES OR MEANS, e.g. BATTERIES, FOR THE DIRECT CONVERSION OF CHEMICAL ENERGY INTO ELECTRICAL ENERGY
    • H01M10/00Secondary cells; Manufacture thereof
    • H01M10/42Methods or arrangements for servicing or maintenance of secondary cells or secondary half-cells
    • H01M10/4285Testing apparatus
    • HELECTRICITY
    • H01ELECTRIC ELEMENTS
    • H01MPROCESSES OR MEANS, e.g. BATTERIES, FOR THE DIRECT CONVERSION OF CHEMICAL ENERGY INTO ELECTRICAL ENERGY
    • H01M10/00Secondary cells; Manufacture thereof
    • H01M10/42Methods or arrangements for servicing or maintenance of secondary cells or secondary half-cells
    • H01M10/44Methods for charging or discharging
    • HELECTRICITY
    • H02GENERATION; CONVERSION OR DISTRIBUTION OF ELECTRIC POWER
    • H02JCIRCUIT ARRANGEMENTS OR SYSTEMS FOR SUPPLYING OR DISTRIBUTING ELECTRIC POWER; SYSTEMS FOR STORING ELECTRIC ENERGY
    • H02J50/00Circuit arrangements or systems for wireless supply or distribution of electric power
    • H02J50/10Circuit arrangements or systems for wireless supply or distribution of electric power using inductive coupling
    • 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/00032Circuit arrangements for charging or depolarising batteries or for supplying loads from batteries characterised by data exchange
    • H02J7/00034Charger exchanging data with an electronic device, i.e. telephone, whose internal battery is under charge
    • HELECTRICITY
    • H02GENERATION; CONVERSION OR DISTRIBUTION OF ELECTRIC POWER
    • H02JCIRCUIT ARRANGEMENTS OR SYSTEMS FOR SUPPLYING OR DISTRIBUTING ELECTRIC POWER; SYSTEMS FOR STORING ELECTRIC ENERGY
    • H02J7/00Circuit arrangements for charging or depolarising batteries or for supplying loads from batteries
    • H02J7/0029Circuit arrangements for charging or depolarising batteries or for supplying loads from batteries with safety or protection devices or circuits
    • H02J7/0031Circuit arrangements for charging or depolarising batteries or for supplying loads from batteries with safety or protection devices or circuits using battery or load disconnect circuits
    • 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
    • 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]
    • 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/007188Regulation of charging or discharging current or voltage the charge cycle being controlled or terminated in response to non-electric parameters
    • HELECTRICITY
    • H01ELECTRIC ELEMENTS
    • H01MPROCESSES OR MEANS, e.g. BATTERIES, FOR THE DIRECT CONVERSION OF CHEMICAL ENERGY INTO ELECTRICAL ENERGY
    • H01M10/00Secondary cells; Manufacture thereof
    • H01M10/42Methods or arrangements for servicing or maintenance of secondary cells or secondary half-cells
    • H01M10/425Structural combination with electronic components, e.g. electronic circuits integrated to the outside of the casing
    • H01M2010/4271Battery management systems including electronic circuits, e.g. control of current or voltage to keep battery in healthy state, cell balancing
    • HELECTRICITY
    • H01ELECTRIC ELEMENTS
    • H01MPROCESSES OR MEANS, e.g. BATTERIES, FOR THE DIRECT CONVERSION OF CHEMICAL ENERGY INTO ELECTRICAL ENERGY
    • H01M10/00Secondary cells; Manufacture thereof
    • H01M10/42Methods or arrangements for servicing or maintenance of secondary cells or secondary half-cells
    • H01M10/425Structural combination with electronic components, e.g. electronic circuits integrated to the outside of the casing
    • H01M2010/4278Systems for data transfer from batteries, e.g. transfer of battery parameters to a controller, data transferred between battery controller and main controller
    • YGENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
    • Y02TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
    • Y02EREDUCTION OF GREENHOUSE GAS [GHG] EMISSIONS, RELATED TO ENERGY GENERATION, TRANSMISSION OR DISTRIBUTION
    • Y02E60/00Enabling technologies; Technologies with a potential or indirect contribution to GHG emissions mitigation
    • Y02E60/10Energy storage using batteries

Definitions

  • the invention relates to the field of electronic technology, in particular to a charging management and control method and electronic equipment.
  • the batteries in most electronic devices are rechargeable batteries.
  • the user connects the charger to the battery in the electronic device for charging, the user does not unplug the charger in time after the battery is fully charged.
  • the battery of the mobile phone can be fully charged in 1-3 hours, which causes the battery of the mobile phone to continue to be charged for more than 4 hours when it is fully charged. In this way, when the battery of the electronic device is fully charged, the electronic device's continued charging of the battery will cause the battery capacity to jump, the battery swells and swells, and the life span is shortened.
  • the embodiments of the present application provide a charging management and control method and an electronic device. Using the method when the electronic device charges a battery can reduce the time that the electronic device continues to charge the battery in a fully charged state.
  • a charging management and control method for an electronic device may include: first, the electronic device detects the external power supply access; in response to detecting the external power supply access, the electronic device acquires first data, wherein , The first data is used to characterize the state when the electronic device detects the external power supply; in response to detecting the external power supply, the electronic device starts charging; the electronic device determines the first duration and the second duration according to the first data, where, The first duration is used to characterize the predicted charging duration of the electronic device being charged with the first charging parameter, and the second duration is used to characterize the predicted charging duration of the electronic device being charged with the second charging parameter; the electronic device is charged according to the first charging parameter,
  • the charging time is the first actual charging time.
  • the first actual charging time is used to characterize the actual charging time for the electronic device to be charged with the first charging parameter; when the first actual charging time is equal to the first time length, the electronic device is charged according to the second charging parameter
  • the charging time is the second actual charging time
  • the second actual charging time is used to characterize the actual charging time of the electronic device charging with the second charging parameter; wherein the charging efficiency of the electronic device charging with the first charging parameter is high The charging efficiency when the electronic device is charged with the second charging parameter.
  • the first data includes the time when the external power source is connected, the remaining power when the electronic device detects that the external power source is connected, the type of charger, the time zone of the electronic device, the on-off screen information of the electronic device, and the settings in the electronic device.
  • the first charging parameter includes a first charging cut-off voltage and a first charging input power
  • the second charging parameter includes a second charging cut-off voltage and a second charging input power
  • the first charging cut-off voltage is greater than the second charging cut-off voltage
  • the charging input power is greater than the second charging input power.
  • the electronic device can control the charging process when charging the battery.
  • the electronic device can quickly charge the battery, and then slowly charge the battery.
  • the electronic device can determine the duration of fast charging and slow charging according to the scene when the user accesses. In different scenarios, the time for the electronic device to charge the battery quickly or slowly is different.
  • the electronic device can delay the battery charging to a fully charged state through the charge management control. In this way, the time that the battery will continue to be charged when it is fully charged can be reduced. As a result, the use time of the battery in the electronic device can be prolonged, and the user experience can be improved.
  • the electronic device is charged according to the second charging parameter, and after the charging time is the second actual charging time period, the method further includes: when the second actual charging time period is equal to the second time period , The electronic device is charged with the first charging parameter. If the electronic device has been charging slowly, when the user disconnects the connection between the external power supply and the electronic device, the battery power in the electronic device may not be charged to 100%. When the electronic device is charged slowly for a period of time, the fast charge is continued, and the electronic device quickly charges the battery to 100%. In this way, it is possible to reduce the occurrence of the situation that the battery power in the user electronic device is not charged to 100% when the charging is completed.
  • the first data includes the time when the external power source is connected, and the time when the external power source is connected is in the night time period.
  • the night time period can be 23:00-6:00.
  • the electronic device controls the battery charging, that is, the electronic device first charges the battery quickly, and then charges slowly.
  • the user may connect the electronic device to an external power source for a long time, which may cause the battery in the electronic device to be charged under a fully charged state.
  • users In the daytime, users generally do not connect electronic devices to external power sources for a long time. Therefore, the electronic device quickly charges the battery. In this way, it is more in line with user habits and improves user experience.
  • the method further includes: the electronic device detects the first event, and in response to detecting the first event, the electronic device stops charging according to the second charging parameter, and starts charging according to the third The charging efficiency when the electronic device is charged with the third charging parameter is higher than the charging efficiency when the electronic device is charged with the second charging parameter.
  • the first event includes that the number of screen on of the electronic device is greater than the first threshold, the screen on time of the electronic device is greater than the second threshold, the number of screen off of the electronic device is greater than the third threshold, the screen off time of the electronic device is less than the fourth threshold,
  • the power consumption of the electronic device is greater than the fifth threshold, the electronic device is activated or uses one or more of the video application, the electronic device is activated, or the game application.
  • the electronic device When the electronic device slowly charges the battery or stops charging, if the user uses the electronic device, the remaining power of the electronic device may not be enough to maintain the normal operation of the application that the user of the electronic device starts. At this time, the electronic device charges the battery according to the third charging parameter, that is, performs fast charging of the battery. In this way, the power of the electronic device can be sufficient to maintain the normal operation of the user to start the application. Thereby improving the user experience.
  • starting to charge according to the third charging parameter specifically includes: charging the electronic device according to the third charging parameter, the charging time is the third actual charging duration, and the third actual charging time
  • the charging time is used to characterize the actual time that the electronic device is charged with the third charging parameter; when the third actual charging time is equal to the third time, the electronic device is charged according to the fourth charging parameter, and the charging time is the fourth actual charging time;
  • the three-time length is used to characterize the predicted charging time length of the electronic device being charged with the third charging parameter, and the fourth actual charging time length is used to characterize the actual charging time length of the electronic device being charged with the fourth charging parameter; where the electronic device uses the third charging parameter
  • the charging efficiency of charging is higher than the charging parameter of the electronic device using the fourth charging parameter; the third duration is determined by the second data, and the second data is used to characterize the state of the electronic device when the first event is detected.
  • the second data includes the time when the electronic device detects the first event, the remaining power when the electronic device detects the first event, the type of charger, the time zone of the electronic device, the on-off screen information of the electronic device, and the electronic device.
  • the electronic device in the process of slow charging of the battery by the electronic device, if the user uses the electronic device, the electronic device recharges the battery quickly for a period of time, and then slowly charges the battery.
  • the electronic device predicts, according to the second data acquired by the electronic device when the user uses the electronic device, the time period for the electronic device to recharge the battery quickly and the length of time for the slow charging. In this way, the electronic device can change the charging efficiency of the electronic device to the battery according to a specific scenario. In this way, it is possible to meet the requirement that the power of the electronic device is sufficient for the user to use the electronic device normally during the electronic device charging process, thereby improving the user experience.
  • the method further includes: the electronic device detects a second event, and in response to detecting the second event, the electronic device performs charging according to the first charging parameter, and the second event Used to characterize the user preset time recorded by the electronic device; when the remaining power of the electronic device is charged to the first threshold, the electronic device is charged according to the second charging parameter; when the first time is charged, the electronic device is charged according to the fifth charging parameter For charging, the first time is the time before the user preset time.
  • the second event includes one or more of the alarm time set in the electronic device, the reminder time point of the memo, the set time point of the schedule, and the reminder time point of the to-do item.
  • the user When the user charges the electronic device, especially at night, the user sets the wake-up alarm for the next morning in the electronic device, and the user generally wakes up when the alarm clock rings and unplugs the charger of the electronic device. In this way, the electronic device performs charging control according to the alarm time set by the user, which is more in line with the user's habit.
  • the remaining power of the electronic device when the remaining power of the electronic device is charged to a certain threshold, it starts to slowly charge, which can reduce the time that the battery is charged in a fully charged state. Resume fast charging some time before the alarm time, which can ensure that the electronic device is fully charged when the user unplugs the charger. In this way, the user experience can be improved.
  • charging the electronic device according to the second charging parameter specifically includes: charging the electronic device according to the second charging parameter or stopping charging. That is, when the electronic device is charged with the second charging parameter, the electronic device can slowly charge the battery or stop charging the battery.
  • the third charging parameter and the fifth charging parameter are the same as the first charging parameter; and the fourth charging parameter is the same as the second charging parameter.
  • the sum of the first duration and the second duration is not less than the sixth threshold. If the sum of the first time length and the second time length predicted by the electronic device according to the first data is too short. Even if the total time that the user charges the electronic device in this scenario is not long, then the electronic device does not perform charging control. Electronic equipment has been fast charging. This can prevent the user from not being fully charged at the end of charging.
  • the electronic device is charged according to the first charging parameter, and the charging time is before the first actual charging duration, and further includes: the electronic device determines the first time after the external power supply is connected No alarm is set in the electronic device in the segment, the external power supply is in the connected state during the period of 23:00-6:00, and the sum of the first time length and the second time length is greater than 4 hours; the electronic device is based on the first charging parameter Charging, the charging time is the first actual charging duration, which specifically includes: the electronic device determines that an alarm clock is set in the electronic device within the first time period after the external power supply is connected, and the electronic device is charged according to the first charging parameter until the electronic device is charged.
  • the remaining battery power of the device is 80%; the electronic device stops charging; if the remaining battery charge of the electronic device reaches 80% earlier than half an hour before the alarm time reaches, the electronic device will be charged according to the first half hour. Perform charging with a charging parameter, and charge to the alarm time.
  • the electronic device controls the battery charging process according to the alarm time. That is, the electronic device performs fast charging of the battery first, and stops charging when the battery power reaches 80%. When the alarm time reaches half an hour before the alarm time, the fast charge will be resumed until the alarm time. If there is no alarm clock set in the electronic device, and the battery is charged within the time period of 23:00-6:00, and the electronic device predicts that the sum of the first duration and the second duration is greater than 4 hours, the electronic device will quickly charge the battery first. The first duration, then slow charging and stop charging for the second duration. Otherwise, the electronic device keeps fast charging the battery. In this way, the time that the battery is fully charged can be reduced, and the situation that the battery is not fully charged at the end of the charging can be reduced.
  • the electronic device is charged according to the second charging parameter, and the charging time is the second actual charging duration, and further includes: if the second actual charging duration is less than the second duration, the electronic device obtains When the time to the time zone of the electronic device is 6:00, the electronic device stops charging according to the second charging parameter.
  • the electronic device stops charging according to the second charging parameter.
  • the battery may not be fully charged when the charging is finished.
  • Resume fast charging at 6 o'clock in the morning so as to reduce the situation that the battery is not fully charged when the user gets up and unplugs the charger.
  • the electronic device determines the first duration and the second duration according to the first data, including: the electronic device inputs the first predicted charging duration into the second charging model to obtain the first A duration and a second duration; the first predicted charging duration is determined by the electronic device according to the first data; the training data of the second charging model includes second input data and second output data.
  • the second input data includes the second predicted charging time, the second predicted charging time is determined based on the first historical charging data of the first user;
  • the first historical charging data includes the time when the electronic device starts to charge the battery, the electronic device When starting to charge the battery, the battery level, the type of charger, the actual charging time for the electronic device to charge the battery, the time zone in which it is located, the average charging time in a week, the power consumption of the electronic device, and whether the charging time of the sensor information is during a holiday One or more.
  • the second output data includes a first charging duration and a second charging duration
  • the first charging duration is obtained by subtracting the first correction amount from the actual charging duration of the first user
  • the second charging duration is equal to the first correction amount
  • the first correction amount is determined according to the confidence level of the first charging model.
  • the second predicted charging duration is determined based on the first historical charging data of the first user, and specifically includes: the second predicted duration is calculated by inputting the first historical data into the first charging model by the electronic device;
  • the training data includes first input data and second input data, and the first input data includes second historical charging data of a plurality of users.
  • the second historical charging data includes the time when the electronic device starts to charge the battery, the power level of the battery when the electronic device starts to charge the battery, the type of the charger, and the Whether the actual charging time for the electronic device to charge the battery, the time zone in which it is located, the average charging time in a week, the power consumption of the electronic device, and the time for the sensor information to be charged are one or more of holidays.
  • the electronic device trains a charging model that outputs the first duration and the second duration according to the historical charging data of the specific user. Different users have different time periods for fast charging and slow charging of the battery in the same charging scenario. In this way, the charging habits of each user can be met, and the electronic equipment of each user can be more accurately controlled for charging.
  • the first charging model and the second charging model exist in a cloud server (for example, Huawei Cloud) provided by an electronic device manufacturer.
  • the user logs into the cloud service account in the user's electronic device, and the cloud server collects training data to train the first charging model and the second charging model. Every time the user starts charging, the electronic device sends the first data collected to the cloud server.
  • the first charging model and the second charging model in the cloud server are sent to the electronic device after obtaining the first time length and the second time length. In this way, the electronic device does not need to save the first charging model and the second charging model, which can save the memory space of the electronic device.
  • the first charging model and the second charging model exist in the user’s electronic device, so as to prevent the user from charging when not connected to the network and failing to obtain the charging model prediction The first duration and the second duration of the current charge.
  • the charging history data of the user electronic device also includes charging location information, such as home, office, or outdoor information.
  • charging location information such as home, office, or outdoor information.
  • the total time from when the user inserts the charger to the electronic device to start charging to the end of charging is different.
  • Combining different location information to train the second charging model can make the first duration and second duration output by the second charging model more in line with the user's charging habits, so as to better control the charging process of the battery in the electronic device.
  • an electronic device including a memory, a processor, a charging management module, a power management module, and a battery; the power management module, the memory and the processor are coupled, the charging management module, the battery and the power management module are coupled, and the charging management The module is coupled to the battery.
  • the processor is used to obtain first data, where the first data is used to characterize the state when the charging management module detects that the external power supply is connected; the first time length and the second time length are determined according to the first data, where the first time length is used To characterize the predicted charging time length of the charging management module using the first charging parameter, the second time length is used to characterize the predicted charging time length of the charging management module using the second charging parameter.
  • the power management module is used to monitor the remaining power of the battery.
  • the charging management module is used to detect the external power supply access; the battery is charged according to the first charging parameter, and the charging time is the first actual charging time; the first actual charging time is used to characterize the actual charging of the charging management module with the first charging parameter Charging time; when the third time is equal to the first time, the battery is charged according to the second charging parameter, the charging time is the second actual charging time, and the second actual charging time is used to characterize that the charging management module is charged with the second charging parameter The actual charging time.
  • the charging efficiency of the charging management module using the first charging parameter is higher than the charging efficiency of the charging management module using the second charging parameter.
  • the first data includes the time when the external power source is connected, the remaining power when the electronic device detects that the external power source is connected, the type of charger, the time zone of the electronic device, the on-off screen information of the electronic device, and the settings in the electronic device.
  • the first charging parameter includes a first charging cut-off voltage and a first charging input power
  • the second charging parameter includes a second charging cut-off voltage and a second charging input power
  • the first charging cut-off voltage is greater than the second charging cut-off voltage
  • the charging input power is greater than the second charging input power.
  • the electronic device can control the charging process when charging the battery.
  • the electronic device can quickly charge the battery, and then slowly charge the battery.
  • the electronic device can determine the duration of fast charging and slow charging according to the scene when the user accesses. In different scenarios, the time for the electronic device to charge the battery quickly or slowly is different.
  • the electronic device can delay the battery charging to a fully charged state through the charge management control. In this way, the time that the battery will continue to be charged when it is fully charged can be reduced. As a result, the use time of the battery in the electronic device can be prolonged, and the user experience can be improved.
  • the charging management module performs charging according to the second charging parameter, and after the charging time is the second actual charging duration, the charging management module is further used to: when the second actual charging duration is equal to the first For two hours, charging is performed according to the first charging parameter. If the electronic device has been charging slowly, when the user disconnects the connection between the external power supply and the electronic device, the battery power in the electronic device may not be charged to 100%. When the electronic device is charged slowly for a period of time, the fast charge is continued, and the electronic device quickly charges the battery to 100%. In this way, it is possible to reduce the occurrence of the situation that the battery power in the user electronic device is not charged to 100% when the charging is completed.
  • the first data includes the time when the external power source is connected, and the time when the external power source is connected is in the night time period.
  • the night time period can be 23:00-6:00.
  • the electronic device controls the battery charging, that is, the electronic device first charges the battery quickly, and then charges slowly.
  • the user may connect the electronic device to an external power source for a long time, which may cause the battery in the electronic device to be charged under a fully charged state.
  • users In the daytime, users generally do not connect electronic devices to external power sources for a long time. Therefore, the electronic device quickly charges the battery. In this way, it is more in line with user habits and improves user experience.
  • the processor is further configured to: detect the first event.
  • the charging management module is specifically configured to: in response to detecting the first event, stop charging according to the second charging parameter, and start charging according to the third charging parameter; when the charging management module uses the third charging parameter to charge, the charging efficiency is higher than the charging management The charging efficiency when the module is charged with the second charging parameter.
  • the first event includes that the number of screen on of the electronic device is greater than the first threshold, the screen on time of the electronic device is greater than the second threshold, the number of screen off of the electronic device is greater than the third threshold, the screen off time of the electronic device is less than the fourth threshold,
  • the power consumption of the electronic device is greater than the fifth threshold, the electronic device is activated or uses one or more of the video application, the electronic device is activated, or the game application.
  • the electronic device When the electronic device slowly charges the battery or stops charging, if the user uses the electronic device, the remaining power of the electronic device may not be enough to maintain the normal operation of the application that the user of the electronic device starts. At this time, the electronic device charges the battery according to the third charging parameter, that is, performs fast charging of the battery. In this way, the power of the electronic device can be sufficient to maintain the normal operation of the user to start the application. Thereby improving the user experience.
  • charging is started according to the third charging parameter, and the charging management module is specifically configured to: charging according to the third charging parameter, the charging time is the third actual charging duration, and the first 3.
  • the actual charging time is used to characterize the actual time for the charging management module to charge with the third charging parameter; when the third actual charging time is equal to the third time, the charging management module charges according to the fourth charging parameter, and the charging time is the fourth actual Charging time length; the third time length is used to characterize the predicted charging time length of the charging management module using the third charging parameter, and the fourth actual charging time length is used to characterize the actual charging time length of the charging management module using the fourth charging parameter; where, charging The charging efficiency of the management module using the third charging parameter to charge is higher than that of the charging management module using the fourth charging parameter to charge; the third duration is determined by the second data, and the second data is used to characterize that the processor detects the first The state at the time of the event.
  • the second data includes the time when the processor detects the first event, the remaining power when the processor detects the first event, the type of charger, the time zone of the electronic device, the on-off screen information of the electronic device, and the electronic device.
  • the electronic device in the process of slow charging of the battery by the electronic device, if the user uses the electronic device, the electronic device recharges the battery quickly for a period of time, and then slowly charges the battery.
  • the electronic device predicts, according to the second data acquired by the electronic device when the user uses the electronic device, the time period for the electronic device to recharge the battery quickly and the length of time for the slow charging. In this way, the electronic device can change the charging efficiency of the electronic device to the battery according to a specific scenario. In this way, it is possible to meet the requirement that the power of the electronic device is sufficient for the user to use the electronic device normally during the electronic device charging process, thereby improving the user experience.
  • the processor is further configured to: detect the second event.
  • the charging management module is specifically configured to: in response to detecting a second event, perform charging according to the first charging parameter, the second event is used to characterize the user preset time recorded in the memory; when the remaining power of the battery is charged to the first threshold , Charging according to the second charging parameter; when the charging reaches the first time, charging according to the fifth charging parameter, the first time being the time before the user preset time.
  • the second event includes one or more of the alarm time set in the electronic device, the reminder time point of the memo, the set time point of the schedule, and the reminder time point of the to-do item.
  • the user When the user charges the electronic device, especially at night, the user sets the wake-up alarm for the next morning in the electronic device, and the user generally wakes up when the alarm clock rings and unplugs the charger of the electronic device. In this way, the electronic device performs charging control according to the alarm time set by the user, which is more in line with the user's habit.
  • the remaining power of the electronic device when the remaining power of the electronic device is charged to a certain threshold, it starts to slowly charge, which can reduce the time that the battery is charged in a fully charged state. Resume fast charging some time before the alarm time, which can ensure that the electronic device is fully charged when the user unplugs the charger. In this way, the user experience can be improved.
  • the charging management module is specifically configured to perform charging or stop charging according to the second charging parameter. That is, when the electronic device is charged with the second charging parameter, the electronic device can slowly charge the battery or stop charging the battery.
  • the third charging parameter and the fifth charging parameter are the same as the first charging parameter; and the fourth charging parameter is the same as the second charging parameter.
  • the sum of the first duration and the second duration is not less than the sixth threshold. If the sum of the first time length and the second time length predicted by the electronic device according to the first data is too short. Even if the total time that the user charges the electronic device in this scenario is not long, then the electronic device does not perform charging control. Electronic equipment has been fast charging. This can prevent the user from not being fully charged at the end of charging.
  • the processor is further configured to: determine that an alarm clock is not set in the electronic device within the first time period after the external power supply is connected, and in the period of 23:00-6:00 The internal and external power sources are in the connected state, and the sum of the first time period and the second time period is greater than 4 hours.
  • the charging management module is configured to: charge according to the first charging parameter until the remaining power of the electronic device is 80%; and stop. Charging; if the remaining battery charge to 80% of the time is half an hour before the alarm time arrives, half an hour before the alarm time arrives, charge according to the first charging parameter, and charge to the alarm time.
  • the electronic device will control the charging process of the battery according to the alarm time. That is, the electronic device performs fast charging of the battery first, and stops charging when the battery power reaches 80%. When the alarm time reaches half an hour before the alarm time, the fast charge will be resumed until the alarm time. If there is no alarm clock set in the electronic device, and the battery is charged within the time period of 23:00-6:00, and the electronic device predicts that the sum of the first duration and the second duration is greater than 4 hours, the electronic device will quickly charge the battery first. The first duration, then slow charging and stop charging for the second duration. Otherwise, the electronic device keeps fast charging the battery. In this way, the time that the battery is fully charged can be reduced, and the situation that the battery is not fully charged at the end of the charging can be reduced.
  • charging is performed according to the second charging parameter
  • the charging time is the second actual charging duration
  • the charging management module is further configured to: if the second actual charging duration is less than the second duration, obtain When the time to the time zone of the electronic device is 6:00, the charging according to the second charging parameter is stopped.
  • the battery may not be fully charged when the charging is finished.
  • Resume fast charging at 6 o'clock in the morning, so as to reduce the situation that the battery is not fully charged when the user gets up and unplugs the charger.
  • the processor is specifically configured to: input the first predicted charging duration into the second charging model to obtain the first duration and the second duration; the first predicted charging duration is the electronic device Determined according to the first data; the training data of the second charging model includes second input data and second output data.
  • the second input data includes the second predicted charging time, the second predicted charging time is determined based on the first historical charging data of the first user;
  • the first historical charging data includes the time when the electronic device starts to charge the battery, and the electronic device When starting to charge the battery, the battery level, the type of charger, the actual charging time for the electronic device to charge the battery, the time zone in which it is located, the average charging time in a week, the power consumption of the electronic device, and whether the charging time of the sensor information is during a holiday One or more.
  • the second output data includes a first charging duration and a second charging duration
  • the first charging duration is obtained by subtracting the first correction amount from the actual charging duration of the first user
  • the second charging duration is equal to the first correction amount
  • the first correction amount is determined according to the confidence level of the first charging model.
  • the second predicted charging duration is determined based on the first historical charging data of the first user, and specifically includes: the second predicted duration is calculated by inputting the first historical data into the first charging model by the electronic device;
  • the training data includes first input data and second input data, and the first input data includes second historical charging data of a plurality of users.
  • the second historical charging data includes the time when the electronic device starts to charge the battery, the power level of the battery when the electronic device starts to charge the battery, the type of the charger, and the Whether the actual charging time for the electronic device to charge the battery, the time zone in which it is located, the average charging time in a week, the power consumption of the electronic device, and the time for the sensor information to be charged are one or more of holidays.
  • the electronic device trains a charging model that outputs the first duration and the second duration according to the historical charging data of the specific user. Different users have different time periods for fast charging and slow charging of the battery in the same charging scenario. In this way, the charging habits of each user can be met, and the electronic equipment of each user can be more accurately controlled for charging.
  • the first charging model and the second charging model exist in a cloud server (such as Huawei Cloud) provided by an electronic device manufacturer.
  • the user logs into the cloud service account in the user's electronic device, and the cloud server collects training data to train the first charging model and the second charging model. Every time the user starts charging, the electronic device sends the first data collected to the cloud server.
  • the first charging model and the second charging model in the cloud server are sent to the electronic device after obtaining the first time length and the second time length. In this way, the electronic device does not need to save the first charging model and the second charging model, which can save the memory space of the electronic device.
  • the first charging model and the second charging model exist in the user’s electronic device, so as to prevent the user from charging when the user is not connected to the network and failing to obtain the charging model prediction The first duration and the second duration of the current charge.
  • the charging history data of the user's electronic device also includes charging location information, such as home, office, or outdoor information.
  • charging location information such as home, office, or outdoor information.
  • the total time from when the user inserts the charger to the electronic device to start charging to the end of charging is different.
  • Combining different location information to train the second charging model can make the first duration and second duration output by the second charging model more in line with the user's charging habits, so as to better control the charging process of the battery in the electronic device.
  • an electronic device including one or more touch screens, one or more storage modules, and one or more processing modules; wherein the one or more storage modules store one or more programs; When the one or more processing modules execute the one or more programs, the electronic device implements the method described in any one of the possible implementation manners in the first aspect.
  • an electronic device including: a memory and a processor; the memory is coupled to the processor, and the memory is used to store computer program code, the computer program code includes computer instructions, wherein the processor is used to: detect that an external power source is connected In response to detecting that the external power supply is connected, first data is acquired, where the first data is used to characterize the state when the processor detects the external power supply; in response to the detection of the external power supply, charging starts; according to the first The data determines the first duration and the second duration, where the first duration is used to characterize the predicted charging duration of the processor using the first charging parameter, and the second duration is used to characterize the predicted charging duration of the processor using the second charging parameter Duration; charging according to the first charging parameter, the charging time is the first actual charging duration, the first actual charging duration is used to characterize the actual charging duration of the processor using the first charging parameters; when the first actual charging duration is equal to the first When the time is long, the charging is performed according to the second charging parameter, and the charging time is the second
  • the first data includes the time when the external power source is connected, the remaining power when the processor detects that the external power source is connected, the type of charger, the time zone of the electronic device, the on-off information of the electronic device, and the setting of the electronic device.
  • the first charging parameter includes a first charging cut-off voltage and a first charging input power
  • the second charging parameter includes a second charging cut-off voltage and a second charging input power
  • the first charging cut-off voltage is greater than the second charging cut-off voltage
  • the charging input power is greater than the second charging input power.
  • the electronic device can control the charging process when charging the battery.
  • the electronic device can quickly charge the battery, and then slowly charge the battery.
  • the electronic device can determine the duration of fast charging and slow charging according to the scene when the user accesses. In different scenarios, the time for the electronic device to charge the battery quickly or slowly is different.
  • the electronic device can delay the battery charging to a fully charged state through the charge management control. In this way, the time that the battery will continue to be charged when it is fully charged can be reduced. As a result, the use time of the battery in the electronic device can be prolonged, and the user experience can be improved.
  • the first data includes the time when the external power source is connected, and the time when the external power source is connected is in the night time period.
  • the night time period can be 23:00-6:00.
  • the electronic device controls the battery charge, that is, the electronic device first charges the battery quickly and then slowly.
  • the user may connect the electronic device to an external power source for a long time, which may cause the battery in the electronic device to be charged under a fully charged state.
  • users In the daytime, users generally do not connect electronic devices to external power sources for a long time. Therefore, the electronic device quickly charges the battery. In this way, it is more in line with user habits and improves user experience.
  • the processor is further configured to: detect the first event, in response to detecting the first event, stop charging according to the second charging parameter, and start charging according to the third charging parameter ;
  • the charging efficiency when the charging management module uses the third charging parameter to charge is higher than the charging efficiency when the charging management module uses the second charging parameter to charge.
  • the first event includes that the number of screen on of the electronic device is greater than the first threshold, the screen on time of the electronic device is greater than the second threshold, the number of screen off of the electronic device is greater than the third threshold, the screen off time of the electronic device is less than the fourth threshold,
  • the power consumption of the electronic device is greater than the fifth threshold, the electronic device is activated or uses one or more of the video application, the electronic device is activated, or the game application.
  • the electronic device When the electronic device slowly charges the battery or stops charging, if the user uses the electronic device, the remaining power of the electronic device may not be enough to maintain the normal operation of the application that the user of the electronic device starts. At this time, the electronic device charges the battery according to the third charging parameter, that is, performs fast charging of the battery. In this way, the power of the electronic device can be sufficient to maintain the normal operation of the user to start the application. Thereby improving the user experience.
  • charging is started according to the third charging parameter, and the processor is specifically configured to: charging according to the third charging parameter, the charging time is the third actual charging duration, and the third The actual charging time is used to characterize the actual time for the processor to charge with the third charging parameter; when the third actual charging time is equal to the third time, the processor charges according to the fourth charging parameter, and the charging time is the fourth actual charging time;
  • the third time length is used to characterize the predicted charging time length of the processor using the third charging parameter
  • the fourth actual charging time length is used to characterize the actual charging time length of the processor using the fourth charging parameter; where the processor uses the third charging parameter to charge.
  • the charging efficiency of the parameter charging is higher than the charging parameter of the processor charging with the fourth charging parameter; the third duration is determined by the second data, and the second data is used to characterize the state when the processor detects the first event.
  • the second data includes the time when the processor detects the first event, the remaining power when the processor detects the first event, the type of charger, the time zone of the electronic device, the on-off screen information of the electronic device, and the electronic device.
  • the electronic device in the process of slow charging of the battery by the electronic device, if the user uses the electronic device, the electronic device recharges the battery quickly for a period of time, and then slowly charges the battery.
  • the electronic device predicts, according to the second data acquired by the electronic device when the user uses the electronic device, the time period for the electronic device to recharge the battery quickly and the length of time for the slow charging. In this way, the electronic device can change the charging efficiency of the electronic device to the battery according to a specific scenario. In this way, it is possible to meet the requirement that the power of the electronic device is sufficient for the user to use the electronic device normally during the electronic device charging process, thereby improving the user experience.
  • the processor is further configured to: detect a second event, and in response to detecting the second event, perform charging according to the first charging parameter, and the second event is used to characterize the memory Recorded user preset time; when the remaining power of the battery is charged to the first threshold, it is charged according to the second charging parameter; when the first time is charged, it is charged according to the fifth charging parameter, and the first time is preset by the user Time before time.
  • the second event includes one or more of the alarm time set in the electronic device, the reminder time point for memo setting, the time point for schedule setting, and the reminder time point for to-do items.
  • the user When the user charges the electronic device, especially at night, the user sets the wake-up alarm for the next morning in the electronic device, and the user generally wakes up when the alarm clock rings and unplugs the charger of the electronic device. In this way, the electronic device performs charging control according to the alarm time set by the user, which is more in line with the user's habit.
  • the remaining power of the electronic device when the remaining power of the electronic device is charged to a certain threshold, it starts to slowly charge, which can reduce the time that the battery is charged in a fully charged state. Resume fast charging some time before the alarm time, which can ensure that the electronic device is fully charged when the user unplugs the charger. In this way, the user experience can be improved.
  • the processor is specifically configured to perform charging or stop charging according to the second charging parameter. That is, when the electronic device is charged with the second charging parameter, the electronic device can slowly charge the battery or stop charging the battery.
  • the third charging parameter and the fifth charging parameter are the same as the first charging parameter; and the fourth charging parameter is the same as the second charging parameter.
  • the sum of the first duration and the second duration is not less than the sixth threshold. If the sum of the first time length and the second time length predicted by the electronic device according to the first data is too short. Even if the total time that the user charges the electronic device in this scenario is not long, then the electronic device does not perform charging control. Electronic equipment has been fast charging. This can prevent the user from not being fully charged at the end of charging.
  • the processor is further configured to: determine that no alarm clock is set in the electronic device within the first time period after the external power supply is connected, and in the period of 23:00-6:00 The internal and external power sources are in the connected state, and the sum of the first time period and the second time period is greater than 4 hours.
  • the processor determines that an alarm clock is set in the electronic device within the first time period after the external power supply is connected, the processor is configured to: charge according to the first charging parameter until the remaining power of the electronic device is 80%; stop charging; If the remaining battery charge to 80% is earlier than half an hour before the alarm time arrives, half an hour before the alarm time arrives, charge according to the first charging parameter, and charge until the alarm time.
  • the electronic device controls the battery charging process according to the alarm time. That is, the electronic device performs fast charging of the battery first, and stops charging when the battery power reaches 80%. When the alarm time reaches half an hour before the alarm time, the fast charge will be resumed until the alarm time. If there is no alarm clock set in the electronic device, and the battery is charged within the time period of 23:00-6:00, and the electronic device predicts that the sum of the first duration and the second duration is greater than 4 hours, the electronic device will quickly charge the battery first. The first duration, then slow charging and stop charging for the second duration. Otherwise, the electronic device keeps fast charging the battery. In this way, the time that the battery is fully charged can be reduced, and the situation that the battery is not fully charged at the end of the charging can be reduced.
  • charging is performed according to the second charging parameter
  • the charging time is the second actual charging duration
  • the processor is further configured to: if the second actual charging duration is less than the second duration, obtain When the time of the time zone of the electronic device is 6:00, the charging according to the second charging parameter is stopped.
  • the battery may not be fully charged when the charging is finished.
  • Resume fast charging at 6 o'clock in the morning so as to reduce the situation that the battery is not fully charged when the user gets up and unplugs the charger.
  • the processor is specifically configured to: input the first predicted charging duration into the second charging model to obtain the first duration and the second duration; the first predicted charging duration is the electronic device Determined according to the first data; the training data of the second charging model includes second input data and second output data.
  • the second input data includes the second predicted charging time, the second predicted charging time is determined based on the first historical charging data of the first user;
  • the first historical charging data includes the time when the electronic device starts to charge the battery, the electronic device When starting to charge the battery, the battery level, the type of charger, the actual charging time for the electronic device to charge the battery, the time zone in which it is located, the average charging time in a week, the power consumption of the electronic device, and whether the charging time of the sensor information is during a holiday One or more.
  • the second output data includes a first charging duration and a second charging duration
  • the first charging duration is obtained by subtracting the first correction amount from the actual charging duration of the first user
  • the second charging duration is equal to the first correction amount
  • the first correction amount is determined according to the confidence level of the first charging model.
  • the second predicted charging duration is determined based on the first historical charging data of the first user, and specifically includes: the second predicted duration is calculated by inputting the first historical data into the first charging model by the electronic device;
  • the training data includes first input data and second input data, and the first input data includes second historical charging data of a plurality of users.
  • the second historical charging data includes the time when the electronic device starts to charge the battery, the power level of the battery when the electronic device starts to charge the battery, the type of the charger, and the Whether the actual charging time for the electronic device to charge the battery, the time zone in which it is located, the average charging time in a week, the power consumption of the electronic device, and the time for the sensor information to be charged are one or more of holidays.
  • the electronic device trains a charging model that outputs the first duration and the second duration according to the historical charging data of the specific user. Different users have different time periods for fast charging and slow charging of the battery in the same charging scenario. In this way, the charging habits of each user can be met, and the electronic equipment of each user can be more accurately controlled for charging.
  • the first charging model and the second charging model exist in a cloud server (for example, Huawei Cloud) provided by an electronic device manufacturer.
  • the user logs into the cloud service account in the user's electronic device, and the cloud server collects training data to train the first charging model and the second charging model. Every time the user starts charging, the electronic device sends the first data collected to the cloud server.
  • the first charging model and the second charging model in the cloud server are sent to the electronic device after obtaining the first time length and the second time length. In this way, the electronic device does not need to save the first charging model and the second charging model, which can save the memory space of the electronic device.
  • the first charging model and the second charging model exist in the user's electronic device, so as to prevent the user from charging when not connected to the network and failing to obtain the charging model prediction The first duration and the second duration of the current charge.
  • the charging history data of the user electronic device also includes charging location information, such as home, office, or outdoor information.
  • charging location information such as home, office, or outdoor information.
  • the total time from when the user inserts the charger to the electronic device to start charging to the end of charging is different.
  • Combining different location information to train the second charging model can make the first duration and second duration output by the second charging model more in line with the user's charging habits, so as to better control the charging process of the battery in the electronic device.
  • an electronic device including one or more touch screens, one or more memories, and one or more processors; wherein the one or more memories store one or more programs; when the When the one or more processors execute the one or more programs, the electronic device implements the method described in any one of the possible implementation manners in the first aspect.
  • a computer-readable storage medium including instructions, which are characterized in that, when the foregoing instructions are executed on an electronic device, the electronic device executes any possible implementation manner as in the first aspect.
  • a computer product is provided.
  • the computer program product runs on a computer, the computer executes any possible implementation manner as in the first aspect.
  • FIG. 1 is a schematic diagram of a time node in charging management and control provided in the prior art
  • FIG. 2 is a schematic diagram of the hardware structure of an electronic device provided by an embodiment of the application.
  • FIG. 3 is a schematic flowchart of a charging management and control method provided by an embodiment of the application.
  • FIG. 4 is a schematic diagram of a user interface for charging a battery by an electronic device of user A according to an embodiment of the application;
  • 5A-5F are schematic diagrams of a user interface for charging a battery by an electronic device of user A according to an embodiment of the application;
  • 6A-6E are schematic diagrams of a user interface for charging a battery with an electronic device of user B according to an embodiment of the application;
  • FIG. 7 is a schematic diagram of a user interface for charging a battery by an electronic device according to an embodiment of the application.
  • first and second are only used for descriptive purposes, and cannot be understood as implying or implying relative importance or implicitly specifying the number of indicated technical features. Therefore, the features defined with “first” and “second” may explicitly or implicitly include one or more of these features. In the description of the embodiments of the present application, unless otherwise specified, “multiple” The meaning is two or more. In addition, the terms “including” and “having” and any variations thereof mentioned in the description of this application are intended to cover non-exclusive inclusions.
  • a process, method, system, product, or device that includes a series of steps or units is not limited to the listed steps or units, but optionally includes other steps or units that are not listed, or optionally also Including other steps or units inherent to these processes, methods, products or equipment.
  • words such as “exemplary” or “for example” are used as examples, illustrations, or illustrations. Any embodiment or design solution described as “exemplary” or “for example” in the embodiments of the present application should not be construed as being more preferable or advantageous than other embodiments or design solutions.
  • words such as “exemplary” or “for example” are used to present related concepts in a specific manner.
  • the method is specifically as follows: Time, charging time, etc.), train a charging model.
  • the training data of the charging model includes input data and corresponding output data.
  • the input data includes the charging start time and the remaining power when the electronic device detects the external power supply.
  • the output data includes the total charging time and the battery power at the end of the charging.
  • the charging model can be stored in an electronic device. After the electronic device inputs the time when the electronic device detects the external power supply connection and the electronic device detects the remaining power when the external power supply is connected to the charging model, the charging model can output the predicted charging duration of the current charging process and the battery power threshold A.
  • the electronic device suspends charging the battery.
  • the electronic device inputs the time when the electronic device detects the external power supply is connected and the remaining power when the electronic device detects the external power supply is connected to the charging model to obtain The predicted charging time for the electronic device to charge the battery this time and the battery power threshold A.
  • the current time is approaching the end time of the current charging (that is, the predicted end charging time)
  • the electronic device continues to charge the battery. After the electronic device detects that the electronic device is disconnected from the charger, the electronic device stops charging the battery.
  • the fully charged state may mean that the power of the battery reaches the battery capacity.
  • the battery capacity can reach the rated capacity of the battery (that is, the capacity of the battery specified during design and production).
  • the battery capacity will be slightly less than the battery capacity in the fully charged state.
  • the battery capacity obviously cannot reach the battery capacity when it is fully charged. In other words, the actual capacity of the battery will change due to battery loss during use.
  • the method proposed in the prior art can perform charging management and control during the charging process, reducing the length of time the battery is in a fully charged state, and thus can reduce the situation that the battery continues to be charged in the fully charged state.
  • the determination of whether to turn on charging control through a fixed threshold A does not take into account the charging habits of specific users. It can be seen from Figure 1 that if the battery ends at the estimated end of the charging time, the battery is actually not fully charged. The battery cannot be fully charged until the actual end of charging time. If the user continues to use the electronic device when the battery is finished charging, but the battery of the electronic device is not fully charged, the user will have insufficient power too quickly during the process of using the electronic device. In this way, the user experience is affected.
  • Each user has different charging habits for charging electronic devices. If a unified threshold is set in the electronic devices of all users for charging control, it is impossible to better control the charging of each user's electronic devices. During the charging process of electronic devices, in order to better control the charging of each user's electronic device, and in order to reduce the battery in each user's electronic device from continuing to charge in a fully charged state, the battery will be depleted.
  • the embodiment of the present application proposes a charging management and control method.
  • the method specifically includes: First, when the electronic device detects that the external power source is connected, the first data can be obtained (for example, the time when the electronic device detects the external power source is connected, the remaining power when the electronic device detects the external power source is connected, charging Monitor type, time zone, etc.).
  • the first data is used to describe the charging scenario when the electronic device detects that the external power source is connected.
  • the electronic device obtains the first duration and the second duration according to the first data. The start time of the second duration is later than or equal to the end time of the first duration.
  • the electronic device charges the battery with the first charging parameter; in the second time period, the electronic device charges the battery with the second charging parameter; the charging efficiency of the first charging parameter is higher than that of the second charging parameter Charging efficiency. If the battery is not fully charged within the second time period, the electronic device can continue to charge the battery with the first charging parameter. When the electronic device detects that the connection with the external power source is disconnected, the electronic device ends charging the battery. Among them, during the second time period, charging may not be performed, that is, the charging efficiency of the second charging parameter is zero.
  • the electronic device may have a first charging model and a second charging model.
  • the electronic device may input the first data into the first charging model to obtain the first predicted duration.
  • the electronic device inputs the first predicted duration into the second charging model to obtain the first duration and the second duration.
  • the first charging model is trained on the charging history data of multiple users.
  • the input data of the first charging model is the charging start time, the battery level at the beginning of the charging, the type of charger, and the time zone in which it is located, and the output of the first charging model is the actual charging time.
  • the input in the training data of the second charging model is the predicted charging duration obtained after the historical charging data of the specific user is input into the first charging model.
  • the output in the training data of the second charging model is the first charging duration and the second charging duration.
  • the initial value of the first charging duration is equal to the actual charging duration.
  • the initial value of the second charging duration is equal to zero. Because the first time length output by the second charging model trained in this way will be infinitely close to the actual charging time length, and the second time length will be infinitely close to zero.
  • the value of the second time period should be larger, so that the charging time period under the fully charged state of the battery can be made shorter. However, if the second period is too long, the battery will not be fully charged at the end of charging.
  • this application uses the first correction amount to adjust the first charging time and the second charging time in the training data. Make corrections.
  • the first charging duration is obtained by subtracting the first correction amount from the actual charging duration of the specific user; the second charging duration is equal to the first correction amount.
  • the first correction amount is determined according to the confidence level of the first charging model.
  • the time when the external power source is connected to the electronic device is the time in the time zone where the electronic device is located. For example, if a user goes from Beijing to Mexico, the electronic device can display Beijing time and Mexico time at the same time. When a user charges an electronic device in Mexico, the time when the external power source that the electronic device obtains is connected to the local time in Mexico.
  • charging control Changing the charging efficiency in the process of electronic equipment charging the battery is called charging control.
  • the battery in the process of charging the battery by an electronic device, the battery can be quickly charged first, and then changed to slow charging, which is the charge management control.
  • Electronic devices can change the charging efficiency by adjusting the charging cut-off voltage, charging input power, and so on. Understandably, the charging input power is determined by the charging input current and the charging input voltage.
  • the actual charging time refers to the total time from when the user plugs in the charger into the electronic device to start charging to when the user unplugs the charger, and the electronic device finishes charging. That is, the total time from when the electronic device detects that it is connected to the charger and starts charging to when the electronic device detects that it is disconnected from the charger and ends the charging.
  • Predicted charging time means that the electronic device predicts the current user’s charge based on data such as the battery’s power, charging start time, charger type, battery cycle times, battery actual capacity, and battery health status obtained during the current charge.
  • the electronic device can predict the first duration and the second duration of the current charge based on the predicted charging duration. The specific prediction process for predicting the charging duration will be described below, and will not be repeated here.
  • the first duration refers to the duration predicted by the electronic device for the electronic device to charge the battery with the first charging parameter.
  • the first duration may be predicted by the electronic device according to the battery power when the electronic device detects the connection with the charger, the time when the electronic device detects the connection with the charger, the type of the charger, and the predicted charging duration. It is understandable that the electronic device has not fully charged the battery in the first period of time.
  • the second duration refers to the duration predicted by the electronic device for the electronic device to charge the battery using the second charging parameter.
  • the second duration of the current charging process can be predicted by the electronic device based on the battery power acquired during the current charging, the charging start time, the type of charger, and the predicted charging duration.
  • the charging parameters in the embodiments of the present application include charging cut-off voltage, charging input voltage, charging input current, and so on.
  • the first charging parameter, the second charging parameter, the third charging parameter, and the fourth charging parameter may be constant, or may be multiple sets or changes.
  • the electronic device may be charging the battery with the first charging parameter or the second charging parameter, and the battery is not fully charged. Therefore, the electronic device records the predicted charging time longer than the actual charging time as a false alarm.
  • the rate of return is related to the predicted charging time.
  • the rate of return is equal to 100%.
  • the electronic device has fully charged the battery before the user unplugs the charger, which is not a false alarm.
  • the electronic device may have been charging the battery in a fully charged state for a period of time, so the rate of return is not 100%.
  • the predicted charging duration is less than the actual charging duration, the closer the predicted charging duration is to the actual charging duration, the greater the rate of return.
  • the profit at this time is 90%. If the first charging model predicts that charging will end at 6 in the morning, the rate of return is 80%. It is understandable that the return rates of 90% and 80% are just examples to illustrate the relationship between the return rate and the predicted charging time, and there is no limitation on how the return rate is calculated.
  • the confidence level of the first charging model indicates the credibility of the model.
  • the time for the user to fully charge the battery when unplugged and to charge the battery in a fully charged state should be as short as possible, both of which need to be guaranteed.
  • the rate of return the higher the confidence.
  • the choice between the profit rate and the false alarm rate is related to the user's personal habits. For example, if the user unplugs the charger every time the battery is fully charged, then the profit rate may be mainly guaranteed.
  • the specific values of the return rate and the false alarm rate are not limited here.
  • the confidence level C of the first charging model is related to the rate of return and the rate of false alarms.
  • the confidence level of the second charging model also indicates the credibility of the second charging model. The higher the confidence of the second charging model, the more the charging control of the electronic device conforms to the user's habits. Since the confidence of the second charging model does not need to be used in the subsequent calculations of the embodiment of the present application, the confidence of the second charging model will not be introduced too much here.
  • FIG. 2 shows a schematic diagram of the structure of the electronic device 100.
  • the electronic device 100 may have more or fewer components than shown in the figure, may combine two or more components, or may have different component configurations.
  • the various components shown in the figure may be implemented in hardware, software, or a combination of hardware and software including one or more signal processing and/or application specific integrated circuits.
  • the electronic device 100 may include a processor 110, an internal memory 121, a universal serial bus (USB) interface 130, a charging management module 140, a power management module 141, a battery 142, a sensor module 180, a display screen 194, and so on.
  • the sensor module 180 may include a gyroscope sensor 180B, a magnetic sensor 180D, an acceleration sensor 180E, and so on.
  • the structure illustrated in the embodiment of the present invention does not constitute a specific limitation on the electronic device 100.
  • the electronic device 100 may include more or fewer components than those shown in the figure, or combine certain components, or split certain components, or arrange different components.
  • the illustrated components can be implemented in hardware, software, or a combination of software and hardware.
  • the processor 110 may include one or more processing units.
  • the processor 110 may include an application processor (AP), a modem processor, a graphics processing unit (GPU), and an image signal processor. (image signal processor, ISP), controller, memory, video codec, digital signal processor (digital signal processor, DSP), baseband processor, and/or neural-network processing unit (NPU) Wait.
  • AP application processor
  • modem processor modem processor
  • GPU graphics processing unit
  • image signal processor image signal processor
  • ISP image signal processor
  • controller memory
  • video codec digital signal processor
  • DSP digital signal processor
  • NPU neural-network processing unit
  • the different processing units may be independent devices or integrated in one or more processors.
  • the controller may be the nerve center and command center of the electronic device 100.
  • the controller can generate operation control signals according to the instruction operation code and timing signals to complete the control of fetching instructions and executing instructions.
  • a memory may also be provided in the processor 110 to store instructions and data.
  • the memory in the processor 110 is a cache memory.
  • the memory can store instructions or data that have just been used or recycled by the processor 110. If the processor 110 needs to use the instruction or data again, it can be directly called from the memory. Repeated accesses are avoided, the waiting time of the processor 110 is reduced, and the efficiency of the system is improved.
  • the processor may learn and train the charging model according to the historical charging data of the user electronic device.
  • the charging model inputs the charging start time, the battery power when charging starts, and the charger type.
  • the charging model can predict the first time period and the second time period for the electronic device to charge the battery in each charging process.
  • the USB interface 130 is an interface that complies with the USB standard specification, and specifically may be a Mini USB interface, a Micro USB interface, a USB Type C interface, and so on.
  • the USB interface 130 can be used to connect a charger to charge the electronic device 100, and can also be used to transfer data between the electronic device 100 and peripheral devices. It can also be used to connect earphones and play audio through earphones. This interface can also be used to connect other electronic devices, such as AR devices.
  • the interface connection relationship between the modules illustrated in the embodiment of the present invention is merely a schematic description, and does not constitute a structural limitation of the electronic device 100.
  • the electronic device 100 may also adopt different interface connection modes in the foregoing embodiments, or a combination of multiple interface connection modes.
  • the charging management module 140 is used to receive charging input from the charger.
  • the charger can be a wireless charger or a wired charger.
  • the charging management module 140 may receive the charging input of the wired charger through the USB interface 130.
  • the charging management module 140 may receive the wireless charging input through the wireless charging coil of the electronic device 100. While the charging management module 140 charges the battery 142, it can also supply power to the electronic device through the power management module 141.
  • the power management module 141 is used to connect the battery 142, the charging management module 140 and the processor 110.
  • the power management module 141 receives input from the battery 142 and/or the charge management module 140, and supplies power to the processor 110, the internal memory 121, the display screen 194, and the like.
  • the power management module 141 can also be used to monitor parameters such as battery capacity, battery cycle times, and battery health status (leakage, impedance).
  • the power management module 141 may also be provided in the processor 110.
  • the power management module 141 and the charging management module 140 may also be provided in the same device.
  • the electronic device 100 implements a display function through a GPU, a display screen 194, an application processor, and the like.
  • the GPU is an image processing microprocessor, which is connected to the display screen 194 and the application processor.
  • the GPU is used to perform mathematical and geometric calculations and is used for graphics rendering.
  • the processor 110 may include one or more GPUs that execute program instructions to generate or change display information.
  • the display screen 194 is used to display images, videos, and the like.
  • the display screen 194 includes a display panel.
  • the display panel can use liquid crystal display (LCD), organic light-emitting diode (OLED), active matrix organic light-emitting diode or active-matrix organic light-emitting diode (active-matrix organic light-emitting diode).
  • LCD liquid crystal display
  • OLED organic light-emitting diode
  • active-matrix organic light-emitting diode active-matrix organic light-emitting diode
  • AMOLED flexible light-emitting diode (FLED), Miniled, MicroLed, Micro-oLed, quantum dot light-emitting diode (QLED), etc.
  • the electronic device 100 may include one or N display screens 194, and N is a positive integer greater than one.
  • the electronic device can determine whether the user uses the electronic device during the charging process according to the screen on time of the display screen and the number of
  • the internal memory 121 may be used to store computer executable program code, where the executable program code includes instructions.
  • the processor 110 executes various functional applications and data processing of the electronic device 100 by running instructions stored in the internal memory 121.
  • the internal memory 121 may include a storage program area and a storage data area.
  • the storage program area can store an operating system, an application program (such as a sound playback function, an image playback function, etc.) required by at least one function, and the like.
  • the data storage area can store data (such as audio data, phone book, etc.) created during the use of the electronic device 100.
  • the internal memory 121 may include a high-speed random access memory, and may also include a non-volatile memory, such as at least one magnetic disk storage device, a flash memory device, a universal flash storage (UFS), and the like.
  • UFS universal flash storage
  • the gyro sensor 180B may be used to determine the movement posture of the electronic device 100.
  • the angular velocity of the electronic device 100 around three axes ie, x, y, and z axes
  • the gyro sensor 180B can be used for image stabilization.
  • the gyro sensor 180B detects the shake angle of the electronic device 100, calculates the distance that the lens module needs to compensate according to the angle, and allows the lens to counteract the shake of the electronic device 100 through reverse movement to achieve anti-shake.
  • the gyro sensor 180B can also be used for navigation and somatosensory game scenes.
  • the magnetic sensor 180D includes a Hall sensor.
  • the electronic device 100 may use the magnetic sensor 180D to detect the opening and closing of the flip holster.
  • the electronic device 100 can detect the opening and closing of the flip according to the magnetic sensor 180D.
  • features such as automatic unlocking of the flip cover are set.
  • the acceleration sensor 180E can detect the magnitude of the acceleration of the electronic device 100 in various directions (generally three axes). When the electronic device 100 is stationary, the magnitude and direction of gravity can be detected. It can also be used to identify the posture of electronic devices, and apply to applications such as horizontal and vertical screen switching, pedometers, and so on. In this application, the electronic device 100 can switch between horizontal and vertical screens and switch between single-screen display and large-screen display of the folding screen according to changes in the magnitude of acceleration and the magnitude of gravity detected by the acceleration sensor 180E.
  • the electronic device when the electronic device detects that the data collected by the sensor (such as the acceleration collected by the acceleration sensor, the angle collected by the gyroscope) has changed or is greater than a certain threshold, the electronic device considers that the current user is using the electronic device . If the electronic device detects that the user is using the electronic device during the charge management and control process, the electronic device will re-predict the first duration and the second duration.
  • the data collected by the sensor such as the acceleration collected by the acceleration sensor, the angle collected by the gyroscope
  • FIG. 3 is a schematic flowchart of a charging management and control method provided by an embodiment of this application.
  • a charging management and control method proposed in an embodiment of the present application specifically includes:
  • the electronic device detects that an external power source is connected, and acquires first data.
  • the electronic device can detect whether an external power source is connected through the charging management module 140 shown in FIG. 2.
  • the external power source is connected to the electronic device through the charger.
  • the power management module receives the charging input, the electronic device starts to obtain the first data.
  • the first data is used to describe the charging scenario when the electronic device detects that the external power source is connected.
  • the first data includes the time when the electronic device detects the external power supply (that is, the time when the power management module receives the charging input), the battery power when the electronic device is connected to the charger (that is, the power of the battery 142 in the electronic device 100), The number of battery cycles, battery health status, and charger type, sensor data (such as accelerometers and light sensors, etc.), screen on and off information, alarm time set in electronic devices, calendar travel time, to-do time, electronic One or more of the time zone where the device is located.
  • sensor data such as accelerometers and light sensors, etc.
  • the electronic device can obtain the battery power, the number of battery cycles, and the battery health status through the power management module 141 in FIG. 2.
  • the charger type can be distinguished by the charger's interface type and output power.
  • the interface type of the charger can include: Micro USB interface, USB Type C interface and Lightning interface of IOS system mobile phone.
  • the output power of the charger can be 18W (i.e. output voltage and current are respectively 9V/2A), 10W (i.e. output voltage and current are respectively 5V/2A), 5W (i.e. output voltage and current are respectively 5V/1A), etc. .
  • the output power of the charger is different, the time for the charger to fully charge the battery is different. The greater the output power of the charger, the faster the charger can fully charge the battery.
  • the current time when the electronic device is charged is different, and the time from when the electronic device is connected to the charger to disconnect from the charger is different. It is understandable that the length of time the user charges the electronic device during the day and night is different. Generally, the total time of the charging process of the electronic device is longer at night than during the day. At night, the user plugs in the charger to charge the electronic device before going to bed, and will not unplug the charger until the user wakes up in the morning to end the charging of the electronic device.
  • the current battery level when the electronic device is charged is different, and the time to fully charge the battery of the electronic device is different. As a result, after the user plugs in the charger, the time to unplug the charger is also different. Understandably, the total time to start charging when the battery power is 20% is longer than the total time to start charging when the battery power is 50%.
  • the electronic device obtains the first duration and the second duration of the current charging according to the first data.
  • the electronic device may have a first charging model and a second charging model.
  • the electronic device may input the first data into the first charging model to obtain the first predicted charging duration.
  • the second charging model inputs the first predicted charging time length to obtain the first time length and the second time length, and then the electronic device controls the charging process according to the first time length and the second time length.
  • the start time of the second duration is later than or equal to the end time of the first duration.
  • the charging model may include a first charging model and a second charging model.
  • the first charging model and the second charging model can be two independent neural networks, and the first charging model and the second charging model can also form a complete neural network.
  • the embodiments of the present application do not limit this.
  • the electronic device obtains the first time length and the second time length according to the first charging model and the second charging model, please refer to the description below, which will not be repeated here.
  • the electronic device uses the first charging parameter to charge the battery.
  • the electronic device can charge the battery 142 through the charging management module 140 shown in FIG. 2.
  • the first charging parameter may include one or more of the first charging cut-off voltage and the first charging input power.
  • the first charging cut-off voltage can be 4.25V or other values.
  • the first charging power can be 22.5W, that is, the charging voltage is 4.5V and the charging current is 5A, and the first charging power can also be other values.
  • the embodiment of the present application does not limit the specific values of the first charging cut-off voltage and the first charging input power.
  • the first charging parameter may also include the first input voltage and the first input current. If any one of the first input voltage and the first input current is changed, the first input power will change accordingly. Therefore, in the following embodiments of the present application, the first charging parameter includes the first charging cut-off voltage and the first charging input power as an example for description.
  • the electronic device judges whether the time to charge the battery using the first charging parameter reaches the first time period, if yes, execute step S105, if not, continue to execute step S103.
  • the time for the electronic device to charge the battery using the first charging parameter reaches the first length of time.
  • the electronic device adjusts the charging parameters to charge the battery. If the time for the electronic device to charge the battery using the first charging parameter does not reach the charging duration, the electronic device continues to charge the battery using the first charging parameter.
  • the first charging parameter may be constant, or may be multiple sets of parameters that enable the electronic device to quickly charge the battery. There is no limitation here.
  • the electronic device uses the second charging parameter to charge the battery.
  • the electronic device When the electronic device uses the second charging parameter to charge the battery, the electronic device slowly charges the battery or stops charging the battery.
  • the charging efficiency of the electronic device with the second charging parameter is lower than the charging efficiency of the electronic device with the first charging parameter.
  • the second charging parameter may include a second charging cut-off voltage and a second charging input power.
  • the second charge-off voltage is less than the first charge-off voltage.
  • the second charging input power is less than the first charging input power.
  • the embodiment of the present application does not limit the specific values of the second charging cut-off voltage, the second charging rate, and the second charging input power. It can be understood that there are two situations in which the electronic device uses the second charging parameter to charge the battery. First, the electronic device slowly charges the battery. Second, the electronic device stops charging the battery.
  • an electronic device with a higher charging efficiency has a shorter time to charge the same battery to a certain amount of electricity (for example, the amount of electricity is 100%). For example, it takes 1 hour for the electronic device to charge a battery with a power of 10% to a power of 100% by using the first charging parameter. It takes 3 hours for the electronic device to charge the battery with the power of 10% to the power of 100% by using the second charging parameter. It is understandable that the charging time for the electronic device to charge the battery using the first charging parameter is only an example for illustration, and does not limit the embodiment of the present application. Similarly, the charging time for the electronic device to charge the battery using the second charging parameter is only an example, and it does not limit the embodiment of the present application.
  • the electronic device charging the battery with the second charging parameter includes: when the electronic device detects the first event, the electronic device stops charging the battery with the second charging parameter and starts charging the battery with the third charging parameter. Parameters charge the battery; the charging efficiency when the electronic device charges the battery with the third charging parameter is higher than the charging efficiency when the electronic device charges the battery with the second charging parameter; where the first event includes that the screen of the electronic device turns on The number of screens is greater than the first threshold, the screen on-screen time of the electronic device is greater than the second threshold, the number of screen off-screens of the electronic device is greater than the third threshold, the screen off-time of the electronic device is less than the fourth threshold, and the power consumption of the electronic device is greater than the first threshold. One or more of the five thresholds.
  • starting to charge the battery with the third charging parameter specifically includes: within the third time period, the electronic device charges the battery with the third charging parameter, and within the fourth time period, the electronic device charges the battery with the fourth charging parameter.
  • the charging parameter charges the battery; the charging efficiency when the electronic device charges the battery with the third charging parameter is higher than the charging efficiency when the electronic device charges the battery with the fourth charging parameter, the third duration and the fourth
  • the duration is determined by the second data; the second data is used to describe the charging scenario when the first event is detected.
  • the second data includes the time when the electronic device detects the first event, the remaining power when the electronic device detects the first event, and the type of charger.
  • the charging efficiency when the electronic device charges the battery with the third charging parameter may be greater than, equal to, or less than the charging efficiency when the electronic device charges the battery with the first charging parameter.
  • the charging efficiency when the electronic device charges the battery with the fourth charging parameter may be greater than, equal to, or less than the charging efficiency when the electronic device charges the battery with the second charging parameter.
  • the specific sizes of the third charging parameter and the fourth charging parameter are not limited here.
  • the electronic device when the electronic device uses the second charging parameter to charge the battery, the electronic device detects that the screen-on time of the electronic device exceeds the first threshold (including the first threshold) or the number of screen-on times exceeds the second threshold. Threshold (including the second threshold), or the number of screen-off times is greater than the third threshold (including the third threshold), and the screen-off time is less than the fourth threshold (including the fourth threshold), the electronic device re-executes step S102, that is, the electronic device predicts again The first duration and the second duration.
  • the electronic device detects that the electronic device has turned on the screen multiple times or has been on for a period of time during the charging process, it indicates that the user continues to use the electronic device during the charging process.
  • the battery is also discharging while charging, so as to maintain the normal operation of each module in the electronic device. If the electronic device still charges the battery slowly at this time, the battery in the electronic device may not have enough power to support the user's normal use, or the battery may not be fully charged when the user unplugs the charger.
  • the electronic device detects that the user is using the mobile phone while the electronic device uses the second charging parameter to charge the battery, it re-predicts the first duration and the second duration of the current charging process according to the specific usage of the user. In this way, it can be avoided that the user is using the electronic device, and the electronic device is always in the process of slowly charging the battery or stopping the charging of the battery. As a result, the power of the battery is insufficient or the power of the battery is not fully charged after the electronic device is disconnected from the charger.
  • the screen-on time refers to the time during which the electronic device unlocks the page from no operation to when the screen is automatically turned off during the charging process of the electronic device.
  • the screen-off time refers to the time from when the screen of the electronic device is automatically turned off until the screen turns on during the charging process of the electronic device.
  • the number of times the screen is turned on refers to the number of times the screen is turned on during the charging process of the electronic device.
  • the number of screen-offs refers to the number of screen-offs during the charging process of the electronic device.
  • the electronic device in the process of the electronic device using the second charging parameter to charge the battery, if the charging location of the electronic device is at home or in the office.
  • the electronic device detects that the sensor data in the electronic device (for example, the acceleration collected by the acceleration sensor, the angle collected by the gyroscope sensor, etc.) has changed or is greater than the threshold A
  • the electronic device re-executes step S102, that is, the electronic device predicts again The first and second duration of battery charging.
  • the acceleration collected by the acceleration sensor in the electronic device and the angle of the gyroscope collected by the gyroscope sensor change, it can be considered that the electronic device is not in a stationary state.
  • the battery is also discharging while charging, so as to maintain the normal operation of each module in the electronic device. If the electronic device still charges the battery slowly at this time, the battery in the electronic device may not have enough power to support the user's normal use, or the battery may not be fully charged when the user unplugs the charger.
  • the electronic device detects that the user is using the mobile phone while the electronic device uses the second charging parameter to charge the battery, it re-predicts the first duration and second duration of the current charging process according to the user's specific usage. In this way, it can be avoided that when the user uses the electronic device, the electronic device is always in the process of slowly charging the battery or stopping the charging of the battery. As a result, the power of the battery is insufficient or the power of the battery is not fully charged after the electronic device is disconnected from the charger.
  • step S102 when the electronic device detects that the power consumption in the electronic device is greater than the threshold B, the electronic device re-executes step S102, that is, the electronic device predicts the first duration and the second duration again.
  • the electronic device is in a working state, that is, the user is using the electronic device.
  • the battery is also discharging while charging, so as to maintain the normal operation of each module in the electronic device. If the electronic device still charges the battery slowly at this time, the battery in the electronic device may not have enough power to support the user's normal use, or the battery may not be fully charged when the user unplugs the charger.
  • the electronic device When the electronic device detects that the user is using the mobile phone while the electronic device uses the second charging parameter to charge the battery, it re-predicts the first duration and the second duration of the current charging process according to the specific usage of the user. In this way, it can be avoided that when the user uses the electronic device, the electronic device is always in the process of slowly charging the battery or stopping the charging of the battery. As a result, the power of the battery is insufficient or the power of the battery is not fully charged after the electronic device is disconnected from the charger.
  • step S106 Whether the time for the electronic device to charge the battery using the second charging parameter reaches the second duration, if yes, execute step S107, if not, continue to execute step S105.
  • the electronic device uses the second charging parameter to charge the battery for the second length of time. Then the electronic device re-uses the first charging parameter to charge the battery. If the time for the electronic device to charge the battery using the second charging parameter does not reach the second length of time, the electronic device continues to charge the battery using the second charging parameter.
  • the electronic device continues to charge the battery using the first charging parameter.
  • first charging parameter and the second charging parameter are not fixed values.
  • the first charging parameter and the second charging parameter of the electronic equipment of different users in China may be different.
  • step S107 may be that the electronic device uses the fifth charging parameter to charge the battery.
  • the fifth charging parameter may be the same as or different from the first charging parameter.
  • the charging efficiency of the electronic device charging the battery with the fifth charging parameter may be higher than the charging efficiency of the electronic device charging the battery with the first charging parameter.
  • the charging efficiency of the electronic device charging the battery with the fifth charging parameter may also be less than the charging efficiency of the electronic device charging with the first charging parameter, but greater than the charging efficiency of the electronic device charging with the second charging parameter.
  • the fifth charging parameter may also be the same as the charging parameter when the battery is charged during the day (for example, the period from 7:00 in the morning to 22:00 in the evening on a 24-hour basis) is the time when the battery is charged.
  • the specific value of the fifth charging parameter is not limited.
  • the electronic device may perform step S107 or not perform step S107. For example, if the user starts charging at 11 o'clock in the evening, the electronic device predicts that the user will end the charging at 7:30 am the next morning. The user actually disconnects the electronic device from the external power supply at 8 o'clock. Then, the electronic device executes step S107 from 7:30 to 8:00. If the user actually disconnects the electronic device from the external power source at 7 o'clock, then at 7 o'clock, the electronic device is still charging the battery for the second charging time. When the connection between the electronic device and the external power source is disconnected, the electronic device directly executes step S108 to stop charging the battery. The electronic device does not perform step S107.
  • the electronic device detects that the electronic device is disconnected from the external power supply, and stops charging the battery.
  • the electronic device When the user unplugs the charger, the electronic device is disconnected from the external power source, and the electronic device stops receiving the charging input from the external power source. The electronic device stops charging the battery.
  • the electronic device can record the actual first duration and second duration during the current charging process. It is understandable that the user may unplug the charger while the electronic device uses the first charging parameter to charge the battery. Then, in this case, the actual first duration is less than or equal to the first duration. The actual second duration is equal to zero.
  • the electronic device uses the actual first duration and second duration of the charging process to adjust the parameters in the second charging model (for example, when the second charging model is a neural network, the neural network's learning rate, weight change rate, etc. Etc.), so that the first duration and the second duration output by the second charging model are more accurate and more in line with the charging habits of the user. Thereby charging can be better controlled. In this way, it can be reduced that the user continues to charge the battery when the battery is in a fully charged state during the battery charging process in the electronic device.
  • the method provided in the embodiment of the present application further includes: before the electronic device obtains the first duration and the second duration of the current charge according to the first data, the electronic device obtains the alarm time or calendar schedule To-do time. Then the electronic device uses the alarm time or to-do time as the end time of charging. The electronic device no longer predicts the first duration and the second duration of the current charge based on the first data. For example, if the user starts charging the electronic device by plugging in the charger at 10 o'clock in the evening. And the user has set an alarm clock at 6 o'clock tomorrow morning. When the electronic device detects the alarm clock information, the electronic device directly uses 6 o'clock tomorrow morning as the user unplugs the charger to end the charging time.
  • the electronic device no longer executes step S102 to step S108.
  • the electronic device can stop charging when the battery is charged to a certain threshold, and then continue to charge a period of time before the alarm time, until the user unplugs the charger to end the charging; or, set the first duration to a fixed value .
  • the electronic device charges the battery, reaches the first duration, stops charging, and then continues to charge a period of time before the alarm time, until the user unplugs the charger to end the charging; the first duration can also be set to a fixed value,
  • the electronic device charges the battery with the first charging parameter.
  • the electronic device changes to charge the battery with the second charging parameter, and then continues charging with the third charging parameter or the first charging parameter before the alarm time. Until the user unplugs the charger to end charging.
  • the electronic device detects the connection with the charger, and the electronic device obtains the user's preset time point.
  • the preset time point includes the alarm time and to-do reminder time; Fast charge.
  • the electronic device starts to slowly charge the battery and keeps charging slowly until the preset time point is reached.
  • the user unplugs the charger and the electronic device stops charging the battery. Charge it. If the user does not unplug the charger, then the electronic device can be in a continuous charging state or can be stopped.
  • the electronic device detects that it is connected to the charger, and the electronic device obtains the user's preset time point.
  • the preset time point includes the alarm time, the reminder time of the to-do item, and the reminder in the calendar. Time point, reminder time point in the memo; the electronic device quickly charges the battery, and when the battery power reaches a first threshold (for example, 70%), the electronic device starts to slowly charge the battery or stops charging the battery. When the first time point is reached, the electronic device continues to fast charge the battery until the user unplugs the charger when the preset time point is reached, and the electronic device stops charging the battery.
  • a first threshold for example, 70%
  • the electronic device uses the earliest alarm ringing time as the time point when the electronic device ends charging. For example, the user has set three alarm time points at 6:00, 6:30, and 6:45 in the morning. When the electronic device is charged at 11 o'clock in the evening, the electronic device will end charging at 6:00 in the morning (the user is not disconnected from the external power source during the entire charging process).
  • the electronic device when there are multiple alarm times set by the user, the electronic device is disconnected from the external power source at the first alarm time according to the learning that the user is at most, then the electronic device The ringing time of the first alarm clock is used as the time when the electronic device ends charging. For example, the user has set three alarm time points at 6:00, 6:30, and 6:45 in the morning. The electronic device learns from learning that the user usually disconnects the electronic device from the external power supply at 6:30. Then, the first alarm clock will ring at 6:30 in the morning. That is, when the electronic device is charged at 11 o'clock in the evening, the electronic device will end charging at 6:30 in the morning (the user is not disconnected from the external power supply during the entire charging process).
  • the above set alarm ringing time is within the first time period after the external power supply is connected.
  • the first time period can be the alarm ringing time within 10 hours or 12 hours after the external power supply is connected (starting from the time when the external power supply is connected), and the first time period can be within 10 hours. It can also be within 12 hours, it can be 16 hours, and so on. There are no specific restrictions here. Taking the first time period of 12 hours as an example, the user will start charging the electronic device by connecting the external power source at 11 o'clock in the evening on March 1, 2020.
  • step S101-step S108 the electronic device is charged according to the daytime Parameters: Charge the battery to 80% and stop charging. Half an hour before the alarm time, that is, at 6:30 in the morning on March 2, 2020, the battery will be charged again according to the daytime charging parameters. If the alarm clock set in the electronic device is after 11 o'clock in the morning on March 2, 2020 (for example, 7 o'clock in the morning on March 3, 2020), the electronic device charges the battery according to step S101 to step S108.
  • the electronic device obtains the current time, and if the current time is the time of the preset time period, the electronic device performs step S101 to step S108, that is, controls the charging process. For example, if the preset time is night time, such as the time period from 11 pm to 6 am.
  • the preset time is night time, such as the time period from 11 pm to 6 am.
  • the electronic device does not perform charging control . Only when the user charges the electronic device during the time period from 11 pm to 6 am the next day (for example, between 11 pm on April 26 and 6 am on April 27), the electronic device will perform the charging process. Control.
  • the night time period it can also be other time periods, such as 20 o'clock in the evening to 5 o'clock in the morning of the next day, which is not limited by this application.
  • the user can set it through the user interface of the electronic device and can modify it; or the electronic device can be pre-configured at the factory and cannot be modified by the user.
  • this application does not limit it.
  • the first charging parameter may be the same as the charging parameter in the day time period without special setting, or may be different from the charging parameter in the day time period.
  • the second charging parameter may be a charging parameter when charging is stopped, or a charging parameter in a slow charging state.
  • the third charging parameter may be the same as the first charging parameter, or may be the same as the charging parameter in the day time period.
  • the cut-off time for the electronic device to charge the battery using the second charging parameter is the first preset time.
  • the first preset time is 5:30 in the morning.
  • the second time period predicted by the electronic device is from 1 AM to 7 AM.
  • the electronic device stopped charging the battery for the second charging time at 5:30 in the morning.
  • the electronic device when the time acquired by the electronic device is within a preset time period, and the first time period and the second time period predicted by the electronic device are not less than 4 hours, the electronic device will only follow the predicted first time period.
  • the time length and the second time length perform charging control on the charging process, that is, the electronic device performs step S101 to step S108, that is, controls the charging process.
  • step S102 that is, how the electronic device obtains the first duration and the second duration according to the first data.
  • the first charging model may be the actual charging time from the start of charging to the end of charging collected by the research and development personnel of the mobile phone manufacturer, as well as the time at the beginning of charging, and the time at the beginning of charging.
  • the power of the battery, the power of the battery after charging, the time zone, and other data are trained.
  • the input in the training data of the first charging model is the time when the electronic device detects the external power supply and the remaining power when the electronic device detects the external power supply, the time zone, the average charging time in a week, the battery power, and the electronic device.
  • the power consumption of the device, the data collected by the sensor such as the acceleration collected by the acceleration sensor, etc.), the type of charger, whether the charging time is a holiday, and so on.
  • the output in the training data of the first charging model is the actual charging time.
  • the electronic device may adjust the first charging model according to the difference between the predicted charging duration output by the first charging model and the actual charging duration. In this way, the predicted charging duration output by the first charging model can be closer to the actual charging duration.
  • the electronic device can evaluate the confidence of the first charging model based on the difference between the predicted charging time and the actual charging time, the battery power when the predicted charging time is reached, and the battery power at the end of the actual charging. For example, suppose that in the data collected by the mobile phone manufacturer, multiple users plug in the charger to charge the electronic device from 10 in the morning. The battery level is 20% when the charging starts, and the charging ends after 1 hour, and the electronic device ends when the charging ends. The battery level is 100%.
  • the first charging model trained through these data when the charging start time is received at 10 am and the battery capacity is 20% when charging starts, the first charging model will output the end of charging at 11 o’clock, or output the predicted charging duration as 1. Hour.
  • the first charging model may be implemented by a neural network based on GRU (Gated Recurrent Unit).
  • GRU Gate Recurrent Unit
  • the first charging model can also be implemented by other neural networks or algorithms, which is not limited here.
  • the electronic device collects historical charging data of a specific user to train the second charging model.
  • the second charging model is obtained by training based on the charging history data of a specific user and the predicted charging duration output by the first charging model.
  • the charging history data of a specific user may include the time when the electronic device in the specific user's multiple charging process detects the external power supply during a period of time, the actual charging time, and the battery power when the electronic device is connected for charging, and so on.
  • the input in the training data of the second charging model is the predicted charging duration obtained after the historical charging data of the specific user is input into the first charging model.
  • the output in the training data of the second charging model is the first charging duration and the second charging duration.
  • the initial value of the first charging duration is equal to the actual charging duration.
  • the initial value of the second charging duration is equal to zero.
  • the first time length output by the second charging model trained in this way will be infinitely close to the actual charging time length, and the second time length will be infinitely close to zero.
  • the value of the second time period should be larger, so that the charging time period under the fully charged state of the battery can be made shorter.
  • the second period is too long, the battery will not be fully charged at the end of charging.
  • this application uses the first correction amount to adjust the first charging time and the second charging time in the training data. Make corrections.
  • the first charging duration is obtained by subtracting the first correction amount from the actual charging duration of the specific user; the second charging duration is equal to the first correction amount.
  • the first correction amount is determined according to the confidence level of the first charging model.
  • the training process of the second charging model may be as follows:
  • the electronic device inputs a set of charging history data of a specific user (the time when the electronic device detects the external power supply is t1, and the remaining power when the electronic device detects the external power supply, and the type of charger) is input to the first In a charging model, in the group of historical data, the time when the electronic device stops charging the battery is t2, and the actual charging time is t2-t1.
  • the first charging model obtains the second predicted charging duration.
  • the output of the second charging model is the first charging duration t (first) and the second charging duration t (second).
  • the initial value of t(first) is t2-t1, and the initial value of t(second) is zero.
  • the electronic device inputs the second predicted charging duration into the second charging model to obtain t (first) and t (second). That is, t (first) and t (second) are the outputs of the second charging model. Because the first time length output by the second charging model trained in this way will be infinitely close to the actual charging time length, and the second time length will be infinitely close to zero. But we need the second duration value output by the second model to be larger, and the first duration value to be smaller. In this way, it can be ensured that the battery is fully charged for a shorter period of time during the charging process. However, the value of the second duration cannot be too large, as this will cause the battery to be under-charged when the charging is completed. Therefore, it is necessary to modify the training data of the second charging model. In this way, the first time length and the second time length output by the trained second charging model can make the time for the electronic device to charge the battery in the fully charged state as short as possible. And, when the charging ends, the battery is fully charged.
  • the first correction amount f-delta can be obtained according to the return rate, the false alarm rate and the confidence level obtained by the first charging model according to the electronic device, and the first correction amount is used to correct t (first) and t (second ).
  • the corrected output in the training data of the second charging model is the first charging duration t1 (first) and the second charging duration t1 (second):
  • the first correction amount depends on the confidence of the first charging model and the battery parameters when the electronic device of the specific user detects the external power supply.
  • the correction function increases with the increase in confidence, but the correction function will converge when it reaches a certain value. The higher the degree of confidence, the shorter the first duration and the longer the second duration.
  • f-delta is less than a certain threshold, there is no need to modify the first charging duration and the second charging duration.
  • the parameters of the second charging model in each user's electronic device may be different. Therefore, for the same charging start time and the battery level at the start of charging, the first time duration and the second time duration output by the second charging model in different user electronic devices are different. In this way, it is more in line with the charging habits of each user, and the charging process of each user can be better controlled.
  • the first charging model and the second charging model exist in a cloud server (for example, Huawei Cloud) provided by an electronic device manufacturer.
  • the user logs into the cloud service account in the user's electronic device, and the cloud server collects training data to train the first charging model and the second charging model. Every time the user starts charging, the electronic device sends the first data collected to the cloud server.
  • the first charging model and the second charging model in the cloud server are sent to the electronic device after obtaining the first time length and the second time length. In this way, the electronic device does not need to save the first charging model and the second charging model, which can save the memory space of the electronic device.
  • the first charging model and the second charging model exist in the user’s electronic device, so as to prevent the user from charging when the user is not connected to the network, and the current charging predicted by the charging model cannot be obtained.
  • the charging history data of the user electronic device also includes charging location information, such as home, office, or outdoor information. In different places, the total time from when the user inserts the charger to the electronic device to start charging to the end of charging is different. Combining different location information to train the second charging model can make the first duration and second duration output by the second charging model more in line with the user's charging habits, so as to better control the charging process of the battery in the electronic device.
  • the first duration is obtained by inputting the first data into the first charging model.
  • the second duration is calculated based on the first duration, the duration of the sensor not working, and the duration of the screen being off.
  • the embodiment of the present application proposes a charging management and control method.
  • the method specifically includes: First, the electronic device can learn and train a charging model according to the user's historical charging data. When the electronic device detects that the charger is connected, the charging model can predict the first duration and the second duration of the current charge. If the electronic device uses the first charging parameter to charge the battery for a time period that reaches the first time period. The electronic device uses the second charging parameter to charge the battery. If the electronic device uses the second charging parameter to charge the battery for the second duration, the electronic device reuses the first charging parameter to charge the battery. Finally, the electronic device detects that the electronic device is disconnected from the charger and stops charging the battery. In this way, during the charging process of the electronic device, the charging control of each user's electronic device can be better performed, and the time for the battery in each user's electronic device to continue to be charged in a fully charged state can be reduced.
  • the embodiment of the present application exemplarily shows a schematic diagram of a user interface for an electronic device to perform charge management and control on a battery in different scenarios.
  • FIG. 4 shows a schematic diagram of a user interface of user A's electronic device for charging a battery.
  • the user interface 400 may include: one or more signal strength indicators 401-1 of a mobile communication signal (also called a cellular signal), and an indicator 401 of an operator of the mobile communication signal. -2. Time indicators 401-3 and 402, battery status indicator 401-4, weather indicator 403, and charging status indicator 404.
  • the charging status indicator can display that the electronic device is charging the battery, the remaining power when the electronic device detects the external power supply (such as "10%” shown in Figure 4) and the remaining charge time prompt (such as in Figure 4 The prompt text shown is "1 hour and 30 minutes remaining in charge”). It can be seen from the figure that user A connects the charger to the electronic device at 8:08 in the morning, and the electronic device detects that the remaining power when the external power source is connected is 10%. The electronic device predicts that the charging time will be 1 hour and 30 minutes.
  • FIG. 5A shows a schematic diagram of a user interface of user A's electronic device for charging a battery.
  • the user interface 500-1 may include: one or more signal strength indicators 501-1 of a mobile communication signal (also called a cellular signal), an indicator 501-2 of an operator of the mobile communication signal, and a time indicator 501- 3 and 502, battery status indicator 501-4, weather indicator 503, and charging status indicator 504.
  • the charging status indicator can display that the electronic device is charging the battery, the remaining power when the electronic device detects the external power supply (such as "10%” shown in Figure 5A), and the remaining charge time prompt (such as in Figure 5A)
  • the prompt text shown is "10 hours remaining in charge”).
  • user A connects the charger to the electronic device at 21:00 in the evening (the specific time is February 10, and 21:00 on Monday night), and the electronic device detects that the external power supply is connected. The remaining power at the time is 10%. At this time, the electronic device predicts that the charging time is 10 hours.
  • the remaining power when the electronic device detects that the external power supply is connected is the same.
  • the time when the electronic device detects that the external power supply is connected is different.
  • the charging time predicted by the electronic device is different. During the day, the predicted charging time is shorter, and the predicted charging time at night is longer. During the day, users generally unplug the charger in time after the battery is charged to 100%. Because the user is sleeping at night, the charger will not be unplugged in time. Therefore, in a different time scenario, the predicted charging time is different. In this way, it is more in line with the user's charging habits.
  • FIG. 5B shows a schematic diagram of a user interface of user A's electronic device for charging a battery.
  • the user interface 500-2 may include: one or more signal strength indicators 501-1 of a mobile communication signal (also called a cellular signal), an indicator 501-2 of an operator of the mobile communication signal, and a time indicator 501- 3 and 502, battery status indicator 501-4, weather indicator 503, and charging status indicator 504.
  • the charging status indicator can display that the electronic device is charging the battery, the electronic device detects the remaining power when the external power supply is connected (for example, "10%" shown in Figure 5B), and the charging status prompt (for example, shown in Figure 5B) The prompt text "Quick Charging").
  • the charging scene shown in FIG. 5A is the same as the charging scene shown in FIG. 5B, and will not be repeated here.
  • the charge status indicator may not display the remaining charging time, but instead displays whether the electronic device charges the battery quickly or slowly.
  • the embodiment of the present application does not limit the content specifically displayed in the charging status indicator.
  • FIG. 5C shows a schematic diagram of a user interface of user A's electronic device for charging a battery.
  • FIG. 5C shows that the electronic device charges the battery power from 10% shown in the user interface 500-2 to 70% shown in the user interface 500-3.
  • the prompt text "slow charging” is displayed in the charging status indicator 504 in the user interface 500-3.
  • the electronic device starts to slowly charge the battery.
  • the time displayed by the electronic device is 22:00 in the evening. It is understandable that when the electronic device changes from a fast charging state to a slow charging state, the electronic device may turn on the screen for a few seconds, and then turn off the screen.
  • FIG. 5D shows a schematic diagram of a user interface of user A's electronic device for charging a battery.
  • FIG. 5D shows that the electronic device charges the battery power from 70% shown in the user interface 500-3 to 90% shown in the user interface 500-4.
  • the prompt text "fast charging” is displayed in the charging status indicator 504 in the user interface 500-4.
  • the electronic device slowly charges the battery.
  • the time displayed by the electronic device is February 11th and 6:40 am on Tuesday morning.
  • FIG. 5E shows a schematic diagram of a user interface of user A's electronic device for charging a battery.
  • FIG. 5E shows that the electronic device charges the battery power from 90% shown in the user interface 500-4 to 100% shown in the user interface 500-5.
  • the prompt text "charging completed” is displayed in the charging status indicator 504 in the user interface 500-5.
  • the battery level is 100%
  • the display time of the electronic device is February 11, Tuesday morning at 7:00. That is, it took 10 hours for the electronic device to charge the electrons from 10% to 100%.
  • the electronic device can turn on the screen for a few seconds and then turn off the screen.
  • FIG. 5F shows a schematic diagram of a user interface for charging the battery by the electronic device of user A.
  • the alarm prompt 501-5 can be displayed in 500-6 in the user interface.
  • the set alarm prompt 501-5 indicates that the user has set an alarm clock.
  • the user sets an alarm clock at 7:00 AM on Tuesday, February 11.
  • the display time of the electronic device is February 11, Tuesday morning at 7:00, and the electronic device starts to display the alarm prompt 505 and play the alarm bell.
  • the user can turn off the alarm bell through the control 506.
  • FIG. 6A-6E are schematic diagrams of a user interface for charging a battery with an electronic device of user B according to an embodiment of the application.
  • Fig. 6A is the same as the charging scene of user A shown in Fig. 5A, and user B also connects the electronic device to the charger from 21:00 in the evening.
  • the remaining power is 10%.
  • the remaining charging time predicted by the electronic device of user B for example, the "charging remaining time 9 hours and 36 minutes" shown in FIG. 6A
  • the remaining charging time predicted by the electronic device of user A for example, as shown in FIG. 5A
  • the "10 hours remaining charging time" is different. In this way, it is more in line with the user's personal habits.
  • FIG. 6B shows a schematic diagram of a user interface of user B's electronic device for charging a battery.
  • the charging status prompt in the user interface of the electronic device may also be as shown in the charging status prompt 604 in the user interface 600-2.
  • the charging status prompt can indicate that the electronic device is rapidly charging the battery.
  • FIG. 6C shows a schematic diagram of a user interface of user B's electronic device for charging a battery.
  • FIG. 6C shows that the electronic device charges the battery power from 10% shown in the user interface 600-2 to 78% shown in the user interface 600-3.
  • the user interface 600-3 displays that the display time in the electronic device of user B is February 10, 22:15 on Monday night, and when the battery power is 78%, the electronic device slowly charges the battery. Compared with the electronic device of the user A, the electronic device of the user B takes a different time to slowly charge the battery.
  • FIG. 6D shows a schematic diagram of a user interface of user B's electronic device for charging a battery.
  • FIG. 6D shows that the electronic device charges the battery power from 78% shown in the user interface 600-3 to 92% shown in the user interface 600-4.
  • the prompt text "fast charging” is displayed in the charging status indicator 604 in the user interface 600-4.
  • the electronic device slowly charges the battery.
  • the time displayed by the electronic device is February 11th and 6:20 am on Tuesday morning.
  • FIG. 6E shows a schematic diagram of a user interface of user B's electronic device for charging a battery.
  • FIG. 6E shows that the electronic device charges the battery power from 92% shown in the user interface 600-4 to 100% shown in the user interface 600-5.
  • the user interface 600-4 displays that the electronic device of user B is at 6:36 on February 11th and Tuesday morning, and the electronic power is 100%.
  • the electronic device completes the charging of the battery.
  • the electronic device of the user B takes a shorter time to charge the battery from 10% to 100%.
  • the electronic device can predict the charging time, the first time and the second time according to the specific user. In this way, it is more in line with user habits, thereby enhancing user experience.
  • FIG. 7 shows a schematic diagram of a user interface of a user using an electronic device when the electronic device is charging a battery.
  • the power of the battery is 60%, and the electronic device slowly charges the battery.
  • the user opens the game application to play the game. Then the electronic device will re-determine the duration of fast charging and slow charging of the battery.
  • the electronic device can change from a slow charging state to a fast charging state.
  • a charging prompt box 705 is displayed in the user interface, and prompt text can be displayed in the prompt box 705, such as "current battery 60%, fast charging”.
  • a control 705-1 can also be displayed in the prompt box 705, and the user can turn off the prompt box 705 through the control 705-1.
  • the disclosed system, device, and method can be implemented in other ways.
  • the device embodiments described above are merely illustrative.
  • the division of the units is only a logical function division, and there may be other divisions in actual implementation, for example, multiple units or components may be combined or It can be integrated into another system, or some features can be ignored or not implemented.
  • the displayed or discussed mutual coupling or direct coupling or communication connection may be indirect coupling or communication connection through some interfaces, devices or units, and may be in electrical, mechanical or other forms.
  • the units described as separate components may or may not be physically separated, and the components displayed as units may or may not be physical units, that is, they may be located in one place, or they may be distributed on multiple network units. Some or all of the units may be selected according to actual needs to achieve the objectives of the solutions of the embodiments.
  • the functional units in the various embodiments of the present application may be integrated into one processing unit, or each unit may exist alone physically, or two or more units may be integrated into one unit.
  • the function is implemented in the form of a software functional unit and sold or used as an independent product, it can be stored in a computer readable storage medium.
  • the technical solution of the present application essentially or the part that contributes to the existing technology or the part of the technical solution can be embodied in the form of a software product, and the computer software product is stored in a storage medium, including Several instructions are used to make a computer device (which may be a personal computer, a server, or a network device, etc.) or a processor (processor) execute all or part of the steps of the methods described in the various embodiments of the present application.
  • the aforementioned storage media include: U disk, mobile hard disk, ROM, RAM, magnetic disk or optical disk and other media that can store program codes.

Landscapes

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

Abstract

本申请公开了一种充电管控方法及电子设备,该方法包括:电子设备在接入外部电源时,开始获取接入外部电源时的时间、电池电量、充电器类型等等数据。电子设备根据这些数据得到第一时长和第二时长。在第一时长内,电子设备对电池进行快充。在第二时长内,电子设备对电池进行慢充,或者,暂停对电池充电。这样,电子设备对电池进行充电时对其充电过程进行管控,可以减少电子设备对满电状态下的电池在继续充电的时间。

Description

一种充电管控方法及电子设备
本申请要求于2020年03月20日提交中国专利局、申请号为202010203685.5、申请名称为“一种充电管控方法及电子设备”的中国专利申请的优先权,其全部内容通过引用结合在本申请中。
技术领域
本发明涉及电子技术领域,尤其涉及一种充电管控方法及电子设备。
背景技术
目前,大多数电子设备(例如手机、电脑、耳机等等)中的电池为可充电电池。用户在给电子设备中电池连接充电器进行充电时,电池的电量充满后用户没有及时拔掉充电器。例如,用户在夜间给手机连接充电器进行充电,往往会让电池充电7小时以上才会拔掉充电器。但是,手机的电池1-3小时可以充满电,这就造成了手机电池在满电状态下还继续充电了4小时以上。这样,当电子设备的电池满电状态时,电子设备对电池继续充电会造成电池容量跳水、电池鼓包与膨胀、寿命缩短等等。
因此,如何在电子设备对电池进行充电时对其充电过程进行管控,以及减少电子设备对满电状态下的电池在继续充电的时间是当前亟需解决的问题。
发明内容
本申请实施例提供了一种充电管控方法以及电子设备,该电子设备对电池进行充电过程中使用该方法可以减少电子设备对满电状态下的电池在继续充电的时间。
第一方面,提供了一种用于电子设备的充电管控方法,该方法可以包括:首先,电子设备检测到外部电源接入;响应于检测到外部电源接入,电子设备获取第一数据,其中,第一数据用于表征电子设备检测到外部电源接入时的状态;响应于检测到外部电源接入,电子设备开始充电;电子设备根据第一数据确定第一时长和第二时长,其中,第一时长用于表征电子设备以第一充电参数进行充电的预测充电时长,第二时长用于表征电子设备以第二充电参数进行充电的预测充电时长;电子设备根据第一充电参数进行充电,充电时间为第一实际充电时长,第一实际充电时长用于表征电子设备以第一充电参数进行充电的实际充电时长;当第一实际充电时长等于第一时长时,电子设备根据第二充电参数进行充电,充电时间为第二实际充电时长,第二实际充电时长用于表征电子设备以第二充电参数进行充电的实际充电时长;其中,电子设备以第一充电参数进行充电时的充电效率高于电子设备以第二充电参数进行充电时的充电效率。
其中,第一数据包括外部电源接入的时间、电子设备检测到外部电源接入时的剩余电量、充电器的类型、电子设备的所处时区、电子设备的亮灭屏信息、电子设备中设定的闹钟响铃时间、电子设备中设定的待办事项提醒时间点、电子设备的传感器数据中的一种或多种。
其中,第一充电参数包括第一充电截止电压、第一充电输入功率;第二充电参数包括第二充电截止电压、第二充电输入功率;第一充电截止电压大于第二充电截止电压;第一 充电输入功率大于第二充电输入功率。
这样,电子设备在对电池进行充电时可以对充电过程进行管控。在用户长时间(例如夜间)给电子设备接入外部电源进行充电时,电子设备可以对电池进行快充,然后再对电池进行慢充。并且,电子设备可以根据用户接入时的场景来确定快充和慢充的时长。不同的场景下,电子设备对电池进行快充或慢充的时长不一样。当用户长时间给电子设备充电时,电子设备通过充电管控可以延迟电池充电到满电状态。这样,可以减少电池处于满电状态时继续被充电的时间。从而,可以延长电子设备中电池的使用时间,提升了用户体验。
结合第一方面,在一种可能的实现方式中,电子设备根据第二充电参数进行充电,充电时间为第二实际充电时长之后,该方法还包括:当第二实际充电时长等于第二时长时,电子设备第一充电参数进行充电。若电子设备一直慢充,在用户断开外部电源与电子设备之间的连接时,电子设备中电池电量可能未充到100%。当电子设备慢充一段时间后,继续快充,电子设备快速将电池电量充到100%。这样,可以减少用户电子设备中的电池电量在结束充电时未充到100%的情况的发生。
结合第一方面,在一种可能的实现方式中,第一数据包括外部电源接入时的时间,外部电源接入时的时间在夜间时间段内。其中,夜间时间段可以是23:00-6:00。这样,只有在夜间时间段内,电子设备才对电池进行充电管控,即电子设备先对电池进行快充,再慢充。在夜间时间内,用户才可能长时间使电子设备接入外部电源,可能会造成电子设备中电池处于满电状态下充电。在白天时,用户一般不会长时间使电子设备接入外部电源。因此,电子设备对电池进行快充。这样,更符合用户习惯,提升了用户体验。
结合第一方面,在一种可能的实现方式中,该方法还包括:电子设备检测到第一事件,响应于检测第一事件,电子设备停止根据第二充电参数进行充电,开始根据第三充电参数进行充电;电子设备以第三充电参数进行充电时的充电效率高于电子设备以第二充电参数进行充电时的充电效率。
其中,第一事件包括电子设备的亮屏次数大于第一阈值、电子设备的亮屏时间大于第二阈值、电子设备的灭屏次数大于第三阈值、电子设备的灭屏时间小于第四阈值、电子设备的功耗大于第五阈值、电子设备启动或者使用视频应用、电子设备启动或者使用游戏应用中的一项或多项。
在电子设备对电池进行慢充或者停止充电时,若用户使用电子设备,电子设备的剩余电量可能不足够维持电子设备用户启动应用程序的正常运行。这时,电子设备以第三充电参数对电池进行充电,即对电池进行快充。这样,电子设备的电量可以足够维持用户使用启动应用程序的正常运行。从而提升了用户体验。
结合第一方面,在一种可能的实现方式中,开始根据所述第三充电参数进行充电,具体包括:电子设备根据第三充电参数进行充电,充电时间为第三实际充电时长,第三实际充电时长用于表征电子设备以第三充电参数进行充电的实际时间;当第三实际充电时长等于第三时长时,电子设备根据第四充电参数进行充电,充电时间为第四实际充电时长;第三时长用于表征电子设备以第三充电参数进行充电的预测充电时长,第四实际充电时长用于表征电子设备以第四充电参数进行充电的实际充电时长;其中,电子设备以第三充电参数进行充电的充电效率高于电子设备以第四充电参数进行充电的充电参数;第三时长由第 二数据确定的,第二数据用于表征电子设备检测到第一事件时的状态。
其中,第二数据包括电子设备检测到第一事件时的时间、电子设备检测到第一事件时的剩余电量、充电器的类型、电子设备的所处时区、电子设备的亮灭屏信息、电子设备中设定的闹铃时间、电子设备中设定的待办事项时间、电子设备的传感器数据中的一种或多种。
这样,在电子设备对电池进行慢充的过程中,若用户使用电子设备,电子设备重新对电池进行快充一段时间,然后再对电池进行慢充。电子设备根据用户使用电子设备时电子设备获取到的第二数据预测出电子设备重新对电池进行快充的时长和进行慢充的时长。这样,电子设备可以根据具体的场景来改变电子设备对电池的充电效率。这样,可以满足在电子设备充电过程电子设备的电量足够用户正常使用电子设备的需求,从而提升了用户体验。
结合第一方面,在一种可能的实现方式中,该方法还包括:电子设备检测到第二事件,响应于检测到第二事件,电子设备根据所述第一充电参数进行充电,第二事件用于表征电子设备记录的用户预设时间;当电子设备的剩余电量充电到第一阈值时,电子设备根据第二充电参数进行充电;当充到第一时间时,电子设备根据第五充电参数进行充电,第一时间为用户预设时间前的时间。
其中,第二事件包括电子设备中设定的闹钟响铃时间、备忘录设定提醒时间点、日程安排设定时间点、待办事项提醒时间点中的一项或多项。
当用户对电子设备进行充电时,尤其是在夜间的时候,用户在电子设备中设定了第二天早上的起床闹钟,那么一般用户在闹钟响铃时起床拔掉电子设备的充电器。这样,电子设备按照用户设定的闹钟时间来进行充电管控,更符合用户的习惯。并且,电子设备的剩余电量充到一定阈值后就开始慢充,可以减少电池处于满电状态下充电的时长。在闹钟响铃时间前一段时间开始恢复快充,可以保证用户在拔掉充电器时电子设备电量已充满。这样,可以提升用户体验。
结合第一方面,在一种可能的实现方式中,电子设备根据第二充电参数进行充电具体包括:电子设备根据第二充电参数进行充电或停止充电。即电子设备以第二充电参数进行充电时,电子设备可以对电池进行慢充,也可以停止对电池进行充电。
结合第一方面,在一种可能的实现方式中,第三充电参数、第五充电参数与第一充电参数相同;第四充电参数与第二充电参数相同。
结合第一方面,在一种可能的实现方式中,第一时长与第二时长的和不小于第六阈值。若电子设备根据第一数据预测出的第一时长和第二时长之和太短。也即使说,用户在这种场景下对电子设备充电的总时长不长,那么电子设备就不进行充电管控。电子设备一直进行快充。这样可以避免用户在结束充电时电池电量未充满。
结合第一方面,在一种可能的实现方式中,电子设备根据第一充电参数进行充电,充电时间为第一实际充电时长之前,还包括:电子设备确定在外部电源接入后的第一时间段内电子设备中未设定闹钟、在23:00-6:00时段内外部电源为接入状态,且第一时长与所述第二时长之和大于4小时;电子设备根据第一充电参数进行充电,充电时间为第一实际充电时长,具体包括:电子设备确定在外部电源接入后的第一时间段内电子设备中设定闹钟, 则电子设备根据第一充电参数进行充电,直到电子设备的剩余电量为80%;电子设备停止充电;若电子设备的剩余电量充到80%的时间早于闹钟响铃时间到达前半个小时,在闹钟响铃时间到达前半个小时,电子设备根据第一充电参数进行充电,充电到闹钟响铃时间。
若电子设备中设定闹钟,那么电子设备就按照闹钟响铃时间对电池的充电过程进行管控。即电子设备先对电池进行快充,直到电池电量为80%时停止充电。到闹钟响铃时间到达前半个小时,恢复快充,直到闹钟响铃时间。若是电子设备中没有设定闹钟,且在23:00-6:00这个时间段内充电,以及电子设备预测出第一时长和第二时长之和大于4小时,电子设备才先对电池快充第一时长,然后再慢充和停止充电第二时长。否则,电子设备一直对电池进行快充。这样,既可以减少电池处于满电状态下充电的时间,又可以减少结束充电时电池电量未充满的情况出现。
结合第一方面,在一种可能的实现方式中,电子设备根据第二充电参数进行充电,充电时间为第二实际充电时长,还包括:若第二实际充电时长小于第二时长,电子设备获取到电子设备的所处时区的时间为6:00,则电子设备停止根据第二充电参数进行充电。到早上6点时,若电子设备按照充电模型的预测还在对电池进行慢充,那么结束充电时电池很有可能未充满。在早上6点就恢复快充,这样,可以减少用户起床拔掉充电器时,电池电量未充满的情况出现。
结合第一方面,在一种可能的实现方式中,电子设备根据所述第一数据确定第一时长和第二时长,包括:电子设备将第一预测充电时长输入到第二充电模型中得到第一时长和第二时长;第一预测充电时长是电子设备根据第一数据确定的;第二充电模型的训练数据包括第二输入数据和第二输出数据。
其中,第二输入数据包括第二预测充电时长,第二预测充电时长是根据第一用户的第一历史充电数据确定的;第一历史充电数据包括电子设备开始对电池进行充电的时间、电子设备开始对电池进行充电时电池的电量、充电器的类型、电子设备对电池进行充电的实际充电时长、所处时区、一周内充电平均时长、电子设备功耗、传感器信息充电的时间是否为节假日中一种或多种。
其中,第二输出数据包括第一充电时长和第二充电时长,第一充电时长由第一用户的实际充电时长减去第一修正量得到的;第二充电时长等于所述第一修正量;第一修正量是根据第一充电模型的置信度确定的。
第二预测充电时长是根据第一用户的第一历史充电数据确定的,具体包括:第二预测时长是电子设备将第一历史数据输入到第一充电模型中计算得到的;第一充电模型的训练数据包括第一输入数据和第二输入数据,第一输入数据包括多个用户的第二历史充电数据。
其中,所述第二历史充电数据包括所述电子设备开始对所述电池进行充电的时间、所述电子设备开始对所述电池进行充电时所述电池的电量、所述充电器的类型、所述电子设备对所述电池进行充电的实际充电时长、所处时区、一周内充电平均时长、电子设备功耗、传感器信息充电的时间是否为节假日中一种或多种。
电子设备根据具体用户的历史充电数据训练出输出第一时长和第二时长的充电模型。不同用户在同一个充电场景下电子设备对电池进行快充和慢充的时长不同。这样,能够符合每个用户的充电习惯,每个用户的电子设备可以更准确地进行充电管控。
结合第一方面,在一种可能的实现中,第一充电模型和第二充电模型存在于电子设备厂商提供的云服务器(例如华为云)中。用户的电子设备中登录云服务账号,云服务器采集训练数据来训练第一充电模型和第二充电模型。用户每次开始充电时,电子设备讲过采集到的第一数据发送给云服务器。云服务器中的第一充电模型和第二充电模型得到第一时长和第二时长后发送给电子设备。这样,电子设备不用保存第一充电模型和第二充电模型,可以节约电子设备内存空间。
结合第一方面,在一种可能的实现方式中,第一充电模型和第二充电模型存在于用户的电子设备中,这样,避免用户在没有连接网络的时候进行充电,获取不到充电模型预测出的本次充电的第一时长和第二时长。
结合第一方面,在一种可能的实现方式中,用户电子设备的充电历史数据还包括充电的位置信息,例如家里、办公室还是室外等等信息。在不同的场所中,用户给电子设备插入充电器开始充电到结束充电的总时长不同。结合不同的位置信息训练第二充电模型,可以使得第二充电模型输出的第一时长和第二时长更符合用户充电习惯,从而能够更好地对电子设备中电池的充电过程进行管控。
第二方面,提供了一种电子设备,包括存储器、处理器、充电管理模块、电源管理模块、电池;电源管理模块、存储器与处理器耦合,充电管理模块、电池与电源管理模块耦合,充电管理模块与电池耦合。
其中,处理器用于获取第一数据,其中,第一数据用于表征充电管理模块检测到外部电源接入时的状态;根据第一数据确定第一时长和第二时长,其中,第一时长用于表征充电管理模块以第一充电参数进行充电的预测充电时长,第二时长用于表征充电管理模块以第二充电参数进行充电的预测充电时长。
电源管理模块用于监测电池的剩余电量。
充电管理模块用于检测外部电源接入;根据第一充电参数对电池进行充电,充电时间为第一实际充电时长;第一实际充电时长用于表征充电管理模块以第一充电参数进行充电的实际充电时长;当第三时长等于第一时长时,根据第二充电参数对电池进行充电,充电时间为第二实际充电时长,第二实际充电时长用于表征充电管理模块以第二充电参数进行充电的实际充电时长。
其中,充电管理模块以第一充电参数进行充电的充电效率高于充电管理模块以第二充电参数进行充电的充电效率。
其中,第一数据包括外部电源接入的时间、电子设备检测到外部电源接入时的剩余电量、充电器的类型、电子设备的所处时区、电子设备的亮灭屏信息、电子设备中设定的闹钟响铃时间、电子设备中设定的待办事项提醒时间点、电子设备的传感器数据中的一种或多种。
其中,第一充电参数包括第一充电截止电压、第一充电输入功率;第二充电参数包括第二充电截止电压、第二充电输入功率;第一充电截止电压大于第二充电截止电压;第一充电输入功率大于第二充电输入功率。
这样,电子设备在对电池进行充电时可以对充电过程进行管控。在用户长时间(例如夜间)给电子设备接入外部电源进行充电时,电子设备可以对电池进行快充,然后再对电 池进行慢充。并且,电子设备可以根据用户接入时的场景来确定快充和慢充的时长。不同的场景下,电子设备对电池进行快充或慢充的时长不一样。当用户长时间给电子设备充电时,电子设备通过充电管控可以延迟电池充电到满电状态。这样,可以减少电池处于满电状态时继续被充电的时间。从而,可以延长电子设备中电池的使用时间,提升了用户体验。
结合第二方面,在一种可能的实现方式中,充电管理模块根据第二充电参数进行充电,充电时间为第二实际充电时长之后,充电管理模块还用于:当第二实际充电时长等于第二时长时,根据第一充电参数进行充电。若电子设备一直慢充,在用户断开外部电源与电子设备之间的连接时,电子设备中电池电量可能未充到100%。当电子设备慢充一段时间后,继续快充,电子设备快速将电池电量充到100%。这样,可以减少用户电子设备中的电池电量在结束充电时未充到100%的情况的发生。
结合第二方面,在一种可能的实现方式中,第一数据包括外部电源接入时的时间,外部电源接入时的时间在夜间时间段内。其中,夜间时间段可以是23:00-6:00。这样,只有在夜间时间段内,电子设备才对电池进行充电管控,即电子设备先对电池进行快充,再慢充。在夜间时间内,用户才可能长时间使电子设备接入外部电源,可能会造成电子设备中电池处于满电状态下充电。在白天时,用户一般不会长时间使电子设备接入外部电源。因此,电子设备对电池进行快充。这样,更符合用户习惯,提升了用户体验。
结合第二方面,在一种可能的实现方式中,处理器还用于:检测到第一事件。充电管理模块具体用于:响应于检测第一事件,停止根据第二充电参数进行充电,开始根据第三充电参数进行充电;充电管理模块以第三充电参数进行充电时的充电效率高于充电管理模块以第二充电参数进行充电时的充电效率。
其中,第一事件包括电子设备的亮屏次数大于第一阈值、电子设备的亮屏时间大于第二阈值、电子设备的灭屏次数大于第三阈值、电子设备的灭屏时间小于第四阈值、电子设备的功耗大于第五阈值、电子设备启动或者使用视频应用、电子设备启动或者使用游戏应用中的一项或多项。
在电子设备对电池进行慢充或者停止充电时,若用户使用电子设备,电子设备的剩余电量可能不足够维持电子设备用户启动应用程序的正常运行。这时,电子设备以第三充电参数对电池进行充电,即对电池进行快充。这样,电子设备的电量可以足够维持用户使用启动应用程序的正常运行。从而提升了用户体验。
结合第二方面,在一种可能的实现方式中,开始根据所述第三充电参数进行充电,充电管理模块具体用于:根据第三充电参数进行充电,充电时间为第三实际充电时长,第三实际充电时长用于表征充电管理模块以第三充电参数进行充电的实际时间;当第三实际充电时长等于第三时长时,充电管理模块根据第四充电参数进行充电,充电时间为第四实际充电时长;第三时长用于表征充电管理模块以第三充电参数进行充电的预测充电时长,第四实际充电时长用于表征充电管理模块以第四充电参数进行充电的实际充电时长;其中,充电管理模块以第三充电参数进行充电的充电效率高于充电管理模块以第四充电参数进行充电的充电参数;第三时长由第二数据确定的,第二数据用于表征处理器检测到第一事件时的状态。
其中,第二数据包括处理器检测到第一事件时的时间、处理器检测到第一事件时的剩 余电量、充电器的类型、电子设备的所处时区、电子设备的亮灭屏信息、电子设备中设定的闹铃时间、电子设备中设定的待办事项时间、电子设备的传感器数据中的一种或多种。
这样,在电子设备对电池进行慢充的过程中,若用户使用电子设备,电子设备重新对电池进行快充一段时间,然后再对电池进行慢充。电子设备根据用户使用电子设备时电子设备获取到的第二数据预测出电子设备重新对电池进行快充的时长和进行慢充的时长。这样,电子设备可以根据具体的场景来改变电子设备对电池的充电效率。这样,可以满足在电子设备充电过程电子设备的电量足够用户正常使用电子设备的需求,从而提升了用户体验。
结合第二方面,在一种可能的实现方式中,处理器还用于:检测第二事件。充电管理模块具体用于:响应于检测到第二事件,根据所述第一充电参数进行充电,第二事件用于表征存储器记录的用户预设时间;当电池的剩余电量充电到第一阈值时,根据第二充电参数进行充电;当充到第一时间时,根据第五充电参数进行充电,第一时间为用户预设时间前的时间。
其中,第二事件包括电子设备中设定的闹钟响铃时间、备忘录设定提醒时间点、日程安排设定时间点、待办事项提醒时间点中的一项或多项。
当用户对电子设备进行充电时,尤其是在夜间的时候,用户在电子设备中设定了第二天早上的起床闹钟,那么一般用户在闹钟响铃时起床拔掉电子设备的充电器。这样,电子设备按照用户设定的闹钟时间来进行充电管控,更符合用户的习惯。并且,电子设备的剩余电量充到一定阈值后就开始慢充,可以减少电池处于满电状态下充电的时长。在闹钟响铃时间前一段时间开始恢复快充,可以保证用户在拔掉充电器时电子设备电量已充满。这样,可以提升用户体验。
结合第二方面,在一种可能的实现方式中,充电管理模块具体用于:根据第二充电参数进行充电或停止充电。即电子设备以第二充电参数进行充电时,电子设备可以对电池进行慢充,也可以停止对电池进行充电。
结合第二方面,在一种可能的实现方式中,第三充电参数、第五充电参数与第一充电参数相同;第四充电参数与第二充电参数相同。
结合第二方面,在一种可能的实现方式中,第一时长与第二时长的和不小于第六阈值。若电子设备根据第一数据预测出的第一时长和第二时长之和太短。也即使说,用户在这种场景下对电子设备充电的总时长不长,那么电子设备就不进行充电管控。电子设备一直进行快充。这样可以避免用户在结束充电时电池电量未充满。
结合第二方面,在一种可能的实现方式中,处理器还用于:确定在外部电源接入后的第一时间段内电子设备中未设定闹钟、在23:00-6:00时段内外部电源为接入状态,且第一时长与所述第二时长之和大于4小时。在处理器确定外部电源接入后的第一时间段内电子设备中设定闹钟的情况下,充电管理模块用于:根据第一充电参数进行充电,直到电子设备的剩余电量为80%;停止充电;若电池的剩余电量充到80%的时间早于闹钟响铃时间到达前半个小时,在闹钟响铃时间到达前半个小时,根据第一充电参数进行充电,充电到闹钟响铃时间。
若电子设备中设定闹钟,那么电子设备就按照闹钟响铃时间对电池的充电过程进行管 控。即电子设备先对电池进行快充,直到电池电量为80%时停止充电。到闹钟响铃时间到达前半个小时,恢复快充,直到闹钟响铃时间。若是电子设备中没有设定闹钟,且在23:00-6:00这个时间段内充电,以及电子设备预测出第一时长和第二时长之和大于4小时,电子设备才先对电池快充第一时长,然后再慢充和停止充电第二时长。否则,电子设备一直对电池进行快充。这样,既可以减少电池处于满电状态下充电的时间,又可以减少结束充电时电池电量未充满的情况出现。
结合第二方面,在一种可能的实现方式中,根据第二充电参数进行充电,充电时间为第二实际充电时长,充电管理模块还用于:若第二实际充电时长小于第二时长,获取到电子设备的所处时区的时间为6:00,则停止根据第二充电参数进行充电。到早上6点时,若电子设备按照充电模型的预测还在对电池进行慢充,那么结束充电时电池很有可能未充满。在早上6点就恢复快充,这样,可以减少用户起床拔掉充电器时,电池电量未充满的情况出现。
结合第二方面,在一种可能的实现方式中,处理器具体用于:将第一预测充电时长输入到第二充电模型中得到第一时长和第二时长;第一预测充电时长是电子设备根据第一数据确定的;第二充电模型的训练数据包括第二输入数据和第二输出数据。
其中,第二输入数据包括第二预测充电时长,第二预测充电时长是根据第一用户的第一历史充电数据确定的;第一历史充电数据包括电子设备开始对电池进行充电的时间、电子设备开始对电池进行充电时电池的电量、充电器的类型、电子设备对电池进行充电的实际充电时长、所处时区、一周内充电平均时长、电子设备功耗、传感器信息充电的时间是否为节假日中一种或多种。
其中,第二输出数据包括第一充电时长和第二充电时长,第一充电时长由第一用户的实际充电时长减去第一修正量得到的;第二充电时长等于所述第一修正量;第一修正量是根据第一充电模型的置信度确定的。
第二预测充电时长是根据第一用户的第一历史充电数据确定的,具体包括:第二预测时长是电子设备将第一历史数据输入到第一充电模型中计算得到的;第一充电模型的训练数据包括第一输入数据和第二输入数据,第一输入数据包括多个用户的第二历史充电数据。
其中,所述第二历史充电数据包括所述电子设备开始对所述电池进行充电的时间、所述电子设备开始对所述电池进行充电时所述电池的电量、所述充电器的类型、所述电子设备对所述电池进行充电的实际充电时长、所处时区、一周内充电平均时长、电子设备功耗、传感器信息充电的时间是否为节假日中一种或多种。
电子设备根据具体用户的历史充电数据训练出输出第一时长和第二时长的充电模型。不同用户在同一个充电场景下电子设备对电池进行快充和慢充的时长不同。这样,能够符合每个用户的充电习惯,每个用户的电子设备可以更准确地进行充电管控。
结合二方面,在一种可能的实现中,第一充电模型和第二充电模型存在于电子设备厂商提供的云服务器(例如华为云)中。用户的电子设备中登录云服务账号,云服务器采集训练数据来训练第一充电模型和第二充电模型。用户每次开始充电时,电子设备讲过采集到的第一数据发送给云服务器。云服务器中的第一充电模型和第二充电模型得到第一时长和第二时长后发送给电子设备。这样,电子设备不用保存第一充电模型和第二充电模型, 可以节约电子设备内存空间。
结合第二方面,在一种可能的实现方式中,第一充电模型和第二充电模型存在于用户的电子设备中,这样,避免用户在没有连接网络的时候进行充电,获取不到充电模型预测出的本次充电的第一时长和第二时长。
结合第二方面,在一种可能的实现方式中,用户电子设备的充电历史数据还包括充电的位置信息,例如家里、办公室还是室外等等信息。在不同的场所中,用户给电子设备插入充电器开始充电到结束充电的总时长不同。结合不同的位置信息训练第二充电模型,可以使得第二充电模型输出的第一时长和第二时长更符合用户充电习惯,从而能够更好地对电子设备中电池的充电过程进行管控。
第三方面,提供一种电子设备,包括一个或多个触摸屏,一个或多个存储模块,一个或多个处理模块;其中所述一个或多个储存模块存储有一个或多个程序;当所述一个或多个处理模块在执行所述一个或多个程序时,使得所述电子设备实现如第一方面中任一种可能的实现方式的所述的方法。
第四方面,提供一种电子设备,包括:存储器和处理器;存储器与处理器耦合,存储器用于存储计算机程序代码,计算机程序代码包括计算机指令,其中,处理器用于:检测到外部电源接入;响应于检测到外部电源接入,获取第一数据,其中,第一数据用于表征处理器检测到外部电源接入时的状态;响应于检测到外部电源接入,开始充电;根据第一数据确定第一时长和第二时长,其中,第一时长用于表征处理器以第一充电参数进行充电的预测充电时长,第二时长用于表征处理器以第二充电参数进行充电的预测充电时长;根据第一充电参数进行充电,充电时间为第一实际充电时长,第一实际充电时长用于表征处理器以第一充电参数进行充电的实际充电时长;当第一实际充电时长等于第一时长时,根据第二充电参数进行充电,充电时间为第二实际充电时长,第二实际充电时长用于表征处理器以第二充电参数进行充电的实际充电时长;其中,处理器以第一充电参数进行充电时的充电效率高于处理器以第二充电参数进行充电时的充电效率。
其中,第一数据包括外部电源接入的时间、处理器检测到外部电源接入时的剩余电量、充电器的类型、电子设备的所处时区、电子设备的亮灭屏信息、电子设备中设定的闹钟响铃时间、电子设备中设定的待办事项提醒时间点、电子设备的传感器数据中的一种或多种。
其中,第一充电参数包括第一充电截止电压、第一充电输入功率;第二充电参数包括第二充电截止电压、第二充电输入功率;第一充电截止电压大于第二充电截止电压;第一充电输入功率大于第二充电输入功率。
这样,电子设备在对电池进行充电时可以对充电过程进行管控。在用户长时间(例如夜间)给电子设备接入外部电源进行充电时,电子设备可以对电池进行快充,然后再对电池进行慢充。并且,电子设备可以根据用户接入时的场景来确定快充和慢充的时长。不同的场景下,电子设备对电池进行快充或慢充的时长不一样。当用户长时间给电子设备充电时,电子设备通过充电管控可以延迟电池充电到满电状态。这样,可以减少电池处于满电状态时继续被充电的时间。从而,可以延长电子设备中电池的使用时间,提升了用户体验。
结合第四方面,在一种可能的实现方式中,第一数据包括外部电源接入时的时间,外部电源接入时的时间在夜间时间段内。其中,夜间时间段可以是23:00-6:00。这样,只有在 夜间时间段内,电子设备才对电池进行充电管控,即电子设备先对电池进行快充,再慢充。在夜间时间内,用户才可能长时间使电子设备接入外部电源,可能会造成电子设备中电池处于满电状态下充电。在白天时,用户一般不会长时间使电子设备接入外部电源。因此,电子设备对电池进行快充。这样,更符合用户习惯,提升了用户体验。
结合第四方面,在一种可能的实现方式中,处理器还用于:检测到第一事件,响应于检测第一事件,停止根据第二充电参数进行充电,开始根据第三充电参数进行充电;充电管理模块以第三充电参数进行充电时的充电效率高于充电管理模块以第二充电参数进行充电时的充电效率。
其中,第一事件包括电子设备的亮屏次数大于第一阈值、电子设备的亮屏时间大于第二阈值、电子设备的灭屏次数大于第三阈值、电子设备的灭屏时间小于第四阈值、电子设备的功耗大于第五阈值、电子设备启动或者使用视频应用、电子设备启动或者使用游戏应用中的一项或多项。
在电子设备对电池进行慢充或者停止充电时,若用户使用电子设备,电子设备的剩余电量可能不足够维持电子设备用户启动应用程序的正常运行。这时,电子设备以第三充电参数对电池进行充电,即对电池进行快充。这样,电子设备的电量可以足够维持用户使用启动应用程序的正常运行。从而提升了用户体验。
结合第四方面,在一种可能的实现方式中,开始根据所述第三充电参数进行充电,处理器具体用于:根据第三充电参数进行充电,充电时间为第三实际充电时长,第三实际充电时长用于表征处理器以第三充电参数进行充电的实际时间;当第三实际充电时长等于第三时长时,处理器根据第四充电参数进行充电,充电时间为第四实际充电时长;第三时长用于表征处理器以第三充电参数进行充电的预测充电时长,第四实际充电时长用于表征处理器以第四充电参数进行充电的实际充电时长;其中,处理器以第三充电参数进行充电的充电效率高于处理器以第四充电参数进行充电的充电参数;第三时长由第二数据确定的,第二数据用于表征处理器检测到第一事件时的状态。
其中,第二数据包括处理器检测到第一事件时的时间、处理器检测到第一事件时的剩余电量、充电器的类型、电子设备的所处时区、电子设备的亮灭屏信息、电子设备中设定的闹铃时间、电子设备中设定的待办事项时间、电子设备的传感器数据中的一种或多种。
这样,在电子设备对电池进行慢充的过程中,若用户使用电子设备,电子设备重新对电池进行快充一段时间,然后再对电池进行慢充。电子设备根据用户使用电子设备时电子设备获取到的第二数据预测出电子设备重新对电池进行快充的时长和进行慢充的时长。这样,电子设备可以根据具体的场景来改变电子设备对电池的充电效率。这样,可以满足在电子设备充电过程电子设备的电量足够用户正常使用电子设备的需求,从而提升了用户体验。
结合第四方面,在一种可能的实现方式中,处理器还用于:检测第二事件,响应于检测到第二事件,根据所述第一充电参数进行充电,第二事件用于表征存储器记录的用户预设时间;当电池的剩余电量充电到第一阈值时,根据第二充电参数进行充电;当充到第一时间时,根据第五充电参数进行充电,第一时间为用户预设时间前的时间。
其中,第二事件包括电子设备中设定的闹钟响铃时间、备忘录设定提醒时间点、日程 安排设定时间点、待办事项提醒时间点中的一项或多项。
当用户对电子设备进行充电时,尤其是在夜间的时候,用户在电子设备中设定了第二天早上的起床闹钟,那么一般用户在闹钟响铃时起床拔掉电子设备的充电器。这样,电子设备按照用户设定的闹钟时间来进行充电管控,更符合用户的习惯。并且,电子设备的剩余电量充到一定阈值后就开始慢充,可以减少电池处于满电状态下充电的时长。在闹钟响铃时间前一段时间开始恢复快充,可以保证用户在拔掉充电器时电子设备电量已充满。这样,可以提升用户体验。
结合第四方面,在一种可能的实现方式中,处理器具体用于:根据第二充电参数进行充电或停止充电。即电子设备以第二充电参数进行充电时,电子设备可以对电池进行慢充,也可以停止对电池进行充电。
结合第四方面,在一种可能的实现方式中,第三充电参数、第五充电参数与第一充电参数相同;第四充电参数与第二充电参数相同。
结合第四方面,在一种可能的实现方式中,第一时长与第二时长的和不小于第六阈值。若电子设备根据第一数据预测出的第一时长和第二时长之和太短。也即使说,用户在这种场景下对电子设备充电的总时长不长,那么电子设备就不进行充电管控。电子设备一直进行快充。这样可以避免用户在结束充电时电池电量未充满。
结合第四方面,在一种可能的实现方式中,处理器还用于:确定在外部电源接入后的第一时间段内电子设备中未设定闹钟、在23:00-6:00时段内外部电源为接入状态,且第一时长与所述第二时长之和大于4小时。在处理器确定外部电源接入后的第一时间段内电子设备中设定闹钟的情况下,处理器用于:根据第一充电参数进行充电,直到电子设备的剩余电量为80%;停止充电;若电池的剩余电量充到80%的时间早于闹钟响铃时间到达前半个小时,在闹钟响铃时间到达前半个小时,根据第一充电参数进行充电,充电到闹钟响铃时间。
若电子设备中设定闹钟,那么电子设备就按照闹钟响铃时间对电池的充电过程进行管控。即电子设备先对电池进行快充,直到电池电量为80%时停止充电。到闹钟响铃时间到达前半个小时,恢复快充,直到闹钟响铃时间。若是电子设备中没有设定闹钟,且在23:00-6:00这个时间段内充电,以及电子设备预测出第一时长和第二时长之和大于4小时,电子设备才先对电池快充第一时长,然后再慢充和停止充电第二时长。否则,电子设备一直对电池进行快充。这样,既可以减少电池处于满电状态下充电的时间,又可以减少结束充电时电池电量未充满的情况出现。
结合第四方面,在一种可能的实现方式中,根据第二充电参数进行充电,充电时间为第二实际充电时长,处理器还用于:若第二实际充电时长小于第二时长,获取到电子设备的所处时区的时间为6:00,则停止根据第二充电参数进行充电。到早上6点时,若电子设备按照充电模型的预测还在对电池进行慢充,那么结束充电时电池很有可能未充满。在早上6点就恢复快充,这样,可以减少用户起床拔掉充电器时,电池电量未充满的情况出现。
结合第四方面,在一种可能的实现方式中,处理器具体用于:将第一预测充电时长输入到第二充电模型中得到第一时长和第二时长;第一预测充电时长是电子设备根据第一数据确定的;第二充电模型的训练数据包括第二输入数据和第二输出数据。
其中,第二输入数据包括第二预测充电时长,第二预测充电时长是根据第一用户的第一历史充电数据确定的;第一历史充电数据包括电子设备开始对电池进行充电的时间、电子设备开始对电池进行充电时电池的电量、充电器的类型、电子设备对电池进行充电的实际充电时长、所处时区、一周内充电平均时长、电子设备功耗、传感器信息充电的时间是否为节假日中一种或多种。
其中,第二输出数据包括第一充电时长和第二充电时长,第一充电时长由第一用户的实际充电时长减去第一修正量得到的;第二充电时长等于所述第一修正量;第一修正量是根据第一充电模型的置信度确定的。
第二预测充电时长是根据第一用户的第一历史充电数据确定的,具体包括:第二预测时长是电子设备将第一历史数据输入到第一充电模型中计算得到的;第一充电模型的训练数据包括第一输入数据和第二输入数据,第一输入数据包括多个用户的第二历史充电数据。
其中,所述第二历史充电数据包括所述电子设备开始对所述电池进行充电的时间、所述电子设备开始对所述电池进行充电时所述电池的电量、所述充电器的类型、所述电子设备对所述电池进行充电的实际充电时长、所处时区、一周内充电平均时长、电子设备功耗、传感器信息充电的时间是否为节假日中一种或多种。
电子设备根据具体用户的历史充电数据训练出输出第一时长和第二时长的充电模型。不同用户在同一个充电场景下电子设备对电池进行快充和慢充的时长不同。这样,能够符合每个用户的充电习惯,每个用户的电子设备可以更准确地进行充电管控。
结合第四方面,在一种可能的实现中,第一充电模型和第二充电模型存在于电子设备厂商提供的云服务器(例如华为云)中。用户的电子设备中登录云服务账号,云服务器采集训练数据来训练第一充电模型和第二充电模型。用户每次开始充电时,电子设备讲过采集到的第一数据发送给云服务器。云服务器中的第一充电模型和第二充电模型得到第一时长和第二时长后发送给电子设备。这样,电子设备不用保存第一充电模型和第二充电模型,可以节约电子设备内存空间。
结合第四方面,在一种可能的实现方式中,第一充电模型和第二充电模型存在于用户的电子设备中,这样,避免用户在没有连接网络的时候进行充电,获取不到充电模型预测出的本次充电的第一时长和第二时长。
结合第四方面,在一种可能的实现方式中,用户电子设备的充电历史数据还包括充电的位置信息,例如家里、办公室还是室外等等信息。在不同的场所中,用户给电子设备插入充电器开始充电到结束充电的总时长不同。结合不同的位置信息训练第二充电模型,可以使得第二充电模型输出的第一时长和第二时长更符合用户充电习惯,从而能够更好地对电子设备中电池的充电过程进行管控。
第五方面,提供一种电子设备,包括一个或多个触摸屏,一个或多个存储器,一个或多个处理器;其中所述一个或多个储存器存储有一个或多个程序;当所述一个或多个处理器在执行所述一个或多个程序时,使得所述电子设备实现如第一方面中任一种可能的实现方式的所述的方法。
第六方面,提供一种计算机可读存储介质,包括指令,其特征在于,当上述指令在电子设备上运行时,以使得电子设备执行如第一方面中任一种可能的实现方式。
第七方面,提供一种计算机产品,当计算机程序产品在计算机上运行时,使得计算机执行如第一方面中任一种可能的实现方式。
附图说明
为了更清楚地说明本申请实施例中的技术方案,下面将对本申请实施例中所需要使用的附图进行说明。
图1为现有技术中提供的充电管控中时间节点示意图;
图2为本申请实施例提供的电子设备的硬件结构的示意图;
图3为本申请实施例提供的一种充电管控方法流程示意图;
图4为本申请实施例提供的用户A的电子设备对电池进行充电的用户界面示意图;
图5A-图5F为本申请实施例提供的用户A的电子设备对电池进行充电的用户界面示意图;
图6A-图6E为本申请实施例提供的用户B的电子设备对电池进行充电的用户界面示意图;
图7为本申请实施例提供的电子设备对电池进行充电的用户界面示意图。
具体实施方式
下面将结合附图对本申请实施例中的技术方案进行清除、详尽地描述。其中,在本申请实施例的描述中,除非另有说明,“/”表示或的意思,例如,A/B可以表示A或B;文本中的“和/或”仅仅是一种描述关联对象的关联关系,表示可以存在三种关系,例如,A和/或B,可以表示:单独存在A,同时存在A和B,单独存在B这三种情况,另外,在本申请实施例的描述中,“多个”是指两个或多于两个。
以下,术语“第一”、“第二”仅用于描述目的,而不能理解为暗示或暗示相对重要性或者隐含指明所指示的技术特征的数量。由此,限定有“第一”、“第二”的特征可以明示或者隐含地包括一个或者更多个该特征,在本申请实施例的描述中,除非另有说明,“多个”的含义是两个或两个以上。此外,本申请的描述中所提到的术语“包括”和“具有”以及它们的任何变形,意图在于覆盖不排他的包含。例如包含了一系列步骤或单元的过程、方法、系统、产品或设备没有限定于已列出的步骤或单元,而是可选地还包括其他没有列出的步骤或单元,或可选地还包括对于这些过程、方法、产品或设备固有的其它步骤或单元。需要说明的是,本申请实施例中,“示例性的”或者“例如”等词用于表示作例子、例证或说明。本申请实施例中被描述为“示例性的”或者“例如”的任何实施例或设计方案不应被解释为比其它实施例或设计方案更优选或更具优势。确切而言,使用“示例性的”或者“例如”等词旨在以具体方式呈现相关概念。
为了解决电子设备中电池在满电状态下继续充电的问题,现有技术中提出一种方法,该方法具体为:电子设备的厂商根据多个用户的历史充电数据(如充电开始时间,充电结束时间,充电时长等等),训练出一个充电模型。该充电模型的训练数据中包括输入数据和对应的输出数据。输入数据包括充电开始时间和电子设备检测到外部电源接入时的剩余电量。输出数据包括充电总时长和充电结束时电池的电量。该充电模型可以保存在电子设备中。电子设备向充电模型输入电子设备检测到外部电源接入时的时间以及电子设备检测到 外部电源接入时的剩余电量后,该充电模型可以输出本次充电过程的预测充电时长和电池的电量阈值A。当电池的电量达到阈值A后,电子设备暂停对电池充电。如图1所示,当电子设备开始连接上充电器时,电子设备将电子设备检测到外部电源接入时的时间以及电子设备检测到外部电源接入时的剩余电量输入到充电模型中,得到本次电子设备对电池充电的预测充电时长和电池的电量阈值A。电子设备对电池进行充电。若电子设备检测电池的电量大于阈值A(例如,A=80%),则电子设备暂停对电池进充电。在当前时间临近本次充电的结束时间(即预测结束充电时间)时,电子设备继续对电池进行充电。电子设备检测到电子设备与充电器断开连接后,电子设备停止对电池充电。
其中,满电状态可以是指,电池的电量达到了电池容量。理想状态下,满电状态时,电池的电量可以达到电池的额定容量(即设计和生产时规定的电池的容量)。一般,满电状态下电池的电量会略小于电池容量。尤其是对于使用了很久的电池,由于存在一定的电池损耗,满电状态时,电池的电量明显达不到电池容量。也即是说,电池的实际容量会在使用过程中因电池损耗而发生变化。
现有技术提出的方法,可以在充电过程中进行充电管控,减少电池处于满电状态的时长,从而可以减少电池在满电状态继续充电的情况。但是,这种通过一个固定阈值A决定是否开启充电管控没有考虑到具体用户的充电习惯。从图1可以看出,电池若在预计结束充电时间处结束充电,实际上电池的电量未充满。电池在实际结束充电时间处才能充满电量。若用户在电池结束充电时继续使用电子设备,但电子设备的电池的电量未充满,导致用户在使用电子设备过程中过快出现电量不足。这样,影响用户体验。
每个用户对电子设备充电的充电习惯不同。如果所有的用户的电子设备中设定统一阈值来进行充电管控,这样不能更好地对每个用户的电子设备进行充电管控。在电子设备充电过程中,为了能够更好地对每个用户的电子设备进行充电管控,以及为了减少每个用户的电子设备中的电池在满电状态下继续充电,对电池造成损耗。
本申请实施例提出了一种充电管控方法。该方法具体包括:首先,电子设备检测到外部电源接入时可以获取到第一数据(例如电子设备检测到外部电源接入时的时间、电子设备检测到外部电源接入时的剩余电量、充电器类型、所处时区等)。第一数据用于描述电子设备检测到外部电源接入时的充电场景。电子设备根据第一数据得到第一时长和第二时长。第二时长的起始时间晚于或等于第一时长的截止时间。在第一时长内,电子设备以第一充电参数对电池进行充电;在第二时长内,电子设备以第二充电参数对电池进行充电;第一充电参数的充电效率高于第二充电参数的充电效率。若在第二时长内,电池的电量未充满,电子设备可以继续以第一充电参数对电池进行充电。当电子设备检测与外部电源的连接断开时,电子设备结束对电池充电。其中,在第二时长内,可以不进行充电,也就是第二充电参数的充电效率为零。
其中,电子设备中可以有第一充电模型和第二充电模型。电子设备可以将第一数据输入到第一充电模型中得到第一预测时长。然后电子设备将第一预测时长输入到第二充电模型中得到第一时长和第二时长。第一充电模型由多个用户的充电历史数据训练得到。训练时,第一充电模型的输入数据是充电开始时间、充电开始时电池的电量以及充电器类型、 所处时区,第一充电模型的输出是实际充电时长。第二充电模型的训练数据中的输入为具体用户的历史充电数据输入到第一充电模型后得到的预测充电时长。第二充电模型的训练数据中的输出为第一充电时长和第二充电时长。第一充电时长的初始值等于实际充电时长。第二充电时长的初始值等于0。由于这样训练出来的第二充电模型输出的第一时长会无限接近实际充电时长,而第二时长无限接近0。在用户使电子设备长时间对电池充电时,第二时长的值应该大一些,这样,可以使电池满电状态下的充电时长短一些。但是,第二时长如果太长,会导致充电结束时电池的电量未充满。为了既保证电子设备对满电状态下的电池充电的时间短一些,又保证充电结束时电池的电量充满,本申请对利用第一修正量对训练数据中的第一充电时长和第二充电时长进行修正。第一充电时长由具体用户的实际充电时长减去第一修正量得到的;第二充电时长等于第一修正量。第一修正量根据第一充电模型的置信度确定。
可以理解的是,电子设备获取到的外部电源接入时的时间是电子设备所处时区的时间。举例来说,用户从北京去墨西哥,电子设备上可以同时显示北京时间和墨西哥时间。当用户在墨西哥给电子设备充电时,电子设备获取到的外部电源接入时的时间是墨西哥当地的时间。
下面对本申请实施例涉及到的概念(如充电管控、预测充电时长、第一时长、第二时长、充电参数、实际充电时长、误报率、收益率、置信度)进行解释。
(1)充电管控
电子设备对电池进行充电过程中改变充电效率称为充电管控。举例来说,电子设备对电池进行充电的过程中可以先快充,后改变为慢充,这即为充电管控。电子设备可以通过调整充电截止电压、充电输入功率等等来改变充电效率。可理解地,充电输入功率由充电输入电流和充电输入电压决定。
(2)实际充电时长
实际充电时长指用户从给电子设备插入充电器开始充电到用户拔下充电器,电子设备结束充电的总时长。也即是电子设备检测到与充电器连接开始充电到电子设备检测到与充电器断开连接结束充电的总时长。
(3)预测充电时长
预测充电时长是指,电子设备根据本次充电时获取到的电池的电量、充电开始时间、充电器类型、电池循环次数、电池实际容量、电池健康状态等等数据,预测出本次用户从给电子设备插入充电器开始充电到用户拔下充电器,电子设备结束充电的总时长。电子设备根据预测充电时长可以预测出本次充电的第一时长和第二时长。预测充电时长的具体预测过程将在下文中进行描述,此处不再赘述。
(4)第一时长
第一时长是指电子设备预测出的电子设备以第一充电参数对电池进行充电的时长。第一时长可以由电子设备根据电子设备检测到与充电器连接时电池的电量、电子设备检测到与充电器连接时的时间、充电器类型以及预测充电时长预测得到。可以理解的是,在第一时长内,电子设备未将电池的电量充满。
(5)第二时长
第二时长是指电子设备预测出的电子设备以第二充电参数对电池进行充电的时长。本次充电过程中的第二时长,可以由电子设备根据本次充电时获取到的电池的电量、充电开始时间、充电器类型以及预测充电时长预测得到。
(6)充电参数
本申请实施例中的充电参数包括充电截止电压、充电输入电压、充电输入电流等等。在本申请实施例中,在一次充电过程中,第一充电参数、第二充电参数、第三充电参数以及第四充电参数可以是恒定的,也可以是多套的或者变化的。
(7)误报率
在本申请实施例中,第一充电模型的每一次训练过程中,若第一充电模型输出的预测充电时长大于实际充电时长,记为一次误报。误报的总次数除以训练的总次数,即为误报率。可以理解的是,在预测充电时长大于实际充电时长的情况下,用户拔下充电器时,电子设备可能在以第一充电参数或第二充电参数对电池进行充电,电池的电量还未充满。所以,电子设备将预测充电时长大于实际充电时长记为误报。
(8)收益率
在预测充电时长大于实际充电时长的情况下,电池不会处于满电状态下充电,认为收益率p是100%。收益率与预测充电时长有关,当预测充电时长等于或大于实际充电时长时,收益率等于100%。当预测充电时长小于实际充电时长时,用户拔下充电器之前电子设备已经将电池的电量充满,不算误报。但是电子设备可能已经给满电状态下的电池进行充电了一段时间,这样收益率就不是100%。当预测充电时长小于实际充电时长时,预测充电时长越接近实际充电时长,收益率越大。例如,如果用户将电子设备从晚10点开始充电到早8点结束充电,而第一充电模型预测出早上7点结束充电,这个时候收益是90%。若第一充电模型预测出早上6点结束充电,那么收益率为80%。可以理解的是,这个收益率为90%和80%只是举例说明收益率与预测充电时长的关系,对收益率具体如何计算不做限定。
(9)置信度
第一充电模型的置信度即表示该模型的可信程度。这里,用户拔电时电池的电量充满和电池满电状态下充电的时间要尽可能短,这两点都需要保证。当保证不误报的情况下,收益率越大,置信度越高。收益率和误报率如何取舍与用户个人习惯有关,例如,假设用户每次充电未将电池的电量充满就拔掉充电器,那么可能就主要保证收益率。此处对收益率和误报率的具体取值不做限定。第一充电模型的置信度C与收益率和误报率有关。可理解的,第二充电模型的置信度也表示了第二充电模型的可信程度。第二充电模型的置信度越高,电子设备的充电管控越符合用户习惯。由于本申请实施例后续计算中不需要用到第二充电模型的置信度,这里,对第二充电模型的置信度不做过多介绍。
首先介绍本申请以下实施例中提供的示例性电子设备100。
图2示出了电子设备100的结构示意图。
下面以电子设备100为例对实施例进行具体说明。应该理解的是,电子设备100可以具有比图中所示的更多的或者更少的部件,可以组合两个或多个的部件,或者可以具有不同的部件配置。图中所示出的各种部件可以在包括一个或多个信号处理和/或专用集成电路 在内的硬件、软件、或硬件和软件的组合中实现。
电子设备100可以包括处理器110,内部存储器121,通用串行总线(universal serial bus,USB)接口130,充电管理模块140,电源管理模块141,电池142,传感器模块180,以及显示屏194等。其中传感器模块180可以包括陀螺仪传感器180B,磁传感器180D,加速度传感器180E等。
可以理解的是,本发明实施例示意的结构并不构成对电子设备100的具体限定。在本申请另一些实施例中,电子设备100可以包括比图示更多或更少的部件,或者组合某些部件,或者拆分某些部件,或者不同的部件布置。图示的部件可以以硬件,软件或软件和硬件的组合实现。
处理器110可以包括一个或多个处理单元,例如:处理器110可以包括应用处理器(application processor,AP),调制解调处理器,图形处理器(graphics processing unit,GPU),图像信号处理器(image signal processor,ISP),控制器,存储器,视频编解码器,数字信号处理器(digital signal processor,DSP),基带处理器,和/或神经网络处理器(neural-network processing unit,NPU)等。其中,不同的处理单元可以是独立的器件,也可以集成在一个或多个处理器中。
其中,控制器可以是电子设备100的神经中枢和指挥中心。控制器可以根据指令操作码和时序信号,产生操作控制信号,完成取指令和执行指令的控制。
处理器110中还可以设置存储器,用于存储指令和数据。在一些实施例中,处理器110中的存储器为高速缓冲存储器。该存储器可以保存处理器110刚用过或循环使用的指令或数据。如果处理器110需要再次使用该指令或数据,可从所述存储器中直接调用。避免了重复存取,减少了处理器110的等待时间,因而提高了系统的效率。
在本申请实施例中处理器可以根据用户电子设备的历史充电数据学习训练充电模型。该充电模型的输入充电开始时间、以及开始充电时电池的电量以及充电器类型。该充电模型可以预测出每个充电过程中电子设备对电池进行充电的第一时长以及第二时长。
USB接口130是符合USB标准规范的接口,具体可以是Mini USB接口,Micro USB接口,USB Type C接口等。USB接口130可以用于连接充电器为电子设备100充电,也可以用于电子设备100与外围设备之间传输数据。也可以用于连接耳机,通过耳机播放音频。该接口还可以用于连接其他电子设备,例如AR设备等。
可以理解的是,本发明实施例示意的各模块间的接口连接关系,只是示意性说明,并不构成对电子设备100的结构限定。在本申请另一些实施例中,电子设备100也可以采用上述实施例中不同的接口连接方式,或多种接口连接方式的组合。
充电管理模块140用于从充电器接收充电输入。其中,充电器可以是无线充电器,也可以是有线充电器。在一些有线充电的实施例中,充电管理模块140可以通过USB接口130接收有线充电器的充电输入。在一些无线充电的实施例中,充电管理模块140可以通过电子设备100的无线充电线圈接收无线充电输入。充电管理模块140为电池142充电的同时,还可以通过电源管理模块141为电子设备供电。
电源管理模块141用于连接电池142,充电管理模块140与处理器110。电源管理模块141接收电池142和/或充电管理模块140的输入,为处理器110,内部存储器121,显示屏 194等供电。电源管理模块141还可以用于监测电池容量,电池循环次数,电池健康状态(漏电,阻抗)等参数。在其他一些实施例中,电源管理模块141也可以设置于处理器110中。在另一些实施例中,电源管理模块141和充电管理模块140也可以设置于同一个器件中。
电子设备100通过GPU,显示屏194,以及应用处理器等实现显示功能。GPU为图像处理的微处理器,连接显示屏194和应用处理器。GPU用于执行数学和几何计算,用于图形渲染。处理器110可包括一个或多个GPU,其执行程序指令以生成或改变显示信息。
显示屏194用于显示图像,视频等。显示屏194包括显示面板。显示面板可以采用液晶显示屏(liquid crystal display,LCD),有机发光二极管(organic light-emitting diode,OLED),有源矩阵有机发光二极体或主动矩阵有机发光二极体(active-matrix organic light emitting diode的,AMOLED),柔性发光二极管(flex light-emitting diode,FLED),Miniled,MicroLed,Micro-oLed,量子点发光二极管(quantum dot light emitting diodes,QLED)等。在一些实施例中,电子设备100可以包括1个或N个显示屏194,N为大于1的正整数。本申请实施例中电子设备可以根据显示屏的亮屏时间以及亮屏次数来判断充电过程中用户是否使用电子设备。
内部存储器121可以用于存储计算机可执行程序代码,所述可执行程序代码包括指令。处理器110通过运行存储在内部存储器121的指令,从而执行电子设备100的各种功能应用以及数据处理。内部存储器121可以包括存储程序区和存储数据区。其中,存储程序区可存储操作系统,至少一个功能所需的应用程序(比如声音播放功能,图像播放功能等)等。存储数据区可存储电子设备100使用过程中所创建的数据(比如音频数据,电话本等)等。此外,内部存储器121可以包括高速随机存取存储器,还可以包括非易失性存储器,例如至少一个磁盘存储器件,闪存器件,通用闪存存储器(universal flash storage,UFS)等。
陀螺仪传感器180B可以用于确定电子设备100的运动姿态。在一些实施例中,可以通过陀螺仪传感器180B确定电子设备100围绕三个轴(即,x,y和z轴)的角速度。陀螺仪传感器180B可以用于拍摄防抖。示例性的,当按下快门,陀螺仪传感器180B检测电子设备100抖动的角度,根据角度计算出镜头模组需要补偿的距离,让镜头通过反向运动抵消电子设备100的抖动,实现防抖。陀螺仪传感器180B还可以用于导航,体感游戏场景。
磁传感器180D包括霍尔传感器。电子设备100可以利用磁传感器180D检测翻盖皮套的开合。在一些实施例中,当电子设备100是翻盖机时,电子设备100可以根据磁传感器180D检测翻盖的开合。进而根据检测到的皮套的开合状态或翻盖的开合状态,设置翻盖自动解锁等特性。
加速度传感器180E可检测电子设备100在各个方向上(一般为三轴)加速度的大小。当电子设备100静止时可检测出重力的大小及方向。还可以用于识别电子设备姿态,应用于横竖屏切换,计步器等应用。本申请中,电子设备100可以根据加速度传感器180E检测到加速度大小、重力大小的变化来进行横竖屏切换以及折叠屏的单屏显示与大屏显示切换。
在本申请实施例中,当电子设备检测到传感器采集到的数据(例如加速度传感器采集的加速度,陀螺仪采集到的角度)发生变化或者大于某一阈值时,电子设备认为当前用户在使用电子设备。若电子设备在对充电管控过程中检测到用户在使用电子设备,电子设备会重新预测第一时长和第二时长。
下面结合附图对本申请实施例提供的一种充电管控方法进行介绍。图3为本申请实施例提供的一种充电管控方法的流程示意图。请参见图3,本申请实施例提出的一种充电管控方法具体包括:
S101、电子设备检测到外部电源接入,获取第一数据。
电子设备可以通过图2中示出的充电管理模块140检测到是否有外部电源接入。外部电源通过充电器与电子设备连接。当电源管理模块接收到充电输入时,电子设备就开始获取第一数据。第一数据用于描述电子设备检测到外部电源接入时的充电场景。第一数据包括电子设备检测到外部电源接入时的时间(即电源管理模块接收到充电输入的时间)、电子设备与充电器连接时电池的电量(即电子设备100中电池142的电量)、电池循环次数、电池健康状态、以及充电器类型、传感器数据(例如加速度计和光传感器等)、亮灭屏信息、电子设备中设定的闹钟响铃时间、日历行程时间、待办事项时间、电子设备所处时区等等中的一种或者几种。下面以第一数据包括电子设备检测到外部电源接入时的时间、电子设备与充电器连接时电池的电量、以及充电器类型为例进行说明。
其中,电子设备可以通过图2中的电源管理模块141获取到电池的电量、电池循环次数,电池健康状态等参数。
充电器类型,可以由充电器的接口类型和输出功率区分。充电器的接口类型可以包括:Micro USB接口、USB Type C接口以及IOS系统手机的Lightning接口。充电器的输出功率可以为18W(即输出电压和电流分别为9V/2A)、10W(即输出电压和电流分别为5V/2A)、5W(即输出电压和电流分别为5V/1A)等等。充电器的输出功率不同时,充电器给电池充满电量的时间不一样。充电器的输出功率越大,充电器可以越快给电池充满电量。
电子设备充电的当前时间不一样,电子设备从与充电器连接到与充电器断开连接的时长不一样。可理解的,用户在白天时候和夜晚时候给电子设备充电的时长是不一样的。一般地,电子设备的充电过程的总时长在夜晚时候要比白天时候长。夜晚时候,用户睡前给电子设备插入充电器充电,到早上用户醒来后才会拔下充电器结束电子设备的充电。
电子设备充电时的当前电池的电量不同,电子设备电池充满电量的时间不一样。从而导致用户插入充电器后,拔下充电器的时间也不同。可理解地,电池的电量为20%时开始充电的总时长要比电池的电量为50%时开始充电的总时长要长一些。
S102、电子设备根据第一数据得到本次充电的第一时长和第二时长。
这里,电子设备可以存在第一充电模型第二充电模型。电子设备可以将第一数据输入到第一充电模型得到第一预测充电时长。第二充电模型输入第一预测充电时长后得到第一时长和第二时长,然后电子设备根据第一时长和第二时长对充电过程进行充电管控。第二时长的起始时间晚于或等于第一时长的截止时间。
在一种可能的实现方式中,该充电模型可以包括第一充电模型和第二充电模型。第一充电模型和第二充电模型可以为两个独立的神经网络,第一充电模型和第二充电模型也可以组成一个完整的神经网络。本申请实施例对此处不做限定。
这里,电子设备如何根据第一充电模型以及第二充电模型,得到第一时长和第二时长,参见下文中的描述,此处先不赘述。
S103、电子设备使用第一充电参数对电池进行充电。
具体地,电子设备可以通过图2示出的充电管理模块140为电池142进行充电。第一充电参数可以包括第一充电截止电压、第一充电输入功率中的一项或多项。这里,可以理解的是,当电池的电压达到充电截止电压时,电子设备可以停止对电池充电。第一充电截止电压可以是4.25V,也可以是其他值。第一充电功率可以是22.5W,即充电电压为4.5V,充电电流为5A,第一充电功率也可以是其他值。本申请实施例对第一充电截止电压、第一充电输入功率的具体数值不做限定。可以理解的,由于输入功率由输入电压和输入电流决定,因此第一充电参数还可以包括第一输入电压和第一输入电流。第一输入电压和第一输入电流任一项改变了,第一输入功率会随着改变。因此,在本申请实施例的下文中,以第一充电参数包含第一充电截止电压和第一充电输入功率为例进行说明。
S104、电子设备判断使用第一充电参数对电池进行充电的时间是否达到第一时长,若是,则执行步骤S105,若否,则继续执行步骤S103。
电子设备使用第一充电参数对电池进行充电的时间达到了第一时长。电子设备就调整充电参数对电池进行充电。若电子设备使用第一充电参数对电池进行充电的时间未达到充电时长,电子设备继续使用第一充电参数对电池进行充电。这里,在第一时长内,第一充电参数可以是恒定的,也可以是多套能够使得电子设备对电池快速充电的参数。这里不做限定。
S105、电子设备使用第二充电参数对电池进行充电。
电子设备使用第二充电参数对电池进行充电时,电子设备对电池进行慢充或停止对电池充电。电子设备以第二充电参数进行的充电效率要低于电子设备以第一充电参数进行充电的充电效率。第二充电参数可以包括第二充电截止电压、第二充电输入功率。这里第二充电截止电压小于第一充电截止电压。第二充电输入功率小于第一充电输入功率。本申请实施例对第二充电截止电压、第二充电速率以及第二充电输入功率的具体数值不做限定。可以理解的是,电子设备使用第二充电参数对电池进行充电包含两种情况。第一,电子设备对电池进行慢速充电。第二,电子设备停止对电池进行充电。
在本申请实施例中,充电效率越高的电子设备,将同一电池充到某一电量(例如,电量为100%)的时间越短。举例来说,电子设备以第一充电参数将电量为10%的电池充到电量为100%需要1小时。电子设备以第二充电参数将电量为10%的电池充到电量为100%需要3小时。可以理解的是,这里电子设备以第一充电参数对电池进行充电的充电时间仅为举例说明,对本申请实施例不构成限定。同样地,电子设备以第二充电参数对电池进行充电的充电时间仅为举例说明,对本申请实施例也不构成限定。
在一种可能实现的方式中,电子设备以第二充电参数对电池进行充电包括:当电子设备检测到第一事件时,电子设备停止以第二充电参数对电池进行充电,开始以第三充电参数对电池进行充电;电子设备以第三充电参数对电池进行充电时的充电效率高于电子设备以第二充电参数对电池进行充电时的充电效率;其中,第一事件包括电子设备的屏幕亮屏次数大于第一阈值、电子设备的屏幕亮屏时间大于第二阈值、电子设备的屏幕灭屏次数大 于第三阈值、电子设备的屏幕灭屏时间小于第四阈值、电子设备的功耗大于第五阈值中的一项或多项。
进一步地,开始以第三充电参数对电池进行充电,具体包括:在第三时长内,电子设备以所述第三充电参数对所述电池进行充电,在第四时长内,电子设备以第四充电参数对电池进行充电;电子设备以第三充电参数对电池进行充电时的充电效率高于所述电子设备以第四充电参数对电池进行充电时的充电效率,第三时长和所述第四时长由第二数据确定的;第二数据用于描述检测到第一事件时的充电场景。第二数据包括电子设备检测到第一事件时的时间、电子设备检测到第一事件时的剩余电量、充电器的类型。
这里,电子设备以第三充电参数对电池充电时的充电效率可以大于、等于、或小于电子设备以第一充电参数对电池充电时的充电效率。电子设备以第四充电参数对电池充电时的充电效率可以大于、等于、或小于电子设备以第二充电参数对电池充电时的充电效率。这里对第三充电参数和第四充电参数的具体大小不做限定。
在一个示例性的例子中,在电子设备使用第二充电参数对电池进行充电的过程中,电子设备检测到电子设备亮屏时间超过第一阈值(包括第一阈值)或者亮屏次数超过第二阈值(包括第二阈值),或者灭屏次数大于第三阈值(包括第三阈值)、灭屏时间小于第四阈值(包括第四阈值),则电子设备重新执行步骤S102,即电子设备再次预测第一时长和第二时长。当电子设备检测到电子设备在充电过程亮屏多次或者亮屏一段时间,说明用户在充电过程继续在使用电子设备。这个时候,电池在充电的时候也在放电,以维持电子设备中各个模块正常工作。若这时,电子设备还对电池进行慢充,那么电子设备中的电池的电量可能不够支持用户正常使用,或者,造成当用户拔下充电器时,电池的电量未充满。当电子设备检测到用户在电子设备使用第二充电参数对电池进行充电的过程中使用手机时,就根据用户具体使用情况重新预测出本次充电过程的第一时长和第二时长。这样,可以避免用户在使用电子设备,而电子设备一直处于对电池慢速充电或者停止对电池充电的过程。从而,导致电池的电量不足或者电子设备与充电器的连接断开后电池的电量未充满。
在本申请实施例中,亮屏时间是指,在电子设备充电过程中,电子设备解锁页面从无操作到屏幕自动熄灭的时间。灭屏时间是指,在电子设备充电过程中,电子设备的屏幕自动熄灭后到屏幕亮起的时间。亮屏次数是指在电子设备充电过程中亮屏的次数。灭屏次数是指在电子设备充电过程中灭屏的次数。
在另一个示例性的例子中,在电子设备使用第二充电参数对电池进行充电的过程中,若电子设备的充电位置在家或办公室。电子设备检测到电子设备中传感器的数据(例如,加速度传感器采集的加速度、陀螺仪传感器采集到的角度等等)发生改变或者大于阈值A时,则电子设备重新执行步骤S102,即电子设备再次预测电池充电的第一时长和第二时长。当电子设备中加速度传感器采集到的加速度、陀螺仪传感器采集到陀螺仪的角度发生变化时,可认为电子设备不是处于静止状态。即可认为用户正在使用电子设备。这个时候,电池在充电的时候也在放电,以维持电子设备中各个模块正常工作。若这时,电子设备还对电池进行慢充,那么电子设备中的电池的电量可能不够支持用户正常使用,或者,造成当用户拔下充电器时,电池的电量未充满。当电子设备检测到用户在在电子设备使用第二充电参数对电池进行充电的过程中使用手机时,就根据用户具体使用情况重新预测出本次充 电过程的第一时长和第二时长。这样,可以避免用户使用电子设备时,电子设备一直处于对电池慢速充电或者停止对电池充电的过程。从而,导致电池的电量不足或者电子设备与充电器的连接断开后电池的电量未充满。
在又一个示例性的例子中,当电子设备检测到电子设备中的功耗大于阈值B时,则电子设备重新执行步骤S102,即电子设备再次预测第一时长和第二时长。当电子设备的功耗大于阈值B时,电子设备处于工作状态,即用户正在使用电子设备。这个时候,电池在充电的时候也在放电,以维持电子设备中各个模块正常工作。若这时,电子设备还对电池进行慢充,那么电子设备中的电池的电量可能不够支持用户正常使用,或者,造成当用户拔下充电器时,电池的电量未充满。当电子设备检测到用户在电子设备使用第二充电参数对电池进行充电的过程中使用手机时,就根据用户具体使用情况重新预测出本次充电过程的第一时长和第二时长。这样,可以避免用户使用电子设备时,电子设备一直处于对电池慢速充电或者停止对电池充电的过程。从而,导致电池的电量不足或者电子设备与充电器的连接断开后电池的电量未充满。
S106、电子设备使用第二充电参数对电池进行充电的时间是否到达第二时长,若是,则执行步骤S107,若否,则继续执行步骤S105。
若电子设备使用第二充电参数对电池进行充电的时间达到了第二时长。则电子设备重新使用第一充电参数对电池进行充电。若电子设备使用第二充电参数对电池进行充电的时间未达到第二时长,则电子设备继续使用第二充电参数对电池进行充电。
S107、电子设备继续使用第一充电参数对电池进行充电。
可以理解的是,第一充电参数和第二充电参数都不是固定的值。不同用户的电子设备中国的第一充电参数和第二充电参数可以不一样。
在一种可能的实现方式中,步骤S107可以为电子设备使用第五充电参数对电池进行充电。第五充电参数可以与第一充电参数相同或不同。电子设备以第五充电参数对电池充电的充电效率可以比电子设备以第一充电参数充电的充电效率更高。电子设备以第五充电参数对电池充电的充电效率也可以小于电子设备以第一充电参数充电的充电效率,但是大于电子设备以第二充电参数充电的充电效率。第五充电参数也可以与白天(例如,以24小时计,从早上7:00到晚上22:00之间的时段,为白天时段)对电池进行充电时的充电参数相同,本申请实施例对第五充电参数的具体数值不做限定。
在本申请实施例中,电子设备可以执行步骤S107,也可以不执行步骤S107。举例来说,若用户在晚上11点开始充电,电子设备预测出用户在第二天早上7点半结束充电。用户实际上8点钟才断开电子设备与外部电源之间的连接。那么电子设备在7点半到8点执行步骤S107。若用户实际7点就断开了电子设备与外部电源之间的连接,那么7点的时候,电子设备还在以第二充电时长对电池进行充电。当断开电子设备与外部电源之间的连接后,电子设备直接执行步骤S108,停止对电池进行充电。电子设备不执行步骤S107。
S108、电子设备检测到电子设备与外部电源断开连接,停止对电池充电。
当用户拔下充电器时,电子设备与外部电源的连接断开,电子设备停止接收外部电源的充电输入。电子设备停止对电池充电。
进一步地,在电池充电结束后,电子设备可以记录本次充电过程中实际的第一时长和 第二时长。可以理解的是,用户可能在电子设备使用第一充电参数对电池进行充电的过程中拔下充电器。那么,这种情况下,实际的第一时长小于或等于第一时长。实际的第二时长等于0。电子设备使用本次充电过程中实际的第一时长和第二时长来调整第二充电模型中的参数(例如,第二充电模型为神经网路时,该神经网络的学习率,权重变化率等等),以使得第二充电模型输出的第一时长和第二时长更精确,更符合该用户的充电习惯。从而可以更好进行充电管控。这样,可以减少该用户在电子设备中电池充电过程中电池处于满电状态下继续充电的情况出现。
在一种可能的实现方式中,本申请实施例提供的方法,还包括:电子设备根据第一数据得到本次充电的第一时长和第二时长之前,电子设备获取到闹钟时间或者日历行程中的待办事项时间。则电子设备以闹钟时间或待办事项时间为本次充电的结束时间。电子设备不再根据第一数据预测本次充电的第一时长和第二时长。举例来说,若用户晚上10点开始给电子设备插入充电器进行充电。并且用户定了明天早上6点的闹钟。当电子设备检测到闹钟信息,电子设备直接将明早6点作为用户拔下充电器结束充电时间。这个时候,电子设备不再执行步骤S102--步骤S108。电子设备可以在电池的电量充到某一个阈值时停止充电,然后在闹钟时间之前的一段时间继续充电,直到用户拔下充电器结束充电;也可以,将第一时长设定为某一固定值,电子设备对电池进行充电,到达第一时长,停止充电,然后在闹钟时间之前的一段时间继续充电,直到用户拔下充电器结束充电;也可以将第一时长设定为某一固定值,电子设备以第一充电参数对电池进行充电,到达第一时长,电子设备改为以第二充电参数对电池进行充电,然后在闹钟时间之前的以第三充电参数或者第一充电参数继续充电,直到用户拔下充电器结束充电。
在一种可能的实现方式中,电子设备检测到与充电器连接,电子设备获取到用户预设时间点,预设时间点包括闹钟响铃时间、待办事项提醒时间点;电子设备对电池进行快充,充到电池的电量达到第一阈值(例如70%)时,电子设备开始对电池进行慢充,一直慢充,直到到达预设时间点,用户拔电充电器,电子设备停止对电池进行充电。若用户不拔下充电器,那么电子设备可以处于继续充电状态,也可以停止充电状态。
在另一种可能的实现方式中,电子设备检测到与充电器连接,电子设备获取到用户预设时间点,预设时间点包括闹钟响铃时间、待办事项提醒时间点、日历中的提醒时间点、备忘录中的提醒时间点;电子设备对电池进行快充,充到电池的电量达到第一阈值(例如70%)时,电子设备开始对电池进行慢充或停止对电池充电。到第一时间点时,电子设备继续对电池进行快充,直到到达预设时间点后用户拔掉充电器,电子设备停止对电池进行充电。
进一步地,在一种可能的实现方式中,当用户设定的闹钟响铃时间有多个时,电子设备以最早的闹钟响铃时间作为电子设备结束充电的时间点。举例来说,用户设定了早上6:00、6:30、以及6:45三个闹铃响铃时间点。当电子设备在晚上11点进行充电时,电子设备会在早上6:00结束充电(整个充电过程中用户未与外部电源断开连接)。
进一步地,在另一种可能的实现方式中,当用户设定的闹钟响铃时间有多个时,电子设备根据学习用户最多在第一闹钟响铃时间与外部电源断开连接,那么电子设备将第一闹 钟响铃时间作为电子设备结束充电的时间。举例来说,用户设定了早上6:00、6:30、以及6:45三个闹铃响铃时间点。电子设备根据学习获知用户通常在6:30断开电子设备与外部电源之间的连接。那么,第一闹钟响铃时间为早上6:30。即当电子设备在晚上11点进行充电时,电子设备会在早上6:30结束充电(整个充电过程中用户未与外部电源断开连接)。
可以理解的,上述设定的闹钟响铃时间在外部电源接入后的第一时间段内。第一时间段可以是外部电源接入后(从外部电源接入时开始计时)的10个小时内、或12个小时内的闹钟响铃时间,第一时间段内可以是10个小时内,也可以是12个小时内,也可以是16个小时等等。此处具体不做限制。以第一时间段为12小时为例,用户在2020年3月1日晚上11点开始给电子设备接入外部电源进行充电。若电子设备中设定的闹钟在2020年3月2日上午11点之前(例如2020年3月2日早上7点的闹钟),那么电子设备不执行步骤S101-步骤S108,电子设备根据白天充电参数将电池电量充到80%后停止充电,到闹钟响铃时间前半个小时,即2020年3月2日早上6点半又开始根据白天充电参数对电池进行充电。若电子设备中设定的闹钟在2020年3月2日上午11点之后(例如2020年3月3日早上7点),则电子设备按照步骤S101-步骤S108对电池进行充电。
这样,根据用户的具体计划(如起床闹钟)来进行电池充电。可以减少用户在拔下充电器结束充电时电池的电量未充满的情况。
在一种可能的实现方式中,电子设备获取当前时间,若当前时间为预设时间段的时间,电子设备才执行步骤S101-步骤S108,即对充电过程进行管控。举例来说,若预设时间为夜间时段,例如晚上11点到早上6点这个时间段。当用户在白天6点到晚上11点中间(如4月26日早上6点到4月26日晚上11点之间)对电子设备接入外部电源接入进行充电时,电子设备不进行充电管控。只有用户在晚上11点到第二天早上6点(如4月26日晚上11点到4月27日早上6点之间)这个时间段内为电子设备充电时,电子设备才对充电过程进行管控。对于夜间时段,也可以是其他的时段,如晚20点至次日早5点,本申请不进行限定。对于预设时间,用户可以用户自己通过电子设备的用户界面进行设定且可以进行修改;也可以电子设备在出厂时预先配置,用户无法修改。对于预设时间,本申请不进行限定。
上述夜间时段内,第一充电参数可以与白天时段内的充电参数相同,不进行特殊设定,也可以与白天时段内的充电参数不相同。上述夜间时段内,第二充电参数可以是停止充电时的充电参数,也可以是慢充状态的充电参数。上述夜间时段内,第三充电参数可以与第一充电参数相同,也可以是与白天时段内的充电参数相同。
在一种可能的实现方式中,电子设备以第二充电参数对电池进行充电的截止时间为第一预设时间。举例来说,第一预设时间为早上5点半。电子设备预测的第二时长是从早上1点到早上7点才结束。但电子设备在早上5点半就停止以第二充电时长对电池进行充电。
在一种可能的实现方式中,电子设备获取的时间为预设时间段内的时间,且电子设备预测出的第一时长与第二时长不小于4小时,电子设备才会按照预测的第一时长和第二时长对充电过程进行充电管控,也就是,电子设备才执行步骤S101-步骤S108,即对充电过程进行管控。
下面详细介绍具体如何实现步骤S102,即电子设备如何根据第一数据得到第一时长和第二时长。
进一步地,在一种可能的实现方式中,第一充电模型可以是手机厂商的研发人员采集到多个用户的开始充电到结束充电的实际充电时长,以及开始充电时的时间,开始充电时的电池的电量、结束充电的电池的电量、所处时区、等数据训练得到。第一充电模型的训练数据中的输入为电子设备检测到外部电源接入时的时间和电子设备检测到外部电源接入时的剩余电量、所处时区、一周内充电平均时长、电池电量、电子设备功耗、传感器采集的数据(例如加速度传感器采集的加速度等)以及充电器的类型、充电的时间是否为节假日等等。第一充电模型的训练数据中的输出是实际充电时长。然后,电子设备可以根据第一充电模型输出的预测充电时长和实际充电时长之间的差值来调整第一充电模型。这样可以使得第一充电模型输出的预测充电时长更接近实际充电时长。电子设备可以根据预测充电时长和实际充电时长之前的差值、到达预测充电时长时电池的电量与实际充电结束时电池的电量来评估第一充电模型的置信度。举例来说,假设手机厂商采集到的数据中,多个用户从早上10点开始插入充电器给电子设备充电,开始充电时电池的电量是20%,1小时后结束充电,结束充电时电子设备的电池的电量为100%。通过这些数据训练的第一充电模型,当接收到充电开始时间为早上10点,开始充电时电池的电量为20%时,第一充电模型会输出11点结束充电,或者输出预测充电时长为1小时。
在一个示例性的例子中,第一充电模型可以通过基于GRU(Gated Recurrent Unit,门控循环单元)神经网络实现。在本申请实施例中,第一充电模型也可以通过其他神经网络或算法实现,此处不做限定。
在一种可能的实现方式中,在电子设备执行步骤S101之前,电子设备采集具体用户的历史充电数据训练第二充电模型。
在一种可能的实现方式中,第二充电模型是根据具体用户的充电历史数据和第一充电模型输出的预测充电时长训练得到。具体用户的充电历史数据可以包含具体用户一段时间内多次充电过程中的电子设备检测到外部电源接入时的时间、实际充电时长、以及电子设备连接充电时电池的电量等等。第二充电模型的训练数据中的输入为具体用户的历史充电数据输入到第一充电模型后得到的预测充电时长。第二充电模型的训练数据中的输出为第一充电时长和第二充电时长。第一充电时长的初始值等于实际充电时长。第二充电时长的初始值等于0。由于这样训练出来的第二充电模型输出的第一时长会无限接近实际充电时长,而第二时长无限接近0。在用户使电子设备长时间对电池充电时,第二时长的值应该大一些,这样,可以使电池满电状态下的充电时长短一些。但是,第二时长如果太长,会导致充电结束时电池的电量未充满。为了既保证电子设备对满电状态下的电池充电的时间短一些,又保证充电结束时电池的电量充满,本申请对利用第一修正量对训练数据中的第一充电时长和第二充电时长进行修正。第一充电时长由具体用户的实际充电时长减去第一修正量得到的;第二充电时长等于第一修正量。第一修正量根据第一充电模型的置信度确定。
在一种可能的实现方式中,第二充电模型的训练过程可以如下:
①首先,电子设备将具体用户的一组充电历史数据(电子设备检测到外部电源接入时的时间为t1,以及电子设备检测到外部电源接入时的剩余电量、充电器类型)输入到第一充电模型中,该组历史数据中,电子设备停止对电池充电的时间为t2,实际充电时长为t2-t1。 第一充电模型得到第二预测充电时长。第二充电模型的输出为第一充电时长为t(第一)和第二充电时长t(第二)。t(第一)的初始值为t2-t1,t(第二)的初始值为0。
②电子设备将第二预测充电时长输入到第二充电模型中,得到t(第一)和t(第二)。即t(第一)和t(第二)为第二充电模型的输出。由于这样训练出来的第二充电模型输出的第一时长会无限接近实际充电时长,而第二时长无限接近0。但是我们需要第二模型输出的第二时长数值大一些,第一时长的数值小一些。这样,才能保证充电过程中电池处于满电状态下充电的时长短一些。但是,第二时长的数值也不能过于大,这样,会导致结束充电时电池的电量未充满。所以需要修正第二充电模型的训练数据。这样,训练出的第二充电模型输出的第一时长和第二时长能够使得电子设备给满电状态下的电池充电的时间尽可能短。并且,使得充电结束时,电量已充满。
这里,根据电子设备可以根据第一充电模型得到的收益率、误报率以及置信度可以得到第一修正量f-delta,该第一修正量用于修正t(第一)和t(第二)。
③第二充电模型的训练数据中修正后的输出为第一充电时长t1(第一)和第二充电时长t1(第二):
t1(第一)=t(第一)-f-delta
t1(第二)=t(第二)+f-delta
其中,第一修正量取决于第一充电模型的置信度以及具体用户的电子设备检测到外部电源接入时电池参数。修正函数随着置信度的增长而增长,但是修正函数增长到某一个值后会收敛。置信度度越高,第一时长越短,第二时长越长。
进一步地,在一种可能的实现方式中,若f-delta小于某一阈值,则无需对第一充电时长和第二充电时长进行修正。
可理解地,由于每个用户的充电行为可能不一样,那么每个用户电子设备中的第二充电模型的参数可能不同。因此,对于相同的充电开始时间以及开始充电时电池的电量,但不同用户电子设备中的第二充电模型输出的第一时长和第二时长不同。这样,更符合每个用户的充电习惯,能够对每个用户的充电过程进行更好的充电管控。
在一种可能的实现中,第一充电模型和第二充电模型存在于电子设备厂商提供的云服务器(例如华为云)中。用户的电子设备中登录云服务账号,云服务器采集训练数据来训练第一充电模型和第二充电模型。用户每次开始充电时,电子设备讲过采集到的第一数据发送给云服务器。云服务器中的第一充电模型和第二充电模型得到第一时长和第二时长后发送给电子设备。这样,电子设备不用保存第一充电模型和第二充电模型,可以节约电子设备内存空间。
在一种可能的实现方式中,第一充电模型和第二充电模型存在于用户的电子设备中,这样,避免用户在没有连接网络的时候进行充电,获取不到充电模型预测出的本次充电的第一时长和第二时长。
在一种可能的实现方式中,用户电子设备的充电历史数据还包括充电的位置信息,例如家里、办公室还是室外等等信息。在不同的场所中,用户给电子设备插入充电器开始充电到结束充电的总时长不同。结合不同的位置信息训练第二充电模型,可以使得第二充电模型输出的第一时长和第二时长更符合用户充电习惯,从而能够更好地对电子设备中电池 的充电过程进行管控。
在一种可能的实现方式中,第一时长由第一充电模型输入第一数据后得到。第二时长根据第一时长、传感器不工作的时长以及灭屏时长计算出来的。
本申请实施例提出了一种充电管控方法。该方法具体包括:首先,电子设备可以根据用户历史充电数据,学习训练出充电模型。当电子设备检测到连接充电器时,该充电模型可以预测出本次充电的第一时长和第二时长。若电子设备使用第一充电参数对电池进行充电的时长达到了第一时长。电子设备使用第二充电参数对电池进行充电。若电子设备使用第二充电参数对电池进行充电的时长达到了第二时长,电子设备重新使用第一充电参数对电池进行充电。最后,电子设备检测到电子设备与充电器的连接断开,便停止对电池充电。这样,在电子设备充电过程中,可以更好地对每个用户的电子设备进行充电管控,以及可以减少每个用户的电子设备中的电池在满电状态下继续充电的时长。
为了便于更好地解释本申请实施例提供的一种充电管控方法。本申请实施例示例性地示出了不同场景下电子设备对电池进行充电管控的用户界面示意图。
图4示出了用户A的电子设备对电池进行充电的用户界面示意图。图4示出的用户界面400中,用户界面400可包括:移动通信信号(又可称为蜂窝信号)的一个或多个信号强度指示符401-1、移动通信信号的运营商的指示符401-2、时间指示符401-3和402、电池状态指示符401-4、天气指示符403以及充电状态指示符404。充电状态指示符中可以显示电子设备正在对电池进行充电、电子设备检测到外部电源接入时的剩余电量(例如图4中示出的“10%”)以及充电剩余时间提示(例如图4中示出的提示文字“充电剩余时间1小时30分钟”)。从图中可以看出,用户A在早上8:08时给电子设备连接上充电器,电子设备检测到外部电源接入时的剩余电量为10%。电子设备预测出本次充电时长为1小时30分钟。
图5A示出了用户A的电子设备对电池进行充电的用户界面示意图。用户界面500-1可以包括:移动通信信号(又可称为蜂窝信号)的一个或多个信号强度指示符501-1、移动通信信号的运营商的指示符501-2、时间指示符501-3和502、电池状态指示符501-4、天气指示符503以及充电状态指示符504。充电状态指示符中可以显示电子设备正在对电池进行充电、电子设备检测到外部电源接入时的剩余电量(例如图5A中示出的“10%”)以及充电剩余时间提示(例如图5A中示出的提示文字“充电剩余时间10小时”)。在图5A示出的充电场景中,用户A在晚上21:00(具体时间为2月10号、星期一晚上21:00)时给电子设备连接上充电器,电子设备检测到外部电源接入时的剩余电量为10%。这时,电子设备预测出本次充电时长为10小时。
对比图4和图5A,可以看出,电子设备检测到外部电源接入时的剩余电量相同。但是电子设备检测到外部电源接入时的时间不一样。电子设备预测出的充电时长就不一样了。白天,预测出的充电时长短,晚上预测出的充电时长更长。白天的时候,用户一般在电池的电量充到100%后会及时拔下充电器。晚上由于用户在睡觉,不会及时拔下充电器。因此,不是的时间场景下,预测出的充电时长不同。这样,更符合用户的充电习惯。
图5B示出用户A的电子设备对电池进行充电的用户界面示意图。用户界面500-2可 以包括:移动通信信号(又可称为蜂窝信号)的一个或多个信号强度指示符501-1、移动通信信号的运营商的指示符501-2、时间指示符501-3和502、电池状态指示符501-4、天气指示符503以及充电状态指示符504。充电状态指示符中可以显示电子设备正在对电池进行充电、电子设备检测到外部电源接入时的剩余电量(例如图5B中示出的“10%”)以及充电状态提示(例如图5B中示出的提示文字“快速充电中”)。图5A中示出的充电场景与图5B中示出的充电场景相同,此处不再赘述。这里,充电状态指示符中可以不显示充电剩余时间,而是显示电子设备对电池是快速充电还是慢速充电。本申请实施例对充电状态指示符中具体显示的内容不做限定。
图5C示出用户A的电子设备对电池进行充电的用户界面示意图。图5C中示出了电子设备将电池的电量从用户界面500-2中示出的10%充电到了用户界面500-3中示出的70%。用户界面500-3中充电状态指示符504中显示提示文字“慢速充电中”。这时电子设备开始对电池进行慢速充电。此时电子设备显示的时间时晚上22:00。可理解的是,当电子设备从快速充电状态变为慢速充电状态时,电子设备可以亮屏显示几秒钟,然后灭屏。
图5D示出用户A的电子设备对电池进行充电的用户界面示意图。图5D中示出了电子设备将电池的电量从用户界面500-3中示出的70%充电到了用户界面500-4中示出的90%。用户界面500-4中充电状态指示符504中显示提示文字“快速充电中”。这时电子设备对电池进行慢速充电。此时电子设备显示的时间时2月11号、星期二早上6:40。
图5E示出用户A的电子设备对电池进行充电的用户界面示意图。图5E中示出了电子设备将电池的电量从用户界面500-4中示出的90%充电到了用户界面500-5中示出的100%。用户界面500-5中充电状态指示符504中显示提示文字“充电完成”,此时电池的电量为100%,电子设备显示时间为2月11号、星期二早上7:00。也就是本次电子设备将电子从电量10%充到100%用了10个小时。
可理解的是,当电子设备充电状态发生变化(例如,从快速充电状态变为慢速充电状态,从慢速充电状态变为快速充电状态)或者电子设备给电池的电量充到100%时,电子设备可以亮屏显示几秒钟,然后灭屏。
可选地,图5F示出用户A的电子设备对电池进行充电的用户界面示意图。用户界面中500-6中可以显示设定闹钟提示符501-5。设定闹钟提示符501-5表明用户设定了闹钟。示例性的,用户设定了2月11日,星期二早上7:00的闹钟。电子设备显示时间为2月11日,星期二早上7:00,电子设备开始显示闹钟提示505,以及播放闹钟响铃。用户可以通过控件506关闭闹钟响铃。
图6A-图6E为本申请实施例提供的用户B的电子设备对电池进行充电的用户界面示意图。图6A与图5A示出的用户A的充电场景一样,用户B也是从晚上21:00开始给电子设备连接到充电器。电子设备检测到外部电源接入时的剩余电量为10%。但是,由于用户A和用户B的充电习惯不一样。用户A更多时候是早上7点左右起床,拔下充电器。而用户B是早上6点40左右起床,拔下充电器。因此,用户B的电子设备预测出的充电剩余时间(例如,图6A中示出的“充电剩余时间9小时36分钟”)和用户A的电子设备预测出的充电剩余时间(例如图5A中示出的“充电剩余时间10小时”)不一样。这样,更符合用户的个人习惯。
图6B示出了用户B的电子设备对电池进行充电的用户界面示意图。电子设备的用户界面中充电状态提示符也可以如用户界面600-2中的充电状态提示符604所示。充电状态提示符可以提示电子设备正在对电池进行快速充电。
图6C示出了用户B的电子设备对电池进行充电的用户界面示意图。图6C中示出了电子设备将电池的电量从用户界面600-2中示出的10%充电到了用户界面600-3中示出的78%。用户界面600-3显示用户B的电子设备中显示时间为2月10号、星期一晚上22:15时,电池的电量为78%时,电子设备对电池进行慢速充电。与用户A的电子设备相比,用户B的电子设备对电池进行慢速充电的时间不同。
图6D示出了用户B的电子设备对电池进行充电的用户界面示意图。图6D中示出了电子设备将电池的电量从用户界面600-3中示出的78%充电到了用户界面600-4中示出的92%。用户界面600-4中充电状态指示符604中显示提示文字“快速充电中”。这时电子设备对电池进行慢速充电。此时电子设备显示的时间时2月11号、星期二早上6:20。
图6E示出了用户B的电子设备对电池进行充电的用户界面示意图。图6E中示出了电子设备将电池的电量从用户界面600-4中示出的92%充电到了用户界面600-5中示出的100%。用户界面600-4显示用户B的电子设备中时间为2月11号、星期二早上6:36时,电子电量为100%。电子设备完成对电池的充电。与用户A的电子设备相比,用户B的电子设备将电池的电量从10%充到100%需要的时间短一些。电子设备可以根据具体用户来预测充电时长、第一时长和第二时长。这样,更能符合用户习惯,从而提升了用户体验。
图7示出了电子设备对电池进行充电时用户使用电子设备的用户界面示意图。如用户界面700-1所示,此时,电池的电量为60%,电子设备对电池进行慢速充电。若这个时候,如用户界面700-2所示,用户打开游戏应用玩游戏。那么电子设备会重新确定对电池进行快速充电和慢速充电的时长。电子设备可以从慢速充电状态变为快速充电状态。如用户界面700-2所示,用户界面中显示充电提示框705,提示框705中可以显示提示文字,如“当前电量60%,快速充电中”。提示框705中还可以显示控件705-1,用户可以通过控件705-1关掉提示框705。
所属领域的技术人员可以清楚地了解到,为描述的方便和简洁,上述描述的系统、装置和单元的具体工作过程,可以参考前述方法实施例中的对应过程,在此不再赘述。
在本申请所提供的几个实施例中,应该理解到,所揭露的系统、装置和方法,可以通过其它的方式实现。例如,以上所描述的装置实施例仅仅是示意性的,例如,所述单元的划分,仅仅为一种逻辑功能划分,实际实现时可以有另外的划分方式,例如多个单元或组件可以结合或者可以集成到另一个系统,或一些特征可以忽略,或不执行。另一点,所显示或讨论的相互之间的耦合或直接耦合或通信连接可以是通过一些接口,装置或单元的间接耦合或通信连接,可以是电性,机械或其它的形式。
所述作为分离部件说明的单元可以是或者也可以不是物理上分开的,作为单元显示的部件可以是或者也可以不是物理单元,即可以位于一个地方,或者也可以分布到多个网络单元上。可以根据实际的需要选择其中的部分或者全部单元来实现本实施例方案的目的。
另外,在本申请各个实施例中的各功能单元可以集成在一个处理单元中,也可以是各 个单元单独物理存在,也可以两个或两个以上单元集成在一个单元中。
所述功能如果以软件功能单元的形式实现并作为独立的产品销售或使用时,可以存储在一个计算机可读取存储介质中。基于这样的理解,本申请的技术方案本质上或者说对现有技术做出贡献的部分或者该技术方案的部分可以以软件产品的形式体现出来,该计算机软件产品存储在一个存储介质中,包括若干指令用以使得一台计算机设备(可以是个人计算机,服务器,或者网络设备等)或处理器(processor)执行本申请各个实施例所述方法的全部或部分步骤。而前述的存储介质包括:U盘、移动硬盘、ROM、RAM、磁碟或者光盘等各种可以存储程序代码的介质。
以上所述,以上实施例仅用以说明本申请的技术方案,而非对其限制;尽管参照前述实施例对本申请进行了详细的说明,本领域的普通技术人员应当理解:其依然可以对前述各实施例所记载的技术方案进行修改,或者对其中部分技术特征进行等同替换;而这些修改或者替换,并不使相应技术方案的本质脱离本申请各实施例技术方案的范围。

Claims (20)

  1. 一种充电管控方法,其特征在于,包括:
    响应于检测到外部电源接入,电子设备获取第一数据,其中,所述第一数据用于表征所述电子设备检测到所述外部电源接入时的状态;
    响应于检测到所述外部电源接入,所述电子设备开始充电;
    所述电子设备根据所述第一数据确定第一时长和第二时长,其中,所述第一时长用于表征所述电子设备以第一充电参数进行充电的预测充电时长,所述第二时长用于表征所述电子设备以第二充电参数进行充电的预测充电时长;
    所述电子设备根据所述第一充电参数进行充电,充电时间为第一实际充电时长,所述第一实际充电时长用于表征所述电子设备以所述第一充电参数进行充电的实际充电时长;
    当所述第一实际充电时长等于所述第一时长时,所述电子设备根据所述第二充电参数进行充电,充电时间为第二实际充电时长,所述第二实际充电时长用于表征所述电子设备以所述第二充电参数进行充电的实际充电时长;
    其中,所述电子设备以所述第一充电参数进行充电时的充电效率高于所述电子设备以所述第二充电参数进行充电时的充电效率。
  2. 根据权利要求1所述的方法,其特征在于,所述电子设备根据所述第二充电参数进行充电,充电时间为第二实际充电时长之后,所述方法还包括:
    当所述第二实际充电时长等于所述第二时长时,所述电子设备根据所述第一充电参数进行充电。
  3. 根据权利要求1所述的方法,其特征在于,所述第一数据包括所述外部电源接入的时间、所述电子设备检测到外部电源接入时的剩余电量、充电器的类型、所述电子设备的所处时区、所述电子设备的亮灭屏信息、所述电子设备中设定的闹钟响铃时间、所述电子设备中设定的待办事项提醒时间点、所述电子设备的传感器数据中的一种或多种。
  4. 根据权利要求1-3任一项所述的方法,其特征在于,所述第一数据包括所述外部电源接入时的时间,所述外部电源接入时的时间在夜间时间段内。
  5. 根据权利要求4所述的方法,其特征在于,所述夜间时间段为23:00-6:00。
  6. 根据权利要求1-5任一项所述的方法,其特征在于,所述方法还包括:
    响应于检测到第一事件,所述电子设备停止根据所述第二充电参数进行充电,开始根据第三充电参数进行充电;所述电子设备以所述第三充电参数进行充电时的充电效率高于所述电子设备以所述第二充电参数进行充电时的充电效率;
    其中,所述第一事件包括所述电子设备的亮屏次数大于第一阈值、所述电子设备的亮屏时间大于第二阈值、所述电子设备的灭屏次数大于第三阈值、所述电子设备的灭屏时间 小于第四阈值、所述电子设备的功耗大于第五阈值、所述电子设备启动或者使用视频应用、所述电子设备启动或者使用游戏应用中的一项或多项。
  7. 根据权利要求6所述的方法,其特征在于,所述开始根据所述第三充电参数进行充电,具体包括:
    所述电子设备根据所述第三充电参数进行充电,充电时间为第三实际充电时长,所述第三实际充电时长用于表征所述电子设备以所述第三充电参数进行充电的实际时间;
    当所述第三实际充电时长等于所述第三时长时,所述电子设备根据第四充电参数进行充电,充电时间为第四实际充电时长;所述第三时长用于表征所述电子设备以所述第三充电参数进行充电的预测充电时长,所述第四实际充电时长用于表征所述电子设备以所述第四充电参数进行充电的实际充电时长;
    其中,所述电子设备以所述第三充电参数进行充电的充电效率高于所述电子设备以所述第四充电参数进行充电的充电参数;
    其中,所述第三时长由第二数据确定的,所述第二数据用于表征所述电子设备检测到所述第一事件时的状态。
  8. 根据权利要求7所述的方法,其特征在于,所述第二数据包括所述电子设备检测到所述第一事件时的时间、所述电子设备检测到所述第一事件时的剩余电量、所述充电器的类型、所述电子设备的所处时区、所述电子设备的亮灭屏信息、所述电子设备中设定的闹铃时间、所述电子设备中设定的待办事项时间、所述电子设备的传感器数据中的一种或多种。
  9. 根据权利要求1-8任一项所述的方法,其特征在于,所述方法还包括:
    响应于检测到第二事件,所述电子设备根据所述第一充电参数进行充电,所述第二事件用于表征所述电子设备记录的用户预设时间;
    当所述电子设备的剩余电量充电到第一阈值时,所述电子设备根据所述第二充电参数进行充电;
    当充到第一时间时,所述电子设备根据第五充电参数进行充电,所述第一时间为所述用户预设时间前的时间。
  10. 根据权利要求9所述的方法,其特征在于,所述第二事件包括所述电子设备中设定的闹钟响铃时间、备忘录设定提醒时间点、日程安排设定时间点、待办事项提醒时间点中的一项或多项。
  11. 根据权利要求1-10任一项所述的方法,其特征在于,所述电子设备根据所述第二充电参数进行充电具体包括:
    所述电子设备根据所述第二充电参数进行充电或停止充电。
  12. 根据权利要求1-11任一项所述的方法,其特征在于,所述第一充电参数包括第一充电截止电压、第一充电输入功率;所述第二充电参数包括第二充电截止电压、第二充电输入功率;所述第一充电截止电压大于所述第二充电截止电压;所述第一充电输入功率大于所述第二充电输入功率。
  13. 根据权利要求1-12任一项所述的方法,其特征在于,所述第三充电参数、所述第五充电参数与所述第一充电参数相同;所述第四充电参数与所述第二充电参数相同。
  14. 根据权利要求1-13任一项所述的方法,其特征在于,所述第一时长与所述第二时长的和不小于第六阈值。
  15. 根据权利要求1-14任一项所述的方法,其特征在于,所述电子设备根据所述第一充电参数进行充电,充电时间为第一实际充电时长之前,还包括:
    所述电子设备确定在所述外部电源接入后的第一时间段内所述电子设备中未设定闹钟、在23:00-6:00时段内所述外部电源为接入状态,且所述第一时长与所述第二时长之和大于4小时;
    所述电子设备根据所述第一充电参数进行充电,充电时间为第一实际充电时长,具体包括:
    所述电子设备确定在所述外部电源接入后的第一时间段内所述电子设备中设定闹钟,则所述电子设备根据所述第一充电参数进行充电,直到所述电子设备的剩余电量为80%;所述电子设备停止充电;
    若所述电子设备的剩余电量充到80%的时间早于所述闹钟响铃时间到达前半个小时,在所述闹钟响铃时间到达前半个小时,所述电子设备根据所述第一充电参数进行充电,充电到所述闹钟响铃时间。
  16. 根据权利要求15所述的方法,其特征在于,所述电子设备根据所述第二充电参数进行充电,充电时间为第二实际充电时长,还包括:
    若所述第二实际充电时长小于所述第二时长,所述电子设备获取到所述电子设备的所处时区的时间为6:00,则所述电子设备停止根据所述第二充电参数进行充电。
  17. 根据权利要求1-16任一项所述的方法,其特征在于,所述电子设备根据所述第一数据确定第一时长和第二时长,包括:
    所述电子设备将第一预测充电时长输入到第二充电模型中得到所述第一时长和所述第二时长;所述第一预测充电时长是所述电子设备根据所述第一数据确定的;所述第二充电模型的训练数据包括第二输入数据和第二输出数据;
    其中,所述第二输入数据包括第二预测充电时长,所述第二预测充电时长是根据第一用户的第一历史充电数据确定的;所述第一历史充电数据包括所述电子设备开始对所述电池进行充电的时间、所述电子设备开始对所述电池进行充电时所述电池的电量、所述充电 器的类型、所述电子设备对所述电池进行充电的实际充电时长、所处时区、一周内充电平均时长、电子设备功耗、传感器信息充电的时间是否为节假日中一种或多种;
    其中,所述第二输出数据包括第一充电时长和第二充电时长,所述第一充电时长由所述第一用户的所述实际充电时长减去第一修正量得到的;所述第二充电时长等于所述第一修正量;所述第一修正量是根据第一充电模型的置信度确定的。
  18. 根据权利要求17所述的方法,其特征在于,所述第二预测充电时长是根据第一用户的第一历史充电数据确定的,具体包括:所述第二预测时长是所述电子设备将所述第一历史数据输入到所述第一充电模型中计算得到的;所述第一充电模型的训练数据包括第一输入数据和第二输入数据,所述第一输入数据包括多个用户的第二历史充电数据;
    其中,所述第二历史充电数据包括所述电子设备开始对所述电池进行充电的时间、所述电子设备开始对所述电池进行充电时所述电池的电量、所述充电器的类型、所述电子设备对所述电池进行充电的实际充电时长、所处时区、一周内充电平均时长、电子设备功耗、传感器信息充电的时间是否为节假日中一种或多种。
  19. 一种电子设备,包括一个或多个触摸屏,一个或多个存储器,一个或多个处理器;其中所述一个或多个储存器存储有一个或多个程序;其特征在于,当所述一个或多个处理器在执行所述一个或多个程序时,使得所述电子设备实现如权利要求1至18任一项所述的方法。
  20. 一种计算机存储介质,其特征在于,包括计算机指令,当所述计算机指令在电子设备上运行时,使得所述电子设备执行如权利要求1-18任一项所述的方法。
PCT/CN2021/079536 2020-03-20 2021-03-08 一种充电管控方法及电子设备 WO2021185106A1 (zh)

Priority Applications (2)

Application Number Priority Date Filing Date Title
EP21772557.1A EP4113780A4 (en) 2020-03-20 2021-03-08 CHARGE MANAGEMENT AND CONTROL METHOD AND ELECTRONIC DEVICE
US17/947,986 US20230014616A1 (en) 2020-03-20 2022-09-19 Charging Management and Control Method and Electronic Device

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN202010203685.5 2020-03-20
CN202010203685.5A CN113497468A (zh) 2020-03-20 2020-03-20 一种充电管控方法及电子设备

Related Child Applications (1)

Application Number Title Priority Date Filing Date
US17/947,986 Continuation US20230014616A1 (en) 2020-03-20 2022-09-19 Charging Management and Control Method and Electronic Device

Publications (1)

Publication Number Publication Date
WO2021185106A1 true WO2021185106A1 (zh) 2021-09-23

Family

ID=77768334

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2021/079536 WO2021185106A1 (zh) 2020-03-20 2021-03-08 一种充电管控方法及电子设备

Country Status (4)

Country Link
US (1) US20230014616A1 (zh)
EP (1) EP4113780A4 (zh)
CN (1) CN113497468A (zh)
WO (1) WO2021185106A1 (zh)

Families Citing this family (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20220224135A1 (en) * 2021-01-08 2022-07-14 Intel Corporation Context-based battery charging apparatus and method
TWI823183B (zh) * 2021-11-12 2023-11-21 台泥儲能科技股份有限公司 電力需量控制系統及其方法
CN114336870A (zh) * 2021-12-31 2022-04-12 联想(北京)有限公司 一种控制方法、装置及电子设备
CN117674345B (zh) * 2023-11-06 2024-10-15 荣耀终端有限公司 充电方法及电子设备

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104158272A (zh) * 2014-07-25 2014-11-19 中国民航大学 一种自适应双间歇pwm快速充电系统
CN104378497A (zh) * 2013-08-13 2015-02-25 Lg电子株式会社 移动终端及其控制方法
CN105684260A (zh) * 2013-11-04 2016-06-15 高通股份有限公司 智能的基于上下文的电池充电
WO2018215864A1 (ja) * 2017-05-22 2018-11-29 株式会社半導体エネルギー研究所 充電制御システム、及び充電制御装置
US20190379212A1 (en) * 2019-07-02 2019-12-12 Lg Electronics Inc. Method for charging battery included in robot and apparatus thereof

Family Cites Families (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US9385557B2 (en) * 2012-08-23 2016-07-05 At&T Mobility Ii Llc Methods, systems, and products for charging of devices
KR102544462B1 (ko) * 2018-01-25 2023-06-19 삼성전자 주식회사 배터리를 포함하는 전자 장치 및 이의 충전구간을 제어하는 방법

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104378497A (zh) * 2013-08-13 2015-02-25 Lg电子株式会社 移动终端及其控制方法
CN105684260A (zh) * 2013-11-04 2016-06-15 高通股份有限公司 智能的基于上下文的电池充电
CN104158272A (zh) * 2014-07-25 2014-11-19 中国民航大学 一种自适应双间歇pwm快速充电系统
WO2018215864A1 (ja) * 2017-05-22 2018-11-29 株式会社半導体エネルギー研究所 充電制御システム、及び充電制御装置
US20190379212A1 (en) * 2019-07-02 2019-12-12 Lg Electronics Inc. Method for charging battery included in robot and apparatus thereof

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
See also references of EP4113780A4

Also Published As

Publication number Publication date
EP4113780A4 (en) 2023-08-23
EP4113780A1 (en) 2023-01-04
US20230014616A1 (en) 2023-01-19
CN113497468A (zh) 2021-10-12

Similar Documents

Publication Publication Date Title
WO2021185106A1 (zh) 一种充电管控方法及电子设备
US10452123B2 (en) Predictive power saving and screen dimming for computing devices
US9939868B2 (en) Device power and resource management
US9941724B2 (en) Method and apparatus for controlling charging in electronic device
EP3410071B1 (en) Determining a geographical location
KR101980135B1 (ko) 사용자 활동에 기초한 모바일 디바이스의 동적 조정
US7725094B2 (en) Power prioritization among functions of a multi-function device
JP6926081B2 (ja) 情報処理装置、情報処理システム、充電方法
JP5345775B2 (ja) 携帯電子機器
CN110676905A (zh) 电池充电管理方法、系统、智能终端及计算机可读存储介质
US9391466B2 (en) Method and device for battery-charging management
US9733688B2 (en) Virtual battery management in electronic device
US20220399732A1 (en) Predictive charging to reduce battery capacity degradation
CN114977343A (zh) 一种充电方法、装置、电子设备及存储介质
WO2020010797A1 (zh) 传输速率确定方法、装置、传输设备及存储介质
WO2021244613A1 (zh) 一种充电管理方法、电子设备和系统
WO2022041542A1 (zh) 处理方法、设备及存储介质
CN116054303B (zh) 一种充电方法及相关电子设备
JP2022180126A (ja) 携帯端末、携帯端末の制御方法、及び携帯端末の制御プログラム

Legal Events

Date Code Title Description
121 Ep: the epo has been informed by wipo that ep was designated in this application

Ref document number: 21772557

Country of ref document: EP

Kind code of ref document: A1

ENP Entry into the national phase

Ref document number: 2021772557

Country of ref document: EP

Effective date: 20220928

NENP Non-entry into the national phase

Ref country code: DE