Residual charging duration detection method and device

By determining the target charging stage and duration based on the charging current and battery status during the charging process of electronic devices, the problem of inaccurate charging time prediction in the prior art is solved, and a more accurate charging time prediction and a better user experience are achieved.

CN119543342APending Publication Date: 2025-02-28BEIJING XIAOMI MOBILE SOFTWARE CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202311101736.3
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2023-08-29
Publication Date
2025-02-28

AI Technical Summary

Technical Problem

In the prior art, the estimation algorithm for the remaining charging time when charging an electronic device is relatively rough, and it is impossible to accurately provide an estimated full time, resulting in poor user charging experience.

Method used

During the charging process of electronic devices, the target charging stage is determined based on the current charging current, and the target charging time is calculated based on the current charging current, the battery capacity, the pre-configured current drop rate and the remaining battery capacity, and the target charging time is predicted based on the charging time of each charging stage.

Benefits of technology

It realizes a more accurate prediction of the remaining charging time of electronic devices, and is suitable for various charging scenarios, including abnormal scenarios such as high temperatures, improving the user experience.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119543342A_ABST
    Figure CN119543342A_ABST
Patent Text Reader

Abstract

The invention relates to the technical field of electronic equipment, and particularly provides a residual charging duration detection method and device. The residual charging duration detection method comprises the following steps: in the charging process of the electronic equipment, determining a target charging stage based on a current charging current, and determining a target charging duration according to the current charging current, a current battery capacity and a pre-configured current drop rate and a battery residual capacity corresponding to the target charging stage, and according to the target charging duration, predicting the charging duration of each charging stage after the target charging stage, and obtaining the residual charging duration when the electronic equipment is fully charged. In the embodiment of the invention, the charging process is divided into a plurality of charging stages according to the current range, and the duration of the current charging stage is determined based on the actual state of the current charging process, so that compared with a traditional table look-up mode, the method can effectively adapt to abnormal charging scenes such as high temperature environment and the like; and a more accurate charging time prediction result is obtained.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present disclosure relates to the technical field of electronic equipment, and in particular to a method and device for detecting remaining charging time. Background Art

[0002] With the development of fast charging technology, the charging time of electronic devices is getting shorter and shorter. If the user can be accurately informed of the estimated full charging time of the electronic device during charging, on the one hand, it can allow users to better perceive the fast charging effect, and on the other hand, it can also allow users to make accurate action arrangements based on the remaining charging time, thereby improving the user experience.

[0003] However, in the related art, the estimation method of the remaining charging time that can be provided is relatively rough and cannot accurately provide an estimated full charging time, resulting in a poor charging experience for users. Summary of the invention

[0004] In order to provide a more accurate detection result for estimating the remaining charging time of an electronic device, an embodiment of the present disclosure provides a remaining charging time detection method, device, electronic device and storage medium.

[0005] In a first aspect, an embodiment of the present disclosure provides a method for detecting a remaining charging time, comprising:

[0006] During the charging process of the electronic device, determining the target charging stage of the current charging current based on the current charging current; the charging process includes multiple charging stages, and the multiple charging stages are divided based on the current range in the charging process;

[0007] Determine the target charging time of the electronic device in the target charging stage according to the current charging current, the current battery capacity, and the current drop rate and battery remaining capacity corresponding to the pre-configured target charging stage; the current drop rate represents the rate at which the charging circuit drops from the current charging stage to the next charging stage, and the battery remaining capacity represents the battery capacity at the end of the current charging stage;

[0008] The remaining charging time for fully charging the electronic device is obtained according to the target charging time and the pre-configured charging time of each charging stage after the target charging stage.

[0009] In some embodiments, determining the target charging time of the electronic device in the target charging stage according to the current charging current, the current battery capacity, and the pre-configured current drop rate and the remaining battery capacity corresponding to the target charging stage includes:

[0010] Obtaining a first charging duration of constant voltage charging in the target charging phase according to the current charging current and the current decrease rate;

[0011] Determine a second charging amount of constant current charging in the target charging stage according to the remaining battery capacity corresponding to the target charging stage, the current battery capacity, and the first charging amount of constant voltage charging;

[0012] Obtaining a second charging duration of constant current charging in the target charging phase according to a ratio of the second charging amount to the current charging current;

[0013] The target charging duration is determined based on the sum of the first charging duration and the second charging duration.

[0014] In some embodiments, determining the second charging amount of constant current charging in the target charging stage according to the remaining battery capacity corresponding to the target charging stage, the current battery capacity, and the first charging amount of constant voltage charging includes:

[0015] Obtaining a total charge amount charged to the electronic device in the target charging stage according to a difference between the remaining battery capacity corresponding to the target charging stage and the current battery capacity;

[0016] Obtaining the first charging amount of constant voltage charging in the target charging stage according to the current charging current, the constant current of the next charging stage, and the first charging duration;

[0017] The second charge amount of constant current charging in the target charging stage is obtained according to the difference between the total charge amount charged in the target charging stage and the first charge amount.

[0018] In some implementations, during the charging process of the electronic device, determining the target charging stage of the current charging current based on the current charging current includes:

[0019] In response to the electronic device establishing a charging connection with the charging adapter, performing protocol interaction with the charging adapter to determine a current charging strategy;

[0020] According to the current charging strategy, determine a target charging parameter model corresponding to the current charging strategy from at least one pre-established charging parameter model; the charging parameter model includes multiple charging stages, and a constant current, a current drop rate, a remaining battery capacity, and a charging time corresponding to each charging stage;

[0021] Based on the current charging current and the target charging parameter model, a target charging stage of the current charging current is determined.

[0022] In some embodiments, the process of pre-establishing the charging parameter model includes:

[0023] Based on the current change during the charging process, a constant current of each constant current process is determined, and the charging process is divided into a plurality of charging stages according to each constant current;

[0024] For each charging stage, the current range is determined according to the constant current of this charging stage and the constant current of the next charging stage, the current decrease rate is determined according to the rate at which the constant current of this charging stage decreases to the constant current of the next charging stage, the remaining battery capacity is determined according to the battery capacity at the end of the charging stage, and the charging duration is determined according to the duration of the charging stage.

[0025] In some embodiments, determining the current decrease rate according to the rate at which the constant current in the charging stage decreases to the constant current in the next charging stage includes:

[0026] Determine the difference between the constant current of the charging stage and the constant current of the next charging stage, and obtain the current drop rate according to the ratio of the difference to the constant voltage charging time of the charging stage;

[0027] and / or,

[0028] The current decrease rate is obtained by performing curve fitting based on the current decrease curve in the charging stage.

[0029] In some implementations, after obtaining the remaining charging time for fully charging the electronic device, the method further includes:

[0030] The remaining charging time is output and displayed on a display screen of the electronic device.

[0031] In a second aspect, an embodiment of the present disclosure provides a remaining charging time detection device, comprising:

[0032] A stage determination module is configured to determine a target charging stage of a current charging current based on a current charging current during a charging process of an electronic device; the charging process includes a plurality of charging stages, and the plurality of charging stages are divided based on a current range during the charging process;

[0033] The first duration determination module is configured to determine the target charging duration of the electronic device in the target charging stage according to the current charging current, the current battery capacity, and the current drop rate and battery remaining capacity corresponding to the pre-configured target charging stage; the current drop rate represents the rate at which the charging circuit drops from the current charging stage to the next charging stage, and the battery remaining capacity represents the battery capacity at the end of the current charging stage;

[0034] The second duration determination module is configured to obtain the remaining charging time for fully charging the electronic device according to the target charging time and the pre-configured charging time of each charging stage after the target charging stage.

