CN110323808B - Charging stop method, charging stop device, computer equipment and storage medium - Google Patents

Charging stop method, charging stop device, computer equipment and storage medium Download PDF

Info

Publication number
CN110323808B
CN110323808B CN201910697304.0A CN201910697304A CN110323808B CN 110323808 B CN110323808 B CN 110323808B CN 201910697304 A CN201910697304 A CN 201910697304A CN 110323808 B CN110323808 B CN 110323808B
Authority
CN
China
Prior art keywords
charging
time
battery
terminal
current
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
CN201910697304.0A
Other languages
Chinese (zh)
Other versions
CN110323808A (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.)
Guangdong Oppo Mobile Telecommunications Corp Ltd
Original Assignee
Guangdong Oppo Mobile Telecommunications Corp 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 Guangdong Oppo Mobile Telecommunications Corp Ltd filed Critical Guangdong Oppo Mobile Telecommunications Corp Ltd
Priority to CN201910697304.0A priority Critical patent/CN110323808B/en
Publication of CN110323808A publication Critical patent/CN110323808A/en
Application granted granted Critical
Publication of CN110323808B publication Critical patent/CN110323808B/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
    • H02J7/0077
    • H02J7/0088
    • HELECTRICITY
    • H02GENERATION; CONVERSION OR DISTRIBUTION OF ELECTRIC POWER
    • H02JCIRCUIT ARRANGEMENTS OR SYSTEMS FOR SUPPLYING OR DISTRIBUTING ELECTRIC POWER; SYSTEMS FOR STORING ELECTRIC ENERGY
    • H02J7/00Circuit arrangements for charging or depolarising batteries or for supplying loads from batteries
    • H02J7/0029Circuit arrangements for charging or depolarising batteries or for supplying loads from batteries with safety or protection devices or circuits
    • H02J7/00302Overcharge protection
    • YGENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
    • Y02TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
    • 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

Abstract

The application discloses a charging stopping method, and belongs to the field of battery charging. The method comprises the following steps: calculating the charging completion time according to the current value of the constant current charging current by measuring the current value of the constant current charging current, wherein the charging completion time is used for indicating the time from the current charging moment to the time when the electric quantity of the battery is changed into a full state; determining a sleep start time according to the charge completion time, wherein the sleep start time is used for indicating the time when the battery is in a charge disconnection state under the state that the battery is connected with the charger; charging the battery is stopped according to the sleep start time. According to the method and the device, the charging completion time and the determined dormancy starting time are obtained through calculation, the battery can be stopped to be charged when the dormancy starting time is started, the overcharge condition of the battery is avoided, the number of times of recycling of the battery is increased, and the service life of the battery is prolonged.

Description

