Charging method and device and storage medium

The charging current is determined through the charging time and target battery capacity set by the user, and the charging stage is switched during the charging process, which solves the problem that the charging strategy cannot be dynamically adjusted in the existing technology, and efficient and safe charging control is achieved, improving the user experience .

CN119154426APending Publication Date: 2024-12-17BEIJING XIAOMI MOBILE SOFTWARE CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202310705910.9
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2023-06-14
Publication Date
2024-12-17

AI Technical Summary

Technical Problem

Existing charging technology is difficult to dynamically adjust the charging strategy according to the user's special scenarios and needs, and it is impossible to achieve charging control based on the charging time set by the user.

Method used

Through the first charging time and target battery capacity set by the user, the charging current is determined, and the constant current charging and constant voltage charging stages are switched during the charging process. Different charging current strategies are adopted according to different charging stages, including multi-stage charging current and time. Recharge.

Benefits of technology

It realizes charging control based on the charging time set by the user, improves the user experience, and meets charging adjustments to different application scenarios and usage needs while ensuring charging safety.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119154426A_ABST
    Figure CN119154426A_ABST
Patent Text Reader

Abstract

The invention relates to a charging method and device and a storage medium. The charging method comprises the steps that first charging time is determined, and the first charging time is the time, set by a user, of charging a battery from the current battery capacity to the target battery capacity; determining a charging current for charging the battery according to the first charging time and the target battery capacity; and charging the battery based on the charging current. According to the invention, charging based on the time set by the user can be realized.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present disclosure relates to the field of charging technology, and in particular to a charging method, device and storage medium. Background Art

[0002] As terminal charging power continues to increase, charging strategies are also constantly being optimized.

[0003] In the related art, different charging strategies are set to meet different charging requirements, but the charging strategy is usually a fixed charging solution implemented by combining software and hardware. In other words, if the charging strategy is determined, the corresponding charging strategy is used for charging. Summary of the invention

[0004] In order to overcome the problems existing in the related art, the present disclosure provides a charging method, a device and a storage medium.

[0005] According to a first aspect of an embodiment of the present disclosure, a charging method is provided, the charging method comprising: determining a first charging time, the first charging time being the time set by a user for charging a battery from a current battery capacity to a target battery capacity; determining a charging current for charging the battery based on the first charging time and the target battery capacity; and charging the battery based on the charging current.

[0006] In one embodiment, determining the charging current for charging the battery based on the first charging time and the target battery capacity includes: determining the current charging stage of the battery, the charging stage including a constant voltage charging stage or a constant current charging stage; determining a second charging time of the current charging stage of the battery, the second charging time being the shortest charging time for charging the battery from the current battery capacity to the target battery capacity; determining the charging current for charging the battery based on the first charging time, the second charging time and the target battery capacity.

[0007] In one embodiment, the charging current for charging the battery based on the first charging time, the second charging time and the target battery capacity includes: if the first charging time is greater than the second charging time, determining a first charging current, and using the first charging current as the charging current for charging the battery, the first charging current being a charging current that satisfies the requirement of charging the battery to the target charging capacity within the first charging time; if the first charging time is less than the second charging time, determining a second charging current as the charging current for charging the battery, and the second charging current being a charging current that satisfies the requirement of charging the battery to the target charging capacity within the second charging time.

[0008] In one embodiment, determining the first charging current includes: determining the capacity of the battery to be charged for constant current charging of the battery based on the current charging stage of the battery; determining the first charging current based on the capacity of the battery to be charged and a third charging time, wherein the third charging time is the difference between the first charging time and the second charging time.

[0009] In one embodiment, the determining of the capacity of the battery to be charged for constant current charging of the battery based on the current charging stage of the battery includes: if the current charging stage of the battery is a constant current charging stage, subtracting the target battery capacity from the current battery capacity to obtain a differential capacity, and using the differential capacity between the differential capacity and the current battery capacity as the capacity of the battery to be charged for constant current charging of the battery.

[0010] In one embodiment, the method of determining the capacity of the battery to be charged for constant current charging of the battery based on the current charging stage of the battery includes: if the current charging stage of the battery is a constant voltage charging stage, the difference between the target battery capacity of constant current charging and the current battery capacity is used as the capacity of the battery to be charged for constant current charging of the battery, and the target battery capacity of constant current charging is a predefined battery capacity.

[0011] In one embodiment, the charging current is a first charging current, and charging the battery based on the charging current includes: performing constant current charging based on the first charging current within a third charging time; in response to the charging time reaching the third charging time, switching to constant voltage charging until the capacity of the battery reaches the target battery capacity.

[0012] In one embodiment, the constant current charging based on the first charging current during the third charging time includes: performing multiple constant current charging based on multiple charging currents and multiple charging times; wherein the sum of the multiple charging currents is the first charging current, and the sum of the multiple charging times is the third charging time.

[0013] According to a second aspect of an embodiment of the present disclosure, a charging device is provided, comprising: a determination unit, for determining a first charging time, wherein the first charging time is the time set by a user for charging a battery from a current battery capacity to a target battery capacity, and determining a charging current for charging the battery based on the first charging time and the target battery capacity; and a charging unit, for charging the battery based on the charging current.

