Power distribution method and apparatus, storage medium, and charging device

By testing multiple electronic devices with different power values, charging parameters are obtained and charging power is dynamically allocated, solving the problem of power waste when charging multiple devices and improving compatibility and charging efficiency.

CN115313549BActive Publication Date: 2026-01-13ANKER INNOVATIONS TECH CO LTD
View PDF 3 Cites 0 Cited by

Patent Information

Application Number
CN202210939029.0
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2022-08-05
Publication Date
2026-01-13
Estimated Expiration
2042-08-05

AI Technical Summary

Technical Problem

Existing charging devices struggle to effectively allocate power when charging multiple electronic devices simultaneously, resulting in wasted power and a poor charging experience.

Method used

By providing each electronic device with at least two different power values ​​for testing, its preset charging parameters are obtained, and charging power is dynamically allocated to each device based on these parameters to formulate a reasonable power allocation strategy that takes into account the differences in charging modes of each device.

Benefits of technology

It improves the power utilization of charging devices, enhances compatibility with different electronic devices, improves the charging experience, and avoids power waste.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN115313549B_ABST
    Figure CN115313549B_ABST
Patent Text Reader

Abstract

Embodiments of the present application disclose a power distribution method and device, a storage medium and a charging device. The power distribution method comprises: detecting, by the charging device, a charging request of an electronic device, the number of the electronic devices being at least one; providing, by the charging device, test power with at least two different power values to each electronic device in response to the charging request of the electronic device, to obtain a preset charging parameter in each electronic device, the charging parameter comprising at least one of the following parameters: minimum charging power and maximum charging power; and distributing, by the charging device, charging power to each electronic device according to the preset charging parameter in each electronic device. The embodiments of the present application can reasonably distribute power to each electronic device when at least one electronic device is charging through the charging device, improve charging efficiency, and avoid power waste.
Need to check novelty before this filing date? Find Prior Art

Description

TECHNICAL FIELD

[0001] The present application relates to the technical field of charging, in particular to a power distribution method and device, a storage medium and a charging equipment. BACKGROUND

[0002] Nowadays, digital enthusiasts commonly use more and more electronic devices, such as mobile phones, tablets, earphones, smart watches and the like. Many consumers often have multiple electronic devices at the same time. However, from the power design of these mainstream products, the endurance capability still has certain shortcomings, and needs to be charged frequently to supplement the power. When charging the numerous electronic devices, if an independent adapter is used, it often needs to occupy a considerable number of socket holes, which is slightly troublesome. Therefore, a product of a charging equipment with multiple output ports appears in the market, such as a charger / mobile power supply with three PD (Power Delivery protocol) output interfaces or three USB output interfaces. SUMMARY

[0003] The embodiments of the present application provide a power distribution method, device, storage medium and charging equipment, which can reasonably distribute power for each electronic device when at least one electronic device is charged by the charging equipment, improve the charging efficiency, and avoid power waste. The technical solutions are as follows:

[0004] In a first aspect, the embodiments of the present application provide a power distribution method, comprising:

[0005] The charging equipment detects a charging request of an electronic device, and the number of the electronic devices is at least one;

[0006] The charging equipment provides test power with at least two different power values to each electronic device respectively in response to the charging request of the electronic device, obtains preset charging parameters in each electronic device, and the charging parameters at least include one of the following parameters: minimum charging power and maximum charging power;

[0007] The charging equipment distributes charging power for each electronic device according to the preset charging parameters in each electronic device.

[0008] In a second aspect, the embodiments of the present application provide a power distribution device, comprising:

[0009] The receiving request module is configured to detect a charging request of an electronic device, and the number of the electronic devices is at least one;

[0010] The parameter test module is configured to provide test power with at least two different power values to each electronic device respectively in response to the charging request of the electronic device, obtain preset charging parameters in each electronic device, and the charging parameters at least include one of the following parameters: minimum charging power and maximum charging power.

[0011] The power distribution module is configured to distribute charging power to each electronic device according to the preset charging parameter in each electronic device.

[0012] In a third aspect, an embodiment of the present application provides a computer storage medium, which stores a plurality of instructions. The instructions are suitable for being loaded by a processor and performing the method steps described above.

[0013] In a fourth aspect, an embodiment of the present application provides an electronic device, which can include a processor and a memory. The memory stores a computer program, which is suitable for being loaded by the processor and performing the method steps described above.

[0014] The technical solutions provided by some embodiments of the present application have at least the following beneficial effects:

[0015] The present application provides at least two different test powers to the electronic device to test the electronic device, thereby obtaining the preset charging parameter in each electronic device, and providing the charging parameter as a basis when formulating a power distribution strategy for at least one electronic device, thereby dynamically distributing the total charging power provided by the charging device to at least one electronic device according to the power distribution strategy under the premise of meeting the demand of each electronic device for charging power, taking into account the differences between various electronic devices caused by different charging modes, improving the compatibility of various electronic devices, effectively improving the power utilization rate of the charging device, avoiding power waste, and improving the charging experience of at least one electronic device when charging through the charging device. BRIEF DESCRIPTION OF DRAWINGS

[0016] In order to more clearly illustrate the technical solutions in the embodiments of the present application or the prior art, the following will briefly introduce the drawings needed to be used in the embodiments or the prior art description. Obviously, the drawings in the following description are only some embodiments of the present application, and for those skilled in the art, other drawings can also be obtained without creative labor on the basis of these drawings.

[0017] Figure 1 is an architecture schematic diagram of a power distribution method provided by an embodiment of the present application;

[0018] Figure 2 is a flowchart of a power distribution method provided by an embodiment of the present application;

[0019] Figure 3 is a flowchart of a power distribution method provided by an embodiment of the present application;

