Charging control method and device, power supply equipment, readable storage medium and program product
By obtaining the charging demand parameters of the charging device and dynamically adjusting the output power parameters, the problem of unreasonable power distribution when multiple devices are charged simultaneously in the prior art is solved, and an efficient and intelligent charging method is achieved, which improves charging efficiency and compatibility.
Patent Information
- Application Number
- CN202510462368.8
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2025-04-11
- Publication Date
- 2025-07-01
AI Technical Summary
The prior art is difficult to efficiently charge different types of charging equipment, especially when multiple devices are charged at the same time, it is difficult to reasonably distribute power.
Connecting it to the power supply device through the USB interface, obtain the charging demand parameters provided by the charging device, determine the matching output power parameters, and dynamically adjust the output power parameters according to the actual charging status information to achieve more efficient charging.
It realizes dynamic adjustment of the power output method according to the charging needs of different devices, ensures that each device has reasonable power distribution, improves charging efficiency and compatibility, and extends the life of the battery of the charging device.
Smart Images

Figure CN120237772A_ABST
Abstract
Description
Technical Field
[0001] This application relates to the field of charging technologies, and in particular, to a charging control method, apparatus, power supply device, computer-readable storage medium, and computer program product. Background Art
[0002] With the popularization of smart devices and power tools, power management has become a key part of device design.
[0003] In related technologies, after a charging device is connected to a power supply device through a Universal Serial Bus (USB) interface, the power supply device charges the charging device at a fixed output. However, with the continuous increase in the types of charging devices, the charging requirements of different devices have also changed greatly, and the charging methods in related technologies are difficult to efficiently charge different types of devices. Summary of the Invention
[0004] Based on this, it is necessary to provide a charging control method, apparatus, power supply device, computer-readable storage medium, and computer program product for the above technical problems.
[0005] In a first aspect, this application provides a charging control method, including:
[0006] When the charging device is connected to the power supply device through the USB interface, based on the transmission protocol corresponding to the USB interface, obtain the charging requirement parameters provided by the charging device;
[0007] Determine the first output power parameter that matches the charging requirement parameters, and charge the charging device according to the first output power parameter;
[0008] During the process of charging the charging device, determine the actual charging status information of the charging device, and adjust the first output power parameter according to the actual charging status information to obtain a second output power parameter;
[0009] Charge the charging device according to the second output power parameter.
[0010] In one embodiment, the charging requirement parameters provided by the charging device include the charging requirement parameters provided by each of the multiple charging devices;
[0011] The determining the first output power parameter that matches the charging requirement parameters includes:
[0012] According to the charging requirement parameters provided by each of the multiple charging devices, determine the charging priority of each of the multiple charging devices;
[0013] Determine the first output power parameters of the multiple charging devices according to the respective charging priorities; the first output power parameter increases as the charging priority increases.
[0014] In one embodiment, the charging demand parameter includes charging power.
[0015] The determining the first output power parameters of the multiple charging devices according to the respective charging priorities includes:
[0016] Obtain the sum of the charging powers of the multiple charging devices.
[0017] When the sum of the charging powers is greater than the maximum output power of the power supply device, determine the output power distribution ratio according to the charging powers of the multiple charging devices and the respective charging priorities.
[0018] Determine the first output power parameters of the multiple charging devices according to the output power distribution ratio.
[0019] In one embodiment, the determining the respective charging priorities of the multiple charging devices according to the charging demand parameters provided by the multiple charging devices includes:
[0020] Determine the charging powers of the multiple charging devices according to the charging demand parameters provided by the multiple charging devices, and determine the charging priorities of the multiple charging devices according to the respective charging powers; the charging priority increases as the charging power increases; or,
[0021] Determine the device type information of the multiple charging devices according to the charging demand parameters provided by the multiple charging devices, and determine the charging priorities of the multiple charging devices according to the respective device type information; or,
[0022] Determine the importance parameters set by the user for the respective charging devices according to the charging demand parameters provided by the multiple charging devices, and determine the charging priorities of the multiple charging devices according to the respective importance parameters.
[0023] In one embodiment, the charging device includes a charge-discharge device; after charging the charging device according to the second output power parameter, it further includes:
[0024] When the charging stop condition is satisfied, stop charging the discharge device, and when receiving the feedback charging request returned by the charge-discharge device, send a safe feedback power to the charge-discharge device based on the transmission protocol, so that the charge-discharge device feeds back charging to the power supply device according to the safe feedback power.
[0025] In one embodiment, determining the actual charging status information of the charging device includes:
[0026] Receiving the actual current information and / or actual voltage information fed back by the charging device based on the transmission protocol; the actual current information and / or actual voltage information characterize the current and / or voltage actually received by the charging device during the charging process;
[0027] Based on the actual current information and / or actual voltage information, obtaining the actual charging status information of the charging device.
[0028] In a second aspect, the present application also provides a charging control device, including:
[0029] A parameter acquisition module, configured to, when the charging device is connected to the power supply device through a USB interface, obtain the charging demand parameters provided by the charging device based on the transmission protocol corresponding to the USB interface;
[0030] A first output parameter determination module, configured to determine a first output power parameter matching the charging demand parameters, and charge the charging device according to the first output power parameter;
[0031] A second output parameter determination module, configured to, during the charging process of the charging device, determine the actual charging status information of the charging device, and adjust the first output power parameter according to the actual charging status information to obtain a second output power parameter;
[0032] A charging adjustment module, configured to charge the charging device according to the second output power parameter.
[0033] In a third aspect, the present application also provides a power supply device, including a memory and a processor, where the memory stores a computer program, and when the processor executes the computer program, the following steps are implemented:
[0034] When the charging device is connected to the power supply device through a USB interface, obtain the charging demand parameters provided by the charging device based on the transmission protocol corresponding to the USB interface;
[0035] Determine a first output power parameter matching the charging demand parameters, and charge the charging device according to the first output power parameter;
[0036] During the charging process of the charging device, determine the actual charging status information of the charging device, and adjust the first output power parameter according to the actual charging status information to obtain a second output power parameter;
[0037] Charge the charging device according to the second output power parameter.
[0038] In a fourth aspect, the present application further provides a computer-readable storage medium, on which a computer program is stored. When the computer program is executed by a processor, the following steps are implemented:
[0039] When a charging device is connected to a power supply device through a USB interface, based on the transmission protocol corresponding to the USB interface, obtain charging requirement parameters provided by the charging device;
[0040] Determine a first output power parameter that matches the charging requirement parameters, and charge the charging device according to the first output power parameter;
[0041] During the process of charging the charging device, determine the actual charging status information of the charging device, and adjust the first output power parameter according to the actual charging status information to obtain a second output power parameter;
[0042] Charge the charging device according to the second output power parameter.
[0043] In a fifth aspect, the present application further provides a computer program product, including a computer program. When the computer program is executed by a processor, the following steps are implemented:
[0044] When a charging device is connected to a power supply device through a USB interface, based on the transmission protocol corresponding to the USB interface, obtain charging requirement parameters provided by the charging device;
[0045] Determine a first output power parameter that matches the charging requirement parameters, and charge the charging device according to the first output power parameter;
[0046] During the process of charging the charging device, determine the actual charging status information of the charging device, and adjust the first output power parameter according to the actual charging status information to obtain a second output power parameter;
[0047] Charge the charging device according to the second output power parameter.
[0048] The above-mentioned charging control method, device, computer device, computer-readable storage medium and computer program product, when the charging device is connected to the power supply device through a USB interface, the power supply device can obtain the charging demand parameters provided by the charging device based on the transmission protocol corresponding to the USB interface, then determine the first output power parameter matching the charging demand parameters, and charge the charging device according to the first output power parameter. Moreover, during the process of charging the charging device, the actual charging status information of the charging device can also be determined, the first output power parameter can be adjusted according to the actual charging status information to obtain the second output power parameter, and the charging device can be charged according to the second output power parameter. In this embodiment, on the one hand, charging is carried out by determining the first output power parameter matching the charging demand parameters provided by the charging device, which can dynamically adjust the power output mode according to the charging demands of different devices. Especially when multiple charging devices are charging simultaneously, it can ensure that each device receives a reasonable power distribution. On the other hand, by adjusting according to the actual charging status information to obtain the second output power parameter and charging according to the second output power parameter, the power supply device can dynamically adjust the charging mode according to the real-time status of the charging device, avoiding overcharging or overcurrent from damaging the charging device. Thus, it can improve the charging speed while extending the battery life of the charging device, providing a flexible and intelligent power supply method for various charging devices, meeting the power requirements of different devices, and reasonably and effectively improving the charging efficiency and compatibility for various charging devices. BRIEF DESCRIPTION OF THE DRAWINGS
[0049] In order to more clearly illustrate the technical solutions in the embodiments of the present application or related technologies, the following will briefly introduce the drawings required for use in the description of the embodiments of the present application or related technologies. Obviously, the drawings in the following description are only some embodiments of the present application. For those of ordinary skill in the art, without creative efforts, other related drawings can also be obtained based on these drawings.
[0050] Figure 1 It is a diagram of the application environment of a charging control method in an embodiment;
[0051] Figure 2 It is a schematic flowchart of a charging control method in an embodiment;
[0052] Figure 3 It is a diagram of the application environment of another charging control method in an embodiment;
[0053] Figure 4 It is a schematic flowchart of another charging control method in an embodiment;
[0054] Figure 5 It is a block diagram of the structure of a charging control device in an embodiment;
[0055] Figure 6 It is the internal structure diagram of a power supply device in an embodiment. Specific implementation manners
[0056] In order to make the objectives, technical solutions and advantages of the present application clearer and more understandable, the present application will be further described in detail below with reference to the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are only used to explain the present application and are not used to limit the present application.
[0057] The charging control method provided by the embodiments of the present application can be applied to, for example, Figure 1 the application environment shown. In this application environment, there is a power supply device with the function of supplying power (or charging) to other devices, and a charging device that receives power supply (or charging) from other devices. The power supply device and / or the charging device are provided with a USB interface, and the charging device can be wired to the power supply device through this USB interface.
[0058] In some embodiments, the power supply device can be a device with or without a power source. For example, the power supply device can be a device with a power storage module, which can output the electric energy stored in the power storage module to the charging device; in some other embodiments, the power supply device may not have a power storage module, but can distribute the received electric energy to the charging device, such as a power adapter. In some examples, the power supply device can also be referred to as a master device or a power management master controller, which has a power management module, can support USB-related protocols and can control the charging method for the charging device through the power management module to intelligently distribute power output.
[0059] In some exemplary embodiments, the charging device can also be referred to as a slave device; the charging device can be, but is not limited to, various smart devices, embedded systems, power tools, smart homes, etc. connected through a USB interface, such as a personal computer, a laptop computer, a smart phone, a tablet computer, an Internet of Things device, and a portable wearable device. The Internet of Things device can be a smart speaker, a smart TV, a smart air conditioner, a smart vehicle-mounted device, a projection device, etc.
[0060] In an exemplary embodiment, as Figure 2 shown, a charging control method is provided. Taking the power supply device in Figure 1 as an example for description, it includes the following steps S201 to S204.
[0061] S201, when the charging device is connected to the power supply device through the USB interface, based on the transmission protocol corresponding to the USB interface, obtain the charging demand parameters provided by the charging device.
[0062] Among them, the charging demand parameter can describe the charging conditions or charging configurations that need to be met when the charging device is charging. In some examples, the charging demand parameter can include the charging environment, such as one or more of the charging power, charging voltage, charging current, etc. required during charging, such as the maximum charging power, the voltage range supported by the charging device, etc.; in addition, the charging demand parameter can also include the battery condition, such as the battery level that the charging device is expected to reach after charging.
[0063] In a specific implementation, one or more charging devices can be connected to the power supply device through a USB interface. When it is detected that a charging device is connected to the power supply device through the USB interface, the power supply device can communicate with the charging device through the transmission protocol related to the USB interface, so as to obtain the charging demand parameter provided by the charging device and quickly identify the charging demands of various connected charging devices.
[0064] For example, after the charging device is connected to the power supply device through the USB interface, the power supply device can detect the device connection status through the handshake process of the transmission protocol corresponding to the USB interface. After the handshake is completed, the charging device can send its current charging demand parameter through the transmission protocol. Exemplarily, the power supply device can communicate with the charging device through the transmission corresponding to USB to obtain the Power Data Object (PDO) sent by the charging device to the charging device; among them, the PDO can be a data object representing the output capacity of the power supply device and / or the consumption capacity of the charging device. For example, the charging device can inform the power supply device of one or more of the voltage required by the charging device, the current required, and the current battery status (such as the battery percentage, charging mode, etc.) by sending the PDO. Furthermore, the power supply device can extract information such as the voltage, current, and power range supported by the charging device according to the PDO.
[0065] In some embodiments, the transmission protocol corresponding to the USB interface can be the USB Power Delivery (USB-PD) protocol. As a USB standard that supports high-power charging, the USB-PD protocol can provide higher power output and support bidirectional power transmission. However, in the related art, most of the chargers using the USB-PD protocol have a fixed output and lack intelligent power management capabilities, and cannot intelligently allocate power according to the needs of different charging devices, resulting in slow charging for some devices or even inefficient charging. In this regard, in this embodiment, the charging demand parameter provided by the charging device can be obtained by using the USB-PD protocol.
[0066] In some other embodiments, the transmission protocol corresponding to the USB interface can also be the USB standard charging protocol, which can include the basic charging specifications defined by interface standards such as USB Type-A and USB Type-C.
[0067] S202. Determine a first output power parameter that matches the charging demand parameter, and charge the charging device according to the first output power parameter.
[0068] After the power supply device obtains the charging demand parameter, the power supply device can adjust the charging method for different chargings according to the charging demand parameters provided by different charging devices. Specifically, the power supply device can determine an output power parameter that matches the charging demand parameter, where the output power parameter can describe the output power magnitude of the power supply device. For example, it can be the output power, or it can be the output current and output voltage. For the sake of distinction, the output power parameter determined by the power supply device according to the charging demand parameter is called the first output power parameter.
[0069] It can be understood that in this application, when the charging demand parameter changes, the first output power parameter can change accordingly. Thus, for various charging demand parameters provided by various charging devices, the power supply device can control the charging method by adjusting the first output power parameter. For example, the larger the charging power in the charging demand parameter, the larger the first output power parameter. Also, when the allowable charging voltage indicated by the voltage range in the charging demand parameter decreases, the first output power parameter can also decrease accordingly. Therefore, it is possible to flexibly adjust the power output to different charging devices in a differentiated and intelligent manner according to the power requirements of each device, while ensuring the charging efficiency, providing a reasonable distribution of power during the charging process, and prolonging the battery life of the charging device.
[0070] S203. During the process of charging the charging device, determine the actual charging status information of the charging device, and adjust the first output power parameter according to the actual charging status information to obtain a second output power parameter.
[0071] In practical applications, when the power supply device charges the charging device according to the first output power parameter, it can monitor the charging device to obtain the actual charging status information that can characterize the device status of the charging device during the charging process. In some embodiments, the power supply device can monitor the status of the charging device in real time.
[0072] Furthermore, the power supply device can adjust the first output power parameter accordingly according to the actual charging status information to obtain an adjusted output power parameter. For the sake of distinction, the adjusted output power parameter is called the second output power parameter. For example, if the actual charging status information indicates that the battery of the charging device is about to be fully charged, that is, the current power of the charging device is greater than a preset power threshold, the power management module in the power supply device can gradually reduce the current output and switch to the trickle charging mode to avoid overcharging. If the actual charging status information indicates that the charging device has an abnormality, such as overcurrent or overheating of the charging device, the power management module in the power supply device can immediately interrupt the power output of the device and notify the user.
[0073] S204, charge the charging device according to the second output power parameter.
[0074] Since the second output power parameter is more suitable for the current charging state of the charging device, after obtaining the second output power parameter, the charging can be carried out according to the second output power parameter.
[0075] In the above charging control method, when the charging device is connected to the power supply device through the USB interface, the power supply device can obtain the charging demand parameter provided by the charging device based on the transmission protocol corresponding to the USB interface, then determine the first output power parameter matching the charging demand parameter, and charge the charging device according to the first output power parameter. Moreover, during the charging process of the charging device, the actual charging state information of the charging device can also be determined, and the first output power parameter can be adjusted according to the actual charging state information to obtain the second output power parameter, and the charging device is charged according to the second output power parameter. In this embodiment, on the one hand, by determining the first output power parameter that matches the charging demand parameter provided by the charging device for charging, the power output mode can be dynamically adjusted according to the charging demands of different devices. Especially when multiple charging devices are charging simultaneously, it can ensure that each device receives a reasonable power distribution. On the other hand, by adjusting to obtain the second output power parameter according to the actual charging state information and charging according to the second output power parameter, the power supply device can dynamically adjust the charging method according to the real-time state of the charging device, avoiding overcharging or overcurrent damage to the charging device. Thus, while improving the charging speed, the battery life of the charging device can be extended, providing a flexible and intelligent power supply method for various charging devices, meeting the power requirements of different devices, and reasonably and effectively improving the charging efficiency and compatibility for various charging devices.
[0076] In one embodiment, the power supply device is connected with multiple charging devices through the USB interface, and the charging demand parameters provided by the charging devices include the charging demand parameters provided by each of the multiple charging devices. Correspondingly, in step S202, determining the first output power parameter matching the charging demand parameter may include the following steps:
[0077] Determine the charging priorities of each of the multiple charging devices according to the charging demand parameters provided by each of the multiple charging devices; determine the first output power parameter of each of the multiple charging devices according to each charging priority; the first output power parameter increases as the charging priority increases.
[0078] Specifically, when the power supply of the power supply device is limited and multiple charging devices are connected, if charging each charging device according to a unified output power parameter, it may lead to the charging speeds of each charging device being relatively close, and it is difficult to preferentially meet the power consumption requirements of individual charging devices.
[0079] In this embodiment, when multiple charging devices are simultaneously connected to the power supply device, the power supply device can determine the respective charging priorities of the multiple charging devices according to the charging demand parameters provided by each of the multiple charging devices, where the charging priority refers to the level of priority for allocating charging power. Then, according to each charging priority, the respective first output power parameters of the multiple charging devices can be determined.
[0080] In this embodiment, the power supply device can support powering multiple charging devices simultaneously, and can accurately know the charging priorities of each charging device during each charging process through the respective charging demand parameters provided by the transmission protocol, and differentially adjust the respective first output power parameters of each charging device, giving higher priority to the charging devices with higher priority and urgent charging needs to allocate a larger power output, differentially meeting the charging needs of different devices during the same charging process, and ensuring the maximization of the charging efficiency of each device.
[0081] In one embodiment, the charging demand parameter includes the charging power; determining the respective first output power parameters of the multiple charging devices according to each charging priority may include the following steps:
[0082] Obtain the sum of the charging powers of the multiple charging devices; when the sum of the charging powers is greater than the maximum output power of the power supply device, determine the output power distribution ratio according to the respective charging powers of the multiple charging devices and each charging priority; determine the respective first output power parameters of the multiple charging devices according to the output power distribution ratio.
[0083] In practical applications, the power supply device can determine whether the power output capacity meets the requirements. Specifically, when there are multiple charging devices connected to the power supply device, it can be determined whether the power requirements of multiple devices are met. In this embodiment, the charging powers of the multiple charging devices can be summed up to obtain the sum of the charging powers.
[0084] When the sum of the charging powers is greater than the maximum output power of the power supply device, it can be determined that the power supply device cannot meet the charging needs of all charging devices. At this time, the output power distribution ratio can be determined according to the respective charging powers of the multiple charging devices and each charging priority.
[0085] For example, a power supply device is connected to three charging devices, namely a mobile phone, a tablet computer, and a laptop. Among them, the charging power requirement of the mobile phone is 5W, and the charging priority is set to 3 (the larger the priority value, the higher the priority); the charging power requirement of the tablet computer is 10W, and the charging priority is set to 2; the charging power requirement of the laptop is 65W, and the charging priority is set to 1. After determining the above information, first, calculate the total sum of the charging powers of all devices, that is, 5W + 10W + 65W = 80W. Then, allocate power according to the priority. Since the mobile phone has the highest priority, first meet the charging power requirement of the mobile phone. Assume that the total output power of the charger is 60W. After meeting the 5W charging power of the mobile phone, the remaining power is 60W - 5W = 55W. Next, consider the tablet computer. Since its priority is the second highest, allocate 10W to it from the remaining 55W power. At this time, the remaining power is 55W - 10W = 45W. Finally, although the laptop has a large power requirement, its priority is the lowest, so allocate the remaining 45W power to it. Then, the output power distribution ratio can be calculated based on 5W, 10W, and 45W.
[0086] After determining the output power distribution ratio, the first output power parameters of each of the multiple charging devices can be determined according to this ratio.
[0087] In this embodiment, the output power distribution ratio can be determined according to the charging power and priority of each charging device, which can give priority to meeting the charging needs of high-priority devices and reasonably allocate the remaining power to other devices. Thus, each charging device can complete charging as quickly as possible within its own allowable conditions, improving the overall charging efficiency.
[0088] In one embodiment, according to the charging requirement parameters provided by each of the multiple charging devices, determining the charging priority of each of the multiple charging devices may include the following steps:
[0089] According to the charging requirement parameters provided by each of the multiple charging devices, determine the charging power of each of the multiple charging devices, and determine the charging priority of the multiple charging devices according to each charging power; the charging priority increases as the charging power increases; or, according to the charging requirement parameters provided by each of the multiple charging devices, determine the device type information of each of the multiple charging devices, and determine the charging priority of the multiple charging devices according to each device type information; or, according to the charging requirement parameters provided by each of the multiple charging devices, determine the importance parameters set by the user for each charging device, and determine the charging priority of the multiple charging devices according to each importance parameter.
[0090] In specific implementation, the charging demand parameter may include the charging power of the charging device. Through multiple charging demand parameters, the charging powers of multiple charging devices can be determined respectively. Furthermore, the charging priorities can be determined according to the respective charging powers, so that the demands of high-power charging devices can be satisfied preferentially, enabling the high-power charging devices to complete fast charging as soon as possible.
[0091] Of course, the charging demand parameter may also include the device type information of the charging device. The device type information can indicate the specific device type of the charging device, such as mobile phone, laptop, etc. In addition, the power supply device can also pre-determine the charging priorities of various device types in advance. For example, the device types with higher user usage frequencies can be set to higher charging priorities. Thus, the power supply device can determine the charging priorities of multiple charging devices according to the device type information of each device, and preferentially satisfy the charging of specific types of charging devices.
[0092] For another example, the user can customize the importance parameter of each charging device. The importance parameter can represent the importance degree of the charging device to the user or the urgency degree of the user using the charging device currently. After setting the importance parameters of each charging device, the charging device can carry it in the charging demand parameter and send it to the power supply device. Then, the power supply device can determine the charging priorities of multiple charging devices according to the respective importance parameters of multiple charging devices, thereby charging the charging devices that the user needs to use preferentially.
[0093] It can be understood that through this embodiment, the power supply device can support multiple devices to charge through the USB-related transmission protocol, and can intelligently identify the power demands of different devices, with strong compatibility and adaptability to various devices and charging scenarios.
[0094] In one embodiment, the charging device may include a charge-discharge device. Herein, the charge-discharge device refers to a device that has both a charging function and a power receiving function, such as a mobile power supply, a device supporting bidirectional power transmission (such as a smart home battery module), etc. Correspondingly, after step S204, the method may further include the following steps:
[0095] When the charging stop condition is satisfied, stop charging the discharging device, and when receiving the feedback charging request returned by the charge-discharge device, send a safe feedback power to the charge-discharge device based on the transmission protocol, so that the charge-discharge device feeds back charging to the power supply device according to the safe feedback power.
[0096] In a specific implementation, the power supply device can determine whether the charging stop condition is met. For example, it can obtain the actual charging status information of the charging device at a preset time interval. The actual charging status information can include the current battery level of the charging device. When the actual charging status information indicates that the current battery level of the charging device reaches a preset threshold, it can be determined that the charging stop condition is met. Another example is that if a stop charging command is received from the device, it can be determined that the charging stop condition is met.
[0097] After stopping charging, when the charge-discharge device determines that there is excess power, it can determine whether to feedback the excess power to the power supply device. If so, it can send a feedback charging request to the power supply device, and this request indicates that the charge-discharge device performs feedback charging to the power supply device. Furthermore, when receiving the feedback charging request returned by the charge-discharge device, the power supply device can send a safe feedback power to the charge-discharge device based on the transmission protocol, and the safe feedback power indicates the safe charging power when charging the power supply device. Subsequently, the charge-discharge device can control the power transmission method to feedback charge to the power supply device according to the safe feedback power.
[0098] In some embodiments, after receiving the feedback charging request, the power supply device can also determine whether the feedback charging power is greater than a preset power threshold, or whether there are other charging devices that are still charging when there are multiple charging devices. If the feedback charging power is greater than the preset power threshold or there are other charging devices that are still charging, the power supply device can trigger to execute sending a safe feedback power to the charge-discharge device, so as to receive the power feedback from the charge-discharge device only when there is more power or there are still other charging devices that need to be charged, reducing unnecessary device loss or power loss.
[0099] In this embodiment, when receiving the feedback charging request returned by the charge-discharge device, by sending a safe feedback power to the charge-discharge device based on the transmission protocol, enabling the charge-discharge device to feedback charge to the power supply device according to the safe feedback power, on the one hand, it can fully recover the excess power resources in the charging device, achieving an energy-saving effect, and on the other hand, it also ensures the safety of the feedback charging, ensuring that the feedback charging power does not exceed the safety limit of the power supply device.
[0100] In one embodiment, in step S202, determining the actual charging status information of the charging device may include the following steps:
[0101] Receiving the actual current information and / or actual voltage information feedback by the charging device based on the transmission protocol; the actual current information and / or actual voltage information characterize the actual current and / or voltage received by the charging device during the charging process; obtaining the actual charging status information of the charging device according to the actual current information and / or actual voltage information.
[0102] In practical applications, during the process of the power supply device charging the charging device according to the first output power parameter, the charging device can feedback its charging status to the power supply device based on a feedback mechanism. Specifically, the charging device can feedback the actual current information and / or actual voltage information of the charging device to the power supply device through the transmission protocol corresponding to the USB interface. For example, during the charging process, the charging device can dynamically feedback the actually received current and voltage through the USB-PD protocol. Furthermore, the power supply device can obtain the actual charging status information of the charging device according to the actual current information and / or actual voltage information, and optimize the first output power parameter based on this. For example, if the actual current information and actual voltage information are less than the current and voltage corresponding to the first output power parameter, the power supply device can increase the first output power parameter. If the actual current information and actual voltage information are greater than the current and voltage corresponding to the first output power parameter, the power supply device can decrease the first output power parameter.
[0103] In addition, if the power required by the charging device changes, for example, the load of one or more charging devices increases or decreases, the charging device can actively send new charging demand parameters to the power supply device, and the power supply device can respond to this update in real time, reallocate power according to the updated charging demand parameters, and obtain a new first output power parameter.
[0104] In this embodiment, by the charging device actively feedbacking the actual current information or actual voltage information, enabling the power supply device to obtain the actual charging status information, it helps the power supply device to timely obtain accurate and reliable actual charging status information and dynamically adjust the charging strategy. On the one hand, it can achieve fast and efficient charging, and on the other hand, it can also prevent the device from being damaged due to overload, overheating, etc., and extend the service life of the device and the battery.
[0105] To enable those skilled in the art to better understand the above steps, the following exemplarily illustrates the embodiments of the present application through an example, but it should be understood that the embodiments of the present application are not limited thereto.
[0106] As Figure 3 shown, another application environment diagram of the charging control method is provided. In this application environment, the master device (power management master controller) can be connected to multiple slave devices (including slave device 1, slave device 2, and slave device 3) through the USB interface. The power management module in the master device can include a USB-PD protocol control module, a power distribution module, and a data monitoring module. The power management module is integrated in the master device and is responsible for adjusting the output voltage and current through the USB-PD protocol according to the power requirements of each slave device to achieve dynamic power distribution.
[0107] In practical applications, as Figure 4As shown, the master device can detect the access of the slave device through the USB-PD protocol, and obtain the power requirements (i.e., charging requirement parameters) submitted by multiple slave devices through the messages of the USB-PD protocol after the handshake is completed.
[0108] Then, it can be determined whether the power output capability meets the conditions, that is, to determine whether the maximum output power (current total power) of the master device meets the power requirements of one or more slave devices, and combine its own output capability to determine the adapted output power parameters and dynamically allocate power to each slave device. Specifically, if the maximum output power of the master device meets the power requirements of one or more slave devices, power can be directly dynamically allocated to each slave device according to the power requirements of multiple slave devices; if not, a proportional allocation strategy or dynamic power allocation according to device importance can be adopted to each slave device. During the process of dynamically allocating power, the power management module adjusts the output voltage and current in real time by controlling the internal DC-DC converter.
[0109] During the charging process, the master device can monitor the output status in real time. For example, the actual charging status information can be obtained in real time through the current sensor and voltage sensor of the master device or the slave device. Then, the output power parameters are dynamically adjusted according to the monitoring results to avoid problems such as overcharging and overcurrent, and effectively extend the service life of the device battery.
[0110] In addition, bidirectional power transfer is supported between the master device and the slave device. When the slave device does not need power, it can feed back the power to the master device, effectively saving energy.
[0111] It should be understood that although the steps in the flowcharts involved in the above-described embodiments are shown in sequence according to the arrows, these steps are not necessarily executed in the order indicated by the arrows. Unless there is a clear indication in this article, the execution of these steps has no strict order limit, and these steps can be executed in other orders. Moreover, at least a part of the steps in the flowcharts involved in the above-described embodiments may include multiple steps or multiple stages. These steps or stages are not necessarily executed at the same moment, but can be executed at different moments, and the execution order of these steps or stages is not necessarily sequential, but can be executed alternately or alternately with at least a part of other steps or steps or stages in other steps.
[0112] Based on the same inventive concept, the embodiments of the present application also provide a charging control device for implementing the charging control method involved above. The implementation solutions provided by this device to solve problems are similar to the implementation solutions described in the above method. Therefore, the specific limitations in one or more embodiments of the charging control device provided below can refer to the limitations on the charging control method in the above text, and will not be repeated here.
[0113] In an exemplary embodiment, as Figure 5 shown, a charging control device is provided, including:
[0114] A parameter acquisition module 501, configured to, when a charging device is connected to a power supply device through a USB interface, acquire charging demand parameters provided by the charging device based on the transmission protocol corresponding to the USB interface;
[0115] A first output parameter determination module 502, configured to determine a first output power parameter matching the charging demand parameters, and charge the charging device according to the first output power parameter;
[0116] A second output parameter determination module 503, configured to, during the process of charging the charging device, determine the actual charging status information of the charging device, and adjust the first output power parameter according to the actual charging status information to obtain a second output power parameter;
[0117] A charging adjustment module 504, configured to charge the charging device according to the second output power parameter.
[0118] In one embodiment, the charging demand parameters provided by the charging device include the charging demand parameters provided by each of the multiple charging devices;
[0119] The first output parameter determination module 502 is configured to:
[0120] Determine the charging priorities of each of the multiple charging devices according to the charging demand parameters provided by each of the multiple charging devices;
[0121] Determine the first output power parameter of each of the multiple charging devices according to each of the charging priorities; the first output power parameter increases as the charging priority increases.
[0122] In one embodiment, the charging demand parameters include charging power;
[0123] The first output parameter determination module 502 is configured to:
[0124] Obtain the sum of the charging powers of each of the multiple charging devices;
[0125] When the sum of the charging powers is greater than the maximum output power of the power supply device, determine an output power distribution ratio according to the charging power of each of the multiple charging devices and each of the charging priorities;
[0126] Determine the first output power parameter of each of the multiple charging devices according to the output power distribution ratio.
[0127] In one embodiment, the first output parameter determination module 502 is configured to:
[0128] Determine the charging power of each of the multiple charging devices according to the charging demand parameters provided by each of the multiple charging devices, and determine the charging priority of each of the multiple charging devices according to each charging power; the charging priority increases as the charging power increases; or,
[0129] Determine the device type information of each of the multiple charging devices according to the charging demand parameters provided by each of the multiple charging devices, and determine the charging priority of each of the multiple charging devices according to each device type information; or,
[0130] Determine the importance parameters set by the user for each of the multiple charging devices according to the charging demand parameters provided by each of the multiple charging devices, and determine the charging priority of each of the multiple charging devices according to each importance parameter.
[0131] In one embodiment, the charging device includes a charge-discharge device; the apparatus is further configured to:
[0132] When the charging stop condition is satisfied, stop charging the discharge device, and when receiving the feedback charging request returned by the charge-discharge device, send a safe feedback power to the charge-discharge device based on the transmission protocol, so that the charge-discharge device feeds back and charges the power supply device according to the safe feedback power.
[0133] In one embodiment, the second output parameter determination module 503 is configured to:
[0134] Receive the actual current information and / or actual voltage information fed back by the charging device based on the transmission protocol; the actual current information and / or actual voltage information characterizes the current and / or voltage actually received by the charging device during the charging process;
[0135] Obtain the actual charging status information of the charging device according to the actual current information and / or actual voltage information.
[0136] Each module in the above charging control device can be implemented in whole or in part by software, hardware, and their combination. Each of the above modules can be embedded in or independent of the processor in the computer device in the form of hardware, or stored in the memory of the computer device in the form of software, so that the processor can call and execute the operations corresponding to each of the above modules.
[0137] In an exemplary embodiment, a power supply device is provided, and its internal structure diagram can be as Figure 6As shown. The computer device may include a processor, a memory, an input / output interface, and a communication interface. Among them, the processor, the memory, and the input / output interface are connected through a system bus, and the communication interface is connected to the system bus through the input / output interface. Among them, the processor of the computer device is used to provide computing and control capabilities. The memory of the computer device includes a non-volatile storage medium and an internal memory. The non-volatile storage medium stores an operating system and a computer program. The internal memory provides an environment for the operation of the operating system and the computer program in the non-volatile storage medium. The input / output interface of the computer device is used to exchange information between the processor and external devices. The communication interface of the computer device is used to communicate with external terminals in a wired or wireless manner, and the wireless manner can be implemented through WIFI, a mobile cellular network, near field communication (NFC), or other technologies. When the computer program is executed by the processor, it implements a charging control method.
[0138] Those skilled in the art can understand that Figure 6 the structure shown in is only a block diagram of some structures related to the solution of the present application, and does not constitute a limitation on the computer device to which the solution of the present application is applied. The specific computer device may include more or fewer components than those shown in the figure, or combine some components, or have different component arrangements.
[0139] In one embodiment, a computer device is provided, including a memory and a processor. A computer program is stored in the memory, and when the processor executes the computer program, the steps in the above method embodiments are implemented.
[0140] In one embodiment, a computer-readable storage medium is provided, on which a computer program is stored. When the computer program is executed by the processor, the steps in the above method embodiments are implemented.
[0141] In one embodiment, a computer program product is provided, including a computer program. When the computer program is executed by the processor, the steps in the above method embodiments are implemented.
[0142] 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 for analysis, stored data, displayed data, etc.) involved in the present application are all information and data authorized by the user or fully authorized by all parties, and the collection, use, and processing of relevant data need to comply with relevant regulations.
[0143] Those of ordinary skill in the art can understand that all or part of the processes in the methods of the above embodiments can be completed by instructing relevant hardware through a computer program. The computer program can be stored in a non-volatile computer-readable storage medium. When the computer program is executed, it can include the processes of the embodiments of the above methods. Among them, any reference to a memory, database, or other medium used in the embodiments provided in the present application can include at least one of non-volatile memory and volatile memory. Non-volatile memory can include read-only memory (ROM), magnetic tape, floppy disk, flash memory, optical memory, high-density embedded non-volatile memory, resistive random access memory (ReRAM), magnetoresistive random access memory (MRAM), ferroelectric random access memory (FRAM), phase change memory (PCM), graphene memory, etc. Volatile memory can include random access memory (RAM) or external cache memory, etc. By way of illustration and not limitation, RAM can be in various forms, such as static random access memory (SRAM) or dynamic random access memory (DRAM), etc. The databases involved in the embodiments provided in the present application can include at least one of relational databases and non-relational databases. Non-relational databases can include distributed databases based on blockchain, etc., without limitation. The processors involved in the embodiments provided in the present application can be general-purpose processors, central processors, graphics processors, digital signal processors, programmable logic devices, data processing logics based on quantum computing, artificial intelligence (AI) processors, etc., without limitation.
[0144] The technical features of the above embodiments can be combined arbitrarily. For the sake of concise description, not all possible combinations of the technical features in the above embodiments are described. However, as long as there is no contradiction in the combination of these technical features, it should be considered as the scope recorded in the present application.
[0145] The above-described embodiments merely represent several implementation manners of the present application. The description thereof is relatively specific and detailed, but it should not be construed as a limitation on the patent scope of the present application. It should be noted that for those of ordinary skill in the art, without departing from the concept of the present application, several modifications and improvements can still be made, and these all fall within the protection scope of the present application. Therefore, the protection scope of the present application shall be subject to the appended claims.
Claims
1. A charging control method, characterized in that: The method comprises: When the charging device is connected to the power supply device via a USB interface, obtaining a charging requirement parameter provided by the charging device based on a transmission protocol corresponding to the USB interface; Determining a first output power parameter that matches the charging demand parameter, and charging the charging device according to the first output power parameter; During charging of the charging device, determining actual charging state information of the charging device, adjusting the first output power parameter according to the actual charging state information, and obtaining a second output power parameter; The charging device is charged according to the second output power parameter.
2. The method according to claim 1, characterized in that The charging requirement parameters provided by the charging device include charging requirement parameters provided by each of the plurality of charging devices; The determining a first output power parameter matching the charging requirement parameter includes: Determining the charging priority of each of the plurality of charging devices according to the charging requirement parameters respectively provided by the plurality of charging devices; According to each of the charging priorities, a first output power parameter of each of the plurality of charging devices is determined; the first output power parameter increases as the charging priority increases.
3. The method according to claim 2, characterized in that The charging requirement parameter includes charging power; The determining, according to each of the charging priorities, respective first output power parameters of the plurality of charging devices comprises: Obtaining the sum of the charging powers of the respective charging powers of the plurality of charging devices; When the sum of the charging powers is greater than the maximum output power of the power supply device, determining the output power allocation ratio according to the respective charging powers of the plurality of charging devices and the respective charging priorities; According to the output power allocation ratio, a first output power parameter of each of the plurality of charging devices is determined.
4. The method according to claim 3, characterized in that: The step of determining the charging priority of each of the plurality of charging devices according to the charging requirement parameters respectively provided by the plurality of charging devices comprises: Determine the charging power of each of the plurality of charging devices according to the charging demand parameters provided by each of the plurality of charging devices, and determine the charging priority of the plurality of charging devices according to each of the charging powers; the charging priority increases with the increase of the charging power; or Determine the device type information of each of the plurality of charging devices according to the charging requirement parameters provided by each of the plurality of charging devices, and determine the charging priority of the plurality of charging devices according to the device type information; or According to the charging demand parameters respectively provided by the plurality of charging devices, an importance parameter set by the user for each of the charging devices is determined, and according to each of the importance parameters, a charging priority of the plurality of charging devices is determined.
5. The method according to claim 1, characterized in that The charging device includes a charging and discharging device; after charging the charging device according to the second output power parameter, it also includes: When the charging stop condition is met, charging the discharging device is stopped, and when a feedback charging request returned by the charging and discharging device is received, safe feedback power is sent to the charging and discharging device based on the transmission protocol, so that the charging and discharging device feeds back charging to the power supply device according to the safe feedback power.
6. The method according to any one of claims 1 to 5, characterized in that The determining the actual charging status information of the charging device includes: Receiving actual current information and / or actual voltage information fed back by the charging device based on the transmission protocol; the actual current information and / or actual voltage information represent the current and / or voltage actually received by the charging device during the charging process; The actual charging state information of the charging device is obtained according to the actual current information and / or the actual voltage information.
7. A charging control device, characterized in that: The device comprises: A parameter acquisition module, used to acquire the charging requirement parameters provided by the charging device based on the transmission protocol corresponding to the USB interface when the charging device is connected to the power supply device via the USB interface; a first output parameter determination module, configured to determine a first output power parameter matching the charging demand parameter, and charge the charging device according to the first output power parameter; A second output parameter determination module is used to determine the actual charging state information of the charging device during the charging process of the charging device, and adjust the first output power parameter according to the actual charging state information to obtain a second output power parameter; A charging adjustment module is used to charge the charging device according to the second output power parameter.
8. A power supply device, comprising a memory and a processor, wherein the memory stores a computer program, characterized in that: When the processor executes the computer program, the steps of the method according to any one of claims 1 to 6 are implemented.
9. A computer-readable storage medium having a computer program stored thereon, characterized in that: When the computer program is executed by a processor, the steps of the method according to any one of claims 1 to 6 are implemented.
10. A computer program product, comprising a computer program, characterized in that When the computer program is executed by a processor, the steps of the method according to any one of claims 1 to 6 are implemented.