Charging stop method, charging stop device, computer equipment and storage medium
Technical Field
The present disclosure relates to the field of battery charging, and more particularly, to a method and an apparatus for stopping charging, a computer device, and a storage medium.
Background
The battery in the terminal has been one of indispensable components in the terminal as a main power supply source. It is very important for a user to ensure the safety of a battery in a terminal during the charging of the terminal.
When a user charges a terminal, the terminal is often connected to the charger for a period of time, and the battery of the terminal may have been charged (i.e., fully charged) before the user pulls the charger to finish charging. In the related art, in order to prevent the terminal from overcharging the battery during the continuous charging process, the charging voltage of the power supply is generally controlled, and when the battery voltage reaches a saturation state, the charging is stopped, so as to prevent the battery of the terminal from overcharging.
With the use of the battery in the terminal, the voltage of the battery cannot reach a saturation state due to the damage of the battery, so that the terminal cannot successfully control the charging process to stop, and the hidden trouble of overcharging of the battery exists.
Disclosure of Invention
The embodiment of the application provides a charging stop method and device, computer equipment and a storage medium, which can avoid the problem of overcharging when a battery is charged. The technical scheme is as follows:
in one aspect, an embodiment of the present application provides a charge stop method, where the method includes:
measuring the current value of constant current charging current, wherein the constant current charging current is constant charging current adopted in the charging process of a battery;
calculating charging completion time according to the current value, wherein the charging completion time is used for indicating the time from the current charging time to the time when the electric quantity of the battery is changed into a full-charge state;
determining a sleep start time according to the charging completion time, wherein the sleep start time is used for indicating the time when the battery is in a charging disconnection state under the state that the battery is connected with a charger;
stopping charging the battery according to the sleep start time.
In another aspect, an embodiment of the present application provides a charging stop device, where the charging stop device includes:
the current value measuring module is used for measuring the current value of constant-current charging current, wherein the constant-current charging current is constant charging current adopted in the charging process of the battery;
the charging completion time calculation module is used for calculating charging completion time according to the current value, and the charging completion time is used for indicating the time from the current charging time to the time when the electric quantity of the battery is changed into a full-charge state;
a sleep start time determination module, configured to determine a sleep start time according to the charge completion time, where the sleep start time is used to indicate a time when the battery is in a charge disconnected state in a state where the battery is connected to a charger;
and the charging stopping module is used for stopping charging the battery according to the dormancy starting time.
In another aspect, embodiments of the present application provide a computer device, which includes a processor and a memory, where at least one instruction, at least one program, a set of codes, or a set of instructions is stored in the memory, and the at least one instruction, the at least one program, the set of codes, or the set of instructions is loaded and executed by the processor to implement the charging stop method as described above.
In another aspect, an embodiment of the present application provides a computer-readable storage medium, in which at least one instruction, at least one program, a code set, or a set of instructions is stored, and the at least one instruction, the at least one program, the code set, or the set of instructions is loaded and executed by a processor to implement the charging stop method as described above.
The beneficial effects brought by the technical scheme provided by the embodiment of the application at least comprise:
the method comprises the steps of measuring the current value of constant current charging current, calculating the time for charging the battery according to the current value of the constant current charging current, determining the dormancy starting time required to be set in the charging process according to the calculated charging finishing time, and stopping charging the battery according to the dormancy starting time. According to the method and the device, the charging completion time and the determined dormancy starting time are obtained through calculation, the battery can be stopped to be charged when the dormancy starting time is started, the overcharge condition of the battery is avoided, the number of times of recycling of the battery is increased, and the service life of the battery is prolonged.
Drawings
In order to more clearly illustrate the technical solutions in the embodiments of the present application, the drawings needed to be used in the description of the embodiments are briefly introduced below, and it is obvious that the drawings in the following description are only some embodiments of the present application, and it is obvious for those skilled in the art to obtain other drawings based on these drawings without creative efforts.
FIG. 1 is a schematic diagram of a charging scenario provided by an exemplary embodiment of the present application;
fig. 2 to 3 are graphs illustrating charging of a lithium ion battery according to an exemplary embodiment of the present disclosure;
FIG. 3 is a flow chart of a method for proximity status acquisition as provided by an exemplary embodiment of the present application;
FIG. 4 is a flowchart of a method of a charge stop method provided by an exemplary embodiment of the present application;
FIG. 5 is a flowchart of a method of a charge stop method provided by an exemplary embodiment of the present application;
fig. 6 is a schematic diagram of an interface for setting a charge end time according to an embodiment of the present application;
FIG. 7 is a flowchart illustrating a method of stopping charging according to an exemplary embodiment of the present disclosure;
fig. 8 is a block diagram illustrating a structure of a charge stop device according to an exemplary embodiment of the present application;
fig. 9 is a block diagram of a structure of a charge stop device related to fig. 8 according to an exemplary embodiment of the present application;
fig. 10 is a schematic structural diagram of a terminal according to an exemplary embodiment of the present application.
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 implementations described in the following exemplary examples do not represent all implementations consistent with the present application. Rather, they are merely examples of apparatus and methods consistent with certain aspects of the present application, as detailed in the appended claims.
The scheme provided by the application can be used in a real scene that people charge the terminal when using the terminal in daily life, and for convenience of understanding, first, some terms and application scenes related to the embodiment of the application are briefly introduced below.
Trickle (lockle Charge or Pre-Charge): refers to charging a battery by a minute pulse current, and can be generally used for a start phase and an end phase of charging the battery. The trickle currents used for the batteries may be different.
Constant Current Charge (CC Charge): also called constant current charging, refers to charging a battery always according to a fixed current value.
Constant Voltage Charge (CV Charge): also called constant voltage charging, means that the voltage across the battery is always maintained at a fixed voltage value to charge the battery.
With the development of the terminal technology field, various terminals have become an indispensable part of our daily life, most terminals can be powered by their own installed batteries, and when the power is insufficient, the user can charge the batteries in the terminals. Under the normal condition, a user can plug a charger into a terminal to charge the terminal when the terminal is not used, and when the terminal battery is charged, if the terminal battery is not timely charged, the terminal battery is possibly overcharged, so that the battery performance is influenced, and potential safety hazards exist in the charging process of the terminal.
Referring to fig. 1, a schematic diagram of a charging scenario provided in an exemplary embodiment of the present application is shown. As shown in fig. 1, which includes a first terminal 110, a charger 120 and a power supply 130.
In daily life, the user can link to each other first terminal, charger and power three according to corresponding interface to charge first terminal.
Optionally, the terminal 110 may be a terminal with a battery installed therein, for example, the terminal may be a mobile phone, a tablet computer, an electronic book reader, smart glasses, a smart watch, an MP3 player (Moving Picture Experts Group Audio Layer III, motion Picture Experts Group Audio Layer 3), an MP4 player (Moving Picture Experts Group Audio Layer IV, motion Picture Experts Group Audio Layer 4), a notebook computer, a laptop computer, or the like. Optionally, the charger 120 may charge the terminal in a wired charging manner or in a wireless charging manner. Optionally, the power source 130 is a mobile power source or a fixed power source, such as a charger, a fixed socket, a computer host, etc.
Most of batteries used in the terminal are lithium ion batteries, and the charging condition of the terminal battery can be controlled by providing an IC (Integrated Circuit) chip in the terminal. Please refer to fig. 2 to fig. 3, which illustrate graphs of charging of a lithium ion battery provided in an exemplary embodiment of the present application. As shown in fig. 2, a charging current curve 201, a first phase 202, a second phase 203, a third phase 204, and a fourth phase 205 are included. As shown in fig. 3, a charging voltage curve 301, a first phase 302, a second phase 303, a third phase 304, and a fourth phase 305 are included. That is, the charging voltage curve corresponds to the voltage change of the lithium ion battery with the passage of the charging time in each stage shown in fig. 2.
The charging of the lithium ion battery can be roughly divided into four stages as shown in fig. 2 and 3, the first stage 202 is a trickle charging stage, and in the first stage 202, since the battery voltage at that time is low (trickle threshold as shown in fig. 3) and the internal impedance is large, the charger temporarily charges the battery with a very small current (trickle current value as shown in fig. 2). For example, when the trickle threshold shown in fig. 3 is 3 volts (V), and the battery voltage is less than 3V, the charger starts charging the battery, and the charger may temporarily charge the battery with the trickle current shown in fig. 2 due to the characteristic that the internal impedance of the battery is large at that time. As charging progresses, the battery voltage continues to rise (as shown by the charging voltage curve corresponding to the first stage 302 in fig. 3). When the battery voltage is above the trickle threshold, the second phase 203 (constant current charging phase) is entered at this time. In the second stage 203 (constant current charging stage), the charger charges the battery with the minimum current, and then charges the battery with the maximum charging current, where the current value in the constant current charging stage is IMaximum ofThat is, the constant current value shown in FIG. 2 is IMaximum ofWherein, the maximum charging current is the maximum charging current value supported by a circuit directly connected with the charger by using the anode and the cathode of the battery. Similarly, as charging progresses, the battery voltage continues to rise (as shown by the charging voltage curve corresponding to the second stage 303 in fig. 3). When the battery voltage rises to the saturation voltage of the battery, the third stage 204 (constant voltage charging stage) is entered, and in the third stage 204, as the charging proceeds, the battery voltage does not continue to rise, but the voltage value of the saturation voltage is maintained, as shown in the charging voltage curve corresponding to the third stage 304 in fig. 3, but as can be seen from fig. 2, the charging current of the battery is continuously decreased in the third stage 204 (as shown in the charging current curve corresponding to the third stage in fig. 2). When the charging current of the battery finally decreases to 0 as the charging proceeds, it is equivalent to enter the fourth stepSegment 205 (full phase), i.e. the lithium ion battery has finished charging, the terminal can stop charging the lithium ion battery through the IC chip, as shown in fig. 2, the charging current curve drops to coincide with the horizontal axis (0), as shown in fig. 3, and the charging voltage curve is temporarily maintained at the saturation voltage state.
In fig. 2, the lithium ion battery of the terminal is exemplified from the first charging stage, and in practical applications, when the terminal starts to charge the lithium ion battery, it may first determine, according to the electric quantity of the lithium ion battery, from which stage of the four charging stages the lithium ion battery starts to be charged.
In the above charging process, for the second stage and the third stage of the charging, the charging current and the charging voltage may be controlled by using the IC chip, for example, the charging current is adjusted from the trickle current to the maximum charging current by the IC chip. And maintaining the charging voltage at a saturation voltage by the IC chip. When the above process is stopped, whether the battery capacity of the terminal reaches 100% or not can be judged through the IC chip, or whether the battery voltage of the terminal reaches the saturation voltage or not can be judged through the IC chip, so that the charging is stopped.
The above describes an exemplary procedure for charging a lithium ion battery in the related art. In daily life, the lithium ion battery of the terminal may be subjected to factors such as use, detachment, collision and the like, and the lithium ion battery has defects, for example, in the third stage of the charging process, the saturation voltage cannot be reached, so that the IC chip in the terminal cannot terminate the charging process, that is, the terminal cannot enter the fourth stage, and the terminal cannot stop the charging process of the lithium ion battery of the terminal through the IC chip, so that the terminal may be in a state of charging the battery of the terminal all the time. If the user does not actively interrupt the charging process, the situation that the lithium ion battery is overcharged in the terminal may occur, and the electric core of the lithium ion battery is short-circuited to cause damages such as explosion and the like.
In order to avoid the problems that the IC chip of the terminal cannot stop the charging process due to the fact that the battery is damaged, the battery in the terminal is overcharged and the like, the method and the device for charging the battery can stop the charging process of the battery in time. Referring to fig. 4, a flowchart of a method of stopping charging according to an exemplary embodiment of the present application is shown. The method can be applied to the terminal in the charging scenario shown in fig. 1, and the battery needs to go through 4 stages shown in fig. 2 and 3 when charging. As shown in fig. 4, the charge stop method may include the following steps:
step 401, measuring a current value of the constant current charging current.
Wherein the constant current charging current is a constant magnitude charging current used during charging of the battery.
The terminal can measure the current value of the constant current charging current through an IC chip in the terminal. Optionally, the current flowing through the circuit in the step may be a current (I) flowing through a circuit of a portion where the positive electrode and the negative electrode of the battery are directly connected to the charger when the battery is charged in the second stage by the constant current charging method during the charging process of the batteryCharging device)。
And step 402, calculating the charging completion time according to the current value of the constant current charging current.
Wherein the charge completion time is used to indicate a time from a current charging time to when the battery level becomes a full charge state. Optionally, the charging completion time may be a time corresponding to when the battery is fully charged from a time corresponding to when the measured current value is measured to a time corresponding to when the battery is fully charged. Alternatively, the charging completion time may be a time period corresponding to the battery full charge process from a time corresponding to when the current value of the constant current charging current is measured to when the battery is fully charged. For example, when the time corresponding to the measurement of the constant current charging current in step 401 is 15: 35 minutes, and 60 minutes is required from the time when the battery is fully charged, the charging completion time may be 16: 35 minutes from the time corresponding to the measurement of the current value of the constant current charging current to the time when the battery is fully charged. If a time period is employed here as the charge completion time, the charge completion time here may be 60 minutes or 1 hour or the like.
In step 403, a sleep start time is determined according to the charge completion time.
The sleep starting time is used for indicating the time when the battery is in a charging disconnection state under the state that the battery is connected with the charger. Alternatively, the sleep start time may be from the start time of the charge completion time.
Alternatively, the sleep start time may be a time obtained by adding a preset time period to the charge completion time, for example, when the charge completion time is 16: 35 minutes and the preset time period is 60 minutes, the sleep start time is 35 minutes from 17: 17.
At step 404, charging of the battery is stopped based on the sleep start time.
The stopping of charging the battery is to cut off the connection between the battery and the power supply. That is, when the sleep start time comes, the connection between the battery and the power supply can be automatically cut off, so that the battery is not charged by the charger, and the occurrence of the overcharge of the battery is avoided.
In summary, the current value of the constant current charging current is measured; and calculating the time for finishing charging the battery according to the current value of the constant current charging current, determining the dormancy starting time required to be set in the charging process according to the calculated charging finishing time, and stopping charging the battery according to the dormancy starting time. According to the method and the device, the charging completion time and the determined dormancy starting time are obtained through calculation, the battery can be stopped to be charged when the dormancy starting time is started, the overcharge condition of the battery is avoided, the number of times of recycling of the battery is increased, and the service life of the battery is prolonged.
Taking the above battery as a lithium ion battery installed in the terminal, and the main body for executing each step is a processor in the terminal, the scheme shown in fig. 4 is described in detail by taking as an example that the lithium ion battery of the terminal is charged according to the charging stop method provided by the present application.
Referring to fig. 5, a flowchart of a method of stopping charging according to an exemplary embodiment of the present application is shown. The method may be executed by a processor in the terminal shown in fig. 1, and as shown in fig. 5, the charging stop method may include the following steps:
step 501, when the terminal meets the continuous charging condition, measuring the current value of the constant current charging current.
Wherein the constant current charging current is a constant magnitude charging current used during charging of the battery.
After the user connects the terminal with the charger and turns on the power supply, the terminal may enter a normal charging state, and determine from which of the four stages shown in fig. 1 the terminal starts to charge according to the current electric quantity or voltage value of the battery in the terminal. For example, as in the charging voltage curve shown in fig. 3 above, when the battery voltage in the terminal is below 3V, then charging is performed from the first stage.
Optionally, the continuous charging condition includes: a first charging condition, a second charging condition, and a third charging condition. The first charging condition is used for indicating that the terminal is in a first state, and the first state is used for indicating a state when the ambient light intensity of the terminal is lower than a first ambient light intensity threshold value; the second charging condition is used for indicating that a display screen of the terminal is in a turned-off state; the third charge condition is indicative of the current charge phase of the battery being a charge phase subsequent to the trickle charge phase.
That is, during the above-mentioned process of starting charging the battery, the terminal may detect whether or not it satisfies the above-mentioned continuous charging condition, and determine whether or not it measures the current value of the constant current charging current according to the determination of the continuous charging condition.
In one possible implementation manner, for whether the terminal satisfies a first charging condition of the continuous charging conditions, the terminal may detect whether the intensity of ambient light around the terminal is lower than a first preset threshold value through an ambient light sensor; when the intensity of ambient light around the terminal is lower than a first preset threshold value, the terminal is determined to be in a first state. Alternatively, the first state may be a state where the environment around the terminal is darker, for example, the first preset threshold is set to 8cd (candela), and when the intensity of the environment around the terminal is lower than 8cd, the terminal is determined to be in the first state, that is, the terminal satisfies the first charging condition in the continuous charging condition. In a possible implementation manner, for whether the terminal satisfies the second charging condition in the continuous charging condition, that is, whether the display screen of the terminal is in an off state, the terminal may directly determine whether the switch of the display screen of the control terminal is in the off state, and when the switch of the display screen of the control terminal is in the off state, determine whether the display screen of the terminal is in the off state, that is, the terminal satisfies the second charging condition in the continuous charging condition. The first preset threshold may be set in the terminal in advance by a developer or an operation and maintenance person.
In one possible implementation, the terminal may determine whether the terminal satisfies a third charging condition of the continuous charging conditions, that is, whether a current charging phase of the battery in the terminal is a charging phase after the trickle charging phase, by determining a current voltage value of the battery, for example, when a charging voltage curve of the battery is as shown in fig. 3, the terminal may determine that the current charging phase of the battery is a charging phase after the trickle charging phase by determining whether the current voltage value of the battery is higher than the trickle threshold. That is, when the current voltage value of the battery is higher than the trickle threshold, it means that the current charging phase of the battery is a charging phase after the trickle charging phase, that is, the terminal satisfies the third charging condition among the continuous charging conditions. Optionally, whether the current charging phase of the battery is the charging phase after the trickle charging phase may also be determined by the current charging current of the battery, for example, when the charging current curve of the battery is as shown in fig. 2, the terminal may periodically measure the current value of the charging current during the charging process of the battery, and determine whether the current charging phase of the battery is the charging phase after the trickle charging phase by determining whether the span between two adjacent measured charging currents is higher than the preset current threshold. That is, when the span between the current values of the charging currents measured two adjacent times is higher than the preset current threshold, it indicates that the current charging phase of the battery is the charging phase after the trickle charging phase, i.e., the terminal satisfies the third charging condition among the continuous charging conditions. The preset current threshold may be set in the terminal in advance by a developer or an operation and maintenance person.
When the terminal satisfies all of the continuous charging conditions, a current value of the constant current charging current is measured. That is, the terminal may perform the step of measuring the current value of the constant current charging current when the terminal is in the first state, the display screen of the terminal is in the off state, and whether the current charging stage of the battery is the charging stage subsequent to the trickle charging stage. Optionally, when detecting whether the terminal itself meets the continuous charging condition, the terminal may detect periodically, that is, the terminal may detect once every preset time interval, and optionally, if the terminal has already obtained a sleep start time at this time, before the sleep start time is ended, the terminal may temporarily stop detecting whether the terminal itself meets the continuous charging condition.
In a possible implementation manner, the terminal may obtain the maximum charging current value (I) that the charger can supportCharging device) And according to ICharging deviceAnd terminal self-supported IMaximum ofComparing to determine a constant current charging current value (I) for subsequent useConstant current). For example, when ICharging deviceGreater than terminal self-supported IMaximum ofThen I used subsequentlyConstant currentI for terminal self-supportMaximum of(ii) a When I isCharging deviceLess than terminal self-supported IMaximum ofThen I used subsequentlyConstant currentIs ICharging device. Alternatively, the charger may actively support its own ICharging deviceSending to the terminal, the terminal correspondingly receives the ICharging deviceThereby obtaining ICharging deviceOr the terminal can measure and acquire I by itselfCharging device. Alternatively, for the above IMaximum ofWhen the IC chip in the terminal stores the I supported by the terminalMaximum ofThe terminal can directly obtain the I from the IC chipMaximum of
In a possible implementation manner, the terminal can also directly measure the positive and negative electrodes of the self batteryThe value of the current flowing through the circuit in the portion directly connected to the charger was taken as IConstant current. That is, the current when actually charging the battery does not reach ICharging deviceOr IMaximum ofIn this case, the current value flowing through the circuit of the portion where the positive electrode and the negative electrode of the battery are directly connected to the charger may be directly measured, and the measured current value may be regarded as IConstant current
And 502, acquiring constant current charging time according to the current value of the constant current charging current.
The constant current charging time is used for indicating the time lasting when the battery is charged in a constant current charging mode in the charging process.
As can be seen from fig. 2 and 3, the constant current charging time may be obtained by dividing the amount of electricity charged to the battery by the current value of the constant current charging current during the constant current charging process.
In a possible implementation manner, the current electric quantity percentage of the battery can be obtained, and the current electric quantity percentage is used for indicating the percentage of the currently owned electric quantity of the battery to the capacity of the battery; acquiring the constant voltage charging percentage, wherein the constant voltage charging percentage is the percentage of the charged electric quantity in the constant voltage charging process of the battery to the battery capacity; and acquiring the constant current charging time according to the electric quantity percentage, the constant voltage charging percentage and the current value of the constant current charging current.
For example, when the current electric quantity is 600mA and the battery capacity is 3000mA, the terminal may calculate that the current electric quantity percentage of the battery is 20%. The constant voltage charging percentage can be directly obtained from an IC chip installed in the terminal, for example, a terminal manufacturer can detect a battery in the terminal in advance and obtain a charging curve of the battery in the terminal, thereby calculating the percentage of the amount of electricity charged in the constant voltage charging stage to the capacity of the battery, and recording the value in the IC chip of the terminal.
Alternatively, the amount of electricity charged to the battery in the constant current charging stage may be calculated by the following equation [1 ].
TConstant charger=P*(1-P1-P2)/(IConstant current); [1]
As shown in the above formula, TConstant chargerRepresents the constant current charging time, P represents the battery capacity, P1Representing the current charge percentage of the battery, P2Represents the constant voltage charge percentage.
In step 503, the constant voltage charging time is obtained.
The constant voltage charging time is used for indicating the time for continuously charging the battery when the battery voltage is kept unchanged in the charging process of the battery;
alternatively, the constant voltage charging time may be similar to the above-described constant voltage charging percentage, or the constant voltage charging time of the battery may be recorded in advance in the IC chip of the terminal. When the terminal needs to be acquired, the terminal can be directly acquired from the IC chip.
And step 504, summing the constant-current charging time and the constant-voltage charging time, and calculating the charging completion time.
As can be seen from fig. 2 and fig. 3, the charging completion time of the battery may be obtained by summing the time of each of the trickle phase, the constant-current charging phase, the constant-voltage charging phase and the full-charging phase, and therefore, in the present embodiment, the charging completion time of the battery is calculated after the trickle phase, so that the charging completion time of the battery may be obtained by summing the respective time durations of the constant-current charging phase, the constant-voltage charging phase and the full-charging phase, and optionally, in the time of the full-charging phase, since the terminal is fully charged, the present embodiment does not calculate the charging completion time of the battery by summing the obtained constant-current charging time and the obtained constant-voltage charging time. As shown in equation 2, the charge completion time of the battery can be expressed as:
Tcharging device=TConstant charger+TConstant voltage charging time; [2]
Wherein, TCharging deviceRepresents the charge completion time of the battery, TConstant voltage charging timeRepresenting the constant voltage charging time obtained above.
Optionally, the terminal may further obtain the obtained TCharging deviceConversion to and fromTime corresponds to 24 hours. For example, the terminal may obtain the current time TWhen in useAccording to the formula 3, the charging completion time T of 24 hours system is calculated24
Figure BDA0002149732940000111
For example, the current time TWhen in useIs 15 points and 12 points, and the T is calculated according to the stepsCharging (CN)When 2 hours, then T24At 17 point and 12 points, e.g. the current time TWhen in useIs 22 points and 12 points, and the T is calculated according to the stepsCharging deviceWhen the time is 4 hours, then T24Is 02 points and 12 points.
Step 505, compatible time is obtained.
And the compatible time is used for indicating the time for continuing charging the battery after the constant voltage charging time is finished. That is, after the constant voltage charging stage is finished, the terminal may consume a certain amount of battery power in a standby state, or when a program (including a system program and a third-party application program) runs inside the terminal, the terminal itself consumes in the charging process.
In order to compensate for the consumption, optionally, compatible time may be set in the terminal, where the compatible time is time required for the terminal to replenish the electric quantity consumed by standby waiting after the constant voltage charging time is over in the standby state; optionally, different terminal manufacturers may set their respective compatible times in advance. When the terminal needs to be acquired, the terminal can be directly acquired from the IC chip.
In a possible implementation manner, when the terminal acquires the compatible time set in the IC chip, and at this time, when the terminal calculates the charging completion time, the compatible time needs to be added, that is, the above formula 2 may be modified to be formula 4 for calculation.
TCharging device=TConstant charger+TConstant voltage charging time+TCompatible time; [4]
Wherein, TCompatible timeRepresenting the compatibility time obtained above.
That is, step 504 may be replaced with: and summing the constant-current charging time, the constant-voltage charging time and the compatible time, and calculating the charging completion time.
Step 506, a first set time is obtained.
The first set time is used for indicating the time for charging the battery from the current charging time to the first set time.
In an implementation manner, the terminal may obtain the alarm clock time set in the terminal, and obtain the alarm clock time as the first set time. For example, the terminal may acquire a time corresponding to an alarm clock closest to the current charging time as the first set time. For example, the alarm clock in the terminal has a 7-point alarm clock and an 8-point alarm clock, and the terminal can acquire the time (7 points) corresponding to the 7-point alarm clock as the first set time.
In one possible implementation manner, the terminal may obtain a timed charging time set in the terminal, and obtain the timed charging time as the first set time, wherein the timed charging time is used for indicating a fixed ending time of charging the battery at this time. For example, the terminal may set a corresponding charging end time, and the user may open a corresponding setting interface in the terminal to set the charging end time of the charging. Please refer to fig. 6, which illustrates an interface diagram for setting a charging end time according to an embodiment of the present application. As shown in fig. 6, the setting interface 600 includes a start time input box 601, an end time input box 602, a save control 603, and a cancel control 604. The user inputs 13 o ' clock 30 minutes in the start time input box 601, inputs 17 o ' clock 30 minutes in the end time input box 602, and clicks the saving control 603, and accordingly, in the charging process, the terminal can acquire the 17 o ' clock 30 minutes therein as the first set time. Optionally, the set charging end time may also be replaced by a set charging duration, for example, if the charging duration set in the user setting interface is 8 hours, the terminal may obtain the set charging duration, and calculate the first set time according to the current time. Alternatively, the manner of calculating the first set time here may refer to the above formula[3]I.e. wherein TCharging deviceAnd replacing the obtained charging time length. For example, if the current time is 22 o 'clock and 12 minutes, and the time that the terminal acquires the timer is 8 hours, the first set time calculated may be 6 o' clock and 12 minutes.
In a possible implementation manner, the terminal may further obtain the stored terminal usage time, and obtain the terminal usage time as the first set time. For example, the terminal may store the corresponding terminal usage time in the terminal according to the usage situation of the user, for example, if a user frequently uses the terminal from 18 pm to 23 pm, the terminal may acquire the 18 pm as the terminal usage time and store the terminal usage time, and accordingly, the terminal may acquire the 18 pm as the first preset time.
In step 507, it is detected whether the charging completion time is earlier than a first set time.
Optionally, the terminal may compare the acquired charging completion time with a first set time to obtain a size relationship between the acquired charging completion time and the first set time, for example, when the charging completion time acquired by the terminal is 6 points and the first set time is 8 points, the charging completion time is equivalent to be earlier than the first set time; when the charging completion time acquired by the terminal is 8 o 'clock and the first set time is 6 o' clock, the charging completion time is later than the first set time. And when the charging completion time is earlier than the first set time, executing step 508, otherwise, returning to step 501, namely waiting for detecting whether the terminal meets the preset condition next time, and executing the step of the charging stop method provided by the application to the terminal.
In step 508, the charging completion time is obtained as the sleep start time.
The sleep start time is used for indicating the time when the battery is in a charging disconnection state under the state that the battery is connected with the charger.
That is, when the charge completion time is earlier than the first set time, the above-obtained charge completion time is obtained as the sleep start time.
Optionally, when the charging completion time is earlier than the first setting time, the terminal may further obtain the sleep time according to the first setting time and the charging completion time. The sleep time is used for indicating the time length of the battery in the charging disconnection state under the state that the battery is connected with the charger.
In one possible implementation manner, the terminal obtains a difference value between the first set time and the charging completion time as the sleep time. The terminal has completed charging before the first set time comes, and at this time, in order to avoid overcharging the terminal, a sleep time during which charging of the terminal battery is stopped may be set. For example, when the charging completion time acquired by the terminal is 6 points and the first set time is 8 points, which corresponds to the charging completion time being earlier than the first set time, the terminal may calculate a time difference between the acquired first set time and the charging completion time, and acquire the time difference as a sleep time, that is, a sleep time from 6 points to 8 points.
In step 509, the battery is stopped from being charged according to the sleep start time.
That is, when the sleep start time comes, the battery is stopped from being charged. For example, if the current time acquired by the terminal is 23 points and the sleep start time determined in the above step is 6 points, the terminal may stop charging the battery at 6 points.
In one possible implementation, at the beginning of the sleep start time, the terminal may set the USB interface of the charger to a first off state when the battery is charged, where the first off state is a state in which the USB interface of the charger is not powered. For example, the interface connecting the charger and the power supply is a USB interface, and the terminal can control the USB interface between the charger and the power supply to be in a disconnected state, that is, the terminal battery cannot be charged through the USB interface. Optionally, the interface that the charger links to each other with the terminal is the USB Type-C interface, and the terminal also can control the interface that the charger links to each other with the terminal to be that the USB Type-C interface is in the off-state, namely, can not charge the terminal battery through this USB Type-C interface this moment. Optionally, the interface between the charger and the terminal is a Micro USB interface, and the terminal may also control the interface between the charger and the terminal to be in a disconnected state, that is, the battery of the terminal cannot be charged through the Micro USB interface. Optionally, the interface that the charger is connected to the terminal is a Lightning interface, and the terminal may also control the interface that the charger is connected to the terminal to be in an off state, that is, the battery of the terminal cannot be charged through the Lightning interface at this time.
Optionally, after the sleep start time, when the sleep time is over, and the terminal may further control to charge the battery, the USB interface of the charger is set to change from the first disconnection state to a first connection state, where the first connection state is a state in which the USB interface of the charger may be turned on. That is, the terminal may control the USB interface of the charger to change from the off-state to the on-state, i.e., the terminal battery may be charged through the USB interface at this time.
Optionally, the terminal may be controlled to enter the sleep state while the battery is stopped being charged. That is, during the sleep time, the control terminal is in a sleep state during the sleep time. Since the terminal cannot enter the sleep state during the charging process, the terminal can be controlled to enter the sleep state after the sleep start time is reached.
Optionally, after the battery is stopped being charged, the terminal may exit the sleep state. In a possible implementation manner, before the end of the sleep time, the terminal may receive some operations of the terminal by the user, for example, lighting a display screen of the terminal, and receiving an incoming call, so that the sleep state of the terminal is interrupted in the sleep time, and the terminal re-executes the above steps. Or, waiting for the end of the sleep time, and the terminal automatically exits from the sleep state. Optionally, the terminal may preset a callback function, and the callback function may be used to pull up the above steps again when the sleep time is over or the sleep state of the terminal is interrupted in the sleep time this time.
In summary, the current value of the constant current charging current is measured, the time for completing the charging of the battery is calculated according to the current value of the constant current charging current, the hibernation starting time required to be set in the charging process is determined according to the calculated charging completing time, and the charging of the battery is stopped according to the hibernation starting time. According to the method and the device, the charging completion time and the determined dormancy starting time are obtained through calculation, the battery can be stopped to be charged when the dormancy starting time is started, the overcharge condition of the battery is avoided, the number of times of recycling of the battery is increased, and the service life of the battery is prolonged.
It should be noted that, when the IC chip in the terminal also has the capability of executing the above steps, the above steps may also be executed by the IC chip in the terminal. Alternatively, the charging process of the terminal may be controlled by another terminal, that is, the data acquired in the above step is sent by the terminal to another terminal other than the terminal itself, the other terminal calculates the sleep start time, and performs the control of stopping charging for the terminal at the corresponding sleep start time.
Alternatively, if the charging process of other types of batteries is designed as the charging flow shown in fig. 1, that is, the battery (e.g., storage battery, etc.) is also charged according to the stages shown in fig. 1, the charging stop method provided in the present application may also be adopted to prevent the battery from being overcharged. That is, the present application is also applicable and should fall within the scope of the present application.
Optionally, the charging stop method provided in this application may calculate the sleep time before charging, and when the terminal starts charging, the terminal performs the calculation according to each time point, or may calculate and store the sleep time in real time during the charging process, or may calculate the sleep time after the terminal actually charges the battery, which is not limited in this application.
Referring to fig. 7, a flowchart of a method of stopping charging according to an exemplary embodiment of the present application is shown. The method is executed by a processor in a mobile phone being charged in daily life, as shown in fig. 7, the charging stop method may include the following steps:
in step 701, the mobile phone determines whether it meets the continuous charging condition.
Optionally, when determining whether the mobile phone itself meets the continuous charging condition, the mobile phone may determine, similarly to step 501, by using at least one determination condition, and determine that the mobile phone itself meets the continuous charging condition only when all determination conditions are met. For example, the mobile phone may detect the ambient light intensity around itself through an internal ambient light sensor, and compare the ambient light intensity with an internal ambient light intensity threshold, and the mobile phone may detect whether the display screen of the mobile phone is in an off state or not. When the detected ambient light intensity around the mobile phone is lower than the ambient light intensity threshold value and the display screen of the mobile phone is in an off state, the mobile phone can be considered to meet the continuous charging condition. And when the mobile phone judges that the mobile phone does not meet the continuous charging condition, ending the process and waiting for the start of the next process.
In step 702, the mobile phone determines whether the trickle phase has ended during the charging process of the battery.
Optionally, if the battery charging of the mobile phone starts from the trickle phase, the mobile phone may determine whether the trickle phase of the mobile phone itself has ended, and if the battery charging of the mobile phone directly starts from the subsequent phase at this time, the mobile phone may directly determine that the trickle charging phase of the mobile phone itself has ended. And when the trickle phase is not finished in the charging process of the battery, the mobile phone finishes the process and waits for the start of the next process.
In step 704, the mobile phone calculates the charging completion time.
Optionally, the mobile phone may calculate the charging completion time of the mobile phone according to the descriptions in step 501 to step 505.
Step 705, the mobile phone obtains a time corresponding to a first alarm clock set in the current terminal.
The first alarm clock is the alarm clock which is set in the terminal and is closest to the current time.
Optionally, when three alarm clocks, namely 7-point alarm clocks, 30-point alarm clocks and 8-point alarm clocks, are set in the mobile phone, if the current time is 22 points, the first alarm clock is the alarm clock corresponding to the 7 points, and the time corresponding to the first alarm clock acquired by the mobile phone is 7 points.
In step 706, the mobile phone determines a size relationship between the charging completion time and the time corresponding to the first alarm clock.
Optionally, when the charging completion time is greater than the time corresponding to the first alarm clock, the sleep time does not need to be set for the mobile phone, and the battery of the mobile phone is directly charged. When the charging completion time is less than the time corresponding to the first alarm clock, step 707 is executed. Otherwise, ending.
In step 707, the handset obtains the sleep time.
And the mobile phone calculates the difference between the time corresponding to the first alarm clock and the charging completion time to obtain the time to sleep. I.e., from the sleep start time to the first set time.
Step 708, stopping charging the mobile phone within the sleep time.
In the sleep time, the mobile phone can automatically disconnect charging and enter a sleep state, so that the phenomenon of overcharging does not occur when the mobile phone battery is charged.
In summary, the charging completion time and the dormancy time obtained by the mobile phone calculation can be used for avoiding the overcharge of the mobile phone battery in a determined time under the condition that the mobile phone battery is fully charged, so that the recycling times of the mobile phone battery are increased, and the service life of the mobile phone battery is prolonged. For example, when a user has a rest at night and charges a mobile phone, the method provided by the application can prevent the mobile phone from being overcharged.
In addition, through the charging completion time and the dormancy starting time, even if the battery of the terminal is damaged and cannot reach a saturation state, the charging of the terminal can be normally stopped, and the reliability of the terminal for stopping the charging is improved. And in the sleep time, the control terminal is in the sleep state, and the consumption of the terminal to the battery in the breath screen state can be further reduced.
The following are embodiments of the apparatus of the present application that may be used to perform embodiments of the method of the present application. For details which are not disclosed in the embodiments of the apparatus of the present application, reference is made to the embodiments of the method of the present application.
Referring to fig. 8, a block diagram of a charging stop device according to an exemplary embodiment of the present application is shown. The charging stop apparatus 800 may be used in a terminal to perform all or part of the steps performed by the terminal in the method provided by the embodiment shown in fig. 4, 5 or 7. The charge stopping device 800 may include: current value measuring module 810, charging completion time calculating module 820, sleep start time determining module 830, and charging stop module 840.
The current value measuring module 810 is configured to measure a current value of a constant current charging current, where the constant current charging current is a charging current with a constant magnitude used in a battery charging process;
the charging completion time calculation module 820 is configured to calculate a charging completion time according to the current value, where the charging completion time is used to indicate a time from a current charging time to a time when the battery capacity changes to a full state;
the sleep start time determining module 830 is configured to determine a sleep start time according to the charging completion time, where the sleep start time is used to indicate a time when the battery is in a charging disconnected state in a state where the battery is connected to a charger;
the charging stop module 840 is configured to stop charging the battery according to the hibernation start time.
To sum up, this application can stop to the battery charging when dormancy inception time begins through the charge completion time that obtains and the dormancy inception time of confirming of calculation, avoids the emergence to the overcharge condition of battery, has increased the recycling number of times of battery, has improved the life of battery.
Alternatively, please refer to fig. 9, which shows a block diagram of a charging stop device related to fig. 8 according to an exemplary embodiment of the present application. As shown in fig. 9, the charging completion time calculation module 820 includes: a constant current charging time acquisition unit 821, a constant voltage charging time acquisition unit 822, and a first calculation unit 823.
The constant current charging time obtaining unit 821 is configured to obtain a constant current charging time according to the current value, where the constant current charging time is used to indicate a time duration when the battery is charged by a constant current charging method in a charging process;
the constant voltage charging time obtaining unit 822 is configured to obtain a constant voltage charging time, where the constant voltage charging time is used to indicate a time for continuing to charge the battery when the battery voltage remains unchanged during the charging process of the battery;
the first calculating unit 823 is configured to sum the constant current charging time and the constant voltage charging time, and calculate the charging completion time.
Optionally, the constant current charging time obtaining unit 821 includes: a power percentage acquiring sub-unit 821a, a constant voltage charging percentage acquiring sub-unit 821b, and a constant current charging time acquiring sub-unit 821 c.
The electric quantity percentage obtaining subunit 821a is configured to obtain a current electric quantity percentage of the battery, where the current electric quantity percentage is used to indicate a percentage of a currently owned electric quantity of the battery to the capacity of the battery;
the constant voltage charging percentage obtaining subunit 821b is configured to obtain a constant voltage charging percentage, where the constant voltage charging percentage is a percentage of an amount of electricity charged in a constant voltage charging process performed on the battery to the capacity of the battery;
the constant current charging time obtaining subunit 821c is configured to obtain the constant current charging time according to the electric quantity percentage, the constant voltage charging percentage, and the current value.
Optionally, the charging stop apparatus 800 further includes: a compatible time acquisition module 850;
the compatible time acquiring module 850 is configured to acquire a compatible time, where the compatible time is used to indicate a time for continuing to charge the battery after the constant voltage charging time is ended;
the first calculating unit 823 is further configured to sum the constant current charging time, the constant voltage charging time, and the compatible time, and calculate the charging completion time.
Optionally, the battery is installed in a terminal, and the current value measuring module 810 is further configured to measure a current value of the constant current charging current when the terminal meets a continuous charging condition.
Optionally, the continuous charging condition includes: a first charging condition, a second charging condition, and a third charging condition;
the first charging condition is used for indicating that the terminal is in a first state, and the first state is used for indicating a state when the ambient light intensity of the terminal is lower than a first ambient light intensity threshold value;
the second charging condition is used for indicating that a display screen of the terminal is in a turned-off state;
the third charging condition is to indicate that the current charging phase of the battery is a charging phase subsequent to the trickle charging phase.
Optionally, the sleep start time determining module 830 is further configured to set the USB interface of the charger to a first off state when the sleep start time is reached, where the first off state is a state in which the USB interface of the charger is not powered on.
Optionally, the sleep start time determining module 830 includes: a first set time acquisition unit 831, a detection unit 832, and a sleep start time determination unit 833.
The first set time acquisition unit 831 is configured to acquire a first set time indicating a time for charging the battery from a current charging time to the first set time;
the detecting unit 832, configured to determine whether the charging completion time is earlier than the first set time;
the sleep start time determining unit 833 is configured to determine the charge completion time as the sleep start time when the charge completion time is earlier than the first set time.
Optionally, the charging stop apparatus 800 further includes: a sleep time acquisition module 860 and a sleep state control module 870;
the sleep time acquiring module 860 is configured to acquire a sleep time according to the first set time and the charge completion time when the charge completion time is earlier than the first set time, where the sleep time is used to indicate a time length that the battery is in a charge disconnection state in a state where the battery is connected to a charger;
the sleep state control module 870 is configured to control the terminal to be in a sleep state during the sleep time.
Optionally, the first set time obtaining unit 831 is configured to obtain an alarm time set in the terminal, and obtain the alarm time as the first set time; alternatively, the first and second electrodes may be,
the first set time acquiring unit 831 is configured to acquire a timed charging time set in the terminal, and acquire the timed charging time as the first set time, where the timed charging time is used to indicate a fixed end time of charging the battery at this time; alternatively, the first and second liquid crystal display panels may be,
the first setting time acquiring unit 831 is configured to acquire a stored terminal usage time, and acquire the terminal usage time as the first setting time.
Referring to fig. 10, which shows a schematic structural diagram of a terminal provided in an exemplary embodiment of the present application, as shown in fig. 10, the terminal includes a processor 1010, a memory 1020, a display component 1030, and a sensor component 1040, where the display component 1030 is configured to display an interface of a program running in a foreground in the terminal, and the sensor component 1040 is configured to collect respective sensor data. The memory 1020 stores at least one instruction, and the instruction is loaded and executed by the processor 1010 to implement some or all of the steps performed by the terminal in the charging stop method according to the above embodiments.
The embodiment of the present application further provides a computer-readable medium, where at least one instruction is stored, and the at least one instruction is loaded and executed by the processor to implement all or part of the steps performed by the terminal, of the charging stop method according to the above embodiments.
The embodiment of the present application further provides a computer program product, where at least one instruction is stored, and the at least one instruction is loaded and executed by the processor to implement all or part of the steps performed by the terminal, of the charging stop method according to the above embodiments.
It should be noted that: in the above-described charging stop apparatus, when the charging stop method is executed, the above-described embodiments are merely illustrated, and in an actual program, the above-described function distribution may be performed by different functional modules according to needs, that is, the internal structure of the apparatus may be divided into different functional modules to perform all or part of the above-described functions. In addition, the apparatus and method embodiments provided by the above embodiments belong to the same concept, and specific implementation processes thereof are described in the method embodiments for details, which are not described herein again.
The above-mentioned serial numbers of the embodiments of the present application are merely for description, and do not represent the advantages and disadvantages of the embodiments.
It will be understood by those skilled in the art that all or part of the steps for implementing the above embodiments may be implemented by hardware, or may be implemented by a program instructing relevant hardware, where the program may be stored in a computer-readable storage medium, and the above-mentioned storage medium may be a read-only memory, a magnetic disk or an optical disk, etc.
The above description is only exemplary of the present application and should not be taken as limiting the present application, as any modification, equivalent replacement, or improvement made within the spirit and principle of the present application should be included in the protection scope of the present application.