[0020] Figure 4 is a flowchart of a power distribution method provided by an embodiment of the present application;

[0021] Figure 5 is a table of target charging modes and target frequency step values provided by an embodiment of the present application;

[0022] Figure 6 is a structural schematic diagram of a power distribution device provided by an embodiment of the present application;

[0023] Figure 7 is a structural schematic diagram of a charging device provided by an embodiment of the present application. DETAILED DESCRIPTION

[0024] The technical solutions in the embodiments of the present application will be clearly and completely described in conjunction with the drawings in the embodiments of the present application. Obviously, the described embodiments are only part of the embodiments of the present application, rather than all the embodiments of the present application. Based on the embodiments in the present application, all other embodiments obtained by a person of ordinary skill in the art without creative work fall within the scope of protection of the present application.

[0025] In the description of the present application, it should be understood that the terms "first", "second" and the like are used only for the purpose of description, and should not be understood as indicating or implying relative importance. In the description of the present application, it should be noted that, unless otherwise explicitly specified and limited, "including" and "having" and any variants thereof are intended to cover non-exclusive inclusion. For example, a process, method, system, product or device including a series of steps or units is not limited to the listed steps or units, but optionally includes steps or units not listed, or optionally includes other steps or units inherent to the process, method, product or device. The specific meaning of the above terms in the present application can be understood by the person of ordinary skill in the art. In addition, in the description of the present application, "multiple" means two or more, unless otherwise specified. "And / or", which describes the association between the associated objects, means that there can be three relationships, for example, A and / or B can mean that A exists alone, A and B exist together, and B exists alone. The character " / " generally represents an "or" relationship between the associated objects before and after it.

[0026] The present application will be described in detail below in conjunction with specific embodiments.

[0027] In the present application, as shown in Figure 1 is an architectural schematic diagram of a power distribution method provided by an embodiment of the present application, including: a charging device 101, a first electronic device 1021, a second electronic device 1022, a third electronic device 1023, a fourth electronic device 1024, and a fifth electronic device 1025. It can be understood that, Figure 1The number and type of the first electronic device 1021, the second electronic device 1022, the third electronic device 1023, the fourth electronic device 1024, and the fifth electronic device 1025 shown in FIG. 1 are only illustrative, and the present application also includes any other type of electronic device.

[0028] The charging device 101 is a device that provides charging power to the electronic device through the charging interface of the charging device 101 based on a charging protocol, so that the electronic device is charged. For example, the general charging protocol can be the USB PD (USB Power Delivery, USB power transmission protocol) protocol, and the charging device 101 can be a power adapter or a mobile power supply with multiple charging interfaces. The charging protocol corresponding to each charging interface can be the same or different.

[0029] The electronic device 102 (terminal device) includes, but is not limited to, a mobile station (MS), a mobile terminal, a mobile telephone, a handset, and a portable equipment, etc. The electronic device 102 can be connected to the charging device 101 through a wired handshake, and further charged by the charging power provided by the charging device 101, so as to realize various functions by using electric energy. For example, the electronic device 1023 can be a mobile phone (also known as a "cellular" phone), a computer with wireless communication function, etc., and can also be a portable, pocket-sized, handheld, built-in computer, or a vehicle-mounted mobile device or equipment. As shown in FIG. 1, the electronic device 102 includes a mobile phone, a tablet, a computer, a display, a projector, etc. Figure 1

[0030] In one embodiment, as shown in FIG. 1, a power distribution method is provided for the embodiments of the present application. The method is executed by the charging device, can be implemented by relying on a computer program, and can be run on a power distribution device based on the von Neumann architecture. The computer program can be integrated in an application, or can be run as an independent tool application. Figure 2

[0031] Specifically, the power distribution method includes:

[0032] S101, the charging device detects a charging request of the electronic device.

[0033] ​​The number of the electronic devices is at least one, the charging device detects whether the charging request from the electronic device is received through the charging interface and the number of the charging request. For example, the type of the charging interface is a Type-C interface, when the charging device detects that the voltage of the ground pin of the charging interface is lower than the preset voltage, it is determined that the electronic device is connected to the charging interface, that is, the charging request of the electronic device is received through the charging interface.

[0034] S102, in response to the charging request of the electronic device, the charging parameter preset in each electronic device is obtained by providing at least two test powers with different power values to each electronic device respectively.

[0035] The charging parameter at least includes one of the parameters: minimum charging power, maximum charging power, and in other embodiments, the charging parameter can also include one or more of the following parameters: fixed charging frequency of the electronic device, power triggering the over-protection function of the electronic device, etc. The charging parameter is a preset value stored in the memory of the electronic device.

[0036] In one embodiment, the method for obtaining the charging parameter preset in each electronic device by providing at least two test powers with different power values to each electronic device respectively is: obtaining the charging parameter of the electronic device according to the voltage value and the current value of the electronic device based on each test power.

[0037] For example, the charging device obtains at least two test powers with different power values stored in the memory, for example, two test powers with different power values include 15W, 30W, 45W and 60W; the charging device provides at least two test powers with different power values to the electronic device, and records the voltage value and the current value of the electronic device based on each test power, for example, the charging device provides a test power with a power value of 15W to the electronic device, detects that the voltage value of the electronic device is 3V and the current value is 5A, and the charging device provides a test power with a power value of 30W to the electronic device, detects that the voltage value of the electronic device is 15V and the current value is 2A; the charging device obtains the charging parameter of the electronic device according to the voltage value and the current value of the electronic device based on each test power, for example, it is detected that the voltage value of the electronic device based on the test power of 15W is 3V and the current value is 5A, it is detected that the voltage value of the electronic device based on the test power of 30W is 3V and the current value is 5A, and it is detected that the over-protection of the electronic device is triggered when the test power of 45W is detected. Therefore, it is determined that the charging parameter of the electronic device includes the fixed charging frequency of 15W and the maximum charging frequency of less than or equal to 45W.