[0035] In some implementations, the first duration determination module is configured to:

[0036] Obtaining a first charging duration of constant voltage charging in the target charging phase according to the current charging current and the current decrease rate;

[0037] Determine a second charging amount of constant current charging in the target charging stage according to the remaining battery capacity corresponding to the target charging stage, the current battery capacity, and the first charging amount of constant voltage charging;

[0038] Obtaining a second charging duration of constant current charging in the target charging phase according to a ratio of the second charging amount to the current charging current;

[0039] The target charging duration is determined based on the sum of the first charging duration and the second charging duration.

[0040] In some implementations, the first duration determination module is configured to:

[0041] Obtaining a total charge amount charged to the electronic device in the target charging stage according to a difference between the remaining battery capacity corresponding to the target charging stage and the current battery capacity;

[0042] Obtaining the first charging amount of constant voltage charging in the target charging stage according to the current charging current, the constant current of the next charging stage, and the first charging duration;

[0043] The second charge amount of constant current charging in the target charging stage is obtained according to the difference between the total charge amount charged in the target charging stage and the first charge amount.

[0044] In some embodiments, the stage determination module is configured to:

[0045] In response to the electronic device establishing a charging connection with the charging adapter, performing protocol interaction with the charging adapter to determine a current charging strategy;

[0046] According to the current charging strategy, determine a target charging parameter model corresponding to the current charging strategy from at least one pre-established charging parameter model; the charging parameter model includes multiple charging stages, and a constant current, a current drop rate, a remaining battery capacity, and a charging time corresponding to each charging stage;

[0047] Based on the current charging current and the target charging parameter model, a target charging stage of the current charging current is determined.

[0048] In some embodiments, the detection device described in the present disclosure further includes a model building module configured to:

[0049] Based on the current change during the charging process, a constant current of each constant current process is determined, and the charging process is divided into a plurality of charging stages according to each constant current;

[0050] For each charging stage, the current range is determined according to the constant current of this charging stage and the constant current of the next charging stage, the current decrease rate is determined according to the rate at which the constant current of this charging stage decreases to the constant current of the next charging stage, the remaining battery capacity is determined according to the battery capacity at the end of the charging stage, and the charging duration is determined according to the duration of the charging stage.

[0051] In some embodiments, the model building module is configured to:

[0052] Determine the difference between the constant current of the charging stage and the constant current of the next charging stage, and obtain the current drop rate according to the ratio of the difference to the constant voltage charging time of the charging stage;

[0053] and / or,

[0054] The current decrease rate is obtained by performing curve fitting based on the current decrease curve in the charging stage.

[0055] In some implementations, the second duration determination module is configured to:

[0056] The remaining charging time is output and displayed on a display screen of the electronic device.

[0057] In a third aspect, an embodiment of the present disclosure provides an electronic device, including:

[0058] Processor; and

[0059] A memory storing computer instructions, wherein the computer instructions are used to enable the processor to execute the method described in any embodiment of the first aspect.

[0060] In a fourth aspect, an embodiment of the present disclosure provides a storage medium storing computer instructions, wherein the computer instructions are used to enable a computer to execute the method according to any embodiment of the first aspect.

[0061] The remaining charging time detection method of the disclosed embodiment includes, during the charging process of the electronic device, determining the target charging stage based on the current charging current, determining the target charging time of the electronic device in the target charging stage according to the current charging current, the current battery capacity, and the current drop rate and the remaining battery capacity corresponding to the pre-configured target charging stage, and estimating the charging time of each charging stage after the target charging stage according to the target charging time, to obtain the remaining charging time for the electronic device to be fully charged. In the disclosed embodiment, by dividing the charging process into multiple charging stages according to the current range, and determining the duration of the current charging stage based on the actual state of the current charging process, compared with the traditional table lookup method, it can effectively adapt to abnormal charging scenarios such as high ambient temperature, and obtain more accurate charging time prediction results. BRIEF DESCRIPTION OF THE DRAWINGS

[0062] In order to more clearly illustrate the specific embodiments of the present disclosure or the technical solutions in the prior art, the drawings required for use in the specific embodiments or the description of the prior art will be briefly introduced below. Obviously, the drawings described below are some embodiments of the present disclosure. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying any creative work.

[0063] Figure 1 It is a curve diagram of current variation during the charging process of an electronic device in the related technology.

[0064] Figure 2 It is a schematic diagram of application scenarios of electronic devices in some embodiments of the present disclosure.

[0065] Figure 3 It is a curve diagram of current variation during the charging process of an electronic device according to some embodiments of the present disclosure.

[0066] Figure 4 It is a flowchart of a method for detecting remaining charging time in some embodiments of the present disclosure.

[0067] Figure 5 It is a flowchart of a method for detecting remaining charging time in some embodiments of the present disclosure.

[0068] Figure 6 It is a flowchart of a method for detecting remaining charging time in some embodiments of the present disclosure.

[0069] Figure 7 It is a flowchart of a method for detecting remaining charging time in some embodiments of the present disclosure.

[0070] Figure 8 It is a comparison diagram of the effects of the remaining charging time detection method in some embodiments of the present disclosure.

[0071] Fig. 9 It is a comparison diagram of the effects of the remaining charging time detection method in some embodiments of the present disclosure.

[0072] Fig.10 It is a flowchart of a method for detecting remaining charging time in some embodiments of the present disclosure.

[0073] Fig.11 It is a structural block diagram of a remaining charging time detection device according to some embodiments of the present disclosure.

[0074] Fig.12 It is a structural block diagram of an electronic device according to some implementations of the present disclosure. DETAILED DESCRIPTION

[0075] The technical solution of the present disclosure will be described clearly and completely below in conjunction with the accompanying drawings. Obviously, the described implementation is a part of the implementation of the present disclosure, rather than all the implementations. Based on the implementation in the present disclosure, all other implementations obtained by ordinary technicians in the field without creative work are within the scope of protection of the present disclosure. In addition, the technical features involved in the different implementations of the present disclosure described below can be combined with each other as long as they do not conflict with each other.

[0076] At present, the fast charging power of consumer electronic devices is getting higher and higher, and the time required to fully charge is getting shorter and shorter. At the same time, the fast charging algorithms of various electronic devices are becoming more and more complex. If during the charging process, electronic devices can provide users with a relatively accurate estimate of the remaining charging time, it can greatly improve the user experience.

[0077] For example, taking a mobile terminal as an example, when the mobile terminal is charging, if the mobile terminal can output and display similar prompt information such as "estimated to be fully charged in 15 minutes", on the one hand, the user can clearly perceive the fast charging effect and highlight the value of fast charging. On the other hand, the user can also make more accurate action arrangements based on the estimated remaining charging time.

[0078] In order to predict the charging time, the Android native architecture provides an algorithm for predicting the remaining charging time. However, the algorithm logic is relatively rough, and the estimated charging time is significantly different from the actual charging time, which makes it impossible to present it to the user.

[0079] The basic principle is: estimated full charge time = (battery full capacity - current battery remaining capacity) / current charging current. It can be seen that the algorithm logic regards the entire charging process as a constant current charging (ConstantCurrent, CC) process with constant current. However, the current fast charging strategies all include multi-step constant current (CC) and constant voltage (CV) alternating, not single-step constant current charging, so this algorithm cannot be applied.

[0080] For ease of understanding, Figure 1 The current change curve in a fast charging strategy is shown below. Figure 1 The fast charging process and principle are explained.

[0081] exist Figure 1 In the example, it can be seen that the charging current includes multiple step-like changes in the process of the battery power increasing from 0% to 100%. In the first stage, the charging current is about 12000mA constant current (CC) charging for about 12 minutes, and then constant voltage (CV) charging for about 2 minutes.

