CN116388338A - Output power determining method and charger - Google Patents

Output power determining method and charger Download PDF

Info

Publication number
CN116388338A
CN116388338A CN202310453070.1A CN202310453070A CN116388338A CN 116388338 A CN116388338 A CN 116388338A CN 202310453070 A CN202310453070 A CN 202310453070A CN 116388338 A CN116388338 A CN 116388338A
Authority
CN
China
Prior art keywords
charging
charging port
power
chip
power level
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN202310453070.1A
Other languages
Chinese (zh)
Inventor
李俊成
史载
余诗李
黄煜铭
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Xiamen Yingmaikexin Integrated Technology Co ltd
Original Assignee
Xiamen Yingmaikexin Integrated Technology Co ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Xiamen Yingmaikexin Integrated Technology Co ltd filed Critical Xiamen Yingmaikexin Integrated Technology Co ltd
Priority to CN202310453070.1A priority Critical patent/CN116388338A/en
Publication of CN116388338A publication Critical patent/CN116388338A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • HELECTRICITY
    • H02GENERATION; CONVERSION OR DISTRIBUTION OF ELECTRIC POWER
    • H02JCIRCUIT ARRANGEMENTS OR SYSTEMS FOR SUPPLYING OR DISTRIBUTING ELECTRIC POWER; SYSTEMS FOR STORING ELECTRIC ENERGY
    • H02J7/00Circuit arrangements for charging or depolarising batteries or for supplying loads from batteries
    • H02J7/00047Circuit arrangements for charging or depolarising batteries or for supplying loads from batteries with provisions for charging different types of batteries

Landscapes

  • Engineering & Computer Science (AREA)
  • Power Engineering (AREA)
  • Charge And Discharge Circuits For Batteries Or The Like (AREA)

Abstract

The application discloses a determination method of output power and a charger, and belongs to the technical field of electronics. Through the technical scheme provided by the embodiment of the application, the first charging port of the charger is responded to enter a charging state, and the required charging power of the charging equipment connected with the first charging port is determined. A first reference power level of the second charging port is obtained, wherein the first reference power level is used for representing the charging state of the second charging port, namely determining the output power of the second charging port. Based on the first reference power level of the second charging port and the required charging power of the charging equipment, the output power of the first charging port is determined, the purpose of intelligently distributing the output power of the two charging ports of the charger is achieved, and the charging performance of the charger is exerted to the greatest extent.

Description