[0038] S103, dynamically allocating charging power to each electronic device according to the charging parameter preset in each electronic device.

[0039] The charging parameters preset in each electronic device are used to formulate a distribution rule for dynamically distributing charging power to each electronic device, so that the charging power is distributed to each electronic device at the same time according to the distribution rule. It is worth noting that the number of electronic devices is at least one, and the sum of the charging power of the electronic devices is less than or equal to the maximum power provided by the charging device when the at least one electronic device is charged at the same time.

[0040] For example, the distribution rule is to preferentially meet the charging demand of the electronic device with large power or the electronic device supporting full-power charging on the premise that the minimum charging power corresponding to each charging device in the at least one charging device is provided. That is, after determining the electronic device with the maximum charging power or the electronic device supporting full-power charging according to the charging parameters preset in each electronic device, providing the minimum charging power corresponding to each charging device in the at least one charging device, and then preferentially distributing the remaining charging power to the electronic device.

[0041] It can be understood that the above distribution rule is only an example, and any distribution rule for dynamically distributing charging power when charging at least one electronic device can be set by a person skilled in the art as needed.

[0042] The present application tests the electronic device by providing at least two different power values of test power to the electronic device, thereby obtaining the charging parameters preset in each electronic device, and providing the charging parameters as a basis when formulating a power distribution strategy for at least one electronic device, thereby dynamically distributing the total charging power provided by the charging device to the at least one electronic device according to the power distribution strategy on the premise of meeting the demand of each electronic device for charging power, taking into account the differences between various electronic devices caused by different charging modes, improving the compatibility of various electronic devices, and effectively improving the power utilization rate of the charging device, avoiding power waste, and improving the charging experience of at least one electronic device charged by the charging device at the same time.

[0043] In one embodiment, as shown in Figure 3 A power distribution method is provided for the embodiment of the present application, which is executed by a charging device, can be realized by relying on a computer program, and can be run on a power distribution device based on the von Neumann system. The computer program can be integrated in an application or run as an independent tool application.

[0044] Specifically, the power distribution method includes:

[0045] S201, the charging device detects a charging request of at least one electronic device.

[0046] Referring to S101 described above, details are not repeated here.

[0047] S202, in response to the charging request of the electronic device, the charging device obtains the target test method of each electronic device and the second test power corresponding to the target test method by providing the first test power of at least two different power values to the electronic device.

[0048] Due to the use demand or production demand of the electronic device, the charging modes of the electronic devices are not completely the same. The charging mode is used to indicate that the electronic device charges based on the target charging frequency and charging behavior corresponding to the charging mode, and the charging behavior corresponding to each charging mode is different. In this application, different test methods are used according to the different charging modes of the electronic device to obtain the charging parameters corresponding to each electronic device.

[0049] In this embodiment, the charging mode of the electronic device includes at least four kinds, the first charging mode is that the electronic device supports full power charging, the second charging mode is that the electronic device only charges according to the first power received for the first time, the third charging mode is that the electronic device only charges according to the second power, and the fourth charging mode is that the electronic device charges according to the power greater than or equal to the third power.

[0050] When the electronic device supports full power charging, that is, the electronic device is in the first charging mode, the corresponding first test method of the charging device is to stop providing the second test power of at least two different power values to the electronic device. When the electronic device only charges according to the first power received for the first time, that is, the electronic device is in the second charging mode, the corresponding second test method is to provide the electronic device with at least two second test powers obtained according to at least two first test powers. When the electronic device only charges according to the second power, that is, the electronic device is in the third charging mode, the corresponding third test method is to provide the electronic device with at least two second test powers obtained according to the second power and the first step value. When the electronic device charges according to the power greater than or equal to the third power, that is, the electronic device is in the fourth charging mode, the corresponding fourth test method is to provide the electronic device with at least two second test powers obtained according to the third power and the second step value; the target test power is the first power or the second power or the third power.

[0051] The second test frequency corresponding to the different test methods is different. In an embodiment, the at least two second test powers corresponding to the second test method are obtained by removing a first target test power from the at least two first test powers, and the first target power is a first power in the process of charging the electronic device according to the first power received for the first time. For example, the at least two first test powers are 15W, 30W, 45W, 60W and 75W, and the at least two second test powers corresponding to the second test method are 30W, 45W, 60W and 75W, and the first target test power 15W is removed from the first test frequency. The first step value corresponding to the third test method is less than the second step value corresponding to the fourth test method. The step value can be understood as the interval value between each second test power. For example, the first step value corresponding to the third test method is 5W, and the second step value corresponding to the fourth test method is 15W.

[0052] It can be understood that the number of second test powers and the number of first test powers can be the same or different, and can be set by the technician as needed.

[0053] In an embodiment, the charging device obtains the voltage value and / or the current value of the electronic device based on each first test power by providing the electronic device with at least two different power values of the first test power; obtains the target test method of each electronic device according to the voltage value and / or the current value of the electronic device based on each first test power, and at least two different power values of the second test power corresponding to the target test method.

[0054] For example, it is detected that the voltage value of the electronic device based on the first test power of 15W is 3V, and the current value is 5A, it is detected that the voltage value of the electronic device based on the first test power of 30W is 3V, and the current value is 5A, and it is detected that the over-protection is triggered when the electronic device based on the first test power of 45W, it is determined that the target charging mode of the electronic device is the third charging mode, that is, the electronic device is the third test method, and the second power corresponding to the third test method is 15W; further, at least two second test powers corresponding to the third test method are obtained in the memory of the charging device, for example, the first step value corresponding to the preset third test method is 5W, and the second frequency is 15W, so at least two second test powers corresponding to the third test method are the second frequency P0+5W, that is, at least two second test powers are 20W, 25W, 30W, 35W and 40W.

