A charging control method, a storage medium and a charging device

CN122600364APending Publication Date: 2026-08-18SHENZHEN LANHE TECHNOLOGIES CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202610527746.0
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2026-04-20
Publication Date
2026-08-18

AI Technical Summary

Technical Problem

[0004]本申请提供了一种充电控制方法、存储介质及充电设备,以解决现有技术中多个被充电设备进行充电时效率过低、充电设备无法基于不同被充电设备的情况进行充电功率的分配的问题

Benefits of technology

[0015] The beneficial effects of this application are: after being electrically connected to at least two devices to be charged, the charging information of the devices to be charged is obtained; based on the charging information, the allocation weight corresponding to the devices to be charged is calculated; based on the allocation weight, the charging power corresponding to the devices to be charged is calculated, and the devices to be charged are charged with the charging power; by using the allocation weight determined based on the charging information, the charging power is allocated according to the situation of different devices to be charged, thereby improving the charging efficiency when charging at least two devices to be charged.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN122600364A_ABST
    Figure CN122600364A_ABST
Patent Text Reader

Abstract

This application relates to the field of charging control technology. It discloses a charging control method, a storage medium, and a charging device. The method includes: after electrically connecting to at least two devices to be charged, acquiring charging information of the devices; calculating the allocation weight corresponding to each device based on the charging information; calculating the charging power corresponding to each device based on the allocation weight, and charging the devices using the charging power; and allocating the charging power according to the different devices based on the allocation weight determined by the charging information, thereby improving the charging efficiency when charging at least two devices.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This application relates to the field of charging control technology, and in particular to a charging control method, a storage medium, and a charging device. Background Technology

[0002] When charging multiple devices, existing technologies generally adopt a fixed power allocation mode of "first come, first served" or "high protocol lock-in", which cannot dynamically adjust the power allocation according to the actual urgency (power) and acceptance capacity of the devices being charged, resulting in low overall charging efficiency.

[0003] When the total output power of the charging devices is limited, a fixed power allocation strategy may result in one device being charged still consuming a large amount of power when it is fully charged or nearly fully charged, while another device with low power is in a "power starvation" state (i.e., a state where the power is very low but it consumes less power), thus prolonging the total charging time of all devices being charged. Summary of the Invention

[0004] This application provides a charging control method, a storage medium, and a charging device to solve the problems of low efficiency when charging multiple devices and the inability of the charging device to allocate charging power based on the different devices being charged in the prior art.

[0005] To address the aforementioned problems, the first aspect of this application proposes a charging control method, comprising: After being electrically connected to at least two devices to be charged, the charging information of the devices to be charged is obtained. Based on the charging information, the allocation weight corresponding to the device being charged is calculated; Based on the assigned weights, the charging power corresponding to the device being charged is calculated, and the device being charged is then charged using the charging power.

[0006] In some embodiments, the allocation weights include any one or more of a first weight, a second weight, a third weight, a fourth weight, and a fifth weight; The step of calculating the charging power corresponding to the device being charged based on the allocation weight includes: The power weight is calculated based on any one or more of the first weight, the second weight, the third weight, the fourth weight, and the fifth weight, wherein the power weight is not less than 0 and not greater than 1, and the sum of the power weights corresponding to all the charged devices is not less than 0 and not greater than 1. The charging power corresponding to the charging device is obtained by multiplying the power weight by the total power output to all the charging devices.

[0007] In some embodiments, the charging information includes at least the power level; The step of calculating the allocation weight corresponding to the device being charged based on the charging information includes: The first weight is calculated based on the amount of electricity, wherein the amount of electricity is negatively correlated with the first weight.

[0008] In some embodiments, the charging information may also include the total battery capacity; The step of calculating the allocation weight corresponding to the device being charged based on the charging information further includes: Calculate the corresponding power shortage based on the power level and the total battery capacity; The second weight is calculated based on the power shortage, wherein the power shortage is positively correlated with the second weight.

[0009] In some embodiments, calculating the allocation weight corresponding to the device being charged based on the charging information further includes: When the charging information includes the maximum charging power, the third weight is calculated based on the maximum charging power, wherein the maximum charging power is positively correlated with the third weight; When the maximum charging power is not included in the charging information, the temperature rise resistance coefficient and the safe power threshold are obtained from the charging information. The maximum charging power is calculated based on the temperature rise resistance coefficient and the safe power threshold, wherein the temperature rise resistance coefficient is positively correlated with the maximum charging power.

[0010] In some embodiments, the charging information further includes a charging mode coefficient; The step of calculating the allocation weight corresponding to the device being charged based on the charging information further includes: The fourth weight is calculated based on the charging mode coefficient, wherein the charging mode coefficient is used to indicate at least the charging speed requirement of the device being charged, and the charging mode coefficient is positively correlated with the fourth weight.

[0011] In some embodiments, the charging information further includes a mutation coefficient; The step of calculating the allocation weight corresponding to the device being charged based on the charging information further includes: The fifth weight is calculated based on the mutation coefficient, wherein the mutation coefficient is used at least to indicate the abnormal state of the charged device, and the mutation coefficient is negatively correlated with the fifth weight.

[0012] In some embodiments, charging the device being charged with the charging power includes: The target voltage and target current of the device being charged are calculated based on the charging power and the charging protocol, wherein the charging protocol includes at least the charging protocol determined when establishing a communication connection after electrical connection with the device being charged; The device being charged is charged with the target voltage and the target current.

[0013] Based on the same inventive concept, a second aspect of this application proposes a computer-readable storage medium storing computer program instructions that, when executed by a processor, implement the method described in any embodiment of the first aspect of this application.

