Charging method, device, electronic device and storage medium
By obtaining and comparing the difference between the voltage value output by the power management circuit and the preset value in real time and adjusting the voltage output by the power management circuit, the problem of inaccurate charging in fast charging technology is solved, and a safe and reliable charging process is achieved.
Patent Information
- Application Number
- CN202010785194.6
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2020-08-06
- Publication Date
- 2025-04-08
- Estimated Expiration
- 2040-08-06
AI Technical Summary
The fast charging technology in the prior art is prone to accuracy errors during charging, resulting in inaccurate charging, which may cause power supply damage or safety hazards.
By obtaining the difference between the first voltage value sent by the control circuit to the power management circuit and the second voltage value of the actual output voltage acquired by the voltage detection circuit, the voltage output by the power management circuit is adjusted to match the preset requirements, and then charge the power supply according to the adjusted voltage value.
Real-time detection and adjustment of the voltage output from the power management circuit is achieved, accuracy errors are avoided, charging accuracy is ensured, and the risks of battery damage and safety hazards are reduced.
Smart Images

Figure CN114069748B_ABST
Abstract
Description
Technical Field
[0001] The present disclosure relates to the technical field of terminal equipment, and in particular to a charging method, device, electronic device and storage medium. Background Art
[0002] With the advancement of science and technology, the functions of terminal devices are becoming more and more abundant and the performance is becoming more and more excellent. The power performance of terminal devices determines the operating time of terminal devices and plays a very important role in the user experience of terminal devices. The fast charging technology in related technologies uses a large power to quickly charge the power supply of terminal devices and can complete charging in a shorter time. However, there are precision errors in charging-related devices, which can easily lead to inaccurate charging, thereby causing power supply damage or safety hazards. Summary of the invention
[0003] In order to overcome the problems existing in the related art, the embodiments of the present disclosure provide a charging method, a device, an electronic device and a storage medium to solve the defects in the related art.
[0004] According to a first aspect of an embodiment of the present disclosure, a charging method is provided, which is applied to a terminal device, wherein the terminal device includes a power management circuit, a control circuit, a voltage detection circuit, and a power supply, and the charging method includes:
[0005] Acquire a first voltage value sent by the control circuit to the power management circuit, wherein the first voltage value is used to make the power management circuit output a voltage that meets the first voltage value;
[0006] Acquire a second voltage value of the voltage output by the power management circuit collected by the voltage detection circuit;
[0007] According to the difference between the first voltage value and the second voltage value, adjusting the second voltage value of the voltage output by the power management circuit so that the difference between the second voltage value and the first voltage value meets a preset requirement;
[0008] The power management circuit is controlled to charge the power source with the adjusted second voltage value.
[0009] In one embodiment, the voltage detection circuit includes at least one of the following:
[0010] Fuel gauge ADC, charge pump ADC.
[0011] In one embodiment, adjusting the second voltage value of the voltage output by the power management circuit according to the difference between the first voltage value and the second voltage value so that the difference between the second voltage value and the first voltage value meets a preset requirement includes:
[0012] In response to the second voltage value being greater than the first voltage value, reducing a second voltage value of a voltage output by the power management circuit so that the second voltage value is less than or equal to the first voltage value;
[0013] In response to the second voltage value being less than the first voltage value, the difference between the first voltage value and the second voltage value is compared with a preset undervoltage threshold value, and if the difference is greater than the undervoltage threshold value, the second voltage value of the voltage output by the power management circuit is increased so that the difference is less than or equal to the undervoltage threshold value and the second voltage value is less than the first voltage value.
[0014] In one embodiment, the step of reducing the second voltage value of the voltage output by the power management circuit so that the second voltage value is less than or equal to the first voltage value includes:
[0015] Reducing the second voltage value of the voltage output by the power management circuit multiple times, wherein the voltage value reduced each time is a preset unit voltage adjustment value;
[0016] After each operation of reducing the second voltage value is performed, the second voltage value of the voltage output by the power management circuit collected by the voltage detection circuit is obtained again, and the first voltage value and the second voltage value are compared. If the second voltage value is less than or equal to the first voltage value, the reduction of the second voltage value is stopped.
[0017] In one embodiment, the step of increasing the second voltage value of the voltage output by the power management circuit so that the difference is less than or equal to the undervoltage threshold and the second voltage value is less than the first voltage value includes:
[0018] Increasing the second voltage value of the voltage output by the power management circuit multiple times, wherein the voltage value reduced each time is a preset unit voltage adjustment value;
[0019] After each operation of increasing the second voltage value is performed, the second voltage value of the voltage output by the power management circuit collected by the voltage detection circuit is obtained again, and the difference between the first voltage value and the second voltage value is compared with the preset undervoltage threshold. If the difference is less than or equal to the undervoltage threshold, the second voltage value is stopped from being increased.
[0020] In one embodiment, the undervoltage threshold is a preset unit voltage regulation value.
[0021] In one embodiment, it further includes:
[0022] Obtaining the number of charging cycles of the power source, wherein one charging cycle of the power source is the cumulative or one-time charging of the power reaching a preset power threshold;
[0023] The first voltage value is determined according to the number of charging cycles and a preset number threshold.
[0024] In one embodiment, determining the first voltage value according to the number of charging cycles and a preset number threshold includes:
[0025] Every time the number of charging cycles increases by a preset number threshold, the first voltage value is reduced by a preset unit voltage regulation value.
[0026] According to a second aspect of an embodiment of the present disclosure, a charging device is provided, which is applied to a terminal device, wherein the terminal device includes a power management circuit, a control circuit, a voltage detection circuit, and a power supply, and the charging device includes:
[0027] A first acquisition module, configured to acquire a first voltage value sent by a control circuit to a power management circuit, wherein the first voltage value is used to enable the power management circuit to output a voltage that conforms to the first voltage value;
[0028] A second acquisition module, used to acquire a second voltage value of the voltage output by the power management circuit collected by the voltage detection circuit;
[0029] a voltage regulating module, configured to adjust the second voltage value of the voltage output by the power management circuit according to the difference between the first voltage value and the second voltage value, so that the difference between the second voltage value and the first voltage value meets a preset requirement;
[0030] The charging module is used to control the power management circuit to charge the power supply with the adjusted second voltage value.
[0031] In one embodiment, the voltage detection circuit includes at least one of the following:
[0032] Fuel gauge ADC, charge pump ADC.
[0033] In one embodiment, the voltage regulating module is specifically used for:
[0034] In response to the second voltage value being greater than the first voltage value, reducing a second voltage value of a voltage output by the power management circuit so that the second voltage value is less than or equal to the first voltage value;
[0035] In response to the second voltage value being less than the first voltage value, the difference between the first voltage value and the second voltage value is compared with a preset undervoltage threshold value, and if the difference is greater than the undervoltage threshold value, the second voltage value of the voltage output by the power management circuit is increased so that the difference is less than or equal to the undervoltage threshold value and the second voltage value is less than the first voltage value.
[0036] In one embodiment, the voltage regulating module is used to reduce a second voltage value of the voltage output by the power management circuit so that the second voltage value is less than or equal to the first voltage value, and is specifically used to:
[0037] Reducing the second voltage value of the voltage output by the power management circuit multiple times, wherein the voltage value reduced each time is a preset unit voltage adjustment value;
[0038] After each operation of reducing the second voltage value is performed, the second voltage value of the voltage output by the power management circuit collected by the voltage detection circuit is obtained again, and the first voltage value and the second voltage value are compared. If the second voltage value is less than or equal to the first voltage value, the reduction of the second voltage value is stopped.
[0039] In one embodiment, the voltage regulating module is used to increase the second voltage value of the voltage output by the power management circuit so that the difference is less than or equal to the under-voltage threshold and the second voltage value is less than the first voltage value, specifically used to:
[0040] Increasing the second voltage value of the voltage output by the power management circuit multiple times, wherein the voltage value reduced each time is a preset unit voltage adjustment value;
[0041] After each operation of increasing the second voltage value is performed, the second voltage value of the voltage output by the power management circuit collected by the voltage detection circuit is obtained again, and the difference between the first voltage value and the second voltage value is compared with the preset undervoltage threshold. If the difference is less than or equal to the undervoltage threshold, the second voltage value is stopped from being increased.
[0042] In one embodiment, the undervoltage threshold is a preset unit voltage regulation value.
[0043] In one embodiment, it further includes:
[0044] A third acquisition module is used to acquire the number of charging cycles of the power source, wherein one charging cycle of the power source is the cumulative or one-time charging of the power to a preset power threshold;
[0045] The determination module is used to determine the first voltage value according to the number of charging cycles and a preset number threshold.
[0046] In one embodiment, the determining module is specifically used to:
[0047] Every time the number of charging cycles increases by a preset number threshold, the first voltage value is reduced by a preset unit voltage regulation value.
[0048] According to a third aspect of an embodiment of the present disclosure, an electronic device is provided, comprising a memory and a processor, wherein the memory is used to store computer instructions executable on the processor, and the processor is used to execute the computer instructions based on the charging method described in any one of the first aspects.
[0049] According to a fourth aspect of an embodiment of the present disclosure, there is provided a computer-readable storage medium on which a computer program is stored, and when the program is executed by a processor, the method described in any one of the first aspects is implemented.
[0050] The technical solution provided by the embodiments of the present disclosure may have the following beneficial effects:
[0051] The present disclosure obtains the first voltage value sent by the control circuit to the power management circuit, that is, obtains the voltage value that the power management circuit should output, then obtains the second voltage value of the voltage output by the power management circuit collected by the voltage detection circuit, that is, obtains the voltage value actually output by the power management circuit, and then adjusts the voltage value actually output by the power management circuit by comparing the voltage value that should be output with the voltage value actually output, so that the difference between the voltage value actually output and the voltage value that should be output meets the preset requirements, and finally charges the power supply according to the adjusted qualified second voltage value. Since the voltage value output by the power management circuit is collected in real time by the voltage detection circuit, it is possible to detect in real time whether the power management circuit has output a qualified voltage value, and adjust it when it is unqualified, that is, it is possible to enable the power management circuit to output a qualified voltage value in real time, avoiding the power management circuit from failing to output a qualified voltage value when there is an accuracy error, thereby avoiding battery damage or safety hazards caused by inaccurate charging. 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 a flow chart of a charging method shown in an exemplary embodiment of the present disclosure;
[0054] Figure 2 is a schematic diagram of a method of adjusting the second voltage value according to an exemplary embodiment of the present disclosure;
[0055] Figure 3 is a flow chart of a charging method shown in another exemplary embodiment of the present disclosure;
[0056] Figure 4 is a schematic structural diagram of a charging device shown in an exemplary embodiment of the present disclosure;
[0057] Figure 5It is a block diagram of an electronic device shown in an exemplary embodiment of the present disclosure. DETAILED DESCRIPTION
[0058] 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 and methods consistent with some aspects of the present disclosure as detailed in the appended claims.
[0059] The terms used in this disclosure are for the purpose of describing specific embodiments only and are not intended to limit the disclosure. The singular forms of "a", "said" and "the" used in this disclosure and the appended claims are also intended to include plural forms unless the context clearly indicates otherwise. It should also be understood that the term "and / or" used herein refers to and includes any or all possible combinations of one or more associated listed items.
[0060] It should be understood that although the terms first, second, third, etc. may be used in the present disclosure to describe various information, such information should not be limited to these terms. These terms are only used to distinguish the same type of information from each other. For example, without departing from the scope of the present disclosure, the first information may also be referred to as the second information, and similarly, the second information may also be referred to as the first information. Depending on the context, the word "if" as used herein may be interpreted as "at the time of" or "when" or "in response to determining".
[0061] With the advancement of science and technology, the functions of terminal devices are becoming more and more abundant and the performance is becoming more and more excellent. The power performance of terminal devices determines the operating time of terminal devices and plays a very important role in the user experience of terminal devices. The fast charging technology in related technologies uses a large power to quickly charge the power supply of terminal devices and can complete charging in a shorter time. However, there are precision errors in charging-related devices, which can easily lead to inaccurate charging, thereby causing battery damage or safety hazards.
[0062] Specifically, when charging, mobile phones and other terminal devices will at least go through two stages, namely, constant current charging and constant voltage charging. In the final stage of constant voltage charging, the integrated power management circuit (PMIC) is used to cut off the charging, that is, the main control circuit of the terminal device will generate a software configuration value according to the parameters of the power supply, and then send the software configuration value to the integrated power management circuit (PMIC). The integrated power management circuit (PMIC) charges the power supply at a constant voltage according to the software configuration value. This constant voltage value is the hardware output value; at the same time, the integrated power management circuit (PMIC) uses the analog-to-digital converter (ADC) of its charger to detect the hardware output value and adjust the hardware output value. The integrated power management circuit (PMIC) itself has an accuracy error, or the accuracy error is caused by the extended use time, which will cause the hardware output value to deviate from the software configuration value, and / or cause the analog-to-digital converter (ADC) of the charger of the integrated power management circuit (PMIC) to deviate from the detection of the hardware output value. The above deviations may cause the hardware output value to be greater than the software setting value, that is, overvoltage, which will not only make the power supply more susceptible to aging, but also cause damage to the power supply; the above deviations may also cause the hardware output value to be less than the software configuration value, that is, undervoltage, which will cause the power supply to be unable to charge to a full charge state.
[0063] Based on this, at least one embodiment of the present disclosure provides a charging method for a terminal device. Figure 1 , which shows the process of the charging method, including steps S101 to S104.
[0064] The terminal device includes a power management circuit, a control circuit, a voltage detection circuit and a power supply. The terminal device may be a smart phone, a tablet computer, a desktop / laptop / handheld computer, a notebook computer, an ultra-mobile personal computer (UMPC), a netbook, a cellular phone, a personal digital assistant (PDA), an augmented reality (AR) / virtual reality (VR) device and other devices including a touch screen. The embodiments of the present disclosure are not intended to limit the specific form of the terminal device. The power management circuit may be an integrated power management circuit (PMIC), the control circuit may be a main control circuit of the terminal device, or may be a separate module for controlling charging parameters (such as charging voltage and current); when charging, the external power supply inputs a certain voltage and current of electric energy to the power management circuit of the terminal device through a charging device such as an adapter, the control circuit sends a control signal to the power management circuit, and the power management circuit outputs electric energy to the power supply to charge the power supply.
[0065] In step S101, a first voltage value sent by a control circuit to a power management circuit is acquired, wherein the first voltage value is used to make the power management circuit output a voltage that complies with the first voltage value.
[0066] The first voltage value may be a software configuration value and may be configured according to the capacity of the power supply. For example, the full-charge voltage of the power supply may be used as the first voltage value so that the final constant-voltage charging stage may be charged at the full-charge voltage.
[0067] In step S102, a second voltage value of the voltage output by the power management circuit collected by the voltage detection circuit is obtained.
[0068] Among them, the voltage detection circuit collects the second voltage value of the power management circuit in real time. The voltage detection circuit is a device independent of the power management circuit, and can accurately and objectively detect the second voltage value of the power management circuit. If the power management circuit itself has errors or errors in device accuracy due to aging, the voltage detection circuit can promptly collect the abnormal second voltage value output by the power management circuit, and thus this step can obtain abnormal data of the second voltage value.
[0069] In one example, the voltage detection circuit can be an analog-to-digital converter (electricity meter ADC) of the fuel meter, or an analog-to-digital converter (ADC) of the charge pump, or a combination of an analog-to-digital converter (electricity meter ADC) of the fuel meter and an analog-to-digital converter (ADC) of the charge pump. Among them, the analog-to-digital converter of the fuel meter and the analog-to-digital converter of the charge pump have high precision (up to ±0.003V) and are not easy to age. The fuel meter is used to detect the amount of power of the power supply. In this embodiment, its analog-to-digital converter can be used to assist in detecting the interface voltage of the power management circuit, and the analog signal of the detected voltage can be directly converted into a digital signal for easy use. The charge pump is used to charge the power supply in charging stages such as constant current charging, but in the constant voltage charging stage targeted by this embodiment, it does not participate in charging the power supply, but it uses an analog-to-digital converter to assist in detecting the interface voltage of the power management circuit, and the analog signal of the detected voltage can be directly converted into a digital signal for easy use. When the analog-to-digital converter (electricity meter ADC) of the fuel meter is combined with the analog-to-digital converter (ADC) of the charge pump (Chargerpump), the voltage values collected by the two analog-to-digital converters can be weighted and summed as the interface voltage of the power management circuit.
[0070] In other examples, the voltage detection circuit may also use other circuits or modules, which may be an idle device inherent in the terminal device (i.e., a device that is idle during this charging phase), or a circuit or module separately set up to collect the interface voltage of the power management circuit. The embodiments of the present disclosure do not intend to limit this.
[0071] In step S103, the second voltage value of the voltage output by the power management circuit is adjusted according to the difference between the first voltage value and the second voltage value, so that the difference between the second voltage value and the first voltage value meets a preset requirement.
[0072] Among them, when there is no precision error in the power management circuit, the second voltage value is equal to the first voltage value, that is, the purpose of our adjustment is to make the second voltage value equal to the first voltage value as much as possible. In the embodiment of the present disclosure, a preset requirement can be set as the error allowable range of adjustment, which not only ensures that the second voltage value is constantly close to the first voltage value, but also avoids infinite adjustment causing a cycle and causing energy waste.
[0073] In step S104, the power management circuit is controlled to charge the power source with the adjusted second voltage value.
[0074] The power management circuit reduces the high voltage electric energy input from the external power supply to a second voltage value to charge the power supply.
[0075] In the embodiment of the present disclosure, by acquiring the first voltage value sent by the control circuit to the power management circuit, that is, acquiring the voltage value that the power management circuit should output, then acquiring the second voltage value of the voltage output by the power management circuit acquired by the voltage detection circuit, that is, acquiring the voltage value actually output by the power management circuit, and then by comparing the voltage value that should be output with the voltage value actually output, adjusting the voltage value actually output by the power management circuit, so that the difference between the voltage value actually output and the voltage value that should be output meets the preset requirements, and finally charging the power supply according to the adjusted qualified second voltage value. Since the voltage value output by the power management circuit is acquired in real time by the voltage detection circuit, it is possible to detect in real time whether the power management circuit has output a qualified voltage value, and adjust it when it is unqualified, that is, it is possible to enable the power management circuit to output a qualified voltage value in real time, avoiding the power management circuit from failing to output a qualified voltage value when there is an accuracy error, thereby avoiding battery damage or safety hazards caused by inaccurate charging.
[0076] In some embodiments of the present disclosure, the second voltage value is adjusted in the following manner, please refer to the attached Figure 2 , which shows the process of the adjustment method, including step S201 and step S202.
[0077] In step S201 , in response to the second voltage value being greater than the first voltage value, the second voltage value of the voltage output by the power management circuit is reduced so that the second voltage value is less than or equal to the first voltage value.
[0078] Among them, when the second voltage value is greater than the first voltage value, overvoltage will occur, which will not only make the power supply more susceptible to aging, but also damage the power supply. Therefore, it is necessary to reduce the second voltage value to less than or equal to the first voltage value, that is, the second voltage value cannot be greater than the first voltage value, because overvoltage will damage the power supply and cause the power supply to age, and undervoltage will only cause the power supply to be unable to be fully charged. Although it is allowed to adjust the second voltage value to be lower than the first voltage value, it is still necessary to try to make the second voltage value equal to the first voltage value or make the second voltage value close to the first voltage value.
[0079] In one example, first, the second voltage value of the voltage output by the power management circuit is reduced multiple times, wherein the voltage value reduced each time is a preset unit voltage adjustment value; next, after each operation of reducing the second voltage value is performed, the second voltage value of the voltage output by the power management circuit acquired by the voltage detection circuit is obtained again, and the first voltage value and the second voltage value are compared, and if the second voltage value is less than or equal to the first voltage value, the second voltage value is stopped from being reduced. That is, the second voltage value is gradually reduced according to the unit voltage adjustment value until it is lower than or equal to the first voltage value and the reduction is stopped. The unit voltage adjustment value can be set to 0.003V or 0.005V, etc.
[0080] In step S202, in response to the second voltage value being less than the first voltage value, the difference between the first voltage value and the second voltage value is compared with a preset undervoltage threshold, and if the difference is greater than the undervoltage threshold, the second voltage value of the voltage output by the power management circuit is increased so that the difference is less than or equal to the undervoltage threshold and the second voltage value is less than the first voltage value.
[0081] Among them, when the second voltage value is less than the first voltage value, undervoltage will occur, which will cause the power supply to be unable to charge to a full power state. Therefore, the second voltage value can be increased, but the increased second voltage value cannot be higher than the first voltage value, because this will cause overvoltage, which will cause more serious consequences than undervoltage (damage to the power supply and accelerated aging of the power supply, etc.). The ideal result of increasing the second voltage value is to make it equal to the first voltage value, but in order to avoid infinite adjustment and cause energy waste caused by cycles, an undervoltage threshold can be set. The meaning of the undervoltage threshold is as follows: if the difference between the first voltage value and the second voltage value is less than or equal to the undervoltage threshold, the voltage regulation result of the second voltage value is considered to be qualified. If the difference between the first voltage value and the second voltage value is greater than the undervoltage threshold, the voltage regulation result of the second voltage value is considered to be unqualified. That is, the qualified voltage regulation result is expanded from a voltage value to a voltage range. This voltage range is the first voltage value-undervoltage threshold to the first voltage value. For example, if the first voltage value is 4.48V and the undervoltage threshold is 0.005V, the qualified voltage regulation result is 4.475V to 4.48V.
[0082] In one example, first, the second voltage value of the voltage output by the power management circuit is increased multiple times, wherein the voltage value reduced each time is a preset unit voltage adjustment value; next, after each operation of increasing the second voltage value is performed, the second voltage value of the voltage output by the power management circuit acquired by the voltage detection circuit is obtained again, and the difference between the first voltage value and the second voltage value is compared with the preset undervoltage threshold, and if the difference is less than or equal to the undervoltage threshold, the second voltage value is stopped from being increased. In other words, the second voltage value is gradually increased according to the unit voltage adjustment value until the second voltage value enters a qualified voltage adjustment result (a voltage range from the first voltage value to the undervoltage threshold to the first voltage value) and stops increasing. The unit voltage adjustment value can be set to 0.003V or 0.005V, etc.
[0083] In one example, the undervoltage threshold is a preset unit voltage regulation value. When the difference between the result of the one-time increase of the second voltage value and the first voltage value is greater than or equal to the undervoltage threshold, that is, the difference between the result of the one-time increase of the second voltage value and the first voltage value is greater than or equal to the unit voltage regulation value, further, the second voltage value will not be greater than the first voltage value if it is increased by one unit voltage regulation value, so the second voltage value can continue to be increased; when the difference between the result of the one-time increase of the second voltage value and the first voltage value is less than the undervoltage threshold, that is, the difference between the result of the one-time increase of the second voltage value and the first voltage value is less than the unit voltage regulation value, further, the second voltage value will be greater than the first voltage value if it is increased by one unit voltage regulation value, so the second voltage value cannot be increased further, that is, it is necessary to stop increasing the second voltage value.
[0084] In the embodiments of the present disclosure, by setting a unit voltage regulation value as the minimum division value of the voltage regulation and adopting a voltage regulation method of gradually reducing or increasing the second voltage value, the accuracy of the voltage regulation is improved, and misadjustment or wrong adjustment is avoided, thereby improving the charging efficiency, protecting the power supply safety, and avoiding power supply aging.
[0085] Please refer to the attached Figure 3 In some embodiments of the present disclosure, the charging method further includes:
[0086] In step S301, the number of charging cycles of the power source is obtained, wherein one charging cycle of the power source is a cumulative or one-time charge to a preset power threshold.
[0087] The number of charging cycles of the power source may be obtained by using a power meter. For example, the power threshold may be set to 100%, 90%, or 80% of the battery capacity.
[0088] In step S302, the first voltage value is determined according to the number of charging cycles and a preset number threshold.
[0089] In one example, the first voltage value is reduced by a preset unit voltage adjustment value every time the number of charging cycles increases by a preset number threshold. The number threshold can be set to 100 times, and the unit voltage adjustment value can be set to 5mv, that is, the first voltage value is reduced by 5mv every time the number of charging cycles increases by 100 times.
[0090] In the disclosed embodiment, due to multiple charging cycles of the power supply, not only the power supply will age, but also the power management circuit will age, and the analog-to-digital converter of the power meter and the analog-to-digital converter of the charge pump will age to varying degrees. Compared with the real-time voltage regulation method of adjusting the second voltage value in real time, this embodiment adjusts the first voltage value as a whole and at the source to avoid the problem of the second voltage value being too large and accelerating the aging of the power supply.
[0091] According to a second aspect of the present disclosure, a charging device is provided. Figure 4 , which shows the structure of the device, the charging device is applied to a terminal device, the terminal device includes a power management circuit, a control circuit, a voltage detection circuit and a power supply, and the charging device includes:
[0092] A first acquisition module 401, configured to acquire a first voltage value sent by a control circuit to a power management circuit, wherein the first voltage value is used to enable the power management circuit to output a voltage that conforms to the first voltage value;
[0093] A second acquisition module 402 is used to acquire a second voltage value of the voltage output by the power management circuit collected by the voltage detection circuit;
[0094] A voltage regulating module 403, configured to adjust the second voltage value of the voltage output by the power management circuit according to the difference between the first voltage value and the second voltage value, so that the difference between the second voltage value and the first voltage value meets a preset requirement;
[0095] The charging module 404 is used to control the power management circuit to charge the power supply with the adjusted second voltage value.
[0096] In one embodiment, the voltage detection circuit includes at least one of the following:
[0097] Fuel gauge ADC, charge pump ADC.
[0098] In one embodiment, the voltage regulating module is specifically used for:
[0099] In response to the second voltage value being greater than the first voltage value, reducing a second voltage value of a voltage output by the power management circuit so that the second voltage value is less than or equal to the first voltage value;
[0100] In response to the second voltage value being less than the first voltage value, the difference between the first voltage value and the second voltage value is compared with a preset undervoltage threshold value, and if the difference is greater than the undervoltage threshold value, the second voltage value of the voltage output by the power management circuit is increased so that the difference is less than or equal to the undervoltage threshold value and the second voltage value is less than the first voltage value.
[0101] In one embodiment, the voltage regulating module is used to reduce a second voltage value of the voltage output by the power management circuit so that the second voltage value is less than or equal to the first voltage value, and is specifically used to:
[0102] Reducing the second voltage value of the voltage output by the power management circuit multiple times, wherein the voltage value reduced each time is a preset unit voltage adjustment value;
[0103] After each operation of reducing the second voltage value is performed, the second voltage value of the voltage output by the power management circuit collected by the voltage detection circuit is obtained again, and the first voltage value and the second voltage value are compared. If the second voltage value is less than or equal to the first voltage value, the reduction of the second voltage value is stopped.
[0104] In one embodiment, the voltage regulating module is used to increase the second voltage value of the voltage output by the power management circuit so that the difference is less than or equal to the under-voltage threshold and the second voltage value is less than the first voltage value, specifically used to:
[0105] Increasing the second voltage value of the voltage output by the power management circuit multiple times, wherein the voltage value reduced each time is a preset unit voltage adjustment value;
[0106] After each operation of increasing the second voltage value is performed, the second voltage value of the voltage output by the power management circuit collected by the voltage detection circuit is obtained again, and the difference between the first voltage value and the second voltage value is compared with the preset undervoltage threshold. If the difference is less than or equal to the undervoltage threshold, the second voltage value is stopped from being increased.
[0107] In one embodiment, the undervoltage threshold is a preset unit voltage regulation value.
[0108] In one embodiment, it further includes:
[0109] A third acquisition module is used to acquire the number of charging cycles of the power source, wherein one charging cycle of the power source is the cumulative or one-time charging of the power to a preset power threshold;
[0110] The determination module is used to determine the first voltage value according to the number of charging cycles and a preset number threshold.
[0111] In one embodiment, the determining module is specifically used to:
[0112] Every time the number of charging cycles increases by a preset number threshold, the first voltage value is reduced by a preset unit voltage regulation value.
[0113] Regarding the device in the above embodiment, the specific manner in which each module performs the operation has been described in detail in the embodiment of the first aspect related to the method, and will not be elaborated here.
[0114] According to the third aspect of the embodiment of the present disclosure, please refer to the attached Figure 5 , which exemplarily shows a block diagram of an electronic device. For example, the device 500 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.
[0115] Reference Figure 5 , the device 500 may include one or more of the following components: a processing component 502 , a memory 504 , a power component 506 , a multimedia component 508 , an audio component 510 , an input / output (I / O) interface 512 , a sensor component 514 , and a communication component 516 .
[0116] The processing component 502 generally controls the overall operation of the device 500, such as operations associated with display, phone calls, data communications, camera operations, and recording operations. The processing component 502 may include one or more processors 520 to execute instructions to complete all or part of the steps of the above-mentioned method. In addition, the processing component 502 may include one or more modules to facilitate the interaction between the processing component 502 and other components. For example, the processing component 502 may include a multimedia module to facilitate the interaction between the multimedia component 508 and the processing component 502.
[0117] The memory 504 is configured to store various types of data to support operations on the device 500. Examples of such data include instructions for any application or method operating on the device 500, contact data, phone book data, messages, pictures, videos, etc. The memory 504 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.
[0118] Power component 506 provides power to various components of device 500. Power component 506 may include a power management system, one or more power supplies, and other components associated with generating, managing, and distributing power for device 500.
[0119] The multimedia component 508 includes a screen that provides an output interface between the device 500 and the user. In some embodiments, the screen may include a liquid crystal display (LCD) and a touch panel (TP). If the screen includes a touch panel, the screen may be implemented as a touch screen to receive 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 508 includes a front camera and / or a rear camera. When the device 500 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.
[0120] The audio component 510 is configured to output and / or input audio signals. For example, the audio component 510 includes a microphone (MIC), and when the device 500 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 504 or sent via the communication component 516. In some embodiments, the audio component 510 also includes a speaker for outputting audio signals.
[0121] I / O interface 512 provides an interface between processing component 502 and peripheral interface modules, such as keyboards, click wheels, buttons, etc. These buttons may include but are not limited to: a home button, a volume button, a start button, and a lock button.
[0122] The sensor assembly 514 includes one or more sensors for providing various aspects of status assessment for the device 500. For example, the sensor assembly 514 can detect the open / closed state of the device 500, the relative positioning of components, such as the display and keypad of the device 500, the sensor assembly 514 can also detect the position change of the device 500 or a component of the device 500, the presence or absence of user contact with the device 500, the orientation or acceleration / deceleration of the device 500 and the temperature change of the device 500. The sensor assembly 514 can also include a proximity sensor configured to detect the presence of nearby objects without any physical contact. The sensor assembly 514 can also include an optical sensor, such as a CMOS or CCD image sensor, for use in imaging applications. In some embodiments, the sensor assembly 514 can also include an acceleration sensor, a gyroscope sensor, a magnetic sensor, a pressure sensor or a temperature sensor.
[0123] The communication component 516 is configured to facilitate wired or wireless communication between the device 500 and other devices. The device 500 can access a wireless network based on a communication standard, such as WiFi, 2G or 3G, 4G or 5G or a combination thereof. In an exemplary embodiment, the communication component 516 receives a broadcast signal or broadcast-related information from an external broadcast management system via a broadcast channel. In an exemplary embodiment, the communication component 516 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.
[0124] In an exemplary embodiment, the apparatus 500 may be implemented by one or more application-specific integrated circuits (ASICs), digital signal processors (DSPs), digital signal processing devices (DSPDs), programmable logic devices (PLDs), field programmable gate arrays (FPGAs), controllers, microcontrollers, microprocessors or other electronic components to execute the power supply method for the above-mentioned electronic device.
[0125] In a fourth aspect, the present disclosure, in an exemplary embodiment, further provides a non-transitory computer-readable storage medium including instructions, such as a memory 504 including instructions, and the instructions can be executed by a processor 520 of the device 500 to complete the power supply method of the electronic device. 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.
[0126] Those skilled in the art will readily appreciate other embodiments of the present disclosure after considering the specification and practicing the disclosure 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.
[0127] 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: Applied to a terminal device, the terminal device includes a power management circuit, a control circuit, a voltage detection circuit and a power supply, and the charging method includes: Acquire a first voltage value sent by the control circuit to the power management circuit, wherein the first voltage value is used to make the power management circuit output a voltage that meets the first voltage value; Acquire a second voltage value of the voltage output by the power management circuit collected by the voltage detection circuit; According to the difference between the first voltage value and the second voltage value, adjusting the second voltage value of the voltage output by the power management circuit so that the difference between the second voltage value and the first voltage value meets a preset requirement; Controlling the power management circuit to charge the power supply with the adjusted second voltage value; The adjusting the second voltage value of the voltage output by the power management circuit according to the difference between the first voltage value and the second voltage value so that the difference between the second voltage value and the first voltage value meets a preset requirement includes: In response to the second voltage value being greater than the first voltage value, reducing a second voltage value of a voltage output by the power management circuit so that the second voltage value is less than or equal to the first voltage value; In response to the second voltage value being less than the first voltage value, the difference between the first voltage value and the second voltage value is compared with a preset undervoltage threshold value, and if the difference is greater than the undervoltage threshold value, the second voltage value of the voltage output by the power management circuit is increased so that the difference is less than or equal to the undervoltage threshold value and the second voltage value is less than the first voltage value.
2. The charging method according to claim 1, characterized in that: The voltage detection circuit includes at least one of the following: Fuel gauge ADC, charge pump ADC.
3. The charging method according to claim 1, characterized in that: The step of reducing a second voltage value of a voltage output by the power management circuit so that the second voltage value is less than or equal to the first voltage value comprises: Reducing the second voltage value of the voltage output by the power management circuit multiple times, wherein the voltage value reduced each time is a preset unit voltage adjustment value; After each operation of reducing the second voltage value is performed, the second voltage value of the voltage output by the power management circuit collected by the voltage detection circuit is obtained again, and the first voltage value and the second voltage value are compared. If the second voltage value is less than or equal to the first voltage value, the reduction of the second voltage value is stopped.
4. The charging method according to claim 1, characterized in that: The step of increasing the second voltage value of the voltage output by the power management circuit so that the difference is less than or equal to the undervoltage threshold and the second voltage value is less than the first voltage value comprises: Increasing the second voltage value of the voltage output by the power management circuit multiple times, wherein the voltage value reduced each time is a preset unit voltage adjustment value; After each operation of increasing the second voltage value is performed, the second voltage value of the voltage output by the power management circuit collected by the voltage detection circuit is obtained again, and the difference between the first voltage value and the second voltage value is compared with the preset undervoltage threshold. If the difference is less than or equal to the undervoltage threshold, the second voltage value is stopped from being increased.
5. The charging method according to claim 4, characterized in that: The undervoltage threshold is a preset unit voltage regulation value.
6. The charging method according to any one of claims 1 to 5, characterized in that: Also includes: Obtaining the number of charging cycles of the power source, wherein one charging cycle of the power source is the cumulative or one-time charging of the power reaching a preset power threshold; The first voltage value is determined according to the number of charging cycles and a preset number threshold.
7. The charging method according to claim 6, characterized in that: The determining the first voltage value according to the number of charging cycles and a preset number threshold comprises: Every time the number of charging cycles increases by a preset number threshold, the first voltage value is reduced by a preset unit voltage regulation value.
8. A charging device, characterized in that: Applied to terminal equipment, the terminal equipment includes a power management circuit, a control circuit, a voltage detection circuit and a power supply, and the charging device includes: A first acquisition module, configured to acquire a first voltage value sent by a control circuit to a power management circuit, wherein the first voltage value is used to enable the power management circuit to output a voltage that conforms to the first voltage value; A second acquisition module, used to acquire a second voltage value of the voltage output by the power management circuit collected by the voltage detection circuit; a voltage regulating module, configured to adjust the second voltage value of the voltage output by the power management circuit according to the difference between the first voltage value and the second voltage value, so that the difference between the second voltage value and the first voltage value meets a preset requirement; a charging module, used for controlling the power management circuit to charge the power supply at the adjusted second voltage value; The voltage regulating module is specifically used for: In response to the second voltage value being greater than the first voltage value, reducing a second voltage value of a voltage output by the power management circuit so that the second voltage value is less than or equal to the first voltage value; In response to the second voltage value being less than the first voltage value, the difference between the first voltage value and the second voltage value is compared with a preset undervoltage threshold value, and if the difference is greater than the undervoltage threshold value, the second voltage value of the voltage output by the power management circuit is increased so that the difference is less than or equal to the undervoltage threshold value and the second voltage value is less than the first voltage value.
9. The charging device according to claim 8, characterized in that: The voltage detection circuit includes at least one of the following: Fuel gauge ADC, charge pump ADC.
10. The charging device according to claim 8, characterized in that: The voltage regulating module is used to reduce a second voltage value of the voltage output by the power management circuit so that the second voltage value is less than or equal to the first voltage value, and is specifically used to: Reducing the second voltage value of the voltage output by the power management circuit multiple times, wherein the voltage value reduced each time is a preset unit voltage adjustment value; After each operation of reducing the second voltage value is performed, the second voltage value of the voltage output by the power management circuit collected by the voltage detection circuit is obtained again, and the first voltage value and the second voltage value are compared. If the second voltage value is less than or equal to the first voltage value, the reduction of the second voltage value is stopped.
11. The charging device according to claim 8, characterized in that: The voltage regulating module is used to increase the second voltage value of the voltage output by the power management circuit so that the difference is less than or equal to the undervoltage threshold and the second voltage value is less than the first voltage value, specifically used to: Increasing the second voltage value of the voltage output by the power management circuit multiple times, wherein the voltage value reduced each time is a preset unit voltage adjustment value; After each operation of increasing the second voltage value is performed, the second voltage value of the voltage output by the power management circuit collected by the voltage detection circuit is obtained again, and the difference between the first voltage value and the second voltage value is compared with the preset undervoltage threshold. If the difference is less than or equal to the undervoltage threshold, the second voltage value is stopped from being increased.
12. The charging device according to claim 11, characterized in that: The undervoltage threshold is a preset unit voltage regulation value.
13. The charging device according to any one of claims 8 to 12, characterized in that: Also includes: A third acquisition module is used to acquire the number of charging cycles of the power source, wherein one charging cycle of the power source is the cumulative or one-time charging of the power to a preset power threshold; The determination module is used to determine the first voltage value according to the number of charging cycles and a preset number threshold.
14. The charging device according to claim 13, characterized in that: The determination module is specifically used for: Every time the number of charging cycles increases by a preset number threshold, the first voltage value is reduced by a preset unit voltage regulation value.
15. An electronic device, characterized in that: The electronic device comprises a memory and a processor, wherein the memory is used to store computer instructions executable on the processor, and the processor is used to execute the charging method according to any one of claims 1 to 7 when executing the computer instructions.
16. A computer-readable storage medium having a computer program stored thereon, characterized in that: When the program is executed by a processor, the method according to any one of claims 1 to 7 is implemented.
Citation Information
Patent Citations
A wireless charging method and device
CN109149689A