[0055] It can be understood that the above embodiment is an implementation of obtaining the target charging mode of the electronic device based on the voltage value and the current value of the electronic device based on each first test power, and the present application also includes an implementation of obtaining the target test method of the electronic device based on the voltage value or the current value of the electronic device based on each first test power.

[0056] In this embodiment, by obtaining the target test method corresponding to each electronic device, the second test power required for the second test is obtained. Taking into full account the differences in charging behavior of various electronic devices, at least two values ​​of the second test power are reasonably set to improve the accuracy of obtaining the preset charging parameters in the electronic device.

[0057] A second test power obtained through at least two different power values ​​using the target test method. For example... Figure 4 The diagram shown is a table of power values ​​corresponding to the second test power of a target test method provided in this application embodiment. The at least two second test powers corresponding to the second test method are obtained by removing the first target test power from at least two first test powers. For example, multiple first test power values ​​are 15W, 30W, 45W, and 60W. When the electronic device only receives the first power P... start During charging, the second test power values ​​corresponding to the second test method for this electronic device are 30W, 45W, and 60W; when the electronic device only uses the second power P fix During charging, the third test method corresponding to this electronic device has multiple second test powers of P. fix +5W; when the electronic device is based on a power greater than or equal to the third power P max If the electronic device is charged using a power of P, then the multiple second test powers corresponding to the fourth test method for this electronic device are P. max +15W, the number of second test power units can be set by relevant personnel as needed.

[0058] Understandable Figure 4 The values ​​shown are merely examples. This application also includes any other possible values, which can be set as needed by those skilled in the art.

[0059] S203. Based on the preset charging parameters and charging time in each electronic device, dynamically allocate charging power to the electronic device according to the preset cycle.

[0060] Based on preset charging parameters in each electronic device, a dynamic charging power allocation rule is established for each electronic device. This allocation rule is related to the charging duration, so that when at least one electronic device is charging simultaneously, the allocated charging power is continuously adjusted according to the charging duration based on a preset period. The preset period can be any duration set by relevant technical personnel, such as 1 minute, 30 seconds, or 2 minutes. This application comprehensively considers the charging duration and charging parameters of the electronic devices, and adjusts the charging power allocated to each electronic device based on the preset period.

[0061] For example, the allocation rule could be to prioritize charging the electronic device with the lowest fixed power to full power, and as the charging time increases, reduce the charging power allocated to the electronic device with the lowest fixed power, while further allocating any excess power to the electronic device with the next lowest fixed power. It is understood that the above allocation rule is merely an example, and those skilled in the art can set any allocation rule to dynamically allocate charging power when charging at least one electronic device, as needed.

[0062] This application tests electronic devices by providing them with at least two different power values ​​to obtain preset charging parameters for each electronic device. These parameters serve as the basis for formulating a power allocation strategy for at least one electronic device. Thus, while meeting the charging power requirements of each electronic device, the total charging power provided by the charging device is dynamically allocated to at least one electronic device according to the power allocation strategy. This takes into account the differences between various electronic devices due to different charging modes, improves compatibility with various electronic devices, effectively improves the power utilization rate of the charging device, avoids power waste, and improves the charging experience when at least one electronic device is charging simultaneously through the charging device.

[0063] In one embodiment, such as Figure 5 The diagram illustrates a power distribution method proposed in this application. This method is executed by a charging device, can be implemented using a computer program, and can run on a power distribution device based on the von Neumann architecture. The computer program can be integrated into the application or run as a standalone utility application.

[0064] Specifically, the power allocation method includes:

[0065] S301, The charging device detects a charging request from an electronic device.

[0066] See S101 above; it will not be repeated here.

[0067] S302. Detect whether a charging request has been received from an electronic device through the target charging interface.

[0068] The target charging interface is a charging interface established based on a preset target charging protocol. The charging device receives charging requests from electronic devices based on the target charging interface. For example, if the target charging protocol is the USB-A protocol, then the target charging interface is a USB-A interface.

[0069] S303. If a charging request is received from an electronic device through the target charging interface, in response to receiving the charging request from the electronic device through the target charging interface, a preset power value of charging power is provided to the electronic device corresponding to the target charging interface.

[0070] The charging device responds to a charging request received from an electronic device via a target charging interface, providing a preset power value to the electronic device corresponding to the target charging interface. For example, if the target charging interface is a USB-A interface, when a charging request is received from an electronic device through this target interface, it does not need to test the charging parameters of the electronic device through a first test power. Instead, it provides the electronic device with a preset power value of 25W corresponding to the USB-A protocol, prioritizing the charging power of the electronic device. This application also includes other types of target interfaces, which can be configured as needed by those skilled in the art.

[0071] This embodiment further expands the types of electronic devices and charging scenarios that the charging device can be adapted to by providing a preset power value to the electronic device corresponding to the preset target charging interface, thereby improving the practicality of the charging device.

[0072] S304. In response to a charging request from an electronic device, by providing each electronic device with a first test power of at least two different power values, a voltage value and a current value for each electronic device based on each first test power are obtained.

[0073] The charging device obtains the voltage and current values ​​of each electronic device based on each first test power by providing each electronic device with at least two different power values. For example, if the charging device provides the electronic device with a first test power of 15W, the detected voltage value of the electronic device is 3V and the current value is 5A; if the charging device provides the electronic device with a first test power of 30W, the detected voltage value of the electronic device is 15V and the current value is 2A.