[0014] Based on the same inventive concept, a third aspect of this application proposes a charging device, including a memory and a processor, wherein the memory stores a computer program, and when the computer program is executed by the processor, it performs the method described in any embodiment of the first aspect of this application.

[0015] The beneficial effects of this application are: after being electrically connected to at least two devices to be charged, the charging information of the devices to be charged is obtained; based on the charging information, the allocation weight corresponding to the devices to be charged is calculated; based on the allocation weight, the charging power corresponding to the devices to be charged is calculated, and the devices to be charged are charged with the charging power; by using the allocation weight determined based on the charging information, the charging power is allocated according to the situation of different devices to be charged, thereby improving the charging efficiency when charging at least two devices to be charged. Attached Figure Description

[0016] Fig. 1 This is a schematic flowchart of an embodiment of the charging control method provided in this application; Fig. 2 This is a schematic diagram of an embodiment of the charging device provided in this application; Fig. 3 This is a schematic diagram of a charging process according to an embodiment provided in this application. Detailed Implementation

[0017] To facilitate understanding of this application, a more detailed description is provided below with reference to the accompanying drawings and specific embodiments. Preferred embodiments of this application are shown in the drawings. However, this application can be implemented in many different forms and is not limited to the embodiments described herein. Rather, these embodiments are provided to provide a more thorough and complete understanding of the disclosure of this application.

[0018] It should be noted that, unless otherwise defined, all technical and scientific terms used in this specification have the same meaning as commonly understood by one of ordinary skill in the art to which this application belongs. The terminology used in this specification is for the purpose of describing particular embodiments only and is not intended to limit the scope of this application. The term "and / or" as used in this specification includes any and all combinations of one or more of the associated listed items. In all formulas in this specification, "*" represents a multiplication sign, " / " represents a division sign, and "-" represents a subtraction sign.

[0019] To address the problems of low efficiency when charging multiple devices and the inability of charging devices to allocate charging power based on the different devices being charged in the prior art, this application proposes a charging control method, a storage medium, and a charging device.

[0020] This application will now be described in detail with reference to the accompanying drawings and specific embodiments.

[0021] refer to Figs. 1-3 The first aspect of this application proposes a charging control method, comprising the following steps: After being electrically connected to at least two devices to be charged, the charging information of the devices to be charged is obtained. Based on the charging information, the allocation weight corresponding to the charging device is calculated; Based on the assigned weights, the charging power corresponding to the device being charged is calculated, and the device is charged using the charging power.

[0022] The subject executing the above-mentioned charging control method is the charging device or power supply device, such as a power bank, charger, power control device, etc.

[0023] The charging device has a control module for executing the steps of the above-described charging control method.

[0024] After the charging device and the device being charged are electrically connected (e.g., via a USB cable and / or USB interface), a public protocol handshake is performed to determine the charging protocol. A basic public level (e.g., 5V / 3A) is used to establish the connection. The public protocol may be the standard PD protocol, namely the USB Power Delivery (PD) 3.0 protocol. The public protocol also includes the PPS protocol, which introduces the Programmable Power Supply (PPS) standard on the basis of the standard PD protocol.

[0025] Furthermore, in addition to establishing a connection using a common voltage level (such as 5V / 3A), a real-time communication channel based on a private protocol can also be established between the charging device and the device being charged. For example, a private protocol handshake request can be initiated to exchange authentication information (such as manufacturer identification code VID, product identification code PID, and hardware version). After authentication is successful, communication based on the private protocol can be established.

[0026] The process of obtaining charging information from the device being charged can be achieved through a communication connection based on a public protocol (such as the standard PD protocol) or a communication connection based on a private protocol. For example, after initiating a private protocol handshake request, exchanging authentication information, and successfully authenticating, the device being charged periodically (e.g., every second) or in real time reports charging information to the charger based on the private protocol. This includes a set of key status information, including one or more of the following: Total battery capacity (expressed as C_total, in ampere-hours (Ah), milliampere-hours (mAh), watt-hours (Wh), milliwatt-hours (mWh), or coulombs (C)). The current remaining battery power, where represents the absolute or relative battery power. When representing absolute battery power, it is expressed in ampere-hours (Ah), milliampere-hours (mAh), watt-hours (Wh), milliwatt-hours (mWh), or coulombs (C). When representing relative battery power, it is denoted as SOC, which is a dimensionless normalized value, such as a decimal or percentage between 0 and 1. Current battery voltage (V_batt); Maximum input power (P_max_in); The maximum voltage that the device being charged can accept (V_max_in); The maximum current that the device being charged can accept (I_max_in); The device's current power status (e.g., whether it is running a high-load application, whether the status is normal; different values ​​can be used to indicate different statuses, for example, 0 indicates normal and 1 indicates abnormal). When both total battery capacity and battery charge are mentioned, the units for both are the same.

[0027] In one embodiment, the charging information also includes: The battery configuration of the device being charged (e.g., single-cell configuration, dual-cell configuration); The range of voltage / current that the device being charged can accept.

[0028] In one embodiment, after the external device is physically connected to the charging device, a communication connection can be established based on the aforementioned public or private protocol. If the communication connection is successfully established, the external device is identified as the device being charged.

[0029] In one embodiment, after the external device is physically connected to the charging device, a communication connection can be established based on the aforementioned public or private protocol, and the charging information of the external device can be obtained through the communication connection. If the authentication is successful based on the charging information (e.g., authentication information), the external device is identified as the device being charged.