[0014] In one embodiment, the determination unit determines the charging current for charging the battery according to the first charging time and the target battery capacity in the following manner, including: determining the current charging stage of the battery, the charging stage including a constant voltage charging stage or a constant current charging stage; determining the second charging time of the current charging stage of the battery, the second charging time being the shortest charging time for the battery to charge from the current battery capacity to the target battery capacity; based on the first charging time, the second charging time and the target battery capacity, determining the charging current for charging the battery.

[0015] In one embodiment, the determination unit determines the charging current for charging the battery based on the first charging time, the second charging time and the target battery capacity in the following manner, including: if the first charging time is greater than the second charging time, determining a first charging current, and using the first charging current as the charging current for charging the battery, the first charging current being a charging current that satisfies the requirement of charging the battery to the target charging capacity within the first charging time; if the first charging time is less than the second charging time, determining a second charging current as the charging current for charging the battery, and the second charging current being a charging current that satisfies the requirement of charging the battery to the target charging capacity within the second charging time.

[0016] In one embodiment, the determination unit determines the first charging current in the following manner, including: determining the capacity of the battery to be charged for constant current charging of the battery based on the current charging stage of the battery; determining the first charging current based on the capacity of the battery to be charged and a third charging time, wherein the third charging time is the difference between the first charging time and the second charging time.

[0017] In one embodiment, the determination unit determines the battery capacity to be charged for constant current charging of the battery based on the current charging stage of the battery in the following manner, including: if the current charging stage of the battery is the constant current charging stage, the difference between the target battery capacity and the current battery capacity is obtained, and the difference between the difference capacity and the current battery capacity is used as the battery capacity to be charged for constant current charging of the battery.

[0018] In one embodiment, the determination unit determines the battery capacity to be charged for constant current charging of the battery based on the current charging stage of the battery in the following manner, including: if the current charging stage of the battery is a constant voltage charging stage, the difference between the target battery capacity of constant current charging and the current battery capacity is used as the battery capacity to be charged for constant current charging of the battery, and the target battery capacity of constant current charging is a predefined battery capacity.

[0019] In one embodiment, the charging current is a first charging current, and the charging unit charges the battery based on the charging current in the following manner, including: performing constant current charging based on the first charging current within a third charging time; in response to the charging time reaching the third charging time, switching to constant voltage charging until the capacity of the battery reaches the target battery capacity.

[0020] In one embodiment, the charging unit performs constant current charging based on the first charging current within a third charging time in the following manner, including: performing multi-stage constant current charging based on multiple charging currents and multiple charging times; wherein the sum of the multiple charging currents is the first charging current, and the sum of the multiple charging times is the third charging time.

[0021] According to a third aspect of the present disclosure, a charging device is provided, comprising: a processor; and a memory for storing instructions executable by the processor; wherein the processor is configured to: execute the charging method described in the aforementioned first aspect or any one of the embodiments of the first aspect.

[0022] According to a fourth aspect of the present disclosure, a storage medium is provided, which stores instructions. When the instructions are executed by a processor, the charging method described in the first aspect or any one of the embodiments of the first aspect is executed.

[0023] The technical solution provided by the embodiments of the present disclosure may include the following beneficial effects: according to the first charging time set by the user, the charging current for charging the battery to the target battery capacity is determined, charging based on the charging time set by the user is realized, thereby realizing control of the charging time based on the user's needs and improving the user experience.

[0024] It is to be understood that the foregoing general description and the following detailed description are exemplary and explanatory only and are not restrictive of the present disclosure. BRIEF DESCRIPTION OF THE DRAWINGS

[0025] The accompanying drawings, which are incorporated in and constitute a part of this specification, illustrate embodiments consistent with the present disclosure and, together with the description, serve to explain the principles of the present disclosure.

[0026] Figure 1 The figure is a flow chart of a charging method according to an exemplary embodiment.

[0027] Figure 2 is a schematic diagram of a charging stage according to an exemplary embodiment.

[0028] Figure 3 The invention is a flowchart showing a method for determining a charging current for charging a battery according to a first charging time, a second charging time and a target battery capacity according to an exemplary embodiment.

[0029] Figure 4 The invention is a flowchart showing a method for determining a charging current for charging a battery according to a first charging time, a second charging time and a target battery capacity according to an exemplary embodiment.

[0030] Figure 5 is a flowchart of a method for determining a first charging current according to an exemplary embodiment.

[0031] Figure 6 The present invention is a flow chart showing a method for determining the capacity of a battery to be charged during constant current charging of a battery according to an exemplary embodiment.

[0032] Figure 7 The present invention is a flow chart showing a method for determining the capacity of a battery to be charged during constant current charging of the battery in a constant voltage charging stage according to an exemplary embodiment.

[0033] Figure 8 The invention is a flow chart showing a method for charging a battery based on a first charging current according to an exemplary embodiment.

[0034] Fig. 9 is a block diagram of a charging device according to an exemplary embodiment.

[0035] Fig.10 It is a block diagram of a device according to an exemplary embodiment. DETAILED DESCRIPTION

[0036] Here, exemplary embodiments will be described in detail, examples of which are shown in the accompanying drawings. When the following description refers to the drawings, unless otherwise indicated, the same numbers in different drawings represent the same or similar elements. The implementations described in the following exemplary embodiments do not represent all implementations consistent with the present disclosure.