Output power determining method and charger
Technical Field
The present disclosure relates to the field of electronic technologies, and in particular, to a method for determining output power and a charger.
Background
With the development of science and technology, intelligent terminals (such as mobile phones, tablet computers, notebook computers, etc.) are becoming more popular. The smart terminals are typically powered by a battery, which needs to be charged in case of a battery run out.
In the related art, since one user may have a plurality of smart devices, in order to improve the space utilization, there is a charger having two charging ports, and two smart devices can be charged simultaneously using the charger.
However, when the charger charges two smart devices at the same time, how to distribute charging power to two charging ports of the charger is a problem to be solved.
Disclosure of Invention
The embodiment of the application provides a determination method of output power and a charger, which can improve the determination effect of the output power, and the technical scheme is as follows:
in one aspect, a method for determining output power is provided and applied to a charger, the charger includes a first chip and a second chip, the first chip is used for controlling a first charging port of the charger, and the second chip is used for controlling a second charging port of the charger, the method includes:
in response to a first charging port of a charger entering a charging state, the first chip determines required charging power of charging equipment connected with the first charging port;
the second chip sends the power level of the second charging port to the first chip;
the first chip determines a first reference power level of the second charging port based on the power level of the second charging port sent by the second chip, wherein the first reference power level is used for representing the charging state of the second charging port;
The first chip determines the output power of the first charging port based on a first reference power level of the second charging port and the required charging power of the charging device.
In one possible implementation, the determining, by the first chip, the output power of the first charging port based on the first reference power level of the second charging port and the required charging power of the charging device includes:
the first chip determines the first reference power level as the target power level of the first charging port based on the first reference power level of the second charging port under the condition that the second charging port is in a charging state;
the first chip determines output power of the first charging port based on target power level of the first charging port and required charging power of the charging device.
In one possible implementation, the determining, by the first chip, the output power of the first charging port based on the target power level of the first charging port and the required charging power of the charging device includes:
the first chip determines target power corresponding to the target power level of the first charging port, wherein the target power is the difference between the maximum output power of the charger and the output power corresponding to the current power level of the second charging port;
When the required charging power of the charging device is greater than or equal to the target power, the first chip determines the target power as the output power of the first charging port;
and under the condition that the required charging power of the charging equipment is smaller than the target power, the first chip determines the charging required power as the output power of the first charging port.
In one possible implementation, the determining, by the first chip, the output power of the first charging port based on the first reference power level of the second charging port and the required charging power of the charging device includes:
the first chip determines the output power of the first charging port based on the preset maximum output power of the first charging port and the required charging power of the charging equipment under the condition that the second charging port of the charger is not in a charging state based on the first reference power level of the second charging port.
In one possible implementation manner, the determining, by the first chip, the output power of the first charging port based on the preset maximum output power of the first charging port and the required charging power of the charging device includes:
When the required charging power of the charging equipment is larger than or equal to the preset maximum output power, the first chip determines the output power of the first charging port as the preset maximum output power;
and under the condition that the required charging power of the charging equipment is smaller than the preset maximum output power, the first chip determines the output power of the first charging port as the required charging power of the charging equipment.
In one possible implementation, the determining, by the first chip, the first reference power level of the second charging port based on the power level of the second charging port sent by the second chip includes:
and if the first chip continuously acquires the same power level from the second chip for N times within a preset time period, the first chip determines the same power level as a first reference power level of the second charging port, wherein N is a positive integer.
In one possible embodiment, the preset maximum output power of the first charging port is equal to the preset maximum output power of the second charging port.
In one aspect, a charger is provided, the charger including a first chip for controlling a first charging port of the charger and a second chip for controlling a second charging port of the charger;
The first chip is used for responding to a first charging port of the charger to enter a charging state, and determining the required charging power of charging equipment connected with the first charging port;
the second chip is used for sending the power grade of the second charging port to the first chip;
the first chip is further configured to determine a first reference power level of the second charging port based on the power level of the second charging port sent by the second chip, where the first reference power level is used to represent a charging state of the second charging port;
the first chip is further configured to determine an output power of the first charging port based on a first reference power level of the second charging port and a required charging power of the charging device.
In a possible implementation manner, the first chip is further configured to determine a target power level of the first charging port based on a first reference power level of the second charging port, where the target power level is the same as the power level of the second charging port, and the power level of the first charging port is inversely related to the output power, and the power level of the second charging port is positively related to the output power;
The first chip is further configured to adjust the output power of the first charging port to a power corresponding to the target power level.
In one possible embodiment, in the case that the power level of the first charging port and the power level of the second charging port are the same, the sum of the output power of the first charging port and the output power of the second charging port is the maximum output power of the charger.
In a possible implementation manner, the first chip is further configured to determine, based on a first reference power level of the second charging port, an output power of the first charging port based on a preset maximum output power of the first charging port and a required charging power of the charging device, in a case where it is determined that the second charging port of the charger is not in a charging state.
In a possible implementation manner, the first chip is further configured to determine, when the required charging power of the charging device is greater than or equal to the preset maximum output power, the output power of the first charging port as the preset maximum output power; and under the condition that the required charging power of the charging equipment is smaller than the preset maximum output power, the first chip determines the output power of the first charging port as the required charging power of the charging equipment.
In one possible implementation manner, the first chip is further configured to determine the same power level as the first reference power level of the second charging port if the same power level is obtained from the second chip N times in succession within a preset period of time, where N is a positive integer.
In one possible embodiment, the preset maximum output power of the first charging port is equal to the preset maximum output power of the second charging port.
In one aspect, a computer readable storage medium having at least one computer program stored therein is provided, the computer program being loaded and executed by a processor of a chip in a charger to implement the method of determining output power.
In one aspect, a computer program product or computer program is provided, the computer program product or computer program comprising a program code, the program code being stored in a computer readable storage medium, a processor of a chip in a charger reading the program code from the computer readable storage medium, the processor executing the program code, causing the charger to perform the above-described method of determining output power.
Through the technical scheme provided by the embodiment of the application, the first charging port of the charger is responded to enter a charging state, and the required charging power of the charging equipment connected with the first charging port is determined. A first reference power level of the second charging port is obtained, wherein the first reference power level is used for representing the charging state of the second charging port, namely determining the output power of the second charging port. Based on the first reference power level of the second charging port and the required charging power of the charging equipment, the output power of the first charging port is determined, the purpose of intelligently distributing the output power of the two charging ports of the charger is achieved, and the charging performance of the charger is exerted to the greatest extent.
Drawings
In order to more clearly illustrate the technical solutions of the embodiments of the present application, the following description will briefly explain the drawings needed in the description of the embodiments, and it is obvious that the drawings in the following description are only some embodiments of the present application, and that other drawings can be obtained according to these drawings without inventive effort for a person skilled in the art.
Fig. 1 is a schematic diagram of an implementation environment of a method for determining output power according to an embodiment of the present application;
FIG. 2 is a flow chart of a method for determining output power according to an embodiment of the present application;
FIG. 3 is a flow chart of another method for determining output power provided by an embodiment of the present application;
FIG. 4 is a flow chart of yet another method for determining output power provided by an embodiment of the present application;
fig. 5 is a schematic structural diagram of a charger according to an embodiment of the present application;
fig. 6 is a schematic structural diagram of a chip according to an embodiment of the present application.
Detailed Description
For the purpose of making the objects, technical solutions and advantages of the present application more apparent, the embodiments of the present application will be described in further detail below with reference to the accompanying drawings.
The terms "first," "second," and the like in this application are used to distinguish between identical or similar items that have substantially the same function and function, and it should be understood that there is no logical or chronological dependency between the "first," "second," and "nth" terms, nor is it limited to the number or order of execution.
An adapter: a mobile phone and computer charger converting alternating current into direct current.
And (3) vehicle charging: a mobile phone and a computer vehicle-mounted charger converting direct current into direct current.
Single port quick charging: a charger having only one charging output port.
Double-port quick charging: a charger having two charging output ports.
And (3) a fast charging protocol chip: and the charging port is responsible for communicating with the equipment end, adjusting the output voltage and current of the power supply according to the request of the equipment, monitoring the charging power in real time, and distributing the power during multi-port quick charging.
USB-Type A Port: USB A type charging port, abbreviated as A port.
USB-Type C port: USB C type charging port, C port for short.
PD (Power Delivery) fast charging: is a fast charging specification formulated by the USB-IF organization, and is one of the mainstream fast charging protocols.
Fig. 1 is a schematic diagram of an implementation environment of a method for adjusting output power according to an embodiment of the present application, referring to fig. 1, where the implementation environment includes a charger 100, the charger 100 includes a first charging port 101 and a second charging port 102, the first charging port 101 is controlled by a first chip 103, the second charging port 102 is controlled by a second chip 104, for example, the first chip 103 can control the output power of the first charging port 101, and the second chip 104 can control the output power of the second charging port 102. In the embodiment of the present application, the first chip 103 and the second chip 104 are both fast charging protocol chips, and the second chip 104 is capable of sending information to the first chip 103.
After describing the implementation environment of the embodiment of the present application, an application scenario of the technical solution provided in the embodiment of the present application will be described below in conjunction with the implementation environment, where in the following description process, the charger is that of the charger 100 in the implementation environment, the first charging port is that of the first charging port 101 in the implementation environment, the second charging port is that of the second charging port 102 in the implementation environment, the first chip is that of the first chip 103 in the implementation environment, and the second chip is that of the second chip 104 in the implementation environment.
The technical scheme that this application embodiment provided can be applied in the in-process that uses the charger to charge to intelligent terminal, and this charger has first mouth and the second mouth of charging. After the technical scheme provided by the embodiment of the application is adopted, the first chip determines the required charging power of the charging equipment connected with the first charging port in response to the first charging port of the charger entering the charging state, and the required charging power is the maximum charging power supported by the charging equipment. The first chip obtains a first reference power level of the second charging port, wherein the first reference power level is used for indicating the output power of the second charging port when the second charging port is stably charged. The first chip determines the output power of the first charging port based on the first reference power level of the second charging port and the required charging power of the charging equipment, and dynamically determines the charging power of the first charging port on the premise of ensuring that the second charging port is charged with proper charging power, so that the intelligent distribution of the output power of the charger is realized, and the charging performance of the charger is maximized.
After the implementation environment and the application scenario of the embodiments of the present application are described, the following describes the method for adjusting the output power provided by the embodiments of the present application, referring to fig. 2, applied to a charger, where the charger includes a first chip and a second chip, the first chip is used to control a first charging port of the charger, and the second chip is used to control a second charging port of the charger, and the method includes the following steps.
201. In response to the first charging port of the charger entering a charging state, the first chip determines a required charging power of a charging device connected to the first charging port.
The charger comprises two charging ports, wherein the first charging port is any charging port of the charger, and correspondingly, the second charging port described later is the other charging port of the charger. The first charging port entering the charging state means that the first charging port enters from charging, that is, the first charging port is just connected with the charging device. The charging equipment is an intelligent terminal to be charged, such as a mobile phone, a tablet computer or a notebook computer to be charged. The required charging power of the charging device refers to the maximum charging power supported by the charging device, that is, when the charging device is charged by using the maximum charging power, the charging device is charged at the fastest speed, and the required charging power is set by the manufacturer of the charging device, which is generally related to the hardware structure of the charging device and the supported charging protocol, which is not limited in this embodiment of the present application.
202. The second chip sends the power level of the second charging port to the first chip.
The power level is used to indicate the magnitude of the output power, and the first charging port and the second charging port both have the concept of power level, but the correlation between the output power of the first charging port and the output power of the second charging port and the power level is opposite, for example, in the case that the output power of the first charging port is inversely correlated with the power level, the output power of the second charging port is positively correlated with the power level.
203. The first chip determines a first reference power level of the second charging port based on the power level of the second charging port transmitted by the second chip, wherein the first reference power level is used for representing the charging state of the second charging port.
The state of charge may be used to describe whether the second charging port is charging or not, or to describe the output power of the second charging port, because it is also possible to determine whether the second charging port is charging or not based on the output power.
204. The first chip determines the output power of the first charging port based on the first reference power level of the second charging port and the required charging power of the charging device.
The first reference power level of the second charging port can reflect the output power of the second charging port, so that the output power of the first charging port is adjusted based on the first reference power level and the required charging power, the maximum output power of the charger can be utilized to the maximum extent, and reasonable distribution of the output power is realized.
Through the technical scheme provided by the embodiment of the application, the first charging port of the charger is responded to enter a charging state, and the required charging power of the charging equipment connected with the first charging port is determined. A first reference power level of the second charging port is obtained, wherein the first reference power level is used for representing the charging state of the second charging port, namely determining the output power of the second charging port. Based on the first reference power level of the second charging port and the required charging power of the charging equipment, the output power of the first charging port is determined, the purpose of intelligently distributing the output power of the two charging ports of the charger is achieved, and the charging performance of the charger is exerted to the greatest extent.
The foregoing steps 201 to 204 are a simple introduction to the method for adjusting output power provided in the embodiments of the present application, and the technical solution provided in the embodiments of the present application will be described more clearly with reference to some examples, and referring to fig. 3, the charger is applied to a charger, where the charger includes a first chip and a second chip, the first chip is used to control a first charging port of the charger, and the second chip is used to control a second charging port of the charger, and the method includes the following steps.
301. The first chip determines a charging state of a first charging port of the charger.
The charger comprises two charging ports, wherein the first charging port is any charging port of the charger, and correspondingly, the second charging port described later is the other charging port of the charger. For example, two charging ports of the charger are USB-Type C ports, the charger is a double-C-port quick-charging charger, and the USB-Type C ports can be matched with a USB-PD universal protocol to charge mobile phones, tablet computers and notebook computers, so that the charger can supply power for high-power equipment and also can charge low-power equipment. In some embodiments, the preset maximum output power of two charging ports of the charger is the same, and a user can achieve the same charging effect when using any charging port of the charger alone. The preset maximum output power is the theoretical maximum output power when the charging port is designed, namely the theoretical maximum available charging power of the charging port. The charging state is used for reflecting the charging condition of the first charging port.
In one possible implementation, the first chip determines the power level of the first charging port. And under the condition that the power level of the first charging port is larger than the first preset power level, the first chip determines that the first charging port of the charger enters a charging state, and the first preset power level corresponds to the theoretical minimum output power of the first charging port. And under the condition that the power level of the first charging port is equal to the first preset power level, the first chip determines that the first charging port of the charger does not enter a charging state.
Wherein the power class, also referred to as power state class, is a simplified description of the output power. For the first charging port, the different power levels correspond to different maximum output powers of the first charging port; for the second charging port, the different power levels correspond to different maximum output powers of the second charging port. The corresponding relation between the power level and the maximum output power of the first charging port and the corresponding relation between the power level and the maximum output power of the second charging port are set by a technician according to actual conditions, and the first chip and the second chip respectively store the corresponding relation. The first preset power level is set by a technician according to practical situations, which is not limited in the embodiment of the present application. Accordingly, the theoretical minimum output power of the first charging port refers to the maximum power output by the first charging port when the first charging port is not used for charging, for example, the theoretical minimum output power is 0. That is, at the first preset power level, the first charging port is not in a charging state. In the embodiment of the present application, for the first charging port, the higher the power level, the lower the output power, that is, the power level is inversely related to the output power.
In this embodiment, the state of charge of the first charging port can be determined by the initial power level of the first charging port, and the determination efficiency of the state of charge is high.
For example, the first chip periodically determines the power level of the first charging port. The power level of the first charging port is compared with a first preset power level after each cycle is completed. Under the condition that the power level of the first charging port is larger than the first preset power level in any period, the first chip determines that the first charging port enters a charging state in the period. Under the condition that the power level of the first charging port is equal to the first preset power level in any period, the first chip determines that the first charging port does not enter a charging state in the period.
In one possible embodiment, the first chip determines the output power of the first charging port. And under the condition that the output power of the first charging port is larger than the theoretical minimum output power, the first chip determines that the first charging port of the charger enters a charging state. And under the condition that the output power of the first charging port is equal to the theoretical minimum output power, the first chip determines that the first charging port of the charger does not enter a charging state.
In this embodiment, the first chip can determine the charging state of the first charging port through the output power of the first charging port, and the determination efficiency of the charging state is high.
For example, the first chip periodically determines the output power of the first charging port. The output power of the first charging port is compared with a theoretical minimum output power after each cycle is completed. Under the condition that the output power of the first charging port is larger than the theoretical minimum output power in any period, the first chip determines that the first charging port enters a charging state in the period. And under the condition that the output power of the first charging port is equal to the theoretical minimum output power in any period, the first chip determines that the first charging port does not enter a charging state in the period.
In one possible implementation manner, in response to a charging request sent by the charging device, the first chip determines that the first charging port enters a charging state, where the charging request is sent to the first chip after the charging device is connected to the first charging port, and is used for requesting to charge the charging device through the first charging port.
302. In response to the first charging port of the charger entering a charging state, the first chip determines a required charging power of a charging device connected to the first charging port.
The first charging port entering the charging state means that the first charging port enters from charging, that is, the first charging port is just connected with the charging device. The charging equipment is an intelligent terminal to be charged, such as a mobile phone, a tablet computer or a notebook computer to be charged. The required charging power of the charging device refers to the maximum charging power supported by the charging device, that is, when the charging device is charged by using the maximum charging power, the charging device is charged at the fastest speed, and the required charging power is set by the manufacturer of the charging device, which is generally related to the hardware structure of the charging device and the supported charging protocol, which is not limited in this embodiment of the present application. In some embodiments, the required charging power of the charging device is also referred to as the rated charging power of the charging device or the agreed charging power of the charging device.
In one possible implementation, in response to the first charging port of the charger entering a charging state, the first chip determines a charging protocol corresponding to the charging device. The first chip determines a required charging power of the charging device based on the charging protocol.
The charging protocol is a communication mode agreed between the charging equipment and the charger and is used for negotiating the voltage and the power charged to the charging equipment. In some embodiments, the charging protocol is a general PD protocol and QC protocol, or a proprietary protocol of each manufacturer, etc., which is not limited in this embodiment of the present application.
In the embodiment, the charging protocol can rapidly determine the required charging power of the charging equipment, so that the efficiency is high.
For example, in response to the first charging port entering a charging state, the first chip determines a charging protocol corresponding to the charging device, where the charging protocol is a charging protocol supported by both the charging device and the charger. The first chip negotiates with the charging equipment based on the charging protocol to obtain the required charging power of the charging equipment.
In one possible implementation, in response to the first charging port of the charger entering a charging state, the first chip obtains device information sent by the charging device. And the first chip queries based on the equipment information to obtain the required charging power of the charging equipment.
In the embodiment, the required charging power of the charging equipment can be quickly determined through the equipment information of the charging equipment, and the efficiency is high.
303. The second chip sends the power level of the second charging port to the first chip.
The power level is used to indicate the magnitude of the output power, and the first charging port and the second charging port both have the concept of power level, but the correlation between the output power of the first charging port and the output power of the second charging port and the power level is opposite, for example, in the case that the output power of the first charging port is inversely correlated with the power level, the output power of the second charging port is positively correlated with the power level.
In one possible implementation, the second chip determines the power class of the second charging port based on the output power of the second charging port. The second chip sends the power level of the second charging port to the first chip.
In this embodiment, the second chip is capable of determining the power level of the second charging port based on the output power of the second charging port, and transmitting the power level of the second charging port to the first chip, so that the first chip can dynamically adjust the power based on the power level of the second chip.
For example, the second chip determines the current of the second charging port. The second chip determines the output power of the second charging port based on the current and voltage of the second charging port. And the second chip queries based on the output power of the second charging port to obtain the power class of the second charging port. After the second chip determines the power level of the second charging port, the power level of the second charging port can be announced outwards, so that the purpose of sending the power level of the second charging port to the first chip is achieved.
304. The first chip determines a first reference power level of a second charging port of the charger based on the power level of the second charging port transmitted by the second chip, the first reference power level being used to represent a state of charge of the second charging port.
Wherein the power class, also referred to as power state class, is a simplified description of the output power. The power class is used to represent the magnitude of the output power. For the first charging port, the different power levels correspond to different maximum output powers of the first charging port; for the second charging port, the different power levels correspond to different maximum output powers of the second charging port. The corresponding relation between the power level and the maximum output power of the first charging port and the corresponding relation between the power level and the maximum output power of the second charging port are set by a technician according to actual conditions, and the first chip and the second chip respectively store the corresponding relation. That is, the first charging port and the second charging port both have the concept of power class, but the correlation of the maximum output power of the first charging port and the second charging port with the power class is opposite, for example, in the case that the maximum output power of the first charging port is inversely correlated with the power class, the maximum output power of the second charging port is positively correlated with the power class, that is, the higher the power class of the first charging port, the lower the maximum output power; the higher the power level of the second charging port, the higher the maximum output power. The first reference power level belongs to the power level described above, and refers to the power level of the second charging port obtained after the above step 302 is performed.
In one possible implementation, if the first chip acquires the same power level from the second chip N times in succession within a preset period of time, the first chip determines the same power level as the first reference power level of the second charging port, and N is a positive integer.
And a period of time exists between the second charging port entering the charging state and the stable charging, in which the output power of the second charging port may change greatly, and after the second charging port enters the stable charging, the output power of the second charging port is stable, and the preset period of time is to wait for the second charging port to enter the stable charging state after the period of time elapses.
In this embodiment, the first chip may determine, as the first reference power level, the power level of the second charging port obtained continuously N times in the preset period, and wait for the preset period to enable the second charging port to enter a stable charging state, so that the accuracy of subsequently adjusting the output power of the first charging port is higher.
For example, the first chip periodically obtains the power level of the second charging port from the second chip. The first chip determines the last acquired power level of the second charging port in a target period as a first reference power level of the second charging port, wherein the length of the target period is the preset time period, and the target period is a period started after the first charging port enters a charging state.
On the basis of the above embodiment, optionally, if the first chip does not acquire the same power level from the second chip for N consecutive times within the preset period of time, the first chip resets the preset period of time and reacquires the power level of the second charging port, so as to cycle until the first chip acquires the same power level for N consecutive times within the preset period of time.
In order to more clearly illustrate the technical solution described in the above example, a method for determining the power level of the second charging port by the second chip is described below.
In some embodiments, the second chip determines the current of the second charging port at the end of each cycle. The second chip determines the output power of the second charging port based on the current and voltage of the second charging port. The second chip determines the power class of the second charging port based on the output power of the second charging port. Of course, after the second charging port determines the power level of the second charging port, the power level of the second charging port can be announced to the outside, that is, the power level of the second charging port is broadcasted, so that the first chip can obtain the power level of the second charging port. The period of determining the power level of the second charging port by the second chip is set by a technician according to the actual situation, which is not limited in the embodiment of the present application.
The following describes, with reference to table 1, the correspondence between the power levels and the output power of the first charging port and the output power of the second charging port, respectively, taking the maximum output power of the charger as an example of 45W.
TABLE 1
Power class Plug-in power/W Post-insertion power/W System power/W
0 0 45 45
1 5 40 45
2 10 35 45
3 15 30 45
4 20 25 45
5 25 20 45
6 30 15 45
7 35 10 45
8 40 5 45
In table 1, the first plug power represents the maximum output power of the second charging port, the second plug power represents the maximum output power of the first charging port, the system power represents the maximum output power of the charger, and the maximum output power of the system power does not change for the same charger. As can be seen from table 1, as the power level increases, the maximum output power of the second charging port increases, and the maximum output power of the first charging port decreases, i.e., the power level is inversely related to the maximum output power of the first charging port and positively related to the output power of the second charging port.
In the above description, the first and second inserting means a connection sequence between the charging device and the charging port, and in the above description, one charging device is connected to the second charging port to charge, and the other charging device is connected to the first charging port to charge, where the first and second inserting are also changed when the connection sequence is changed.
305. The first chip determines whether the second charging port is in a charged state based on a first reference power level of the second charging port.
In one possible implementation, the first chip determines that the second charging port of the charger enters the charging state if the first reference power level is greater than the first preset power level, the first preset power level corresponding to a theoretical minimum output power of the second charging port. And under the condition that the first reference power level is equal to the first preset power level, the first chip determines that the second charging port of the charger does not enter a charging state.
The first preset power level refers to a theoretical minimum output power of the second charging port, and is set by a technician according to an actual situation, which is not limited in the embodiment of the present application. Accordingly, the theoretical minimum output power of the second charging port refers to the maximum power output by the second charging port when the second charging port is not used for charging. That is, at the first preset power level, the second charging port is not in a charging state. In the embodiment of the present application, for the second charging port, the higher the power level, the higher the output power, that is, the power level is positively correlated with the output power.
In this embodiment, the state of charge of the second charging port can be determined by the first reference power level of the second charging port, and the determination efficiency of the state of charge is high.
For example, the first chip compares the power level of the second charging port with a first preset power level after each cycle is completed. Under the condition that the power level of the second charging port is larger than the first preset power level in any period, the first chip determines that the second charging port enters a charging state in the period. And under the condition that the power level of the second charging port is equal to the first preset power level in any period, the first chip determines that the second charging port does not enter a charging state in the period.
Optionally, after step 305, the first chip can perform both steps 306-307 and step 308 described below, which is not limited in this embodiment of the present application.
306. The first chip determines the first reference power level as a target power level of the first charging port when the second charging port is in a charged state.
The second charging port is in a charging state, that is, the second charging port is charging the device, and the target power level of the first charging port refers to the power level of the first charging port on the premise of fully playing the charging performance of the charger. When the power level of the first charging port is the same as the power level of the second charging port, the sum of the output power of the first charging port and the output power of the second charging port is the maximum output power of the charger. That is, when the power level of the first charging port is adjusted to be the same as that of the second charging port, the output power of the charger can be ensured to be fully utilized, and the charging efficiency can be improved.
307. The first chip determines an output power of the first charging port based on a target power level of the first charging port and a required charging power of the charging device.
In one possible implementation, the first chip determines a target power corresponding to a target power level of the first charging port, where the target power is a difference between a maximum output power of the charger and an output power corresponding to a current power level of the second charging port. And under the condition that the required charging power of the charging equipment is larger than or equal to the target power, the first chip determines the target power as the output power of the first charging port. And under the condition that the required charging power of the charging equipment is smaller than the target power, the first chip determines the required charging power of the charging equipment as the output power of the first charging port.
Under this kind of embodiment, can combine target power level and the demand charging power of battery charging outfit to adjust the output of first mouth that charges, realize the accurate control to first mouth that charges.
For example, the first chip queries a power class-power correspondence table based on the target power class of the first charging port, and obtains the target power corresponding to the target power class, where the power class-power correspondence table records the correspondence between a plurality of power classes and a plurality of powers, and an example of the power class-power correspondence table is shown in table 1. The first chip compares the required charging power of the charging device with the target power, and when the required charging power of the charging device is greater than or equal to the target power, the first chip determines the output power of the first charging port as the target power, wherein the required charging power is greater than or equal to the target power, which means that the maximum charging power supported by the charging setting is greater than or equal to the target power which can be provided by the first charging port, and determines the charging power of the first charging port as the target power to ensure that the maximum power which can be provided by the first charging port can be provided. Under the condition that the required charging power of the charging equipment is smaller than the target power, the first chip determines the output power of the first charging port as the required charging power of the charging equipment, the required charging power is smaller than the target power, namely the maximum charging power supported by the charging arrangement is smaller than the target power which can be provided by the first charging port, and the output power of the first charging port is determined as the required charging power, so that the quick charging of the charging equipment can be realized on the premise of ensuring the safety of the charging equipment.
308. And under the condition that the second charging port of the charger is not in a charging state, the first chip determines the output power of the first charging port based on the preset maximum output power of the first charging port and the required charging power of the charging equipment.
The second charging port is not in a charging state, that is, the second charging port does not charge the device, the preset maximum output power is the preset maximum output power of the first charging port, that is, the maximum power that the first charging port can output outwards when being used alone, the preset maximum output power is determined by the structure and the material of the charger, and is set by a manufacturer of the charger according to actual conditions.
In one possible implementation manner, the first chip determines the output power of the first charging port as the preset maximum output power in a case where the required charging power of the charging device is greater than or equal to the preset maximum output power. And under the condition that the required charging power of the charging equipment is smaller than the preset maximum output power, the first chip determines the output power of the first charging port as the required charging power of the charging equipment.
The required charging power is greater than or equal to the preset power, which means that the maximum charging power supported by the charging setting is greater than or equal to the preset power which can be provided by the first charging port, and the charging power of the first charging port is determined to be the preset power, so that the first charging port can provide the maximum power which can be provided. The required charging power is smaller than the preset power, namely the maximum charging power supported by the charging setting is smaller than the preset power which can be provided by the first charging port, and the output power of the first charging port is determined to be the required charging power, so that the charging equipment can be rapidly charged on the premise of ensuring the safety of the charging equipment.
Steps 301-307 described above will be described below in conjunction with fig. 4.
Referring to fig. 4, before charging, the first chip performs power-up initialization on the first charging port. The first chip initializes the power level of the first charging port to a default power level, such as a default power level of 0. The first chip announces the power level of the first charging port to the outside, namely, broadcasts the power level of the second charging port. In the case that the charging device is detected to be connected with the first charging port, that is, in the case that the first charging port enters the charging state, the first chip determines whether the second charging port is in the charging state. And under the condition that the second charging port is in a charging state, the first chip acquires the first reference power level of the second charging port from the second chip. The first chip determines an output power of the first charging port based on the first reference power level and a required charging power of a charging device connected to the first charging port. And under the condition that the second charging port is not in a charging state, the first chip determines the output power of the first charging port based on the preset maximum output power of the first charging port and the required charging power of the charging equipment. After determining the output power of the first charging port, the first chip broadcasts a power class corresponding to the output power.
309. And under the condition that the power level of the second charging port is changed from the first reference power level to the second reference power level, the first chip adjusts the output power of the first charging port based on the second reference power level and the required charging power of the charging equipment.
The change of the power level of the second charging port from the first reference power level to the second reference power level indicates that the state of the second charging port is changed, that is, the state of the second charging port may be changed from the charging state to the uncharged state, the charging state may be entered from the uncharged state, or the end of the charging process may be entered, and the output power of the second charging port may be reduced, thereby causing the power level of the second charging port to be changed from the first reference power level to the second reference power level.
In one possible implementation, in a case where the power level of the second charging port is changed from the first reference power level to the second reference power level, the first chip determines an adjusted power level of the first charging port based on the second reference power level of the second charging port, the adjusted power level being the same as the second reference power level of the second charging port. The first chip adjusts the output power of the first charging port based on the adjusted power level of the first charging port and the required charging power of the charging device.
In this embodiment, when the power level of the second charging port is changed, the output power of the first charging port can be adjusted in real time, and the charging efficiency of the first charging port can be ensured.
For example, in the case where the power level of the second charging port is changed from the first reference power level to the second reference power level, the first chip determines the power level of the first charging port as the same adjusted power level as the second reference power level. The first chip determines the adjusting power corresponding to the adjusting power level of the first charging port. And under the condition that the required charging power of the charging equipment is larger than or equal to the adjusting power, the first chip adjusts the output power of the first charging port to the adjusting power. And under the condition that the required charging power of the charging equipment is smaller than the adjustment power, the first chip adjusts the output power of the first charging port to the required charging power of the charging equipment.
It should be noted that, the above description is given by taking the example that the first chip determines the output power of the first charging port, and since the first charging port is any charging port of the charger, the first chip is also any charging chip of the two charging chips of the charger. In the use structure, any charging port of the charger can be regarded as the first charging port, namely, a user can perform blind insertion during charging, and the charger can exert optimal charging performance without distinguishing different charging ports, so that the efficiency is high.
Any combination of the above optional solutions may be adopted to form an optional embodiment of the present application, which is not described herein in detail.
Through the technical scheme provided by the embodiment of the application, the first charging port of the charger is responded to enter a charging state, and the required charging power of the charging equipment connected with the first charging port is determined. A first reference power level of the second charging port is obtained, wherein the first reference power level is used for representing the charging state of the second charging port, namely determining the output power of the second charging port. Based on the first reference power level of the second charging port and the required charging power of the charging equipment, the output power of the first charging port is determined, the purpose of intelligently distributing the output power of the two charging ports of the charger is achieved, and the charging performance of the charger is exerted to the greatest extent.
In addition to the above-mentioned method for determining the output power, the embodiment of the present application provides a charger, referring to fig. 5, where the charger includes a first chip 501 and a second chip 502, the first chip 501 is used for controlling a first charging port of the charger, and the second chip 502 is used for controlling a second charging port of the charger.
The first chip 501 is configured to determine, in response to a first charging port of the charger entering a charging state, a required charging power of a charging device connected to the first charging port.
The second chip 502 is configured to send the power level of the second charging port to the first chip 501.
The first chip 501 is further configured to determine a first reference power level of the second charging port based on the power level of the second charging port sent by the second chip 502, where the first reference power level is used to represent a charging state of the second charging port.
The first chip 501 is further configured to determine an output power of the first charging port based on a first reference power level of the second charging port and a required charging power of the charging device.
In a possible implementation manner, the first chip 501 is further configured to determine, based on the first reference power level of the second charging port, a target power level of the first charging port, where the target power level is the same as the power level of the second charging port, and the power level of the first charging port is inversely related to the output power, and the power level of the second charging port is positively related to the output power.
The first chip 501 is further configured to adjust the output power of the first charging port to a power corresponding to the target power level.
In one possible embodiment, in the case that the power level of the first charging port and the power level of the second charging port are the same, the sum of the output power of the first charging port and the output power of the second charging port is the maximum output power of the charger.
In a possible embodiment, the first chip 501 is further configured to determine, based on the first reference power level of the second charging port, the output power of the first charging port based on the preset maximum output power of the first charging port and the required charging power of the charging device, in a case where it is determined that the second charging port of the charger is not in a charging state.
In a possible embodiment, the first chip 501 is further configured to determine the output power of the first charging port as the preset maximum output power when the required charging power of the charging device is greater than or equal to the preset maximum output power. In the case that the required charging power of the charging device is smaller than the preset maximum output power, the first chip 501 determines the output power of the first charging port as the required charging power of the charging device.
In a possible implementation manner, the first chip 501 is further configured to determine the same power level as the first reference power level of the second charging port if the same power level is obtained from the second chip 502N times in succession within a preset period of time, where N is a positive integer.
In one possible embodiment, the preset maximum output power of the first charging port is equal to the preset maximum output power of the second charging port.
Through the technical scheme provided by the embodiment of the application, the first charging port of the charger is responded to enter a charging state, and the required charging power of the charging equipment connected with the first charging port is determined. A first reference power level of the second charging port is obtained, wherein the first reference power level is used for representing the charging state of the second charging port, namely determining the output power of the second charging port. Based on the first reference power level of the second charging port and the required charging power of the charging equipment, the output power of the first charging port is determined, the purpose of intelligently distributing the output power of the two charging ports of the charger is achieved, and the charging performance of the charger is exerted to the greatest extent.
Fig. 6 is a schematic structural diagram of a chip provided in an embodiment of the present application, where the chip is a first chip or a second chip provided in an embodiment of the present application.
In general, the chip 600 includes: one or more processors 601 and one or more memories 602.
Processor 601 may include one or more processing cores, such as a 4-core processor, an 8-core processor, and the like. The processor 601 may be implemented in at least one hardware form of DSP (Digital Signal Processing ), FPGA (Field-Programmable Gate Array, field programmable gate array), PLA (Programmable Logic Array ). The processor 601 may also include a main processor, which is a processor for processing data in an awake state, also called a CPU (Central Processing Unit ), and a coprocessor; a coprocessor is a low-power processor for processing data in a standby state. In some embodiments, the processor 601 may integrate a GPU (Graphics Processing Unit, image processor) for rendering and drawing of content required to be displayed by the display screen. In some embodiments, the processor 601 may also include an AI (Artificial Intelligence ) processor for processing computing operations related to machine learning.
The memory 602 may include one or more computer-readable storage media, which may be non-transitory. The memory 602 may also include high-speed random access memory, as well as non-volatile memory, such as one or more magnetic disk storage devices, flash memory storage devices. In some embodiments, a non-transitory computer readable storage medium in memory 602 is used to store at least one computer program for execution by processor 601 to implement the method of determining output power provided by the method embodiments herein.
In some embodiments, the chip 600 may further optionally include: a peripheral interface 603, and at least one peripheral. The processor 601, memory 602, and peripheral interface 603 may be connected by a bus or signal line. The individual peripheral devices may be connected to the peripheral device interface 603 via buses, signal lines or a circuit board.
In an exemplary embodiment, a computer readable storage medium, for example a memory comprising a computer program, which is executable by a processor to perform the method of determining the output power in the above-described embodiments, is also provided. For example, the computer readable storage medium may be Read-Only Memory (ROM), random-access Memory (Random Access Memory, RAM), compact disc Read-Only Memory (CD-ROM), magnetic tape, floppy disk, optical data storage device, and the like.
In an exemplary embodiment, there is also provided a computer program product or a computer program comprising a program code stored in a computer readable storage medium, the program code being read from the computer readable storage medium by a processor of a chip, the program code being executed by the processor, causing the chip to perform the above-described method of determining output power.
It will be understood by those skilled in the art that all or part of the steps for implementing the above embodiments may be implemented by hardware, or may be implemented by a program for instructing relevant hardware, where the program may be stored in a computer readable storage medium, and the above storage medium may be a read-only memory, a magnetic disk or an optical disk, etc.
The foregoing description of the preferred embodiments is merely exemplary in nature and is not intended to limit the invention, but is intended to cover various modifications, substitutions, improvements, and alternatives falling within the spirit and principles of the invention.