[0074] In one embodiment, the charging device detects whether the charging cable between itself and the electronic device is a pre-configured charging cable. If the charging device detects whether the charging cable between itself and the electronic device is a pre-configured charging cable, it obtains the pre-configured charging parameters of each electronic device by providing each electronic device with at least two different power values ​​of the first test power. The first test power with at least two different power values ​​includes the first test power with a power value exceeding a pre-configured power threshold.

[0075] For example, the preset charging cable is an Emark charging cable that supports high-power charging. When the charging device detects that the charging cable between itself and the electronic device is the preset charging cable, the first test power provided to the electronic device includes a first test power greater than 75W. When the charging device detects that the charging cable between itself and the electronic device is not the preset charging cable, the first test power provided to the electronic device is less than 75W. This application includes any method for detecting whether a charging cable is a preset charging cable.

[0076] This embodiment detects whether the charging cable between the electronic device and the charging device meets the preset configuration, thereby adjusting the power values ​​of the first test power and the second test power provided to the charging device. For example, when the charging cable is a charging cable that supports high-power charging, the upper limit of the power value of the first test power of at least two different power values ​​is increased, thereby improving the accuracy of obtaining the charging parameters of the electronic device.

[0077] S305. Based on the voltage and current values ​​of the electronic device under each first test power, obtain the target test method for each electronic device and the second test power corresponding to at least two different power values ​​for the target test method.

[0078] Different charging modes correspond to different test methods for electronic devices. The charging mode is used to indicate whether the electronic device should charge based on the target charging frequency and charging behavior corresponding to the charging mode. The charging behavior is different for each charging mode. The charging device obtains the target test method for each electronic device and the second test power with at least two different power values ​​corresponding to the target test method, based on the voltage and current values ​​of the electronic device under each first test power.

[0079] In one embodiment, the charging mode includes at least a first charging mode, a second charging mode, a third charging mode, and a fourth charging mode. The first charging mode corresponds to a first test method, the second charging mode corresponds to a second test method, the third charging mode corresponds to a third test method, and the fourth charging mode corresponds to a fourth test method. The first charging mode allows the electronic device to support full-power charging, the second charging mode allows the electronic device to charge only based on the first power received initially, the third charging mode allows the electronic device to charge only based on the second power, and the fourth charging mode allows the electronic device to charge based on a power greater than or equal to the third power. The target test power is the first power, the second power, or the third power.

[0080] For example, when an electronic device supporting a second charging mode receives multiple first test power values ​​with different power values, it only uses the first received first test power P. start Charging is performed, with the target test frequency being the first test power P received on the first test. start Electronic devices supporting a third charging mode, when receiving multiple different power values ​​in the first test, will only charge based on the second power P. fix Charging begins, second power P fix The first test frequency can be one of multiple first test frequencies with different power values, or it can be obtained by electronic devices based on the voltage and current values ​​under each first test power, and the second power P fix The power value and the first test power P startThe power values ​​are not the same. When an electronic device supporting the fourth charging mode receives multiple different first test power values, it will determine the power value based on whether it is greater than or equal to the third power P. max It can only receive charging power from multiple first test power sources that is greater than or equal to the third power P. max The first test power was used for charging, and the third power P max It can be a first test frequency among multiple first test frequencies with different power values, or obtained by electronic devices based on the voltage and current values ​​under each first test power.

[0081] The charging device obtains the voltage and current values ​​of each electronic device based on each first test power by providing each electronic device with a first test power of at least two different power values; based on the voltage and current values ​​of each electronic device based on each first test power, it obtains the target test method for each electronic device and the second test power of at least two different power values ​​corresponding to the target test method.

[0082] For example, if the electronic device is detected to have a voltage of 3V and a current of 5A based on a first test power of 15W, a voltage of 3V and a current of 5A based on a first test power of 30W, and an over-protection is triggered when the electronic device is detected to have a first test power of 45W, then the target charging mode of the electronic device is determined to be the third charging mode, that is, the electronic device is using the third test method, and the second power corresponding to the third test method is 15W. Further, at least two second test powers corresponding to the third test method are retrieved from the charging device's memory. For example, if the preset first step value of the third test method is 5W and the second frequency is 15W, then the at least two second test powers corresponding to the third test method are the second frequency P0+5W, that is, at least two second test powers are 20W, 25W, 30W, 35W, and 40W.

[0083] S306. Disconnect from electronic equipment.

[0084] After providing each electronic device with a first test power of at least two different power values ​​and obtaining the target test method corresponding to the electronic device, and a second test power of at least two different power values ​​corresponding to the target test method, disconnect the connection with each electronic device.

[0085] S307. Send a handshake connection request to the electronic device to reconnect with the electronic device.

[0086] The charging device requests a reconnection with the electronic device through a handshake connection to ensure the accuracy of the preset charging parameters obtained by the electronic device based on a second test power with at least two different power values. For example, it improves the accuracy of obtaining the current and voltage values ​​of the electronic device under each second test power and avoids interference from the first test power.

[0087] In particular, when acquiring the charging parameters of an electronic device that supports a second charging mode, i.e., an electronic device that charges only based on the first power received the first time, it is necessary to reconnect the electronic device in order to provide a second test power that is different from the power value of the first test power ranked first among at least two first test powers received by the electronic device.

[0088] S308. Provide a second test power to the electronic device based on at least two different power values ​​corresponding to the electronic device, and obtain the preset charging parameters in the electronic device.

[0089] See S203, which will not be repeated here.

[0090] S309. Dynamically allocate charging power to each electronic device according to the preset charging parameters in each electronic device.

[0091] See S103, which will not be repeated here.