[0037] The charging method provided by the embodiments of the present disclosure can be applied to the application scenario of terminal charging, for example, it can be applied to the scenario of charging a battery in a terminal equipped with a battery to realize charging of the terminal.

[0038] In the related art, the charging method is usually implemented through a combination of software and hardware, and the charging scheme is fixed in advance. However, this fixed charging method does not change with changes in the environment and scene, and it is difficult to dynamically adjust according to the user's special scene and needs. For example, it is impossible to control the charging time according to the user's needs.

[0039] In view of this, an embodiment of the present disclosure provides a charging method. In the charging method provided by the present disclosure, a user sets a charging time, and charging is performed based on the charging time set by the user.

[0040] For the convenience of description in the embodiment of the present disclosure, the charging time set by the user is referred to as the first charging time.

[0041] Figure 1 The figure is a flow chart of a charging method according to an exemplary embodiment.

[0042] In step S11 , a first charging time is determined, where the first charging time is the time set by the user for charging the battery from the current battery capacity to the target battery capacity.

[0043] The first charging time generally refers to the charging time set by the user. On the one hand, the first charging time can be set by the user in real time at the beginning of charging or during the charging process. On the other hand, the first charging time can also be set by the user in advance and saved in the terminal for direct use later. For example, it can be the charging time set by the user during a certain charging process, and the set charging time can be used as the first charging time for subsequent charging.

[0044] The target battery capacity may be set by the user or may be a fixed default value. In one implementation, the target battery capacity is the fully charged capacity of the battery.

[0045] In step S12, a charging current for charging the battery is determined according to the first charging time and the target battery capacity.

[0046] In step S13, the battery is charged based on the determined charging current.

[0047] The charging method provided in the embodiment of the present disclosure determines the charging current for charging the battery according to the first charging time set by the user and the target battery capacity. The battery is charged based on the determined charging current, and charging control can be implemented based on the charging time set by the user, thereby meeting the user's needs for adjusting and controlling the charging time, and further, the charging can be adjusted based on different application scenarios and usage requirements during the charging process, thereby improving the user experience.

[0048] The present disclosure embodiment describes the charging method involved in the above embodiment below.

[0049] In one embodiment, the battery has different charging strategies involved in the charging process, and different charging stages require different charging currents. Therefore, in the embodiment of the present disclosure, different determination methods are used based on the charging currents required at different charging stages.

[0050] In one example, the present disclosure embodiment uses the charging strategy including dividing the charging process into a constant current charging stage (CC charging stage) and a constant voltage charging stage (CV charging stage) during fast charging as an example to illustrate.

[0051] In one embodiment, if Figure 2 As shown, under normal circumstances, battery charging can be divided into two stages: CC charging stage and CV charging stage. Among them, CC charging stage and CV charging stage are generally distinguished by voltage. Figure 2 As shown, V1 is the voltage threshold for dividing the CC charging stage and the CV charging stage. When the voltage is less than V1, the charging is in the CC stage, and when the voltage is greater than or equal to V1, the charging is in the CV stage.

[0052] In the constant current charging stage, the charger provides a constant current to gradually increase the battery voltage. In this stage, the battery can accept a larger charging current and the battery charges faster. When the battery voltage gradually approaches the preset charging voltage, the charger will switch to the constant voltage charging stage.

[0053] In the constant voltage charging stage, the charger will maintain a constant charging voltage, while the current will gradually decrease. In this stage, the battery voltage remains stable, the chemical reaction inside the battery is gradually completed, and the battery is gradually filled. When the charging current drops to the preset cut-off current, the charging process ends.

[0054] For each specific type of battery, there is a corresponding specification. At different stages of battery charging, the charging current has an upper limit, which is the maximum charging current of the battery specification. The shortest charging time of the battery specification is the time it takes to charge the battery to the target battery capacity using the maximum charging current of the battery specification as the charging current. And during the charging process, the constant voltage charging stage is relatively fixed. For example, in the CV charging stage, from a specific battery capacity C 1 Charge to battery capacity C 2 The shortest charging time is fixed. Among them, the shortest charging time T in the CV charging stage cv And the battery capacity satisfies the following equation: T cv =f1(C 2 -C 1). Wherein, f1 is a function representing the mapping relationship between the charging battery capacity and the shortest charging time in the CV charging stage, and the mapping relationship function of each specific model of battery is fixed.

[0055] Based on this, in order to enable the user to set the time to charge the battery to a specified battery capacity during the constant voltage charging stage, a specific battery capacity C can be set during the constant voltage stage. 1 First, charge the battery from its current capacity C 0 Charge to a specific battery capacity C 1 , and then charge at a constant voltage during the second charging time from the current specific battery capacity C 1 Charge to target battery capacity C 2 .

[0056] In view of this, an embodiment of the present disclosure provides a charging method. In the charging method provided by the present disclosure, a charging current for charging a battery is determined based on a first charging time and a second charging time.

[0057] Figure 3 The invention is a flowchart showing a method for determining a charging current for charging a battery according to a first charging time, a second charging time and a target battery capacity according to an exemplary embodiment.

[0058] In step S21 , the current charging stage of the battery is determined.

