Charging method, device and chip
By obtaining the current threshold in the charging device and adjusting the charging current in real time, the problem of inconsistent output accuracy of the charging IC under different conditions is solved, ensuring the safety and efficiency of charging.
Patent Information
- Application Number
- CN202211269143.3
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2022-10-17
- Publication Date
- 2025-09-23
- Estimated Expiration
- 2042-10-17
AI Technical Summary
Existing charging ICs have difficulty maintaining the output accuracy of charging current under different conditions, resulting in slower charging speeds or safety hazards.
By obtaining the current threshold of the charging device, a voting mechanism is used to select the set current from the currents of multiple charging strategies, and the actual output current is compared with the current threshold in real time to adjust the output current of the charging device to ensure accuracy.
It achieves precise control of the output current of the charging device, improves the safety and efficiency of charging, and avoids slow charging speed or safety hazards.
Smart Images

Figure CN115566768B_ABST
Abstract
Description
Technical Field
[0001] The embodiments of the present application relate to the field of charging technology, and are related to but not limited to a charging method, device, and chip. Background Art
[0002] With the advancement of electronic device technology, mobile phones, tablets, smartwatches, and other devices are becoming increasingly popular. For example, with the development of the market, a wide variety of smartwatches have emerged, including children's phone watches, smart bracelets, sports watches, and adult watches. As the frequency and duration of device use increase, the demand for terminal batteries increases.
[0003] Battery life and charging safety are key concerns for end-users. Current charging strategies primarily depend on battery temperature and voltage, setting the optimal charging current for different temperature and voltage conditions. This relies heavily on the stability of the charging integrated circuit (IC) under various conditions. The IC must ensure current output accuracy to meet battery charging requirements. Low currents can slow charging and impact the user experience, while high currents can exceed the battery's charging current specifications, posing safety risks. Summary of the Invention
[0004] In view of this, the charging method, device and chip provided in the embodiments of the present application can ensure the safety and efficiency of charging. The charging method, device and chip provided in the embodiments of the present application are implemented as follows:
[0005] A charging method provided in a first aspect of an embodiment of the present application is applied to a charging device, the method comprising: obtaining a current threshold of the charging device, wherein the current threshold is determined based on a voting result of each charging current corresponding to at least two charging strategies; obtaining an actual output current of the charging device; comparing the actual output current with the current threshold to obtain a comparison result; and adjusting the actual output current based on the comparison result.
[0006] In some embodiments, obtaining the current threshold of the charging device includes: determining a set current based on the voting results of each charging current corresponding to at least two charging strategies, wherein the set current is a set value of the output current of the charging device; determining the current threshold based on the set current; adjusting the actual output current based on the comparison result includes: adjusting the set current based on the comparison result to achieve adjustment of the actual output current.
[0007] In some embodiments, determining the set current based on the voting results of the respective charging currents corresponding to at least two charging strategies includes: obtaining at least two operating parameters of the battery, the at least two operating parameters corresponding to the at least two charging strategies; determining the charging current corresponding to each charging strategy based on the at least two operating parameters and the at least two charging strategies; and selecting the minimum value from each of the charging currents as the set current by voting.
[0008] In some embodiments, adjusting the set current according to the comparison result includes: when the comparison result indicates that the actual output current is lower than the current threshold, adding a first preset value to the set current.
[0009] In some embodiments, adjusting the set current according to the comparison result includes: when the comparison result indicates that the actual output current is higher than the current threshold, reducing the set current by a first preset value.
[0010] In some embodiments, when the comparison result indicates that the actual output current is lower than the current threshold, a first preset value is added to the set current, including: obtaining the recorded number of adjustments of the set current; when the number of adjustments is less than the preset number, adding the first preset value to the set current; and adding one to the recorded number of adjustments of the set current.
[0011] In some embodiments, when the comparison result indicates that the actual output current is higher than the current threshold, the set current is reduced by a first preset value, including: calculating the difference between the actual output current and the current threshold; when the difference is higher than the first threshold, reducing the set current by a second preset value; when the difference is lower than the first threshold, reducing the set current by the first preset value.
[0012] In some embodiments, determining the current threshold based on the set current includes: determining a threshold interval based on the set current, and using the threshold interval as the current threshold. Comparing the actual output current with the current threshold to obtain a comparison result includes: comparing the actual output current with the current threshold; when the actual output current is greater than an upper limit of the current threshold, the comparison result indicates that the actual output current is higher than the current threshold; when the actual output current is less than a lower limit of the current threshold, the comparison result indicates that the actual output current is lower than the current threshold.
[0013] In some embodiments, the at least two charging strategies include: a first charging strategy, in which the charging current of the charging device is determined based on the temperature of the battery; and a second charging strategy, in which the charging current of the charging device is determined based on the voltage of the battery.
[0014] In some embodiments, before obtaining the actual output current of the charging device, the method further includes:
[0015] It is determined that the charging device meets an execution condition, where the execution condition includes at least one of being in a constant current charging stage, the charging current being in a stable state, and not executing a target thread, where the target thread is used to adjust an actual output current of the charging device.
[0016] A second aspect of an embodiment of the present application provides a charging device, comprising: a first acquisition module for acquiring a current threshold of the charging device, wherein the current threshold is determined based on voting results of at least two charging strategies corresponding to respective charging currents; a second acquisition module for acquiring an actual output current of the charging device; a comparison module for comparing the actual output current with the current threshold to obtain a comparison result; and an adjustment module for adjusting the actual output current based on the comparison result.
[0017] A third aspect of the embodiments of the present application provides a chip, which is used to implement the steps of any of the above method embodiments.
[0018] The charging method, device, and chip provided in the embodiments of the present application compare the actual output current with the current threshold to obtain a comparison result, adjust the actual output current based on the comparison result, and realize real-time monitoring of the current output by the charging device to prevent it from deviating from the current threshold, thereby ensuring the accuracy of the output current of the charging device and ensuring the safety and efficiency of charging, thereby solving the technical problems raised in the background technology. BRIEF DESCRIPTION OF THE DRAWINGS
[0019] The drawings herein are incorporated into and constitute a part of the specification. These drawings illustrate embodiments consistent with the present application and, together with the specification, are used to illustrate the technical solutions of the present application.
[0020] Figure 1 A flowchart of a charging method provided in an embodiment of the present application;
[0021] Figure 2 A flowchart of another charging method provided in an embodiment of the present application;
[0022] Figure 3 A schematic diagram of the structure of a charging device provided in an embodiment of the present application. DETAILED DESCRIPTION
[0023] To make the purpose, technical solutions and advantages of the embodiments of the present application clearer, the specific technical solutions of the present application will be further described in detail below in conjunction with the drawings in the embodiments of the present application. The following embodiments are used to illustrate the present application but are not intended to limit the scope of the present application.
[0024] Unless otherwise defined, all technical and scientific terms used herein have the same meaning as commonly understood by those skilled in the art to which this application pertains. The terms used herein are for the purpose of describing the embodiments of this application only and are not intended to limit this application.
[0025] In the following description, reference is made to “some embodiments”, which describes a subset of all possible embodiments, but it will be understood that “some embodiments” may be the same subset or different subsets of all possible embodiments and may be combined with each other without conflict.
[0026] It should be pointed out that the terms "first\second\third" involved in the embodiments of the present application are used to distinguish similar or different objects, and do not represent a specific ordering of the objects. It can be understood that "first\second\third" can be interchanged with a specific order or sequence where permitted, so that the embodiments of the present application described here can be implemented in an order other than that illustrated or described here.
[0027] The applicant found that the current charging IC ensures the output accuracy of the charging current at the hardware level, but when the charging IC itself cannot maintain uniform accuracy under different conditions, there is a lack of corresponding avoidance and protection measures.
[0028] In view of this, an embodiment of the present application provides a charging method, which is applied to a charging device. During the implementation process, the charging device may be a chip with a power distribution function. The chip may be a chip dedicated to power management, such as a charge pump chip, a fast charging chip, a charging IC, or a power IC; the chip may also be a multi-purpose chip including a power management function, such as a PMIC multi-channel power management chip.
[0029] Figure 1 A schematic diagram of the implementation flow of the charging method provided in the embodiment of the present application is shown as follows: Figure 1 As shown, the method uses a charging device, and the method may include the following steps 110 to 140:
[0030] Step 110 : Acquire a current threshold of the charging device, wherein the current threshold is determined based on voting results of respective charging currents corresponding to at least two charging strategies.
[0031] A current threshold is obtained. The current threshold is the ideal current value expected to be output by the charging device. The current threshold is generated by: obtaining a charging strategy on the charging device, wherein the charging device is provided with at least two charging strategies, wherein the charging strategy stipulates that the charging device outputs corresponding currents under different situations / times; obtaining the charging current corresponding to each charging strategy to obtain at least two charging currents; voting is performed on the at least two charging currents. The voting rules are set according to specific conditions, such as selecting the maximum / minimum, and a current value is voted. The charging device outputs according to the current value, and the current value is also used as the current threshold.
[0032] Step 120: Obtain the actual output current of the charging device.
[0033] The actual output current output by the charging device is obtained, where the current is the charging current used to charge the battery.
[0034] Step 130: Compare the actual output current with the current threshold to obtain a comparison result.
[0035] The actual output current is compared with the current threshold to obtain a comparison result between the two.
[0036] Step 140: Adjust the actual output current according to the comparison result.
[0037] According to the comparison result of the actual output current and the current threshold, when the comparison result indicates that there is a certain deviation between the two, it means that the actual output current is not ideal and the accuracy of the output current does not meet the requirements. It may be because other interference factors cause the output current deviation. Therefore, it is necessary to adjust the charging equipment in time to adjust the size of the actual output current so that the actual output current returns to an expected output value.
[0038] When the comparison result indicates that the two are identical or similar, it means that the actual output current is an ideal output value and the accuracy of the current output by the charging device meets the requirements.
[0039] The above-mentioned charging method compares the actual output current with the current threshold to obtain a comparison result, and adjusts the actual output current based on the comparison result, thereby achieving real-time monitoring of the current output by the charging device to prevent it from deviating from the current threshold, thereby ensuring the accuracy of the output current of the charging device and ensuring the safety and efficiency of charging.
[0040] The present application embodiment provides another charging method, such as Figure 2 As shown, the method may include the following steps 210 to 250:
[0041] Step 210: Determine whether the charging device meets the execution condition.
[0042] In an embodiment of the present application, the execution condition includes at least one of being in a constant current charging stage, the charging current being in a stable state, and the target thread not being executed, and the target thread is used to adjust the actual output current of the charging device.
[0043] Before executing the method of this embodiment, it is necessary to determine whether the execution conditions are met. The method will continue to execute only when the execution conditions are met. The execution conditions include:
[0044] The battery is in the constant current charging stage. This application is applied to the constant current charging stage of the battery. When the battery is in the constant current charging stage, the method of this application is triggered to detect the charging current in real time, and when the current deviates, it will be corrected in time.
[0045] The current does not jitter. During the charging process, factors such as charger plugging and unplugging, ESR (equivalent series resistance) pulses, temperature changes, battery voltage changes, charging startup, and constant voltage charging will cause current fluctuations. During the current fluctuation period, errors will occur in the detected current. Therefore, the method of this application will not be executed during the current fluctuation period.
[0046] Current fluctuations can be caused by threads within the electronic device, such as the ESR pulse, which is used to measure the battery's internal resistance. The ESR thread periodically reduces the charging current to 100mA. To avoid interference from the ESR thread, we introduce inter-thread synchronization to prevent conflicts with the ESR thread.
[0047] The present application can pre-specify the thread that causes the current fluctuation, perform synchronization between different threads, delay processing of single-threaded tasks, and decoupling at the software level, so as to avoid conflicts between the method of the present application and the specified thread.
[0048] Current fluctuations may be caused by other factors, such as plugging and unplugging the charger. Plugging and unplugging the charger will cause current fluctuations, so the corresponding delay operation will be triggered after plugging and unplugging the charger. Only after the charging current stabilizes will the method of this application be triggered to perform current comparison and correction.
[0049] Step 220: Obtain the current threshold of the charging device.
[0050] Among them, obtaining the current threshold of the charging device includes: determining a set current based on the voting results of each charging current corresponding to at least two charging strategies, wherein the set current is a set value of the output current of the charging device; and determining the current threshold based on the set current.
[0051] Obtain all charging strategies configured on the charging device, execute each charging strategy, and obtain the charging current of each charging strategy under the current conditions;
[0052] A voting mechanism is used to select a current value from the various charging currents in the charging strategy. This current value is used as the set current output value for the charging device. After the set current is determined, a current threshold is set based on the desired accuracy range. For example, if the charging device's loss is 20mA, the current threshold is set to the set current minus 20mA. In the above embodiment, the required set current is determined based on the charging strategy, and the current threshold is obtained based on the set current. The set current is then associated with the current threshold, so that the current threshold represents the ideal current output value for the charging device.
[0053] In one embodiment of the present application, obtaining the set current includes: obtaining at least two operating parameters of the battery, the at least two operating parameters corresponding to the at least two charging strategies; determining the charging current corresponding to each charging strategy based on the at least two operating parameters and the at least two charging strategies; and selecting the minimum value from each of the charging currents as the set current by voting.
[0054] Obtain all charging strategies configured on the charging device. The charging strategy is associated with at least one operating parameter of the battery. The charging strategy determines the charging current that the charging device needs to output based on the associated parameter. Using the charging strategy to flexibly set the current can improve safety, charging speed, etc.
[0055] In one embodiment of the present application, the charging strategy includes: a first charging strategy, in which the charging current of the charging device is determined based on the temperature of the battery; and a second charging strategy, in which the charging current of the charging device is determined based on the voltage of the battery.
[0056] Obtain various battery operating parameters, such as battery voltage and battery temperature, and calculate the charging current for each charging strategy under the current parameters. For example, the charging strategy corresponding to temperature is T, and the charging strategy corresponding to voltage is V. Assuming the current temperature is 40°C and the voltage is 6V, the charging current for charging strategy T is 700mA based on the parameters, and the charging current for charging strategy V is 650mA.
[0057] The charging current calculated for each charging strategy is obtained and each charging strategy is used as a voter in the voting mechanism. For example, charging strategy T is used as the first voter, charging strategy V is used as the second voter, and the charging current of each strategy is used as the vote. In this embodiment, the voting rule is to select the minimum value as the effective vote value. Because the charging current threshold of the battery varies under different conditions, for safety reasons, it is necessary to take the minimum value of the voters to ensure battery charging safety.
[0058] In the above example, 650mA is selected as the effective voting value and used as the current threshold. This value is also the ideal current output value for the charging device. For example, writing the value to the corresponding register of the charging device will take effect, and the charging device will output the corresponding current according to the set value.
[0059] In an embodiment of the present application, determining the current threshold according to the set current includes: determining a threshold interval according to the set current, and using the threshold interval as the current threshold.
[0060] In order to avoid excessive adjustments, the current threshold is set to a threshold interval, and this interval is used as the current threshold, so that a certain degree of error in the actual output current can be allowed. When the actual output current exceeds this interval, adjustments are made to control the actual output current within a certain error range.
[0061] For example, if the current setting value is -30mA to the current setting value +5mA as the threshold range, and the current setting value is 650mA, then the corresponding range is 620mA-655mA.
[0062] Step 230: Obtain the actual output current of the charging device.
[0063] The actual output current output by the charging device is obtained, where the current is the charging current used to charge the battery.
[0064] Step 240: Compare the actual output current with the current threshold to obtain a comparison result.
[0065] The difference between the actual output current and the current threshold is compared to obtain a comparison result.
[0066] When the current threshold is an interval, the actual output current is compared with the current threshold; when the actual output current is greater than the upper limit of the current threshold, the comparison result indicates that the actual output current is higher than the current threshold; when the actual output current is less than the lower limit of the current threshold, the comparison result indicates that the actual output current is lower than the current threshold.
[0067] When the current threshold is 620 mA-655 mA, the actual output current is compared with the upper boundary 655 mA and / or the lower boundary of the threshold to obtain a comparison result.
[0068] The comparison result includes: the actual output current is within the current threshold, the actual output current is greater than the current threshold, and the actual output current is less than the current threshold.
[0069] For example, the comparison process is to compare the actual output current with the upper and lower boundaries at the same time to obtain a comparison result. When the actual output current is 650mA, 650mA<655mA and 650mA>620mA are obtained. The comparison result is that the actual output current is within the current threshold. This comparison result indicates that the two are the same or similar, the accuracy of the current output by the charging device meets the requirements, and the actual output current is an ideal output value, and no adjustment is required.
[0070] When the actual output current is 680mA, the comparison results show that 680mA>655mA and 680mA>620mA. The comparison result shows that the actual output current is higher than the current threshold, the accuracy of the output current does not meet the requirements, and there are interference factors that cause the output current deviation.
[0071] When the actual output current is 600mA, the comparison results show that 600mA<655mA and 600mA<620mA. The comparison result shows that the actual output current is lower than the current threshold, the accuracy of the output current does not meet the requirements, and there are interference factors that cause the output current deviation.
[0072] Step 250: Adjust the actual output current according to the comparison result.
[0073] When the comparison result indicates that the actual output current is higher or lower than the current threshold, the charging current needs to be adjusted in time to return the charging current to the ideal output range.
[0074] In one embodiment of the present application, adjusting the actual output current according to the comparison result includes:
[0075] According to the comparison result, the set current is adjusted to achieve adjustment of the actual output current.
[0076] The actual output current can be adjusted by adjusting the set current of the charging device. Since the set current is the set value of the output current of the charging device, the actual output current will also change as the set current changes, thereby achieving the effect of adjusting the actual output current.
[0077] Specific adjustment measures include:
[0078] When the comparison result indicates that the actual output current is lower than the current threshold, a first preset value is added to the set current.
[0079] When the comparison result indicates that the actual output current is lower than the current threshold, such as in the above example when the actual output current is 600mA, the set current on the charging device is read as 650mA as mentioned above, and the first preset value is added to this value. The first preset value is a pre-set value, which can be determined based on the required adjustment step. For example, when the adjustment step needs to be controlled to be smaller, the first threshold can be set to 25mA. 25mA is usually the minimum output accuracy of the charging device. Since the set current threshold is the set output value of the charging device, the actual output current increases according to the increase in the set value output. When the set output value increases, the actual output current will also increase.
[0080] In this embodiment, the set value of the output current of the charging device is not fixed. It will be specifically adjusted according to the conditions that affect the output current. It can better cope with the influence of environmental factors such as ambient voltage, control the accuracy of the actual output current, and avoid deviations in the actual output current.
[0081] Furthermore, when the comparison result indicates that the actual output current is lower than the current threshold, a first preset value is added to the set current, including: obtaining the recorded number of adjustments of the set current; when the number of adjustments is less than the preset number, adding the first preset value to the set current; and adding one to the recorded number of adjustments of the set current.
[0082] In one embodiment of the present application, when the actual output current is lower than the current threshold, before adjusting the charging current, the number of adjustments of the set current is obtained. When the number of adjustments is less than the preset number, the first preset value is added to the set current. After the set current is increased, the number of adjustments of the set current is added by one.
[0083] This application does not increase the current setting value indefinitely, because factors affecting charging current are not limited to the charging IC. In this application, the influence of insufficient power supply from the user's power adapter cannot be ruled out. The adjustment count is set to record the number of adjustments. The adjustment count is initially zero. After each adjustment, the adjustment count increases by one. If the adjustment count exceeds the preset number, it means that the charging current is still low after multiple adjustments. In this case, the current will not be adjusted upwards, and it can be assumed that the low current is caused by insufficient power supply from the power adapter.
[0084] The adjustment measure further includes: when the comparison result indicates that the actual output current is higher than the current threshold, reducing the set current by a first preset value.
[0085] When the comparison result indicates that the actual output current is higher than the current threshold, such as when the actual output current is 680 mA as mentioned above, the set current on the charging device is read as 650 mA as mentioned above, and the set value is reduced by the first preset value. Due to the reduction in the set output current of the charging device, the actual output current is also reduced accordingly.
[0086] Furthermore, when the comparison result indicates that the actual output current is higher than the current threshold, the set current is reduced by a first preset value, including: calculating the difference between the actual output current and the current threshold; when the difference is higher than the first threshold, the set current is reduced by a second preset value; when the difference is lower than the first threshold, the set current is reduced by the first preset value.
[0087] Furthermore, when the charging current is too high, the current setting value is adjusted based on the difference between the actual output current and the current threshold. For example, the first preset value is set to 25mA and the second preset value is set to 50mA. When the difference is greater than the first threshold, indicating that the current is too high, the larger difference, i.e., the second preset value, is used to adjust the current setting value to more quickly reduce the charging current to within the standard range, preventing the battery from being charged in an out-of-specification current environment for a long time. When the difference is less than the first threshold, indicating that the current is not too high, the smaller difference, i.e., the first preset value, can be used to adjust the current setting value.
[0088] Compared with the case of low current, there is no limit on the number of adjustments when the current is high. The only principle when the current is high is to reduce the current to the standard range as soon as possible to ensure the safety of battery charging and reduce safety hazards.
[0089] The above-mentioned charging method compares the actual output current with the current threshold to obtain a comparison result, and determines whether there is a deviation relative to the current threshold based on the comparison result. When the current deviates, it will be corrected in time, thereby avoiding the problem of slow charging speed when the current is low due to individual accuracy differences of charging equipment, and avoiding safety hazards caused by high current.
[0090] In some embodiments of the present application, the above method embodiments of the present application can be executed once or repeatedly until an exit condition is met, such as the charging current meets a certain accuracy, or enters other charging stages, etc.
[0091] Extensive testing by the applicant has demonstrated that, after operating the aforementioned embodiments, low-current electronic devices, such as smartwatches, can bring their current back to the standard range. This can shorten charging time by 40-50 minutes, particularly in low-temperature environments, significantly improving the user experience. Furthermore, high-current electronic devices can quickly reduce their current to the standard range under the aforementioned embodiments, improving charging safety.
[0092] It should be understood that, although the various steps in the flow chart of the above-mentioned method embodiment are shown in sequence according to the indication of the arrows, these steps are not necessarily performed in sequence according to the order indicated by the arrows. Unless clearly stated herein, the execution of these steps does not have strict order restrictions, and these steps can be performed in other orders. Moreover, at least a portion of the steps in the above-mentioned flow chart may include a plurality of sub-steps or a plurality of stages, and these sub-steps or stages are not necessarily performed at the same time, but can be performed at different times, and the execution order of these sub-steps or stages is not necessarily performed in sequence, but can be performed in turn or alternately with at least a portion of other steps or sub-steps or stages of other steps.
[0093] Based on the foregoing embodiments, an embodiment of the present application provides a charging device, which includes the modules included and the units included in each module, and can be implemented by a processor; of course, it can also be implemented by a specific logic circuit; in the implementation process, the processor can be a central processing unit (CPU), a microprocessor (MPU), a digital signal processor (DSP) or a field programmable gate array (FPGA), etc.
[0094] Figure 3 A schematic diagram of the structure of the charging device provided in the embodiment of the present application is shown in FIG. Figure 3 As shown, the charging device 300 includes a first acquisition module 310, a second acquisition module 320, a comparison module 330 and an adjustment module 340, wherein:
[0095] A first acquisition module is configured to acquire a current threshold of the charging device, wherein the current threshold is determined based on voting results of at least two charging strategies corresponding to respective charging currents;
[0096] A second acquisition module is used to obtain the actual output current of the charging device;
[0097] a comparison module, configured to compare the actual output current with the current threshold to obtain a comparison result;
[0098] An adjustment module is used to adjust the actual output current according to the comparison result.
[0099] In some embodiments of the present application, the first acquisition module includes:
[0100] a set current acquisition module, configured to determine a set current according to voting results of respective charging currents corresponding to at least two charging strategies, wherein the set current is a set value of the output current of the charging device;
[0101] A current threshold acquisition module, configured to determine the current threshold according to the set current;
[0102] The adjustment module is specifically configured to adjust the set current according to the comparison result, so as to adjust the actual output current.
[0103] In some embodiments of the present application, the set current acquisition module is specifically used to obtain at least two operating parameters of the battery, where the at least two operating parameters correspond to the at least two charging strategies; determine the charging current corresponding to each charging strategy based on the at least two operating parameters and the at least two charging strategies; and select the minimum value from each of the charging currents as the set current by voting.
[0104] In some embodiments of the present application, the adjustment module includes:
[0105] An adding module is configured to add a first preset value to the set current when the comparison result indicates that the actual output current is lower than the current threshold.
[0106] In some embodiments of the present application, the adjustment module includes:
[0107] A reducing module is configured to reduce a first preset value on the set current when the comparison result indicates that the actual output current is higher than the current threshold.
[0108] In some embodiments of the present application, the adding module includes:
[0109] A reading module, configured to obtain the recorded number of adjustments of the set current;
[0110] a first judgment module, configured to add a first preset value to the set current when the number of adjustments is less than a preset number;
[0111] The recording module is used to increase the recorded number of adjustments of the set current by one.
[0112] In some embodiments of the present application, the reduction module includes:
[0113] a calculation module, configured to calculate a difference between the actual output current and the current threshold;
[0114] The second judgment module is used to reduce the set current by a second preset value when the difference is higher than a first threshold; and to reduce the set current by a first preset value when the difference is lower than the first threshold.
[0115] In some embodiments of the present application, the current threshold acquisition module is specifically configured to determine a threshold interval according to the set current, and use the threshold interval as the current threshold.
[0116] The comparison module is specifically used to compare the actual output current with the current threshold; when the actual output current is greater than the upper limit of the current threshold, the comparison result indicates that the actual output current is higher than the current threshold; when the actual output current is less than the lower limit of the current threshold, the comparison result indicates that the actual output current is lower than the current threshold.
[0117] In some embodiments of the present application, the at least two charging strategies include: a first charging strategy, in which the charging current of the charging device is determined based on the temperature of the battery; and a second charging strategy, in which the charging current of the charging device is determined based on the voltage of the battery.
[0118] In some embodiments of the present application, the device further includes:
[0119] The third judgment module is used to determine whether the charging device meets the execution conditions, where the execution conditions include at least one of being in a constant current charging stage, the charging current being in a stable state, and not executing a target thread, and the target thread is used to adjust the actual output current of the charging device.
[0120] The description of the above device embodiment is similar to the description of the above method embodiment and has similar beneficial effects as the method embodiment. For technical details not disclosed in the device embodiment of this application, please refer to the description of the method embodiment of this application for understanding.
[0121] It should be noted that in the embodiments of this application Figure 3 The division of modules in the charging device shown is schematic and is only a logical functional division. In actual implementation, other division methods may be used. In addition, the functional units in the various embodiments of the present application can be integrated into a processing unit, or can exist physically separately, or two or more units can be integrated into a single unit. The above-mentioned integrated units can be implemented in the form of hardware or software functional units. It can also be implemented in the form of a combination of software and hardware.
[0122] It should be noted that, in the embodiment of the present application, if the above method is implemented in the form of a software function module and sold or used as an independent product, it can also be stored in a computer-readable storage medium. Based on this understanding, the technical solution of the embodiment of the present application is essentially or the part that contributes to the relevant technology can be embodied in the form of a software product, and the computer software product is stored in a storage medium, including a number of instructions for enabling an electronic device to execute all or part of the method described in each embodiment of the present application. The aforementioned storage medium includes various media that can store program codes, such as a U disk, a mobile hard disk, a read-only memory (ROM), a magnetic disk or an optical disk. In this way, the embodiment of the present application is not limited to any specific combination of hardware and software.
[0123] An embodiment of the present application provides a computer-readable storage medium having a computer program stored thereon. When the computer program is executed by a processor, the steps of the method provided in the above embodiment are implemented.
[0124] An embodiment of the present application provides a computer program product containing instructions, which, when executed on a computer, enables the computer to execute the steps of the method provided in the above method embodiment.
[0125] Those skilled in the art will understand that Figure 3 The structure shown in the figure is only a block diagram of a part of the structure related to the solution of the present application, and does not constitute a limitation on the computer device to which the solution of the present application is applied. The specific computer device may include more or fewer components than shown in the figure, or combine certain components, or have a different component arrangement.
[0126] In one embodiment, the charging device provided herein can be implemented as a computer program that can be run on a computer device. The computer device's memory can store the various program modules that comprise the sampling device. The computer program, comprised of these modules, causes a processor to execute the steps of the charging method described in this specification in various embodiments of the present application.
[0127] In one embodiment, a chip is provided, wherein the chip is used to implement the steps of any of the above method embodiments.
[0128] It should be noted that the description of the above storage medium and device embodiments is similar to the description of the above method embodiments and has similar beneficial effects as the method embodiments. For technical details not disclosed in the storage medium, storage medium, and device embodiments of this application, please refer to the description of the method embodiments of this application for understanding.
[0129] It should be understood that "one embodiment" or "an embodiment" or "some embodiments" mentioned throughout the specification means that the specific features, structures or characteristics related to the embodiment are included in at least one embodiment of the present application. Therefore, "in one embodiment" or "in an embodiment" or "in some embodiments" appearing throughout the specification do not necessarily refer to the same embodiment. In addition, these specific features, structures or characteristics can be combined in one or more embodiments in any suitable manner. It should be understood that in the various embodiments of the present application, the size of the serial numbers of the above-mentioned processes does not mean the order of execution. The execution order of each process should be determined by its function and internal logic, and should not constitute any limitation on the implementation process of the embodiments of the present application. The above-mentioned serial numbers of the embodiments of the present application are for description only and do not represent the advantages and disadvantages of the embodiments. The above description of the various embodiments tends to emphasize the differences between the various embodiments. The same or similar aspects can be referenced to each other. For the sake of brevity, they will not be repeated here.
[0130] The term "and / or" in this article is only a description of the association relationship between associated objects, indicating that there can be three relationships. For example, object A and / or object B can mean: object A exists alone, object A and object B exist at the same time, and object B exists alone.
[0131] It should be noted that, in this document, the terms "comprises," "includes," or any other variations thereof are intended to encompass non-exclusive inclusion, such that a process, method, article, or apparatus comprising a series of elements includes not only those elements but also other elements not explicitly listed, or elements inherent to such process, method, article, or apparatus. In the absence of further limitations, an element defined by the phrase "comprising a ..." does not exclude the presence of other identical elements in the process, method, article, or apparatus comprising the element.
[0132] In the several embodiments provided in this application, it should be understood that the disclosed devices and methods can be implemented in other ways. The embodiments described above are merely illustrative. For example, the division of the modules is merely a logical function division. In actual implementation, there may be other division methods, such as: multiple modules or components can be combined, or can be integrated into another system, or some features can be ignored or not executed. In addition, the coupling, direct coupling, or communication connection between the components shown or discussed can be through some interfaces, and the indirect coupling or communication connection of devices or modules can be electrical, mechanical or other forms.
[0133] The modules described above as separate components may or may not be physically separated, and the components displayed as modules may or may not be physical modules; they may be located in one place or distributed across multiple network units; some or all of the modules may be selected according to actual needs to achieve the purpose of this embodiment.
[0134] In addition, all functional modules in the embodiments of the present application can be integrated into one processing unit, or each module can be a separate unit, or two or more modules can be integrated into one unit; the above-mentioned integrated modules can be implemented in the form of hardware or in the form of hardware plus software functional units.
[0135] Those skilled in the art will understand that all or part of the steps of implementing the above-mentioned method embodiment can be completed by hardware related to program instructions, and the aforementioned program can be stored in a computer-readable storage medium. When the program is executed, it executes the steps of the above-mentioned method embodiment; and the aforementioned storage medium includes: mobile storage devices, read-only memories (ROM), magnetic disks or optical disks, and other media that can store program codes.
[0136] Alternatively, if the above-mentioned integrated unit of the present application is implemented in the form of a software functional module and sold or used as an independent product, it can also be stored in a computer-readable storage medium. Based on this understanding, the technical solution of the embodiment of the present application, or the part that contributes to the relevant technology, can be embodied in the form of a software product. The computer software product is stored in a storage medium and includes a number of instructions for enabling an electronic device to execute all or part of the methods described in each embodiment of the present application. The aforementioned storage medium includes: various media that can store program codes, such as mobile storage devices, ROMs, magnetic disks or optical disks.
[0137] The methods disclosed in the several method embodiments provided in this application can be arbitrarily combined without conflict to obtain new method embodiments.
[0138] The features disclosed in the several product embodiments provided in this application can be arbitrarily combined without conflict to obtain new product embodiments.
[0139] The features disclosed in the several method or device embodiments provided in this application can be arbitrarily combined without conflict to obtain new method embodiments or device embodiments.
[0140] The above is merely an embodiment of the present application, but the scope of protection of the present application is not limited thereto. Any changes or substitutions that can be easily conceived by a person skilled in the art within the technical scope disclosed in this application should be included in the scope of protection of this application. Therefore, the scope of protection of this application should be based on the scope of protection of the claims.
Claims
1. A charging method, characterized in that: Applied to a charging device, the method includes: Obtaining a current threshold of the charging device, wherein the current threshold is determined based on voting results of respective charging currents corresponding to at least two charging strategies; Obtaining the actual output current of the charging device; Comparing the actual output current with the current threshold to obtain a comparison result; adjusting the actual output current according to the comparison result; The obtaining of the current threshold of the charging device includes: Determining a set current according to voting results of respective charging currents corresponding to at least two charging strategies, wherein the set current is a set value of the output current of the charging device; determining the current threshold according to the set current; The determining the current threshold according to the set current includes: Subtracting the loss of the charging device from the set current to obtain the current threshold, where the current threshold is used to represent the ideal current output value of the charging device; The adjusting the actual output current according to the comparison result includes: According to the comparison result, adjusting the set current to achieve adjustment of the actual output current; When the actual output current is lower than the current threshold, adjusting the set current according to the comparison result includes: Obtaining the recorded number of adjustments of the set current; When the adjustment number is less than the preset number, adding a first preset value to the set current; The recorded number of adjustments of the set current is increased by one.
2. The method according to claim 1, characterized in that The step of determining the set current according to voting results of the respective charging currents corresponding to at least two charging strategies includes: Acquire at least two operating parameters of the battery, where the at least two operating parameters correspond to the at least two charging strategies; determining a charging current corresponding to each charging strategy based on the at least two operating parameters and the at least two charging strategies; A voting method is adopted to select the minimum value from each of the charging currents as the set current.
3. The method according to claim 1, characterized in that The adjusting the set current according to the comparison result includes: When the comparison result indicates that the actual output current is higher than the current threshold, a first preset value is reduced from the set current.
4. The method according to claim 3, characterized in that When the comparison result indicates that the actual output current is higher than the current threshold, reducing the set current by a first preset value includes: Calculating a difference between the actual output current and the current threshold; When the difference is higher than a first threshold, reducing the set current by a second preset value; When the difference is lower than a first threshold, a first preset value is reduced from the set current.
5. The method according to claim 1, wherein The determining the current threshold according to the set current includes: determining a threshold interval according to the set current, and using the threshold interval as the current threshold; The comparing the actual output current with the current threshold to obtain a comparison result includes: comparing the actual output current with the current threshold; When the actual output current is greater than the upper limit of the current threshold, the comparison result indicates that the actual output current is higher than the current threshold; When the actual output current is less than the lower limit of the current threshold, the comparison result indicates that the actual output current is lower than the current threshold.
6. The method according to claim 1, characterized in that The at least two charging strategies include: a first charging strategy, in which the charging current of the charging device is determined based on the temperature of the battery; and a second charging strategy, in which the charging current of the charging device is determined based on the voltage of the battery.
7. The method according to claim 1, characterized in that Before obtaining the actual output current of the charging device, the method further includes: It is determined that the charging device meets an execution condition, where the execution condition includes at least one of being in a constant current charging stage, the charging current being in a stable state, and not executing a target thread, where the target thread is used to adjust an actual output current of the charging device.
8. A charging device, characterized in that: The charging device includes: A first acquisition module is configured to acquire a current threshold of the charging device, wherein the current threshold is determined based on voting results of at least two charging strategies corresponding to respective charging currents; A second acquisition module is used to obtain the actual output current of the charging device; a comparison module, configured to compare the actual output current with the current threshold to obtain a comparison result; an adjustment module, configured to adjust the actual output current according to the comparison result; The first acquisition module is further configured to determine a set current based on voting results of respective charging currents corresponding to at least two charging strategies, wherein the set current is a set value of the output current of the charging device; and determine the current threshold based on the set current; The first acquisition module is further configured to subtract the loss of the charging device from the set current to obtain the current threshold, where the current threshold is used to represent an ideal current output value of the charging device; The adjustment module is further configured to adjust the set current according to the comparison result to achieve adjustment of the actual output current; The adjustment module is further configured to obtain the recorded number of adjustments of the set current when the actual output current is lower than the current threshold; add a first preset value to the set current when the adjustment number is less than a preset number; and increase the recorded number of adjustments of the set current by one.
9. A chip, used to implement the steps of the method according to any one of claims 1 to 7.
Citation Information
Patent Citations
Method and terminal for adjusting charge current through PID
CN106208213A
Charging control method, apparatus and terminal
CN106340925A
Charging current adjusting method and device and electronic equipment
CN114619921A