Charging power self-adaptive control method, device, equipment, storage medium and product
Patent Information
- Application Number
- CN202611343292.8
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2026-08-31
- Publication Date
- 2026-10-30
AI Technical Summary
[0005]本申请提供一种充电功率自适应控制方法、装置、设备、存储介质及产品,用以解决现有充电控制方法在面对不同协议类型的充电器时,缺乏统一的自适应边界搜寻框架,导致控制逻辑复杂,无法在未知物理条件下实现一致的智能充电体验的技术问题
[0038]本申请提供的充电功率自适应控制方法、装置、设备、存储介质及产品,通过在充电设备向待充电设备输出初始安全电流时确定初始电压值,并在初始安全电流基础上逐次增加负载电流、获取对应电压值形成多组离散数据点,且使电流增加步长与相邻电压变化相关,能够基于待充电设备在当前充电器和线缆条件下的实际电压响应对临界电流值进行拟合预测;进而根据临界电流值确定待充电设备的充电功率,实现对充电功率的自适应、稳定控制,在避免设备端电压接近或跌破工作阈值的同时提升充电效率,并降低不同协议场景下控制逻辑的复杂度。
Smart Images

Figure CN123019200A_ABST
Abstract
Description
Technical Field
[0001] This application relates to the field of charging control, and in particular to a method, apparatus, device, storage medium and product for adaptive charging power control. Background Technology
[0002] In everyday use of consumer electronics, users generally rely on chargers and charging cables to power their devices. However, charging scenarios are highly uncertain: users may use chargers and cables from different brands, specifications, or even third parties, and these accessories vary significantly in parameters such as output capacity, cable internal resistance, and manufacturing processes. Some chargers are nominally rated for 2A output current, but in reality, manufacturing defects or excessively long cables may cause a significant drop in voltage at the end. Furthermore, the diversity of charging protocols further increases the complexity of charging systems.
[0003] In existing technologies, charging control methods typically rely on preset port type rules or protocol interaction probing, but these methods cannot dynamically adapt to actual physical conditions. When a user connects a high-power charger with a long cable, the cable's internal resistance may pull the voltage at the end below the device's undervoltage threshold, causing charging interruption. Furthermore, when the charger supports protocol adjustment, existing probing strategies may repeatedly bottom out and retreat due to line loss, resulting in low charging efficiency or even damage to the device's hardware.
[0004] Therefore, existing charging control methods lack a unified adaptive boundary search framework when dealing with chargers of different protocol types, resulting in complex control logic and an inability to achieve a consistent smart charging experience under unknown physical conditions. Summary of the Invention
[0005] This application provides a charging power adaptive control method, apparatus, device, storage medium, and product to solve the technical problem that existing charging control methods lack a unified adaptive boundary search framework when facing chargers of different protocol types, resulting in complex control logic and an inability to achieve a consistent intelligent charging experience under unknown physical conditions.
[0006] In a first aspect, this application provides a charging power adaptive control method, comprising:
[0007] When the charging device outputs an initial safe current to the device to be charged, the initial voltage value corresponding to the device to be charged is determined;
[0008] Based on the initial safe current, the load current is gradually increased, and after each increase in load current, the voltage value of the device to be charged is measured to form several sets of discrete data points. The discrete data points include the load current of the device to be charged and the voltage value corresponding to each load current. Each voltage value in the discrete data points is less than or equal to the initial voltage value, and the step size of each increase in load current is related to the difference between the two nearest adjacent voltage values.
[0009] The critical current value is predicted by fitting multiple sets of discrete data points. The discrete data points include abnormal endpoints and safe endpoints. The abnormal endpoint is the abnormal voltage and abnormal current value of the device to be charged when the voltage value of the device to be charged is first lower than the undervoltage threshold. The safe endpoint is the sampling point before the abnormal endpoint.
[0010] Charge the device to be charged based on the critical current value.
[0011] In one possible embodiment, the load current is increased sequentially, including:
[0012] Based on the voltage value of the device to be charged, obtain the voltage change rate of the device to be charged;
[0013] When the voltage change rate is less than the preset voltage change rate threshold, the load current is gradually increased in the first step.
[0014] When the voltage change rate is greater than or equal to the preset voltage change rate threshold, the load current is increased step by step with a second step size, where the first step size is greater than the second step size.
[0015] In one possible embodiment, the critical current value is predicted by fitting multiple sets of discrete data points, including:
[0016] Obtain the midpoint of the current search space as the initial sampling point; the current search space is from the safe endpoint to the abnormal endpoint.
[0017] Based on the initial sampling points, the current search space is narrowed using an interpolation approximation method to predict the critical current value.
[0018] In one possible embodiment, an interpolation approximation method is used to narrow the current search space and predict the critical current value, including:
[0019] Based on the initial sampling point, safe endpoint and abnormal endpoint, the fitted current of the device to be charged is obtained. The fitted current is used to characterize the current value corresponding to the undervoltage threshold when the voltage value of the device to be charged is equal to the voltage value of the undervoltage threshold.
[0020] Adjust the load current of the device to be charged to the fitted current, and obtain the fitted voltage corresponding to the fitted current;
[0021] Based on the comparison between the fitted voltage and the undervoltage threshold, the current search space is updated until the width of the current search space is less than the preset width threshold. The current value corresponding to the safe endpoint of the current search space is then determined to be the critical current value.
[0022] In one possible embodiment, the method further includes, prior to the successive increase of the load current:
[0023] Acquire historical critical current data corresponding to different types of devices to be charged and cable combinations, and store the historical critical current data;
[0024] The critical current value is predicted based on historical critical current data.
[0025] In one possible embodiment, the method further includes:
[0026] When the charging device supports multiple voltage levels, the charging power of each voltage level is calculated for each voltage level of the charging device. The charging power of each voltage level is determined according to the critical current value corresponding to each voltage level.
[0027] Based on the charging power of each voltage level, the voltage level corresponding to the highest charging power value is determined as the target voltage level, and the device to be charged is charged according to the target voltage level.
[0028] Secondly, this application provides a charging power adaptive control device, comprising:
[0029] The initial voltage value determination module is used to determine the initial voltage value of the device to be charged when the charging device outputs an initial safe current to the device to be charged.
[0030] The discrete data point acquisition module is used to gradually increase the load current based on the initial safe current, and measure the voltage value of the device to be charged after each increase in load current, forming several sets of discrete data points. The discrete data points include the load current of the device to be charged and the voltage value corresponding to each load current. Each voltage value in the discrete data points is less than or equal to the initial voltage value, and the step size of each increase in load current is related to the difference between the two nearest adjacent voltage values.
[0031] The critical current prediction module is used to fit multiple sets of discrete data points to predict the critical current value. The discrete data points include abnormal endpoints and safe endpoints. The abnormal endpoint is the abnormal voltage and abnormal current value of the device to be charged when the voltage value of the device to be charged is first lower than the undervoltage threshold. The safe endpoint is the sampling point before the abnormal endpoint.
[0032] The charging execution module is used to charge the device to be charged according to the critical current value.
[0033] Thirdly, this application provides an electronic device, including: a processor and a memory communicatively connected to the processor;
[0034] The memory stores the instructions that the computer executes;
[0035] The processor executes computer-executable instructions stored in memory to implement any of the methods of the first aspect.
[0036] Fourthly, this application provides a computer-readable storage medium storing computer-executable instructions, which, when executed by a processor, are used to implement the method of any one of the first aspects.
[0037] Fifthly, this application provides a computer program product, including a computer program that, when executed by a processor, implements the method of any one of the first aspects.
[0038] The adaptive charging power control method, device, equipment, storage medium, and product provided in this application determine the initial voltage value when the charging device outputs an initial safe current to the device to be charged, and successively increases the load current based on the initial safe current to obtain the corresponding voltage value to form multiple sets of discrete data points. Furthermore, the current increase step size is related to the adjacent voltage change, which enables fitting and prediction of the critical current value based on the actual voltage response of the device to be charged under the current charger and cable conditions. Then, the charging power of the device to be charged is determined according to the critical current value, realizing adaptive and stable control of the charging power. This improves charging efficiency while avoiding the device voltage from approaching or falling below the working threshold, and reduces the complexity of control logic under different protocol scenarios. Attached Figure Description
[0039] 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.
[0040] Figure 1 A flowchart illustrating a charging power adaptive control method provided in an embodiment of this application;
[0041] Figure 2 A flowchart illustrating an adaptive charging power control method based on interpolation approximation provided in an embodiment of this application;
[0042] Figure 3 This is a schematic diagram of the structure of a charging power adaptive control device provided in an embodiment of this application;
[0043] Figure 4 This is a schematic diagram of the structure of an electronic device provided in an embodiment of this application.
[0044] The accompanying drawings illustrate specific embodiments of this application, which will be described in more detail below. These drawings and descriptions are not intended to limit the scope of the concept in any way, but rather to illustrate the concept of this application to those skilled in the art through reference to particular embodiments. Detailed Implementation
[0045] Exemplary embodiments will now be described in detail, examples of which are illustrated in the accompanying drawings. When the following description relates to the drawings, unless otherwise indicated, the same numbers in different drawings represent the same or similar elements. The embodiments described in the following exemplary embodiments do not represent all embodiments consistent with this application. Rather, they are merely examples of apparatuses and methods consistent with some aspects of this application as detailed in any of the foregoing embodiments.
[0046] It should be noted that the user information (including but not limited to user device information, user personal information, etc.) and data (including but not limited to data used for analysis, data stored, data displayed, etc.) involved in this application are all information and data authorized by the user or fully authorized by all parties. Furthermore, the collection, storage, use, processing, transmission, provision, disclosure, and application of the relevant data all comply with the relevant laws, regulations, and standards of the relevant countries and regions, have taken necessary confidentiality measures, do not violate public order and good morals, and provide corresponding operation access points for users to choose to authorize or refuse.
[0047] Furthermore, the technical solution involved in this application, which involves big data analysis of user information (including but not limited to personal biometrics, identity data, consumption data, asset data, electronic terminal operation data, etc.) and the use of artificial intelligence technology for automated decision-making, and makes decisions that have a significant impact on personal rights based on the results of automated decision-making, provides users with corresponding operation entry points for users to choose to agree to or reject the results of automated decision-making; if the user chooses to reject, the process will proceed to the expert decision-making process.
[0048] It should be noted that the charging power adaptive control method, device, equipment, storage medium and product provided in this application can be used in the field of charging control, or in any field other than charging control. The application field of the charging power adaptive control method, device, equipment, storage medium and product in this application is not limited.
[0049] Charging control technology for consumer electronics involves the power supply coordination between the charging device, cables, and the device being charged, and is widely used in the daily charging process of terminals such as mobile phones, tablets, and laptops. Related systems typically include the output terminal of the charging device, connecting cables, and a charging management unit in the device being charged. After the device is connected to an external power source, it detects and adjusts the input current and the device's terminal voltage.
[0050] Existing charging control methods typically preset a current limit based on the charging port type, or gradually increase the output capacity through protocol interaction to determine the available charging power. The basic principle is to apply the appropriate current according to the port type or negotiation result after the connection is established, and then adjust it based on feedback during the charging process.
[0051] The above methods rely on preset rules or protocol-returned information, which is difficult to reflect the actual physical conditions such as the charger's output capacity, cable voltage drop, and changes in connection status. When the load current increases, the voltage at the device end may drop rapidly and approach the minimum operating threshold, but the control end continues to apply load according to the existing rules, which can easily lead to problems such as backoff lag, excessive number of attempts, and coarse adjustment granularity.
[0052] With frequent changes in charger, cable, and device combinations, this type of control logic requires separate processing flows designed for different power supply types, resulting in insufficient system uniformity. Consequently, charging power struggles to consistently approach the available upper limit, increasing the risk of charging interruptions and impacting both user experience and device safety.
[0053] Based on the aforementioned technical issues, the measured voltage response of the device to be charged is used as the judgment criterion. Starting from the voltage starting point corresponding to the initial safe current, voltage data is continuously collected as the load current increases, which can reflect the true carrying capacity of the external power supply link in discrete data points. The step size of each current increase is related to the nearest neighbor voltage change; the approach speeds up when the voltage change is gradual, and shrinks when the voltage change is sensitive.
[0054] After obtaining multiple sets of discrete data points, the data points are fitted and the critical current value is predicted, so that the charging control converges around the minimum operating voltage boundary of the device. In this application, the charging device, cable, and device to be charged still constitute the original charging system architecture. The control basis has shifted from port rules and protocol capabilities to actual measured data at the device end, thereby improving the adaptability, stability, and uniformity of charging power control.
[0055] The technical solution of this application and how the technical solution of this application solves the above-mentioned technical problems are described in detail below with specific embodiments. These specific embodiments can be combined with each other, and the same or similar concepts or processes may not be described again in some embodiments. The embodiments of this application will now be described with reference to the accompanying drawings.
[0056] Figure 1 This is a flowchart illustrating a charging power adaptive control method provided in an embodiment of this application, as shown below. Figure 1 As shown, the method includes:
[0057] S101: When the charging device outputs an initial safe current to the device to be charged, determine the initial voltage value corresponding to the device to be charged.
[0058] The charging device outputs current and provides different voltage levels to the device to be charged. The device to be charged receives the current from the charging device and feeds back the corresponding voltage value. The initial safe current serves as the low current starting point for the charging start phase, and the initial voltage value represents the voltage reference value corresponding to the device to be charged under this initial safe current. In this application, the main body executing this method can be located in the charging management unit inside the device to be charged, or in the control circuit of the charging device, or it can be completed collaboratively by the device to be charged and the charging device. At least current regulation capability and device-side voltage acquisition capability are required. In specific implementation, after the charging connection is established, the charging device first operates in the controlled output mode at the current voltage level, limiting the output current to a pre-set initial safe current. After receiving this current, the device to be charged acquires the device-side voltage value through a device-side sampling node. This sampling node can be located after the charging interface, before the power path switch, or at the input detection terminal of the charging management chip, so that the acquired device-side voltage value can characterize the actual device-side voltage after the combined effects of the charger, cable, and connection contact state. To ensure the validity of the reference point, a stable waiting time is maintained after the initial safe current is output. The waiting time can be realized by the charging management unit counting according to the sampling period. For example, after continuously collecting multiple sampling points, when the fluctuation of adjacent sampling values falls within the preset range, the current average value is determined as the initial voltage value. In another implementation, the filtered voltage measurement result can be directly read as the initial voltage value after a fixed time has elapsed.
[0059] In one possible embodiment, the initial safe current value is related to the input capability and safe operating boundary of the device to be charged, and can be set to a lower current value that ensures the device terminal voltage is higher than the minimum operating voltage threshold. For example, the device to be charged may have a pre-stored minimum operating voltage threshold. Before this step begins, this threshold is read, and then the initial safe current is applied at the current voltage level. If the initial voltage value is lower than the threshold, it indicates that the current connection conditions do not meet the requirements for subsequent testing. In this case, the load can be stopped and the protective current maintained, or the charging conditions can be re-identified. If the initial voltage value is not lower than the minimum operating voltage threshold, the initial voltage value and the initial safe current are stored as the first reference data point for subsequent successive increases in load current and fitting predictions. The initial voltage value here is not only a single measurement result, but can also be a stable value after low-pass filtering, moving average, or median filtering to suppress the influence of connection transients and sampling noise on subsequent judgments. Based on the above analysis, this step establishes a baseline correspondence between current and device terminal voltage at low-stress operating points. This allows subsequent control to operate independently of preset rules for port types, starting from the actual physical response of the current charging link, thus providing a unified starting point for subsequent data acquisition and critical current prediction. It should be understood that the above example is merely illustrative and not limiting.
[0060] S102: Based on the initial safe current, the load current is gradually increased, and after each increase in load current, the voltage value of the device to be charged is measured to form several sets of discrete data points.
[0061] In this embodiment of the application, the discrete data points include the load current of the device to be charged and the voltage value corresponding to each load current. Each voltage value in the discrete data points is less than or equal to the initial voltage value, and the step size of each increase in load current is related to the difference between the two nearest adjacent voltage values.
[0062] The load current is used to gradually increase and drive the device under charge to different operating points during the charging process. The voltage value reflects the device terminal voltage response under different load currents. Discrete data points consist of current and voltage values collected after multiple current increases. The step size controls the increment of the load current increase each time. In this application, after obtaining the first reference data point in S101, the control unit adjusts the output current of the charging device or the equivalent load on the input side of the device under charge in an incremental manner, so that the charging link sequentially enters multiple different current operating points. After each current adjustment, a short period of stabilization is maintained before the current device terminal voltage value is collected again, and the current load current and the voltage value are combined to form a new set of discrete data points. To ensure that the collected data is within the effective range for subsequent fitting, the control unit compares the current voltage value with the initial voltage value after each acquisition, and only retains data points that meet the condition of not exceeding the initial voltage value as safe discrete data points; if the voltage value exceeds the initial voltage value after a certain increase, this point can be recorded separately as a reference point, but is not included in the safe discrete data point set.
[0063] In this step, the step size is related to the difference between the two most recent adjacent voltage values, meaning that the current increase is not fixed but dynamically adjusted based on the voltage responses collected most recently. In practice, the step size for subsequent load current increases can be adjusted according to the difference between the two most recent adjacent voltage values, adapting the stepping process to the current voltage changes. Alternatively, if a fixed rule is not used, the step size can be set based on the trend of the difference between the two most recent adjacent voltage values; the essence remains the same: the step size is still related to the difference between the two most recent adjacent voltage values.
[0064] In one possible embodiment, the discrete data points in this step include at least an initial reference point and two or more subsequent incremental current sampling points to meet the basic data volume requirements for subsequent fitting calculations. Each set of discrete data points can be stored in a buffer in chronological order, and the data format includes the sampling sequence number, load current value, device-side voltage value, and the step size used in this iteration. The control unit can also perform consistency checks on the sampled values. For example, if a voltage sampled value deviates from the previous or subsequent points by more than a preset range, it is marked as an abnormal point and resampled to prevent transient contact jitter from causing deviations in the fitting results. Based on the above analysis, this step continuously establishes current-voltage discrete response points around the measured voltage at the device end and uses a dynamic step size related to voltage changes to advance the trial process, so that the data points form a distribution suitable for subsequent fitting within different response intervals, thereby balancing trial speed and boundary resolution. The actual output capability of the charging device, cable voltage drop, and changes in connection status will all be directly reflected in these discrete data points. It should be understood that the above example is only for demonstration and is not limiting.
[0065] S103: The critical current value is predicted by fitting multiple sets of discrete data points.
[0066] In this embodiment of the application, discrete data points include abnormal endpoints and safe endpoints. The abnormal endpoint is the abnormal voltage and abnormal current value of the device to be charged when the voltage value of the device to be charged is first lower than the undervoltage threshold. The safe endpoint is the sampling point before the abnormal endpoint.
[0067] The critical current value represents the current boundary value that satisfies the operating voltage boundary conditions of the device to be charged. It is obtained by fitting multiple sets of discrete data points. In this application, the fitting object is the correspondence between the load current and the device terminal voltage. The fitting result is used to predict the load current value corresponding to the device terminal voltage reaching the preset voltage boundary conditions. In specific implementation, an appropriate fitting method can be adopted according to the changing trend of discrete data points to obtain the response relationship between the load current and the device terminal voltage, and the critical current value can be predicted accordingly.
[0068] Based on the above analysis, this step, by fitting and predicting the measured discrete data points, allows the critical current value to be derived from the actual voltage response at the device end, directly reflecting the load-bearing boundary jointly determined by the current charging equipment, cable, and connection status. Expressed as a formula, the critical current value satisfies the solution of the fitting function V=f(I) when V reaches the preset voltage boundary condition, where V is the voltage at the device end, I is the load current, and f(I) is the response function determined by the discrete data points. This relationship transforms discrete sampling points into a calculable continuous boundary, thus enabling the location of a current value closer to the true upper limit even with limited test points. It should be understood that the above example is merely illustrative and not limiting.
[0069] S104: Charge the device to be charged according to the critical current value.
[0070] In this application, after the control unit obtains the critical current value in S103, it determines the charging power of the device to be charged based on the critical current value.
[0071] In one example, the final lockout operating current is calculated based on a preset safety margin factor k (preferably ranging from 0.88 to 0.95, but not limited in this application). : In the formula, This is the critical current value. This is the operating current. This is a safety margin factor. The operating current for charging the device to be charged is set to... It maintains constant current charging or uses this current as the upper limit for subsequent charging stages to achieve adaptive locking of maximum safe power.
[0072] Based on the above analysis, this step converts the predicted critical current value into an executable power control quantity, so that the final charging control is directly adjusted around the device terminal voltage boundary, rather than roughly pulling the load according to the preset port capacity.
[0073] In one implementation scenario, an adaptive charging power control method based on interpolation approximation is presented. Its core idea is to employ a two-stage architecture of "dynamic step-based rapid approximation + interpolation iterative precise convergence." First, in the exploratory current stepping stage, the collected discrete voltage-current data points are used as interpolation anchors. The step size of coarse adjustment and fine-tuning is dynamically switched based on the voltage change rate, rapidly approximating the minimum operating voltage threshold while avoiding current overshoot. After the threshold is first reached, the search interval is gradually narrowed between the final safe point and the first abnormal point through a combination of interpolation prediction and binary iterative analysis. Ultimately, the critical current value that satisfies the voltage constraint is precisely locked, thus determining the maximum safe charging power that the unknown charging system can provide. This method uses the measured voltage-current response at the device end as the sole criterion, without relying on port type presets or the nominal capabilities reported by the charger protocol. The same control logic applies to both non-programmable fixed-level ports and programmable protocol ports, achieving cross-protocol unified adaptive power boundary search and locking.
[0074] Figure 2 A flowchart illustrating an adaptive charging power control method based on interpolation approximation provided in this application is shown below. Figure 2 As shown, the adaptive charging power control method based on interpolation approximation includes the following steps:
[0075] Step S1: Establish a safe starting point by controlling the charging load to start from the initially preset safe current. Start drawing current, and after the circuit stabilizes, collect the initial voltage value at the device terminal. , will data points ( , This is recorded as the first safety anchor point. The selection of this safety current value should ensure that, under any unknown cable and charger combination, the device terminal voltage is well above the undervoltage protection threshold. This provides ample safety space for subsequent steps.
[0076] Step S2: Step loading and real-time data recording, with a preset minimum initial step size. With a preset current step size Gradually increase the load current After each current increase, wait for a preset stabilization delay, then collect and record the current current value. With the corresponding device terminal voltage value This forms a series of discrete voltage-current data points. , ).
[0077] After each data acquisition, the measured current voltage will be... The lowest permissible operating voltage threshold for the device is the undervoltage threshold. Perform real-time comparisons:
[0078] ①If The system determines that the current working point is a normal point, updates the record of the last normal point, and continues to step. The step current value will change according to the voltage change.
[0079] (1) When When the threshold (e.g., 0.1) is reached, the voltage change is considered slow, and the current step size is set. Specifically, after exiting this step and entering step (2), it will continue to execute in step (2) until entering step (2), and will not return to step (1). ,in, The maximum current value is specified for each charger type; for example, the maximum current for an SDP charger is 500mA, and the maximum current for a DCP charger is 1.5A. This maximum current value is the standard in the protocol specification. This method speeds up the current adjustment step size, thereby accelerating the current adjustment process.
[0080] (2) When When the voltage begins to change, it indicates that the step size needs to be reduced; otherwise, abnormalities may occur. The step size at this point is:
[0081]
[0082] The step size is then used to approximate the undervoltage threshold. To achieve this, a three-point quadratic Lagrange interpolation function is constructed using the first three acquisition points, employing a three-point interpolation method. A smooth and accurate step size is sought to quickly approximate the result, thereby accelerating the convergence speed. This mode aims to approximate... With the goal of achieving smooth and precise step size control by fitting the real VI curve using three points, the convergence speed is accelerated.
[0083] ②If If the current working point is determined to be an abnormal point, the stepping is stopped immediately and the process proceeds to step S3.
[0084] For non-programmable fixed-level ports (SDP, CDP, DCP, etc.), the above-mentioned "increasing load current" is achieved by gradually increasing the load current drawn from VBUS through the charging circuit on the device side; for programmable protocol ports (USB, PDP, PPS, etc.), it is achieved by requesting the charger to increase the output current or voltage through protocol interaction. Regardless of the port type, step S2 uses the actual measured voltage on the device side as the unified judgment basis, without distinguishing between port protocol types.
[0085] Step S3: Based on the bisection initial value and multi-point interpolation iteration, the critical current is accurately solved, and the last normal point recorded in step S2 is extracted. With the current anomaly These serve as the safe endpoint and abnormal endpoint of the search interval, respectively, with the initial search interval being... .
[0086] For example, the iteration adopts a strategy of initial binary sampling followed by three-point interpolation: the first iteration obtains intermediate sampling points through binary search to construct a three-point sample set; subsequent iterations use three-point quadratic interpolation to fit the VI characteristics and solve for the critical current prediction point, gradually narrowing the interval until the accuracy requirements are met. The steps are as follows:
[0087] S3.1 The estimated voltage is equal to the minimum operating voltage threshold. The corresponding current value :
[0088] The estimated current is calculated in two scenarios: ① First iteration (only two endpoints, no intermediate sampling points), the midpoint of the current interval is taken as the estimated current using the bisection method to ensure that the initial point falls in the middle of the interval: .
[0089] ② Non-first iteration (assuming three valid sampling points already exist (at least one safe point and one outlier)) (Multi-point interpolation can also be used; this paper takes three-point interpolation as an example). This paper adopts... , , Three points were used as interpolation points;
[0090] By fitting the VI characteristic curve using second-order Lagrange interpolation, the inverse voltage is exactly... The corresponding current value The calculation formula is:
[0091]
[0092] The first round uses a bisection method to find the midpoint, avoiding initial value deviation in nonlinear scenarios for pure linear interpolation and ensuring that the first sampling falls in a reasonable position within the interval. The subsequent three-point quadratic interpolation is more in line with the nonlinear voltage drop characteristics of the power supply link than the original linear interpolation, resulting in faster convergence speed and higher final accuracy. The two ends of the interval are always kept to be "one ampere and one eccentric", and all interpolation calculations are interpolation operations to avoid error amplification caused by extrapolation.
[0093] S3.2 Adjust the load current to After the circuit reaches a steady state, the actual voltage at the device end is collected. .
[0094] S3.3 will and Comparison: ① If Then the current point is a safe point, using Replace the original secure endpoint Update the search range; ② If If the current point is an outlier, then use... Replace the original exception endpoint Update the search range.
[0095] S3.4 Repeat steps S3.1 to S3.3 until the search interval width is reached. Less than the preset convergence threshold (For example, 0.05A), the iteration terminates. The safe endpoint current value at this point is taken as the final critical current value. .
[0096] Interpolation prediction is used to provide a fast convergence direction for binary search. Each iteration can significantly narrow the interval. Compared with fixed step size trial or single interpolation estimation, it has the advantages of fast convergence speed and high positioning accuracy.
[0097] Step S4: Safety margin setting and operating point locking. Calculate the final locked operating current based on the preset safety margin coefficient k (preferred range 0.88–0.95). : Set the operating current of the charging system to It maintains constant current charging or uses this current as the upper limit for subsequent charging stages to achieve adaptive locking of maximum safe power.
[0098] In some possible embodiments, step S5 may also be included: global optimization of multiple voltage levels. When the charger supports multiple fixed voltage levels (such as 5V, 9V, 12V, etc.), steps S1 to S4 above are executed for each voltage level to obtain the maximum safe current and corresponding power for each level. Finally, the locked power values of all levels are compared, and the voltage level with the largest actual available total power is automatically selected for charging to achieve globally optimal power matching.
[0099] In some possible embodiments, step S6 may also be included: bottom-out prediction interpolation. To further avoid actually triggering undervoltage protection during the current probing process, during the stepping process of step S2, at least three recently acquired voltage-current data points can be used in real time for quadratic polynomial fitting, curve slope change rate analysis, or extrapolation prediction based on multiple data points. When the fitted curve predicts that the voltage will drop below the limit at the next step point... At that time, the stepping is terminated early, and the predicted curve is used to compare with V= The intersection point is used as the critical current value to achieve a safety boundary prediction without actually hitting the bottom, thereby completing the accurate solution of the critical current without triggering the undervoltage protection, and further protecting the equipment hardware from undervoltage impact.
[0100] The adaptive charging power control method provided in this embodiment establishes an initial safety reference point, constructs discrete data points corresponding to the measured voltage response at the device end, and fits the discrete data points to predict the critical current value. This allows the charging device to adapt to the actual power supply capacity of different charger, cable, and device combinations without changing the existing charging system architecture, using a unified control logic. Based on the above analysis, this application provides an adaptive charging power control method, including: determining the initial voltage value corresponding to the device being charged when the charging device outputs an initial safe current to the device being charged; gradually increasing the load current based on the initial safe current, and obtaining the voltage value corresponding to the device being charged after each increase in load current, forming several sets of discrete data points, where each voltage value in the discrete data points is greater than or equal to the initial voltage value, and the step size of each increase in load current is related to the difference between the two nearest adjacent voltage values; fitting multiple sets of discrete data points to predict the critical current value; and charging the device being charged according to the critical current value. In this application, by using the measured voltage at the device end as the control basis and predicting the boundary current, the target output current can be adjusted according to the actual carrying capacity of the current power supply link. The trial granularity and boundary positioning accuracy in the charging control process are uniformly constrained, and the charging process operates stably around the device end voltage boundary.
[0101] In one possible implementation, the load current is increased sequentially, including: calculating the voltage change rate of the device to be charged based on the voltage value of the device to be charged, wherein the voltage change rate is the ratio between the difference between two adjacent voltage values and the corresponding current increment; if the voltage change rate is less than a preset voltage change rate threshold, the load current is increased sequentially using a first step length; if the voltage change rate is greater than or equal to the preset voltage change rate threshold, the load current is increased sequentially using a second step length, wherein the first step length is greater than the second step length.
[0102] In practical implementation, after outputting an initial safe current, the charging device acquires the terminal voltage of the device to be charged according to a set sampling period, compares the current voltage value with the previously acquired voltage value, and records the corresponding voltage increment to calculate the voltage change rate. The calculated voltage change rate is compared with a preset voltage change rate threshold. If the voltage change rate is small, it indicates that the terminal voltage of the device to be charged responds smoothly to the current change, and the control unit can continue to increase the load current using the first step length, allowing the subsequent loading process to approach the tolerable range more quickly. When the voltage change rate reaches or exceeds the threshold, it indicates that the voltage drop trend has become sensitive, and the control unit switches to the second step length, continuing to adjust the load current with a smaller current increment, and simultaneously updates the sampled voltage and current increment data. The first and second step lengths can be pre-configured by the controller's internal parameters and correspond to different current increment levels. The controller outputs a target current command accordingly, matching the current increase process with the real-time voltage response of the device to be charged. In practical applications, other models of the control unit can also be used; this application does not limit this.
[0103] By employing the above method, the load current can rapidly increase in larger steps within the voltage response range, while transitioning to smaller steps for fine adjustment near the critical range. This allows the current loading process to better align with the actual load-bearing capacity of the device being charged. Consequently, in scenarios with a fast voltage response, the current increment can be reduced promptly, while in scenarios with a slow voltage response, loading efficiency can be improved. This results in more continuous and stable data for subsequent critical current prediction and target current determination.
[0104] In one possible implementation, the critical current value is predicted by fitting multiple sets of discrete data points, including: obtaining the midpoint of the current search space as the initial sampling point; the current search space is from the safe endpoint to the abnormal endpoint; based on the initial sampling point, the current search space is narrowed by interpolation approximation method to predict the critical current value.
[0105] In practical implementation, when the predicted critical current value is obtained, the current search space only includes the safe endpoint and the abnormal endpoint. That is, in the case of the first iteration, the bisection method is used to take the midpoint of the current interval as the estimated current, ensuring that the initial sampling point falls in the middle of the interval: In the formula, The current value at the initial sampling point. The current value at the safe endpoint. This represents the current value at the abnormal endpoint.
[0106] The current search space extends from the safe endpoint to the abnormal endpoint, and the midpoint current value between them is calculated. This midpoint current value is used as the initial sampling point and applied to the charging link. The voltage feedback generated by the device to be charged under this current is re-acquired and written into the discrete data set. The control unit then estimates the current boundary corresponding to the threshold using linear interpolation or piecewise interpolation based on the relative relationship between the new sampling point and the existing safe and abnormal points, and updates the current search space accordingly. If the updated search interval still does not converge, the midpoint of the new search interval is taken as the new sampling point, and the corresponding voltage value is sampled. The interpolation approximation is repeated until the critical current value that meets the preset operating voltage threshold is predicted. The selection of the midpoint current value ensures that the first sampling point of the critical region is located in the middle position between the safe point and the abnormal point, which can accelerate boundary convergence while maintaining voltage monitoring stability.
[0107] This method introduces midpoint sampling when the voltage of the device to be charged is close to the lower operating limit, and performs interpolation iterations based on discrete data points. This continuously narrows the search interval from a coarse-grained range to the critical boundary, ultimately obtaining a critical current value that matches the actual load state of the device. Therefore, the correspondence between the predicted critical current and the device voltage threshold is clearer, facilitating subsequent determination of charging power and setting of the target current.
[0108] Based on the aforementioned embodiments, an interpolation approximation method is further used to narrow the current search space and predict the critical current value. This includes: fitting the current of the device to be charged based on the initial sampling point, the safe endpoint, and the abnormal endpoint. The fitted current is used to characterize the current value corresponding to the voltage value of the device to be charged being equal to the undervoltage threshold; adjusting the load current of the device to be charged to the fitted current and obtaining the fitted voltage corresponding to the fitted current; updating the current search space based on the comparison result between the fitted voltage and the undervoltage threshold until the width of the current search space is less than a preset width threshold, and determining the current value corresponding to the safe endpoint of the current search space as the critical current value.
[0109] In the specific implementation, S3.1 estimates the voltage to be equal to the minimum operating voltage threshold. The corresponding current value :
[0110] The estimated current is calculated in two scenarios: ① First iteration (only two endpoints, no intermediate sampling points), the midpoint of the current interval is taken as the estimated current using the bisection method to ensure that the initial point falls in the middle of the interval: .
[0111] ② Non-first iteration (assuming three valid sampling points already exist (at least one safe point and one outlier)) (Multi-point interpolation can also be used; taking three-point interpolation as an example) , , Three points were used as interpolation points;
[0112] By fitting the VI characteristic curve using second-order Lagrange interpolation, the inverse voltage is exactly... The corresponding current value The calculation formula is:
[0113]
[0114] The first round uses a bisection method to find the midpoint, avoiding initial value deviation in nonlinear scenarios for pure linear interpolation and ensuring that the first sampling falls in a reasonable position within the interval. The subsequent three-point quadratic interpolation is more in line with the nonlinear voltage drop characteristics of the power supply link than the original linear interpolation, resulting in faster convergence speed and higher final accuracy. The two ends of the interval are always kept to be "one ampere and one eccentric", and all interpolation calculations are interpolation operations to avoid error amplification caused by extrapolation.
[0115] S3.2 Adjust the load current to After the circuit reaches a steady state, the actual voltage at the device end is collected. .
[0116] S3.3 will and Comparison: ① If Then the current point is a safe point, using Replace the original secure endpoint Update the search range; ② If If the current point is an outlier, then use... Replace the original exception endpoint Update the search range.
[0117] S3.4 Repeat steps S3.1 to S3.3 until the search interval width is reached. Less than the preset convergence threshold (For example, 0.05A), the iteration terminates. The safe endpoint current value at this point is taken as the final critical current value. .
[0118] After acquiring several discrete data points, the controller substitutes the corresponding current value as the independent variable and the device terminal voltage as the dependent variable into a binomial fitting model to establish an approximate relationship between voltage and current. This binomial model can be constructed from three adjacent discrete data points or from multiple adjacent discrete data points within the current search space. This is used to obtain an estimated value of the device terminal voltage corresponding to the next current loading position, which is then compared with an undervoltage threshold. When the predicted voltage is greater than or equal to the undervoltage threshold, the controller continues to narrow the current testing range within the current search space; when the predicted voltage drops below the undervoltage threshold, it stops increasing the load current and records the currently acquired current value as an abnormal current value. The fitting method used can be a binomial model that continuously approximates the voltage change trend. In practical applications, other polynomial forms can also be selected, and this application does not limit this choice.
[0119] This method uses existing discrete sampling points to predict the next voltage response, enabling the search interval to converge quickly when approaching the undervoltage boundary. Since the stepping is terminated and the current is locked when the prediction indicates that the next step point will fall below the undervoltage threshold, the currently collected current value is recorded as an abnormal current value. Subsequent charging power determination can then be based on this for convergence control.
[0120] With this specific implementation method, the determination of the critical current value no longer relies on coarse-grained trial and error, but achieves boundary convergence through fitting prediction. The results obtained are closer to the actual load-bearing capacity of the device to be charged, and make the undervoltage judgment and current lockout more consistent, thereby improving the accuracy and stability of the critical current value determination.
[0121] In one possible implementation, before successively increasing the load current, the method further includes: acquiring historical critical current data corresponding to different types of devices to be charged and cable combinations, and storing the historical critical current data; and predicting the critical current value based on the historical critical current data.
[0122] In practice, the device to be charged can read the currently identified device model information and cable identification information through the charging management unit, and then query a pre-established historical critical current table. This historical critical current table can be constructed using a key-value mapping method, where the key is composed of both the device type identifier and the cable identifier. Each entry stores the corresponding average critical current value, the most recent critical current value, and the statistical confidence interval. Based on this data, the control unit can select the average critical current value as the initial predicted critical current value, or, when the data dispersion is large, select the lower bound current value on the safe side as the initial predicted critical current value, so that the starting point for subsequent increases in load current is closer to the actual critical point. If historical data corresponding to a certain device type and cable combination is insufficient, historical data from adjacent devices of the same power level can be used to supplement the prediction, and the supplemented prediction results are written to a cache for reuse in subsequent charging scenarios.
[0123] In this implementation, the storage and retrieval of historical critical current data provides prior constraints for charging control before real-time testing. The initial predicted critical current value is used to narrow down the search range, ensuring that subsequent current increases revolve around a range closer to the critical point. Therefore, the system can quickly establish initial judgments when switching between different equipment types and cable combinations, and incorporate equipment-side voltage boundaries into the control criteria, thereby improving the convergence of critical current location and the stability of charging control.
[0124] Based on the foregoing embodiments, the method further includes: when the charging device supports multiple voltage levels, calculating the charging power of each voltage level for each voltage level of the charging device, wherein the charging power of each voltage level is determined according to the critical current value corresponding to each voltage level; determining the voltage level corresponding to the largest charging power value among the charging power values according to the safe power of each voltage level as the target voltage level, and charging the device to be charged according to the target voltage level.
[0125] In practical implementation, the control unit first reads the various voltage levels supported by the charging device, and combines this with the corresponding critical current values obtained at each voltage level and the real-time voltage values collected from cable voltage drop parameters. Based on the relationship between the product of the real-time voltage and the critical current value for each voltage level, the safe power corresponding to each voltage level is calculated. The safe power of each level is then compared, and the voltage level that best meets the current charging power requirements and has the most matching output capability is selected as the target voltage level for charging. During operation, on a charger supporting multiple voltage levels, the device repeats the aforementioned dynamic adjustment and interpolation approximation steps for each level to calculate the maximum safe power for each level.
[0126] When a charger supports multiple fixed voltage levels (such as 5V, 9V, 12V, etc.), the above steps are performed for each voltage level to obtain the maximum safe current and corresponding power for each level. Finally, the locked power values of all levels are compared, and the charger automatically selects the voltage level with the highest actual usable total power for charging, achieving globally optimal power matching. By adopting this method, the charging device can obtain the maximum safe current and corresponding power for each voltage level, and then automatically select the voltage level with the highest actual usable total power for charging, achieving globally optimal power matching. This makes the output power more closely match the current needs of the device being charged, reducing power waste and charging instability caused by level selection deviations.
[0127] Figure 3 This is a schematic diagram of the structure of a charging power adaptive control device provided in an embodiment of this application, as shown below. Figure 3 As shown, the charging power adaptive control device 30 provided in this embodiment includes:
[0128] The initial voltage value determination module 301 is used to determine the initial voltage value corresponding to the device to be charged when the charging device outputs an initial safe current to the device to be charged.
[0129] The discrete data point acquisition module 302 is used to gradually increase the load current based on the initial safe current, and measure the voltage value of the device to be charged after each increase in load current to form several sets of discrete data points. The discrete data points include the load current of the device to be charged and the voltage value corresponding to each load current. Each voltage value in the discrete data points is less than or equal to the initial voltage value, and the step size of each increase in load current is related to the difference between the two nearest adjacent voltage values.
[0130] The critical current prediction module 303 is used to fit multiple sets of discrete data points to predict the critical current value. The discrete data points include an abnormal endpoint and a safe endpoint. The abnormal endpoint is the abnormal voltage and abnormal current value of the device to be charged when the voltage value of the device to be charged is first less than the undervoltage threshold. The safe endpoint is the sampling point before the abnormal endpoint.
[0131] The charging execution module 304 is used to charge the device to be charged according to the critical current value.
[0132] In one possible implementation, the discrete data point acquisition module 302 is specifically used to: obtain the voltage change rate of the device to be charged based on the voltage value of the device to be charged; when the voltage change rate is less than a preset voltage change rate threshold, gradually increase the load current using a first step length; when the voltage change rate is greater than or equal to the preset voltage change rate threshold, gradually increase the load current using a second step length, wherein the first step length is greater than the second step length.
[0133] In one possible implementation, the critical current prediction module 303 is specifically used to: obtain the midpoint of the current search space as the initial sampling point; the current search space is from the safe endpoint to the abnormal endpoint; based on the initial sampling point, the current search space is narrowed by interpolation approximation method to predict the critical current value.
[0134] In one possible implementation, the critical current prediction module 303 is further specifically used to: fit the fitted current of the device to be charged based on the initial sampling point, the safe endpoint, and the abnormal endpoint, wherein the fitted current is used to characterize the current value corresponding to the voltage value of the device to be charged being equal to the undervoltage threshold; adjust the load current of the device to be charged to the fitted current and obtain the fitted voltage corresponding to the fitted current; update the current search space based on the comparison result between the fitted voltage and the undervoltage threshold until the width of the current search space is less than a preset width threshold, and determine the current value corresponding to the safe endpoint of the current search space as the critical current value.
[0135] In one possible implementation, the charging power adaptive control device is further configured to: acquire historical critical current data corresponding to different types of devices to be charged and cable combinations, and store the historical critical current data; and predict the critical current value based on the historical critical current data.
[0136] In one possible implementation, the adaptive charging power control device is further configured to: when the charging device supports multiple voltage levels, calculate the charging power for each voltage level of the charging device, wherein the charging power for each voltage level is determined according to the critical current value corresponding to each voltage level; determine the voltage level corresponding to the charging power with the largest value among the charging power values as the target voltage level, and charge the device to be charged according to the target voltage level.
[0137] The charging power adaptive control device provided in this embodiment can execute the method provided in the above method embodiment. Its implementation principle and technical effect are similar, and will not be described in detail here.
[0138] Figure 4 This is a schematic diagram of the structure of an electronic device provided in an embodiment of this application. Figure 4 As shown, the electronic device 40 may include a memory 401 and a processor 402. Optionally, the electronic device may also include a transceiver 403, wherein the memory 401 and the processor 402 communicate with each other; for example, the memory 401, the processor 402 and the transceiver 403 may communicate via a communication bus 404, the memory 401 is used to store a computer program, and the processor 402 executes the computer program to implement the method of the above embodiments.
[0139] Optionally, the aforementioned processor can be a Central Processing Unit (CPU), or other general-purpose processors, digital signal processors (DSPs), application-specific integrated circuits (ASICs), etc. The general-purpose processor can be a microprocessor or any conventional processor. The steps in the method embodiments disclosed in this application can be directly implemented by a hardware processor, or implemented by a combination of hardware and software modules within the processor.
[0140] This application also provides a computer-readable storage medium storing computer-executable instructions, which, when executed by a processor, implement the methods in any of the above method embodiments.
[0141] This application also provides a computer program product, including a computer program that, when executed by a processor, implements the methods in any of the above method embodiments.
[0142] All or part of the steps in the above method embodiments can be implemented by hardware related to program instructions. The aforementioned program can be stored in a readable memory. When the program is executed, it performs the steps of the above method embodiments; and the aforementioned memory (storage medium) includes: read-only memory (ROM), RAM, flash memory, hard disk, solid-state drive, magnetic tape, floppy disk, optical disk, and any combination thereof.
[0143] This application describes embodiments with reference to flowchart illustrations and / or block diagrams of methods, apparatus (systems), and computer program products according to embodiments of this application. It should be understood that each block of the flowchart illustrations and / or block diagrams, and combinations of blocks in the flowchart illustrations and / or block diagrams, can be implemented by computer program instructions. These computer program instructions can be provided to a processing unit of a general-purpose computer, special-purpose computer, embedded processor, or other programmable data processing apparatus to produce a machine, such that the instructions, which execute via the processing unit of the computer or other programmable data processing apparatus, generate instructions for implementing the flowchart illustrations. Figure 1 One or more processes and / or boxes Figure 1 A device that provides the functions specified in one or more boxes.
[0144] These computer program instructions may also be stored in a computer-readable storage medium that can direct a computer or other programmable data processing device to function in a particular manner, such that the instructions stored in the computer-readable storage medium produce an article of manufacture including instruction means, which are implemented in a process Figure 1 One or more processes and / or boxes Figure 1 The function specified in one or more boxes.
[0145] These computer program instructions may also be loaded onto a computer or other programmable data processing equipment to cause a series of operational steps to be performed on the computer or other programmable equipment to produce a computer-implemented process, thereby providing instructions that execute on the computer or other programmable equipment for implementing the process. Figure 1 One or more processes and / or boxes Figure 1 The steps of the function specified in one or more boxes.
[0146] Obviously, those skilled in the art can make various modifications and variations to the embodiments of this application without departing from the spirit and scope of this application. Therefore, if these modifications and variations to the embodiments of this application fall within the scope of this application and its equivalents, this application also intends to include these modifications and variations.
[0147] In this application, the term "comprising" and its variations can refer to non-limiting inclusion; the term "or" and its variations can refer to "and / or". The terms "first", "second", etc., in this application are used to distinguish similar objects and are not necessarily used to describe a specific order or sequence. In this application, "multiple" refers to two or more. "And / or" describes the relationship between related objects, indicating that three relationships can exist. For example, A and / or B can represent: A existing alone, A and B existing simultaneously, and B existing alone. The character " / " generally indicates that the preceding and following related objects have an "or" relationship.
[0148] It should be noted that, for the sake of simplicity, the foregoing method embodiments are all described as a series of actions. However, those skilled in the art should understand that this application is not limited to the described order of actions, as some steps may be performed in other orders or simultaneously according to this application. Furthermore, those skilled in the art should also understand that the embodiments described in the specification are all optional embodiments, and the actions and modules involved are not necessarily essential to this application.
[0149] It should be further noted that although the steps in the flowchart are shown sequentially according to the arrows, these steps are not necessarily executed in the order indicated by the arrows. Unless explicitly stated herein, there is no strict order restriction on the execution of these steps, and they can be executed in other orders. Moreover, at least some steps in the flowchart may include multiple sub-steps or multiple stages. These sub-steps or stages are not necessarily completed at the same time, but can be executed at different times. The execution order of these sub-steps or stages is not necessarily sequential, but can be performed alternately or in turn with other steps or at least some of the sub-steps or stages of other steps.
[0150] It should be understood that the above-described device embodiments are merely illustrative, and the device of this application can also be implemented in other ways. For example, the division of units / modules in the above embodiments is only a logical functional division, and there may be other division methods in actual implementation. For example, multiple units, modules, or components may be combined, or integrated into another system, or some features may be ignored or not executed.
[0151] Furthermore, unless otherwise specified, the functional units / modules in the various embodiments of this application can be integrated into one unit / module, or each unit / module can exist physically separately, or two or more units / modules can be integrated together. The integrated units / modules described above can be implemented in hardware or as software program modules.
[0152] When integrated units / modules are implemented in hardware, the hardware can be digital circuits, analog circuits, etc. The physical implementation of the hardware structure includes, but is not limited to, transistors, memristors, etc. Unless otherwise specified, the processor can be any suitable hardware processor, such as a CPU, GPU, FPGA, DSP, and ASIC, etc. Unless otherwise specified, the storage unit can be any suitable magnetic or magneto-optical storage medium, such as Resistive Random Access Memory (RRAM), Dynamic Random Access Memory (DRAM), Static Random Access Memory (SRAM), Enhanced Dynamic Random Access Memory (EDRAM), High-Bandwidth Memory (HBM), Hybrid Memory Cube (HMC), etc.
[0153] If the integrated unit / module is implemented as a software program module and sold or used as an independent product, it can be stored in a computer-readable storage device (CMD). Based on this understanding, the technical solution of this application, in essence, or the part that contributes to the prior art, or all or part of the technical solution, can be embodied in the form of a software product. This computer software product is stored in a memory and includes several instructions to cause a computer device (which may be a personal computer, server, or network device, etc.) to execute all or part of the steps of the methods of the various embodiments of this application. The aforementioned memory includes various media capable of storing program code, such as a USB flash drive, read-only memory (ROM), random access memory (RAM), portable hard drive, magnetic disk, or optical disk.
[0154] In the above embodiments, the descriptions of each embodiment have their own emphasis. For parts not described in detail in a certain embodiment, please refer to the relevant descriptions of other embodiments. The technical features of the above embodiments can be combined arbitrarily. For the sake of brevity, not all possible combinations of the technical features in the above embodiments are described. However, as long as the combination of these technical features does not contradict each other, it should be considered within the scope of this specification.
[0155] Other embodiments of this application will readily occur to those skilled in the art upon consideration of the specification and practice of the invention disclosed herein. This application is intended to cover any variations, uses, or adaptations of this application that follow the general principles of this application and include common knowledge or customary techniques in the art not disclosed herein.
[0156] It should be understood that this application is not limited to the precise structure described above and shown in the accompanying drawings, and various modifications and changes can be made without departing from its scope.
Claims
1. A method for adaptive charging power control, characterized in that, The method includes: When the charging device outputs an initial safe current to the device to be charged, the initial voltage value corresponding to the device to be charged is determined; Based on the initial safe current, the load current is increased successively, and after each increase in load current, the voltage value corresponding to the device to be charged is measured to form several sets of discrete data points; the discrete data points include the load current of the device to be charged and the voltage value corresponding to each load current, each voltage value in the discrete data points is less than or equal to the initial voltage value, and the step size of each increase in load current is related to the difference between the two nearest adjacent voltage values; The critical current value is predicted by fitting multiple sets of discrete data points; the discrete data points include abnormal endpoints and safe endpoints; the abnormal endpoint is the abnormal voltage and abnormal current value of the device to be charged when the voltage value of the device to be charged is first less than the undervoltage threshold; the safe endpoint is the sampling point before the abnormal endpoint. The device to be charged is charged according to the critical current value.
2. The method according to claim 1, characterized in that, The successively increasing load current includes: Based on the voltage value of the device to be charged, obtain the voltage change rate of the device to be charged; If the voltage change rate is less than a preset voltage change rate threshold, the load current is gradually increased in the first step. When the voltage change rate is greater than or equal to the preset voltage change rate threshold, the load current is increased successively using a second step size, wherein the first step size is greater than the second step size.
3. The method according to claim 1, characterized in that, The process of fitting multiple sets of discrete data points to predict the critical current value includes: Obtain the midpoint of the current search space as the initial sampling point; the current search space is from the safe endpoint to the abnormal endpoint; Based on the initial sampling points, the current search space is narrowed using an interpolation approximation method to predict the critical current value.
4. The method according to claim 3, characterized in that, The step of narrowing the current search space using an interpolation approximation method based on the initial sampling points to predict the critical current value includes: Based on the initial sampling point, the safe endpoint, and the abnormal endpoint, a fitted current of the device to be charged is obtained. The fitted current is used to characterize the current value corresponding to the voltage value of the device to be charged being equal to the undervoltage threshold. Adjust the load current of the device to be charged to the fitted current, and obtain the fitted voltage corresponding to the fitted current; Based on the comparison between the fitted voltage and the undervoltage threshold, the current search space is updated until the width of the current search space is less than a preset width threshold, and the current value corresponding to the safe endpoint of the current search space is determined to be the critical current value.
5. The method according to claim 1, characterized in that, Prior to the successive increase of the load current, the method further includes: Acquire historical critical current data corresponding to different types of devices to be charged and cable combinations, and store the historical critical current data; Based on the historical critical current data, the critical current value is predicted.
6. The method according to claim 1, characterized in that, The method further includes: When the charging device supports multiple voltage levels, for each voltage level of the charging device, the charging power of each voltage level is calculated, wherein the charging power of each voltage level is determined according to the critical current value corresponding to each voltage level. Based on the charging power of each voltage level, the voltage level corresponding to the highest charging power value is determined as the target voltage level, and the device to be charged is charged according to the target voltage level.
7. A charging power adaptive control device, characterized in that, The device includes: The initial voltage value determination module is used to determine the initial voltage value corresponding to the device to be charged when the charging device outputs an initial safe current to the device to be charged. The discrete data point acquisition module is used to gradually increase the load current based on the initial safe current, and measure the voltage value corresponding to the device to be charged after each increase in load current, forming several sets of discrete data points; the discrete data points include the load current of the device to be charged and the voltage value corresponding to each load current, each voltage value in the discrete data points is less than or equal to the initial voltage value, and the step size of each increase in load current is related to the difference between the two nearest adjacent voltage values; The critical current prediction module is used to fit multiple sets of discrete data points to predict the critical current value; the discrete data points include an abnormal endpoint and a safe endpoint, the abnormal endpoint is the abnormal voltage value and abnormal current value of the device to be charged when the voltage value of the device to be charged is first less than the undervoltage threshold, and the safe endpoint is the sampling point before the abnormal endpoint; The charging execution module is used to charge the device to be charged according to the critical current value.
8. An electronic device, characterized in that, include: A processor, and a memory communicatively connected to the processor; The memory stores computer-executed instructions; The processor executes computer execution instructions stored in the memory to implement the method as described in any one of claims 1 to 6.
9. A computer-readable storage medium, characterized in that, The computer-readable storage medium stores computer-executable instructions, which, when executed by a processor, are used to implement the method as described in any one of claims 1 to 6.
10. A computer program product, characterized in that, Includes a computer program that, when executed by a processor, implements the method of any one of claims 1 to 6.