[0030] In one embodiment, after the external device is physically connected to the charging device, a communication connection is established through a private protocol, and the authentication information of the external device (such as manufacturer identification code VID, product identification code PID, hardware version) is obtained through the communication connection. If the authentication is successful, the external device is identified as the device being charged.

[0031] In one embodiment, after the external device is physically connected to the charging device, a communication connection is established through a private protocol, and the charging information of the external device is obtained through the communication connection. If it can be determined that the external device has a charging need based on the charging information, the external device is identified as the device to be charged. For example, the charging information contains a charging need field. After the charging device obtains the charging information, it verifies the charging need field and determines whether the external device has a charging need (for example, if the charging need field is 0, there is no charging need; if the charging need field is 1, there is a charging need).

[0032] In one embodiment, after the device and charger are physically connected, they first communicate following the complete process of a standard public fast charging protocol (e.g., USB PD 3.1). A basic, safe power level (e.g., 5V / 2A or 5V / 3A) supported by all compatible devices is negotiated and established through the public protocol. This connection serves two purposes: first, it provides initial operating power to the device; second, it establishes a stable in-band data channel for subsequent authentication communication (i.e., it reuses physical links such as the CC line specified by the public protocol for communication).

[0033] In one embodiment, after basic power supply is established, both parties initiate an encrypted communication session based on a public protocol data channel. The device and charger exchange their respective identification information. To achieve high security, this interaction process can integrate cryptographic mechanisms such as digital signatures and random number challenge-response mechanisms to prevent information from being eavesdropped on, tampered with, or replayed during transmission.

[0034] In one embodiment, the charging control method includes: After being electrically connected to at least two devices being charged, the charging information of all devices being charged is obtained. For each device being charged, calculate the corresponding allocation weight based on its corresponding charging information; For each device being charged, the corresponding charging power is determined based on its assigned weight, and the device is charged using the corresponding charging power.

[0035] In one embodiment, the charging control method of this application includes: After being electrically connected to at least two devices to be charged, the charging information of all devices to be charged is obtained, wherein the charging information includes at least the power of the devices to be charged. For each device being charged, a corresponding allocation weight is calculated based on its corresponding charging information. The allocation weight includes at least a first weight calculated based on the power of each device being charged, and the power is negatively correlated with the first weight. For each device being charged, the corresponding charging power is determined based on its assigned weight, and the device is charged using the corresponding charging power. The first weight is positively correlated with the charging power.

[0036] In this embodiment, a first weight is calculated based on the power level, and the charging power is calculated based on the first weight. This allows the charging device to allocate charging power according to the power level of different devices being charged, thereby improving the charging efficiency when charging at least two devices.

[0037] In one embodiment, the process of calculating the first weight based on the power level of each charged device includes calculation using the following formula: W1i=1-(C1i / ΣC1) In the above formula, the symbols correspond to a device being charged (code i), W1i represents the first weight, C1i represents the amount of electricity, ΣC1 represents the sum of the amounts of electricity corresponding to all devices being charged, "-" represents a minus sign, and " / " represents a division sign.

[0038] Specifically, the process of determining the charging power and charging includes: For each device being charged, a power weight is determined based on its corresponding allocation weight, wherein the power weight is not less than 0 and not greater than 1; For each device being charged, calculate the product of its corresponding power weight and the total power output to all devices being charged to obtain the charging power corresponding to each device being charged. For each device being charged, the target voltage and target current are determined based on the charging power and charging protocol of the device being charged. The charging protocol is the protocol determined when establishing a communication connection with the device being charged (e.g., 5V / 3A, or a determined voltage and current range, or a determined array including voltage and current). For each device being charged, it is charged with its corresponding target voltage and target current.

[0039] In one embodiment, before charging the device being charged, the target voltage is compared with the maximum voltage (V_max_in) that the device being charged can accept. If the target voltage is less than V_max_in, it is charged at the target voltage; if the target voltage is not less than V_max_in, it is charged at V_max_in. Before charging the device, the target current is compared with the maximum current (I_max_in) that the device can accept. If the target current is less than I_max_in, it is charged with the target current. If the target current is not less than I_max_in, it is charged with I_max_in.

[0040] In one embodiment, when the weight allocation includes only one weight (e.g., the first weight), the weight included in the weight allocation (e.g., the first weight) can be recorded as the power weight, or the weight included in the weight allocation (e.g., the first weight) can be multiplied by an adjustment factor to obtain the power weight, but the adjustment factor is set so that the power weight is not less than 0 and not greater than 1.

[0041] For example, the allocation weight corresponding to a charging device includes a first weight, which is 0.5. Then the power weight is 0.5 or the product of 0.5 and the adjustment coefficient.

[0042] In any embodiment of this specification, the calculated power weights satisfy a condition that is not less than 0 and not greater than 1.

[0043] In one embodiment, the power weight is calculated based on the assigned weight; The weight allocation includes N weights, where the N weights include at least the first weight, and N is a positive integer not less than 1; Based on the assigned weights, the charging power corresponding to the device being charged is calculated, including: The power weight is calculated based on any one or more of the N weights, where the power weight is not less than 0 and not greater than 1, and the sum of the power weights corresponding to all the charged devices is not less than 0 and not greater than 1. The corresponding charging power is obtained by multiplying the power weight by the total power output to all devices being charged. Specifically, the N weights can be named as in other embodiments, and the corresponding weight calculation methods can be referred to in the corresponding embodiments.