[0059] The charging stage includes a constant voltage charging stage or a constant current charging stage.

[0060] In step S22, a second charging time of the current charging stage of the battery is determined.

[0061] In step S23, a charging current for charging the battery is determined based on the first charging time, the second charging time, and the target battery capacity.

[0062] The second charging time of the current charging stage is the shortest charging time from the current battery capacity to the target battery capacity. The first charging time is the time set by the user for charging the battery from the current battery capacity to the target battery capacity.

[0063] The charging method provided by the embodiment of the present disclosure can determine the charging current according to the different stages of the charging process and the charging time set by the user, the shortest charging time of the battery specification and the target battery capacity, and use the determined charging current as the battery charging current to charge the battery, thereby improving the user's charging experience.

[0064] In view of the different magnitude relationships between the first charging time and the second charging time, the method for determining the charging current is also different, and the present disclosure provides a charging method. In the charging method provided by the present disclosure, the charging current for charging the battery is determined based on the first charging time, the second charging time and the target battery capacity.

[0065] Figure 4 The invention is a flowchart showing a method for determining a charging current for charging a battery according to a first charging time, a second charging time and a target battery capacity according to an exemplary embodiment.

[0066] In step S31, it is determined whether the first charging time is greater than the second charging time.

[0067] In step S32, if the first charging time is greater than the second charging time, a first charging current is determined, and the first charging current is used as the charging current for charging the battery.

[0068] In step S33, if the first charging time is less than the second charging time, the second charging current is determined to be the charging current for charging the battery.

[0069] The second charging current is a charging current sufficient to charge the battery to a target charging capacity within a second charging time.

[0070] If the first charging time is greater than the second charging time, the charging current for charging the battery is determined according to the charging time set by the user and the target battery capacity, and the battery is charged using this current as the charging current of the battery, and the battery is charged to the target battery capacity within the first charging time. If the first charging time is less than the second charging time, the battery is charged with the maximum charging current of the battery specification, and the battery is charged to the target battery capacity within the second charging time.

[0071] In the disclosed embodiment, the maximum charging current in the constant current charging and constant voltage charging stages has an upper limit. When the charging current exceeds the maximum charging current of the battery specification, the battery charging temperature will also increase significantly, which poses a great safety hazard. The method provided in the disclosed embodiment can not only realize charging control based on the charging time set by the user, thereby meeting the user's needs for adjusting and controlling the charging time, but also fully considers charging safety, and improves the user's charging experience while ensuring charging safety.

[0072] Figure 5 is a flowchart of a method for determining a first charging current according to an exemplary embodiment.

[0073] In step S41, based on the current charging stage of the battery, the capacity of the battery to be charged for constant current charging of the battery is determined.

[0074] In step S42, a first charging current is determined based on the capacity of the battery to be charged and the third charging time.

[0075] The third charging time is the difference between the first charging time and the second charging time.

[0076] In the embodiment of the present disclosure, the battery is charged to the target battery capacity at the time set by the user mainly by controlling the charging current of the constant current charging. The third charging time is the charging time set by the user minus the shortest charging time from the current battery capacity to the target battery capacity in the specification, that is, the constant current charging time. When the battery is in the constant current charging stage, the third charging time T cc1 =T 设 -T cv0 Among them, T 设 The charging time set by the user to charge the battery to the target battery capacity, T cv0 It is the full constant voltage charging time to charge the battery capacity to the target battery capacity after the constant current charging is completed. It is also fixed for a specific type of battery. When the battery is in the constant voltage charging stage, the third charging time T cc2 =T 设 -f1(C 2 -C 1 ). Among them, T 设 The charging time set by the user to charge the battery to the target battery capacity. 2 -C 1 ) is the time taken to charge the battery from the specified capacity to the target capacity during the constant voltage charging phase.

[0077] In one embodiment, determining a charging current for charging the battery based on the first charging time, the second charging time, and the target battery capacity includes:

[0078] If the battery is currently in the constant current charging stage, the target battery capacity is subtracted from the current battery capacity to obtain the differential capacity, and the differential capacity and the charging capacity of the battery in the constant voltage charging stage are used as the battery capacity to be charged for constant current charging of the battery.

[0079] Figure 6 The present invention is a flow chart showing a method for determining the capacity of a battery to be charged during constant current charging of a battery according to an exemplary embodiment.

[0080] In step S51, it is determined that the current charging stage of the battery is a constant current charging stage.

[0081] In step S52, the target battery capacity is subtracted from the current battery capacity to obtain a differential capacity.

[0082] In step S53, the difference capacity between the difference capacity and the charging capacity of the battery in the constant voltage charging stage is used as the battery capacity to be charged for constant current charging of the battery.

[0083] In the embodiment of the present disclosure, when the current charging stage of the battery is the constant current charging stage, the charging capacity C of the constant current charging stage is cc1 =CC 0 -C cv Where C is the target battery capacity set by the user, C 0 is the current capacity of the battery, C cv It is the battery capacity for constant voltage charging after the constant current charging stage. After determining the capacity of the battery to be charged in the constant current charging stage, the constant current charging current can be determined by the capacity of the battery to be charged and the constant current charging time, thereby realizing charging control based on the charging time set by the user. The constant current charging current I cc1 =C cc1 / T cc1 Among them, C cc1 is the charging capacity during the constant current charging phase, T cc1 It is the third charging time of the constant current charging stage.