Claims (10)

1. A method for determining output power, the method being applied to a charger, the charger comprising a first chip and a second chip, the first chip being configured to control a first charging port of the charger, the second chip being configured to control a second charging port of the charger, the method comprising:
In response to a first charging port of a charger entering a charging state, the first chip determines required charging power of charging equipment connected with the first charging port;
the second chip sends the power level of the second charging port to the first chip;
the first chip determines a first reference power level of the second charging port based on the power level of the second charging port sent by the second chip, wherein the first reference power level is used for representing the charging state of the second charging port;
the first chip determines the output power of the first charging port based on a first reference power level of the second charging port and the required charging power of the charging device.
2. The method of claim 1, wherein the first chip determining the output power of the first charging port based on a first reference power level of the second charging port and a required charging power of the charging device comprises:
the first chip determines the first reference power level as the target power level of the first charging port based on the first reference power level of the second charging port under the condition that the second charging port is in a charging state;
The first chip determines output power of the first charging port based on target power level of the first charging port and required charging power of the charging device.
3. The method of claim 2, wherein the first chip determining the output power of the first charging port based on the target power level of the first charging port and the required charging power of the charging device comprises:
the first chip determines target power corresponding to the target power level of the first charging port, wherein the target power is the difference between the maximum output power of the charger and the output power corresponding to the current power level of the second charging port;
when the required charging power of the charging device is greater than or equal to the target power, the first chip determines the target power as the output power of the first charging port;
and under the condition that the required charging power of the charging equipment is smaller than the target power, the first chip determines the charging required power as the output power of the first charging port.
4. The method of claim 1, wherein the first chip determining the output power of the first charging port based on a first reference power level of the second charging port and a required charging power of the charging device comprises:
The first chip determines the output power of the first charging port based on the preset maximum output power of the first charging port and the required charging power of the charging equipment under the condition that the second charging port of the charger is not in a charging state based on the first reference power level of the second charging port.
5. The method of claim 4, wherein the first chip determining the output power of the first charging port based on a preset maximum output power of the first charging port and a required charging power of the charging device comprises:
when the required charging power of the charging equipment is larger than or equal to the preset maximum output power, the first chip determines the output power of the first charging port as the preset maximum output power;
and under the condition that the required charging power of the charging equipment is smaller than the preset maximum output power, the first chip determines the output power of the first charging port as the required charging power of the charging equipment.
6. The method of any of claims 1-5, wherein the first chip determining a first reference power level for the second charging port based on the power level of the second charging port transmitted by the second chip comprises:
And if the first chip continuously acquires the same power level from the second chip for N times within a preset time period, the first chip determines the same power level as a first reference power level of the second charging port, wherein N is a positive integer.
7. The method of claim 4 or 5, wherein the preset maximum output power of the first charging port is equal to the preset maximum output power of the second charging port.
8. A charger, wherein the charger comprises a first chip and a second chip, wherein the first chip is used for controlling a first charging port of the charger, and the second chip is used for controlling a second charging port of the charger;
the first chip is used for responding to a first charging port of the charger to enter a charging state, and determining the required charging power of charging equipment connected with the first charging port;
the second chip is used for sending the power grade of the second charging port to the first chip;
the first chip is further configured to determine a first reference power level of the second charging port based on the power level of the second charging port sent by the second chip, where the first reference power level is used to represent a charging state of the second charging port;
The first chip is further configured to determine an output power of the first charging port based on a first reference power level of the second charging port and a required charging power of the charging device.
9. The charger of claim 8 wherein the first chip is further configured to determine a target power level for the first charging port based on a first reference power level for the second charging port, the target power level being the same as the power level for the second charging port, the power level for the first charging port being inversely related to the output power and the power level for the second charging port being positively related to the output power;
the first chip is further configured to adjust the output power of the first charging port to a power corresponding to the target power level.
10. The charger of claim 9 wherein the sum of the output power of the first charging port and the output power of the second charging port is the maximum output power of the charger when the power level of the first charging port and the power level of the second charging port are the same.
CN202310453070.1A 2023-04-25 2023-04-25 Output power determining method and charger Pending CN116388338A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202310453070.1A CN116388338A (en) 2023-04-25 2023-04-25 Output power determining method and charger

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202310453070.1A CN116388338A (en) 2023-04-25 2023-04-25 Output power determining method and charger