[0082] It can be understood that at the end of constant current CC, the electrochemical polarity inside the battery remains at the same level as constant current CC. After switching to the constant voltage CV process, under the action of a constant electric field, the polarization of the lithium ion concentration difference inside the battery is gradually eliminated, and the migration number and speed of the ions are manifested as a gradual decrease in the charging current.

[0083] Therefore, after the first stage of constant voltage CV charging is completed, the charging current drops to about 11000mA and enters the second stage. In the second stage, constant current CC charging is also performed at 11000mA, and then constant voltage CV charging is performed to reduce the current and enter the third stage. In the third stage, constant current CC charging is also performed first, and then constant voltage CV is performed to reduce the current.

[0084] During the entire charging process, the battery is continuously charged alternately in constant current CC and constant voltage CV modes until the cell voltage reaches the charging cut-off voltage. Finally, the charging cut-off voltage is maintained at constant voltage CV charging until the charging current drops to the charging cut-off current. The entire charging process is completed and the battery is fully charged to 100%.

[0085] It can be seen that during the entire charging process, the charging current is not constant, but a multi-step constant current CC and constant voltage CV are performed alternately. Therefore, if the Android native algorithm is used to calculate the remaining charging time, the estimated remaining charging time calculated is very different from the actual charging process.

[0086] In order to achieve a more accurate prediction of the remaining charging time, some solutions in the related art count the charging time of each charging stage based on the historical charging process, and store the charging time of each charging stage in the electronic device. Figure 1 As shown, the charging time of each constant current CC and constant voltage CV process can be recorded and then saved in the electronic device. When the electronic device starts charging, the current charging current is compared with the current change of the stored historical charging process, and the current corresponding charging state is found by the table lookup method, and then the estimated full charge time is obtained by the stored charging time.

[0087] Although this method can improve the accuracy of charging time estimation compared to the Android native algorithm, it is only applicable to normal charging scenarios. For some abnormal charging scenarios, the calculated remaining charging time has a large error.

[0088] For example, when an electronic device is charged at room temperature, the peak charging current can reach 12A, but when it is charged at high temperature, the peak charging current will be limited to 6A due to the charging protection mechanism. In this case, if the charging time of the stored historical charging process is still used for estimation, the result obtained will have a large error, making the above solution unsuitable for abnormal charging scenarios such as high temperature.

[0089] Based on the above, it can be seen that the schemes for predicting charging time in the related art have poor accuracy and limited application scenarios, and are difficult to apply to abnormal charging scenarios such as high-temperature charging. Therefore, the embodiments of the present disclosure provide a remaining charging time detection method, device, electronic device and storage medium, which are intended to improve the prediction accuracy of the remaining charging time of electronic devices, and can be applied to various abnormal charging scenarios.

[0090] In the first aspect, the embodiments of the present disclosure provide a method for detecting the remaining charging time, which can be applied to electronic devices. The electronic device described in the present disclosure can be any electronic device with cyclic charging and discharging capabilities, such as mobile terminals such as smart phones and tablet computers, wearable devices such as smart watches and smart bracelets, and transportation vehicles such as electric cars and electric bicycles, and the present disclosure does not limit this.

[0091] For example Figure 2 In the example scenario, the electronic device is a smartphone. During the charging process of the smartphone, the remaining charging time can be obtained by executing the remaining charging time detection method described below in the present disclosure. Then, the smartphone can display the remaining charging time on the display screen, such as Figure 2 The "estimated full charge time 28 minutes" is displayed on the display, so that users can see the remaining charging time on the display.

[0092] The remaining charging time detection method of the disclosed embodiment mainly includes two parts: one is to pre-establish a charging parameter model based on the charging strategy of the electronic device; the other is to predict the remaining charging time based on the pre-established charging parameter model.

[0093] For ease of understanding, the following first describes the process of pre-establishing a charging parameter model, and then describes the process of predicting the remaining charging time in an actual charging process.

[0094] Taking smartphones as an example, currently fast-charging phones and chargers often support multiple fast-charging protocols, corresponding to different charging strategies. For example, a certain brand of mobile phone often interacts with its own charging adapter through a private fast-charging protocol, which can achieve peak power fast charging; while charging adapters from other manufacturers can only interact through a public fast-charging protocol to achieve relatively low-power fast charging. Therefore, electronic devices often support multiple charging strategies.

[0095] In the embodiment of the present disclosure, in the modeling stage, a corresponding charging parameter model can be established for each charging strategy supported by the electronic device. Figure 3 The charging current variation curve of an electronic device during fast charging using a certain charging strategy is shown below. Figure 3 Taking the example, the process of establishing the charging parameter model in the embodiment of the present disclosure is described.

[0096] exist Figure 3 In the current curve shown, the horizontal axis represents the charging time in seconds (s), and the vertical axis represents the charging current in milliamperes (mA).

[0097] exist Figure 3 In the example, the charging current curve shows that when the battery is charged from 0% to 100%, the charging process needs to include the following stages:

[0098] Constant current CC1: Curve ab, charging current is about 10000mA;

[0099] Constant pressure CV1: curve bc;

[0100] Constant current CC2: curve cd, charging current is about 7000mA;

[0101] Constant pressure CV2: curve de;

[0102] Constant current CC3: Curve ef, charging current is about 6000mA;

[0103] Constant pressure CV3: curve fg;

[0104] Constant current CC4: Curve gh, charging current is about 4500mA;

[0105] Constant voltage CV4: curve hi.

[0106] Below Figure 3 As shown in the example, combined Figure 4Implementation The process of establishing a charging parameter model according to the implementation of the present disclosure is described.

[0107] like Figure 4 As shown, in some embodiments, the remaining charging time detection method of the example of the present disclosure, the process of pre-establishing a charging parameter model includes:

[0108] S410: Determine a constant current of each constant current process based on current changes during the charging process, and divide the charging process into multiple charging stages according to each constant current.

[0109] S420. For each charging stage, determine the current range according to the constant current of the charging stage and the constant current of the next charging stage, determine the current decrease rate according to the rate at which the constant current of the charging stage decreases to the constant current of the next charging stage, determine the remaining battery capacity according to the battery capacity at the end of the charging stage, and determine the charging duration according to the duration of the charging stage.

[0110] See also Figure 3 As shown, for the entire charging process, the constant current corresponding to each constant current process can be determined according to the change curve of the charging current, that is, the constant current of the constant current CC1 process is 10000mA, the constant current of the constant current CC2 process is 7000mA, the constant current of the constant current CC3 process is 6000mA, and the constant current of the constant current CC4 process is 4500mA. Then, the entire charging process can be divided into multiple charging stages according to the constant current of each constant current process.

[0111] For example Figure 3 In this example, the entire charging process can be divided into the following parts according to the constant current:

[0112] Charging stage 1: curve ab and curve bc, current range 7000mA ~ 10000mA;

[0113] Charging stage 2: curve cd and curve de, current range 6000mA ~ 7000mA;

[0114] Charging stage 3: curve ef and curve fg, current range 4500mA~6000mA;

[0115] Charging stage 4: curve gh and curve hi, current range 1170mA ~ 4500mA.

[0116] The current range of each charging stage refers to the current range between the constant current of the charging stage and the constant current of the next charging stage.

[0117] After dividing the charging stages and the current range corresponding to each charging stage, it is necessary to determine the current drop rate during the constant voltage CV process in each charging stage, the remaining battery capacity at the end of each charging stage, and the charging time.

[0118] by Figure 3 Taking the example shown in the figure, according to the horizontal coordinate of the current change curve, the duration of each charging stage can be read respectively, and then the charging time corresponding to each charging stage can be obtained. For example, in this example, the charging time of each charging stage is:

[0119] Charging stage 1: The charging time of constant current CC1 is 8.1 minutes, and the charging time of constant voltage CV1 is 6.8 minutes;

[0120] Charging stage 2: The charging time of constant current CC2 is 4.1 minutes, and the charging time of constant voltage CV2 is 1.2 minutes;

[0121] Charging stage 3: The charging time of constant current CC3 is 3.3 minutes, and the charging time of constant voltage CV3 is 2.0 minutes;

[0122] Charging stage 4: The charging time of constant current CC4 is 1.7 minutes, and the charging time of constant voltage CV4 is 15.2 minutes.

[0123] The remaining battery capacity described in the embodiments of the present disclosure refers to the battery capacity of the battery cell at the end of each charging stage, which can be obtained by reading the power meter data of the battery protection board. Figure 3 For example, in one example, the remaining battery capacity corresponding to each charging stage is:

[0124] Charging stage 1: The remaining battery capacity of constant current CC1 is 1501mA;

[0125] The remaining battery capacity of constant voltage CV1 is 2482mA.

[0126] Charging stage 2: The remaining battery capacity of constant current CC2 is 2960mA;

[0127] The remaining battery capacity of constant voltage CV2 is 3082mA.

[0128] Charging stage 3: The remaining battery capacity of constant current CC3 is 3420mA;

[0129] The remaining battery capacity of constant voltage CV3 is 3599mA.

[0130] Charging stage 4: The remaining battery capacity of constant current CC4 is 3729mA;

[0131] The remaining battery capacity of the constant voltage CV5 is 4286mA.

[0132] For example, the remaining battery capacity of constant current CV2 of 3082 mA means that at the end of constant voltage CV2 of charging stage 2, the battery capacity charged into the battery is 3082 mA. The same is true for other reasons, which will not be described in detail in this disclosure.

[0133] It can be understood that each charging stage includes constant current CC and constant voltage CV processes. During the constant current CC charging process, the current remains unchanged, and during the constant voltage CV process, the current gradually decreases until it drops to the next charging stage, and then switches to the constant current of the next charging stage for constant current charging, and so on until the charging is completed. The current drop rate described in the embodiment of the present disclosure is the rate at which the current drops from the constant current of the current charging stage to the constant current of the next charging stage during the constant voltage CV process.

[0134] In some embodiments, the current drop rate of the constant voltage CV process in each charging stage can be determined by dividing the current difference between the start and end of the constant voltage CV by the charging time to obtain the current drop rate. Figure 3 As shown, taking the constant voltage CV1 process as an example, the current at the starting point b of the process is 10000mA, the current at the ending point c is 7000mA, and the charging time of the CV1 process is 6.8min. Then the current drop rate of the constant voltage CV process is: (10000mA-7000mA) / 6.8min. Similarly, the current drop rate of the constant voltage CV2 process is: (7000mA-6000mA) / 1.2min, which will not be described in detail in this disclosure.

[0135] In other embodiments, considering that the current drop curve is not completely linear during the constant voltage CV process, for example Figure 3 In the constant voltage CV1, CV2 and CV3 processes, the current drop curves are close to linear changes, and the current drop rate error obtained by the above process is not large. However, for the constant voltage CV4 process, the current drop curve is nonlinear, and if the current drop rate is still calculated using the above method, the error is large.

[0136] Therefore, the current drop curve can be fitted based on the curve fitting algorithm to obtain a more accurate current drop rate. In the embodiments of the present disclosure, there is no limitation on the specific curve fitting algorithm, for example, the least squares method, Gaussian elimination method, etc. can be used. Those skilled in the art can undoubtedly understand it by referring to the relevant technology, and the present disclosure will not repeat it.

[0137] For example Figure 3 In this example, the current drop rate during the constant voltage CV process in each charging stage is obtained as:

[0138] Charging stage 1: constant voltage CV1, current drop rate 7407.4;

[0139] Charging stage 2: constant voltage CV2, current drop rate 14285.7;

[0140] Charging stage 3: constant voltage CV3, current drop rate 12295.1;

[0141] Charging stage 4: constant voltage CV4, current decrease rate 4928.8.

[0142] Through the above process, the current range, charging time, remaining battery capacity and current drop rate of each charging stage are obtained respectively, and the Figure 3 The charging parameter model corresponding to the charging strategy shown, for example, in one example, the charging parameter model may be as shown in Table 1 below:

[0143] Table 1 Figure 3 Charging parameter model corresponding to charging strategy

[0144]

[0145] It is understandable that the above is only Figure 3 Taking the charging strategy shown as an example, the process of establishing the charging parameter model is described. If the electronic device supports multiple charging strategies at the same time, it is only necessary to repeat the above method process for the current change curve of each charging strategy to obtain the charging parameter model corresponding to each charging strategy, and this disclosure will not repeat it.

[0146] After constructing the above one or more charging parameter models, the charging parameter models can be stored in the electronic device, so that in the subsequent charging process, the stored charging parameter models can be retrieved, and the remaining charging time can be detected according to the following method of the present disclosure. Figure 5 The implementation method is described.

[0147] like Figure 5 As shown, in some embodiments, the remaining charging time detection method of the present disclosure example includes:

[0148] S510: During the charging process of the electronic device, determine a target charging stage of the current charging current based on the current charging current.

[0149] In some embodiments, the electronic device takes a smart phone as an example. After the smart phone establishes a charging connection with the charger, the phone and the charger will interact with each other through a fast charging protocol, and after a fast charging protocol handshake succeeds, a fast charging connection is established.

[0150] During the charging process of the electronic device and the charger, the electronic device can detect the current charging current C in real time. RT .

[0151] It is worth noting that, for example, the charging strategy established between the electronic device and the charger is Figure 3 As shown in the figure, if the electronic device is charged at room temperature, the charging current should reach about 10000mA at the initial stage of charging, that is, charging is carried out according to the constant current CC1 process. However, if it is charged in abnormal charging scenarios such as high ambient temperature, the charging current may be limited to 6600mA at the initial stage of charging, that is, it cannot be charged at the original 10000mA constant current, and can only be charged at 6600mA.

[0152] In other words, in the embodiment of the present disclosure, the current charging current C detected during the charging process of the electronic device is RT , which may be the current value in a normal charging scenario or the current value in an abnormal charging scenario. The present disclosure does not distinguish between them, and a more accurate remaining charging time can be obtained.

[0153] The current charging current C is detected RT After that, the current charging current C can be determined by combining the previously established charging parameter model. RT The charging stage is also the target charging stage described in the present disclosure.

[0154] For example, in some implementations, the charging strategy established between the electronic device and the charger is as follows: Figure 3 As shown, the corresponding charging parameter model is shown in Table 1 above. In one example, assuming that the current charging current C RT =6600mA, the current charging current C can be determined according to the current range of each charging stage. RT It is in charging stage 2 (current range 6000mA-7000mA), that is, the target charging stage is "charging stage 2".

[0155] S520: Determine a target charging duration of the electronic device in the target charging stage according to the current charging current, the current battery capacity, and the current drop rate and the remaining battery capacity corresponding to the pre-configured target charging stage.

[0156] It can be understood that no matter the electronic device is in a normal charging scenario or an abnormal charging scenario, when determining the current target charging stage, the entire charging process until the electronic device is fully charged includes the target charging stage and the charging stage after the target charging stage.

[0157] As shown in Table 1, for example, in the previous example, the current charging current C is detected RT=6600mA, the target charging stage is determined to be "charging stage 2". Therefore, in the entire process from the current moment to when the electronic device is fully charged, the charging stages experienced by the electronic device include "charging stage 2", "charging stage 3" and "charging stage 4". Among them, charging stage 2 is the target charging stage, and charging stage 3 and charging stage 4 are the charging stages after the target charging stage.

[0158] Therefore, in the embodiment of the present disclosure, the duration of the entire charging process can be divided into two parts, namely: the target charging duration Time_1 lasting in the target charging stage, and the charging duration Time_2 lasting in each charging stage after the target charging stage.

[0159] For example, in the above example, the target charging stage is "charging stage 2", so the duration of the entire charging process can be expressed as: Time_output = Time_1 + Time_2. Among them, Time_output is the remaining charging time, Time_1 is the target charging time in charging stage 2, and Time_2 is the charging time in charging stage 3 and charging stage 4.

[0160] The charging time Time_2 after the target charging stage can be directly obtained by looking up the table through the charging parameter model shown in Table 1. For example, the charging time of charging stage 3 is 3.3min+2.0min=5.3min, and the charging time of charging stage 4 is 1.7min+15.2min=16.9min, so Time_2=5.3min+16.9min=22.2min.

[0161] However, the duration of the target charging stage "charging stage 2" cannot be obtained by looking up the charging parameter model table. This is because the current charging current C RT It is not necessarily the current value detected in a normal charging scenario, but may be the charging current value under current limitation.

[0162] For example, in an example, when a mobile phone is charged in a high temperature environment, the charging current that can reach 10000mA is limited to 6600mA. In the entire charging process, as shown in Table 1, the electronic device will perform constant current CC charging at 6600mA, and then the constant voltage CV will reduce the current to 6000mA to enter charging stage 3. The subsequent charging process can be completely based on the strategies of charging stage 3 and charging stage 4 until it is fully charged.

[0163] It can be seen that the strategy in the target charging stage (i.e., charging stage 2) is different from that in the pre-built charging parameter model. If the charging time of charging stage 2 is directly read, a large error will be introduced, resulting in a large deviation in the estimated charging time.

[0164] Therefore, in the embodiment of the present disclosure, the current charging current C is calculated in real time. RT And the pre-built charging parameter model is used to calculate the duration of the electronic device in the target charging stage, that is, the target charging duration Time_1.

[0165] According to the above, the electronic device also includes two processes, constant current CC charging and constant voltage CV charging, during the target charging phase. Therefore, in some implementations, the first charging duration of the constant voltage CV process and the second charging duration of the constant current CC process can be determined respectively, and the first charging duration and the second charging duration are summed to obtain the target charging duration Time_1. This process is described in the following implementation of the present disclosure and will not be described in detail here.

[0166] S530: Obtain the remaining charging time for fully charging the electronic device according to the target charging time and the charging time of each charging stage after the pre-configured target charging stage.

[0167] In combination with the above, it can be seen that after the target charging duration Time_1 of the current target charging stage is obtained through S520, the charging duration of each charging stage after the target charging stage can be read through the pre-established charging parameter model, that is, the charging duration Time_2 of each charging stage after the target charging stage is obtained according to the charging parameter model.

[0168] Therefore, the remaining charging time Time_output of the electronic device at the current moment can be calculated according to Time_output=Time_1+Time_2.

[0169] In some embodiments, after the remaining charging time Time_output is obtained, the remaining charging time Time_output can be output and displayed on the display screen of the electronic device. For example, in an example, the electronic device takes a smart phone as an example, and can output and display on the display screen of the mobile phone such as Figure 2 The text shown is labeled "Estimated time to fill: Time_output minutes".

[0170] Of course, the remaining charging time is not limited to Figure 2 Examples may also be any other display method suitable for implementation. For example, in one example, the remaining charging time may be displayed in the AOD (Always on Display) interface of the mobile phone, and the present disclosure does not limit this.

[0171] From the above, it can be seen that in the embodiment of the present disclosure, by dividing the charging process into multiple charging stages according to the current range, and determining the duration of the current charging stage based on the actual state of the current charging process, compared with the traditional table lookup method, it can effectively adapt to abnormal charging scenarios such as high temperature environment and obtain more accurate charging time prediction results.

[0172] For ease of understanding, the following will be Figure 3 Taking the charging strategy shown as an example, the specific process of determining the target charging duration Time_1 in the embodiment of the present disclosure is explained.

[0173] like Figure 6 As shown, in some embodiments, the remaining charging time detection method of the present disclosure example, the process of determining the target charging time of the electronic device in the target charging stage includes:

[0174] S610: Obtain a first charging duration of constant voltage charging in a target charging phase according to the current charging current and the current decreasing rate.

[0175] According to the above, no matter the current charging current C RT Whether it is the current value of a normal charging scenario or the current value of an abnormal charging scenario, the charging process of an electronic device in the target charging stage includes the following two processes:

[0176] 1) With the current charging current C RT The process of constant current CC charging;

[0177] 2) From the current charging current C RT The constant voltage CV charging process of the constant current drops to the next charging stage.

[0178] For example, in the previous example scenario, the current charging current C RT =6600mA, according to the charging parameter relationship in Table 1, the target charging stage is determined to be charging stage 2, and the charging process in charging stage 2 includes:

[0179] The constant current CC2 process, that is, the current charging current C RT =6600mA constant current charging process;

[0180] The constant voltage CV2 process, that is, the constant voltage charging process in which the current drops from 6600mA to 6000mA.

[0181] Therefore, the target charging time Time_1 of the electronic device in the target charging phase is divided into two parts, namely the first charging time Time_CV2 of the constant voltage CV2 process and the second charging time Time_CC2 of the constant current CC2 process, expressed as: Time_1=Time_CV2+Time_CC2.

[0182] For the first charging time Time_CV2, according to the charging parameter model shown in Table 1 above, the current drop rate CV2_rate corresponding to the target charging stage (charging stage 2) can be obtained as 14285.7. Moreover, during the constant voltage CV2 process, the current drop amplitude is 6600mA-6000mA=600mA. Therefore, the first charging time Time_CV2 of the constant voltage CV2 process is: Time_CV2=(6600mA-6000mA) / 14285.7=42s.

[0183] That is, in this example, the first charging time duration Time_CV2 of the electronic device during constant voltage CV2 charging in the target charging stage (charging stage 2) is 42 s.

[0184] S620: Determine a second charging capacity of constant current charging in the target charging stage according to the remaining battery capacity corresponding to the target charging stage, the current battery capacity, and the first charging capacity of constant voltage charging.

[0185] In the embodiment of the present disclosure, the second charging duration Time_CC2 refers to the duration of constant current charging of the electronic device in the target charging phase. Since this process is constant current CC2 charging, the charging current (mA) maintains the current charging current C RT If the charging capacity (mAh) of this process can be obtained, the duration (h) of this process can be obtained by dividing the charging capacity (mAh) by the charging current (mA).

[0186] For the entire charging stage 2, the remaining battery capacity at the end of the charging stage 2 can be obtained by reading the charging parameter model shown in Table 1. That is, in this example, the remaining battery capacity RM2 at the end of the charging stage 2 = 3082 mA.

[0187] The remaining battery capacity at the end of charging stage 2 is RM2 = 3082mA, including the current battery capacity RM RT , the first charge amount RM charged during the constant voltage CV2 process CV2 And the second charge amount RM charged in the constant current CC2 process CC2 , expressed as:

[0188] RM2=RM RT +RM CV2 +RMCC2 (1)

[0189] By transforming formula (1), we get the following formula:

[0190] RM CC2 = RM2-RM RT -RM CV2 (2)

[0191] In formula (2), RM CC2 This is the second charge amount charged in the constant current CC2 process to be determined. RM2 represents the remaining capacity of the battery at the end of charging stage 2. This value has been obtained by reading the charging parameter model, that is, RM2 = 3082 mA. RM RT Indicates the current battery capacity. It is understandable that when an electronic device is charging, the battery capacity is not necessarily zero. It may have a certain battery capacity before charging. The current battery capacity can be directly read from the fuel gauge.

[0192] RM CV2 Indicates the first charge amount charged during the constant voltage CV2 process. This value can be calculated using the current charging current C RT , the constant current C of the next charging stage 3 And the first charging time Time_CV2 obtained above is calculated, and the following is combined with Figure 7 Provide explanation.

[0193] like Figure 7 As shown, in some embodiments, the remaining charging time detection method of the present disclosure example determines the second charging amount RM of the constant current charging in the target charging stage. CC2 The process includes:

[0194] S621. Obtain a total charge amount charged to the electronic device in the target charging stage according to a difference between the remaining battery capacity corresponding to the target charging stage and the current battery capacity.

[0195] Combined with the above formula (2), it can be understood that the remaining battery capacity RM2 corresponding to the target charging stage is equal to the current battery capacity RM RT The difference between RM2 and RM2 is the total charge amount charged in the target charging stage, expressed as: RM2-RM RT =RM CC2 +RM CV2 .

[0196] S622: Obtain a first charging amount of constant voltage charging in a target charging stage according to the current charging current, the constant current of the next charging stage, and the first charging duration.

[0197] Combination Figure 3As shown, in this example, for the constant voltage CV2 process in the target charging phase (charging phase 2), the charging current is determined by the current charging current C RT = 6600mA, down to the constant current C of the next charging stage (charging stage 3) 3 =6000mA, and the first charging duration Time_CV2 of the process =42s has been calculated through the aforementioned S610.

[0198] It can be understood that the charge capacity mAh is equal to the current mA multiplied by the charging time h. Therefore, the first charge capacity RM charged in the constant voltage CV2 process is calculated as CV2 , that is, to seek Figure 3 The area enclosed by the right trapezoid of opqe shown.

[0199] The upper base eq of the right-angle trapezoid opqe is the constant current C in charging stage 3 3 =6000mA, the lower limit op is the current charging current C RT =6600mA, high pq is the first charging time Time_CV2 = 42s. Thus, the first charge amount RM charged in the constant voltage CV2 process CV2 It is expressed as:

[0200] RM CV2 =1 / 2*(C 3 +C RT )* Time_CV2 (3)

[0201] According to formula (3), the first charge amount RM can be calculated CV2 .

[0202] S623: Obtain a second charging amount for constant current charging in the target charging stage according to a difference between the total charging amount charged in the target charging stage and the first charging amount.

[0203] Combined with the above formula (2), the remaining battery capacity RM2 is obtained through the charging parameter model, and the current battery capacity RM RT The first charge amount RM is obtained by reading the fuel gauge. CV2 Calculated by formula (3). Therefore, by substituting each value into the above formula (2), the second charge amount RM charged in the constant current CC2 process can be obtained. CC2 .

[0204] For example, in an example, assuming that the current battery capacity RM RT =254mA, the second charge amount RM charged in the constant current CC2 process is calculated by the above formula (2): CC2 =2754.5mA.

[0205] S630: Obtain a second charging duration of constant current charging in a target charging phase according to a ratio of the second charging amount to the current charging current.

[0206] Combined with the above S620, it can be seen that since the constant current CC2 process is constant current charging, and the charging circuit is the current charging current C RT =6600mA, therefore, the second charge amount RM CC2 With the current charging current C RT The ratio of is the second charging time Time_CC2 of the constant current CC2 process of the electronic device, expressed as: Time_CC2 = RM CC2 / C RT =2754.5 / 6600*3600=1502.5s. That is, the second charging time duration Time_CC2=1502.5s.

[0207] S640: Determine a target charging duration based on the sum of the first charging duration and the second charging duration.

[0208] According to the above S610, the target charging time of the electronic device in the target charging stage Time_1 = Time_CV2 + Time_CC2. The first charging time Time_CV2 = 42s and the second charging time Time_CC2 = 1502.5s are obtained respectively. Therefore, the target charging time Time_1 = (42 + 1502.5) / 60 = 25.7min.

[0209] That is, the target charging duration Time_1 of the electronic device in the target charging stage (charging stage 2) is 25.7 min.

[0210] Combined with the above Table 1, after obtaining the target charging time Time_1=25.7min of the electronic device in charging stage 2, the charging time Time_2=3.3+2.0+1.7+15.2=22.2min of charging stage 3 and charging stage 4 can be read through the charging parameter model in Table 1.

[0211] Therefore, the remaining charging time predicted at the current moment is Time_output = Time_1 + Time_2 = 25.7 + 22.2 ≈ 48 minutes. Then, the electronic device can Figure 2 As shown, a prompt label such as "estimated full charge time 48 minutes" is output on the display screen.

[0212] From the above examples, we can see that in normal charging scenarios, Figure 3The charging strategy shown does not have a 6600mA constant current charging process, so the charging scenario in the above example is an abnormal charging scenario, that is, the charging current is limited to 6600mA from the normal 10000mA. However, through the method process of the embodiment of the present disclosure, the duration of the electronic device charging at a constant current CC2 of 6600mA and the constant voltage CV2 charging duration from 6600mA to 6000mA can still be correctly calculated. Combined with the charging duration of the subsequent charging stage obtained by looking up the table, the remaining charging duration in the current charging process can be accurately estimated.

[0213] Figure 8 The figure shows the difference between the remaining charging time estimated by the method of the embodiment of the present disclosure and the actual charging time when the electronic device is charged at normal temperature (ambient temperature 25° C.).

[0214] exist Figure 8 In the table shown, the theoretical full charge time is the remaining charging time calculated using the method of the embodiment of the present disclosure, the actual full charge time is the actual charging time of the electronic device, and the absolute error is the difference between the theoretical full charge time and the actual charging time.

[0215] pass Figure 8 It can be seen that in the normal temperature charging scenario, the maximum real-time error between the remaining charging time calculated using the method of the embodiment of the present disclosure and the actual full charging time is only 2.8 minutes, which has a very high time prediction accuracy.

[0216] Fig. 9 The figure shows the difference between the remaining charging time estimated by the method of the embodiment of the present disclosure and the actual charging time in a high temperature (ambient temperature 35° C.) charging scenario of an electronic device.

[0217] pass Figure 8 It can be seen that in the high-temperature charging scenario, the maximum real-time error between the remaining charging time calculated by the method of the embodiment of the present disclosure and the actual full charging time is 5.9 minutes. It can be seen that even in extreme charging scenarios, the method of the embodiment of the present disclosure can still have good accuracy, which is higher than the traditional table lookup method and can fully meet the accuracy requirements for deployment in consumer-grade electronic devices.

[0218] From the above, it can be seen that in the embodiment of the present disclosure, by dividing the charging process into multiple charging stages according to the current range, and determining the duration of the current charging stage based on the actual state of the current charging process, compared with the traditional table lookup method, it can effectively adapt to abnormal charging scenarios such as high temperature environment and obtain more accurate charging time prediction results.

[0219] In some embodiments, as can be seen from the above, for electronic devices such as smart phones, they may support multiple charging strategies, so in the above modeling stage, a charging parameter model can be pre-established for each charging strategy. In the actual charging process, the electronic device can select the corresponding charging parameter model according to the current charging strategy. Fig.10 Provide explanation.

[0220] like Fig.10 As shown, in some embodiments, the remaining charging time detection method of the present disclosure example includes:

[0221] S511: In response to the electronic device establishing a charging connection with the charging adapter, the electronic device performs protocol interaction with the charging adapter to determine a current charging strategy.

[0222] It can be understood that when an electronic device and a charging adapter establish fast charging, the electronic device and the charging adapter need to perform protocol interaction based on the fast charging protocol to determine the corresponding charging strategy.

[0223] The fast charging protocol may be a public fast charging protocol or a private fast charging protocol developed by various manufacturers. The present disclosure does not impose any restrictions on this. The public fast charging protocol may include, for example, a PD (Power Delivery) protocol, a QC (Quick Charge) protocol, and the like.

[0224] For example, in one example, the electronic device supports both 120W peak power fast charging and 67W peak power fast charging, while the power adapter only supports 67W peak power fast charging. Therefore, after the power adapter is connected to the electronic device, the two interact through the protocol and determine that both support 67W fast charging. Then, 67W fast charging is determined as the current charging strategy, and the power adapter provides current and voltage according to the 67W charging strategy applied by the electronic device.

[0225] As for the protocol interaction process between the electronic device and the charging adapter, those skilled in the art can undoubtedly understand it by referring to the relevant technology, and the present disclosure will not elaborate on it.

[0226] S512: According to the current charging strategy, determine a target charging parameter model corresponding to the current charging strategy from at least one pre-established charging parameter model.

[0227] According to the above, for electronic devices that support multiple charging strategies, a charging parameter model can be pre-established for each charging strategy in the above modeling stage. For example, in the above example, the electronic device supports both 120W peak power fast charging and 67W peak power fast charging, so that in the modeling stage, the charging parameter models corresponding to 120W fast charging and 67W fast charging can be established based on the above method process.

[0228] For the specific process of establishing the parameter charging model, those skilled in the art may refer to the above description, which will not be repeated here.

[0229] In the actual charging process, after the electronic device interacts with the charging adapter through a protocol to determine the current charging strategy, it can determine the charging parameter model corresponding to the current charging strategy, that is, the target charging parameter model, from a plurality of pre-established charging parameter models.

[0230] For example, in the previous example, the electronic device interacts with the charging adapter through protocol to determine that the current charging strategy is 67W fast charging. The charging parameter model corresponding to 67W fast charging can be determined as the target parameter model from the pre-established charging parameter models corresponding to 120W fast charging and 67W fast charging.

[0231] S513: Determine the target charging stage of the current charging current based on the current charging current and the target charging parameter model.

[0232] For this process, those skilled in the art refer to the aforementioned Figure 5 The embodiments can be understood and fully implemented, and the present disclosure will not elaborate on them.

[0233] From the above, it can be seen that in the embodiment of the present disclosure, by dividing the charging process into multiple charging stages according to the current range, and determining the duration of the current charging stage based on the actual state of the current charging process, compared with the traditional table lookup method, it can effectively adapt to abnormal charging scenarios such as high temperature environment and obtain more accurate charging time prediction results.

[0234] In the second aspect, the embodiments of the present disclosure provide a remaining charging time detection device, which can be applied to electronic devices. The electronic device described in the present disclosure can be any electronic device with cyclic charging and discharging capabilities, such as mobile terminals such as smart phones and tablet computers, wearable devices such as smart watches and smart bracelets, and transportation vehicles such as electric cars and electric bicycles, and the present disclosure does not limit this.

[0235] like Fig.11 As shown, in some embodiments, the remaining charging time detection device of the present disclosure example includes:

[0236] The stage determination module 10 is configured to determine the target charging stage of the current charging current based on the current charging current during the charging process of the electronic device; the charging process includes multiple charging stages, and the multiple charging stages are divided based on the current range in the charging process;

[0237] The first duration determination module 20 is configured to determine the target charging duration of the electronic device in the target charging stage according to the current charging current, the current battery capacity, and the current drop rate and the battery remaining capacity corresponding to the pre-configured target charging stage; the current drop rate represents the rate at which the charging circuit drops from the current charging stage to the next charging stage, and the battery remaining capacity represents the battery capacity at the end of the current charging stage;

[0238] The second duration determination module 30 is configured to obtain the remaining charging time for fully charging the electronic device according to the target charging time and the pre-configured charging time of each charging stage after the target charging stage.

[0239] In some implementations, the first duration determination module 20 is configured to:

[0240] Obtaining a first charging duration of constant voltage charging in the target charging phase according to the current charging current and the current decrease rate;

[0241] Determine a second charging amount of constant current charging in the target charging stage according to the remaining battery capacity corresponding to the target charging stage, the current battery capacity, and the first charging amount of constant voltage charging;

[0242] Obtaining a second charging duration of constant current charging in the target charging phase according to a ratio of the second charging amount to the current charging current;

[0243] The target charging duration is determined based on the sum of the first charging duration and the second charging duration.

[0244] In some implementations, the first duration determination module 20 is configured to:

[0245] Obtaining a total charge amount charged to the electronic device in the target charging stage according to a difference between the remaining battery capacity corresponding to the target charging stage and the current battery capacity;

[0246] Obtaining the first charging amount of constant voltage charging in the target charging stage according to the current charging current, the constant current of the next charging stage, and the first charging duration;

[0247] The second charge amount of constant current charging in the target charging stage is obtained according to the difference between the total charge amount charged in the target charging stage and the first charge amount.

[0248] In some embodiments, the stage determination module 10 is configured to:

[0249] In response to the electronic device establishing a charging connection with the charging adapter, performing protocol interaction with the charging adapter to determine a current charging strategy;

[0250] According to the current charging strategy, determine a target charging parameter model corresponding to the current charging strategy from at least one pre-established charging parameter model; the charging parameter model includes multiple charging stages, and a constant current, a current drop rate, a remaining battery capacity, and a charging time corresponding to each charging stage;

[0251] Based on the current charging current and the target charging parameter model, a target charging stage of the current charging current is determined.

[0252] In some embodiments, the detection device described in the present disclosure further includes a model building module configured to:

[0253] Based on the current change during the charging process, a constant current of each constant current process is determined, and the charging process is divided into a plurality of charging stages according to each constant current;

[0254] For each charging stage, the current range is determined according to the constant current of this charging stage and the constant current of the next charging stage, the current decrease rate is determined according to the rate at which the constant current of this charging stage decreases to the constant current of the next charging stage, the remaining battery capacity is determined according to the battery capacity at the end of the charging stage, and the charging duration is determined according to the duration of the charging stage.

[0255] In some embodiments, the model building module is configured to:

[0256] Determine the difference between the constant current of the charging stage and the constant current of the next charging stage, and obtain the current drop rate according to the ratio of the difference to the constant voltage charging time of the charging stage;

[0257] and / or,

[0258] The current decrease rate is obtained by performing curve fitting based on the current decrease curve in the charging stage.

[0259] In some implementations, the second duration determination module is configured to:

[0260] The remaining charging time is output and displayed on a display screen of the electronic device.

[0261] In a third aspect, an embodiment of the present disclosure provides an electronic device, which may be the electronic device described above, and includes:

[0262] Processor; and

[0263] A memory stores computer instructions, wherein the computer instructions are used to enable the processor to execute the method described in any of the above embodiments.

[0264] In a fourth aspect, an embodiment of the present disclosure provides a storage medium storing computer instructions, wherein the computer instructions are used to enable a computer to execute a method according to any of the above embodiments.

[0265] Fig.12 The electronic device structure in some embodiments of the present disclosure is shown in FIG. Fig.12 Electronic devices according to some embodiments of the present disclosure are described.

[0266] Reference Fig.12 , the electronic device 1800 may include one or more of the following components: a processing component 1802 , a memory 1804 , a power component 1806 , a multimedia component 1808 , an audio component 1810 , an input / output (I / O) interface 1812 , a sensor component 1816 , and a communication component 1818 .

[0267] The processing component 1802 generally controls the overall operation of the electronic device 1800, such as operations associated with display, phone calls, data communications, camera operations, and recording operations. The processing component 1802 may include one or more processors 1820 to execute instructions. In addition, the processing component 1802 may include one or more modules to facilitate interaction between the processing component 1802 and other components. For example, the processing component 1802 may include a multimedia module to facilitate interaction between the multimedia component 1808 and the processing component 1802. For another example, the processing component 1802 may read executable instructions from a memory to implement electronic device related functions.

[0268] The memory 1804 is configured to store various types of data to support operations on the electronic device 1800. Examples of such data include instructions for any application or method operating on the electronic device 1800, contact data, phone book data, messages, pictures, videos, etc. The memory 1804 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.

[0269] The power supply component 1806 provides power to the various components of the electronic device 1800. The power supply component 1806 may include a power management system, one or more power supplies, and other components associated with generating, managing, and distributing power to the electronic device 1800.

[0270] The multimedia component 1808 includes a display screen that provides an output interface between the electronic device 1800 and the user. In some embodiments, the multimedia component 1808 includes a front camera and / or a rear camera. When the electronic device 1800 is in an operating mode, such as a shooting mode or a video mode, the front camera and / or the rear camera can receive external multimedia data. Each front camera and rear camera can be a fixed optical lens system or have a focal length and optical zoom capability.

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

[0272] I / O interface 1812 provides an interface between processing component 1802 and peripheral interface modules, such as keyboards, click wheels, buttons, etc. These buttons may include but are not limited to: home button, volume button, start button, and lock button.

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

[0274] The communication component 1818 is configured to facilitate wired or wireless communication between the electronic device 1800 and other devices. The electronic device 1800 can access a wireless network based on a communication standard, such as Wi-Fi, 2G, 3G, 4G, 5G or 6G, or a combination thereof. In an exemplary embodiment, the communication component 1818 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 1818 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.

[0275] In an exemplary embodiment, the electronic device 1800 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.

[0276] Obviously, the above embodiments are merely examples for the purpose of clear explanation, and are not intended to limit the embodiments. For those skilled in the art, other different forms of changes or modifications can be made based on the above description. It is not necessary and impossible to list all the embodiments here. The obvious changes or modifications derived therefrom are still within the scope of protection of the present invention.

Claims

1. A method for detecting remaining charging time, characterized in that: include: During the charging process of the electronic device, determining a target charging stage of the current charging current based on the current charging current; The charging process includes a plurality of charging stages, and the plurality of charging stages are divided based on a current range in the charging process; Determine a target charging time of the electronic device in the target charging stage according to the current charging current, the current battery capacity, and the current drop rate and the remaining battery capacity corresponding to the pre-configured target charging stage; The current drop rate indicates the rate at which the charging circuit drops from the current charging stage to the next charging stage, and the battery remaining capacity indicates the battery capacity at the end of the current charging stage; The remaining charging time for fully charging the electronic device is obtained according to the target charging time and the pre-configured charging time of each charging stage after the target charging stage.

2. The method according to claim 1, characterized in that: The step of determining a target charging duration of the electronic device in the target charging stage according to the current charging current, the current battery capacity, and the pre-configured current drop rate and battery remaining capacity corresponding to the target charging stage includes: Obtaining a first charging duration of constant voltage charging in the target charging phase according to the current charging current and the current decrease rate; Determine a second charging amount of constant current charging in the target charging stage according to the remaining battery capacity corresponding to the target charging stage, the current battery capacity, and the first charging amount of constant voltage charging; Obtaining a second charging duration of constant current charging in the target charging phase according to a ratio of the second charging amount to the current charging current; The target charging duration is determined based on the sum of the first charging duration and the second charging duration.

3. The method according to claim 2, characterized in that The determining, according to the remaining battery capacity corresponding to the target charging stage, the current battery capacity, and the first charging capacity of the constant voltage charging, the second charging capacity of the constant current charging in the target charging stage comprises: Obtaining a total charge amount charged to the electronic device in the target charging stage according to a difference between the remaining battery capacity corresponding to the target charging stage and the current battery capacity; Obtaining the first charging amount of constant voltage charging in the target charging stage according to the current charging current, the constant current of the next charging stage, and the first charging duration; The second charge amount of constant current charging in the target charging stage is obtained according to the difference between the total charge amount charged in the target charging stage and the first charge amount.

4. The method according to any one of claims 1 to 3, characterized in that: The method of determining the target charging stage of the current charging current based on the current charging current during the charging process of the electronic device includes: In response to the electronic device establishing a charging connection with the charging adapter, performing protocol interaction with the charging adapter to determine a current charging strategy; According to the current charging strategy, determine a target charging parameter model corresponding to the current charging strategy from at least one pre-established charging parameter model; the charging parameter model includes multiple charging stages, and a constant current, a current drop rate, a remaining battery capacity, and a charging time corresponding to each charging stage; Based on the current charging current and the target charging parameter model, a target charging stage of the current charging current is determined.

5. The method according to claim 4, characterized in that The process of pre-establishing the charging parameter model includes: Based on the current change during the charging process, a constant current of each constant current process is determined, and the charging process is divided into a plurality of charging stages according to each constant current; For each charging stage, the current range is determined according to the constant current of this charging stage and the constant current of the next charging stage, the current decrease rate is determined according to the rate at which the constant current of this charging stage decreases to the constant current of the next charging stage, the remaining battery capacity is determined according to the battery capacity at the end of the charging stage, and the charging duration is determined according to the duration of the charging stage.

6. The method according to claim 5, characterized in that Determining the current drop rate according to the rate at which the constant current in the charging stage drops to the constant current in the next charging stage includes: Determine the difference between the constant current of the charging stage and the constant current of the next charging stage, and obtain the current drop rate according to the ratio of the difference to the constant voltage charging time of the charging stage; and / or, The current decrease rate is obtained by performing curve fitting based on the current decrease curve in the charging stage.

7. The method according to claim 1, characterized in that After obtaining the remaining charging time for fully charging the electronic device, the method further includes: The remaining charging time is output and displayed on a display screen of the electronic device.

8. A device for detecting remaining charging time, characterized in that: include: A stage determination module, configured to determine a target charging stage of a current charging current based on a current charging current during charging of the electronic device; The charging process includes a plurality of charging stages, and the plurality of charging stages are divided based on a current range in the charging process; A first duration determination module is configured to determine a target charging duration of the electronic device in the target charging stage according to the current charging current, the current battery capacity, and the current drop rate and the remaining battery capacity corresponding to the pre-configured target charging stage; The current drop rate indicates the rate at which the charging circuit drops from the current charging stage to the next charging stage, and the battery remaining capacity indicates the battery capacity at the end of the current charging stage; The second duration determination module is configured to obtain the remaining charging time for fully charging the electronic device according to the target charging time and the pre-configured charging time of each charging stage after the target charging stage.

9. An electronic device, characterized in that: include: processor; as well as A memory storing computer instructions, wherein the computer instructions are used to enable the processor to execute the method according to any one of claims 1 to 7.

10. A storage medium, characterized in that: Computer instructions are stored, and the computer instructions are used to make a computer execute the method according to any one of claims 1 to 7.