[0084] In one embodiment, determining a charging current for charging the battery based on the first charging time, the second charging time, and the target battery capacity includes:

[0085] If the current charging stage of the battery is the constant voltage charging stage, the difference between the target battery capacity of constant current charging and the current battery capacity is used as the battery capacity to be charged for constant current charging of the battery, and the target battery capacity of constant current charging is a predefined battery capacity.

[0086] Figure 7 The present invention is a flow chart showing a method for determining the capacity of a battery to be charged during constant current charging of the battery in a constant voltage charging stage according to an exemplary embodiment.

[0087] In step S61, it is determined that the current charging stage of the battery is a constant voltage charging stage.

[0088] In step S62, the difference between the target battery capacity of constant current charging and the current battery capacity is used as the battery capacity to be charged for constant current charging of the battery.

[0089] In the embodiment of the present disclosure, when in the constant voltage charging stage, the current battery capacity C 0The second charging time to the target battery capacity C is fixed. We can further subdivide the constant voltage charging stage into constant current charging and constant voltage charging stages under the original constant voltage charging stage, and control the charging current of the constant current charging to charge the battery to the target battery capacity within the charging time set by the user.

[0090] Constant current charging capacity C during constant voltage charging stage cc2 =C 1 -C 0 , where C 0 is the current capacity of the battery, which is charged to C by constant current 1 , C 1 The battery capacity can be predefined, and then constant voltage charging is performed until the target battery capacity is reached. The constant current charging current I cc2 =C cc2 / T cc2 Among them, C cc2 is the constant current charging capacity in the constant voltage charging stage, T cc2 It is the third charging time of the constant voltage charging stage.

[0091] Figure 8 The invention is a flow chart showing a method for charging a battery based on a first charging current according to an exemplary embodiment.

[0092] In step S71 , constant current charging is performed based on the first charging current during the third charging time.

[0093] In step S72, in response to the charging time reaching the third charging time, switching to constant voltage charging is performed until the battery capacity reaches the target battery capacity.

[0094] In the embodiment of the present disclosure, the third charging time is the constant current charging time. In order to charge the battery to the target battery capacity at the time set by the user, the first charging current is first calculated according to the third charging time and the charging capacity of the current charging stage of the battery and the first charging current is used as the charging current for constant current charging. When the charging time reaches the third charging time, it is switched to constant voltage charging until the battery capacity is charged to the target battery capacity.

[0095] In one embodiment, performing constant current charging based on a determined charging current within a determined charging time includes:

[0096] Based on multiple charging currents and multiple charging times, multiple constant current charging is performed;

[0097] The sum of the multiple charging currents is the determined charging current, and the sum of the multiple charging times is the determined charging time.

[0098] In the embodiment of the present disclosure, a multi-segment current method can also be used in the constant current charging stage.1 Charging T 1 Time, I 2 Charging T 2 Time, I n Charging T n Time only needs to satisfy the following relationship:

[0099] T cc1 =T 1 +T 2 +…+T n

[0100] C cc1 =I 1 *T 1 +I 2 *T 2 +…I n *T n

[0101] In the constant voltage charging stage, constant current charging can also adopt a multi-stage current method, I 1 Charging T 1 Time, I 2 Charging T 2 Time, I n Charging T n Time only needs to satisfy the following relationship:

[0102] T cc2 =T 1 +T 2 +…+T n

[0103] C cc2 =I 1 *T 1 +I 2 *T 2 +…I n *T n

[0104] The above-mentioned multi-stage charging current and multi-stage charging time are charging currents and charging times that meet the battery charging specifications. The number of multi-stage charging stages and the specific charging current and charging time for each stage can be set according to different charging stages and requirements.

[0105] The charging method provided in the embodiment of the present disclosure can further set multiple currents and multiple time periods in the constant current charging stage and the constant voltage charging stage, making the charging more flexible and meeting the needs of different application scenarios.

[0106] In one embodiment, when the battery is in a charging state, the user customizes and sets a first charging time in real time at the beginning of charging or during charging, and determines the charging current according to the first charging time and the current charging stage. The constant current charging stage and the constant voltage charging stage are generally distinguished by voltage. When the voltage is less than V1, the charging is in the constant current charging stage, and when the voltage is greater than V1, the charging is in the constant voltage charging stage.

[0107] When in the constant current charging stage, the user sets the charging time T from the current battery capacity to the target battery capacity. 设 It is the sum of the charging time of the constant current charging stage and the charging time of the constant voltage charging stage. The second charging time, i.e. the shortest constant voltage charging time, is fixed for a specific type of battery and can be recorded as T cv0 According to the first charging time and the second charging time, the constant current charging time in the constant current charging stage can be determined as: T cc1 =T 设 -T cv0 The constant current charging battery capacity during the constant current charging phase is: C cc1 =CC 0 -C cv Where C is the target battery capacity set by the user, C 0 is the current capacity of the battery, C cv It is the battery capacity of the battery that is charged at constant voltage after the constant current charging stage. The first charging current in the constant current charging stage is the constant current charging current: I cc1 =C cc1 / T cc1 .