Claims (11)

1. A charge stop method, comprising:
when the terminal meets the continuous charging condition, measuring the current value flowing in a circuit of a part directly connected with the charger from the positive electrode and the negative electrode of the battery as the current value of constant-current charging current, wherein the constant-current charging current is constant charging current adopted in the charging process of the battery; the continuous charging condition includes a first charging condition, a second charging condition, and a third charging condition; the first charging condition is used for indicating that the terminal is in a first state, and the first state is used for indicating a state when the ambient light intensity of the terminal is lower than a first ambient light intensity threshold value; the second charging condition is used for indicating that a display screen of the terminal is in a turned-off state; the third charging condition is to indicate that a current charging phase of the battery is a charging phase following a trickle charging phase; the battery is installed in the terminal;
calculating charging completion time according to the current value, wherein the charging completion time is used for indicating the time from the current charging time to the time when the electric quantity of the battery is changed into a full-charge state;
determining a sleep start time according to the charging completion time, wherein the sleep start time is used for indicating the time when the battery is in a charging disconnection state under the state that the battery is connected with a charger;
stopping charging the battery according to the sleep start time.
2. The method of claim 1, wherein said calculating a charge completion time from said current value comprises:
acquiring constant current charging time according to the current value, wherein the constant current charging time is used for indicating the time lasting when the battery is charged by adopting a constant current charging mode in the charging process;
acquiring constant voltage charging time, wherein the constant voltage charging time is used for indicating the time for continuously charging the battery when the battery voltage is kept unchanged in the charging process of the battery;
and summing the constant-current charging time and the constant-voltage charging time, and calculating the charging completion time.
3. The method of claim 2, wherein the obtaining the constant current charging time according to the current value comprises:
acquiring the current electric quantity percentage of the battery, wherein the current electric quantity percentage is used for indicating the percentage of the current owned electric quantity of the battery to the capacity of the battery;
acquiring a constant voltage charging percentage, wherein the constant voltage charging percentage is the percentage of the charged electric quantity in the constant voltage charging process of the battery to the capacity of the battery;
and acquiring the constant current charging time according to the electric quantity percentage, the constant voltage charging percentage and the current value.
4. The method of claim 2, further comprising:
acquiring compatible time, wherein the compatible time is used for indicating the time for continuing to charge the battery after the constant voltage charging time is finished;
the summing the constant current charging time and the constant voltage charging time to calculate the charging completion time includes:
and summing the constant-current charging time, the constant-voltage charging time and the compatible time, and calculating the charging completion time.
5. The method of claim 1, wherein said stopping charging the battery according to the sleep start time comprises:
when the sleep start time is reached, setting a Universal Serial Bus (USB) interface of the charger to a first disconnected state, wherein the first disconnected state is a state that the USB interface of the charger cannot be electrified.
6. The method according to any one of claims 1 to 5, wherein determining the sleep start time according to the charging completion time comprises:
acquiring first set time, wherein the first set time is used for indicating the time for charging the battery from the current charging time to the first set time;
detecting whether the charging completion time is earlier than the first set time;
determining the charging completion time as the sleep start time when the charging completion time is earlier than the first set time.
7. The method according to claim 6, wherein when the charge completion time is earlier than the first set time, the method further comprises:
acquiring sleep time according to the first set time and the charging completion time, wherein the sleep time is used for indicating the time length of the battery in a charging disconnection state under the state that the battery is connected with a charger;
and controlling the terminal to be in a dormant state in the dormant time.
8. The method of claim 6, wherein obtaining the first set time comprises:
acquiring alarm clock time set in the terminal, and acquiring the alarm clock time as the first set time; alternatively, the first and second liquid crystal display panels may be,
acquiring the timing charging time set in the terminal, and acquiring the timing charging time as the first set time, wherein the timing charging time is used for indicating the fixed ending time of charging the battery at this time; alternatively, the first and second electrodes may be,
and acquiring the stored terminal service time, and acquiring the terminal service time as the first set time.
9. A charge stop device, characterized in that the device comprises:
the terminal comprises a current value measuring module, a charging module and a control module, wherein the current value measuring module is used for measuring a current value flowing in a circuit of a part where a positive electrode and a negative electrode of a battery are directly connected with a charger when the terminal meets a continuous charging condition, and the current value is used as a current value of a constant-current charging current, and the constant-current charging current is a constant-magnitude charging current adopted in the charging process of the battery; the continuous charging conditions include a first charging condition, a second charging condition, and a third charging condition; the first charging condition is used for indicating that the terminal is in a first state, and the first state is used for indicating a state when the ambient light intensity of the terminal is lower than a first ambient light intensity threshold value; the second charging condition is used for indicating that a display screen of the terminal is in a turned-off state; the third charging condition is to indicate that a current charging phase of the battery is a charging phase following a trickle charging phase; the battery is installed in the terminal;
the charging completion time calculation module is used for calculating charging completion time according to the current value, and the charging completion time is used for indicating the time from the current charging time to the time when the electric quantity of the battery is changed into a full-charge state;
a sleep start time determination module, configured to determine a sleep start time according to the charge completion time, where the sleep start time is used to indicate a time when the battery is in a charge disconnected state in a state where the battery is connected to a charger;
and the charging stopping module is used for stopping charging the battery according to the dormancy starting time.
10. A computer device comprising a processor and a memory, the memory having stored therein at least one instruction, at least one program, a set of codes, or a set of instructions, the at least one instruction, the at least one program, the set of codes, or the set of instructions being loaded and executed by the processor to implement a charge stop method as claimed in any one of claims 1 to 8.
11. A computer readable storage medium having stored therein at least one instruction, at least one program, a set of codes, or a set of instructions, which is loaded and executed by a processor to implement the charge stop method of any of claims 1 to 8.
CN201910697304.0A 2019-07-30 2019-07-30 Charging stop method, charging stop device, computer equipment and storage medium Active CN110323808B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201910697304.0A CN110323808B (en) 2019-07-30 2019-07-30 Charging stop method, charging stop device, computer equipment and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201910697304.0A CN110323808B (en) 2019-07-30 2019-07-30 Charging stop method, charging stop device, computer equipment and storage medium