[0044] In this embodiment, the charging power is calculated using multiple weights, each of which reflects different dimensions of the device being charged. This allows the charging device to allocate charging power based on the different conditions of the devices being charged, thereby improving the adaptability and charging efficiency when charging at least two devices.

[0045] In one embodiment, the sum of the power weights corresponding to all the devices being charged is 1. The calculation method of the power weights is the same as in other embodiments, and the sum of the power weights corresponding to all the devices being charged is made to be 1 by adjusting the coefficients or parameters.

[0046] In one embodiment, the allocation weight corresponding to each charged device is adjusted in real time, and correspondingly, the power weight is also adjusted in real time, and correspondingly, the voltage and current for charging the charged device are also adjusted in real time. Specifically, the weight allocation can be adjusted in real time based on a specific adjustment period (e.g., 0.1 seconds).

[0047] In one embodiment, the process of real-time adjustment of the assigned weights includes: Based on the communication connection with the device being charged, the real-time charging information of the device being charged is obtained at fixed adjustment intervals. Based on real-time charging information, the real-time allocation weight corresponding to the charging device is calculated. Based on real-time weight allocation, the real-time charging power corresponding to the device being charged is calculated, and the device being charged is charged using the real-time charging power.

[0048] In this embodiment, the charging power is calculated using multiple real-time weights, and each real-time weight reflects the real-time status of the device being charged. This allows the charging device to allocate charging power based on the real-time status of different devices being charged, thereby improving the charging efficiency when charging at least two devices.

[0049] In one embodiment, the weight allocation includes any one or more of a first weight, a second weight, a third weight, a fourth weight, and a fifth weight; Based on the assigned weights, the charging power corresponding to the device being charged is calculated, including: The power weight is calculated based on any one or more of the first weight, second weight, third weight, fourth weight and fifth weight, wherein the power weight is not less than 0 and not greater than 1, and the sum of the power weights corresponding to all charged devices is not less than 0 and not greater than 1. The corresponding charging power is obtained by multiplying the power weight by the total power output to all devices being charged. Specifically, the calculation methods for the first weight, second weight, third weight, fourth weight, and fifth weight are the same as in other embodiments; In this embodiment, the calculation of the power weight is not based on the assumption that all five weights (first, second, third, fourth, and fifth) are calculated. Instead, it is calculated based on any combination of the aforementioned weights. For example, if only the second and third weights can be obtained from the charging information, the power weight can be calculated directly based on the second and third weights without calculating or judging the other weights. Any combination of the aforementioned weights includes: Any one of the first weight, second weight, third weight, fourth weight, and fifth weight; Or, any two of the first weight, second weight, third weight, fourth weight, and fifth weight; Alternatively, any three of the following weights: first weight, second weight, third weight, fourth weight, and fifth weight; Alternatively, any four of the following weights: first weight, second weight, third weight, fourth weight, and fifth weight; Or the first weight, second weight, third weight, fourth weight, and fifth weight.

[0050] The process of determining the power weight based on any one or more weights included in its corresponding allocation weight can be found in other embodiments.

[0051] In this embodiment, power weights are calculated using multiple weights to determine the charging power. Each weight reflects different dimensions of the device being charged, allowing the charging device to allocate charging power based on the different conditions of the devices being charged, thereby improving the charging efficiency when charging at least two devices.

[0052] In one embodiment, the charging information also includes the total battery capacity, and the allocation weight also includes a second weight; For each device being charged, a corresponding allocation weight is calculated based on its charging information, including: For each device being charged, the power gap is calculated based on its corresponding power level and total battery capacity, where the power gap is the difference between the total battery capacity and the power level. For each device being charged, a second weight is calculated based on its corresponding power gap, where the power gap is positively correlated with the second weight.

[0053] Specifically, the second weight is the second proportion of the power shortage of one charged device to the total power shortage of all charged devices, where the total power shortage is the sum of the power shortages of all charged devices; Alternatively, the second weight is the second proportion multiplied by a preset coefficient.

[0054] In this embodiment, a second weight is derived from the power shortage. If the second weight is considered when calculating the charging power, the charging device can allocate the charging power according to the power shortage of different charged devices, thereby improving the charging efficiency when charging at least two charged devices.