[0092] This application tests electronic devices by providing them with at least two different power values ​​to obtain preset charging parameters for each electronic device. These parameters serve as the basis for formulating a power allocation strategy for at least one electronic device. Thus, while meeting the charging power requirements of each electronic device, the total charging power provided by the charging device is dynamically allocated to at least one electronic device according to the power allocation strategy. This takes into account the differences between various electronic devices due to different charging modes, improves compatibility with various electronic devices, effectively improves the power utilization rate of the charging device, avoids power waste, and improves the charging experience when at least one electronic device is charging simultaneously through the charging device.

[0093] The following are embodiments of the apparatus described in this application, which can be used to execute the embodiments of the method described in this application. For details not disclosed in the apparatus embodiments of this application, please refer to the embodiments of the method described in this application.

[0094] Please see Figure 6 This illustration shows a schematic diagram of a power distribution device provided in an exemplary embodiment of this application. The power distribution device can be implemented as all or part of a device through software, hardware, or a combination of both. The power distribution device includes a request receiving module 601, a parameter testing module 602, and a power distribution module 603.

[0095] The request receiving module 601 is used to detect charging requests from electronic devices, wherein the number of electronic devices is at least one.

[0096] The parameter testing module 602 is used to respond to the charging request of the electronic device and obtain the preset charging parameters of each electronic device by providing at least two different power values ​​of test power to each electronic device. The charging parameters include at least one of the following parameters: minimum charging power and maximum charging power.

[0097] The power distribution module 603 is used to distribute charging power to each electronic device according to the preset charging parameters in each electronic device.

[0098] In one embodiment, the parameter testing module 602 includes:

[0099] The first test unit is used to respond to the charging request of the electronic device, and obtain the target test method corresponding to the electronic device and the second test power corresponding to the target test method with at least two different power values ​​by providing the electronic device with a first test power of at least two different power values.

[0100] The second test unit is used to provide the electronic device with a second test power of at least two different power values ​​corresponding to the electronic device, so as to obtain the preset charging parameters in the electronic device.

[0101] In one embodiment, the target testing method includes at least one or more of the first testing method, the second testing method, the third testing method, and the fourth testing method;

[0102] When an electronic device supports full-power charging, the first test method is to stop providing the electronic device with a second test power of at least two different power values.

[0103] When the electronic device is charged only based on the first power received for the first time, the second test method is to provide the electronic device with at least two second test powers obtained based on at least two first test powers;

[0104] When the electronic device is charged based solely on the second power, the third test method is to provide the electronic device with at least two second test powers obtained based on the second power and the first step value;

[0105] When the electronic device is charged with a power greater than or equal to the third power, the fourth test method is to provide the electronic device with at least two second test powers obtained based on the third power and the second step value;

[0106] The target test power is the first power, the second power, or the third power.

[0107] In one embodiment, the at least two second test powers corresponding to the second test method are obtained by removing the first target test power from the at least two first test powers;

[0108] The first step value corresponding to the third test method is less than the second step value corresponding to the fourth test method.

[0109] In one embodiment, the second test unit includes:

[0110] The current-voltage subunit is used to provide the electronic device with a second test power based on at least two different power values ​​obtained from the target test power and the target power step value, so as to obtain the voltage and / or current value of the electronic device based on each second test power.

[0111] The parameter calculation subunit is used to obtain the preset charging parameters of each electronic device based on the voltage and / or current values ​​of each electronic device under each second test power.

[0112] In one embodiment, the parameter testing module 602 includes:

[0113] Disconnection unit, used to disconnect from electronic devices;

[0114] The reconnection unit is used to send a handshake connection request to the electronic device in order to reconnect to the electronic device.

[0115] In one embodiment, the power distribution module 603 includes:

[0116] The dynamic allocation unit is used to dynamically allocate charging power to at least one electronic device based on preset charging parameters and charging time in each electronic device and a preset period.

[0117] This application tests electronic devices by providing them with at least two different power values ​​to obtain preset charging parameters for each electronic device. These parameters serve as the basis for formulating a power allocation strategy for at least one electronic device. Thus, while meeting the charging power requirements of each electronic device, the total charging power provided by the charging device is dynamically allocated to at least one electronic device according to the power allocation strategy. This takes into account the differences between various electronic devices due to different charging modes, improves compatibility with various electronic devices, effectively improves the power utilization rate of the charging device, avoids power waste, and improves the charging experience when at least one electronic device is charging simultaneously through the charging device.

[0118] It should be noted that the power distribution device provided in the above embodiments is only illustrated by the division of the above functional modules when executing the power distribution method. In practical applications, the above functional allocation can be completed by different functional modules as needed, that is, the internal structure of the device can be divided into different functional modules to complete all or part of the functions described above. In addition, the power distribution device and the power distribution method embodiments provided in the above embodiments belong to the same concept, and the implementation process is detailed in the method embodiments, which will not be repeated here.

[0119] The sequence numbers of the embodiments in this application are for descriptive purposes only and do not represent the superiority or inferiority of the embodiments.

[0120] This application also provides a computer storage medium that can store multiple instructions, which are adapted to be loaded and executed by a processor as described above. Figures 1-5 The power allocation method of the illustrated embodiment can be found in the following document for a detailed execution process: Figures 1-5 The specific details of the illustrated embodiments will not be elaborated here.

[0121] This application also provides a computer program product that stores at least one instruction, which is loaded and executed by a processor as described above. Figures 1-5 The power allocation method of the illustrated embodiment can be found in the following document for a detailed execution process: Figures 1-5 The specific details of the illustrated embodiments will not be elaborated here.

[0122] Please see Figure 7 This is a schematic diagram of the structure of a charging device provided in an embodiment of this application. Figure 7 As shown, the electronic device 700 may include: at least one processor 701, at least two charging interfaces 703, a memory 704, and at least one communication bus 702.