Publications (2)

Publication Number Publication Date
CN110323808A CN110323808A (en) 2019-10-11
CN110323808B true CN110323808B (en) 2022-05-17

Family

ID=68124974

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201910697304.0A Active CN110323808B (en) 2019-07-30 2019-07-30 Charging stop method, charging stop device, computer equipment and storage medium

Country Status (1)

Country Link
CN (1) CN110323808B (en)

Families Citing this family (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113766614B (en) * 2021-06-10 2023-04-18 荣耀终端有限公司 Method for reducing power consumption of terminal equipment and terminal equipment
CN113966881A (en) * 2021-09-08 2022-01-25 深圳麦时科技有限公司 Aerosol generating device, control method, and computer-readable storage medium
CN114301140B (en) * 2021-12-31 2023-12-01 福建新大陆支付技术有限公司 POS-based battery charging management method

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102231548A (en) * 2011-07-04 2011-11-02 上海工程技术大学 Battery charging device with dynamic capacity-display and charge countdown functions and application thereof
CN103944225A (en) * 2014-04-16 2014-07-23 华为技术有限公司 Battery intelligent management method, battery intelligent management device and battery
CN106785136A (en) * 2016-12-22 2017-05-31 深圳市金立通信设备有限公司 The method and terminal of a kind of safe charging
CN107425564A (en) * 2017-06-23 2017-12-01 珠海格力电器股份有限公司 A kind of intelligent charging method, device and electronic equipment

Family Cites Families (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
KR101411809B1 (en) * 2012-04-17 2014-06-24 삼성전자주식회사 Method and apparatus for using a portable terminal
CN106340922A (en) * 2016-09-26 2017-01-18 依偎科技(南昌)有限公司 Charging method and mobile terminal
CN106877435B (en) * 2017-03-14 2020-07-07 上海摩软通讯技术有限公司 Terminal charging method and terminal

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102231548A (en) * 2011-07-04 2011-11-02 上海工程技术大学 Battery charging device with dynamic capacity-display and charge countdown functions and application thereof
CN103944225A (en) * 2014-04-16 2014-07-23 华为技术有限公司 Battery intelligent management method, battery intelligent management device and battery
CN106785136A (en) * 2016-12-22 2017-05-31 深圳市金立通信设备有限公司 The method and terminal of a kind of safe charging
CN107425564A (en) * 2017-06-23 2017-12-01 珠海格力电器股份有限公司 A kind of intelligent charging method, device and electronic equipment

Also Published As

Publication number Publication date
CN110323808A (en) 2019-10-11

Similar Documents

Publication Publication Date Title
CN110323808B (en) Charging stop method, charging stop device, computer equipment and storage medium
US9300157B2 (en) Context aware battery charging
EP2180573B1 (en) System and method for controlling charging of battery of portable terminal
CN106877435B (en) Terminal charging method and terminal
US8862907B2 (en) Information processing apparatus and power supply control method
TW200531397A (en) Battery pack, battery protection processing apparatus, and control method of the battery protection processing apparatus
CN103440029A (en) Method for prolonging service life of mobile terminal in low battery mode and mobile terminal
KR102544462B1 (en) Electronic device comprising battery and method for controlling charging thereof
CN111845455A (en) Charging control method and device for storage battery of electric vehicle
JPH06225471A (en) Charger to which load is connected during charging
CN112858938B (en) Electric quantity calculation method and device, storage medium and electronic equipment
KR100584324B1 (en) Apparatus for controlling power in complex mobile terminal
JP5613135B2 (en) Battery unit for portable terminal device and power supply method
US11031799B2 (en) Power supply management integrated circuit, electronic device, and control method of power supply management integrated circuit
CN114374237A (en) Charging device, charging method and mobile power supply
US9356459B2 (en) Method for charging battery and electronic device thereof
CN103124097A (en) Intelligent lithium ion charger
CN106356580A (en) Method and system for discharging rechargeable battery of mobile terminal
CN109148986B (en) Charging method and device
CN110783970A (en) Charging method, charging device, charging terminal and computer readable storage medium
CN102447284B (en) Messaging device and control method thereof
JP4178141B2 (en) Charging apparatus and charging method
JP2001028841A (en) Method for controlling charging of battery and device for executing the same
JP5689944B2 (en) Battery unit for supplying power to electrical and electronic equipment and power supply method
CN117081185A (en) Charging control method, device, equipment 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