Charging method and device, and storage medium
Through a charging method, the maximum input power of the external adapter is judged and the charging power is allocated according to the load power, which solves the problem that charging equipment in the prior art is difficult to flexibly utilize the power of different power adapters, and realizes efficient charging power distribution and shortening of charging time .
Patent Information
- Application Number
- PCT/CN2024/105670
- Authority / Receiving Office
- WO · WO
- Patent Type
- Applications
- Current Assignee / Owner
- Priority Date
- 2023-07-31
- Filing Date
- 2024-07-16
- Publication Date
- 2025-02-06
AI Technical Summary
Existing charging devices are difficult to flexibly and fully utilize the power provided by the power adapter when compatible with different power adapters, resulting in ineffective charging efficiency.
Through a charging method, it is determined whether the external adapter has reached the maximum input power, and classified it according to the power level of each in-position load, and different charging power are allocated to efficiently allocate the power provided by the external adapter.
It realizes efficient distribution of power provided by external adapters, reduces the charging time when multiple in-place loads are charged simultaneously, and improves charging efficiency.
Smart Images

Figure CN2024105670_06022025_PF_FP_ABST
Abstract
Description
Charging method, device and storage medium
[0001] This application claims priority to the Chinese patent application filed with the China Patent Office on July 31, 2023, with application number 202310959323.2 and invention name “Charging method, device and storage medium”, the entire contents of which are incorporated by reference into this application. Technical Field
[0002] The present application relates to the field of charging technology, and in particular to a charging method, device and storage medium. Background Art
[0003] With the rapid development of electronic products, charging devices that can simultaneously charge multiple electronic products have emerged. These charging devices require an external power source via a power adapter. While most charging devices can use different power adapters, their compatibility is not optimal, making it difficult to flexibly and fully utilize the power provided by the power adapter.
[0004] Summary of the Invention
[0005] The purpose of this application is to solve at least one of the above-mentioned technical defects, especially the problem in the prior art that it is difficult to flexibly and fully utilize the power that can be provided by the power adapter while being compatible with different power adapters.
[0006] In a first aspect, the present application provides a charging method, which is applied to a charging device including at least two charging positions, wherein the charging device is connected to a power source via an external adapter, and the charging method comprises:
[0007] Determine whether the external adapter has reached the maximum input power;
[0008] If yes, detect the power of each load in place, and take the one with the highest power as the first load, and the rest as the second load;
[0009] After subtracting the preset first power from the maximum output power, the pre-allocated power is determined according to the remaining power and the number of the second loads;
[0010] For any second load, selecting the smaller value of the pre-allocated power and the maximum required power of the second load as the second power, where the second power is greater than the first power;
[0011] The first load is charged according to the first power, and the second load is charged according to the corresponding second power.
[0012] In one embodiment, determining whether the external adapter has reached the maximum input power includes:
[0013] Obtain the current and voltage at the power input terminal, and calculate the input power based on the current and voltage;
[0014] If the input power is greater than the current maximum point, the current maximum point is updated according to the input power;
[0015] If the input power remains at the current highest point, it is determined that the external adapter has reached the maximum input power.
[0016] In one embodiment, the charging method further includes:
[0017] When the external adapter reaches the maximum input power, determine whether the maximum output power currently set for the charging device matches the maximum input power;
[0018] If not, adjust the parameters related to the maximum output power according to the maximum input power;
[0019] If so, keep the parameters related to the maximum output power unchanged.
[0020] In one embodiment, determining whether the maximum output power parameter currently set for the charging device matches the maximum input power includes:
[0021] If the voltage drops when the external adapter reaches the maximum input power, it is determined that the currently set maximum output power does not match the maximum input power; otherwise, it is determined that the currently set maximum output power matches the maximum input power.
[0022] In one embodiment, the charging method further includes:
[0023] When the time for charging the first load with the first power and the second load with the corresponding second power reaches a preset interval, the process returns to the step of determining whether the external adapter reaches the maximum input power and continues to execute.
[0024] In one embodiment, the charging method further includes:
[0025] When no load is detected, the output of the corresponding charging position is turned off.
[0026] In a second aspect, the present application provides a charging device, comprising:
[0027] Power input terminal, used to connect to an external adapter;
[0028] Two or more charging positions are connected to the power input terminal;
[0029] The computer device includes one or more processors and a memory, wherein the memory stores computer-readable instructions. When the computer-readable instructions are executed by the one or more processors, the charging method in any of the above embodiments is executed.
[0030] In one embodiment, the charging device further includes a power control chip;
[0031] The power control chip corresponds to the charging position one by one, is connected between the corresponding charging position and the power input terminal, and is connected to the computer device to adjust the output power of the corresponding charging position under the control of the computer device.
[0032] In one embodiment, the charging device further includes a decoy chip;
[0033] The decoy chip is used to connect to an external adapter and start the charging protocol of the external adapter by communicating with the external adapter.
[0034] In one embodiment, an ID pin is provided on the charging position, and a computer device is connected to each ID pin to determine whether there is a load at the corresponding charging position by obtaining the level of the ID pin.
[0035] In a third aspect, the present application provides a storage medium storing computer-readable instructions. When the computer-readable instructions are executed by one or more processors, the one or more processors execute the steps of the charging method in any of the above embodiments.
[0036] It can be seen from the above technical solutions that the embodiments of the present application have the following advantages:
[0037] Based on any of the above embodiments, when the external adapter reaches its maximum input power, the loads currently in place are classified according to their power levels, with the load with the highest power level being designated as a first load and the remaining loads being designated as second loads. Different first and second power levels are assigned to the first and second loads, slowing down the charging speed of the first load while allowing the second load to charge at the fastest possible speed. This allows the power provided by the external adapter to be efficiently distributed, thereby reducing the overall charging time when charging multiple loads simultaneously. BRIEF DESCRIPTION OF THE DRAWINGS
[0038] In order to more clearly illustrate the embodiments of the present application or the technical solutions in the prior art, the following briefly introduces the drawings required for use in the embodiments or the description of the prior art. Obviously, the drawings described below are only some embodiments of the present application. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying any creative labor.
[0039] FIG1 is a schematic diagram of the appearance of a charging device provided in one embodiment of the present application;
[0040] FIG2 is a schematic diagram of a charging method according to an embodiment of the present application;
[0041] FIG3 is a schematic diagram of a process for determining whether an external adapter has reached maximum input power in one embodiment of the present application;
[0042] FIG4 is a schematic diagram of a process for adjusting the maximum output power setting of a charging device according to an embodiment of the present application;
[0043] FIG5 is a schematic flow chart of a charging method provided in another embodiment of the present application;
[0044] FIG6 is a circuit diagram of a charging method provided in one embodiment of the present application;
[0045] FIG7 is a schematic diagram of a circuit for detecting current and voltage at a power input terminal according to an embodiment of the present application;
[0046] FIG8 is a diagram showing the internal structure of a computer device according to an embodiment of the present application. DETAILED DESCRIPTION
[0047] The following will be combined with the drawings in the embodiments of this application to clearly and completely describe the technical solutions in the embodiments of this application. Obviously, the embodiments described are only part of the embodiments of this application, not all of the embodiments. Based on the embodiments in this application, all other embodiments obtained by ordinary technicians in this field without making creative efforts are within the scope of protection of this application.
[0048] The present application provides a charging method for a charging device comprising at least two charging positions, wherein the charging device is connected to a power source via an external adapter. FIG1 illustrates a charging base, wherein each charging position can charge a handheld terminal PDA. The charging base shown in FIG1 has a total of five charging positions, and thus can simultaneously charge up to five handheld terminal PDAs. The charging base can use the power adapter provided at the factory, or a different power adapter, as long as the connector of the power adapter is compatible with the charging base. Referring to FIG2 , the charging method includes steps S202 to S210.
[0049] S202: Determine whether the external adapter has reached the maximum input power.
[0050] It will be understood that this embodiment addresses the situation where, when the external adapter reaches its maximum input power, there are more than two occupied charging positions, i.e., more than two active loads. By properly allocating power to the active loads, the power provided by the external adapter can be rationally utilized. Upon determining that the external adapter has reached its maximum input power, the process proceeds to step S204, entering the power allocation process. In some embodiments, if it is determined that the external adapter has not reached its maximum input power, each active load can be charged at the same preset power.
[0051] S204: If yes, detect the power of each load in place, and use the one with the highest power as the first load, and the rest as the second load.
[0052] It can be understood that an active load refers to a load connected to a charging station. A specific port on a charging station will display different voltage levels depending on whether a load is connected. Therefore, by detecting this voltage level, it is possible to determine whether a charging station is occupied. A fully charged active load will enter trickle charging, which consumes very little power. When the number of power-intensive loads decreases, the maximum input power of the external adapter may not be fully utilized. Considering all active loads as a whole, the overall input power is reduced, and the charging time is correspondingly prolonged, which is not conducive to efficient energy utilization. Therefore, this embodiment considers slowing down the charging speed of the active load with the highest power, while charging the other active loads as quickly as possible to maintain a balanced charging progress among the active loads. Therefore, it is necessary to first detect the power level of each active load, and based on the detection results, identify the first load with the highest power level, and use the other active loads as the second load. In some embodiments, considering that the active loads generally use lithium batteries, the open circuit voltage of lithium batteries decreases as the power level decreases during charging and discharging. Therefore, there is a corresponding relationship between the open circuit voltage and the amount of electricity. By detecting the open circuit voltage of the load battery, the open circuit voltage can be used to represent the amount of electricity of each load in place, and a comparison can be made.
[0053] S206 , after subtracting the preset first power from the maximum output power, determine the pre-allocated power according to the remaining power and the number of the second loads.
[0054] It can be understood that the maximum output power is the sum of all powers that need to be allocated, and the preset first power is the power to be allocated to the first load. Therefore, after subtracting the preset first power from the maximum output power, the remaining part is all the power that can be allocated to the second load. The share of each second load is the pre-allocated power calculated based on the ratio between the remaining power and the number of second loads. Since it is hoped to slow down the charging speed of the first load, it will be set very small when the first power is preset. For example, when the charging device is charging at a constant voltage, the charging power is determined by the charging current. The charging current corresponding to the first power can be set according to the charging cut-off current, such as floating upward by a fixed value based on the charging cut-off current or amplifying it by a certain proportion.
[0055] S208 : For any second load, select the smaller value of the pre-allocated power and the maximum required power of the second load as the second power, where the second power is greater than the first power.
[0056] It can be understood that the maximum required power refers to the maximum power that the second load can withstand, that is, the power allocated to any of the second loads cannot be greater than its maximum required power. The second power refers to the power to be allocated to the second load. Therefore, if the pre-allocated power is greater than the maximum required power, only the maximum required power can be allocated to the second load. Conversely, if the pre-allocated power is less than the maximum required power of the second load, it means that the external adapter cannot simultaneously meet the charging requirements of all second loads at the maximum power they can withstand, and can only charge at the maximum power it can currently provide, that is, charge at the pre-allocated power. When the second load and the pre-allocated power are exactly equal, it does not matter which one is selected as the second power. In addition, since a very small power is selected when setting the first power, most of the power will be allocated to each second load. Therefore, the second power will be greater than the first power. The charging speed of each second load will be higher than the charging speed of the first load, so that the charging progress of the second load can gradually catch up with the first load.
[0057] S210 , charging a first load according to a first power, and charging a second load according to a corresponding second power.
[0058] It is understood that after determining the first power corresponding to the first load and the second power corresponding to each second load, the output power of the charging station can be controlled by controlling the power control chip corresponding to the charging station to which each load is connected. Specifically, if the charging device adopts a constant voltage charging mode, the output power of the charging station can be adjusted by adjusting the charging current.
[0059] Additionally, if the maximum power demand of a second load is less than the pre-allocated power, some of the remaining power after subtracting the preset first power from the maximum output power will remain unallocated. Charging the first load directly with the preset first power prevents the external adapter from operating at full load, reducing its burden. However, from a charging efficiency perspective, the remaining sum of all maximum output powers minus the preset first power and all second powers can be added to the preset first power to obtain an adjusted first power, and the first load can be charged with the adjusted first power. This approach can maintain the external adapter operating at full load for extended periods, allowing for maximum charging efficiency.
[0060] Based on the charging method of this embodiment, when the external adapter reaches its maximum input power, the loads are classified according to their power levels, with the load with the highest power level being designated as the first load and the remaining loads being designated as the second load. Different first and second power levels are assigned to the first and second loads, slowing the charging speed of the first load while allowing the second load to charge at the fastest possible speed. This allows the power provided by the external adapter to be efficiently distributed, thereby reducing the overall charging time when charging multiple loads simultaneously.
[0061] In one embodiment, referring to FIG. 3 , determining whether the external adapter has reached the maximum input power includes steps S302 to S306 .
[0062] S302: Acquire the current and voltage at the power input terminal, and calculate the input power based on the current and voltage.
[0063] It is understood that the power provided by the external adapter varies adaptively depending on the load connected to the charging device. Therefore, if you need to determine the input power of the external adapter, you need to measure the current and voltage at the power input terminal to calculate it.
[0064] S304: If the input power is greater than the current highest point, update the current highest point according to the input power.
[0065] It will be appreciated that input power monitoring is ongoing, and the current peak point is the maximum input power value before the real-time input power is calculated. After the real-time input power is calculated, if the real-time input power is greater than the current peak point, it indicates that the input power has not yet reached the maximum input power and can be further increased. Therefore, in this case, the current peak point is updated to the newly calculated input power, and the process returns to step S302 to continue monitoring the input power.
[0066] S306: If the input power remains at the current highest point, it is determined that the external adapter has reached the maximum input power.
[0067] It can be understood that maintaining the current highest point here means that the input power calculated for a number exceeding the first number is continuously equal to the current highest point, which means that the external adapter has reached its limit and the power cannot be further increased. It can be determined that the external adapter has reached the maximum input power.
[0068] In one embodiment, referring to FIG. 4 , the charging method further includes steps S402 to S406 .
[0069] S402: When the external adapter reaches the maximum input power, determine whether the maximum output power currently set by the charging device matches the maximum input power.
[0070] S404: If not, adjust parameters related to the maximum output power according to the maximum input power.
[0071] S406: If yes, keep the parameters related to the maximum output power unchanged.
[0072] It will be understood that each charging station of the charging device corresponds to a power control chip for controlling the output power of that charging station. The power control chip operates according to preset parameters, one of which is a parameter related to the maximum output power. If the maximum output power set by the power control chip does not match the maximum input power of the power adapter, it means that the maximum output power is greater than the maximum input power. The power control chip will expect to obtain power beyond the limit from the power adapter, which can lead to problems such as slow charging speed and excessive heating of the charging circuit. Therefore, when the external adapter reaches the maximum input power, it is necessary to perform the determination in step S402 to determine whether the parameters in the power control chip need to be adjusted. Specifically, in some embodiments, the power control chip adopts a constant voltage charging method, and the parameter related to the maximum output power can be the maximum output current. In the event of such a mismatch, the maximum output power can be matched to the maximum input power by reducing the maximum output current. The value of the reduced maximum output current can be determined based on the highest power point recorded in the process shown in Figure 3 and the constant voltage value used by the power control chip for constant voltage charging.
[0073] In one embodiment, determining whether the maximum output power parameter currently set for the charging device matches the maximum input power includes: if the voltage of the external adapter drops when the maximum input power is reached, determining that the currently set maximum output power does not match the maximum input power. Otherwise, determining that the currently set maximum output power matches the maximum input power.
[0074] It will be appreciated that in this embodiment, constant voltage charging is employed, and the power control chip increases the charging power by increasing the charging current. When the maximum output power parameter does not match the maximum input power, the power adapter cannot provide sufficient power, resulting in a voltage drop if the charging current continues to increase even after the power adapter reaches its limit. Therefore, even when determining that the external adapter has reached its maximum input power, the voltage at the power input terminal is continuously monitored, and its changes are used to determine whether a mismatch has occurred.
[0075] In one embodiment, referring to FIG. 5 , the charging method includes steps S502 to S506 .
[0076] S502: Determine whether the external adapter has reached the maximum input power.
[0077] S504: If yes, detect the power of each load in place, and use the one with the highest power as the first load, and the rest as the second load.
[0078] S506 , after subtracting the preset first power from the maximum output power, determine the pre-allocated power according to the remaining power and the number of the second loads.
[0079] S508: For any second load, select the smaller value of the pre-allocated power and the maximum required power of the second load as the second power, where the second power is greater than the first power.
[0080] S510, charging the first load according to the first power, charging the second load according to the corresponding second power, and when the charging time reaches a preset interval, returning to the step of determining whether the external adapter reaches the maximum input power to continue execution.
[0081] It is understood that the processes in Figures 2 and 5 are essentially the same, except that the power allocation process based on power level is performed at preset intervals, such as 5-10 minutes. This is to prevent existing loads with similar power levels from frequently switching between the first and second loads, which would require frequent changes in the operating state of the charging station, placing a burden on the existing loads and the corresponding charging station, and endangering their operating life.
[0082] In one embodiment, the charging method further includes disabling the output of the corresponding charging port when no load is detected. It is understood that in conventional technology, some charging ports remain charged even when no load is connected. However, in actual use, charging ports are easily contaminated with foreign matter, such as sweat and dust, and charged charging ports are susceptible to electrolytic corrosion. Therefore, when no load is present at a charging port, the output of that charging port can be disabled to reduce the occurrence of corrosion.
[0083] The present application provides a charging device, see Figures 1 and 6, comprising a power input terminal 11, two or more charging positions 13, and a computer device 15. The power input terminal is used to connect to an external adapter 100. Each charging position is connected to the power input terminal, and the power provided by the external power supply can reach the charging position through the external adapter and the power input terminal. The computer device includes one or more processors and a memory, wherein the memory stores computer-readable instructions. When the computer-readable instructions are executed by the one or more processors, the following are performed: determining whether the external adapter has reached the maximum input power; if so, detecting the power of each load in place, and taking the one with the highest power as the first load, and the rest as the second loads; after subtracting the preset first power from the maximum output power, determining the pre-allocated power based on the remaining power and the number of second loads; for any second load, selecting the smaller value of the pre-allocated power and the maximum required power of the second load as the second power, the second power being greater than the first power; charging the first load according to the first power, and charging the second load according to the corresponding second power.
[0084] In one embodiment, see FIG6 , the charging device further includes a power control chip 17 . The power control chip corresponds one-to-one to each charging station, is connected between the corresponding charging station and the power input terminal, and is connected to the computer device to adjust the output power of the corresponding charging station under the control of the computer device. If the power control chip is in constant voltage charging mode, it controls the power of each charging station by controlling the current from the power input terminal to each charging station. The power control chip controls the specific power output of the corresponding charging station under the instruction of the computer device (i.e., the wire marked with control in FIG6 ).
[0085] In one embodiment, the charging device further includes a decoy chip 19. The decoy chip is configured to connect to an external adapter and, through communication with the external adapter, activate the external adapter's charging protocol. It will be appreciated that for external adapters with built-in charging protocols, the decoy chip can communicate with the adapter to request the use of the built-in charging protocol, causing the external adapter to output a voltage corresponding to the charging protocol. Of course, for external adapters without built-in charging protocols, the external adapter will operate according to its factory settings, and the decoy chip will have no effect on the external adapter.
[0086] In one embodiment, please refer to FIG6 , an ID pin is provided on the charging position, and a computer device is connected to each ID pin (i.e., the wire marked with ID in FIG6 ) to determine whether there is a load in the corresponding charging position by obtaining the level of the ID pin. It can be understood that a charging connector is provided on the charging position, and the charging position is connected to the load through the charging connector. Currently, the mainstream charging connectors are provided with ID pins, such as USB connectors, Mini-A, Mini-B, Micro USB A, etc. The level of the ID pin will be determined by whether the charging connector where it is located is connected to the load. Specifically, when the ID pin is high, the load is not in place, and when the ID pin is low, the load is in place. By collecting the level of the ID pin, the computer device can determine whether there is a load in place at the corresponding charging position.
[0087] In one embodiment, the computer device determines the power of the load in place by detecting the open-circuit voltage of the load in place. Therefore, the computer device collects the open-circuit voltage of the load in place through the wire marked ADC in Figure 6 to determine the power of the load in place.
[0088] In one embodiment, referring to FIG6 , the charging device further includes a detection resistor 21. A computer device is connected to both ends of the detection resistor to collect the voltage across the detection resistor. The detection resistor is used to detect the voltage and current at the power input terminal. Specifically, the computer device obtains the current at the power input terminal based on the voltage difference across the detection resistor and the resistance value of the detection resistor. The voltage at the power input terminal is then determined based on the voltage at the end of the detection resistor connected to the power input terminal. In some embodiments, as shown in FIG7 , current calculation can also be achieved by providing a subtractor 23, the two input ends of which are respectively connected to the two ends of the detection resistor, and the output end (AD2) of the subtractor is connected to the computer device to output the calculation result to the computer device. The end (AD1) of the detection resistor connected to the power input terminal is connected to the computer device to facilitate the computer device to collect the voltage at the power input terminal. In addition, a diode 23 for protection and a switch tube 25 for controlling the opening and closing of the corresponding charging position can also be provided on the branch connecting each charging position to the power input terminal. When the computer device determines that there is no load at a charging position, it can send a control signal to the control end (EN1...ENX) of the corresponding switch tube to disconnect the charging position from the power input end, so that the charging connector of the charging position is not powered.
[0089] In one embodiment, when the computer-readable instructions are executed by one or more processors, the instructions perform the following steps: obtaining the current and voltage at the power input terminal, and calculating the input power based on the current and voltage; if the input power is greater than the current maximum point, updating the current maximum point based on the input power; and if the input power remains at the current maximum point, determining that the external adapter has reached the maximum input power.
[0090] In one embodiment, when the computer-readable instructions are executed by one or more processors, the following are performed: when the external adapter reaches the maximum input power, determining whether the maximum output power currently set by the charging device matches the maximum input power; if not, adjusting the parameters related to the maximum output power according to the maximum input power; if so, keeping the parameters related to the maximum output power unchanged.
[0091] In one embodiment, when the computer-readable instructions are executed by one or more processors, the following is performed: if the voltage drops when the external adapter reaches the maximum input power, it is determined that the currently set maximum output power does not match the maximum input power; otherwise, it is determined that the currently set maximum output power matches the maximum input power.
[0092] In one embodiment, when the computer-readable instructions are executed by one or more processors, the following steps are performed: when the time for charging the first load at the first power and the corresponding second load at the second power reaches a preset interval, the execution returns to the step of determining whether the external adapter has reached the maximum input power.
[0093] In one embodiment, when the computer readable instructions are executed by one or more processors, the computer readable instructions are configured to: turn off the output of the corresponding charging bit when no load is detected.
[0094] Schematically, as shown in Figure 8, Figure 8 is a schematic diagram of the internal structure of a computer device provided in an embodiment of the present application. The computer device 800 can be a single-chip microcomputer. Referring to Figure 8, the computer device 800 includes a processing component 802, which further includes one or more processors, and a memory resource represented by a memory 801 for storing instructions executable by the processing component 802, such as an application. The application stored in the memory 801 can include one or more modules, each corresponding to a set of instructions. In addition, the processing component 802 is configured to execute instructions to perform the steps of the charging method of any of the above-mentioned embodiments.
[0095] The computer device 800 may further include a power supply component 803 configured to perform power management of the computer device 800, a wired or wireless network interface 804 configured to connect the computer device 800 to a network, and an input / output (I / O) interface 805. The computer device 800 may operate based on an operating system stored in the memory 801, such as Windows Server™, Mac OS X™, Unix™, Linux™, Free BSD™, or the like.
[0096] Those skilled in the art will understand that the structure shown in FIG8 is merely a block diagram of a portion 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 shown in the figure, or combine certain components, or have a different arrangement of components.
[0097] The present application provides a storage medium storing computer-readable instructions. When the computer-readable instructions are executed by one or more processors, the one or more processors are caused to perform the following steps: determining whether an external adapter has reached a maximum input power; if so, detecting the power of each load in place, and using the load with the highest power as a first load, and the remaining loads as second loads; subtracting a preset first power from the maximum output power, and determining a pre-allocated power based on the remaining power and the number of second loads; for any second load, selecting the smaller value of the pre-allocated power and the maximum required power of the second load as the second power, the second power being greater than the first power; charging the first load according to the first power, and charging the second load according to the corresponding second power.
[0098] In one embodiment, when the computer-readable instructions are executed by one or more processors, the one or more processors are caused to perform the following: obtaining the current and voltage at the power input terminal, and calculating the input power based on the current and voltage; if the input power is greater than the current maximum point, updating the current maximum point based on the input power; and if the input power remains at the current maximum point, determining that the external adapter has reached the maximum input power.
[0099] In one embodiment, when the computer-readable instructions are executed by one or more processors, the one or more processors are caused to perform the following: when the external adapter reaches the maximum input power, determine whether the maximum output power currently set by the charging device matches the maximum input power; if not, adjust the parameters related to the maximum output power according to the maximum input power; if so, keep the parameters related to the maximum output power unchanged.
[0100] In one embodiment, when the computer-readable instructions are executed by one or more processors, the one or more processors are caused to perform the following: if the voltage drops when the external adapter reaches the maximum input power, then it is determined that the currently set maximum output power does not match the maximum input power; otherwise, it is determined that the currently set maximum output power matches the maximum input power.
[0101] In one embodiment, when the computer-readable instructions are executed by one or more processors, the one or more processors execute: when the time for charging the first load at the first power and the corresponding second load at the second power reaches a preset interval, return to the step of determining whether the external adapter has reached the maximum input power and continue execution.
[0102] In one embodiment, when the computer readable instructions are executed by one or more processors, the one or more processors are caused to execute: when no load is detected at the bit, turning off the output of the corresponding charging bit.
[0103] Finally, it should be noted that, in this document, relational terms such as first and second, etc., are used only to distinguish one entity or operation from another entity or operation, and do not necessarily require or imply any actual relationship or order between these entities or operations. Moreover, the terms "comprises," "comprising," or any other variations thereof are intended to cover non-exclusive inclusion, such that a process, method, article, or device comprising a series of elements includes not only those elements, but also other elements not explicitly listed, or elements inherent to such process, method, article, or device. In the absence of further limitations, an element defined by the phrase "comprising a ..." does not exclude the presence of additional identical elements in the process, method, article, or device comprising the element.
[0104] The various embodiments in this specification are described in a progressive manner, and each embodiment focuses on the differences from other embodiments. The various embodiments can be combined as needed, and the same or similar parts can be referenced to each other.
[0105] The above description of the disclosed embodiments is intended to enable one skilled in the art to implement or use the present application. Various modifications to these embodiments will be readily apparent to one skilled in the art, and the general principles defined herein may be implemented in other embodiments without departing from the spirit or scope of the present application. Therefore, the present application is not limited to the embodiments shown herein, but is intended to conform to the widest scope consistent with the principles and novel features disclosed herein.
Claims
1. A charging method, characterized in that: Applied to a charging device including at least two charging positions, the charging device is connected to a power source via an external adapter, and the charging method includes: Determining whether the external adapter reaches the maximum input power; If yes, then detect the power of each load in place, and take the one with the highest power as the first load, and the rest as the second load; After subtracting the preset first power from the maximum output power, determining the pre-allocated power according to the remaining power and the number of the second loads; For any one of the second loads, select the smaller value between the pre-allocated power and the maximum required power of the second load as the second power, and the second power is greater than the first power; The first load is charged according to the first power, and the second load is charged according to the corresponding second power.
2. The charging method according to claim 1, characterized in that: The determining whether the external adapter reaches the maximum input power comprises: Obtaining the current and voltage at the power input terminal, and calculating the input power according to the current and voltage; If the input power is greater than the current highest point, updating the current highest point according to the input power; If the input power remains at the current highest point, it is determined that the external adapter has reached the maximum input power.
3. The charging method according to claim 2, characterized in that: The charging method further comprises: When the external adapter reaches the maximum input power, determining whether the maximum output power currently set by the charging device matches the maximum input power; If not, adjusting the parameters related to the maximum output power according to the maximum input power; If so, the parameters related to the maximum output power remain unchanged.
4. The charging method according to claim 3, characterized in that: The determining whether the maximum output power parameter currently set by the charging device matches the maximum input power includes: If the voltage drops when the external adapter reaches the maximum input power, it is determined that the currently set maximum output power does not match the maximum input power; otherwise, it is determined that The currently set maximum output power is determined to match the maximum input power.
5. The charging method according to any one of claims 1 to 4, characterized in that: The charging method further comprises: When the first load is charged with the first power and the corresponding time for charging the second load with the second power reaches a preset interval, the step of determining whether the external adapter reaches the maximum input power is continued.
6. The charging method according to any one of claims 1 to 4, characterized in that: The charging method further comprises: When the load in position is not detected, the output corresponding to the charging position is turned off.
7. A charging device, characterized in that: include: A power input terminal, used for connecting to an external adapter; Two or more charging positions connected to the power input terminal; A computer device comprises one or more processors and a memory, wherein the memory stores computer-readable instructions, and when the computer-readable instructions are executed by the one or more processors, the charging method according to any one of claims 1 to 6 is executed.
8. The charging device according to claim 7, characterized in that: The charging device also includes a power control chip; The power control chip corresponds to the charging position one by one, is connected between the corresponding charging position and the power input terminal, and is connected to the computer device, and is used to adjust the output power of the corresponding charging position under the control of the computer device.
9. The charging device according to claim 7, characterized in that: The charging device also includes a decoy chip; The deception chip is used to connect to the external adapter and start the charging protocol of the external adapter by communicating with the external adapter.
10. The charging device according to claim 7, characterized in that: The charging position is provided with an ID pin, and the computer device is connected to each of the ID pins to determine whether there is a load in the corresponding charging position by obtaining the level of the ID pin.
11. A storage medium, characterized in that: The storage medium stores computer-readable instructions, and when the computer-readable instructions are executed by one or more processors, the one or more processors execute the steps of the charging method according to any one of claims 1 to 6.
Citation Information
Patent Citations
Charging power regulation and control method and device and computer readable storage medium
CN112803523A
Multi-energy storage unit cooperative charging method
CN115312894A
Charging method and device, power adapter and storage medium
CN116031965A
Charging method and device and storage medium
CN116961196A
Desktop computer expansion interface circuit capable of supporting PD protocol fast charging
CN218497492U