[0123] The communication bus 702 is used to enable communication between these components.

[0124] Among them, at least two charging ports 703 are used to receive charging requests from electronic devices and to allocate test power or charging power to electronic devices.

[0125] The processor 701 may include one or more processing cores. The processor 701 connects to various parts of the server 700 using various interfaces and lines, and performs various functions and processes data of the charging device 700 by running or executing instructions, programs, code sets, or instruction sets stored in memory 705, and by calling data stored in memory 704. Optionally, the processor 701 may be implemented using at least one hardware form of Digital Signal Processing (DSP), Field-Programmable Gate Array (FPGA), or Programmable Logic Array (PLA). The processor 701 may integrate one or a combination of several of the following: Central Processing Unit (CPU), Graphics Processing Unit (GPU), and modem. It is understood that the aforementioned modem may also not be integrated into the processor 701 and may be implemented as a separate chip.

[0126] The memory 704 may include random access memory (RAM) or read-only memory. Optionally, the memory 704 may include a non-transitory computer-readable storage medium. The memory 704 can be used to store instructions, programs, code, code sets, or instruction sets. The memory 704 may include a program storage area and a data storage area, wherein the program storage area may store instructions for implementing an operating system, instructions for at least one function (such as touch function, sound playback function, image playback function, etc.), instructions for implementing the above-described method embodiments, etc.; the data storage area may store data involved in the above-described method embodiments, etc. Optionally, the memory 704 may also be at least one storage device located remotely from the aforementioned processor 701. Figure 7 As shown, the memory 704, which serves as a computer storage medium, may include a power allocation application.

[0127] exist Figure 7 In the charging device 700 shown, the processor 701 can be used to call the power distribution application stored in the memory 704 and specifically perform the following operations:

[0128] A charging request from an electronic device is detected; there is at least one electronic device.

[0129] In response to a charging request from an electronic device, by providing at least two different power values ​​of test power to each electronic device, preset charging parameters for each electronic device are obtained. The charging parameters include at least one of the following parameters: minimum charging power and maximum charging power.

[0130] Based on the preset charging parameters in each electronic device, the charging power is allocated to each electronic device.

[0131] In one embodiment, the processor 701 executes the charging device in response to a charging request from an electronic device by providing at least two different power values ​​of test power to each electronic device to obtain preset charging parameters for each electronic device. Specifically, the following is performed:

[0132] In response to a charging request from an electronic device, the charging device obtains a target test method for the electronic device and a second test power with at least two different power values ​​corresponding to the target test method by providing the electronic device with a first test power of at least two different power values.

[0133] The charging device provides the electronic device with a second test power of at least two different power values ​​corresponding to the electronic device, thereby obtaining the preset charging parameters in the electronic device.

[0134] In one embodiment, the target testing method includes at least one or more of the first testing method, the second testing method, the third testing method, and the fourth testing method;

[0135] When an electronic device supports full-power charging, the first test method is to stop providing the electronic device with a second test power of at least two different power values.

[0136] When the electronic device is charged only based on the first power received for the first time, the second test method is to provide the electronic device with at least two second test powers obtained based on at least two first test powers;

[0137] When the electronic device is charged based solely on the second power, the third test method is to provide the electronic device with at least two second test powers obtained based on the second power and the first step value;

[0138] When the electronic device is charged with a power greater than or equal to the third power, the fourth test method is to provide the electronic device with at least two second test powers obtained based on the third power and the second step value;

[0139] The target test power is the first power, the second power, or the third power.

[0140] In one embodiment, the at least two second test powers corresponding to the second test method are obtained by removing the first target test power from the at least two first test powers;

[0141] The first step value corresponding to the third test method is less than the second step value corresponding to the fourth test method.

[0142] In one embodiment, the processor 701 executes a second test power by having the charging device provide the electronic device with at least two different power values ​​corresponding to the electronic device, thereby obtaining preset charging parameters in the electronic device. Specifically, the following is performed:

[0143] The charging device obtains the voltage and / or current values ​​of the electronic device based on each second test power by providing the electronic device with at least two different power values ​​of the second test power.

[0144] The charging device obtains the preset charging parameters in the electronic device based on the voltage and / or current values ​​of the electronic device under each second test power.

[0145] In one embodiment, before the processor 701 executes the charging device's response to a charging request from an electronic device, by providing the electronic device with a first test power of at least two different power values ​​to obtain a target test method corresponding to the electronic device, and after the processor 701 executes the second test power of at least two different power values ​​corresponding to the target test method, and before the charging device provides the electronic device with the second test power of at least two different power values ​​corresponding to the electronic device to obtain the preset charging parameters in the electronic device, the following is also executed:

[0146] The charging device disconnects from the electronic device;

[0147] The charging device sends a handshake connection request to the electronic device in order to reconnect with the electronic device.

[0148] In one embodiment, the processor 701 executes the charging device to allocate charging power to each electronic device according to preset charging parameters in each electronic device, specifically:

[0149] The charging device dynamically allocates charging power to at least one electronic device based on preset charging parameters and charging time in each electronic device and a preset cycle.

[0150] This application tests electronic devices by providing them with at least two different power values ​​to obtain preset charging parameters for each electronic device. These parameters serve as the basis for formulating a power allocation strategy for at least one electronic device. Thus, while meeting the charging power requirements of each electronic device, the total charging power provided by the charging device is dynamically allocated to at least one electronic device according to the power allocation strategy. This takes into account the differences between various electronic devices due to different charging modes, improves compatibility with various electronic devices, effectively improves the power utilization rate of the charging device, avoids power waste, and improves the charging experience when at least one electronic device is charging simultaneously through the charging device.

