Charging method and device, computer equipment, readable storage medium and program product

By introducing acquisition modules, classification modules, first charging modules and second charging modules into the charging device, the problem of inaccurate power demand identification in traditional charging technology is solved, flexible charging management of power-taking equipment is realized, and charging efficiency and device battery life are improved.

CN119995083APending Publication Date: 2025-05-13SHENZHEN ROMOSS TECH
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202510030192.9
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2025-01-08
Publication Date
2025-05-13

AI Technical Summary

Technical Problem

Traditional multi-head charging technology has inaccuracy in identifying the degree of power demand for equipment, making it difficult to flexibly adapt to the charging needs of emergencies.

Method used

By introducing a acquisition module, a classification module, a first charging module and a second charging module in the charging device, it is used to obtain the charge state of the power acquisition device, classify it as a main charging device and a secondary charging device, and charge the main charging device and the secondary charging device according to different charging powers.

Benefits of technology

Accurate identification and flexible adjustment of the power requirements of power in power-supply equipment can be adaptively adjusted in emergencies, improving charging efficiency and device battery life.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119995083A_ABST
    Figure CN119995083A_ABST
Patent Text Reader

Abstract

The invention relates to a charging method and device, computer equipment, a computer readable storage medium and a computer program product. The method comprises the following steps: under the condition that a numerical value of a first preset bit position represents data block transmission, acquiring a charge state of each power taking device based on a numerical value of a second preset bit position; under the condition that the numerical value of a preset bit position represents complete data transmission, acquiring the charge state of each power taking device based on the numerical value of a third preset bit position; classifying each power taking device based on the interval where the charge state of each power taking device is located to obtain a primary charging device and a secondary charging device; charging the main charging equipment according to the first charging power corresponding to the main charging equipment; and determining second charging power based on the difference between the output power of the charging equipment and the first charging power, and charging the secondary charging equipment according to the second charging power. By adopting the method, the power demand degree can be identified more accurately so as to flexibly adapt to emergency situations.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the field of mobile charging technology, and in particular to a charging method, device, computer equipment, computer-readable storage medium and computer program product. Background Art

[0002] With the development of charging technology, multi-head charging technology has emerged. Through the multi-head charging technology, the charging device can have at least two output interfaces and charge through the at least two output interfaces.

[0003] In traditional technology, when at least two power-taking devices are connected to a charging device for charging, power is usually allocated in a fixed ratio according to a preset ratio, and the power demand is determined by the interface output current. However, the current when the battery power of the device is very low or nearly full is similar, and the accuracy of identifying the power demand is low, making it difficult to flexibly adapt to the charging needs of emergency situations. Summary of the invention

[0004] Based on this, it is necessary to provide a charging method, device, computer equipment, computer-readable storage medium and computer program product that can accurately identify the degree of power demand and flexibly adapt to emergency situations in response to the above technical problems.

[0005] In a first aspect, the present application provides a charging method, which is applied to a charging device, wherein the charging device is electrically connected to at least two power taking devices, and the method includes:

[0006] When the value at the first preset bit position indicates that the data is transmitted in blocks, the charge state of each of the power-taking devices is obtained based on the value at the second preset bit position; when the value at the first preset bit position indicates that the data is transmitted completely, the charge state of each of the power-taking devices is obtained based on the value at the third preset bit position;

[0007] Classifying each of the power taking devices based on the interval in which the charge state of each of the power taking devices is located to obtain a main charging device and a secondary charging device; the charge state of the main charging device is less than the charge state of the secondary charging device;

[0008] Charging the main charging device according to a first charging power corresponding to the main charging device;

[0009] Based on the difference between the output power of the charging device and the first charging power, a second charging power is determined, and the secondary charging device is charged according to the second charging power.

[0010] In one embodiment, the classifying each of the power taking devices based on the interval of the charge state of each of the power taking devices to obtain the primary charging device and the secondary charging device includes:

[0011] Determine a main charging device based on a power taking device whose charge state is less than a first charge state threshold;

[0012] When the charge state of the main charging device is greater than a second charge state threshold, changing the main charging device to a secondary charging device; wherein the first charge state threshold is less than the second charge state threshold;

[0013] A power-taking device whose charge state is greater than the first charge state threshold is determined as a secondary charging device.

[0014] In one of the embodiments, the main charging device includes a first main charging device and a second main charging device;

[0015] The method of determining the main charging device based on the power taking device having a charge state less than a first charge state threshold comprises:

[0016] Selecting a preset number of power-taking devices from power-taking devices whose charge state is less than a first charge state threshold as the first main charging devices;

[0017] When the charge state of the first main charging device reaches a third charge state threshold, determining the second main charging device from power-taking devices whose charge state is less than the first charge state threshold; wherein the third charge state threshold is greater than the first charge state threshold;

[0018] The method further comprises:

[0019] When the charge state of the first main charging device reaches a third charge state threshold, the first main charging device is determined as a secondary charging device.

[0020] In one embodiment, before dividing each of the power taking devices into a primary charging device and a secondary charging device based on the interval of the charge state of each of the power taking devices, the method further includes:

[0021] Sending a battery capacity acquisition instruction of an extended message type to each of the power-drawing devices to obtain the battery capacity of each of the power-drawing devices at the last full charge;

[0022] Sending a battery status acquisition instruction of an extended message type to each of the power-drawing devices to obtain the current power of each of the power-drawing devices;

[0023] The charge state of each power-drawing device is determined according to the power difference between the current power of each power-drawing device and the battery capacity of each power-drawing device when fully charged for the last time.

[0024] In one embodiment, the method further comprises:

[0025] When the charge state difference between the charge state of the main charging device and the charge state of the secondary charging device is greater than a preset value, determining a first charging power corresponding to the main charging device according to the output power of the charging device and the first ratio;

[0026] When the charge state difference is less than a preset value, the first charging power corresponding to the main charging device is determined according to the output power of the charging device and the second ratio; wherein the first ratio is greater than the second ratio.

[0027] In one embodiment, the method further comprises:

[0028] The power supply parameters of the charging device are sent to at least two of the power taking devices; each of the power taking devices is used to determine the power configuration parameters of each of the power taking devices according to the power supply parameters and the power demand parameters of each of the power taking devices; the power configuration parameters represent the amount of power charged by each of the power taking devices;

[0029] According to the power configuration parameters of each of the power taking devices, a first charging power corresponding to each of the power taking devices is determined.

[0030] In a second aspect, the present application further provides a charging device, which is applied to a charging device, wherein the charging device is electrically connected to at least two power taking devices, and the device comprises:

[0031] An acquisition module, used for acquiring the charge state of each of the power taking devices based on the value of the second preset bit position when the value at the first preset bit position indicates that the data is transmitted in blocks; and acquiring the charge state of each of the power taking devices based on the value of the third preset bit position when the value at the first preset bit position indicates that the data is transmitted completely;

[0032] A classification module, used to classify each of the power taking devices based on the interval of the charge state of each of the power taking devices, to obtain a main charging device and a secondary charging device; the charge state of the main charging device is less than the charge state of the secondary charging device;

[0033] A first charging module, configured to charge the main charging device according to a first charging power corresponding to the main charging device;

[0034] The second charging module is used to determine a second charging power based on the difference between the output power of the charging device and the first charging power, and charge the secondary charging device according to the second charging power.

[0035] In a third aspect, the present application further provides a computer device, wherein the computer device comprises a memory and a processor, wherein the memory stores a computer program, and when the processor executes the computer program, the steps of the charging method in any of the above embodiments are implemented.

[0036] In a fourth aspect, the present application further provides a computer-readable storage medium having a computer program stored thereon, and when the computer program is executed by a processor, the steps of the charging method in any of the above embodiments are implemented.

[0037] In a fifth aspect, the present application further provides a computer program product, wherein the computer program product comprises a computer program, and when the computer program is executed by a processor, the steps of the charging method in any of the above embodiments are implemented.

[0038] The above-mentioned charging method, device, computer equipment, computer-readable storage medium and computer program product determine whether the charge state is transmitted with block data according to the value of the first preset bit position, and then adaptively select the acquisition process of the charge state, so that the charging device can adaptively adjust the charging strategy; when the power-taking device supports the block transmission mechanism, the data packet containing the charge state and other data is transmitted in blocks, and the charge state can even be transmitted separately to reduce the overhead of each transmission, efficiently transmit large-capacity data, and avoid the situation where other small messages are blocked by a single large message; when the power-taking device does not support the block transmission mechanism, data transmission is performed through the value of the third preset bit position to avoid misidentification of the second preset bit position, thereby ensuring accurate data transmission. Each of the power-taking devices is classified based on the interval where the charge state of each of the power-taking devices is located. Since the charge state itself is defined based on each of the power-taking devices itself, the charging device does not need to consider the actual power and can objectively measure the charging needs of at least two power-taking devices. Since the charge state of the main charging device is less than the charge state of the secondary charging device, the power demand of the main charging device is higher than the power demand of the secondary charging device. In this case, on the one hand, the main charging device is powered according to the first charging power corresponding to the main charging device, so as to give priority to the power supply of the main charging device; on the other hand, the second charging power is determined based on the difference between the output power of the charging device and the first charging power, and the secondary charging device is charged according to the second charging power, which can fully adapt to the redundant power that the charging device can output to charge the secondary charging device. Therefore, the urgency of the power demand of each power-taking device is reflected through the charge state, so that the charging power of different power-taking devices is achieved to different degrees, and the main charging device and the secondary charging device are adaptively adjusted. BRIEF DESCRIPTION OF THE DRAWINGS

[0039] In order to more clearly illustrate the technical solutions in the embodiments of the present application or related technologies, the drawings required for use in the embodiments of the present application or related technical descriptions will be briefly introduced below. Obviously, the drawings described below are only some embodiments of the present application. For ordinary technicians in this field, other related drawings can be obtained based on these drawings without paying creative work.

[0040] Figure 1 A diagram showing an application environment of a charging method in an embodiment;

[0041] Figure 2 is a schematic flow chart of a charging method in one embodiment;

[0042] Figure 3 A schematic diagram of a flow chart of classifying power-taking devices in one embodiment;

[0043] Figure 4 A schematic diagram of a process of obtaining power for a priority device in an embodiment;

[0044] Figure 5 is a structural block diagram of a charging device in one embodiment;

[0045] Figure 6 FIG. 4 is a diagram showing the internal structure of a computer device in one embodiment. DETAILED DESCRIPTION

[0046] In order to make the purpose, technical solution and advantages of the present application more clearly understood, the present application is further described in detail below in conjunction with 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.

[0047] The charging method provided in the embodiment of the present application can be applied to Figure 1 In the application environment shown, at least two power-taking devices 101 are electrically connected to a charging device 102 via a charging cable and a charging head.

[0048] The power-collecting device 101 may be, but is not limited to, various personal computers, laptops, smart phones, tablet computers, IoT devices, and portable wearable devices. IoT devices may be small devices such as smart speakers and projection devices. Portable wearable devices may be smart watches, smart bracelets, head-mounted devices, etc. The charging device 102 may be an independent power bank, a charging head, or a car charging head.

[0049] In an exemplary embodiment, Figure 2 As shown, a charging method is provided, which is applied to Figure 1 The charging device 102 includes the following steps 201 to 204. Among them:

[0050] Step 201, when the value at the first preset bit position indicates that the data is transmitted in blocks, the charge state of each power-drawing device is obtained based on the value at the second preset bit position; when the value at the first preset bit position indicates that the data is transmitted completely, the charge state of each power-drawing device is obtained based on the value at the third preset bit position.

[0051] The first preset bit position, the second preset bit position and the third preset bit position are positions in the charging data packet that have corresponding functions according to the positions of the bits. The value of the first preset bit position is used to determine whether to perform block transmission, the value of the second preset bit position is used to determine the analysis method and charge state data for block transmission, and the value of the third preset bit position is used to determine the analysis method and charge state data for non-block transmission.

[0052] In the case of block transmission, the data transmitted each time can be relatively small to ensure processing efficiency. Moreover, since the second preset bit position and the third preset bit position are different positions, the possibility of misidentification of the charging device is relatively low.

[0053] In one example, the first preset bit position, the second preset bit position and the third preset bit position are all located in the extended message header of the data packet. In this case, the first preset bit position is the first bit position to be read, which may be the 15th bit, the second preset bit position is the 14th to 11th bits, and the third preset bit position is the 8th to 0th bits.

[0054] In one example, if the value of the first preset bit position is 1, block transmission is performed; if the value of the first preset bit position is 0, block transmission is not performed; if the value of the first preset bit position is 1, the value of the second preset bit position is parsed to determine information related to the block number or quantity for further details of the block transmission; if the value of the first preset bit position is 0, the value of the third preset bit position is parsed to determine the charge state for non-block transmission.

[0055] Step 202, classify each power taking device based on the interval of the charge state of each power taking device to obtain a main charging device and a secondary charging device; the charge state of the main charging device is smaller than the charge state of the secondary charging device.

[0056] The charge state interval is obtained by comparing the charge state of each power-drawing device with the charge state threshold. The charge state is the ratio of the current remaining power of the power-drawing device to its maximum capacity when fully charged. The charge state can be expressed as a percentage, with 0% indicating full discharge and 100% indicating a full battery. Since there are many types of power-drawing devices and the power measurement standards of each power-drawing device are different, the use of the charge state interval can more objectively determine the urgency of the power demand of each power-drawing device.

[0057] The charge state threshold is a preset charge state. The charge state threshold can make the power granularity of the power-drawing device coarser, so that more charging strategies can be flexibly scheduled. In this case, there is no need to make a fixed allocation according to the preset ratio or device request ratio, so as to flexibly apply to various power-drawing devices; there is no need for users to manually select and switch among multiple fixed ratio combinations, thereby lowering the threshold for use; and there is no need to judge the load's power demand through the interface output current, so that the accurate identification of the power state can be guaranteed, avoiding similar currents when the device battery is very low or nearly full.

[0058] The main charging device and the secondary charging device are different power-drawing devices. The charge states of the main charging device and the secondary charging device are in different ranges, and the charge state of the main charging device is less than that of the secondary charging device. Therefore, the urgency of the power demand of the main charging device is higher than that of the secondary charging device, so the main charging device is a power-drawing device with a higher charging priority than the secondary charging device.

[0059] In some embodiments, each power taking device is classified based on the interval in which the charge state of each power taking device is located to obtain a main charging device and a secondary charging device, including: determining the charge state of each power taking device, and based on the type of each power taking device, determining the charge state threshold of the type to which each power taking device belongs; comparing the charge state of each power taking device with the charge state threshold of the type to which each power taking device belongs to obtain the interval in which the charge state of each power taking device is located; and classifying each power taking device according to the interval in which the charge state of each power taking device is located to obtain a main charging device and a secondary charging device. Thus, different charge state thresholds are set for different types of power taking devices, forming different standards, so that when charging multiple power taking devices through a charging device, a main charging device and a secondary charging device can still be formed to charge according to the power demand of the corresponding power taking device.

[0060] In some embodiments, each power-taking device is classified based on the interval in which the charge state of each power-taking device is located, and a main charging device and a secondary charging device are obtained, including: determining the priority of each power-taking device based on the interval in which the charge state of each power-taking device is located; and obtaining a main charging device and a secondary charging device with a lower priority than the main charging device according to the priority of each power-taking device. Thus, the priority is determined by the interval in which the charge state is located, and the priority of each power-taking device is qualitatively analyzed to control the charging process more finely.

[0061] Step 203: charging the main charging device according to the first charging power corresponding to the main charging device.

[0062] The first charging power is a charging power that corresponds to the main charging device. When charging with the first charging power, the charging capacity of the main charging device can be more fully utilized, so that the charge state of the main charging device is quickly improved.

[0063] The main charging device and the first charging power may correspond one to one, so as to determine the first charging power corresponding to the main charging device in more detail. The first charging power corresponding to the main charging device may be determined by negotiation based on the power supply parameters of the charging device and the power demand parameters of the main charging device.

[0064] The maximum charging power of the main charging device may be used as the first charging power corresponding to the main charging device; and the main charging device may be charged using the first charging power corresponding to the main charging device.

[0065] Optionally, when the number of primary charging devices changes to 0, the first charging power is 0, and the second charging power is the output power of the charging device. At this time, the output power of the charging device can be allocated to the secondary charging device.

[0066] In an optional embodiment, the main charging device is charged according to the first charging power corresponding to the main charging device, including: when the charge state of the main charging device reaches a preset value, the charging power of each power taking device is determined according to the power supply parameters of the charging device and the power demand parameters of each power taking device; and power is distributed to each power taking device according to the charging power of each power taking device. Thus, through the charging process of the main charging device, the concepts of the main charging device and the secondary charging device are adjusted, so as to control the charging power of the power taking device.

[0067] Step 204: Determine a second charging power based on the difference between the output power of the charging device and the first charging power, and charge the secondary charging device according to the second charging power.

[0068] The second charging power is the charging power for the secondary charging device; when charging with the second charging power, the charge state of the secondary charging device will also increase, but the rate of increase is lower than that of the main charging device. The second charging power is determined based on the output power of the charging device and the charging power of the main charging device.

[0069] When there is only one main charging device, the second charging power is the difference between the output power of the charging device and the first charging power. When there are multiple main charging devices, there are multiple first charging powers, and the second charging power is the difference between the sum of the first charging powers and the output power of the charging device. When there are multiple secondary charging devices, the second charging power can be evenly distributed among the secondary charging devices, or the second charging power can be redistributed according to the corresponding proportions of the secondary charging devices.

[0070] In some embodiments, determining the second charging power based on the difference between the output power of the charging device and the first charging power includes: using the power difference between the output power of the charging device and the first charging power as the second charging power.

[0071] For example, the output power of the charging device is 45w, and the first charging power corresponding to a mobile phone is 9v*3A=27w; when the charge state of this mobile phone is lower than 20%, this mobile phone is the main charging device, and 27w is preferentially allocated to this mobile phone as the first charging power; and 45w-27w=18w, this 18w redundant power is allocated to other devices as the second charging power.

[0072] In the above charging method, whether the charge state is transmitted with the block data is determined according to the value of the first preset bit position, and then the charge state acquisition process is adaptively selected, so that the charging device can adaptively adjust the charging strategy; when the power taking device supports the block transmission mechanism, the data packet containing the charge state and other data is transmitted in blocks, and the charge state can even be transmitted separately, so as to reduce the overhead of each transmission, efficiently transmit large-capacity data, and avoid the situation where other small messages are blocked by a single large message; when the power taking device does not support the block transmission mechanism, data transmission is carried out through the value of the third preset bit position to avoid the misidentification of the second preset bit position, so as to ensure accurate data transmission. Each power taking device is classified based on the interval where the charge state of each power taking device is located. Since the charge state itself is defined based on each power taking device itself, the charging device does not need to consider the actual power, and can objectively measure the charging needs of at least two power taking devices. Since the charge state of the main charging device is smaller than that of the secondary charging device, the power demand of the main charging device is higher than that of the secondary charging device. In this case, on the one hand, the main charging device is charged according to the first charging power corresponding to the main charging device, so as to give priority to the power supply of the main charging device; on the other hand, the second charging power is determined based on the difference between the output power of the charging device and the first charging power, and the secondary charging device is charged according to the second charging power, which can fully adapt to the redundant power that the charging device can output to charge the secondary charging device. Therefore, the urgency of the power demand of each power-taking device is reflected through the charge state, so that the charging power of different power-taking devices is achieved to different degrees, and the main charging device and the secondary charging device are adaptively adjusted.

[0073] In some embodiments, Figure 3 As shown, each power-taking device is classified based on the interval of the charge state of each power-taking device to obtain a primary charging device and a secondary charging device, including:

[0074] Step 301 : determining a main charging device based on a power taking device whose charge state is less than a first charge state threshold.

[0075] The first charge state threshold is used to determine the charge state threshold of the main charging device. Optionally, the power-taking device whose charge state is less than the first charge state threshold is in a state of extreme power shortage, and the power-taking device whose charge state is greater than the first charge state threshold is not in a state of extreme power shortage.

[0076] In one embodiment, determining the main charging device based on the power taking device having a charge state less than a first charge state threshold includes: using the power taking device having a charge state less than the first charge state threshold as the main charging device.

[0077] In one embodiment, determining the main charging device based on the power taking device whose charge state is less than the first charge state threshold includes: screening the power taking devices whose charge state is less than the first charge state threshold according to preset parameters to obtain the main charging device. Thus, in view of the limited output power of the charging device, the number of the main charging devices is controlled to ensure that the charging efficiency of the main charging devices is improved.

[0078] Step 302: When the charge state of the primary charging device is greater than a second charge state threshold, the primary charging device is changed to a secondary charging device; wherein the first charge state threshold is less than the second charge state threshold.

[0079] The second state of charge threshold is a state of charge threshold used to control the charging strategy. Since the state of charge of the main charging device is low, its power is increased as quickly as possible; correspondingly, when the state of charge of the main charging device is greater than the second state of charge threshold, the main charging device has achieved a certain degree of fast charging, so there may be a problem of over-temperature, so it is changed to a secondary charging device to extend the battery life. Moreover, when the state of charge reaches a certain level, the charging efficiency will decrease, and continuing to charge with the first charging power may result in wasting the limited energy of the charging device.

[0080] In an optional embodiment, changing a main charging device to a secondary charging device includes: changing a main charging device having a charge state greater than a second charge state threshold to a secondary charging device.

[0081] In an optional embodiment, changing the primary charging device to a secondary charging device includes: determining, in a list of primary charging devices, a device identifier of a primary charging device whose charge state is greater than a second charge state threshold; and placing the identifier in the list of secondary charging devices.

[0082] Optionally, when the charge state of the main charging device is less than a second charge state threshold, the main charging device continues to serve as the main charging device.

[0083] Step 303: determine a power-taking device whose charge state is greater than a first charge state threshold as a secondary charging device.

[0084] In an optional embodiment, determining a power-drawing device whose charge state is greater than a first charge state threshold as a secondary charging device includes: determining a power-drawing device whose charge state is greater than the first charge state threshold as a secondary charging device.

[0085] In an optional embodiment, a power-drawing device whose charge state is greater than a first charge state threshold is determined as a secondary charging device, including: in a list of power-drawing devices, determining a device identifier of a power-drawing device whose charge state is greater than a second charge state threshold; and placing the identifier of the power-drawing device into the list of secondary charging devices.

[0086] In this embodiment, each power-taking device is classified into a main charging device and a secondary charging device through a first charge state threshold, and a method for the main charging device to be changed into a secondary charging device is formed through a second charge state threshold. Therefore, as the charge state of the main charging device changes dynamically, the main charging device during the charging process can be changed into a secondary charging device to redistribute the output power of the charging device.

[0087] In some embodiments, the main charging device includes a first main charging device and a second main charging device. Figure 4 As shown, determining the main charging device based on the power taking device whose charge state is less than the first charge state threshold includes steps 401 and 402; correspondingly, the method also includes step 403, wherein:

[0088] Step 401 : Select a preset number of power-taking devices from power-taking devices whose charge states are less than a first charge state threshold as first main charging devices.

[0089] The first main charging device is a main charging device determined before the second main charging device.

[0090] In one embodiment, selecting a preset number of power-taking devices as the first main charging device includes: selecting a preset number of power-taking devices as the first main charging device according to the type of the power-taking devices. Thus, different preset numbers exist for different types of power-taking devices to adaptively determine the needs of the devices.

[0091] Optionally, when the power-taking devices whose charge state is less than the first charge state threshold include large devices such as notebooks, a first preset number of large devices are selected as the first main charging devices; when the power-taking devices whose charge state is less than the first charge state threshold include small devices such as mobile phones and watches, a second preset number of small devices are selected as the first main charging devices; when the power-taking devices whose charge state is less than the first charge state threshold include large devices and small devices, a third preset number of large devices and small devices are selected as the first main charging devices; wherein the first preset number is less than the third preset number, and the third preset number is less than the second preset number. Thus, in view of the situation where the charge state of large devices corresponds to a higher power level and the charge state of small devices corresponds to a lower power level, the preset number is adaptively adjusted to ensure processing efficiency.

[0092] In one embodiment, selecting a preset number of power-taking devices as the first main charging device includes: arbitrarily selecting a preset number of power-taking devices as the first main charging device. Optionally, the preset number may be one or two; optionally, the preset number may also be related to the power capacity and output power of the charging device.

[0093] Step 402, when the charge state of the first main charging device reaches a third charge state threshold, determine a second main charging device from power-taking devices whose charge states are less than the first charge state threshold; wherein the third charge state threshold is greater than the first charge state threshold.

[0094] The second main charging device is a main charging device determined after the first main charging device. The first main charging device and the second main charging device can exist at the same time, and the order used to determine the two is different. The second main charging device is used to maintain the number of main charging devices at a preset number so that the power-taking device with a charge state less than the first charge state threshold can be fully charged faster.

[0095] The third charge state threshold is a charge state threshold used to control the switching of the main charging device. Since there are many power-taking devices whose main charge state is less than the first charge state threshold, in order to ensure that the charge state of the power-taking devices is not in a state where the power demand is too high as much as possible, the main charging device is switched through the third charge state threshold. When the number of power-taking devices whose charge state is less than the first charge state threshold is greater than the preset number, the third charge state threshold exists.

[0096] In an optional embodiment, determining a second main charging device from power-taking devices whose charge states are less than a first charge state threshold value includes: selecting a power-taking device as the second main charging device from power-taking devices whose charge states are less than the first charge state threshold value according to the number of first main charging devices whose charge states reach a third charge state threshold value and the difference between the preset numbers.

[0097] Step 403: when the charge state of the first main charging device reaches a third charge state threshold, determine the first main charging device as a secondary charging device.

[0098] Optionally, when the charge state of the first main charging device is greater than the third charge state threshold, the first main charging device has already completed part of the fast charging process, and thus there is a probability that the temperature is too high, so it is changed to a secondary charging device to extend the battery life. Moreover, when the charge state reaches a high level, the charging efficiency decreases, and continuing to charge with the first charging power may result in wasting the already limited energy of the charging device.

[0099] In this embodiment, since the power and output power of the charging device itself are limited, it is difficult to ensure that all power-taking devices with urgent power can be fully charged. Therefore, on the one hand, when there are too many power-taking devices with a charge state less than the first charge state threshold, a preset number of power-taking devices are selected from these power-taking devices as the first main charging devices, and the range of high-priority charging is limited by the preset number. On the other hand, when the charge state of the first main charging device reaches the third charge state threshold, the second main charging device is determined from the power-taking devices with a charge state less than the first charge state threshold, and the first main charging device is determined as the secondary charging device; so that the main charging devices with relatively high power demand urgency can take turns as high-priority charging power-taking devices, so that the power demand urgency of the power-taking devices is reduced.

[0100] In some embodiments, before dividing each power drawing device into a primary charging device and a secondary charging device based on the range of the charge state of each power drawing device, the method also includes: sending a battery capacity acquisition instruction of an extended message type to each power drawing device to obtain the battery capacity of each power drawing device when it was fully charged for the last time; sending a battery status acquisition instruction of an extended message type to each power drawing device to obtain the current power level of each power drawing device; determining the charge state of each power drawing device based on the power difference between the current power level of each power drawing device and the battery capacity of the power drawing device when it was fully charged for the last time.

[0101] The extended message type (EPR, Extended Power Delivery Request) is a message in the charging protocol (PowerDelivery, PD) protocol, which is used to transmit additional data and instructions. When the extended message type is used to transmit instructions, a more complex power negotiation process can be implemented to target the power parameters between the charging device as the source and the power sourcing device as the sink to meet specific power requirements. Optionally, the extended message includes an extended message header (Extended Header) and subsequent data (data); the extended message header refers to an information header in which the Extended bit at the highest position is 1, so the interaction speed between the charging device and the power sourcing device can be improved through the extended message.

[0102] The battery capacity request (Battery_Cap) is used to instruct the power-drawing device to report the current capacity of its battery, that is, the battery capacity of the last full charge, and the unit may be kilowatt-hour.

[0103] The Battery Status Request (Battery_Status) instruction is used to request the power-drawing device to report the current status of its battery, including but not limited to the battery charging status, health status, current power, etc. The current power is the current remaining power.

[0104] The power difference may be, but is not limited to, a difference or ratio of power values.

[0105] In one embodiment, the charge state of each power drawing device is determined based on the difference in charge between the current charge of each power drawing device and the battery capacity of the power drawing device when it was last fully charged, including: determining the ratio between the current charge of each power drawing device and the battery capacity of the power drawing device when it was last fully charged; converting the ratio into a percentage to obtain the charge state of each power drawing device.

[0106] In this embodiment, by sending battery capacity acquisition instructions and battery status acquisition instructions through the extended message type in the charging protocol, the efficiency of obtaining the corresponding parameters can be improved; and the charge status is calculated by the charging device instead of directly obtaining the charge status. Therefore, based on the universality of the charging protocol, it is ensured that the charging device can be applied to a variety of power-taking devices, and the problem that the charging protocol cannot directly obtain the charge status is compensated.

[0107] In some embodiments, the method further includes: when the charge state difference between the charge state of the main charging device and the charge state of the secondary charging device is greater than a preset value, determining the first charging power corresponding to the main charging device according to the output power of the charging device and the first ratio; when the charge state difference is less than the preset value, determining the first charging power corresponding to the main charging device according to the output power of the charging device and the second ratio; wherein the first ratio is greater than the second ratio.

[0108] The charge state difference indicates the difference in charge state between the primary charging device and the secondary charging device. The charge state difference may be a difference or ratio between the charge state of the primary charging device and the charge state of the secondary charging device, or may be a parameter or ratio value such as a voltage difference or a current difference used to characterize the charge state difference.

[0109] The first ratio and the second ratio represent the output power ratio of the charging device to the main charging device. The first ratio and the second ratio are not necessarily actual ratio values, but can be represented by power configuration parameters.

[0110] In an optional embodiment, determining a first charging power corresponding to the main charging device according to the output power of the charging device and the first ratio includes: adjusting the output power of the charging device for the main charging device according to the first ratio to obtain the first charging power corresponding to the main charging device.

[0111] In an optional embodiment, determining the second charging power corresponding to each of the two main charging devices according to the output power of the charging device and the second ratio includes: adjusting the output power of the charging device for the main charging device according to the second ratio to obtain the second charging power corresponding to the main charging device.

[0112] In this embodiment, when the charge state of the main charging device is very small and the difference between the main charging device and the secondary charging device is large, the output power of the charging device is allocated more to the main charging device, so that the charge state of the main charging device is improved more quickly. When the charge states of the main charging devices are close, a slightly lower output power is allocated to the main charging device, and a higher output power is allocated to the secondary charging device, so as to take into account the charging efficiency of the main charging device and the secondary charging device. Moreover, when the main charging device and the secondary charging device are of different types and the actual power corresponding to the charge state is different, then when the power used for charging the two is similar, the power taking device with a charge state corresponding to a larger actual power becomes the main charging device, so as to achieve adaptive selection of the power taking device.

[0113] In some embodiments, the method also includes: sending the power supply parameters of the charging device to at least two power taking devices; each power taking device is used to determine the power configuration parameters of each power taking device based on the power supply parameters and the power demand parameters of each power taking device; the power configuration parameters represent the amount of electricity charged by each power taking device; and determining the first charging power corresponding to each power taking device based on the power configuration parameters of each power taking device.

[0114] The power supply parameters refer to the power capacity that the charging device can provide, and are used to indicate the ability of the charging device to provide power to the power-taking device. The power supply parameters include at least the charging protocol supported by the charging device, and also include but are not limited to the voltage, current, power and other parameters that the charging device can output.

[0115] The power demand parameter is the power capacity required by each power-drawing device for charging, and is used to indicate the power and other parameters requested by the power-drawing device itself. Since the types of each power-drawing device and the protocols it supports are different, each power-drawing device has its own power demand parameters. Optionally, at least some types of power-drawing devices determine their own power demand parameters based on their own power consumption under different working conditions. The power demand parameters include but are not limited to the voltage, current, power and other parameters required by each power-drawing device.

[0116] The power configuration parameters are the charging parameters obtained by the charging device based on the communication between the charging device and the power supply device. Since the charging device has limited capacity and output power, the charging device performs power allocation for each power supply device. The power configuration parameters include but are not limited to the charging protocol, voltage, current, power and other parameters for each power supply device.

[0117] In one embodiment, according to the power configuration parameters of each power-taking device, the first charging power corresponding to each power-taking device is determined, including: when the charge state difference between the charge state of the main charging device and the charge state of the secondary charging device is greater than a preset value, according to the output power of the charging device and the first power configuration parameter of each power-taking device, the first charging power corresponding to the main charging device is determined; when the charge state difference is less than the preset value, according to the output power of the charging device and the second power configuration parameter, the first charging power corresponding to the main charging device is determined; wherein the proportion corresponding to the first power configuration parameter is greater than the proportion corresponding to the second power configuration parameter. Optionally, the first power configuration parameter and the second power configuration parameter can be dynamically changed.

[0118] In this embodiment, the power supply parameters are sent to at least two power taking devices, so that each power taking device can determine the amount of electricity required for charging itself according to the power supply parameters and the power demand parameters of each power taking device, so as to form a negotiation process between the charging device and the power taking device; on this basis, the charging device itself determines the first charging power corresponding to each power taking device according to the power configuration parameters of each power taking device, and accurately analyzes the maximum adaptive charging power of each power taking device under the current circumstances, so as to precisely control the power output.

[0119] In an optional embodiment, based on the technology of the smart screen display charging head, the current battery watt-hours and the current total battery watt-hours of the power drawing device can be obtained from the power drawing device, and the current battery remaining percentage of the power drawing device can be obtained by calculating (battery current capacity / battery last full charge capacity × 100% = battery current remaining percentage).

[0120] When multiple power-taking devices are connected to the output interface of the charging device, the charging device calculates the current power information of each power-taking device based on the acquired battery information, accurately determines the urgency of the power demand of each power-taking device, and then preferentially allocates higher power to the device with the least power. When the device completes fast charging and the battery power reaches a certain level (such as 50%, 80%), the power of each output interface is redistributed according to the power requested by all power-taking devices.

[0121] In a specific embodiment, the steps before step 201 include charging protocol related steps, including:

[0122] The device is physically connected, that is, the power-taking device is physically connected to the USB Type-C interface.

[0123] Device identification, that is, the charging device will detect the type of connected cable (such as support 3A / support 5A) and the type of power device (such as power supply DP, UFP, or data port DFP, UFP, etc.) and the supported charging protocol version, and its supported power specifications. This process is achieved through mechanisms such as changes in VBUS voltage and the level signal of the CC (Configuration channel) pin.

[0124] Cable type, that is, determine the channel of the physical layer to determine the maximum power. Types of power-drawing devices include but are not limited to mobile phones. Computers; determine the type. If they are all loads, it doesn’t matter. If two adapters are connected together, there is no need to charge. Vbus transmission voltage, whether it is the same as the preset value, if it is the same, no processing is required; if it is different, perform re-detection or other subsequent processing.

[0125] Send a request, that is, the charging device sends an initial data packet containing its capabilities (such as maximum output power) to the power sourcing device.

[0126] Response and negotiation, that is, after the power taking device receives the data packet sent by the charging device, the power taking device sends a response to the charging device according to its own needs, and the two parties conduct multiple negotiations to determine the most appropriate power configuration.

[0127] When the power-taking device is connected to the charging device, it is similar to the process of dynamic power distribution of the protocol handshake, that is, step 201, step 202, step 204 and corresponding embodiments can be executed in real time. In addition, in abnormal situations such as overheating of the power-taking device or overheating of the adapter, corresponding adjustments are also required.

[0128] Protocol handshake dynamic power allocation, that is, by exchanging specific control messages, the charging device and the power taking device confirm that both parties have reached an agreement on the protocol version and parameters for power supply and data transmission. During the process of the charging device supplying power to the power taking device, the charging device can support dynamic adjustment of power output to adjust its power output parameters according to its own state (such as temperature, current, voltage), and this adjustment will renegotiate the power supply parameters with the power taking device. That is, at this time, steps 201-204 and corresponding embodiments can be executed in real time.

[0129] In a specific embodiment, the output power is 45W, there are two charging heads, and the type-c protocol is supported to perform steps 201 to 204 and the steps before and after them, which include:

[0130] When two power-taking devices are connected successively and the charging protocol handshake and power distribution steps are completed, the adjustment will renegotiate the power supply parameters with the power-taking devices, including the following process, namely, obtaining the battery power information of the two power-taking devices respectively through the charging protocol. Among them, the power is re-distributed dynamically, that is, the charging device obtains the battery information of the power-taking device through the extended message of the charging protocol and calculates the battery power. Specifically, a battery capacity acquisition instruction is sent to the power-taking device to obtain the battery's design capacity (watt-hours), the battery's last full charging capacity (watt-hours) and other data.

[0131] Then send a battery status acquisition instruction to the power-drawing device to obtain the battery status and the current battery capacity (watt-hours). By calculating (battery current capacity / battery last full charge capacity x 100% - battery current remaining power percentage), the battery power percentage of the power-drawing device can be obtained, that is, the charge status of each power-drawing device.

[0132] Next, the specific process of the above steps 201-204 is executed, that is, the process of dynamic power redistribution. The charging device preferentially allocates most of the power to devices with very little battery power (for example, ≤20%) that need priority fast charging based on the battery power information of the power-taking device. Exemplarily, 1) One device has very little power, and the device has more power in a day. For example, the current power of device A is 80%, and the maximum power of 27W is applied, that is, the current power of power-taking device B is 10%, and the maximum power of 27W is applied. Then 18W is allocated to device A and 27W is allocated to device B. 2) The power of two devices is close, for example, the current power of device A is 20%, and the maximum power of 27W is applied, that is, the current power of device B is 15%, and the maximum power of 27W is applied, then 20W is allocated to device A and 25W is allocated to device B.

[0133] Then, the steps before step 201 are executed again to repeatedly obtain the power information of the power taking device. That is, during the charging process, the power of the power taking device is obtained irregularly / regularly. The charging device obtains the battery power information of the power taking device through the extended message of the charging protocol.

[0134] Finally, step 201 to step 204 are executed again to dynamically redistribute power. That is, the power distribution ratio is adjusted in real time according to the real-time power of the power-taking device and the power requested by the power-taking device to the charging device. It should be noted that the total amount of power allocated shall not exceed the maximum total amount of power allowed to be output by the charging device.

[0135] It should be understood that, although the steps in the flowcharts involved in the above embodiments are displayed in sequence according to the indication of the arrows, these steps are not necessarily executed in sequence according to the order indicated by the arrows. Unless there is a clear explanation in this article, the execution of these steps is not strictly limited in order, and these steps can be executed in other orders. Moreover, at least a part of the steps in the flowcharts involved in the above embodiments may include multiple steps or multiple stages, and these steps or stages are not necessarily executed at the same time, but can be executed at different times, and the execution order of these steps or stages is not necessarily carried out in sequence, but can be executed in turn or alternately with other steps or at least a part of the steps or stages in other steps.

[0136] Based on the same inventive concept, the embodiment of the present application also provides a charging device for implementing the above-mentioned charging method. The implementation scheme for solving the problem provided by the device is similar to the implementation scheme recorded in the above-mentioned method, so the specific limitations in one or more charging device embodiments provided below can refer to the limitations on the charging method above, and will not be repeated here.

[0137] In an exemplary embodiment, Figure 5 As shown, a charging device is provided, which is applied to a charging device, wherein the charging device is electrically connected to at least two power taking devices, and the device comprises:

[0138] The acquisition module 501 is used to acquire the charge state of each power-taking device based on the value of the second preset bit position when the value at the first preset bit position indicates that the data is transmitted in blocks; and to acquire the charge state of each power-taking device based on the value of the third preset bit position when the value at the first preset bit position indicates that the data is transmitted completely;

[0139] A classification module 502 is used to classify each of the power taking devices based on the interval of the charge state of each of the power taking devices to obtain a main charging device and a secondary charging device; the charge state of the main charging device is less than the charge state of the secondary charging device;

[0140] A first charging module 503, configured to charge the main charging device according to a first charging power corresponding to the main charging device;

[0141] The second charging module 504 is used to determine a second charging power based on the difference between the output power of the charging device and the first charging power, and charge the secondary charging device according to the second charging power.

[0142] In one embodiment, the classification module 502 is used to:

[0143] Determine a main charging device based on a power taking device whose charge state is less than a first charge state threshold;

[0144] When the charge state of the main charging device is greater than a second charge state threshold, changing the main charging device to a secondary charging device; wherein the first charge state threshold is less than the second charge state threshold;

[0145] A power-taking device whose charge state is greater than the first charge state threshold is determined as a secondary charging device.

[0146] In one of the embodiments, the main charging device includes a first main charging device and a second main charging device;

[0147] The classification module 502 is used to:

[0148] Selecting a preset number of power-taking devices from power-taking devices whose charge state is less than a first charge state threshold as the first main charging devices;

[0149] When the charge state of the first main charging device reaches a third charge state threshold, determining the second main charging device from power-taking devices whose charge state is less than the first charge state threshold; wherein the third charge state threshold is greater than the first charge state threshold;

[0150] When the charge state of the first main charging device reaches a third charge state threshold, the first main charging device is determined as a secondary charging device.

[0151] In one embodiment, before classifying each power taking device into a primary charging device and a secondary charging device based on the interval of the charge state of each power taking device, the classification module 502 is used to:

[0152] Sending a battery capacity acquisition instruction of an extended message type to each of the power-drawing devices to obtain the battery capacity of each of the power-drawing devices at the last full charge;

[0153] Sending a battery status acquisition instruction of an extended message type to each of the power-drawing devices to obtain the current power of each of the power-drawing devices;

[0154] The charge state of each power-drawing device is determined according to the power difference between the current power of each power-drawing device and the battery capacity of each power-drawing device when fully charged for the last time.

[0155] In one embodiment, the first charging module 503 is used to:

[0156] When the charge state difference between the charge state of the main charging device and the charge state of the secondary charging device is greater than a preset value, determining a first charging power corresponding to the main charging device according to the output power of the charging device and the first ratio;

[0157] When the charge state difference is less than a preset value, the first charging power corresponding to the main charging device is determined according to the output power of the charging device and the second ratio; wherein the first ratio is greater than the second ratio.

[0158] In one embodiment, the first charging module 503 is used to:

[0159] The power supply parameters of the charging device are sent to at least two of the power taking devices; each of the power taking devices is used to determine the power configuration parameters of each of the power taking devices according to the power supply parameters and the power demand parameters of each of the power taking devices; the power configuration parameters represent the amount of power charged by each of the power taking devices;

[0160] According to the power configuration parameters of each of the power taking devices, a first charging power corresponding to each of the power taking devices is determined.

[0161] Each module in the above charging device can be implemented in whole or in part by software, hardware or a combination thereof. Each module can be embedded in or independent of a processor in a computer device in the form of hardware, or can be stored in a memory in a computer device in the form of software, so that the processor can call and execute the operations corresponding to each module.

[0162] In an exemplary embodiment, a computer device is provided. The computer device may be a charging device, and its internal structure diagram may be as shown in FIG. Figure 6 As shown. The computer device includes a processor, a memory, an input / output interface (Input / Output, referred to as I / O) and a communication interface. 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. 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, a computer program and a database. 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 an external device.

[0163] Those skilled in the art will understand that Figure 6The structure shown in the figure is only a block diagram of a part of the structure 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 certain components, or have a different arrangement of components.

[0164] In one embodiment, a computer device is further provided, including a memory and a processor, wherein a computer program is stored in the memory, and the processor implements the steps in the above method embodiments when executing the computer program.

[0165] In one embodiment, a computer-readable storage medium is provided, on which a computer program is stored. When the computer program is executed by a processor, the steps in the above-mentioned method embodiments are implemented.

[0166] In one embodiment, a computer program product is provided, including a computer program, which implements the steps in the above method embodiments when executed by a processor.

[0167] It should be noted that the user information (including but not limited to user device information, user personal information, etc.) and data (including but not limited to data used for analysis, stored data, displayed data, etc.) involved in this 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 must comply with relevant regulations.

[0168] A person of ordinary skill in the art can understand that all or part of the processes in the above-mentioned embodiment method can be completed by instructing the relevant hardware through a computer program, and 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-mentioned methods. Among them, any reference to the 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), magnetic 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. As an illustration and not limitation, RAM can be in various forms, such as static random access memory (SRAM) or dynamic random access memory (DRAM). The database involved in each embodiment provided in this application may include at least one of a relational database and a non-relational database. Non-relational databases may include distributed databases based on blockchains, etc., but are not limited to this. The processor involved in each embodiment provided in this application may be a general-purpose processor, a central processing unit, a graphics processor, a digital signal processor, a programmable logic device, a data processing logic device based on quantum computing, an artificial intelligence (AI) processor, etc., but are not limited to this.

[0169] The technical features of the above embodiments may be combined arbitrarily. To make the description concise, 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, they should be considered to be within the scope of this application.

[0170] The above-described embodiments only express several implementation methods of the present application, and the descriptions thereof are relatively specific and detailed, but they cannot be understood as limiting the scope of the present application. It should be pointed out that, for a person of ordinary skill in the art, several variations and improvements can be made without departing from the concept of the present application, and these all belong to the protection scope of the present application. Therefore, the protection scope of the present application shall be subject to the attached claims.

Claims

1. A charging method, characterized in that: Applied to a charging device, the charging device is electrically connected to at least two power taking devices, and the method includes: When the value at the first preset bit position indicates that the data is transmitted in blocks, the charge state of each of the power-taking devices is obtained based on the value at the second preset bit position; when the value at the first preset bit position indicates that the data is transmitted completely, the charge state of each of the power-taking devices is obtained based on the value at the third preset bit position; Classifying each of the power taking devices based on the interval in which the charge state of each of the power taking devices is located to obtain a main charging device and a secondary charging device; the charge state of the main charging device is less than the charge state of the secondary charging device; Charging the main charging device according to a first charging power corresponding to the main charging device; Based on the difference between the output power of the charging device and the first charging power, a second charging power is determined, and the secondary charging device is charged according to the second charging power.

2. The method according to claim 1, characterized in that The method of classifying each power taking device based on the interval in which the charge state of each power taking device is located to obtain a primary charging device and a secondary charging device includes: Determine a main charging device based on a power taking device whose charge state is less than a first charge state threshold; When the charge state of the main charging device is greater than a second charge state threshold, changing the main charging device to a secondary charging device; wherein the first charge state threshold is less than the second charge state threshold; A power-taking device whose charge state is greater than the first charge state threshold is determined as a secondary charging device.

3. The method according to claim 2, characterized in that The main charging device includes a first main charging device and a second main charging device; The method of determining the main charging device based on the power taking device having a charge state less than a first charge state threshold comprises: Selecting a preset number of power-taking devices from power-taking devices whose charge state is less than a first charge state threshold as the first main charging devices; When the charge state of the first main charging device reaches a third charge state threshold, determining the second main charging device from power-taking devices whose charge state is less than the first charge state threshold; wherein the third charge state threshold is greater than the first charge state threshold; The method further comprises: When the charge state of the first main charging device reaches a third charge state threshold, the first main charging device is determined as a secondary charging device.

4. The method according to claim 1, characterized in that: Before dividing each of the power taking devices into a primary charging device and a secondary charging device based on the interval of the charge state of each of the power taking devices, the method further includes: Sending a battery capacity acquisition instruction of an extended message type to each of the power-drawing devices to obtain the battery capacity of each of the power-drawing devices at the last full charge; Sending a battery status acquisition instruction of an extended message type to each of the power-drawing devices to obtain the current power of each of the power-drawing devices; The charge state of each power-drawing device is determined according to the power difference between the current power of each power-drawing device and the battery capacity of each power-drawing device when fully charged for the last time.

5. The method according to claim 1, characterized in that The method further comprises: When the charge state difference between the charge state of the main charging device and the charge state of the secondary charging device is greater than a preset value, determining a first charging power corresponding to the main charging device according to the output power of the charging device and the first ratio; When the charge state difference is less than a preset value, the first charging power corresponding to the main charging device is determined according to the output power of the charging device and the second ratio; wherein the first ratio is greater than the second ratio.

6. The method according to claim 1, characterized in that The method further comprises: The power supply parameters of the charging device are sent to at least two of the power taking devices; each of the power taking devices is used to determine the power configuration parameters of each of the power taking devices according to the power supply parameters and the power demand parameters of each of the power taking devices; the power configuration parameters represent the amount of power charged by each of the power taking devices; According to the power configuration parameters of each of the power taking devices, a first charging power corresponding to each of the power taking devices is determined.

7. A charging device, characterized in that: Applied to a charging device, the charging device is electrically connected to at least two power taking devices, and the device comprises: An acquisition module, used for acquiring the charge state of each of the power taking devices based on the value of the second preset bit position when the value at the first preset bit position indicates that the data is transmitted in blocks; and acquiring the charge state of each of the power taking devices based on the value of the third preset bit position when the value at the first preset bit position indicates that the data is transmitted completely; A classification module, used to classify each of the power taking devices based on the interval of the charge state of each of the power taking devices, to obtain a main charging device and a secondary charging device; the charge state of the main charging device is less than the charge state of the secondary charging device; A first charging module, configured to charge the main charging device according to a first charging power corresponding to the main charging device; The second charging module is used to determine a second charging power based on the difference between the output power of the charging device and the first charging power, and charge the secondary charging device according to the second charging power.

8. A computer device comprising a memory and a processor, wherein the memory stores a computer program, wherein: 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.