[0108] Determine the charging current in the constant current charging stage and set the charging current in the constant current charging stage to the determined current I cc1 , it can be achieved in the first charging time, that is, T 设 Charge the battery from the current battery capacity to the target battery capacity within the specified time.

[0109] When in the constant voltage charging stage, the second charging time, that is, the fastest charging time and battery capacity satisfy the following equation: T cv =f1(CC 0 ). Where T cv It is the constant voltage charging stage from the current battery capacity C 0 The shortest charging time to charge to the target battery capacity C is set during the constant voltage charging stage. 设 Less than or equal to T cv At this time, only the second charging current, i.e. the maximum charging current in the specification, can be used during the second charging time T cv When charging to the target battery capacity, set the charging time T in the constant voltage charging stage. 设 Greater than Tcv When the charging current is determined according to the target battery capacity, the method is as follows:

[0110] Charging capacity C during constant voltage charging cv =CC 0 -C 1 , where C is the target battery capacity set by the user, C 0 is the current capacity of the battery, which is charged to C by constant current 1 , C 1 The battery capacity can be predefined, and then constant voltage charging is performed until the target battery capacity is reached. The first charging current in the constant voltage charging stage is the constant current charging current I cc2 =C cc2 / T cc2 .

[0111] Determine the charging current in the constant voltage charging stage and set the charging current in the constant voltage charging stage to the determined current I cc2 , you can achieve T 设 Charge the battery from the current battery capacity to the target battery capacity within the specified time.

[0112] In the embodiment of the present disclosure, the charging current for charging the battery is determined according to the time set by the user for charging the battery from the current battery capacity to the target battery capacity, the target battery capacity, and the charging stage the battery is currently in. Under the premise of not exceeding the battery charging specification and ensuring charging safety, the charging method provided in the embodiment of the present disclosure realizes charging control based on the charging time set by the user, thereby meeting the user's needs for adjusting and controlling the charging time, and further, the charging can be adjusted based on different application scenarios and usage requirements during the charging process, thereby improving the user experience.

[0113] Based on the same concept, an embodiment of the present disclosure also provides a charging device.

[0114] It is understandable that in order to realize the above functions, the charging device provided in the embodiment of the present disclosure includes hardware structures and / or software modules corresponding to the execution of each function. In combination with the units and algorithm steps of each example disclosed in the embodiment of the present disclosure, the embodiment of the present disclosure can be implemented in the form of hardware or a combination of hardware and computer software. Whether a function is executed in the form of hardware or computer software driving hardware depends on the specific application and design constraints of the technical solution. Those skilled in the art may use different methods to implement the described functions for each specific application, but such implementation should not be considered to exceed the scope of the technical solution of the embodiment of the present disclosure.

[0115] Fig. 9 is a block diagram of a charging device according to an exemplary embodiment. Fig. 9, the device includes a determining unit 101 and a charging unit 102.

[0116] The determining unit 101 is used to determine a first charging time, and determine a charging current for charging the battery according to the first charging time and a target battery capacity;

[0117] The charging unit 102 is used to charge the battery based on the charging current.

[0118] In one embodiment, the determination unit 101 determines the charging current for charging the battery according to the first charging time and the target battery capacity in the following manner, including: determining the current charging stage of the battery, the charging stage includes a constant voltage charging stage or a constant current charging stage; determining the second charging time of the current charging stage of the battery, the second charging time being the shortest charging time for the battery to charge from the current battery capacity to the target battery capacity; based on the first charging time, the second charging time and the target battery capacity, determining the charging current for charging the battery.

[0119] In one embodiment, the determination unit 101 determines the charging current for charging the battery based on the first charging time, the second charging time and the target battery capacity in the following manner, including: if the first charging time is greater than the second charging time, determining the first charging current, and using the first charging current as the charging current for charging the battery, the first charging current being a charging current that satisfies the requirement of charging the battery to the target charging capacity within the first charging time; if the first charging time is less than the second charging time, determining the second charging current as the charging current for charging the battery, the second charging current being a charging current that satisfies the requirement of charging the battery to the target charging capacity within the second charging time.

[0120] In one embodiment, the determination unit 101 determines the first charging current in the following manner, including: determining the capacity of the battery to be charged for constant current charging of the battery based on the current charging stage of the battery; determining the first charging current based on the capacity of the battery to be charged and a third charging time, where the third charging time is the difference between the first charging time and the second charging time.

[0121] In one embodiment, the determination unit 101 determines the battery capacity to be charged for constant current charging of the battery based on the current charging stage of the battery in the following manner, including: if the current charging stage of the battery is the constant current charging stage, the target battery capacity is subtracted from the current battery capacity to obtain the differential capacity, and the differential capacity and the charging capacity of the battery in the constant voltage charging stage are used as the battery capacity to be charged for constant current charging of the battery.

[0122] In one embodiment, the determination unit 101 determines the battery capacity to be charged for constant current charging of the battery based on the current charging stage of the battery in the following manner, including: if the current charging stage of the battery is a constant voltage charging stage, the difference capacity between the target battery capacity of the constant current charging and the current battery capacity is used as the battery capacity to be charged for constant current charging of the battery, and the target battery capacity of the constant current charging is a predefined battery capacity.