Publications (1)

Publication Number Publication Date
CN116388338A true CN116388338A (en) 2023-07-04

Family

ID=86969352

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202310453070.1A Pending CN116388338A (en) 2023-04-25 2023-04-25 Output power determining method and charger

Country Status (1)

Country Link
CN (1) CN116388338A (en)

Similar Documents

Publication Publication Date Title
JP5634608B2 (en) Charging port
US9866055B2 (en) Automatic scheme to detect multi-standard charger types
US8788852B2 (en) System and method for providing power through a reverse local data transfer connection
US6130518A (en) Method and apparatus for charging a battery
CN106571657B (en) Terminal, converter, and connection conversion system and method
US7895386B2 (en) USB interface provided with host/device function and its control method
CN110829523B (en) Electronic equipment and reverse charging method
US20050033996A1 (en) Method and apparatus for a communication hub
US20110016333A1 (en) Power Transfer Between Devices
CN104007801A (en) Method and apparatus for providing power to an electronic device
CN113454871A (en) Method of controlling charging of a plurality of batteries and electronic device using the same
EP3982506A1 (en) Terminal device charging method and apparatus, and storage medium
CN107294172A (en) Terminal device, power supply adaptor and charge control method
WO2021114875A1 (en) Mobile power supply and method of supplying power to peripheral device
US20230273662A1 (en) Information reading method, device, cable, charging system, and computer storage medium
US8941361B2 (en) Computer system and control method thereof
CN116169758B (en) Output power adjusting method and charger
CN106774769B (en) Terminal working mode switching method and device and handheld terminal
CN116388338A (en) Output power determining method and charger
CN115940349A (en) Electric quantity control method, device, equipment and medium of master-slave type energy storage system
CN112671062A (en) Charging control method and device
CN114817102B (en) Connection control method and device
CN220730805U (en) AI expansion card and server
US12038798B2 (en) Method for selectively controlling voltage, and electronic device and external electronic device therefor
US20220147130A1 (en) Method for selectively controlling voltage, and electronic device and external electronic device therefor

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination