Charging method, device, electronic device and storage medium

By detecting and adjusting the initial current of the charging device and adjusting the charging current according to the input voltage, the poor charging quality caused by the inability to use the original charging device is solved, and a more stable and efficient charging process is achieved.

CN113991779BActive Publication Date: 2025-03-11BEIJING XIAOMI MOBILE SOFTWARE CO LTD
View PDF 8 Cites 0 Cited by

Patent Information

Application Number
CN202111253547.9
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2021-10-27
Publication Date
2025-03-11
Estimated Expiration
2041-10-27

AI Technical Summary

Technical Problem

In electronic devices, the original charging device cannot be used, which makes the charging quality difficult to guarantee, affecting the charging experience.

Method used

By detecting whether the connected charging device is a preset type, if it is a preset type, it is charged with an initial current and adjusts the initial current according to the input voltage until the input voltage is within the target range.

Benefits of technology

This method can make full use of the charging capacity of the charging device on the basis of ensuring charging stability, improve the charging quality, and improve the problem of poor charging experience caused by uneven charging equipment quality.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN113991779B_ABST
    Figure CN113991779B_ABST
Patent Text Reader

Abstract

The present disclosure provides a charging method, device, electronic device and storage medium, the method comprising: if the charging device connected to the electronic device is a preset type of charging device, charging the battery of the electronic device with an initial current; obtaining an input voltage input to the electronic device through the charging device; if the input voltage is outside a target range, adjusting the initial current until the input voltage is within the target range. The charging method of the embodiment of the present disclosure improves the charging quality, thereby improving the problem of poor charging experience caused by uneven quality of charging devices.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

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

[0002] Electronic devices are equipped with rechargeable batteries. When the battery power in the electronic device is low, a charging device is needed to charge it. Because the quality of the original charging device is more guaranteed, using the original charging device of the electronic device for charging will achieve a better charging effect. However, in actual applications, due to various reasons, the original charging device cannot be used for charging. At this time, other charging devices will be used instead. The quality of different charging devices varies, and it is difficult to guarantee the charging quality, which affects the charging experience. Summary of the invention

[0003] The present disclosure provides a charging method, a device, an electronic device and a storage medium.

[0004] According to a first aspect of the present disclosure, there is provided a charging method, the method comprising:

[0005] If the charging device connected to the electronic device is a charging device of a preset type, charging the battery of the electronic device with an initial current;

[0006] Acquiring an input voltage input to the electronic device via the charging device;

[0007] If the input voltage is outside the target range, the initial current is adjusted according to a preset current change amount until the input voltage is within the target range.

[0008] In some implementations, if the input voltage is outside the target range, adjusting the initial current according to a preset current change amount includes:

[0009] If the input voltage is greater than or equal to the upper limit of the target range, increasing the initial current by the preset current change amount as a step size; and / or,

[0010] If the input voltage is less than the lower limit of the target range and greater than the minimum input voltage of the electronic device, the initial current is reduced with the preset current change as a step size.

[0011] In some implementations, the method further comprises:

[0012] The preset current change is determined according to electrical parameters of the electronic device and / or configuration parameters of the charging device.

[0013] In some implementations, the electrical parameters include a minimum input voltage and / or a path impedance of the electronic device; and / or,

[0014] The configuration parameters of the charging device include: rated voltage and / or rated current.

[0015] In some implementations, determining the preset current change amount according to the configuration parameters of the charging device includes:

[0016] If the difference between the input voltage and the rated voltage is less than or equal to a first threshold, and / or the difference between the initial current and the rated current is greater than or equal to a second threshold, determining that the preset current change is a preset value;

[0017] If the difference between the input voltage and the rated voltage is greater than the first threshold, and / or the difference between the initial current and the rated current is less than the second threshold, it is determined that the current change is less than the preset value.

[0018] In some implementations, the method further includes:

[0019] The target range is determined according to the preset current change, the minimum input voltage of the electronic device and the path impedance of the electronic device.

[0020] In some implementations, determining the target range according to the preset current change, the minimum input voltage of the electronic device, and the path impedance of the electronic device includes:

[0021] Determining a voltage change according to a product of the path impedance and the preset current change;

[0022] Determining a lower limit value of the target range according to a product of the voltage change and a first preset coefficient, and the minimum input voltage;

[0023] The upper limit value of the target range is determined according to the product of the voltage change and a second preset coefficient, and the minimum input voltage; wherein the second preset coefficient is greater than the first preset coefficient.

[0024] In some implementations, if the charging device connected to the electronic device is a charging device of a preset type, charging the battery of the electronic device with an initial current includes:

[0025] If the charging device is a charging device of a preset type and the charging adjustment function of the electronic device is in an on state, the battery of the electronic device is charged with the initial current.

[0026] According to a second aspect of the present disclosure, there is provided a charging device, comprising:

[0027] A charging module, configured to charge a battery of the electronic device with an initial current when it is determined that the charging device connected to the electronic device is a charging device of a preset type;

[0028] An acquisition module, used for acquiring an input voltage input to the electronic device via the charging device;

[0029] The adjustment module is used for adjusting the initial current according to a preset current change amount when the input voltage is outside the target range until the input voltage is within the target range.

[0030] In some implementations, the adjustment module is further configured to:

[0031] If the input voltage is greater than or equal to the upper limit of the target range, increasing the initial current by the preset current change amount as a step size; and / or,

[0032] If the input voltage is less than the lower limit of the target range and greater than the minimum input voltage of the electronic device, the initial current is reduced with the preset current change as a step size.

[0033] In some implementations, the apparatus further comprises:

[0034] A determination module determines the preset current change amount according to electrical parameters of the electronic device and / or configuration parameters of the charging device.

[0035] In some implementations, the determining module is further configured to:

[0036] If the difference between the input voltage and the rated voltage in the configuration parameter is less than or equal to a first threshold, and / or the difference between the initial current and the rated current in the configuration parameter is greater than or equal to a second threshold, determining that the preset current change is a preset value;

[0037] If the difference between the input voltage and the rated voltage is greater than the first threshold, and / or the difference between the initial current and the rated current is less than the second threshold, it is determined that the preset current change is less than the preset value.

[0038] In some implementations, the apparatus further comprises:

[0039] The calculation module is used to determine the target range according to the preset current change, the minimum input voltage of the electronic device and the path impedance of the electronic device.

[0040] In some implementations, the computing module is further configured to:

[0041] Determining a voltage change according to a product of the path impedance and the preset current change;

[0042] Determining a lower limit value of the target range according to a product of the voltage change and a first preset coefficient, and the minimum input voltage;

[0043] The upper limit value of the target range is determined according to the product of the voltage change and a second preset coefficient, and the minimum input voltage; wherein the second preset coefficient is greater than the first preset coefficient.

[0044] According to a third aspect of the present disclosure, there is provided an electronic device, including:

[0045] processor;

[0046] a memory for storing processor-executable instructions;

[0047] The processor is configured to: execute the method steps described in the embodiment of the first aspect during implementation.

[0048] According to a fourth aspect embodiment of the present disclosure, a computer-readable storage medium is provided, on which a computer program is stored. When the instructions in the storage medium are executed by a processor of an electronic device, the electronic device is able to execute the method steps described in the first aspect embodiment during implementation.

[0049] The technical solution provided by the embodiments of the present disclosure may have the following beneficial effects:

[0050] It can be seen from the above embodiments that the disclosed embodiments first charge the battery of the electronic device with an initial current less than the rated current of the charging device, obtain the input voltage when charging with the initial current, and then adjust the initial current according to the relationship between the input voltage and the target range, until the input voltage when charging with the adjusted initial current is within the target range. This charging method does not use the same current value for charging throughout the charging process, but changes the initial charging current according to the change of the input voltage during the charging process, which not only reduces the phenomenon of charging interruption due to too small input voltage and ensures the stability of charging, but also obtains a larger charging current on the basis of ensuring continuous charging, fully utilizes the charging capacity of the charging device, improves the charging quality, and thus improves the problem of poor charging experience caused by uneven quality of charging equipment.

[0051] 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

[0052] 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.

[0053] Figure 1 is one of the flow charts of a charging method according to an exemplary embodiment;

[0054] Figure 2 is a second flowchart of a charging method according to an exemplary embodiment;

[0055] Figure 3 is a diagram showing changes in current and input voltage during a charging process according to an exemplary embodiment;

[0056] Figure 4 is one of the structural schematic diagrams showing the electronic device and the charging device when charging according to an exemplary embodiment;

[0057] Figure 5 The second structural diagram of an electronic device and a charging device when charging;

[0058] Figure 6 The third structural diagram of an electronic device and a charging device when charging;

[0059] Figure 7 is a fourth structural schematic diagram showing an electronic device and a charging device when charging according to an exemplary embodiment;

[0060] Figure 8 The figure is a structural block diagram of a charging device according to an exemplary embodiment. DETAILED DESCRIPTION

[0061] Exemplary embodiments will be described in detail herein, examples of which are shown in the accompanying drawings. When the following description refers to the drawings, the same numbers in different drawings represent the same or similar elements unless otherwise indicated. The embodiments described in the following exemplary embodiments do not represent all embodiments consistent with the present disclosure. Instead, they are merely examples of devices consistent with some aspects of the present disclosure as detailed in the appended claims.

[0062] The first aspect of the present disclosure provides a charging method, such as Figure 1 As shown, the method includes:

[0063] Step S110: If the charging device connected to the electronic device is a preset type of charging device, charging the battery of the electronic device with an initial current; wherein the initial current is less than the rated current of the preset type of charging device;

[0064] Step S120, obtaining an input voltage input to the electronic device via the charging device;

[0065] Step S130: If the input voltage is outside the target range, adjusting the initial current according to a preset current change until the input voltage is within the target range; wherein the preset current change is smaller than the difference between the rated current and the initial current.

[0066] Before performing step S110 , the charging method further includes: detecting whether the charging device connected to the electronic device is the charging device of the preset type.

[0067] Without limitation, the preset type of charging device generally refers to a fixed-gear charging device. Compared with a non-fixed-gear charging device, the voltage of a fixed-gear charging device is relatively fixed. A fixed-gear charging device generally has one or more fixed-gear rated voltages and / or rated currents. For example: a charging device is a 5V 2.2A charging device, which provides a rated voltage of 5V and a rated current of 2.2A.

[0068] In some embodiments, if it is detected that the charging protocol of the charging device matches the preset charging protocol of the electronic device, it is determined that the charging device is a preset type of charging device.

[0069] The preset charging protocols include but are not limited to QC (Quick Charge) 2.0, PD (Power Delivery) 2.0 or SDP (Standard Downstream Port) 2.0.

[0070] If the charging protocol of the charging device does not match the preset charging protocol, it is determined that the charging device is a non-fixed profile charging device. For example, if the charging protocol of the charging device is PD3.0, it indicates that the charging device is not a preset type of charging device.

[0071] In some embodiments, if the charging device connected to the electronic device is not a preset type of charging device, the battery is charged with a preset current greater than the initial current. In this case, the preset current may be close to or equal to the rated current of the charging device.

[0072] In the disclosed embodiment, the charging device may be a charger that converts household AC power into low-voltage DC power, or may be a power bank, a mobile phone, a tablet computer, a laptop computer, etc., but is not limited thereto.

[0073] In step S110, the battery of the electronic device is first charged with an initial current that is less than the rated current of the charging device, which is beneficial to ensure that the input voltage charged with the initial current will not be lower than the minimum input voltage of the electronic device, thereby reducing the charging interruption phenomenon caused by too low input voltage.

[0074] In the embodiments of the present disclosure, electronic devices include but are not limited to mobile phones, tablet computers, laptop computers, televisions, or wearable devices.

[0075] In some embodiments, the initial current before adjustment may be 1 / 5.0, 1 / 4.8, 1 / 4.5, 1 / 4.0, 1 / 3.8 or 1 / 3.0 of the rated current, etc.

[0076] For example: the rated current of the charging device is 2.2A, and the initial current can be 500mA.

[0077] Step S120 is used to monitor the input voltage corresponding to the current charging current (eg, initial current) so as to determine a subsequent current adjustment strategy.

[0078] In some embodiments, the step of obtaining the input voltage input to the electronic device via the charging device includes: obtaining the input voltage input to the electronic device via the charging device after a preset charging time. Without limitation, the preset time may be 400ms, 500ms, or 600ms, etc., but is not limited thereto.

[0079] Detecting the input voltage after charging for a preset time can improve the stability of the charging circuit and thus ensure the accuracy of input voltage detection.

[0080] In the disclosed embodiment, the minimum input voltage is an electrical indicator of the electronic device. When the input voltage is less than the minimum input voltage, the charging path will be disconnected.

[0081] In step S130, the target range is a safe voltage range, and the lower limit of the target range is located near the minimum input voltage of the electronic device. Specifically, the target range may be equal to or within the safe voltage range.

[0082] Without limitation, the target range is between: minimum input voltage + first offset value and minimum input voltage + second offset value, that is, the lower limit of the target range is greater than the sum of the minimum input voltage and the first offset value, and the upper limit of the target range is less than the sum of the minimum input voltage and the second offset value. The first offset value may be 100mV, and the second offset value may be 300mV, but is not limited thereto, and the first offset value is less than the second offset value.

[0083] Without limitation, the first offset value and / or the second offset value are determined according to the voltage change. The voltage change can be determined by a preset current change and a path impedance of the electronic device. For example, the first offset value is equal to the product of the preset current change and the path impedance, and the second offset value is equal to 2 or 3 times the first offset value.

[0084] When the input voltage is within the target range, it will neither cause charging interruption (that is, the input voltage is greater than the minimum input voltage of the electronic device) nor ensure that the adjusted initial current is as large as possible, making full use of the charging capacity of the charging device, facilitating subsequent charging with the adjusted initial current to ensure charging efficiency.

[0085] In some embodiments, adjusting the initial current according to a preset current change includes: increasing the initial current or decreasing the initial current according to the preset current change.

[0086] For a fixed-range charging device A with good quality and a fixed-range charging device B with poor quality, even if the rated voltages of the two charging devices are both 5V and the rated currents are both 2.2A.

[0087] In actual applications, due to quality differences, the output power of charging device A is greater than that of charging device B. For example, the output power of charging device A is 5V*2.2A=11W, while the output power of charging device B is 9W.

[0088] In the disclosed embodiment, since the initial current is adjusted during the charging process, the input voltage of the charging device B will not be seriously reduced due to excessively increasing the output current of the charging device B, thereby reducing the charging interruption caused by too low input voltage. For example, the initial current can be adjusted to be less than 2A, so that when the charging device B is used to charge the battery of the electronic device, the input voltage can be guaranteed to be greater than 9W / 2A=4.5V (4.5V is too low, which will result in a voltage lower than the minimum input voltage required by the charging protection circuit, resulting in charging interruption).

[0089] Similarly, for charging device A, since the initial current is adjusted during the charging process, it can be ensured that the adjusted initial current is greater than 2A, so that the charging power of charging device A is greater than 10W, and the problem of not being able to fully utilize the charging capacity of charging device A due to only using 10W of charging power will not occur.

[0090] Therefore, in the embodiment of the present disclosure, the battery of the electronic device is first charged with an initial current that is less than the rated current of the charging device, and the input voltage when charging with the initial current is obtained, and then the initial current is adjusted according to the relationship between the input voltage and the target range until the input voltage when charging with the adjusted current value is within the target range.

[0091] This charging method does not use the same charging current value during the entire charging process. Instead, it changes the charging current according to the change of input voltage during the charging process. This not only reduces the phenomenon of charging interruption caused by too low input voltage and ensures the stability of charging, but also obtains a larger charging current while ensuring continuous charging. It fully utilizes the charging capacity of the charging equipment, improves the charging quality, and thus improves the problem of poor charging experience caused by uneven quality of charging equipment.

[0092] According to some other optional embodiments, adjusting the initial current according to a preset current change includes:

[0093] If the input voltage is greater than or equal to the upper limit of the target range, increasing the initial current by the preset current change amount as a step size; and / or,

[0094] If the input voltage is less than the lower limit of the target range and greater than the minimum input voltage of the electronic device, the initial current is reduced with the preset current change as a step size.

[0095] When the input voltage is greater than or equal to the upper limit of the target range, it indicates that the input voltage is at a higher value. At this time, the initial current is small, and the utilization of the charging capacity of the charging device can be further improved. Therefore, increasing the initial current at this time can further improve the utilization of the charging capacity of the charging device.

[0096] On the contrary, if the input voltage is less than the lower limit of the target range and greater than the minimum input voltage, it indicates that the input voltage is very close to the minimum input voltage and is outside the safe voltage range (i.e., the target range). If charging is performed with the initial current at this time, charging may be interrupted. Therefore, reducing the initial current at this time is beneficial to ensure charging stability.

[0097] During the adjustment process, it is difficult to adjust the initial current to the appropriate value at one time. If the preset current change is too large, the input voltage will be less than the lower limit of the target range, resulting in charging interruption. Therefore, by gradually adjusting the initial current, a smaller preset current change can be selected, taking into account both charging stability and charging efficiency.

[0098] According to some other optional embodiments, adjusting the initial current according to a preset current change includes:

[0099] After adjusting the initial current each time, detecting the relationship between the input voltage and the target range;

[0100] If the input voltage is outside the target range, continue adjusting the initial current.

[0101] Each time the preset current change amount is increased or decreased, the input voltage needs to be detected and the relationship between the input voltage and the target range needs to be determined in order to determine whether the initial current needs to be adjusted further and how to adjust it.

[0102] If the input voltage is less than the lower limit of the target range during the adjustment process, the next adjustment needs to reduce the initial current by a value equal to the preset current to reduce the risk of charging interruption.

[0103] If the input voltage is greater than the upper limit of the target range during the adjustment process, the initial current needs to be increased next time, and the increased value is equal to the preset current to fully utilize the charging capacity of the charging device and ensure charging efficiency.

[0104] For different adjustment stages of the initial current, the preset current change amount increased each time or the preset current change amount decreased each time may be equal or unequal; similarly, the preset current change amount increased and the preset current change amount decreased may be equal or unequal.

[0105] For example: if the detected input voltage is significantly greater than the upper limit of the target range, the preset current change can be increased in the next adjustment process, that is, the initial current can be increased by a larger amplitude next time, and increasing the preset current change is beneficial to improving the adjustment efficiency of the initial current while maintaining charging. On the contrary, if the detected input voltage is greater than the upper limit of the target range, but the gap with the upper limit is small, at this time, the preset current change can be reduced in the next adjustment process, that is, the initial current can be increased by a smaller amplitude next time, and reducing the preset current change is beneficial to improving charging stability while maintaining charging.

[0106] If the input voltage is within the target range during the adjustment process, the initial current adjustment can be stopped.

[0107] According to some other optional embodiments, the charging method further includes:

[0108] The preset current variation is determined according to electrical parameters of the electronic device and / or configuration parameters of the charging device.

[0109] Electrical parameters include, but are not limited to, path impedance and / or minimum input voltage.

[0110] When the input voltage is within the target range, the charging current is the final adjusted initial current. After obtaining the adjusted initial current, the battery can be charged continuously with the adjusted initial current until the battery reaches the required power. This method of gradually adjusting the initial current takes into account both charging stability and charging efficiency.

[0111] In some embodiments, if the input voltage is within the target range, the initial current is stopped from being adjusted.

[0112] According to some other optional embodiments, the electrical parameters include a minimum input voltage and / or path impedance of the electronic device; and / or,

[0113] The configuration parameters of the charging device include: rated voltage and / or rated current.

[0114] According to some other optional embodiments, the path impedance is inversely proportional to the preset current change.

[0115] Generally, the smaller the path impedance is, the larger the preset current change is, and the initial current before adjustment can also be set larger.

[0116] On the contrary, the larger the path impedance is, the smaller the preset current change is, and the initial current before adjustment is more suitable to be set smaller.

[0117] According to some other optional embodiments, determining the preset current change amount according to the configuration parameters of the charging device includes:

[0118] If the difference between the input voltage and the rated voltage is less than or equal to a first threshold, and / or the difference between the initial current and the rated current is greater than or equal to a second threshold, determining that the preset current change is a preset value;

[0119] If the difference between the input voltage and the rated voltage is greater than the first threshold, and / or the difference between the initial current and the rated current is less than the second threshold, it is determined that the preset current change is less than the preset value.

[0120] In the embodiments of the present disclosure, the size of the preset value can be set according to specific needs, such as 0.2mA, or 0.25mA, etc. The embodiments of the present disclosure do not impose specific restrictions on the size of the preset value. Generally, in multiple adjustment processes in a certain section, each adjustment is to increase the initial current. Because in this process, compared with the later period of adjustment, the initial current is smaller in the early stage of adjustment, and the difference between the initial current and the rated current is larger, the difference between the input voltage and the rated voltage when charging with the initial current in the early stage of adjustment is also smaller, and the input voltage basically does not drop, and it is not easy to cause the disconnection phenomenon caused by the input voltage being too low. At this time, adjusting the initial current with a larger predetermined current change can effectively reduce the number of adjustments and improve the adjustment efficiency.

[0121] This charging method of using different preset current changes at different stages of the current adjustment process is conducive to further improving the charging efficiency.

[0122] According to some other optional embodiments, determining the preset current change amount according to the electrical parameters of the electronic device and the configuration parameters of the charging device includes:

[0123] If the difference between the initial current and the rated current value is greater than or equal to a second threshold value, and the path impedance is less than or equal to a third threshold value, determining that the preset current change is a first preset current value;

[0124] If the difference between the initial current and the rated current value is smaller than the second threshold value, and / or the path impedance is greater than the third threshold value, it is determined that the preset current change is smaller than the first preset current value.

[0125] Generally, the first preset current value is greater than or equal to the above preset value.

[0126] In some embodiments, determining the preset current change amount according to the electrical parameters of the electronic device includes:

[0127] The preset current change is determined according to the product of the reciprocal of the path impedance of the electrical parameter and a preset coefficient.

[0128] Without limitation, the preset coefficient may be 0.1, 0.15, 0.2 or 0.3, with the unit being A·Ω. For example, when the path impedance of the electronic device is 0.5Ω and the preset coefficient is 0.1A·Ω, the preset current change is 0.1A·Ω*(1 / 0.5Ω)=0.2A.

[0129] In some embodiments, determining the preset current change amount according to the electrical parameters of the electronic device includes:

[0130] If the difference between the input voltage and the minimum input voltage is greater than or equal to a fourth threshold, determining that the preset current change is a second preset current value;

[0131] If the difference between the input voltage and the minimum input voltage is smaller than the fourth threshold, it is determined that the preset current change is smaller than the second preset current value.

[0132] Generally, the second preset current value may be equal to or close to the above preset value.

[0133] According to some other optional embodiments, the method further includes:

[0134] The target range is determined according to the preset current change, the minimum input voltage of the electronic device and the path impedance of the electronic device.

[0135] According to some other optional embodiments, determining the target range according to the preset current change, the minimum input voltage of the electronic device, and the path impedance of the electronic device includes:

[0136] Determining a voltage change according to a product of the path impedance and the preset current change;

[0137] Determining a lower limit value of the target range according to a product of the voltage change and a first preset coefficient, and the minimum input voltage;

[0138] The upper limit value of the target range is determined according to the product of the voltage change and a second preset coefficient, and the minimum input voltage; wherein the second preset coefficient is greater than the first preset coefficient.

[0139] Without limitation, the lower limit of the target range is equal to the product of the voltage change and the first preset coefficient, plus the minimum input voltage. The upper limit of the target range is equal to the product of the voltage change and the second preset coefficient, plus the minimum input voltage.

[0140] For example, if the first preset coefficient is 1, the second preset coefficient is 3, the path impedance of the electronic device is 0.5 ohms, and the preset current change is 200mA (0.2A), then after each adjustment, the input voltage change is 0.5 ohms * 0.2A = 100mV. The lower limit of the target range is equal to the sum of the minimum input voltage and 100mV, and the upper limit of the target range is equal to the sum of the minimum input voltage and 300mV. The target range can be: (minimum input voltage + 100mV, minimum input voltage + 300mV).

[0141] According to some other optional embodiments, if the charging device connected to the electronic device is a charging device of a preset type, charging the battery of the electronic device with an initial current includes:

[0142] If the charging device connected to the electronic device is a preset type of charging device and it is detected that the charging adjustment function of the electronic device is turned on, the battery of the electronic device is charged with the initial current.

[0143] In the embodiment of the present disclosure, the charging adjustment function can be turned on or off by using a button corresponding to the charging adjustment function. The button can be a physical button in the electronic device or a virtual button in the electronic device. When the charging adjustment function is turned off, even if the charging device is a preset type of charging device, the charging method of the embodiment of the present disclosure is not used. For example, a constant current greater than the initial current can be used to charge the battery.

[0144] In a specific embodiment, if Figure 2As shown, the charging method includes:

[0145] Step S210: Detect whether the charging device connected to the electronic device is a preset type of charging device, and detect whether the charging adjustment function of the electronic device is in an on state;

[0146] Step S220: If the charging device connected to the electronic device is a preset type of charging device and the charging adjustment function is in an on state, the battery of the electronic device is charged with an initial current; wherein the initial current is less than the rated current of the preset type of charging device; without limitation, the initial current may be 500 mA; the rated voltage of the charging device is 5 V, and the rated current is 2.2 V;

[0147] Step S230: If the charging device connected to the electronic device is not a charging device of the preset type, and / or the charging adjustment function is in a disabled state, charging the battery of the electronic device with a preset current value that is greater than the initial current and less than or equal to the rated current;

[0148] Step S240, charging for a preset time, waiting for the charging state of the circuit to stabilize; without limitation, the preset time is 500ms;

[0149] Step S250, detecting whether the input voltage input to the electronic device via the charging device is within a target range;

[0150] Step S260: if the input voltage is greater than the upper limit of the target range, increase the initial current, and repeat steps S240 to S250 until the input voltage is within the target range;

[0151] Step S270: If the input voltage is less than the lower limit of the target range, reduce the initial current, and repeat steps S240 to S250 until the input voltage is within the target range.

[0152] Such dynamic adjustment can not only fully utilize the capabilities of the charging equipment, but also prevent charging interruptions caused by inferior charging equipment.

[0153] like Figure 3 As shown, Figure 3 In the figure, the horizontal axis is time and the vertical axis is current or voltage. Curve C shows the change of input voltage with charging time, and curve D shows the change of current with time. For a charging device with a rated voltage of 5V and a rated current of 2.2V.

[0154] In step S210, the initial current is 500mA. As the initial current increases, the input voltage will decrease until it drops to the target range (i.e., near the minimum input voltage). At this time, the current is about 2300mA, and the actual charging power is 10.35W, which is higher than the 10W of the solution with a fixed current of 2A for the entire charging process. Therefore, it is more conducive to fully utilizing the charging efficiency of the charging equipment.

[0155] A second aspect of the present disclosure provides a charging device, such as Figure 4 As shown, the charging device 300 includes:

[0156] The charging module 310 is used to charge the battery of the electronic device with an initial current when it is determined that the charging device connected to the electronic device is a charging device of a preset type; wherein the initial current is less than the rated current of the charging device of the preset type;

[0157] An acquisition module 320, configured to acquire an input voltage input to the electronic device via the charging device;

[0158] The adjustment module 330 is used to adjust the initial current according to a preset current change amount until the input voltage is within the target range when the input voltage is outside the target range; wherein the preset current change amount is smaller than the difference between the rated current and the initial current.

[0159] In practical applications, such as Figures 5 to 7 As shown, the electronic device 500 includes a protection circuit 510, a charging chip 520 and a battery 530, and the charging module, the acquisition module and the adjustment module may be partially or completely located on the charging chip 520. Among them, the protection circuit 510 may be electrically connected to the charging device, and the protection circuit 510 charges the battery 530 through the charging chip 520.

[0160] For a fixed-speed charging device A with good quality and a fixed-speed charging device B with poor quality, the rated voltage of both charging devices is 5V and the rated current is 2.2A. Figure 5 As shown in the figure, the actual output power of charging device B is 9W. If the battery of the electronic device is charged with a current of 2A, the input voltage will be 4.5V, which will cause the detected input voltage to be too small and cut off the path. Figure 6 As shown in the figure, the actual output power of the charging device A is 11W. If the battery of the electronic device is charged with a current of 2A, the input voltage is 5V and the output power is 10W. Although the input voltage detected is normal and the protection circuit is in a pass state, the charging capacity of the charging device cannot be fully utilized. Figure 7As shown, during the charging process, the charging device E changes the initial charging current according to the change of the input voltage. If the charging device E is of poor quality, the charging will not be interrupted due to the input voltage being too small, thereby ensuring the stability of charging. If the charging device E is of good quality, it can also obtain a larger charging current while ensuring continuous charging, thereby making full use of the charging capacity of the charging device, and can charge at a current of 2.3A with an output power of up to 10.35W, thereby improving the charging quality and improving the problem of poor charging experience caused by the uneven quality of charging equipment.

[0161] According to some optional embodiments, the adjustment module is further used to:

[0162] If the input voltage is greater than or equal to the upper limit of the target range, increasing the initial current by the preset current change amount as a step size; and / or,

[0163] If the input voltage is less than the lower limit of the target range and greater than the minimum input voltage of the electronic device, the initial current is reduced with the preset current change as a step size.

[0164] According to some optional embodiments, the adjustment module is further used to:

[0165] After adjusting the initial current each time, detecting the relationship between the input voltage and the target range;

[0166] If the input voltage is outside the target range, continue to adjust the initial current.

[0167] According to some optional embodiments, the device further comprises:

[0168] The determination module is used to determine the preset current change amount according to the electrical parameters of the electronic device and / or the configuration parameters of the charging device.

[0169] According to some optional embodiments, the electrical parameter includes a path impedance of the electronic device; and / or,

[0170] The configuration parameters of the charging device include: rated voltage and / or rated current.

[0171] According to some optional embodiments, the path impedance is inversely proportional to the preset current change.

[0172] According to some optional embodiments, the determining module is further configured to:

[0173] If the difference between the input voltage and the rated voltage is greater than or equal to a first threshold, and / or the difference between the initial current and the rated current is greater than or equal to a second threshold, determining that the preset current change is a preset value;

[0174] If the difference between the input voltage and the rated voltage is lower than the first threshold, and / or the difference between the initial current and the rated current is lower than the second threshold, it is determined that the preset current change is smaller than the preset value.

[0175] According to some optional embodiments, the device further comprises:

[0176] The calculation module is used to determine the target range according to the preset current change, the minimum input voltage of the electronic device and the path impedance of the electronic device.

[0177] According to some optional embodiments, the computing module is further configured to:

[0178] Determining a voltage change according to a product of the path impedance and the preset current change;

[0179] Determining a lower limit value of the target range according to a product of the voltage change and a first preset coefficient, and the minimum input voltage;

[0180] The upper limit value of the target range is determined according to the product of the voltage change and a second preset coefficient, and the minimum input voltage; wherein the second preset coefficient is greater than the first preset coefficient.

[0181] According to some optional embodiments, the charging module is further used for:

[0182] If the charging device is a charging device of a preset type and the charging adjustment function of the electronic device is in an on state, the battery of the electronic device is charged with the initial current.

[0183] A third aspect of the present disclosure provides an electronic device, including:

[0184] processor;

[0185] a memory for storing processor-executable instructions;

[0186] The processor is configured to: execute the method steps described in the embodiment of the first aspect during implementation.

[0187] A fourth aspect of the present disclosure provides a computer-readable storage medium having a computer program stored thereon. When instructions in the storage medium are executed by a processor of an electronic device, the electronic device is enabled to execute the method steps described in the first embodiment during implementation.

[0188] In an exemplary embodiment, multiple modules in the printing device can be implemented by one or more central processing units (CPU), graphics processing units (GPU), baseband processors (BP), application-specific integrated circuits (ASIC), DSPs, programmable logic devices (PLD), complex programmable logic devices (CPLD), field-programmable gate arrays (FPGA), general-purpose processors, controllers, microcontrollers (MCU), microprocessors, or other electronic components to execute the aforementioned method.

[0189] Figure 8 8 is a block diagram of an apparatus 800 for homework correction according to an exemplary embodiment. For example, the apparatus 800 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.

[0190] Reference Figure 8 , the device 800 may include one or more of the following components: a processing component 802 , a memory 804 , a power component 806 , a multimedia component 808 , an audio component 810 , an input / output (I / O) interface 812 , a sensor component 814 , and a communication component 816 .

[0191] The processing component 802 generally controls the overall operation of the device 800, such as operations associated with display, phone calls, data communications, camera operations, and recording operations. The processing component 802 may include one or more processors 820 to execute instructions to complete all or part of the steps of the above-mentioned method. In addition, the processing component 802 may include one or more modules to facilitate the interaction between the processing component 802 and other components. For example, the processing component 802 may include a multimedia module to facilitate the interaction between the multimedia component 808 and the processing component 802.

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

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

[0194] The multimedia component 808 includes a screen that provides an output interface between the device 800 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 808 includes a front camera and / or a rear camera. When the device 800 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.

[0195] The audio component 810 is configured to output and / or input audio signals. For example, the audio component 810 includes a microphone (MIC), and when the device 800 is in an operating 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 804 or sent via the communication component 816. In some embodiments, the audio component 810 also includes a speaker for outputting audio signals.

[0196] I / O interface 812 provides an interface between processing component 802 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.

[0197] The sensor assembly 814 includes one or more sensors for providing various aspects of the status assessment of the device 800. For example, the sensor assembly 814 can detect the open / closed state of the device 800, the relative positioning of components, such as the display and keypad of the device 800, and the sensor assembly 814 can also detect the position change of the device 800 or a component of the device 800, the presence or absence of user contact with the device 800, the orientation or acceleration / deceleration of the device 800, and the temperature change of the device 800. The sensor assembly 814 may include a proximity sensor configured to detect the presence of a nearby object without any physical contact. The sensor assembly 814 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 814 may also include an accelerometer, a gyroscope sensor, a magnetic sensor, a pressure sensor, or a temperature sensor.

[0198] The communication component 816 is configured to facilitate wired or wireless communication between the device 800 and other devices. The device 800 can access a wireless network based on a communication standard, such as WiFi, 4G or 5G, or a combination thereof. In an exemplary embodiment, the communication component 816 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 816 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.

[0199] In an exemplary embodiment, the apparatus 800 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.

[0200] In an exemplary embodiment, a non-transitory computer-readable storage medium including instructions is also provided, such as a memory 804 including instructions, and the instructions can be executed by the processor 820 of the device 800 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.

[0201] The methods disclosed in several method embodiments provided in the present disclosure can be arbitrarily combined without conflict to obtain new method embodiments.

[0202] The features disclosed in several device embodiments provided in the present disclosure may be arbitrarily combined without conflict to obtain new product embodiments.

[0203] The features disclosed in several method or device embodiments provided in the present disclosure may be arbitrarily combined without conflict to obtain new method embodiments or product embodiments.

[0204] Those skilled in the art will readily appreciate other embodiments of the present disclosure after considering the specification and practicing the invention disclosed herein. The present disclosure is intended to cover any variations, uses or adaptations of the present disclosure that follow the general principles of the present disclosure and include common knowledge or customary techniques in the art that are not disclosed in the present disclosure. The description and examples are to be considered exemplary only, and the true scope and spirit of the present disclosure are indicated by the following claims.

[0205] It should be understood that the present disclosure is not limited to the exact 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 appended claims.

Claims

1. A charging method, characterized in that: The method comprises: If the charging device connected to the electronic device is a charging device of a preset type, charging the battery of the electronic device with an initial current; Acquiring an input voltage input to the electronic device via the charging device; If the input voltage is outside the target range, adjusting the initial current according to a preset current change amount until the input voltage is within the target range; Wherein, the method further comprises: Determining the preset current change amount according to electrical parameters of the electronic device and / or configuration parameters of the charging device; The electrical parameter includes a path impedance of the electronic device; and / or, The configuration parameters of the charging device include: rated voltage and / or rated current; The step of determining the preset current change according to the configuration parameters of the charging device includes: If the difference between the input voltage and the rated voltage is less than or equal to a first threshold, and / or the difference between the initial current and the rated current is greater than or equal to a second threshold, determining that the preset current change is a preset value; If the difference between the input voltage and the rated voltage is greater than the first threshold, and / or the difference between the initial current and the rated current is less than the second threshold, it is determined that the preset current change is less than the preset value.

2. The method according to claim 1, characterized in that If the input voltage is outside the target range, adjusting the initial current according to a preset current change amount includes: If the input voltage is greater than or equal to the upper limit of the target range, the initial current is increased with the preset current change as a step size; or, If the input voltage is less than the lower limit of the target range and greater than the minimum input voltage of the electronic device, the initial current is reduced with the preset current change as a step size.

3. The method according to claim 1, characterized in that The method further comprises: The target range is determined according to the preset current change, the minimum input voltage of the electronic device and the path impedance of the electronic device.

4. The method according to claim 1, characterized in that: The determining the target range according to the preset current change, the minimum input voltage of the electronic device and the path impedance of the electronic device includes: Determining a voltage change according to a product of the path impedance and the preset current change; Determining a lower limit value of the target range according to a product of the voltage change and a first preset coefficient, and the minimum input voltage; The upper limit value of the target range is determined according to the product of the voltage change and a second preset coefficient, and the minimum input voltage; wherein the second preset coefficient is greater than the first preset coefficient.

5. The method according to any one of claims 1 to 4, characterized in that: If the charging device connected to the electronic device is a charging device of a preset type, charging the battery of the electronic device with an initial current includes: If the charging device is a charging device of the preset type and the charging adjustment function of the electronic device is in an on state, the battery of the electronic device is charged with the initial current.

6. A charging device, characterized in that: include: A charging module, configured to charge a battery of the electronic device with an initial current when it is determined that the charging device connected to the electronic device is a charging device of a preset type; An acquisition module, used for acquiring an input voltage input to the electronic device via the charging device; an adjustment module, configured to adjust the initial current according to a preset current variation when the input voltage is outside the target range, until the input voltage is within the target range; Wherein, the device further comprises: A determination module, configured to determine the preset current change amount according to electrical parameters of the electronic device and / or configuration parameters of the charging device; The determining module is further used for: If the difference between the input voltage and the rated voltage in the configuration parameter is less than or equal to a first threshold, and / or the difference between the initial current and the rated current in the configuration parameter is greater than or equal to a second threshold, determining that the preset current change is a preset value; If the difference between the input voltage and the rated voltage is greater than the first threshold, and / or the difference between the initial current and the rated current is less than the second threshold, it is determined that the preset current change is less than the preset value.

7. The device according to claim 6, characterized in that The adjustment module is further used for: If the input voltage is greater than or equal to the upper limit of the target range, increasing the initial current by the preset current change amount as a step size; or, If the input voltage is less than the lower limit of the target range and greater than the minimum input voltage of the electronic device, the initial current is reduced with the preset current change as a step size.

8. The device according to claim 6, characterized in that The device also includes: The calculation module is used to determine the target range according to the preset current change, the minimum input voltage of the electronic device and the path impedance of the electronic device.

9. The device according to claim 8, characterized in that The computing module is further used for: Determining a voltage change according to a product of the path impedance and a preset current increment; Determining a lower limit value of the target range according to a product of the voltage change and a first preset coefficient, and the minimum input voltage; The upper limit value of the target range is determined according to the product of the voltage change and a second preset coefficient, and the minimum input voltage; wherein the second preset coefficient is greater than the first preset coefficient.

10. An electronic device, characterized in that: include: processor; a memory for storing processor-executable instructions; The processor is configured to: execute the method steps described in any one of claims 1 to 5 when implemented.

11. A computer-readable storage medium having a computer program stored thereon, characterized in that: When the instructions in the storage medium are executed by a processor of an electronic device, the electronic device is enabled to execute the method steps described in any one of claims 1 to 5 during implementation.

Citation Information

Patent Citations

  • Intelligent charging method and apparatus

    CN101340011A

  • Self-adaption charging circuit and corresponding mobile terminal

    CN103001290A

  • Charging control device, device and POS terminal

    CN104158241A

  • Power supply device and charging shunt method

    CN104901353A

  • Charging control device and method of adaptive adapter

    CN105305558A