[0123] In one embodiment, the charging current is a first charging current, and the charging unit 102 charges the battery based on the charging current in the following manner, including: performing constant current charging based on the first charging current within a third charging time; in response to the charging time reaching the third charging time, switching to constant voltage charging until the capacity of the battery reaches the target battery capacity.

[0124] In one embodiment, the charging unit 102 performs constant current charging based on the first charging current within the third charging time in the following manner, including: performing multi-stage constant current charging based on multiple charging currents and multiple charging times; wherein the sum of the multiple charging currents is the first charging current, and the sum of the multiple charging times is the third charging time.

[0125] Regarding the device in the above embodiment, the specific manner in which each module performs operations has been described in detail in the embodiment of the method, and will not be elaborated here.

[0126] Fig.10 2 is a block diagram of a charging device 200 according to an exemplary embodiment. For example, the device 200 may be a mobile phone, a computer, a digital broadcast terminal, a messaging device, a game console, a tablet device, a medical device, a fitness device, a personal digital assistant, etc.

[0127] Reference Fig.10 , the device 200 may include one or more of the following components: a processing component 202 , a memory 204 , a power component 206 , a multimedia component 208 , an audio component 210 , an input / output (I / O) interface 212 , a sensor component 214 , and a communication component 216 .

[0128] The processing component 202 generally controls the overall operation of the device 200, such as operations associated with display, phone calls, data communications, camera operations, and recording operations. The processing component 202 may include one or more processors 220 to execute instructions to perform all or part of the steps of the above-described method. In addition, the processing component 202 may include one or more modules to facilitate interaction between the processing component 202 and other components. For example, the processing component 202 may include a multimedia module to facilitate interaction between the multimedia component 208 and the processing component 202.

[0129] The memory 204 is configured to store various types of data to support operations on the device 200. Examples of such data include instructions for any application or method operating on the device 200, contact data, phone book data, messages, pictures, videos, etc. The memory 204 can be implemented by any type of volatile or non-volatile storage device or a combination thereof, such as static random access memory (SRAM), electrically erasable programmable read-only memory (EEPROM), erasable programmable read-only memory (EPROM), programmable read-only memory (PROM), read-only memory (ROM), magnetic memory, flash memory, magnetic disk or optical disk.

[0130] The power component 206 provides power to the various components of the device 200. The power component 206 may include a power management system, one or more power supplies, and other components associated with generating, managing, and distributing power for the device 200.

[0131] The multimedia component 208 includes a screen that provides an output interface between the device 200 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 input signals from the 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 boundaries of the touch or slide action, but also detect the duration and pressure associated with the touch or slide operation. In some embodiments, the multimedia component 208 includes a front camera and / or a rear camera. When the device 200 is in an operating mode, such as a shooting mode or a video mode, the front camera and / or the rear camera may receive external multimedia data. Each front camera and rear camera may be a fixed optical lens system or have a focal length and optical zoom capability.

[0132] The audio component 210 is configured to output and / or input audio signals. For example, the audio component 210 includes a microphone (MIC), and when the device 200 is in an operation mode, such as a call mode, a recording mode, and a speech recognition mode, the microphone is configured to receive an external audio signal. The received audio signal can be further stored in the memory 204 or sent via the communication component 216. In some embodiments, the audio component 210 also includes a speaker for outputting audio signals.

[0133] I / O interface 212 provides an interface between processing component 202 and peripheral interface modules, such as 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.

[0134] The sensor assembly 214 includes one or more sensors for providing various aspects of the status assessment of the device 200. For example, the sensor assembly 214 can detect the open / closed state of the device 200, the relative positioning of components, such as the display and keypad of the device 200, the sensor assembly 214 can also detect the position change of the device 200 or a component of the device 200, the presence or absence of user contact with the device 200, the orientation or acceleration / deceleration of the device 200 and the temperature change of the device 200. The sensor assembly 214 can include a proximity sensor configured to detect the presence of a nearby object without any physical contact. The sensor assembly 214 can also include an optical sensor, such as a CMOS or CCD image sensor, for use in imaging applications. In some embodiments, the sensor assembly 214 can also include an accelerometer, a gyroscope sensor, a magnetic sensor, a pressure sensor or a temperature sensor.

[0135] The communication component 216 is configured to facilitate wired or wireless communication between the device 200 and other devices. The device 200 can 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 216 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 216 also includes a near field communication (NFC) module to facilitate short-range communication. For example, the NFC module can be implemented based on radio frequency identification (RFID) technology, infrared data association (IrDA) technology, ultra-wideband (UWB) technology, Bluetooth (BT) technology and other technologies.

[0136] In an exemplary embodiment, the apparatus 200 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, microcontrollers, microprocessors or other electronic components to perform the above method.

[0137] In an exemplary embodiment, a non-transitory computer-readable storage medium including instructions is also provided, such as a memory 204 including instructions, and the instructions can be executed by the processor 220 of the device 200 to perform the above method. For example, the non-transitory computer-readable storage medium can be a ROM, a random access memory (RAM), a CD-ROM, a magnetic tape, a floppy disk, an optical data storage device, etc.