[0055] In one embodiment, when the charging information includes relative charge level, the second weight is calculated based on the following method: For each device being charged (designated i), the relative power deficit is calculated using the following formula: QKi = 1 - SOC; Where QKi represents the relative power deficit of a device being charged (code i), SOC represents the relative power of a device being charged (code i) (i.e., the ratio of the device's current remaining power to its total power), and "-" represents a minus sign. For each device being charged (code i), the second weight is calculated using the following formula: W2i=QKi / ΣQK; In the above formula, the symbols correspond to a device being charged (code i), W2i represents the second weight, QKi represents the relative power gap, ΣQK represents the sum of the relative power gaps corresponding to all devices being charged, and " / " represents the division sign.

[0056] In one embodiment, when the weight allocation includes multiple weights (e.g., a first weight, a second weight), one of the multiple weights included in the weight allocation (e.g., the first weight) can be recorded as the power weight, or one of the multiple weights included in the weight allocation can be multiplied by an adjustment coefficient and summed to obtain the power weight.

[0057] For example, the allocation weights corresponding to a charging device include a first weight and a second weight. The first weight is 0.1 and the second weight is 0.2. If the first weight is selected, the power weight is 0.1 (or the product of 0.1 and the adjustment coefficient). If the second weight is selected, the power weight is 0.2 (or the product of 0.2 and the adjustment coefficient).

[0058] In this embodiment, the charging power is calculated by weighting the power level and power shortage, respectively, so that the charging device can allocate the charging power according to the power level and power shortage of different devices being charged, thereby improving the charging efficiency when charging at least two devices.

[0059] In one embodiment, the allocation weight further includes a third weight; the process of calculating the allocation weight corresponding to the device being charged based on charging information includes: When the charging information includes the maximum charging power, the third weight is calculated based on the maximum charging power, where the maximum charging power is positively correlated with the third weight; When the maximum charging power is not included in the charging information, the temperature rise resistance coefficient and the safe power threshold are obtained from the charging information; the maximum charging power is calculated based on the temperature rise resistance coefficient and the safe power threshold, wherein the temperature rise resistance coefficient is positively correlated with the maximum charging power.

[0060] In this embodiment, the weight is derived by the maximum charging power or by calculating the maximum charging power and the safe power threshold and deriving the third weight, taking into account the impact of the maximum charging power of the charged device on the power allocation. If the third weight is considered when calculating the charging power, the charging device can allocate the charging power by referring to the maximum charging power of different charged devices, thereby improving the safety and charging efficiency when charging at least two charged devices.

[0061] In one embodiment, the charging information also includes the maximum charging power, and the weighting also includes a third weight; For each device being charged, the corresponding allocation weight is calculated based on its charging information, and this also includes: For each device being charged, a third weight is calculated based on its maximum charging power, where the maximum charging power is positively correlated with the third weight.

[0062] In one embodiment, the maximum charging power is the maximum input power P_max_in that the device being charged can accept multiplied by the corresponding adjustment factor.

[0063] In one embodiment, the third weight is calculated using the following formula: W3i=(P_accept_i / ΣP_accept)*M3; In the above formula, the symbols correspond to a device being charged (code i), W3i represents the third weight, P_accept_i represents the maximum charging power, ΣP_accept represents the sum of the maximum charging power of all devices being charged, "*" represents multiplication, " / " represents division, M3 represents the adjustment coefficient for calculating the third weight, and the value of M3 is such that W3i is not less than 0 and not greater than 1.

[0064] In one embodiment, the charging information also includes a temperature rise tolerance coefficient. The larger the temperature rise tolerance coefficient, the greater the tolerance of the device being charged to charging at high power (such as the maximum input power P_max_in). For example, when the temperature rise tolerance coefficient is 1, it can be charged at the maximum input power for a longer period of time without considering the temperature rise of the device. When the temperature rise tolerance coefficient is 0.1, it indicates that the device being charged has a lower tolerance to charging at high power and can usually only be charged at one-tenth of the maximum input power P_max_in. The maximum charging power is calculated using the following formula: P_accept_i≤P_max_in*Xi; In the above formula, the symbols correspond to a device being charged (code i), P_accept_i represents the maximum charging power, P_max_in represents the maximum input power that the device being charged can accept, Xi represents the temperature rise resistance coefficient, and "*" represents the multiplication sign, where 0 < Xi ≤ 1; The maximum input power P_max_in can be extracted directly from the charging information, or it can be obtained by looking up a table based on a field in the charging information. For example, if there is a field corresponding to "maximum input power" in the charging information, the maximum input power P_max_in can be determined based on this field in a preset information table.

[0065] In one embodiment, the charging information also includes the temperature rise resistance coefficient and the safe power threshold; The maximum charging power is calculated based on the temperature rise resistance coefficient and the safe power threshold, where the temperature rise resistance coefficient is positively correlated with the maximum charging power.

[0066] In one embodiment, for a device being charged (code i), the safe power threshold is a defined power value, denoted as P_safe_i, and the maximum charging power is denoted as P_accept_i. The maximum charging power is calculated based on the temperature rise tolerance coefficient and the safe power threshold, including: First, calculate using the following formula: P0i = P_max_in*Xi; In the above formula, the symbols correspond to a device being charged (code i), P0i represents the quasi-maximum charging power, Xi represents the temperature rise resistance coefficient, and "*" represents the multiplication sign; Determine whether the maximum charging power P0i is less than the safe power threshold P_safe_i; If it is less than, then P_accept_i = P0i; If it is not less than, then P_accept_i = P_safe_i.

[0067] In one embodiment, the safety power coefficient is determined based on a safety power threshold (for example, it can be obtained by looking up a preset coefficient correspondence table; when the safety power threshold is 1, the safety power coefficient is 1), and the maximum charging power is calculated using the following formula: P_accept_i = P_max_in*Xi*Ti; In the above formula, the symbols correspond to a device being charged (code i), P_accept_i represents the maximum charging power, Xi represents the temperature rise resistance coefficient, Ti represents the safety power coefficient, and "*" represents the multiplication sign; Preferably, Xi is not less than 0 and not greater than 1, and Ti is not less than 0 and not greater than 1.

[0068] In one embodiment, the third weight can also be calculated based on the maximum charging power and the total power output to all charged devices: The third weight is the ratio of the maximum charging power to the total power output to all charged devices. Alternatively, the third weight is the third proportion multiplied by a preset coefficient.

[0069] In one embodiment, when the weight allocation includes multiple weights (e.g., a first weight, a second weight), the power weight can be calculated based on the multiple weights. For example, the power weight is obtained by averaging multiple weights; For example, multiply each weight by its corresponding coefficient and then sum them up to get the power weight (for example, if the first weight is 0.1, the second weight is 0.2, the coefficient corresponding to the first weight is 1, and the coefficient corresponding to the second weight is 0.5, then the power weight is 0.1*1+0.2*0.5=0.2; "*" represents the multiplication sign).

[0070] In one embodiment, the coefficient corresponding to each weight can be adjusted according to different preset modes of the charging device; For example, the coefficient for the second weight is α, the coefficient for the first weight is β, and the coefficient for the third weight is γ. The power weight is calculated using the following formula: W0i=α*W2i+β*W1i+γ*W3i; In the above formula, the symbols correspond to a device being charged (code i), W0i represents the power weight of a device being charged, W2i represents the second weight, W1i represents the first weight, and W3i represents the third weight. At the same time, the settings of α, β, and γ are such that 0≤W0i≤1 and 0≤ΣW0≤1, where ΣW0 is the sum of the power weights corresponding to all devices being charged; "*" represents the multiplication sign.

[0071] In one embodiment, the power weight is calculated using the following formula: W_i = α * (E_needed_i / ΣE_needed) + β * (1 - SOC_i) + γ * P_accept_i / ΣP_accept; In the above formula, the symbols correspond to a charging device (code i), (E_needed_i / ΣE_needed) represents the percentage of power shortage, giving higher weight to devices with greater total demand. Here, E_needed_i is the power shortage corresponding to a charging device (i.e., the difference between the total battery capacity of a charging device and its current remaining power), ΣE_needed is the sum of the power shortages of all devices, and "*" represents a multiplication sign. (1 - SOC_i) indicates the charging urgency. The lower the battery level of a device, the higher the urgency. Here, SOC_i is the relative battery level of a device being charged. P_accept_i represents the maximum charging power of a device being charged, calculated according to the corresponding calculation method in other embodiments; ΣP_accept is the sum of the maximum charging power of all devices being charged, wherein the maximum charging power of each device being charged is calculated according to the corresponding calculation method in other embodiments; The calculation using this formula allocates more power to devices that currently have higher acceptable power levels, thereby increasing the overall energy transfer rate. Preferably, α, β, γ are adjustable coefficients, and α+β+γ=1; the charger can preset different modes (such as "fast charging mode" and "balance protection mode") to adjust these coefficients.

[0072] In this embodiment, by setting coefficients for different weights, the corresponding coefficients reflect the importance of different weights. In the process of calculating charging power by combining multiple weights, each weight corresponds to different considerations. The calculation results will be reflected in the selection of these considerations in the actual charging process, thereby improving the adaptability and efficiency when charging at least two devices.

[0073] In one embodiment, when the weight allocation includes multiple weights (e.g., a first weight, a second weight, and a third weight), a quasi-power weight can be calculated based on a subset of the multiple weights, and the final power weight can be determined through the relationship between the other weights and the quasi-power weight, including: The quasi-power weight is calculated based on at least two weights in the assigned weights (e.g., the first weight and the second weight) (for specific calculations, please refer to the foregoing embodiments). At least one weight in the assigned weights is selected as a reference weight, wherein the reference weight is not involved in the calculation of the quasi-power weight (e.g., the third weight). Determine whether the quasi-power weight is greater than the reference weight. If it is, then the reference weight is determined as the power weight; if it is not, then the quasi-power weight is determined as the power weight.

[0074] In this embodiment, by setting a reference weight, the importance of the considerations corresponding to the weight is reflected, which serves as a reference for power allocation, thereby improving the safety when charging at least two devices.

[0075] In one embodiment, the charging information also includes a charging mode coefficient, and the weighting also includes a fourth weight. For each device being charged, the corresponding allocation weight is calculated based on its charging information, and this also includes: For each device being charged, a corresponding fourth weight is calculated based on its corresponding charging mode coefficient. The charging mode coefficient is used to indicate at least the charging speed requirement of the device being charged, and the charging mode coefficient is positively correlated with the fourth weight.

[0076] In this embodiment, the fourth weight is derived through the charging mode coefficient, taking into account the charging speed requirements of the charged device. If the fourth weight is considered when calculating the charging power, the charging device can allocate the charging power according to the charging requirements of different charged devices, thereby improving the efficiency when charging at least two charged devices and prioritizing charging of the charged devices that need charging more.

[0077] For a device being charged, the charging mode coefficient is used to indicate the charging speed requirement of the device being charged. For example, when the charging mode coefficient is 0.1, it is the balance protection mode, which indicates that the charging device has a low demand for charging speed. When the charging mode coefficient is 0.2, it is the fast charging mode, which indicates that the charging device has a high demand for charging speed.

[0078] In one embodiment, the process of obtaining the charging mode coefficient from the charging information includes: Extract the field corresponding to the charging mode coefficient from the charging information; The charging mode coefficient is obtained by looking up the table based on this field, where the charging mode coefficient is not less than 0 and not greater than 1.

[0079] In one embodiment, the charging device adjusts the charging mode coefficient, including: The charging mode coefficients of all devices being charged are summed up. If the cumulative result is greater than 1, the charging mode coefficient of each charged device is normalized so that the cumulative result is 1.

[0080] In one embodiment, the fourth weight is calculated using the following formula: W4i = T4i * M4; In the above formula, the symbols correspond to a device being charged (code i), W4i represents the fourth weight, T4i represents the charging mode coefficient, M4 represents the adjustment coefficient for calculating the fourth weight, and the value of M4 is such that W4i is not less than 0 and not greater than 1; "*" represents the multiplication sign. Preferably, T4i is not less than 0 and not greater than 1; Preferably, the sum of the charging mode coefficients of all the devices being charged is 1.

[0081] In one embodiment, the charging information also includes a mutation coefficient, and the weighting also includes a fifth weight; For each device being charged, the corresponding allocation weight is calculated based on its charging information, and this also includes: For each device being charged, a fifth weight is calculated based on its corresponding mutation coefficient, where the mutation coefficient is used to indicate at least the abnormal state of the device being charged, and the mutation coefficient is negatively correlated with the fifth weight.

[0082] In this embodiment, the fifth weight is derived through the mutation coefficient, taking into account the impact of sudden conditions of the charged device on power allocation. If the fifth weight is considered when calculating the charging power, the charging device can allocate the charging power according to the abnormal state of different charged devices, thereby improving the efficiency when charging at least two charged devices, allocating more power to normal devices, allocating less power to abnormal devices, or not charging abnormal devices.

[0083] In one embodiment, a mutation coefficient of 0 indicates that the device being charged is normal, a mutation coefficient of 1 indicates that the device being charged is abnormal, and a mutation coefficient between 0 and 1 indicates that the device being charged has an abnormal risk. The larger the mutation coefficient, the greater the abnormal risk.

[0084] In one embodiment, the fifth weight is calculated using the following formula: W5i = 1 - T5i; In the above formula, the symbols correspond to a device being charged (code i), W5i represents the fifth weight, T5i represents the mutation coefficient, and T5i is not less than 0 and not greater than 1.

[0085] In one embodiment, for each device being charged, the corresponding charging power is determined based on its assigned weight, including: For each device being charged, a power weight is determined based on any one or more weights included in its corresponding allocation weight. The allocation weight includes any one or more of the first weight, second weight, third weight, fourth weight, and fifth weight. The power weight is not less than 0 and not greater than 1, and the sum of the power weights corresponding to all devices being charged is not less than 0 and not greater than 1. For each device being charged, calculate the product of its corresponding power weight and the total power output to all devices being charged to obtain the charging power corresponding to each device being charged. The weights included in the weight allocation include one or more of the following: Any one of the first weight, second weight, third weight, fourth weight, and fifth weight; Or, any two of the first weight, second weight, third weight, fourth weight, and fifth weight; Alternatively, any three of the following weights: first weight, second weight, third weight, fourth weight, and fifth weight; Alternatively, any four of the following weights: first weight, second weight, third weight, fourth weight, and fifth weight; Or the first weight, second weight, third weight, fourth weight, and fifth weight.

[0086] The process of determining the power weight based on any one or more weights included in its corresponding allocation weight can be found in other embodiments.

[0087] In this embodiment, the charging power is calculated using multiple weights, each of which reflects different dimensions of the device being charged. This allows the charging device to allocate charging power based on the different conditions of the devices being charged, thereby improving the adaptability and charging efficiency when charging at least two devices.

[0088] In one embodiment, real-time closed-loop adjustment is achieved: the charging device continuously receives device status updates and recalculates weights and reallocates power. For example, when device A's battery level increases from 20% to 60%, its allocation weight decreases, and the charging device automatically transfers some power to device B, which still has only 10% battery remaining.

[0089] In one embodiment, a load surge response is implemented: if a device suddenly starts operating under high load (reporting a status change), its maximum charging power P_accept_i may increase instantaneously. The system can respond quickly and temporarily increase its power allocation to ensure stable device operation.

[0090] In one embodiment, security and fallback mechanisms are implemented: If a device disconnects, its allocated power will be quickly recovered and redistributed to the remaining devices; If the device stops reporting its status (communication failure), the charger will revert the port to the last requested public protocol fixed position.

[0091] In one embodiment, if the total power consumption or temperature of the charging device exceeds a threshold, the allocated power of all ports will be reduced proportionally to ensure system safety. Specifically, if the temperature or power of the charging device is detected to exceed the corresponding threshold, the total power output to all charged devices will be reduced.

[0092] refer to Fig. 3 In one embodiment, the charging device has a fixed power distribution mode and a smart power distribution mode; Among them, the fixed power allocation mode charges the device based on the charging power determined when establishing a communication connection with the device being charged; The intelligent allocation mode includes calculating power weights using the following formula: W0i=α*W2i+β*W1i+γ*W3i; In the above formula, the symbols correspond to a device being charged (code i), W0i represents the power weight of a device being charged, W2i represents the second weight, W1i represents the first weight, and W3i represents the third weight; at the same time, α, β, and γ are set such that 0≤W0i≤1 and 0≤ΣW0≤1, where ΣW0 is the sum of the power weights corresponding to all devices being charged; "*" represents the multiplication sign; The specific calculation method for each weight is the same as in other embodiments; For each device being charged, the power weight is multiplied by the total power output to all devices being charged to obtain the corresponding charging power.

[0093] In the intelligent allocation mode, the charging power is calculated using the above-mentioned charging power calculation method, and the device being charged is charged.

[0094] The charging control method includes the following steps: After handshaking with the device being charged based on a standard public protocol, basic power supply is established; Initiate private protocol authentication with the device being charged, and complete the exchange and authentication of VID / PID information with the device being charged; If authentication fails, it will enter fixed power allocation mode; If authentication is successful, enter intelligent allocation mode.

[0095] In intelligent allocation mode, the allocation of the coordination between the charging device and the device being charged includes the following processes: S1: After the device being charged completes authentication, it periodically reports charging information to the charging device; S2: The charging device calculates and updates the charging power based on the charging information reported by all certified charging devices, and charges each charging device with the updated charging power. S3: Determine if the device being charged has disconnected; S4: If so, calculate the updated charging power based on the charging information reported by all charging devices that are not fully charged and are not disconnected, and charge each charging device with the updated charging power. S5: If not, obtain the real-time charging information of the device being charged (the real-time charging information includes at least the mutation coefficient), and calculate the updated charging power based on the real-time charging information, and charge each device being charged with the updated charging power. After step S4 or step S5 is completed, jump to step S2 and repeat.

[0096] In step S5, the mutation coefficient is a specific field used to indicate different states such as timeout completion, status update, device plugging / unplugging, and device fully charged.

[0097] In this embodiment, a switch between a fixed power allocation mode and a smart allocation mode is made so that the charging device that fails to be authenticated can also be charged with a fixed power. In intelligent allocation mode, the device being charged periodically reports charging information, and the charging device actively determines whether the device being charged is disconnected. If disconnected, the charging power is calculated based on the charging information reported by the device being charged that is not disconnected. If not disconnected, the charging device actively obtains real-time charging information. By combining passive and active methods, the latest charging information is obtained to adjust the charging power in real time, thereby improving the adaptability and efficiency of charging.

[0098] In summary, compared with the prior art, the embodiments of this application calculate the charging power corresponding to the device being charged based on the allocation of weights, and charge the device being charged with the charging power. The allocation of weights is calculated based on information in the charging information that can reflect different dimensions, such as power, power shortage, maximum charging power, temperature rise resistance coefficient, safe power threshold, charging mode coefficient, etc. By selecting different weights, the charging needs under different situations in practice can be better met.

[0099] refer to Figs. 1-3 The second aspect of this application provides a computer-readable storage medium storing computer program instructions that, when executed by a processor, implement the methods as described in any of the embodiments of the first aspect of this application.

[0100] Compared with the prior art, the above embodiments of this application can achieve the technical effects achieved by the first aspect of this application. At the same time, the computer-readable storage medium is portable and easy to use.

[0101] refer to Figs. 1-3 The third aspect of this application provides a charging device, including a memory and a processor, wherein the memory stores a computer program, and when the computer program is executed by the processor, it performs the method as described in any of the embodiments of the first aspect of this application.

[0102] Compared with the prior art, the above embodiments of this application can achieve the technical effects achieved by the first aspect of this application.

Claims

1. A charging control method, characterized in that, include: After being electrically connected to at least two devices to be charged, the charging information of the devices to be charged is obtained. Based on the charging information, the allocation weight corresponding to the device being charged is calculated; Based on the assigned weights, the charging power corresponding to the device being charged is calculated, and the device being charged is then charged using the charging power.

2. The charging control method according to claim 1, characterized in that, The allocation weights include any one or more of the first weight, second weight, third weight, fourth weight, and fifth weight; The step of calculating the charging power corresponding to the device being charged based on the allocation weight includes: The power weight is calculated based on any one or more of the first weight, the second weight, the third weight, the fourth weight, and the fifth weight, wherein the power weight is not less than 0 and not greater than 1, and the sum of the power weights corresponding to all the charged devices is not less than 0 and not greater than 1. The charging power corresponding to the charging device is obtained by multiplying the power weight by the total power output to all the charging devices.

3. The charging control method according to claim 2, characterized in that, The charging information includes at least the power level; The step of calculating the allocation weight corresponding to the device being charged based on the charging information includes: The first weight is calculated based on the amount of electricity, wherein the amount of electricity is negatively correlated with the first weight.

4. The charging control method according to claim 3, characterized in that, The charging information also includes the total battery capacity; The step of calculating the allocation weight corresponding to the device being charged based on the charging information further includes: Calculate the corresponding power shortage based on the power level and the total battery capacity; The second weight is calculated based on the power shortage, wherein the power shortage is positively correlated with the second weight.

5. The charging control method according to claim 4, characterized in that, The step of calculating the allocation weight corresponding to the device being charged based on the charging information further includes: When the charging information includes the maximum charging power, the third weight is calculated based on the maximum charging power, wherein the maximum charging power is positively correlated with the third weight; When the maximum charging power is not included in the charging information, the temperature rise resistance coefficient and the safe power threshold are obtained from the charging information. The maximum charging power is calculated based on the temperature rise resistance coefficient and the safe power threshold, wherein the temperature rise resistance coefficient is positively correlated with the maximum charging power.

6. The charging control method according to claim 5, characterized in that, The charging information also includes a charging mode coefficient; The step of calculating the allocation weight corresponding to the device being charged based on the charging information further includes: The fourth weight is calculated based on the charging mode coefficient, wherein the charging mode coefficient is used to indicate at least the charging speed requirement of the device being charged, and the charging mode coefficient is positively correlated with the fourth weight.

7. The charging control method according to claim 6, characterized in that, The charging information also includes a mutation coefficient; The step of calculating the allocation weight corresponding to the device being charged based on the charging information further includes: The fifth weight is calculated based on the mutation coefficient, wherein the mutation coefficient is used at least to indicate the abnormal state of the charged device, and the mutation coefficient is negatively correlated with the fifth weight.

8. The charging control method according to any one of claims 1-7, characterized in that, Charging the device being charged with the charging power includes: The target voltage and target current of the device being charged are calculated based on the charging power and the charging protocol, wherein the charging protocol includes at least the charging protocol determined when establishing a communication connection after electrical connection with the device being charged; The device being charged is charged with the target voltage and the target current.

9. A computer-readable storage medium, characterized in that, The device stores computer program instructions that, when executed by a processor, implement the method as described in any one of claims 1-8.

10. A charging device, comprising a memory and a processor, characterized in that, The memory stores a computer program, which, when executed by the processor, performs the method as described in any one of claims 1-8.