CN110828923B - Battery charging method, device and medium - Google Patents

Battery charging method, device and medium Download PDF

Info

Publication number
CN110828923B
CN110828923B CN201911126033.XA CN201911126033A CN110828923B CN 110828923 B CN110828923 B CN 110828923B CN 201911126033 A CN201911126033 A CN 201911126033A CN 110828923 B CN110828923 B CN 110828923B
Authority
CN
China
Prior art keywords
determining
charging
time
terminal
battery
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN201911126033.XA
Other languages
Chinese (zh)
Other versions
CN110828923A (en
Inventor
刘任
贾兴龙
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Beijing Xiaomi Mobile Software Co Ltd
Original Assignee
Beijing Xiaomi Mobile Software Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Beijing Xiaomi Mobile Software Co Ltd filed Critical Beijing Xiaomi Mobile Software Co Ltd
Priority to CN201911126033.XA priority Critical patent/CN110828923B/en
Publication of CN110828923A publication Critical patent/CN110828923A/en
Application granted granted Critical
Publication of CN110828923B publication Critical patent/CN110828923B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • 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
    • H01M10/446Initial charging measures
    • YGENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
    • Y02TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
    • Y02EREDUCTION OF GREENHOUSE GAS [GHG] EMISSIONS, RELATED TO ENERGY GENERATION, TRANSMISSION OR DISTRIBUTION
    • Y02E60/00Enabling technologies; Technologies with a potential or indirect contribution to GHG emissions mitigation
    • Y02E60/10Energy storage using batteries

Landscapes

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

Abstract

The present disclosure relates to a battery charging method, apparatus and medium. The method is applied to the terminal and comprises the following steps: when the fact that the battery is connected to a power supply is detected, the chargeable duration of the battery is obtained; determining charging power based on the chargeable duration; charging the battery based on the charging power. The method can protect the battery to the maximum extent, prolong the service life of the battery and meet the charging experience of a user.

Description

Battery charging method, device and medium
Technical Field
The present disclosure relates to the field of battery charging technologies, and in particular, to a battery charging method, device, and medium.
Background
With the increase of the service time of the mobile phone, the charging speed of the mobile phone needs to be as fast as possible. Therefore, more and more mobile phones are being charged. For example, a mobile phone quick charge scheme is adopted, and when the electric quantity is lower than 90%, a high-rate quick charge mode is adopted to pursue the shortest time for filling. The battery is charged with high multiplying power all the time, which can affect the service life of the battery and increase the probability of bulge of the battery. However, low charging power charging does not affect battery life, but the user charging experience is affected.
Disclosure of Invention
To overcome the problems in the related art, the present disclosure provides a battery charging method, apparatus, and medium.
According to a first aspect of the embodiments of the present disclosure, there is provided a battery charging method applied to a terminal, including:
when the fact that the battery is connected to a power supply is detected, the chargeable duration of the battery is obtained;
determining charging power based on the chargeable duration;
charging the battery based on the charging power.
Wherein the obtaining the chargeable duration of the battery comprises:
determining the working mode of the terminal, wherein the working mode comprises a sleep mode and a non-sleep mode;
determining a charge end time for the operating mode;
determining the chargeable duration based on the charge end time.
Wherein the determining a charge end time for the operating mode comprises:
when the operation mode is determined to be the sleep mode, determining the charging end time by: acquiring a starting time used in one day of the terminal based on a historical use record of the terminal, and taking the used starting time as the charging end time; acquiring morning alarm time stored by the terminal, and taking the morning alarm time as the charging end time; or determining a set moment as the charging end time;
when the working mode is determined to be the non-sleep mode, determining the charging end time by the following method: determining the charge end time based on response information of a user; determining the charging end time based on the response condition of the user to the information sent by the terminal; or determining the charge end time based on a set charge period.
Wherein, the determining the working mode of the terminal comprises determining in any one of the following manners:
in a first mode, when the current system time of the terminal is within a set time period of one day and the screen-off duration of the terminal is greater than a set time threshold, determining that the working mode is the sleep mode;
the terminal is used in a day by a preset time point, and when the current system time of the terminal is after the used end time and before the set time point, the working mode is determined to be the sleep mode;
and in a third mode, monitoring the noise of the environment where the terminal is located, and determining that the working mode is the sleep mode when the decibel value of the noise is smaller than the set decibel value.
Wherein the determining the charging power based on the chargeable duration comprises:
and determining the charging power based on the inverse proportional relation of the charging time and the charging power.
According to a second aspect of the embodiments of the present disclosure, there is provided a battery charging apparatus including:
the time length obtaining module is set to obtain the chargeable time length of the battery when the battery is detected to be connected with a power supply;
a power determination module configured to determine a charging power based on the chargeable duration;
a charging module configured to charge the battery based on the charging power.
Wherein the duration obtaining module is further configured to:
determining the working mode of the terminal, wherein the working mode comprises a sleep mode and a non-sleep mode;
determining a charge end time for the operating mode;
determining the chargeable duration based on the charge end time.
Wherein the duration obtaining module is further configured to:
when the operation mode is determined to be the sleep mode, determining the charging end time by: acquiring a starting time used in one day of the terminal based on a historical use record of the terminal, and taking the used starting time as the charging end time; acquiring morning alarm time stored by the terminal, and taking the morning alarm time as the charging end time; or determining a set moment as the charging end time;
when the working mode is determined to be the non-sleep mode, determining the charging end time by the following method: determining the charge end time based on response information of a user; determining the charging end time based on the response condition of the user to the information sent by the terminal; or determining the charge end time based on a set charge period.
Wherein the duration obtaining module is further configured to determine the operating mode of the terminal in any one of the following manners:
in a first mode, when the current system time of the terminal is within a set time period of one day and the screen-off duration of the terminal is greater than a set time threshold, determining that the working mode is the sleep mode;
the terminal is used in a day by a preset time point, and when the current system time of the terminal is after the used end time and before the set time point, the working mode is determined to be the sleep mode;
and in a third mode, monitoring the noise of the environment where the terminal is located, and determining that the working mode is the sleep mode when the decibel value of the noise is smaller than the set decibel value.
Wherein the power determination module is further configured to:
and determining the charging power based on the inverse proportional relation of the charging time and the charging power.
According to a third aspect of the embodiments of the present disclosure, there is provided a battery charging apparatus including:
a processor;
a memory for storing processor-executable instructions;
wherein the processor is configured to:
when the fact that the battery is connected to a power supply is detected, the chargeable duration of the battery is obtained;
determining charging power based on the chargeable duration;
charging the battery based on the charging power.
According to a fourth aspect of embodiments of the present disclosure, there is provided a non-transitory computer-readable storage medium having instructions therein, which when executed by a processor of a mobile terminal, enable the mobile terminal to perform a battery charging method, the method comprising:
when the fact that the battery is connected to a power supply is detected, the chargeable duration of the battery is obtained;
determining charging power based on the chargeable duration;
charging the battery based on the charging power.
In the technical solution provided by the embodiment of the present disclosure, the power for charging the battery is determined based on the chargeable duration of the battery. When the chargeable time is longer, the battery is charged by adopting lower charging power so as to protect the battery to the maximum extent and prolong the service life of the battery. When the chargeable duration is short, the charging is carried out by adopting high charging power so as to meet the charging experience of the user.
It is to be understood that both the foregoing general description and the following detailed description are exemplary and explanatory only and are not restrictive of the disclosure.
Drawings
The accompanying drawings, which are incorporated in and constitute a part of this specification, illustrate embodiments consistent with the invention and together with the description, serve to explain the principles of the invention.
FIG. 1 is a flow chart illustrating a method of charging a battery according to an exemplary embodiment.
FIG. 2 is a flow chart illustrating a method of charging a battery in accordance with an exemplary embodiment.
FIG. 3 is a flow chart illustrating a method of charging a battery according to an exemplary embodiment.
Fig. 4 is a block diagram illustrating a battery charging apparatus according to an exemplary embodiment.
FIG. 5 is a block diagram illustrating an apparatus in accordance with an example embodiment.
FIG. 6 is a block diagram illustrating an apparatus in accordance with an example embodiment.
Detailed Description
Reference will now be made in detail to the exemplary embodiments, examples of which are illustrated in the accompanying drawings. When the following description refers to the accompanying drawings, like numbers in different drawings represent the same or similar elements unless otherwise indicated. The embodiments described in the following exemplary embodiments do not represent all embodiments consistent with the present invention. Rather, they are merely examples of apparatus and methods consistent with certain aspects of the invention, as detailed in the appended claims.
By adopting the current mobile phone quick charging scheme, when the electric quantity is lower than 90%, a quick charging mode with high multiplying power can be adopted to pursue the shortest time for full charge. This affects battery life and increases the chance of battery swelling. Low charge power charging, while not affecting battery life, can affect the user charging experience.
The present disclosure provides a battery charging method that can not only maximally protect the battery life, but also satisfy the user's charging experience. In the method, the charging power is determined based on the chargeable duration of the battery, and when the charging duration is longer, the charging is carried out by using lower charging power, and when the charging duration is shorter, the charging is carried out by using higher charging power.
The method is used for charging a battery of a terminal. The terminal can be an intelligent terminal such as a mobile phone, a PAD, a notebook computer, a wearable device and the like.
The present disclosure proposes a battery charging method, as shown in fig. 1. The method is applied to the terminal and comprises the following steps:
step 101, when detecting that a battery is connected to a power supply, acquiring chargeable duration of the battery;
step 102, determining charging power based on a chargeable duration;
and 103, charging the battery based on the charging power.
In the method, power for charging the battery is determined based on a chargeable duration of the battery. When the chargeable time is longer, the battery is charged by adopting lower charging power so as to protect the battery to the maximum extent and prolong the service life of the battery. When the chargeable duration is short, the charging is carried out by adopting high charging power so as to meet the charging experience of the user.
In an alternative embodiment, the obtaining the chargeable duration of the battery includes:
determining the working mode of the terminal, wherein the working mode comprises a sleep mode and a non-sleep mode;
determining a charge end time for the operating mode;
determining the chargeable duration based on the charge end time.
The chargeable duration is greatly different because the terminal is in different working modes. For example, in the sleep mode, the user may not use the terminal for a long time, in which case the chargeable time is long, and the charging may be performed with a low charging power throughout the sleep mode; in the non-sleep mode, the user may use the terminal, the rechargeable time may be short, and the rechargeable time needs to be determined according to the actual situation, so as to avoid the influence on the user due to the battery charging as much as possible.
In this embodiment, therefore, the end-of-charge time, and hence the chargeable duration, is determined for different operating modes. A specific method of determining the charge end time will be described in detail below.
The implementation method further comprises the steps of obtaining the current system time of the terminal, and determining the chargeable duration through difference operation based on the current system time and the charging ending time.
In an optional embodiment, the determining a charge end time for the operating mode includes:
when the operation mode is determined to be the sleep mode, determining the charging end time by: acquiring a starting time used in one day of the terminal based on a historical use record of the terminal, and taking the used starting time as the charging end time; acquiring morning alarm time stored by the terminal, and taking the morning alarm time as the charging end time; or determining a set moment as the charging end time;
when the working mode is determined to be the non-sleep mode, determining the charging end time by the following method: determining the charge end time based on response information of a user; determining the charging end time based on the response condition of the user to the information sent by the terminal; or determining the charge end time based on a set charge period.
When the operation mode is determined to be the sleep mode, the charge end time may be determined by the following manner based on the actual situation of the user:
(1) and acquiring the starting time used in the day of the terminal based on the historical use record of the terminal, and taking the used starting time as the charging end time. The terminal records the history information of its use, such as the initial screen-on time of each morning, and by counting the history information, the predicted start time of the terminal used in one day can be obtained, and the start time of the terminal used can be used as the end time of the sleep mode, i.e. the end time of the charging. Specifically, the starting time of the day at which the terminal is used can be predicted by averaging the initial turn-on time of each morning over a historical period of time (e.g., over the previous month). In addition, if the initial screen-on time of a certain day is earlier or later than the average value by more than a set threshold value, the initial screen-on time of the day may not be used in the prediction. That is, data having a large deviation from the average value is deleted to make the prediction result more accurate.
(2) And acquiring morning alarm time stored by the terminal, and taking the morning alarm time as the charging end time. When the user sets the morning alarm time on the terminal, the morning alarm time may also be used as the charging end time.
(3) The set time is determined as a charge end time. It is also possible to set a time in advance by the system or the user, and to take the set time as the charging end time. For example, the charging end time on weekday morning is set to 6 am, and the charging end time on weekend morning is set to 7 am. The set timing may be set in advance and stored in the terminal.
When the operation mode is determined to be the non-sleep mode, the charge end time may be determined by:
(1) determining the charge end time based on response information of a user. In this manner, a query of the charging time (for example, an expected charging end time) may be issued to the user by the terminal, and response information replied by the user is received, and the charging end time is determined based on the response information. The mode can be applied to the situation that the user works in an office, and the user may not leave the office for a long time when working, namely the portable terminal goes out. Therefore, the charging end time can be flexibly set by the user, and the influence on the service life of the battery caused by the fact that the charging is always carried out at the highest power in the non-sleep mode in the daytime is avoided while the use of the user is ensured.
(2) And determining the charging end time based on the response condition of the user to the information sent by the terminal. When a terminal such as a mobile phone receives an incoming call or a short message or a WeChat message, the terminal sends information to a user. For example, when the user is in a meeting, the information sent by the mobile phone may not be known and cannot be responded to because the terminal is muted. Therefore, the user can be determined to be in a meeting or not carrying the mobile phone based on the response condition of the user to the information sent by the terminal, for example, the response of the user is not received after two information are continuously sent. The charging end time, for example, 2 hours after the power supply is turned on, may be determined based on such a user response to the information.
(3) Or determining the charge end time based on a set charge period. A charging period (e.g., one hour) in the non-sleep mode may also be preset by a user or the system, and the charging end time may be determined based on the charging period.
In an optional embodiment, the determining the operation mode of the terminal includes determining in any one of the following manners:
in a first mode, when the current system time of the terminal is within a set time period of one day and the screen-off duration of the terminal is greater than a set time threshold, determining that the working mode is the sleep mode;
the terminal is used in a day by a preset time point, and when the current system time of the terminal is after the used end time and before the set time point, the working mode is determined to be the sleep mode;
and in a third mode, monitoring the noise of the environment where the terminal is located, and determining that the working mode is the sleep mode when the decibel value of the noise is smaller than the set decibel value.
The following is a detailed description of the three above-described ways of determining sleep modes:
in the first mode, the set time period of one day is, for example, 00:00 to 04:00 o 'clock and 23:00 to 24:00 o' clock, that is, the set time period is usually included in the sleep time period of the user. The set time threshold may be set according to actual conditions, such as 30 minutes or 40 minutes. In one embodiment, the first determination condition may be that the current system time is 12 pm after the current day and 4 pm before the next day, and the duration of the screen-off is greater than 40 minutes. The set time period may be set by the user according to actual conditions, or may be determined based on the history of the usage of the terminal.
In the second mode, history information of the terminal usage, such as the last screen-off time every night, is recorded in the terminal, and the predicted termination time of the terminal usage can be obtained by counting the history information. Specifically, the end time of the day when the terminal is used can be predicted by averaging the last screen-off time every night over a historical period of time (e.g., over the previous month). In addition, if the last screen-off time of a certain day is earlier or later than the average value and exceeds a set threshold value, the last screen-off time of the day may not be used in the prediction. That is, data having a large deviation from the average value is deleted to make the prediction result more accurate. In addition to requiring the current system time to be after the used end time, the current system time is required to be before the set time point because, for example, when the used end time is 23 am, 12 am is after the time, but not a regular sleep time, and thus the current system time is required to be before the set time point, which is usually a certain time in the morning.
In the third mode, whether the mobile terminal is in the sleep mode is judged through the monitored environmental noise. It should be noted that ambient noise is monitored instead of the user's voice to avoid violating the user's personal privacy. When the decibel value of the environmental noise is smaller than the set decibel value, it is indicated that the current environment is quite, and it can be determined that the user is sleeping at the moment, and the working mode of the terminal is the sleep mode. In this manner, the sleep mode may also be determined by combining whether the ambient noise meets the decibel value requirement with whether the current system time is within a set time period of a day.
The working mode is determined in different modes, and different requirements of users can be met.
It should be noted that the provided condition is used for determining the sleep mode, and when the condition is not satisfied, the current operation mode of the terminal may be determined to be the non-sleep mode.
In an optional embodiment, the determining the charging power based on the chargeable duration includes:
and determining the charging power based on the inverse proportional relation of the charging time and the charging power.
In this embodiment, when the charging period is longer, a lower charging power is determined; when the charging time is short, the charging power is determined to be high, so that the requirement of a user on quick charging is met, the battery is protected as far as possible, and the service life of the battery is prolonged. Therefore, the charging period is inversely proportional to the charging power. The specific functional relationship between the charging duration and the charging power can be set by combining the current electric quantity, the battery capacity and other factors.
Fig. 2 illustrates one particular embodiment of a method according to the present disclosure. The method in this embodiment is applied to a mobile phone, and as shown in fig. 2, the method includes the following steps:
step 201, detecting that a mobile phone battery is connected to a power supply.
Step 202, obtaining the current system time of the mobile phone as 23:30, wherein the current continuous screen-off time of the mobile phone is 45 minutes between the set time period 00:00-04:00 and the set time period 23:00-24:00, and exceeds the set time threshold value for 40 minutes, so that the current working mode of the mobile phone is determined to be the sleep mode.
Step 203, the morning alarm time 6:30 stored in the mobile phone is obtained, and the actual time is used as the charging end time of the time.
And step 204, calculating the chargeable duration between the current system time 23:30 and the charging end time 6:30 to be 7 hours.
Step 205, determining the charging power based on the charging time obtained by the above calculation.
In step 206, the mobile phone battery is charged based on the charging power.
The above is an embodiment of the mobile phone in the sleep mode, in which the working mode is determined by using one method provided by the present disclosure, but the working mode may also be determined by using other methods provided by the present disclosure. And other manners provided by the present disclosure may also be employed to determine the end-of-charge time.
FIG. 3 illustrates one particular embodiment of a method according to the present disclosure. The method in this embodiment is applied to a mobile phone, and as shown in fig. 3, the method includes the following steps:
step 301, detecting that the mobile phone battery is connected to the power supply.
Step 302, obtaining the current system time of the mobile phone as 14:00, calculating the average value of the last screen-off time of the mobile phone every night in the previous month as 11:00, and taking the average value as the predicted end time of the mobile phone used every day, so that the current system time is after the end time of the mobile phone used and also after the set time point of 4:00, and therefore, determining that the current working mode of the mobile phone is not a sleep mode, namely a non-sleep mode.
Step 303, the handset issues an inquiry to the user as to when to use the handset by means of a system message.
Step 304, receiving the response information of the user to the inquiry: the 16:00 mobile phone is used, and therefore this time is taken as the charge end time.
Step 305, calculating the chargeable duration between the current system time 14:00 and the charging end time 16:00 to be 2 hours.
Step 306, determining the charging power based on the charging time calculated above.
Step 307, charging the mobile phone battery based on the charging power.
The above is an embodiment of the mobile phone in the non-sleep mode, in which the working mode is determined by using one method provided by the present disclosure, but the working mode may also be determined by using other methods provided by the present disclosure. And other manners provided by the present disclosure may also be employed to determine the end-of-charge time.
Fig. 4 is a block diagram illustrating a battery charging apparatus according to an exemplary embodiment. As shown in fig. 4, the battery charging apparatus includes:
a duration obtaining module 401, configured to obtain a chargeable duration of the battery when it is detected that the battery is connected to a power supply;
a power determination module 402 configured to determine a charging power based on the chargeable duration;
a charging module 403 configured to charge the battery based on the charging power.
In an optional embodiment, the duration obtaining module is further configured to:
determining the working mode of the terminal, wherein the working mode comprises a sleep mode and a non-sleep mode;
determining a charge end time for the operating mode;
determining the chargeable duration based on the charge end time.
In an optional embodiment, the duration obtaining module is further configured to:
when the operation mode is determined to be the sleep mode, determining the charging end time by: acquiring a starting time used in one day of the terminal based on a historical use record of the terminal, and taking the used starting time as the charging end time; acquiring morning alarm time stored by the terminal, and taking the morning alarm time as the charging end time; or determining a set moment as the charging end time;
when the working mode is determined to be the non-sleep mode, determining the charging end time by the following method: determining the charge end time based on response information of a user; determining the charging end time based on the response condition of the user to the information sent by the terminal; or determining the charge end time based on a set charge period.
In an optional embodiment, the duration obtaining module is further configured to determine the operation mode of the terminal by using any one of the following manners:
in a first mode, when the current system time of the terminal is within a set time period of one day and the screen-off duration of the terminal is greater than a set time threshold, determining that the working mode is the sleep mode;
the terminal is used in a day by a preset time point, and when the current system time of the terminal is after the used end time and before the set time point, the working mode is determined to be the sleep mode;
and in a third mode, monitoring the noise of the environment where the terminal is located, and determining that the working mode is the sleep mode when the decibel value of the noise is smaller than the set decibel value.
In an optional embodiment, the power determination module is further configured to:
and determining the charging power based on the inverse proportional relation of the charging time and the charging power.
With regard to the apparatus in the above-described embodiment, the specific manner in which each module performs the operation has been described in detail in the embodiment related to the method, and will not be elaborated here.
In the technical solution provided by the embodiment of the present disclosure, the power for charging the battery is determined based on the chargeable duration of the battery. When the chargeable time is longer, the battery is charged by adopting lower charging power so as to protect the battery to the maximum extent and prolong the service life of the battery. When the chargeable duration is short, the charging is carried out by adopting high charging power so as to meet the charging experience of the user. In addition, the disclosure provides various methods for determining the working mode and various ways for determining the charging end time, which can be flexibly set to meet different requirements of users.
Fig. 5 is a block diagram illustrating an apparatus 500 for charging a battery according to an exemplary embodiment. For example, the apparatus 500 may be a mobile phone, a computer, a digital broadcast terminal, a messaging device, a game console, a tablet device, a medical device, an exercise device, a personal digital assistant, and the like.
Referring to fig. 5, the apparatus 500 may include one or more of the following components: a processing component 502, a memory 504, a power component 506, a multimedia component 508, an audio component 510, an input/output (I/O) interface 512, a sensor component 514, and a communication component 516.
The processing component 502 generally controls overall operation of the device 500, such as operations associated with display, telephone calls, data communications, camera operations, and recording operations. The processing components 502 may include one or more processors 520 to execute instructions to perform all or a portion of the steps of the methods described above. Further, the processing component 502 can include one or more modules that facilitate interaction between the processing component 502 and other components. For example, the processing component 502 can include a multimedia module to facilitate interaction between the multimedia component 508 and the processing component 502.
The memory 504 is configured to store various types of data to support operation at the device 500. Examples of such data include instructions for any application or method operating on device 500, contact data, phonebook data, messages, pictures, videos, and so forth. The memory 504 may be implemented by any type or combination of volatile or non-volatile memory devices such as Static Random Access Memory (SRAM), electrically erasable programmable read-only memory (EEPROM), erasable programmable read-only memory (EPROM), programmable read-only memory (PROM), read-only memory (ROM), magnetic memory, flash memory, magnetic or optical disks.
Power component 506 provides power to the various components of device 500. The power components 506 may include a power management system, one or more power sources, and other components associated with generating, managing, and distributing power for the apparatus 500.
The multimedia component 508 includes a screen that provides an output interface between the device 500 and the user. In some embodiments, the screen may include a Liquid Crystal Display (LCD) and a Touch Panel (TP). If the screen includes a touch panel, the screen may be implemented as a touch screen to receive an input signal from a user. The touch panel includes one or more touch sensors to sense touch, slide, and gestures on the touch panel. The touch sensor may not only sense the boundary of a touch or slide action, but also detect the duration and pressure associated with the touch or slide operation. In some embodiments, the multimedia component 508 includes a front facing camera and/or a rear facing camera. The front-facing camera and/or the rear-facing camera may receive external multimedia data when the device 500 is in an operating mode, such as a shooting mode or a video mode. Each front camera and rear camera may be a fixed optical lens system or have a focal length and optical zoom capability.
The audio component 510 is configured to output and/or input audio signals. For example, audio component 510 includes a Microphone (MIC) configured to receive external audio signals when apparatus 500 is in an operating mode, such as a call mode, a recording mode, and a voice recognition mode. The received audio signals may further be stored in the memory 504 or transmitted via the communication component 516. In some embodiments, audio component 510 further includes a speaker for outputting audio signals.
The I/O interface 512 provides an interface between the processing component 502 and peripheral interface modules, which may be keyboards, click wheels, buttons, etc. These buttons may include, but are not limited to: a home button, a volume button, a start button, and a lock button.
The sensor assembly 514 includes one or more sensors for providing various aspects of status assessment for the device 500. For example, the sensor assembly 514 may detect an open/closed state of the device 500, the relative positioning of the components, such as a display and keypad of the apparatus 500, the sensor assembly 514 may also detect a change in the position of the apparatus 500 or a component of the apparatus 500, the presence or absence of user contact with the apparatus 500, orientation or acceleration/deceleration of the apparatus 500, and a change in the temperature of the apparatus 500. The sensor assembly 514 may include a proximity sensor configured to detect the presence of a nearby object without any physical contact. The sensor assembly 514 may also include a light sensor, such as a CMOS or CCD image sensor, for use in imaging applications. In some embodiments, the sensor assembly 514 may also include an acceleration sensor, a gyroscope sensor, a magnetic sensor, a pressure sensor, or a temperature sensor.
The communication component 516 is configured to facilitate communication between the apparatus 500 and other devices in a wired or wireless manner. The apparatus 500 may access a wireless network based on a communication standard, such as WiFi, 2G or 3G, or a combination thereof. In an exemplary embodiment, the communication component 516 receives a broadcast signal or broadcast related information from an external broadcast management system via a broadcast channel. In an exemplary embodiment, the communication component 516 further includes a Near Field Communication (NFC) module to facilitate short-range communications. For example, the NFC module may be implemented based on Radio Frequency Identification (RFID) technology, infrared data association (IrDA) technology, Ultra Wideband (UWB) technology, Bluetooth (BT) technology, and other technologies.
In an exemplary embodiment, the apparatus 500 may be implemented by one or more Application Specific Integrated Circuits (ASICs), Digital Signal Processors (DSPs), Digital Signal Processing Devices (DSPDs), Programmable Logic Devices (PLDs), Field Programmable Gate Arrays (FPGAs), controllers, micro-controllers, microprocessors or other electronic components for performing the above-described methods.
In an exemplary embodiment, a non-transitory computer-readable storage medium comprising instructions, such as the memory 504 comprising instructions, executable by the processor 520 of the apparatus 500 to perform the above-described method is also provided. For example, the non-transitory computer readable storage medium may be a ROM, a Random Access Memory (RAM), a CD-ROM, a magnetic tape, a floppy disk, an optical data storage device, and the like.
A non-transitory computer readable storage medium having instructions therein, which when executed by a processor of a mobile terminal, enable the mobile terminal to perform a battery charging method, the method comprising: when the fact that the battery is connected to a power supply is detected, the chargeable duration of the battery is obtained; determining charging power based on the chargeable duration; charging the battery based on the charging power.
Fig. 6 is a block diagram illustrating an apparatus 600 for charging a battery according to an example embodiment. For example, the apparatus 600 may be provided as a server. Referring to fig. 6, the apparatus 600 includes a processing component 622 that further includes one or more processors and memory resources, represented by memory 632, for storing instructions, such as applications, that are executable by the processing component 622. The application programs stored in memory 632 may include one or more modules that each correspond to a set of instructions. Further, the processing component 622 is configured to execute instructions to perform the above-described method: when the fact that the battery is connected to a power supply is detected, the chargeable duration of the battery is obtained; determining charging power based on the chargeable duration; charging the battery based on the charging power.
The apparatus 600 may also include a power component 626 configured to perform power management of the apparatus 600, a wired or wireless network interface 650 configured to connect the apparatus 600 to a network, and an input/output (I/O) interface 658. The apparatus 600 may operate based on an operating system stored in the memory 632, such as Windows Server, Mac OS XTM, UnixTM, LinuxTM, FreeBSDTM, or the like.
Other embodiments of the invention will be apparent to those skilled in the art from consideration of the specification and practice of the invention disclosed herein. This application is intended to cover any variations, uses, or adaptations of the invention following, in general, the principles of the invention and including such departures from the present disclosure as come within known or customary practice within the art to which the invention pertains. It is intended that the specification and examples be considered as exemplary only, with a true scope and spirit of the invention being indicated by the following claims.
It will be understood that the invention is not limited to the precise arrangements described above and shown in the drawings and that various modifications and changes may be made without departing from the scope thereof. The scope of the invention is limited only by the appended claims.

Claims (10)

1. A battery charging method is applied to a terminal, and is characterized by comprising the following steps:
when the fact that the battery is connected to a power supply is detected, the chargeable duration of the battery is obtained;
determining charging power based on the chargeable duration;
charging the battery based on the charging power;
the acquiring the chargeable duration of the battery comprises:
determining the working mode of the terminal, wherein the working mode comprises a sleep mode and a non-sleep mode;
determining a charge end time for the operating mode;
determining the chargeable duration based on the charge end time;
and in the sleep mode, the user does not use the terminal for a time which exceeds a preset time length.
2. The method of claim 1, wherein the determining a charge end time for the operating mode comprises:
when the operation mode is determined to be the sleep mode, determining the charging end time by: acquiring a starting time used in one day of the terminal based on a historical use record of the terminal, and taking the used starting time as the charging end time; acquiring morning alarm time stored by the terminal, and taking the morning alarm time as the charging end time; or determining a set moment as the charging end time;
when the working mode is determined to be the non-sleep mode, determining the charging end time by the following method: determining the charge end time based on response information of a user; determining the charging end time based on the response condition of the user to the information sent by the terminal; or determining the charge end time based on a set charge period.
3. The method of claim 1, wherein the determining the operating mode of the terminal comprises determining in any one of:
in a first mode, when the current system time of the terminal is within a set time period of one day and the screen-off duration of the terminal is greater than a set time threshold, determining that the working mode is the sleep mode;
the terminal is used in a day by a preset time point, and when the current system time of the terminal is after the used end time and before the set time point, the working mode is determined to be the sleep mode;
and in a third mode, monitoring the noise of the environment where the terminal is located, and determining that the working mode is the sleep mode when the decibel value of the noise is smaller than the set decibel value.
4. The method of claim 1, wherein the determining the charging power based on the chargeable duration comprises:
and determining the charging power based on the inverse proportional relation of the charging time and the charging power.
5. A battery charging apparatus, comprising:
the time length obtaining module is set to obtain the chargeable time length of the battery when the battery is detected to be connected with a power supply;
a power determination module configured to determine a charging power based on the chargeable duration;
a charging module configured to charge the battery based on the charging power;
the duration obtaining module is further configured to:
determining the working mode of the terminal, wherein the working mode comprises a sleep mode and a non-sleep mode;
determining a charge end time for the operating mode;
determining the chargeable duration based on the charge end time;
and in the sleep mode, the user does not use the terminal for a time which exceeds a preset time length.
6. The apparatus of claim 5, wherein the duration acquisition module is further configured to:
when the operation mode is determined to be the sleep mode, determining the charging end time by: acquiring a starting time used in one day of the terminal based on a historical use record of the terminal, and taking the used starting time as the charging end time; acquiring morning alarm time stored by the terminal, and taking the morning alarm time as the charging end time; or determining a set moment as the charging end time;
when the working mode is determined to be the non-sleep mode, determining the charging end time by the following method: determining the charge end time based on response information of a user; determining the charging end time based on the response condition of the user to the information sent by the terminal; or determining the charge end time based on a set charge period.
7. The apparatus of claim 6, wherein the duration acquisition module is further configured to determine the operating mode of the terminal by any one of:
in a first mode, when the current system time of the terminal is within a set time period of one day and the screen-off duration of the terminal is greater than a set time threshold, determining that the working mode is the sleep mode;
the terminal is used in a day by a preset time point, and when the current system time of the terminal is after the used end time and before the set time point, the working mode is determined to be the sleep mode;
and in a third mode, monitoring the noise of the environment where the terminal is located, and determining that the working mode is the sleep mode when the decibel value of the noise is smaller than the set decibel value.
8. The apparatus of claim 5, wherein the power determination module is further configured to:
and determining the charging power based on the inverse proportional relation of the charging time and the charging power.
9. A battery charging apparatus, comprising:
a processor;
a memory for storing processor-executable instructions;
wherein the processor is configured to:
when the fact that the battery is connected to a power supply is detected, the chargeable duration of the battery is obtained;
determining charging power based on the chargeable duration;
charging the battery based on the charging power;
the acquiring the chargeable duration of the battery comprises:
determining the working mode of the terminal, wherein the working mode comprises a sleep mode and a non-sleep mode;
determining a charge end time for the operating mode;
determining the chargeable duration based on the charge end time;
and in the sleep mode, the user does not use the terminal for a time which exceeds a preset time length.
10. A non-transitory computer readable storage medium having instructions therein, which when executed by a processor of a mobile terminal, enable the mobile terminal to perform a battery charging method, the method comprising:
when the fact that the battery is connected to a power supply is detected, the chargeable duration of the battery is obtained;
determining charging power based on the chargeable duration;
charging the battery based on the charging power;
the acquiring the chargeable duration of the battery comprises:
determining the working mode of the terminal, wherein the working mode comprises a sleep mode and a non-sleep mode;
determining a charge end time for the operating mode;
determining the chargeable duration based on the charge end time;
and in the sleep mode, the user does not use the terminal for a time which exceeds a preset time length.
CN201911126033.XA 2019-11-18 2019-11-18 Battery charging method, device and medium Active CN110828923B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201911126033.XA CN110828923B (en) 2019-11-18 2019-11-18 Battery charging method, device and medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201911126033.XA CN110828923B (en) 2019-11-18 2019-11-18 Battery charging method, device and medium

Publications (2)

Publication Number Publication Date
CN110828923A CN110828923A (en) 2020-02-21
CN110828923B true CN110828923B (en) 2022-03-01

Family

ID=69556197

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201911126033.XA Active CN110828923B (en) 2019-11-18 2019-11-18 Battery charging method, device and medium

Country Status (1)

Country Link
CN (1) CN110828923B (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN117277499A (en) * 2023-09-28 2023-12-22 深圳航天科创泛在电气有限公司 Charging management method and device based on distributed bidirectional inverter power system

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101826740A (en) * 2010-02-02 2010-09-08 华为终端有限公司 Method for reducing power consumption when terminal is charged and terminal
CN106299516A (en) * 2016-09-21 2017-01-04 奇酷互联网络科技(深圳)有限公司 Smart machine and charging method thereof
CN106998081A (en) * 2016-01-22 2017-08-01 神讯电脑(昆山)有限公司 Electronic installation and its method for managing charge/discharge
CN107181298A (en) * 2017-05-26 2017-09-19 珠海市魅族科技有限公司 Charge control method, device, terminal installation and storage medium

Family Cites Families (10)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP3956917B2 (en) * 2003-08-04 2007-08-08 株式会社豊田自動織機 Battery charger
CN101364740B (en) * 2007-08-07 2013-05-22 奇瑞汽车股份有限公司 Control method for hybrid powered automobile
JP4735683B2 (en) * 2008-08-22 2011-07-27 ソニー株式会社 Charging apparatus and charging method
CN101685895B (en) * 2008-09-22 2012-01-25 联想(北京)有限公司 Battery charging method and device
JP5527895B2 (en) * 2010-11-18 2014-06-25 パナソニック株式会社 Secondary battery control device and control method
EP2641783B1 (en) * 2012-03-20 2016-04-20 Samsung SDI Co., Ltd. Battery pack and method of controlling the same
CN103401035B (en) * 2013-07-09 2016-04-27 联宝(合肥)电子科技有限公司 A kind of charging method of mobile device battery pack
KR102144589B1 (en) * 2013-11-05 2020-08-13 삼성전자주식회사 Method and apparatus for fast charge in electronic device
CN106356949A (en) * 2016-10-31 2017-01-25 深圳市金立通信设备有限公司 Charging protection method and terminal
CN108365645B (en) * 2018-02-02 2020-06-02 北京小米移动软件有限公司 Charging control method and device and storage medium

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101826740A (en) * 2010-02-02 2010-09-08 华为终端有限公司 Method for reducing power consumption when terminal is charged and terminal
CN106998081A (en) * 2016-01-22 2017-08-01 神讯电脑(昆山)有限公司 Electronic installation and its method for managing charge/discharge
CN106299516A (en) * 2016-09-21 2017-01-04 奇酷互联网络科技(深圳)有限公司 Smart machine and charging method thereof
CN107181298A (en) * 2017-05-26 2017-09-19 珠海市魅族科技有限公司 Charge control method, device, terminal installation and storage medium

Non-Patent Citations (2)

* Cited by examiner, † Cited by third party
Title
Charge recycling dual-rail voltage supply for battery-powered tags with sleep and active mode operation;Gim, Yeong-Gyo 等;《ELECTRONICS LETTERS 》;20171107;第49卷(第23期);第1471-1473页 *
车载电池在不同温度下可充电电量的预测方法;朱志成 等;《农业装备与车辆工程》;20170831;第55卷(第8期);第1-5页 *

Also Published As

Publication number Publication date
CN110828923A (en) 2020-02-21

Similar Documents

Publication Publication Date Title
EP3188066B1 (en) A method and an apparatus for managing an application
US10423379B2 (en) Method and device for screen-off display
CN108334651B (en) Method, device and storage medium for collecting user side data to realize preset requirements
CN107027157B (en) Location updating method and device
RU2648264C2 (en) Method and device (variants) for processing communication messages
EP3813223A1 (en) Charging control method, device and storage medium
CN110602324B (en) Reminding method and device of wearable equipment
CN108347718B (en) Method, device and storage medium for monitoring communication packet
CN110828923B (en) Battery charging method, device and medium
CN108012027B (en) Method and device for managing application program
CN112947739A (en) Terminal application program management method and device, terminal and storage medium
CN114487840A (en) Battery control method, device and storage medium
CN108429312B (en) Charging control method and device
CN107846481B (en) Account management method and device
CN109451857B (en) Data transmission method and device
CN107528098B (en) Charging method and device
CN112448052B (en) Battery charging control method and device
CN115940310A (en) Charging method, charging device, and storage medium
CN111509789B (en) Charging method and device
CN115313530A (en) Method and device for determining battery state, electronic equipment and storage medium
CN106776204B (en) Method and device for determining power consumption application
CN112421702A (en) Lithium battery charging method and device
CN108983948B (en) Power utilization control method and device for terminal equipment
CN111864857B (en) Battery charging method, device and medium
US20240055884A1 (en) Method of charging processing, electronic device and storage medium

Legal Events

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