[0138] It is to be understood that in the present disclosure, "plurality" refers to two or more than two, and other quantifiers are similar. "And / or" describes the association relationship of associated objects, indicating that three relationships may exist. For example, A and / or B can represent: A exists alone, A and B exist at the same time, and B exists alone. The character " / " generally indicates that the associated objects before and after are in an "or" relationship. The singular forms "a", "the" and "the" are also intended to include plural forms, unless the context clearly indicates other meanings.

[0139] It is further understood that the terms "first", "second", etc. are used to describe various information, but such information should not be limited to these terms. These terms are only used to distinguish the same type of information from each other, and do not indicate a specific order or degree of importance. In fact, the expressions "first", "second", etc. can be used interchangeably. For example, without departing from the scope of the present disclosure, the first information can also be referred to as the second information, and similarly, the second information can also be referred to as the first information.

[0140] It can be further understood that, unless otherwise specified, “connection” includes a direct connection without other components between the two, and also includes an indirect connection with other components between the two.

[0141] It is further understood that, although the operations are described in a specific order in the drawings in the embodiments of the present disclosure, it should not be understood as requiring the operations to be performed in the specific order shown or in a serial order, or requiring the execution of all the operations shown to obtain the desired results. In certain environments, multitasking and parallel processing may be advantageous.

[0142] Those skilled in the art will readily appreciate other embodiments of the present disclosure after considering the specification and practicing the invention disclosed herein. This application is intended to cover any modifications, uses or adaptations of the present disclosure, which follow the general principles of the present disclosure and include common knowledge or customary technical means in the art that are not disclosed in the present disclosure.

[0143] It should be understood that the present disclosure is not limited to the precise structures that have been 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 present disclosure is limited only by the scope of the appended claims.

Claims

1. A charging method, characterized in that: include: Determine a first charging time, where the first charging time is the time set by the user for charging the battery from a current battery capacity to a target battery capacity; Determining a charging current for charging the battery according to the first charging time and the target battery capacity; The battery is charged based on the charging current.

2. The charging method according to claim 1, characterized in that: The determining, according to the first charging time and the target battery capacity, a charging current for charging the battery includes: Determining the current charging stage of the battery, wherein the charging stage includes a constant voltage charging stage or a constant current charging stage; Determine a second charging time of the current charging stage of the battery, the second charging time being the shortest charging time for the battery to be charged from the current battery capacity to the target battery capacity; A charging current for charging the battery is determined based on the first charging time, the second charging time, and the target battery capacity.

3. The charging method according to claim 2, characterized in that: The determining, based on the first charging time, the second charging time, and the target battery capacity, a charging current for charging the battery includes: If the first charging time is greater than the second charging time, determining a first charging current, and using the first charging current as a charging current for charging the battery, wherein the first charging current is a charging current sufficient to charge the battery to the target charging capacity within the first charging time; If the first charging time is less than the second charging time, the second charging current is determined to be the charging current for charging the battery, and the second charging current is the charging current required to charge the battery to the target charging capacity within the second charging time.

4. The charging method according to claim 2, characterized in that: The determining of the first charging current comprises: Determining the capacity of the battery to be charged for constant current charging of the battery based on the current charging stage of the battery; A first charging current is determined based on the capacity of the battery to be charged and a third charging time, where the third charging time is a difference between the first charging time and the second charging time.

5. The charging method according to claim 4, characterized in that: The step of determining the capacity of the battery to be charged for constant current charging of the battery based on the current charging stage of the battery includes: If the battery is currently in a constant current charging stage, the target battery capacity is subtracted from the current battery capacity to obtain a differential capacity, and the differential capacity between the differential capacity and the current battery capacity is used as the battery capacity to be charged for constant current charging of the battery.

6. The charging method according to claim 4, characterized in that: The step of determining the capacity of the battery to be charged for constant current charging of the battery based on the current charging stage of the battery includes: If the current charging stage of the battery is the constant voltage charging stage, the difference between the target battery capacity of constant current charging and the current battery capacity is used as the battery capacity to be charged for constant current charging of the battery, and the target battery capacity of constant current charging is a predefined battery capacity.

7. The method according to any one of claims 3 to 6, characterized in that The charging current is a first charging current, and charging the battery based on the charging current includes: During a third charging time, constant current charging is performed based on the first charging current; In response to the charging time reaching the third charging time, switching to constant voltage charging is performed until the capacity of the battery reaches the target battery capacity.

8. The method according to claim 7, characterized in that The performing constant current charging based on the first charging current during the third charging time includes: Based on multiple charging currents and multiple charging times, multiple constant current charging is performed; The sum of the multiple charging currents is the first charging current, and the sum of the multiple charging time is the third charging time.

9. A charging device, characterized in that: include: a determining unit, configured to determine a first charging time, where the first charging time is the time set by a user for charging the battery from a current battery capacity to a target battery capacity, and determine a charging current for charging the battery according to the first charging time and the target battery capacity; A charging unit is used to charge the battery based on the charging current.

10. A charging device, characterized in that: include: processor; a memory for storing processor-executable instructions; Wherein, the processor is configured to: execute the method described in any one of claims 1 to 8.

11. A storage medium, characterized in that: The storage medium stores instructions, and when the instructions in the storage medium are executed by a processor of the terminal, the terminal is enabled to execute the method according to any one of claims 1 to 8.