Charging power adjustment method, device, and storage medium
By dynamically adjusting the charging power, the problem of charging failure when using different models of charging devices together is solved, ensuring compatibility and safety between the charger and the device, and providing a flexible charging solution.
Patent Information
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2025-10-09
- Publication Date
- 2026-04-14
AI Technical Summary
Different models of charging devices have different power consumption and battery capacity due to their design, which may cause charging failure when using the same charger, especially if you forget to bring your dedicated charger.
By introducing a dynamic charging power adjustment mechanism, the charging connection status is monitored in real time, and the charging power is adjusted according to the time interval between power outage and recovery to ensure that the charger output power is within a safe range and avoid overload protection.
It achieves compatibility between different chargers, avoids charging failures, improves user flexibility and convenience, and ensures the safety and stability of the charging process.
Smart Images

Figure CN120896300B_ABST
Abstract
Description
Technical Field
[0001] This application relates to the field of charging technology, and in particular to a charging power regulation method, device, and storage medium. Background Technology
[0002] Currently, most mobile phones, tablets, and laptops come with corresponding chargers. However, due to differences in power consumption, battery capacity, and other factors in their design, the chargers for different models of these devices vary significantly in maximum power output. Each charger is designed specifically for the maximum power requirements of a particular device. If you forget to bring the dedicated charger for the device you're trying to charge, and you still need to charge it, you'll need to use another charger or a generator. Using low-power chargers in combination with other chargers may cause the actual load on the charger to exceed its thermal design maximum power consumption, triggering overload protection and leading to charging failure. Summary of the Invention
[0003] The main objective of this application is to provide a charging power adjustment method, device, and storage medium, which aims to solve the technical problem of charging failure of the device to be charged due to power mismatch when using mixed chargers in the prior art.
[0004] To achieve the above objectives, this application proposes a charging power adjustment method, the charging power adjustment method comprising:
[0005] When a charger is detected to be connected to a device to be charged, the output power of the charger is set to a preset power.
[0006] Monitor the connection status of the charging connection;
[0007] In the event of a detected power outage-recovery action, determine the time interval for automatic power restoration;
[0008] If the time interval is less than a preset duration, the output power is reduced, and the process jumps to the step of monitoring the connection status of the charging connection.
[0009] In one embodiment, the step of reducing the output power if the time interval is less than a preset duration includes:
[0010] Determine the adjustment step size corresponding to the current output power based on the current output power;
[0011] The output power is adjusted down based on the adjustment step size corresponding to the current output power to obtain the adjusted output power.
[0012] In some embodiments, determining the adjustment step size corresponding to the current output power based on the current output power includes:
[0013] Based on the current output power, determine the adjustment coefficient corresponding to the current output power;
[0014] Based on the adjustment coefficient corresponding to the current output power and the current output power, determine the adjustment step size corresponding to the current output power.
[0015] In some embodiments, after monitoring the connection status of the charging connection, the method further includes:
[0016] If it is detected that the charger maintains a charging state for at least the preset duration, it is determined that the preset power does not exceed the maximum power of the charger;
[0017] The current output power is increased until a second target output power is obtained, and the charger is controlled to charge the device to be charged using the second target output power. The second target output power is the maximum power corresponding to the charger maintaining the charging state for at least a first preset time.
[0018] In some embodiments, increasing the current output power until a second target output power is obtained includes:
[0019] Based on the current output power, determine the adjustment step size corresponding to the current output power, and increase the current output power according to the adjustment step size to obtain the adjusted output power;
[0020] The charger is controlled to charge the device to be charged using the adjusted output power until the power failure-recovery action is detected, at which point the increase in the current output power is stopped, and the output power before the increase in the current output power is determined as the second target output power.
[0021] In some embodiments, it also includes:
[0022] With all power supply paths enabled, at least one power supply path is controlled to supply power to the device to be charged according to the priority of each power supply path.
[0023] The power supply path includes a charger power supply path and a battery power supply path. The charger power supply path has a higher priority than the battery power supply path. The charger power supply path connects the charging interface of the device to be charged and the load of the device to be charged, as well as the charging interface of the device to be charged and the battery of the device to be charged. The battery power supply path connects the load of the device to be charged and the battery of the device to be charged.
[0024] In some embodiments, prior to monitoring the connection status of the charging connection, the method further includes:
[0025] Obtain the charging parameter information of the charger. If it is determined that the charger and the device to be charged are not connected for the first time based on the charging parameters of the charger, determine the target historical output power of the charger. The target historical output power is the maximum historical charging power corresponding to the charging state when the charger continuously maintains the charging state for at least the first preset time during the historical charging period.
[0026] The charger is controlled to charge the device to be charged using the target historical output power.
[0027] In some embodiments, controlling the charger to charge the device to be charged using the second target output power includes:
[0028] A charging power adjustment signal is sent to the charger, wherein the charging power adjustment signal carries the second target output power, so as to control the charger to charge the device to be charged based on the second target output power.
[0029] Furthermore, to achieve the above objectives, this application also proposes a charging power adjustment device, which includes:
[0030] An initialization module is used to set the output power of the charger to a preset power when it is detected that the charger is connected to the device to be charged;
[0031] The status monitoring module is used to monitor the connection status of the charging connection;
[0032] The determination module is used to determine the time interval for automatic power restoration when a power outage-recovery action is detected;
[0033] The adjustment module is used to reduce the output power and activate the status monitoring module if the time interval is less than a preset duration.
[0034] In addition, to achieve the above objectives, this application also proposes a charging power adjustment device, the device comprising: a memory, a processor, and a computer program stored in the memory and executable on the processor, the computer program being configured to implement the steps of the charging power adjustment method as described above.
[0035] In addition, to achieve the above objectives, this application also proposes a storage medium, which is a computer-readable storage medium, on which a computer program is stored, and when the computer program is executed by a processor, it implements the steps of the charging power adjustment method described above.
[0036] In addition, to achieve the above objectives, this application also provides a computer program product, which includes a computer program that, when executed by a processor, implements the steps of the charging power adjustment method described above.
[0037] The charging power adjustment method proposed in this application has at least the following technical effects: when a charger is detected to be connected to a device to be charged, the output power of the charger is set to a preset power; the connection status of the charging connection is continuously monitored; when a power outage-recovery action is detected, the time interval for automatic power restoration is determined; if the time interval is less than a preset duration, it indicates that the preset power exceeds the maximum carrying capacity of the charger, leading to instability. The output power is then reduced, and the process jumps to the step of monitoring the connection status of the charging connection, gradually reducing the current output power to avoid charger overload or other safety hazards caused by excessive power, while ensuring smooth charging. This application introduces a dynamic charging power adjustment mechanism to monitor and adjust the charging power in real time, ensuring that the output power can be adjusted regardless of the type of charger used, meeting the needs of the device to be charged without exceeding the charger's capacity. This avoids overload phenomena that may occur from directly using high-power charging, protecting the safety of both the device to be charged and the charger. It also allows users to use readily available chargers in emergencies, rather than strictly relying on specific charger models. This solves the problem of charging failure caused by power mismatch between the charger and the device to be charged in existing technologies, increasing flexibility and convenience, and improving device compatibility and user experience. Attached Figure Description
[0038] The accompanying drawings, which are incorporated in and form part of this specification, illustrate embodiments consistent with this application and, together with the description, serve to explain the principles of this application.
[0039] To more clearly illustrate the technical solutions in the embodiments of this application or the prior art, the drawings used in the description of the embodiments or the prior art will be briefly introduced below. Obviously, for those skilled in the art, other drawings can be obtained based on these drawings without creative effort.
[0040] Figure 1 A schematic flowchart of Embodiment 1 of the charging power adjustment method provided in this application;
[0041] Figure 2 A flowchart illustrating another charging power adjustment method provided in this application;
[0042] Figure 3 A flowchart illustrating another charging power adjustment method provided in this application;
[0043] Figure 4 This is a schematic diagram of the module structure of the charging power adjustment device according to an embodiment of this application;
[0044] Figure 5 This is a schematic diagram of the device structure of the hardware operating environment involved in the charging power adjustment method in the embodiments of this application. Detailed Implementation
[0045] It should be understood that the specific embodiments described herein are merely illustrative of the technical solutions of this application and are not intended to limit this application.
[0046] To better understand the technical solution of this application, a detailed description will be provided below in conjunction with the accompanying drawings and specific implementation methods.
[0047] The main solution of this application embodiment is: when it is detected that the charger is connected to the device to be charged, the output power of the charger is set to a preset power; the connection status of the charging connection is monitored; when a power outage-recovery action is detected, the time interval for automatic power restoration is determined; if the time interval is less than a preset duration, the output power is reduced, and the step of monitoring the connection status of the charging connection is executed.
[0048] In this embodiment, for ease of description, the charging power regulation system will be used as the execution subject in the following description.
[0049] Currently, mobile phones, tablets, and laptops all come with corresponding chargers. However, due to differences in power consumption, battery capacity, and other factors in their design, different models of portable charging devices have significantly different chargers with varying maximum power outputs. Each charger is designed specifically for the maximum power requirements of a particular device. If you forget to bring the dedicated charger for the device you're charging but still need to charge it, you'll need to use other chargers or a generator. When using different low-power chargers, the actual load on the charger may exceed its thermal design maximum power consumption, triggering overload protection and causing charging failure. Therefore, existing technology presents a technical problem where using different chargers leads to charging failure due to power mismatch.
[0050] This application provides a charging power adjustment method. By introducing a dynamic charging power adjustment mechanism, the charging power is monitored and adjusted in real time to ensure that the output power can be adjusted regardless of the type of charger used. This ensures that the power meets the needs of the device being charged without exceeding the charger's capacity, avoiding overload that may occur from directly using high-power charging. This protects the safety of both the device being charged and the charger, and allows users to use any available charger in emergencies instead of strictly relying on a specific charger model. This solves the problem of charging failure caused by power mismatch between the charger and the device being charged in the prior art, increasing the flexibility and convenience of use, and improving device compatibility and user experience.
[0051] It should be noted that the executing entity in this embodiment can be a computing service device with data processing, network communication, and program execution functions, such as a tablet computer, personal computer, or mobile phone, or a charging power regulation system capable of performing the above functions. The following description uses a charging power regulation system as an example to illustrate this embodiment and the subsequent embodiments.
[0052] Based on this, embodiments of this application provide a charging power adjustment method, referring to... Figure 1 , Figure 1 This is a flowchart illustrating the first embodiment of the charging power adjustment method of this application.
[0053] In this embodiment, the charging power adjustment method includes steps 101-104:
[0054] Step 101: When it is detected that the charger is connected to the device to be charged, set the output power of the charger to the preset power.
[0055] Specifically, the preset power is the default charging power value used by the device to be charged in the initial stage. This can be set based on the device's design specifications or the charging parameters from the last successful use; for example, the preset power could be 40W. The connection between the charger and the device to be charged can be detected through electrical signals or communication protocols of the physical interface. For example, detecting a jump in the device's interface voltage from 0V to 5V confirms the connection. The device to be charged can be a portable electronic device such as a smartphone, tablet, or laptop.
[0056] In some embodiments, when a user plugs the charger into the device to be charged, the charging power regulation system built into the device can immediately detect the connection between the charger and the device through electrical signals such as voltage and current changes. Upon confirming a successful connection, charging begins based on a preset power. By immediately starting charging at the preset power, waiting time is reduced. Even if the preset power is later found to be unsuitable, the strategy can be quickly adjusted. The preset power may not be the optimal choice for charging power, but it provides a starting point, making subsequent power adjustments more informed and helping to speed up the charging start process. It also lays the foundation for subsequent precise power adjustments, ensuring the continuity and safety of the charging process as much as possible, even when the specific specifications of the charger are unknown.
[0057] Step 102: Monitor the connection status of the charging connection.
[0058] Specifically, the connection status refers to the quality and stability of the connection between the charger and the device being charged, including states such as normal charging, disconnection, and reconnection (recovery). When the charger is connected to the device, initial monitoring of the connection status is initiated. This can be achieved through communication via the data channel in the charging cable to obtain the current connection status information. Continuous monitoring of parameters such as voltage and current between the charger and the device, as well as any abnormalities (e.g., voltage drops, current fluctuations), is performed. Simultaneously, any power outage-recovery actions are also monitored. For each detected status change (e.g., from normal charging to disconnection and then recovery), relevant timestamps and specific parameters (e.g., voltage and current values before and after disconnection) are recorded. These recorded parameters are used for subsequent analysis to determine if adjustments to the charging strategy are necessary. Real-time monitoring of the charging connection status allows for the timely detection and handling of potential safety hazards, such as overheating and short circuits, preventing damage to the device. Monitoring the connection status helps to dynamically adjust the charging power based on actual conditions, avoiding charging failures or device damage caused by a mismatch between the charger's power and the device's requirements. Upon detecting unstable or abnormal connections, a rapid response can be initiated, such as automatically adjusting the charging power or reminding the user to check the connection, thereby preventing further problems.
[0059] Step 103: If a power outage-recovery action is detected, determine the time interval for automatic power restoration.
[0060] Specifically, a power outage-recovery action is the process of power supply between the charger and the device being interrupted and then restored to normal. During charging, the status of the charging connection is continuously monitored. If a sudden drop in voltage or current to zero (i.e., power outage) is detected, followed by a return to normal (i.e., power restoration), this can be identified as a power outage-recovery action. When a power outage-recovery action is detected, the exact time interval from the occurrence of the power outage to the restoration of power is recorded. Power outage-recovery actions can be caused by various factors, such as the activation of the charger's overload protection mechanism or unstable physical connections. By determining the time interval for automatic power restoration, it is possible to judge whether the currently used charging power is suitable for the current charger and device combination, and make corresponding adjustments accordingly.
[0061] Step 104: If the time interval is less than the preset duration, reduce the output power and proceed to the step of monitoring the connection status of the charging connection.
[0062] In some embodiments, if the time interval is less than a preset duration, the output power is reduced, and the step of monitoring the connection status of the charging connection is executed until a first target output power is obtained. The charger is then controlled to charge the device to be charged using the first target output power. The first target output power is the maximum power corresponding to the charger maintaining the charging state for at least a first preset time.
[0063] Specifically, the preset duration is a pre-defined time window used to monitor whether the charger has experienced a state change within the preset duration, i.e., whether the protection mechanism is triggered due to overload. The typical time range for the charger to automatically restore power after overload protection is 180-220ms. In this application, the preset duration can be 200ms. A 200ms time window can accurately distinguish between overload and human-caused plugging / unplugging. The charger's maximum power is the maximum output power that the charger can provide. Exceeding the maximum power may lead to unstable charging, overheating, or even damage to the charger. The first target output power is the maximum charging power that, after at least one reduction, is determined to meet the charging needs of the device being charged and can be stably supported by the charger over a long period. For example, if the charger continuously outputs 50W charging power within the "first preset time" (e.g., 2 minutes), with a voltage fluctuation rate ≤5% and a temperature rise rate ≤1℃ / s, and the charger outputs 51W charging power for a duration shorter than the first preset time (e.g., 2 minutes), then 50W can be determined as the first target output power. The first preset time is a time window for verifying the stability of the charger (e.g., 2 minutes). It can be used to eliminate instantaneous fluctuations and ensure that the target output power is the charger's sustainable capability under real load scenarios, rather than an instantaneous peak.
[0064] In some embodiments, the charger's status is continuously monitored during charging, and this status may include charging status, disconnection status, etc. If a power outage-recovery action is detected, and the automatic power restoration time interval is less than a preset duration, it indicates that the charger cannot handle the current preset power, causing the automatic disconnection protection mechanism to activate and attempt to reconnect within the preset duration. This confirms that the preset power exceeds the charger's maximum power. For example, if the preset power is 40W, but the charger's maximum power is 20W, it may cause the charger to disconnect due to overload and automatically recover within 200ms. By monitoring the charger's disconnection and reconnection status within a short period, a power mismatch between the currently used charger and the device being charged can be effectively identified. When it is determined that the preset power exceeds the charger's maximum power, measures can be taken to adjust the charging strategy, such as reducing the charging power, to avoid damage to the charger and device. This helps improve the compatibility between the charger and the device being charged and reduces safety hazards caused by power mismatch.
[0065] Further, the output power is reduced, and the process jumps to the step of monitoring the connection status of the charging connection until a first target output power is obtained. The charger is then controlled to continuously charge the device to be charged using the first target output power, which is the maximum power corresponding to the charger maintaining a charging state for at least a first preset time. Reducing the current output power can be done gradually, with each reduction followed by a reassessment of whether the adjusted charging power is suitable for the charger. This process is iterative, continuously reducing the output power and confirming whether it is the maximum power corresponding to the charger maintaining a charging state for the first preset time until the first target output power is found. Once the maximum power value that can maintain a stable charging state within the "first preset time" is obtained, this power is confirmed as the first target output power, and the device to be charged is continuously charged using the first target output power, while the charging status is continuously monitored to ensure normal operation. Reducing the current output power until the first target output power is obtained not only effectively solves the problem of power mismatch between the charger and the device, but also enhances the adaptability and reliability of the device to be charged, avoids the risk of charger or device damage due to power mismatch, and allows chargers of different specifications to be effectively utilized, improving the compatibility between the device to be charged and the charger.
[0066] Based on the charging power adjustment method provided in this application, when a charger is detected to be connected to a device to be charged, the charger's output power is set to a preset power; the connection status of the charging connection is continuously monitored; when a power outage-recovery action is detected, the time interval for automatic power restoration is determined. If the time interval is less than a preset duration, it indicates that the preset power exceeds the charger's maximum carrying capacity, leading to instability. The output power is then reduced, and the step of monitoring the connection status of the charging connection is executed, gradually decreasing the current output power to avoid charger overload or other safety hazards caused by excessive power, while ensuring smooth charging. This application introduces a dynamic charging power adjustment mechanism to monitor and adjust the charging power in real time, ensuring that the output power can be adjusted regardless of the type of charger used. This meets the needs of the device to be charged without exceeding the charger's capacity, avoiding overload that may occur from directly using high-power charging, protecting the safety of both the device to be charged and the charger. It also allows users to use readily available chargers in emergencies, rather than strictly relying on specific charger models. This solves the problem of charging failure caused by power mismatch between the charger and the device to be charged in existing technologies, increasing flexibility and convenience, and improving device compatibility and user experience.
[0067] In some embodiments, if the time interval is less than a preset duration, the output power is reduced, including:
[0068] Based on the current output power, determine the adjustment step size corresponding to the current output power, and reduce the current output power according to the adjustment step size to obtain the adjusted output power.
[0069] Furthermore, the charger is controlled to charge the device under test using the adjusted output power until it is detected that the charger maintains the charging state for at least a first preset time, at which point the reduction of the current output power is stopped, and the current output power is determined as the first target output power.
[0070] Specifically, the adjustment step size mentioned above refers to the specific value adjusted each time the charging power is adjusted. The adjustment step size determines the speed and accuracy of the charging power adjustment. The first preset time is a time window (e.g., 2 seconds) to verify whether the charging power is stable, ensuring that the power value does not trigger overload protection under continuous load.
[0071] As an example, if the time interval is less than a preset duration, it can be determined that the preset power exceeds the charger's maximum power. The currently used charging power value, i.e., the current output power, is then obtained, which will serve as the basis for subsequent adjustments. Based on the current output power, an appropriate adjustment step size is determined, resulting in the adjustment step size corresponding to the current output power. This adjustment step size can be a fixed value (e.g., decreasing by 5W each time) or a percentage based on the current output power (e.g., decreasing by 10% each time). The current output power is then reduced based on the determined adjustment step size, resulting in a new charging power value, i.e., the adjusted output power. For example, if the current output power is 60W and the adjustment step size is 10% of the current output power, the adjusted output power obtained after the first adjustment will be 54W. After obtaining the adjusted output power, the device to be charged will be charged again using this adjusted output power. During the charging process, the charger's status is continuously monitored, especially whether the charger can stably maintain the current charging state within a set first preset time (i.e., without overheating, voltage instability, or other abnormalities). If the charger can stably provide power to the device to be charged without any abnormalities within a first preset time, the current charging power is considered appropriate. The charging power is stopped from being further reduced until the charger is detected to maintain a charging state for at least the first preset time. The current output power, which allows for stable operation within the first preset time, is then determined as the first target output power. This first target output power ensures effective charging of the device to be charged without overloading the charger or causing other problems.
[0072] By dynamically adjusting the charging power and finding the optimal charging power, i.e. the first target output power, not only can the risk of charger damage caused by excessive power be avoided, but it can also effectively charge the device even when using non-original or different specification chargers. This greatly improves the user's flexibility and safety in different scenarios, reduces the possibility of charging failure or device damage due to power mismatch between the charger and the device, and ensures a safe and efficient charging experience under various conditions.
[0073] In some embodiments, determining the adjustment step size corresponding to the current output power based on the current output power includes:
[0074] Determine the adjustment coefficient corresponding to the current output power based on the current output power;
[0075] Based on the adjustment coefficient corresponding to the current output power and the current output power, determine the adjustment step size corresponding to the current output power.
[0076] Specifically, the current output power is the actual charging power currently in use. The adjustment coefficient is a proportional factor determined based on the current output power, used to calculate the adjustment step size, which reflects the different adjustment strategies to be adopted under different charging power levels. The adjustment step size is the specific increase or decrease in value each time the charging power is adjusted, calculated based on the adjustment coefficient and the current output power.
[0077] As an example, based on the current output power, a corresponding adjustment coefficient can be found or calculated. This coefficient can be a pre-set set of values, with different adjustment coefficients corresponding to different charging power ranges; alternatively, it can be dynamically calculated using a preset algorithm. Determining the adjustment coefficient corresponding to the current output power provides a basis for the next adjustment, ensuring that the adjustment range is neither too large nor too small. After determining the adjustment coefficient corresponding to the current output power, the adjustment step size corresponding to the current output power is calculated. The formula for calculating the adjustment step size corresponding to the current output power is as follows: Adjustment step size corresponding to the current output power = Current output power × Adjustment coefficient corresponding to the current output power.
[0078] In some embodiments, after monitoring the connection status of the charging connection, the method further includes:
[0079] If the charger is found to maintain the charging state for at least a preset time, it is determined that the preset power does not exceed the charger's maximum power.
[0080] The current output power is increased until a second target output power is obtained, and the charger is controlled to charge the device to be charged using the second target output power. The second target output power is the maximum power corresponding to the charger maintaining the charging state for at least a first preset time.
[0081] Specifically, the preset duration is a pre-defined time window (which can be 200ms) used to verify stability. This window confirms whether the charger can continuously output the current power. If the charger can stably maintain its charging state within the preset duration, the current charging power is considered safe and does not exceed the charger's maximum power. Maintaining the charging state for at least the preset duration can mean that within that duration, charging voltage fluctuations are <±5%, current fluctuations are <10%, and there are no protocol errors. The second target output power is the maximum charging power determined after gradual power increases, which can both meet the charging needs of the device and be stably provided by the charger. The first preset time is a time window for verifying charger stability (e.g., 2 minutes). This can be used to eliminate instantaneous fluctuations and ensure that the target output power represents the charger's sustainable capability under real-world load conditions, rather than an instantaneous peak value.
[0082] As an example, during the charging of a device at a preset power, the charger's status is continuously monitored. If the charger can maintain a stable charging state for at least a preset duration, it can be inferred that the current preset power does not exceed the charger's maximum power limit, and further increasing the charging power can be considered to accelerate the charging speed. Once it is confirmed that the preset power does not exceed the charger's maximum power and is deemed safe, the charging power can be gradually increased until a maximum power value is found that allows for rapid charging without triggering overload (maintaining the charging state for at least a first preset time), i.e., the second target output power. After each increase in charging power, it is determined whether the charger can maintain a stable charging state for at least the first preset time. If it can, the charging power continues to increase; if not, the increase in charging power is stopped, and the charging power before the current increase is recorded as the second target output power, which is then used for continuous and stable charging. This step not only improves charging efficiency but also ensures the safety and stability of the entire charging process. Without exceeding the charger's maximum power, the charging power is dynamically increased to maximize charging efficiency without exceeding the charger's maximum power. This avoids equipment damage or safety hazards caused by excessive power and maximizes charging speed within a safe range.
[0083] Furthermore, if the charger remains disconnected for more than a first preset time, it can be considered that the charger has been intentionally disconnected. (Reference) Figure 2 , Figure 2 A flowchart illustrating another charging power adjustment method is provided for power compatibility detection between the charger and the device to be charged. Specifically, it includes: starting from the detection that the charger is connected to the device, determining whether the charger is disconnected within a first preset time. If the charger is not disconnected within the first preset time and maintains a charging state within the first preset time, it is considered that the preset power does not exceed the charger's maximum power. If the charger is disconnected within the first preset time, the charger's state change is further checked. If the charger changes from a disconnected state to a charging state within a preset duration, it is considered that the preset power exceeds the charger's maximum power. If the charger remains disconnected for more than the preset duration, it can be considered that the charger has been intentionally disconnected.
[0084] In some embodiments, increasing the current output power until a second target output power is obtained includes:
[0085] Based on the current output power, determine the adjustment step size corresponding to the current output power, and increase the current output power according to the adjustment step size to obtain the adjusted output power;
[0086] The charger is controlled to charge the device under test using the adjusted output power until a power outage-recovery action is detected. At this point, the current output power is stopped from being increased, and the charging power before the current output power was increased is determined as the second target output power.
[0087] Specifically, the current output power is the charging power currently in use. The adjustment step size is the incremental value of each power increase, positively correlated with the current output power. The adjusted output power is the new charging power value after increasing the adjustment step size. The preset duration is a pre-set time window; if a power outage-recovery action is detected, and the automatic recovery time interval is less than the preset duration, it is considered that the current output power has exceeded the charger's maximum power capacity. The second target output power is the maximum charging power finally determined after a series of adjustments, which can both meet the device's charging needs and be stably provided by the charger.
[0088] As an example, assuming the preset power does not exceed the charger's maximum power, the current actual charging power value is obtained, i.e., the current output power. This provides a benchmark for subsequent adjustments, ensuring that any adjustments are based on the current actual situation. Based on the current output power, the corresponding adjustment step size is calculated, and the current output power is increased according to this step size to obtain a new charging power value, i.e., the adjusted output power. The device to be charged is charged using the adjusted output power. During charging, the charger's status is continuously monitored to detect any power outage-recovery actions. If a power outage-recovery action occurs, and the automatic power restoration time interval is less than a preset duration, further increases in charging power are stopped, and the target output power is confirmed. This target output power is the charging power before the last increase, i.e., the power value before the last adjustment before the charger can stably maintain the charging state. For example, if the charger maintains charging for at least a first preset time when the charging power is 34.56W, and a power outage-recovery action is detected when the charging power reaches 41.47W, then further increasing the charging power will stop, and the charging power before the current output power (41.47W) was increased (34.56W) will be determined as the second target output power. When the charger can stably maintain the charging state, it indicates that the previous adjustments have reached an ideal state that is close to but does not exceed the charger's capability limit.
[0089] By gradually increasing the charging power until a target output power that ensures both safety and maximizes charging efficiency is found, the compatibility between chargers of different specifications and devices can be improved. This avoids undercharging problems caused by excessive charger power, protects the health of the battery of the device being charged, and enables a highly efficient and stable charging experience even when using non-original chargers, reducing problems encountered by users due to charger incompatibility.
[0090] In some embodiments, the method further includes: when all power supply paths are turned on, controlling at least one power supply path to supply power to the device to be charged according to the priority of each power supply path.
[0091] The power supply path includes a charger power supply path and a battery power supply path. The charger power supply path has a higher priority than the battery power supply path. The charger power supply path connects the charging interface of the device to be charged to the load of the device to be charged, as well as the charging interface of the device to be charged to the battery of the device to be charged. The battery power supply path connects the load of the device to be charged and the battery of the device to be charged.
[0092] Specifically, the charger power supply path connects the charging interface to the load of the device to be charged and the battery of the device to be charged, and is used to power the device to be charged and / or charge the battery of the device to be charged when an external power source is available. The battery power supply path directly connects the battery of the device to be charged and the load of the device to be charged, and provides power when no external power source is available.
[0093] As an example, when a charger is detected connected to the device to be charged, all possible power supply paths are activated simultaneously, including but not limited to the charger power supply path and the battery power supply path. With all power supply paths active, the primary power source is determined based on path priority. The charger power supply path has higher priority than the battery power supply path. When an external charger is detected, the charger power supply path is used first to power the device to be charged. This path not only provides power to the device's load but also charges the battery. If no external charger is detected or the charger cannot provide sufficient power, the system switches to the battery power supply path, where the battery directly powers the device's load. This priority-based power supply path management strategy improves compatibility. By intelligently selecting the optimal power supply path, a stable power supply can be ensured even when using non-original or third-party chargers, reducing the risk of charging failures due to incompatible charger specifications. Furthermore, prioritizing external power over battery power reduces battery cycle count and extends battery life.
[0094] For example, to help understand the implementation flow of the charging power regulation method obtained by combining the above embodiments, refer to Figure 3 , Figure 3A flowchart illustrating another charging power adjustment method is provided, specifically including: Detecting the connection between the charger and the device to be charged, activating the battery power supply path, with the battery of the device to be charged acting as a backup power source to maintain basic operation of the device and ensure its normal operation during charging. Charging the device to be charged using a preset power. If the preset power exceeds the charger's maximum power, the output power is reduced, delayed by a first preset time, and a check is performed to see if the charger is disconnected. If the charger is disconnected, the process returns to the step of reducing the output power and re-performs the compatibility test between the charger and the device to be charged; if the charger is not disconnected, the target output power is obtained, and the battery power supply path is turned off. If the preset power does not exceed the charger's maximum power, the output power is increased, delayed by a first preset time, and a check is performed to see if the charger is disconnected. If the charger is not disconnected, the process returns to the step of increasing the output power and re-performs the compatibility test between the charger and the device to be charged; if the charger is disconnected, the target output power is obtained, the battery power supply path is turned off, and the process ends.
[0095] In some embodiments, before monitoring the connection status of the charging connection, the method further includes:
[0096] Obtain the charging parameter information of the charger. If it is determined that the charger and the device to be charged are not connected for the first time based on the charging parameters of the charger, determine the target historical output power of the charger. The target historical output power is the maximum historical charging power corresponding to the charging state when the charger continuously maintains the charging state for at least a first preset time during the historical charging period.
[0097] The charger is controlled to charge the device to be charged using the target historical output power.
[0098] Specifically, the charger's charging parameters may include, but are not limited to, voltage, current, and unique identifiers, reflecting the charger's current capabilities and status. "Non-first connection" refers to a previous connection between the charger and the device being charged, maintaining stable charging, and the historical charging data between the two devices being stored in the charging power regulation system. The target historical output power is determined based on historical charging data and represents the maximum historical charging power that the charger can continuously and stably provide for at least a "first preset time".
[0099] As an example, when a charger is connected to a device, its current charging parameters are acquired and compared with historical charging parameters to determine if the charger and device are being connected for the first time. This helps the charging power regulation system decide whether historical charging data can be used to optimize the current charging process. If it is determined that the charger and device have not been connected for the first time (i.e., they have previously been connected and maintained stable charging for at least a first preset time period), historical charging data is analyzed to identify the maximum historical charging power that the charger could consistently and stably provide for at least the first preset time period during that period. This power value is then determined as the target historical output power. The selected target historical output power is the maximum power value that has proven to be safe, effective, and stable for charging the device in past use, without overloading the charger or affecting battery health. The device is charged using the target historical output power, while the charging status is continuously monitored to ensure the safety and stability of the charging process. By utilizing existing historical data, the most suitable charging power, i.e., the target historical output power, can be selected, reducing the risks caused by improper power settings. This helps ensure efficient and safe charging when using non-original chargers, enhances compatibility between different chargers and devices, and improves overall user satisfaction.
[0100] In some embodiments, controlling the charger to charge the device to be charged using a second target output power includes:
[0101] A charging power adjustment signal is sent to the charger, wherein the charging power adjustment signal carries a second target output power, so as to control the charger to charge the device to be charged based on the second target output power.
[0102] Specifically, the charging power adjustment signal is a communication command that contains information about the second target output power to be adjusted, and is used to instruct the charger to charge at the second target output power.
[0103] As an example, after obtaining the second target output power, a charging power adjustment signal containing the second target output power can be generated according to the communication protocol between the device to be charged and the charger. This ensures that the charger can correctly interpret and execute the corresponding power adjustment. The charging power adjustment signal can be sent to the charger via the data line between the device and the charger. The charger receives the charging power adjustment signal and extracts the "second target output power" information from it. Based on the received second target output power, the control circuit inside the charger will make corresponding adjustments. By changing its output voltage and current, it can match the new charging power requirement and achieve charging of the device to be charged at the second target output power.
[0104] It should be noted that the above examples are only for understanding this application and do not constitute a limitation on the charging power adjustment method of this application. Any simple modifications based on this technical concept are within the protection scope of this application.
[0105] This application also provides a charging power adjustment device, please refer to... Figure 4 The charging power regulation device includes:
[0106] The initialization module 401 is used to set the output power of the charger to a preset power when it is detected that the charger is connected to the device to be charged;
[0107] Status monitoring module 402 is used to monitor the connection status of the charging connection;
[0108] The determination module 403 is used to determine the time interval for automatic power restoration when a power outage-recovery action is detected;
[0109] The adjustment module 404 is used to reduce the output power and call the status monitoring module if the time interval is less than the preset duration.
[0110] The charging power adjustment device provided in this application, employing the charging power adjustment method in the above embodiments, can solve the technical problem in the prior art where charging failure occurs due to power mismatch when using mixed chargers. Compared with the prior art, the beneficial effects of the charging power adjustment device provided in this application are the same as those of the charging power adjustment method provided in the above embodiments, and other technical features in the charging power adjustment device are the same as those disclosed in the methods of the above embodiments, and will not be repeated here.
[0111] This application provides a charging power adjustment device, which includes: at least one processor; and a memory communicatively connected to the at least one processor; wherein the memory stores instructions executable by the at least one processor, and the instructions are executed by the at least one processor to enable the at least one processor to perform the charging power adjustment method in the above embodiment 1.
[0112] The following is for reference. Figure 5 The diagram illustrates a structural schematic suitable for implementing the charging power adjustment device in the embodiments of this application. The charging power adjustment device in the embodiments of this application may include, but is not limited to, devices to be charged such as laptops, digital broadcast receivers, tablets, portable media players (PMPs), in-vehicle terminals, etc., as well as fixed terminals such as digital TVs, desktop computers, etc. Figure 5 The charging power adjustment device shown is merely an example and should not impose any limitations on the functionality and scope of use of the embodiments of this application.
[0113] like Figure 5 As shown, the charging power regulation device may include a processing unit 1001 (e.g., a central processing unit, a graphics processing unit, etc.), which can perform various appropriate actions and processes according to a program stored in read-only memory (ROM) 1002 or a program loaded from storage device 1003 into random access memory (RAM) 1004. The random access memory 1004 also stores various programs and data required for the operation of the charging power regulation device. The processing unit 1001, ROM 1002, and RAM 1004 are interconnected via a bus 1005. An input / output (I / O) interface 1006 is also connected to the bus. Typically, the following systems can be connected to the input / output interface 1006: input devices 1007 including, for example, a touchscreen, touchpad, keyboard, mouse, image sensor, microphone, accelerometer, gyroscope, etc.; output devices 1008 including, for example, a liquid crystal display (LCD), speaker, vibrator, etc.; storage devices 1003 including, for example, magnetic tape, hard disk, etc.; and communication devices 1009. Communication device 1009 allows the charging power regulating device to communicate wirelessly or wiredly with other devices to exchange data. Although a charging power regulating device with various systems is shown in the figure, it should be understood that it is not required to implement or possess all the systems shown. More or fewer systems can be implemented alternatively.
[0114] Specifically, according to the embodiments disclosed in this application, the processes described above with reference to the flowcharts can be implemented as computer software programs. For example, embodiments disclosed in this application include a computer program product comprising a computer program carried on a computer-readable medium, the computer program containing program code for performing the methods shown in the flowcharts. In such embodiments, the computer program can be downloaded and installed from a network via a communication device, or installed from storage device 1003, or installed from read-only memory 1002. When the computer program is executed by processing device 1001, it performs the functions defined in the methods of the embodiments disclosed in this application.
[0115] The charging power adjustment device provided in this application, employing the charging power adjustment method in the above embodiments, can solve the technical problem in the prior art where charging failure occurs due to power mismatch when using mixed chargers. Compared with the prior art, the beneficial effects of the charging power adjustment device provided in this application are the same as those of the charging power adjustment method provided in the above embodiments, and other technical features of this charging power adjustment device are the same as those disclosed in the previous embodiment method, and will not be repeated here.
[0116] It should be understood that the various parts disclosed in this application can be implemented using hardware, software, firmware, or a combination thereof. In the description of the above embodiments, specific features, structures, materials, or characteristics can be combined in any suitable manner in one or more embodiments or examples.
[0117] The above are merely specific embodiments of this application, but the scope of protection of this application is not limited thereto. Any variations or substitutions that can be easily conceived by those skilled in the art within the scope of the technology disclosed in this application should be included within the scope of protection of this application. Therefore, the scope of protection of this application should be determined by the scope of the claims.
[0118] This application provides a computer-readable storage medium having computer-readable program instructions (i.e., a computer program) stored thereon, the computer-readable program instructions being used to execute the charging power adjustment method in the above embodiments.
[0119] The computer-readable storage medium provided in this application may be, for example, a USB flash drive, but is not limited to, electrical, magnetic, optical, electromagnetic, infrared, or semiconductor systems, devices, or any combination thereof. More specific examples of computer-readable storage media may include, but are not limited to: electrical connections having one or more wires, portable computer disks, hard disks, random access memory (RAM), read-only memory (ROM), erasable programmable read-only memory (EPROM), optical fibers, portable compact disk read-only memory (CD-ROM), optical storage devices, magnetic storage devices, or any suitable combination thereof. In this embodiment, the computer-readable storage medium may be any tangible medium containing or storing a program that can be used by or in conjunction with an instruction execution system, system, or device. The program code contained on the computer-readable storage medium may be transmitted using any suitable medium, including but not limited to: wires, optical cables, radio frequency (RF), etc., or any suitable combination thereof.
[0120] The aforementioned computer-readable storage medium may be included in the charging power regulating device; or it may exist independently and not assembled into the charging power regulating device.
[0121] The aforementioned computer-readable storage medium carries one or more programs that, when executed by the charging power regulating device, cause the charging power regulating device to: set the output power of the charger to a preset power when it detects that the charger is connected to the device to be charged; monitor the connection status of the charging connection; determine the time interval for automatic power restoration when a power outage-recovery action is detected; and if the time interval is less than a preset duration, reduce the output power and jump to the step of monitoring the connection status of the charging connection.
[0122] Computer program code for performing the operations of this application can be written in one or more programming languages or a combination thereof, including object-oriented programming languages such as Java, Smalltalk, and C++, and conventional procedural programming languages such as the "C" language or similar programming languages. The program code can be executed entirely on the user's computer, partially on the user's computer, as a standalone software package, partially on the user's computer and partially on a remote computer, or entirely on a remote computer or server. In cases involving remote computers, the remote computer can be connected to the user's computer via any type of network—including a Local Area Network (LAN) or a Wide Area Network (WAN)—or can be connected to an external computer (e.g., via the Internet using an Internet service provider).
[0123] The flowcharts and block diagrams in the accompanying drawings illustrate the architecture, functionality, and operation of possible implementations of systems, methods, and computer program products according to various embodiments of this application. In this regard, each block in a flowchart or block diagram may represent a module, segment, or portion of code containing one or more executable instructions for implementing a specified logical function. It should also be noted that in some alternative implementations, the functions indicated in the blocks may occur in a different order than those indicated in the drawings. For example, two consecutively indicated blocks may actually be executed substantially in parallel, and they may sometimes be executed in reverse order, depending on the functions involved. It should also be noted that each block in the block diagrams and / or flowcharts, and combinations of blocks in the block diagrams and / or flowcharts, can be implemented using a dedicated hardware-based system that performs the specified function or operation, or using a combination of dedicated hardware and computer instructions.
[0124] The modules described in the embodiments of this application can be implemented in software or hardware. The names of the modules do not necessarily limit the functionality of the unit itself.
[0125] The readable storage medium provided in this application is a computer-readable storage medium that stores computer-readable program instructions (i.e., a computer program) for executing the above-described charging power adjustment method. This solves the technical problem in the prior art where charging failure occurs due to power mismatch when using mixed chargers. Compared with the prior art, the beneficial effects of the computer-readable storage medium provided in this application are the same as those of the charging power adjustment method provided in the above embodiments, and will not be repeated here.
[0126] This application also provides a computer program product, including a computer program that, when executed by a processor, implements the steps of the charging power adjustment method described above.
[0127] The computer program product provided in this application can solve the technical problem in the prior art where charging of the device to be charged fails due to power mismatch when using mixed chargers. Compared with the prior art, the beneficial effects of the computer program product provided in this application are the same as the beneficial effects of the charging power adjustment method provided in the above embodiments, and will not be repeated here.
[0128] The above are only some embodiments of this application and do not limit the patent scope of this application. All equivalent structural transformations made under the technical concept of this application and using the contents of the specification and drawings of this application, or direct / indirect applications in other related technical fields, are included in the patent protection scope of this application.
Claims
1. A method for adjusting charging power, characterized in that, The charging power adjustment method includes: When a charger is detected to be connected to a device to be charged, the output power of the charger is set to a preset power. Monitor the connection status of the charging connection; In the event of a detected power outage-recovery action, determine the time interval for automatic power restoration; If the time interval is less than the preset duration, the output power is reduced, and the step of monitoring the connection status of the charging connection is executed until the first target output power is obtained. The charger is then controlled to continuously charge the device to be charged using the first target output power. The first target output power is the maximum power corresponding to the charger maintaining the charging state for at least the first preset time. Wherein, the step of reducing the output power if the time interval is less than a preset duration includes: Determine the adjustment coefficient corresponding to the current output power based on the current output power; Based on the adjustment coefficient corresponding to the current output power and the current output power, determine the adjustment step size corresponding to the current output power; Based on the adjustment step size corresponding to the current output power, the output power is reduced to obtain the adjusted output power; After monitoring the connection status of the charging connection, the method further includes: If it is detected that the charger maintains a charging state for at least the preset duration, it is determined that the preset power does not exceed the maximum power of the charger; Based on the current output power, determine the adjustment step size corresponding to the current output power, and increase the current output power according to the adjustment step size to obtain the adjusted output power; The charger is controlled to charge the device to be charged using the adjusted output power until the power outage-recovery action is detected. The current output power is stopped from being increased, and the output power before the current output power is increased is determined as the second target output power. The charger is then controlled to charge the device to be charged using the second target output power. The second target output power is the maximum power corresponding to the charger maintaining the charging state for at least a first preset time.
2. The charging power adjustment method as described in claim 1, characterized in that, Also includes: With all power supply paths enabled, at least one power supply path is controlled to supply power to the device to be charged according to the priority of each power supply path. The power supply path includes a charger power supply path and a battery power supply path. The charger power supply path has a higher priority than the battery power supply path. The charger power supply path connects the charging interface of the device to be charged and the load of the device to be charged, as well as the charging interface of the device to be charged and the battery of the device to be charged. The battery power supply path connects the load of the device to be charged and the battery of the device to be charged.
3. The charging power adjustment method as described in claim 1, characterized in that, Before monitoring the connection status of the charging connection, the method further includes: Obtain the charging parameter information of the charger. If it is determined that the charger and the device to be charged are not connected for the first time based on the charging parameters of the charger, determine the target historical output power of the charger. The target historical output power is the maximum historical charging power corresponding to the charging state when the charger continuously maintains a charging state for at least a first preset time during the historical charging period. The charger is controlled to charge the device to be charged using the target historical output power.
4. The charging power adjustment method as described in claim 1, characterized in that, The control of the charger to charge the device to be charged using the second target output power includes: A charging power adjustment signal is sent to the charger, wherein the charging power adjustment signal carries the second target output power, so as to control the charger to charge the device to be charged based on the second target output power.
5. A charging power regulation device, characterized in that, The device includes: a memory, a processor, and a computer program stored in the memory and executable on the processor, the computer program being configured to implement the steps of the charging power regulation method as described in any one of claims 1 to 4.
6. A storage medium, characterized in that, The storage medium is a computer-readable storage medium, and a computer program is stored on the storage medium. When the computer program is executed by a processor, it implements the steps of the charging power adjustment method as described in any one of claims 1 to 4.
Citation Information
Patent Citations
Charging adaptation module and charging method thereof, electronic equipment and storage medium
CN119864905A