[0151] Those skilled in the art will understand that all or part of the processes in the methods of the above embodiments can be implemented by a computer program instructing related hardware. The program can be stored in a computer-readable storage medium, and when executed, it can include the processes of the embodiments of the methods described above. The storage medium can be a magnetic disk, optical disk, read-only memory, or random access memory, etc.

[0152] The above-disclosed embodiments are merely preferred embodiments of this application and should not be construed as limiting the scope of this application. Therefore, any equivalent variations made in accordance with the claims of this application shall still fall within the scope of this application.

Claims

1. A power distribution method, characterized in that, The method is applicable to charging devices, and the method includes: The charging device detects a charging request from an electronic device, wherein the number of electronic devices is at least one. In response to the charging request of the electronic device, the charging device obtains the preset charging parameters of each electronic device by providing at least two different power values ​​of test power to each electronic device. The charging parameters include at least one of the following parameters: minimum charging power and maximum charging power. The charging device allocates charging power to each electronic device according to the preset charging parameters in each electronic device; The charging device responds to the charging request of the electronic device by providing at least two different power values ​​of test power to each electronic device to obtain preset charging parameters for each electronic device, including: In response to a charging request from an electronic device, the charging device provides the electronic device with at least two different power values ​​as first test power to obtain the voltage and / or current values ​​of the electronic device based on each first test power. Based on the voltage and / or current values ​​of the electronic device based on each first test power, a target test method corresponding to the charging mode of the electronic device is obtained, as well as a second test power with at least two different power values ​​corresponding to the target test method. The charging device provides the electronic device with the second test power with at least two different power values ​​corresponding to the electronic device to obtain preset charging parameters in the electronic device.

2. The power distribution method according to claim 1, characterized in that, The target testing method includes at least one or more of the first testing method, the second testing method, the third testing method, and the fourth testing method; When the electronic device supports full-power charging, the first test method is to stop providing the electronic device with a second test power of at least two different power values. When the electronic device is charged only based on the first power received for the first time, the second test method is to provide the electronic device with at least two second test powers obtained based on the at least two first test powers; when the electronic device is charged only based on the second power, the third test method is to provide the electronic device with at least two second test powers obtained based on the second power and the first step value. When the electronic device is charged with a power greater than or equal to the third power, the fourth test method is to provide the electronic device with at least two second test powers obtained based on the third power and the second step value.

3. The power distribution method according to claim 2, characterized in that, The at least two second test powers corresponding to the second test method are obtained by removing the first target test power from the at least two first test powers; The first step value corresponding to the third test method is less than the second step value corresponding to the fourth test method.

4. The power distribution method according to claim 1, characterized in that, The charging device provides the electronic device with a second test power of at least two different power values ​​corresponding to the electronic device, thereby obtaining preset charging parameters in the electronic device, including: The charging device obtains the voltage and / or current values ​​of the electronic device based on each of the second test powers by providing the electronic device with at least two different power values ​​of the second test power. The charging device obtains preset charging parameters in the electronic device based on the voltage and / or current values ​​of the electronic device under each second test power.

5. The power distribution method according to claim 1, characterized in that, In response to the charging request of the electronic device, the charging device obtains the voltage and / or current values ​​of the electronic device based on each first test power by providing the electronic device with at least two different power values ​​of the first test power. Based on the voltage and / or current values ​​of the electronic device under each first test power, a target test method corresponding to the charging mode of the electronic device is obtained, and a second test power with at least two different power values ​​corresponding to the target test method is obtained. Before obtaining the preset charging parameters in the electronic device, the charging device provides the electronic device with the second test power with at least two different power values ​​corresponding to the electronic device. The charging device disconnects from the electronic device; The charging device sends a handshake connection request to the electronic device to reconnect with the electronic device.

6. The power distribution method according to claim 1, characterized in that, The charging device allocates charging power to each electronic device according to preset charging parameters in each electronic device, including: The charging device dynamically allocates charging power to at least one of the electronic devices based on preset charging parameters and charging duration in each electronic device and a preset period.

7. A power distribution device, characterized in that, The device includes: A request receiving module is used to detect charging requests from electronic devices, wherein the number of electronic devices is at least one. The parameter testing module is used to respond to the charging request of the electronic device by providing at least two different power values ​​of test power to each electronic device to obtain the preset charging parameters of each electronic device. The charging parameters include at least one of the following parameters: minimum charging power and maximum charging power. A power allocation module is used to allocate charging power to each of the electronic devices according to preset charging parameters in each of the electronic devices; The parameter testing module includes: A first testing unit is configured to respond to a charging request from the electronic device by providing the electronic device with at least two different power values ​​of a first testing power, thereby obtaining the voltage and / or current values ​​of the electronic device based on each first testing power; and based on the voltage and / or current values ​​of the electronic device based on each first testing power, to obtain a target testing method corresponding to the charging mode of the electronic device, and a second testing power with at least two different power values ​​corresponding to the target testing method. The second test unit is used to provide the electronic device with a second test power of at least two different power values ​​corresponding to the electronic device, so as to obtain the preset charging parameters in the electronic device.

8. A computer storage medium, characterized in that, The computer storage medium stores a plurality of instructions, which are adapted to be loaded by a processor and executed as the method steps of any one of claims 1 to 6.

9. A charging device, characterized in that, include: A processor and a memory; wherein the memory stores a computer program adapted to be loaded by the processor and executed the method steps as claimed in any one of claims 1 to 6.

Citation Information

Patent Citations

  • Peak power testing method, testing device and computer readable storage medium

    CN109799458A

  • Battery power characteristic test method and device

    CN114527387A

  • Charging device

    CN114759632A