CN116031965A - Charging method, device, power adapter and storage medium - Google Patents

Charging method, device, power adapter and storage medium Download PDF

Info

Publication number
CN116031965A
CN116031965A CN202210764606.7A CN202210764606A CN116031965A CN 116031965 A CN116031965 A CN 116031965A CN 202210764606 A CN202210764606 A CN 202210764606A CN 116031965 A CN116031965 A CN 116031965A
Authority
CN
China
Prior art keywords
charging
power
port
power adapter
electronic device
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.)
Granted
Application number
CN202210764606.7A
Other languages
Chinese (zh)
Other versions
CN116031965B (en
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.)
Honor Device Co Ltd
Original Assignee
Honor Device 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 Honor Device Co Ltd filed Critical Honor Device Co Ltd
Priority to CN202210764606.7A priority Critical patent/CN116031965B/en
Publication of CN116031965A publication Critical patent/CN116031965A/en
Application granted granted Critical
Publication of CN116031965B publication Critical patent/CN116031965B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • YGENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
    • Y02TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
    • Y02EREDUCTION OF GREENHOUSE GAS [GHG] EMISSIONS, RELATED TO ENERGY GENERATION, TRANSMISSION OR DISTRIBUTION
    • Y02E60/00Enabling technologies; Technologies with a potential or indirect contribution to GHG emissions mitigation
    • Y02E60/10Energy storage using batteries

Landscapes

  • Charge And Discharge Circuits For Batteries Or The Like (AREA)

Abstract

The application discloses a charging method, a charging device, a power adapter and a storage medium, and belongs to the technical field of charging. The method is applied to a power adapter, the power adapter having a plurality of ports, the method comprising: under the condition that n ports of the power adapter are connected with n electronic devices one by one, first charging information of the power adapter is obtained, and second charging information of each electronic device in the n electronic devices is obtained. The first charging information can represent the charging capability of the power adapter, and the second charging information can represent the charging requirement of the electronic equipment, so that the maximum output power of each port can be safely and reasonably adjusted according to the first charging information and the second charging information, and the power adapter can charge the electronic equipment according to the maximum output power of each port. According to the power adapter, the charging flexibility is improved, the charging capability of the power adapter can be exerted to the greatest extent under the condition that the charging requirement of the electronic equipment is met, and therefore the charging efficiency can be improved.

Description

Charging method, device, power adapter and storage medium
Technical Field
The present disclosure relates to the field of charging technologies, and in particular, to a charging method, a device, a power adapter, and a storage medium.
Background
Electronic devices such as cell phones, tablet computers, etc. typically require charging by a charger. The charger typically includes a power adapter and a power transmission line. The power adapter can convert alternating-current commercial power into direct-current power, and output the direct-current power from a port of the power adapter after voltage conversion. The power transmission line is connected between the port of the power adapter and the electronic equipment to transmit the direct current output by the port of the power adapter to the electronic equipment to charge the electronic equipment.
The power adapter may have a plurality of ports, each of which may be connected to one electronic device through one power transmission line, so that the power adapter may charge the plurality of electronic devices through its own plurality of ports one by one. Currently, in the case where a power adapter charges a plurality of electronic devices at the same time, the maximum output power of each of a plurality of ports of the power adapter is fixed throughout the charging process.
For example, the maximum output power of the power adapter itself is 100W (watts), and the power adapter has three ports. If the power adapter charges three electronic devices through the three ports, the power adapter may assign a maximum output power of 50W to the first port by default, assign a maximum output power of 20W to the second port by default, and assign a maximum output power of 30W to the third port by default.
However, such a manner of fixedly distributing the maximum output power to the respective ports of the power adapter during the charging is low in flexibility, and it is difficult to exert the maximum charging capability of the power adapter, resulting in low charging efficiency.
Disclosure of Invention
The application provides a charging method, a charging device, a power adapter and a storage medium, which can improve charging efficiency. The technical scheme is as follows:
in a first aspect, a charging method is provided for a power adapter having a plurality of ports. In the method, under the condition that n ports in a plurality of ports are connected with n electronic devices one by one, first charging information of a power adapter is obtained, second charging information of each electronic device in the n electronic devices is obtained, and n is a positive integer; for any one of the n ports, adjusting the maximum output power of the one port according to the first charging information of the power adapter and the second charging information of the electronic equipment connected with the one port; and charging the connected electronic device according to the maximum output power of each of the n ports.
In the application, under the condition that n ports in a plurality of ports of a power adapter are connected with n electronic devices one by one, first charging information of the power adapter is obtained, and second charging information of each electronic device in the n electronic devices is obtained. The first charging information of the power adapter can embody the charging capability of the power adapter, and the second charging information of the electronic equipment can embody the charging requirement of the electronic equipment, so that the maximum output power of each port in n ports can be safely and reasonably adjusted according to the first charging information of the power adapter and the second charging information of each electronic equipment in n electronic equipment, and the power adapter can charge the connected electronic equipment according to the maximum output power of each port in n ports. Therefore, the charging flexibility is improved, and the charging capability of the power adapter can be exerted to the greatest extent under the condition that the charging requirement of the electronic equipment is met, so that the charging efficiency can be improved.
Optionally, the first charging information includes at least one of: an output voltage of each of the n ports; an output current of each of the n ports; the output power of each of the n ports; maximum output power for each of the n ports; the temperature of the power adapter; protection policy for power adapter.
Optionally, the second charging information includes at least one of: historical charging records of the electronic device; charging protocols supported by the electronic device; charging strategies for electronic devices; status information of the electronic device.
Optionally, the operation of obtaining the second charging information of each of the n electronic devices may be: for any one of n electronic devices, acquiring a device identifier of the electronic device; searching a historical charging record of the electronic equipment from all historical charging records stored by the electronic equipment according to the equipment identifier of the electronic equipment; if the historical charging record of the electronic equipment is found, determining the historical charging record of the electronic equipment as second charging information of the electronic equipment; if the historical charging record of the electronic equipment is not found, the charging information is obtained from the electronic equipment and is used as second charging information of the electronic equipment.
Optionally, the operation of adjusting the maximum output power of one port according to the first charging information of the power adapter and the second charging information of the electronic device to which the one port is connected may be: if the second charging information of the electronic device connected with one port is not the historical charging record, reducing the maximum output power of the one port under the condition that the first charging information of the power adapter and/or the second charging information of the electronic device connected with the one port meet the power reduction condition; and increasing the maximum output power of one port when the first charging information of the power adapter and/or the second charging information of the electronic device to which the one port is connected satisfy the power increasing condition.
Optionally, in a case where the first charging information of the power adapter and/or the second charging information of the electronic device to which the one port is connected satisfies the power increasing condition, the operation of increasing the maximum output power of the one port may be: determining a target power to be increased when the first charging information of the power adapter and/or the second charging information of the electronic device connected to the one port meet the power increasing condition; if the target power is larger than the idle power of the power adapter, increasing the maximum output power of one port by the idle power; if the target power is less than or equal to the idle power of the power adapter, the maximum output power of one port is increased by the target power.
Optionally, the operation of adjusting the maximum output power of one port according to the first charging information of the power adapter and the second charging information of the electronic device to which the one port is connected may be: if the second charging information of the electronic equipment connected with one port is a historical charging record, determining a historical charging power curve of the electronic equipment connected with one port according to the second charging information of the electronic equipment connected with one port; and adjusting the maximum output power of one port according to the first charging information and the historical charging power curve of the power adapter.
Optionally, if it is detected that any one of the plurality of ports establishes a connection with the electronic device, the maximum output power of each of all ports connected with the electronic device in the plurality of ports is set to be the initial maximum output power.
In a second aspect, there is provided a charging device having a function of realizing the charging method behavior in the first aspect described above. The charging device comprises at least one module for implementing the charging method provided in the first aspect.
In a third aspect, a charging apparatus is provided, which includes a processor and a memory in its structure, where the memory is configured to store a program for supporting the charging apparatus to perform the charging method provided in the first aspect, and to store data related to implementing the charging method described in the first aspect. The processor is configured to execute a program stored in the memory. The charging device may further comprise a communication bus for establishing a connection between the processor and the memory.
In a fourth aspect, there is provided a computer readable storage medium having instructions stored therein, which when run on a computer, cause the computer to perform the charging method of the first aspect described above.
In a fifth aspect, there is provided a computer program product comprising instructions which, when run on a computer, cause the computer to perform the charging method of the first aspect described above.
The technical effects obtained by the second, third, fourth and fifth aspects are similar to the technical effects obtained by the corresponding technical means in the first aspect, and are not described in detail herein.
Drawings
FIG. 1 is a schematic diagram of a power adapter provided in an embodiment of the present application;
fig. 2 is a schematic charging diagram of a power adapter according to an embodiment of the present disclosure;
FIG. 3 is a schematic structural diagram of a computer device according to an embodiment of the present application;
fig. 4 is a flowchart of a charging method according to an embodiment of the present application;
fig. 5 is a schematic diagram of a charging method according to an embodiment of the present application;
FIG. 6 is a schematic diagram of a power adjustment process provided by an embodiment of the present application;
fig. 7 is a schematic diagram of a charging device according to an embodiment of the present application;
Fig. 8 is a schematic diagram of a chip system 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, embodiments of the present application will be described in further detail below with reference to the accompanying drawings.
It should be understood that reference herein to "a plurality" means two or more. In the description of the present application, "/" means or, unless otherwise indicated, for example, a/B may represent a or B; "and/or" herein is merely an association relationship describing an association object, and means that three relationships may exist, for example, a and/or B may mean: a exists alone, A and B exist together, and B exists alone. In addition, for the purpose of facilitating the clear description of the technical solutions of the present application, the words "first", "second", etc. are used to distinguish between the same item or similar items having substantially the same function and effect. It will be appreciated by those of skill in the art that the words "first," "second," and the like do not limit the amount and order of execution, and that the words "first," "second," and the like do not necessarily differ.
The statements of "one embodiment" or "some embodiments" and the like, described in this application, mean that a particular feature, structure, or characteristic described in connection with the embodiment is included in one or more embodiments of the present application. Thus, appearances of the phrases "in one embodiment," "in some embodiments," "in other embodiments," and the like in various places throughout this application are not necessarily all referring to the same embodiment, but mean "one or more, but not all, embodiments" unless expressly specified otherwise. Furthermore, the terms "comprising," "including," "having," and variations thereof mean "including but not limited to," unless otherwise specifically noted.
Before explaining the charging method provided in the embodiment of the present application in detail, an application scenario of the embodiment of the present application is described first.
Electronic devices such as cell phones, tablet computers, notebook computers, wearable devices, etc. typically require charging by a charger. The charger typically includes a power adapter and a power transmission line. The power adapter can convert alternating-current commercial power into direct-current power, and output the direct-current power from a port of the power adapter after voltage conversion. The power transmission line is connected between the port of the power adapter and the electronic equipment to transmit the direct current output by the port of the power adapter to the electronic equipment to charge the electronic equipment.
Currently, as shown in fig. 1, the power adapter 100 may have a plurality of ports 101, each port 101 of the plurality of ports 101 of the power adapter 100 being configured to output direct current. In some embodiments, the power adapter 100 having multiple ports 101 may be referred to as a multi-port adapter, also referred to as a multi-port charger.
As shown in fig. 2, any one port 101 among the plurality of ports 101 of the power adapter 100 may be connected to one electronic device 103 through one power transmission line 102. In this manner, the power adapter 100 may charge the plurality of electronic devices 103 one by one through its plurality of ports 101, and this charging process may be referred to as a multiple charging process.
In the related art, in the case where the power adapter 100 charges a plurality of electronic devices at the same time, the maximum output power of each of the plurality of ports 101 of the power adapter 100 is fixed throughout the charging process, that is, the maximum output power of each of the ports 101 cannot be adjusted during the charging process, resulting in lower charging flexibility, difficulty in exerting the maximum charging capability of the power adapter 100, and thus lower charging efficiency.
Therefore, the embodiment of the application provides a charging method, which can safely and reasonably adjust the maximum output power of each port according to the first charging information of the power adapter and the second charging information of the electronic equipment connected with each port of the power adapter. Therefore, the charging flexibility is improved, the charging capability of the power adapter can be exerted to the greatest extent under the condition that the charging requirement of the electronic equipment is met, and the charging efficiency can be improved.
Computer devices provided in embodiments of the present application are described below.
Fig. 3 is a schematic structural diagram of a computer device according to an embodiment of the present application, and the computer device may be the power adapter 100 shown in fig. 1 or fig. 2. Referring to fig. 3, the computer device includes a processor 301, a communication bus 302, a memory 303, and a plurality of ports 304.
The processor 301 may be a microprocessor (including a central processing unit (central processing unit, CPU), etc.), an application-specific integrated circuit (ASIC), or may be one or more integrated circuits for controlling the execution of programs in accordance with aspects of the present application.
As one example, the processor 301 may include one or more CPUs.
As one example, the computer device may include a plurality of processors 301. Each of these processors 301 may be a single-core processor or may be a multi-core processor. A processor herein may refer to one or more devices, circuits, and/or processing cores for processing data (e.g., computer program instructions).
Communication bus 302 may include a path for transferring information between the above components.
The memory 303 may be, but is not limited to, read-Only memory (ROM), random-access memory (random access memory, RAM), electrically erasable programmable read-Only memory (EEPROM), optical disks (including, but not limited to, compact discs (compact disc read-Only memory, CD-ROM), compact discs, laser discs, digital versatile discs, blu-ray discs, etc.), magnetic disk storage media or other magnetic storage devices, or any other medium that can be used to carry or store desired program code in the form of instructions or data structures and that can be accessed by a computer. The memory 303 may be stand alone and be coupled to the processor 301 via the communication bus 302. Memory 303 may also be integrated with processor 301.
Any one port 304 of the plurality of ports 304 may be coupled to an electronic device via a power transmission line. Each port 304 of the plurality of ports 304 is configured to output direct current to charge a connected electronic device. And, each port 304 of the plurality of ports 304 is also configured to communicate with a connected electronic device.
Wherein the memory 303 is used for storing program code 310 for executing the present application, and the processor 301 is used for executing the program code 310 stored in the memory 303. The computer device may implement the charging method provided by the embodiment of fig. 4 below by means of a processor 301 and program code 310 in a memory 303.
Fig. 4 is a flowchart of a charging method according to an embodiment of the present application, where the method is applied to a power adapter, which may be a computer device as described above in the embodiment of fig. 3. Referring to fig. 4, the method includes:
step 401: under the condition that n ports in the multiple ports of the power adapter are connected with n electronic devices one by one, the first charging information of the power adapter is obtained, the second charging information of each electronic device in the n electronic devices is obtained, and n is a positive integer.
The power adapter in the embodiment of the present application is a multi-port adapter, that is, the power adapter has a plurality of ports, where each port of the plurality of ports may be connected to one electronic device, for example, each port may be connected to one electronic device through one power transmission line. The power adapter can convert alternating-current commercial power into direct-current power, and output the direct-current power from a port of the power adapter after voltage conversion. That is, each of the plurality of ports is configured to output direct current to charge the connected electronic device.
In this way, in the case where n ports among the plurality of ports of the power adapter are connected to n electronic devices one by one, the power adapter can charge the connected electronic devices through each of the n ports. When n is equal to 1, one port of the power adapter is connected with one electronic device, and the power adapter charges one electronic device, namely, charges one way. And when n is greater than or equal to 2, at least two ports in the power adapter are connected with at least two electronic devices one by one, and at the moment, the power adapter charges at least two electronic devices at the same time, namely, multipath charging is realized. For example, as shown in fig. 2, the power adapter 100 has three ports 101, and two ports 101 of the three ports 101 are connected to two electronic devices 103 one by one, in which case the power adapter 100 charges the two electronic devices 103 at the same time.
It should be noted that, in the embodiment of the present application, the power adapter may preset an initial maximum output power for each of its multiple ports, where the initial maximum output power is allocated to each port by default by the power adapter in advance. The initial maximum output power of each of the plurality of ports may be the same or different, which is not limited in the embodiments of the present application.
In this case, when the power adapter detects that any one of the ports is connected to the electronic device, the maximum output power of the port may be set to be the initial maximum output power, and then the power adapter may dynamically adjust the maximum output power of the port during the process of charging the electronic device connected to the port through the port.
The power adapter can charge the electronic device connected with the port according to the maximum output power of the port, that is, the power adapter can adjust the actual output power of the port in the process of charging the electronic device connected with the port through the port, and the actual output power of the port needs to be ensured not to be larger than the maximum output power of the port all the time in the process of adjusting the actual output power of the port.
The power adapter has a maximum output power, and a sum of the maximum output powers of each of the plurality of ports of the power adapter is less than or equal to the maximum output power of the power adapter. That is, the sum of the initial maximum output powers of the individual ports of the plurality of ports needs to be less than or equal to the maximum output power of the power adapter. In addition, when the power adapter dynamically adjusts the maximum output power of each port in the process of charging the connected electronic equipment through each port in the plurality of ports, the sum of the adjusted maximum output power of each port is required to be smaller than or equal to the maximum output power of the power adapter.
In some embodiments, when the power adapter detects that any one of the ports is connected to the electronic device, that is, when the power adapter detects that any one of the ports is switched from an unconnected state (i.e., a state of not being connected to the electronic device) to a connected state (i.e., a state of being connected to the electronic device), the power adapter may determine all ports of the ports that are currently in a connected state (i.e., all ports that are currently being connected to the electronic device), and uniformly set the maximum output power of each of the ports that are in a connected state to the initial maximum output power of each port. The power adapter may then dynamically adjust the maximum output power of each of the ports during charging of the connected electronic device through each of the ports in the connected state.
That is, in this embodiment of the present application, when any one of the plurality of ports of the power adapter is connected to the electronic device, the power adapter resets the maximum output power of all the ports currently connected to the electronic device, that is, resets the maximum output power of each port to the initial maximum output power, so that it can be ensured that all the ports currently connected to the electronic device can normally charge the electronic device. Without affecting the maximum output power of the port that is still currently connected to the electronic device when any one of the plurality of ports of the power adapter is disconnected from the electronic device. That is, when the power adapter detects that any one of the plurality of ports is disconnected from the electronic device, that is, when the power adapter detects that any one of the ports is switched from the connected state to the unconnected state, the power adapter can maintain the maximum output power of each port still in the connected state.
For example, the power adapter has three ports, namely, port 1, port 2 and port 3, and assuming that the maximum output power of the power adapter is 100W, the initial maximum output power of port 1 is 50W, the initial maximum output power of port 2 is 20W, and the initial maximum output power of port 3 is 30W. The user connects port 1 with the electronic device, when the power adapter detects that port 1 is connected with the electronic device, the maximum output power of port 1 currently connected with the electronic device is set to be the initial maximum output power 50W. Thereafter, the power adapter may dynamically adjust the maximum output power of port 1 during the process of charging the electronic device through port 1, assuming that the power adapter adjusts the maximum output power of port 1 from 50W to 30W. After that, the user connects the port 2 with the electronic device, when the power adapter detects that the port 2 is connected with the electronic device, the maximum output power of the port 1 and the maximum output power of the port 2 which are currently connected with the electronic device are set to be initial maximum output power, namely, the maximum output power of the port 1 is reset from 30W to be initial maximum output power 50W, and the maximum output power of the port 2 is set to be initial maximum output power 20W. Then, the power adapter can dynamically adjust the maximum output power of the port 1 and the port 2 in the process of charging the electronic device through the port 1 and the port 2, and the power adapter is supposed to adjust the maximum output power of the port 1 from 50W to 30W and adjust the maximum output power of the port 2 from 20W to 10W. Then, when the user connects the port 3 with the electronic device and the power adapter detects that the port 3 is connected with the electronic device, the maximum output power of the port 1, the maximum output power of the port 2 and the maximum output power of the port 3 which are currently connected with the electronic device are all set to be initial maximum output power, namely, the maximum output power of the port 1 is reset from 30W to be initial maximum output power 50W, the maximum output power of the port 2 is reset from 10W to be initial maximum output power 20W, and the maximum output power of the port 3 is set to be initial maximum output power 30W. Then, the power adapter can dynamically adjust the maximum output power of the port 1, the port 2 and the port 3 in the process of charging the electronic device through the port 1, the port 2 and the port 3, and the power adapter is supposed to adjust the maximum output power of the port 1 from 50W to 30W, the maximum output power of the port 2 from 20W to 10W and the maximum output power of the port 3 from 30W to 60W. Then, the user disconnects the port 1 from the electronic device, and at this time, the power adapter detects that the port 1 is disconnected from the electronic device, so that the maximum output power of the port 2 and the maximum output power of the port 3, which are still connected with the electronic device at present, can be maintained unchanged, that is, the maximum output power of the port 2 is maintained to be 10W at present, and the maximum output power of the port 3 is maintained to be 60W at present. In addition, the power adapter can continuously and dynamically adjust the maximum output power of the port 2 and the port 3 in the process of charging the electronic equipment through the port 2 and the port 3.
In this embodiment of the present application, the power adapter may dynamically adjust the maximum output power of each port connected to the electronic device according to the first charging information of the power adapter and the second charging information of the electronic device.
The first charging information of the power adapter is some information of the power adapter related to charging. For example, the first charging information of the power adapter may include at least one of: an output voltage of each of n ports connected to the electronic device; an output current of each of the n ports; the output power of each of the n ports; maximum output power for each of the n ports; the temperature of the power adapter; protection policy of the power adapter. Of course, the first charging information may include other charging-related information of the power adapter in addition to the above-listed information, which is not limited in the embodiment of the present application.
Optionally, the protection policy of the power adapter may include a maximum output current (i.e. an overcurrent point) and a maximum output voltage (i.e. an overvoltage point) corresponding to the maximum output power of each of the plurality of ports. The protection strategy of the power adapter may further include limiting output power, limiting output voltage and limiting output current of each of the plurality of ports, where the limiting output power, limiting output voltage and limiting output current of each port are physical endurance limits of each port, that is, the electronic device may be damaged after exceeding the limiting output power, limiting output voltage and limiting output current of each port.
When the power adapter charges the electronic equipment according to the maximum output power of a certain port, the output power of the port needs to be controlled to be not more than the maximum output power of the port, the output current of the port is controlled to be not more than the maximum output current corresponding to the maximum output power of the port, and the output voltage of the port is controlled to be not more than the maximum output voltage corresponding to the maximum output power of the port. In this way, it can be ensured that the output power of this port does not exceed the relevant requirements of the maximum output power of this port.
When the power adapter dynamically adjusts the maximum output power of a certain port, the adjusted maximum output power of the port needs to be controlled to be not more than the limit output power of the port, the maximum output current corresponding to the adjusted maximum output power of the port is controlled to be not more than the limit output current of the port, and the maximum output voltage corresponding to the adjusted maximum output power of the port is controlled to be not more than the limit output voltage of the port. Therefore, the power adapter can be ensured not to damage electronic devices when the electronic equipment is charged through the port, and the safe charging process is ensured.
It should be noted that, in the case that the n ports of the power adapter are connected to the n electronic devices one by one, the power adapter may acquire the first charging information of the power adapter at intervals of a preset time. That is, the power adapter may continuously obtain the first charging information of the power adapter in the process of charging the n electronic devices, and may dynamically adjust the maximum output power of each of the n ports according to the newly obtained first charging information.
The second charging information of the electronic device is some information of the electronic device related to charging. For example, the second charging information of a certain electronic device may include at least one of the following: a historical charging record of the electronic device; the charging protocol supported by this electronic device; a charging strategy for this electronic device; status information of this electronic device. Of course, the second charging information may include other charging-related information of the electronic device in addition to the above-listed information, which is not limited in the embodiment of the present application.
Optionally, when the power adapter charges a certain electronic device through a certain port, the power adapter may acquire a device identifier of the electronic device during a charging process of the electronic device, record charging information (which may be referred to as port charging information) such as output current, output voltage, output power and the like of the port, and after the charging of the electronic device is finished, that is, after the port is disconnected from the electronic device, the power adapter may store the device identifier of the electronic device in correspondence with related charging information recorded during the charging process of the electronic device, so as to obtain a historical charging record of the electronic device. The historical charging record of the electronic device comprises the device identification and port charging information of the electronic device, wherein the port charging information comprises output current, output voltage, output power and the like of a port for charging the electronic device in the whole charging process. The device identifier of the electronic device is used to uniquely identify the electronic device, for example, the device identifier of the electronic device may be a Serial Number (SN) of the electronic device, etc.
Optionally, the electronic device may support one or more charging protocols. The charging protocol may specify a maximum charging power that the electronic device can support, a corresponding charging current and charging voltage, and so on. For example, the electronic device may support a super charging protocol (super charge protocol, SCP), a Power Delivery (PD) charging protocol, and so on.
Optionally, one or more charging strategies may be included in the electronic device. The charging strategy is used to indicate the charging mode in certain scenarios. For example, the charging policy may indicate the manner in which the electronic device is charged when the temperature of the electronic device is too high, or the charging policy may indicate the manner in which the electronic device is charged when some particular application (e.g., a gaming application) is running. The charging mode may include, among others, the maximum allowed charging power, the referenced charging curve, etc. The charging curve is a graph of a charging current versus a charging voltage, and may include a plurality of charging phases, for example, a trickle charging phase, a constant current charging phase, a constant voltage charging phase, and a cut-off charging phase. The electronic device may instruct the power adapter to charge itself according to the charging mode.
Alternatively, the status information of the electronic device may include information of a temperature, an electric quantity, and the like of the electronic device. Of course, the state information of the electronic device may further include other information, for example, may include a battery capacity of the electronic device, a remaining capacity percentage of the electronic device, and the like, and may further include an application scenario of the electronic device, a current and a voltage of the battery, and the like, which is not limited in the embodiment of the present application.
In some embodiments, when the power adapter establishes a connection with an electronic device at any one of the ports, the power adapter may acquire a device identifier of the electronic device, for example, the power adapter may send a first request message to the electronic device through the port, where the first request message is used to request to acquire the device identifier of the electronic device, and after receiving the first request message sent by the power adapter, the electronic device may send its device identifier to the power adapter. After the power adapter acquires the equipment identifier of the electronic equipment, whether the historical charging record of the electronic equipment exists or not can be searched from all the historical charging records stored by the power adapter according to the equipment identifier of the electronic equipment, namely whether the historical charging record containing the equipment identifier of the electronic equipment exists or not is searched from all the historical charging records stored by the power adapter, and specifically, if a certain stored historical charging record contains the equipment identifier of the electronic equipment, the historical charging record is determined to be the historical charging record of the electronic equipment; if all the stored historical charging records do not contain the equipment identification of the electronic equipment, determining that the historical charging records of the electronic equipment are not stored in the power adapter.
If the power adapter finds the historical charging record of the electronic device, the power adapter can determine the historical charging record of the electronic device as second charging information. Optionally, in this case, the power adapter does not need to acquire other charging information of the electronic device, for example, does not need to acquire a charging protocol supported by the electronic device, a charging policy of the electronic device, status information of the electronic device, and the like. The adjustment of the maximum output power of the port to which the electronic device is connected can be achieved subsequently based on the historical charging record of the electronic device. Thus, the processing resource of the power adapter can be saved, and the processing pressure of the power adapter can be reduced.
If the power adapter does not find the historical charging record of the electronic device, the power adapter may acquire related charging information from the electronic device as second charging information at intervals of a preset time interval in the charging process of the electronic device, for example, may acquire charging information such as charging protocols supported by the electronic device, charging strategies of the electronic device, state information of the electronic device and the like at intervals of a preset time interval as second charging information. That is, the power adapter may continuously acquire the second charging information from the electronic device during the charging process of the electronic device, and may dynamically adjust the maximum output power of the port connected to the electronic device from the n ports according to the newly acquired second charging information of the electronic device.
For example, when the power adapter obtains the relevant charging information from the electronic device, the power adapter may send a second request message to the electronic device through a port to which the electronic device is connected, where the second request message is used to request to obtain the charging information of the electronic device. After receiving the second request message sent by the power adapter, the electronic device can send its charging information to the power adapter. After the power adapter receives the charging information sent by the electronic device, the received charging information can be used as second charging information of the electronic device.
In some embodiments, this electronic device may also actively send its own charging information to the power adapter. For example, the electronic device may acquire its own charging information at regular intervals during the charging process, and send its own charging information to the power adapter. And/or the electronic device may send its own charging information to the power adapter in some special scenarios during the charging process, for example, the electronic device may send its own charging information to the power adapter when its own temperature is too high, or send its own charging information to the power adapter when its own runs some specific applications.
Step 402: for any one of the n ports, the power adapter adjusts the maximum output power of the one port according to the first charging information of the power adapter and the second charging information of the electronic device to which the one port is connected.
The first charging information of the power adapter can embody the charging capability of the power adapter, and the second charging information of the electronic equipment can embody the charging requirement of the electronic equipment, so that the maximum output power of each port can be safely and reasonably adjusted according to the first charging information of the power adapter and the second charging information of the electronic equipment connected with each port. Therefore, the charging flexibility is improved, the charging capability of the power adapter can be exerted to the greatest extent under the condition that the charging requirement of the electronic equipment is met, and the charging efficiency can be improved.
Notably, the power adapter has idle power. The idle power is the power that the power adapter has not yet allocated to a port. That is, the idle power is obtained by subtracting the sum of the maximum output power of the power adapter and the maximum output power of each of all ports connected to the electronic device in the power adapter. The idle power may be allocated by the power adapter for ports at a later appropriate time. For example, the maximum output power of the power adapter is 100W, and the power adapter has three ports, which are respectively: port 1, port 2, port 3, wherein port 1 is not connected with the electronic device, port 2 and port 3 are both connected with the electronic device, and the maximum output power of port 2 is 20W, and the maximum output power of port 3 is 70W, then the idle power of the power adapter is 100W-20W-70 w=10w.
In the embodiment of the application, when the maximum output power of each port is dynamically adjusted, the power adapter can synchronously update the idle power. For example, the power adapter may update the idle power after reducing the maximum output power of one port, for example, the idle power of the power adapter is 10W, and the idle power of the power adapter is updated to 10w+5w=15w after the power adapter reduces the maximum output power of one port by 5W. For example, the power adapter may update the idle power after increasing the maximum output power of one port, for example, the idle power of the power adapter is 10W, and the idle power of the power adapter is updated to 10W-5 w=5W after the power adapter increases the maximum output power of one port by 5W.
Optionally, in a case where the second charging information of the electronic device to which the one port is connected is charging information obtained by the power adapter from the electronic device, that is, in a case where the second charging information of the electronic device is not a historical charging record of the electronic device, the operation of the power adapter to adjust the maximum output power of the one port according to the first charging information of the power adapter and the second charging information of the electronic device to which the one port is connected may be implemented in the following first manner. In the case where the second charging information of the electronic device to which the one port is connected is the history charging record of the electronic device, the operation of the power adapter to adjust the maximum output power of the one port according to the first charging information of the power adapter and the second charging information of the electronic device to which the one port is connected may be achieved in the following second manner.
The first way is: if the first charging information of the power adapter and/or the second charging information of the electronic equipment connected with the one port meet the power reduction condition, the maximum output power of the one port is reduced; and if the first charging information of the power adapter and the second charging information of the electronic device connected with the one port meet the power increasing condition, increasing the maximum output power of the one port.
One or more power reduction conditions can be preset in the power adapter, the power reduction conditions can be set by technicians according to actual requirements, and the power reduction conditions can be set on the premise of safely and reasonably distributing power. The power reduction condition is used to indicate that the maximum output power of the port is reduced if the first charging information and/or the second charging information satisfies the power reduction condition. For example, the power reduction condition may be: the output power of a port is less than 0.5 times the maximum output power of the port, or the power reduction condition may be: the temperature of the electronic device to which the port is connected is greater than a temperature threshold, which may be set in advance. Of course, the power reduction condition may be other conditions as long as the maximum output power of the port can be reduced under a safe and reasonable charging condition.
In some embodiments, if the first charging information of the power adapter and/or the second charging information of the electronic device to which the one port is connected satisfy the power reduction condition, the power adapter may first send a power reduction request message to the electronic device through the one port, where the power reduction request message is used to request to reduce the maximum output power of the one port. If the electronic device determines that the maximum output power of the one port can be reduced after receiving the power reduction request message sent by the power adapter, sending an agreement message to the power adapter, and reducing the maximum output power of the one port after receiving the agreement message. If the electronic device receives the power reduction request message sent by the power adapter, and determines that the maximum output power of the one port cannot be reduced, a rejection message is sent to the power adapter, and the power adapter gives up reducing the maximum output power of the one port after receiving the rejection message, namely, maintains the current maximum output power of the one port.
When the maximum output power of the one port is reduced, the power adapter may reduce the maximum output power of the one port by a preset power, where the preset power may be preset, for example, the preset power may be 5W. Alternatively, when the maximum output power of the one port is reduced, the maximum output power of the one port may be reduced according to a preset ratio, and the preset ratio may be preset, for example, the preset ratio may be 20%, that is, the maximum output power of the one port may be reduced by 20%.
One or more power increasing conditions can be preset in the power adapter, the power increasing conditions can be set by technicians according to actual demands, and the power increasing conditions can be set on the premise of safely and reasonably distributing power. The power increase condition is used to indicate that the maximum output power of the port is increased if the first charging information and/or the second charging information satisfies the power increase condition. For example, the power increase condition may be: the output power of a port is less than 0.5 times the maximum charging power in the charging protocol currently used by the electronic device to which the port is connected. Of course, the power increasing condition may be other conditions as long as the maximum output power of the port can be increased under a safe and reasonable charging condition.
In some embodiments, if the first charging information of the power adapter and/or the second charging information of the electronic device to which the one port is connected satisfy the power increase condition, determining a target power to be increased; if the target power is greater than the idle power of the power adapter, increasing the maximum output power of the one port by the idle power; if the target power is less than or equal to the idle power of the power adapter, the maximum output power of the one port is increased by the target power.
Optionally, if the first charging information of the power adapter and/or the second charging information of the electronic device connected to the one port satisfy the power increasing condition, searching whether the idle power of the power adapter is 0. If the idle power is 0, the power adapter discards increasing the maximum output power of the one port, i.e., maintaining the current maximum output power of the one port. If the idle power is not 0, the power adapter sends a power increase request message to the electronic device through the one port, wherein the power increase request message is used for requesting to increase the maximum output power of the one port; if the electronic device receives the power increase request message sent by the power adapter, determining that the maximum output power of the one port can be increased, determining that the target power needs to be increased, carrying the target power in an agreement message, and sending the agreement message to the power adapter, wherein the power adapter can increase the maximum output power of the one port according to the target power after receiving the agreement message sent by the electronic device, and can specifically select a smaller one of the target power and idle power as an increase value of the maximum output power of the one port; and if the electronic equipment receives the power increase request message sent by the power adapter and determines that the maximum output power of the one port cannot be increased, a rejection message is sent to the power adapter, and the power adapter gives up increasing the maximum output power of the one port after receiving the rejection message sent by the electronic equipment, namely, the current maximum output power of the one port is maintained.
In some embodiments, the power adapter may not only adjust the maximum output power of the one port according to the first charging information of the power adapter and the second charging information of the electronic device to which the one port is connected, but may also adjust the charging protocol of the electronic device.
Optionally, if the first charging information of the power adapter and/or the second charging information of the electronic device connected to the one port meet the charging protocol switching condition, the power adapter may further switch a charging protocol used by the electronic device.
The charging protocol switching condition may be set in advance. The charging protocol switching condition can be set by a technician according to actual requirements. The charging protocol switching condition is used for indicating to switch the charging protocol used by the electronic device when the first charging information and/or the second charging information meet the charging protocol switching condition. For example, the charging protocol switching condition may be: the sum of the maximum output power and the idle power of the port is larger than the maximum charging power in the charging protocol currently used by the electronic equipment connected with the port and smaller than or equal to the maximum charging power in another charging protocol supported by the electronic equipment. Of course, the charging protocol switching condition may be other conditions, as long as the charging protocol used by the electronic device can be switched under the safe and reasonable charging condition.
If the first charging information of the power adapter and/or the second charging information of the electronic device connected to the one port meet the charging protocol switching condition, the power adapter may send a charging protocol switching request message to the electronic device, where the charging protocol switching request message may carry a charging protocol identifier (including, but not limited to, a name of a charging protocol), and the charging protocol switching request message is used to request to switch to the charging protocol identified by the charging protocol identifier. After the electronic equipment receives the charging protocol switching request message, if the charging protocol can be switched, switching the charging protocol used by the electronic equipment to the charging protocol identified by the charging protocol identification, and sending an agreement message to the power adapter so as to inform the power adapter that the switching of the charging protocol is completed; if the charging protocol cannot be switched, the charging protocol used by the power adapter is not switched, and a rejection message is sent to the power adapter so as to inform the power adapter that the charging protocol is not switched currently.
The second way is: the power adapter determines a historical charging power curve of the electronic equipment according to second charging information of the electronic equipment connected with the port; the maximum output power of the one port is adjusted according to the first charging information of the power adapter and the historical charging power curve.
The historical charging record of the electronic equipment comprises port charging information, wherein the port charging information comprises output voltage, output current, output power and the like of a port connected with the electronic equipment in the previous charging process of the electronic equipment, so that the historical charging power curve of the electronic equipment can be determined according to the historical charging record of the electronic equipment. The historical charging power curve of the electronic device can reflect the change condition of the charging power of the electronic device in the previous charging process.
In this case, the power adapter can perform real-time intelligent tracking adjustment on the maximum output power of the port according to the historical charging power curve. That is, the power adapter may adjust the maximum output power of the one port to be close to the charging power in the historical charging power curve during charging of the electronic device based on the first charging information of the power adapter without exceeding the charging capability of the power adapter.
For example, the historical charging power curve of the electronic device indicates that the charging power gradually increases from 0W to 5W in the first 5 minutes after the electronic device starts to charge, and the charging power gradually increases from 5W to 15W in the next 5 minutes, the power adapter may adjust the maximum output power of the one port to 5W in the next 5 minutes if it is determined that the maximum output power of the one port is allowed to be adjusted to 5W based on the first charging information of the power adapter in the first 5 minutes after the one port is connected to the electronic device, and then the power adapter may adjust the maximum output power of the one port to 15W in the next 5 minutes if it is determined that the maximum output power of the one port is allowed to be adjusted to 15W based on the first charging information of the power adapter in the next 5 minutes.
Step 403: the power adapter charges the connected electronic device according to the maximum output power of each of the n ports.
For any one of the n ports, the power adapter may control the output power of the one port to be less than or equal to the maximum output power of the one port during charging of the connected electronic device through the one port.
Optionally, the power adapter may further obtain a device identifier of the connected electronic device during charging the connected electronic device according to the maximum output power of any one of the ports, and record charging information (which may be referred to as port charging information) such as output current, output voltage, output power, and the like of the one port. After the electronic device is charged, that is, after the one port is disconnected from the electronic device, the power adapter may store the device identifier of the electronic device in correspondence with the relevant charging information recorded in the charging process of the electronic device, so as to obtain a historical charging record of the electronic device. If the history of the electronic device is previously stored in the power adapter, the power adapter may replace the previously stored history of the electronic device with the latest obtained history of the electronic device. If the historical charging record of the electronic device is not stored in the power adapter before, the power adapter can directly store the obtained historical charging record of the electronic device.
In the embodiment of the application, under the condition that n ports in a plurality of ports of a power adapter are connected with n electronic devices one by one, first charging information of the power adapter is obtained, and second charging information of each electronic device in the n electronic devices is obtained. The first charging information of the power adapter can embody the charging capability of the power adapter, and the second charging information of the electronic equipment can embody the charging requirement of the electronic equipment, so that the maximum output power of each port in n ports can be safely and reasonably adjusted according to the first charging information of the power adapter and the second charging information of each electronic equipment in n electronic equipment, and the power adapter can charge the connected electronic equipment according to the maximum output power of each port in n ports. Therefore, the charging flexibility is improved, and the charging capability of the power adapter can be exerted to the greatest extent under the condition that the charging requirement of the electronic equipment is met, so that the charging efficiency can be improved.
For ease of understanding, the charging method described above in connection with the embodiment of fig. 4 is exemplarily described below with reference to fig. 5 and 6.
As an example, as shown in fig. 5, after one port in the power adapter is connected to the electronic device, the power adapter obtains the device identifier of the electronic device, and then searches the historical charging record of the electronic device from all the historical charging records stored in the power adapter according to the device identifier of the electronic device. If the power adapter searches the historical charging record of the electronic equipment, the maximum output power of the port is intelligently tracked and adjusted in real time according to the historical charging record of the electronic equipment, and the idle power of the power adapter is continuously updated in the process of adjusting the maximum output power of the port. In addition, the power adapter continuously stores charging information such as output current, output voltage, output power and the like of the port in the process of charging the electronic equipment through the port.
After the electronic device is charged, that is, after the port is disconnected from the electronic device, the power adapter may store the device identifier of the electronic device in correspondence with the relevant charging information recorded during the charging process of the electronic device, so as to obtain a historical charging record of the electronic device, and replace the historical charging record of the electronic device stored before with the latest obtained historical charging record of the electronic device.
As another example, as shown in fig. 6, the power adapter has three ports, respectively: port 1, port 2, port 3. The port 1 is connected with the electronic device 1, the power adapter charges the electronic device 1 through the port 1, the port 2 is connected with the electronic device 2, the power adapter charges the electronic device 2 through the port 2, the port 3 is connected with the electronic device 3, and the power adapter charges the electronic device 3 through the port 3.
The maximum output power of the power adapter is 100W, the initial maximum output power allocated by the power adapter to the port 1 is 50W, the initial maximum output power allocated by the power adapter to the port 2 is 30W, and the initial maximum output power allocated by the power adapter to the port 3 is 20W. Then, in the process of charging the three electronic devices, the power adapter adjusts the maximum output power of each port by using the charging method described in the embodiment of fig. 4, and under the conditions that the electronic device 1 is full, the percentage of the remaining power of the electronic device 2 is 80%, and the percentage of the remaining power of the electronic device 3 is 30%, the power adapter can dynamically adjust the maximum output power of the port 1 to 0W, dynamically adjust the maximum output power of the port 2 to 20W, and dynamically adjust the maximum output power of the port 3 to 70W. The power adapter has an idle power of 10W.
The charging device according to the embodiment of the present application will be described below.
Fig. 7 is a schematic structural diagram of a charging device provided in an embodiment of the present application, where the device may be implemented by software, hardware, or a combination of both as part or all of a computer device, where the computer device may be a power adapter, where the power adapter has a plurality of ports, and where the computer device may be a computer device as described in the embodiment of fig. 3 above. Referring to fig. 7, the apparatus includes: an acquisition module 701, an adjustment module 702 and a charging module 703.
An obtaining module 701, configured to obtain first charging information of the power adapter and obtain second charging information of each of the n electronic devices when the n ports of the plurality of ports are connected to the n electronic devices one by one, where n is a positive integer;
an adjusting module 702, configured to adjust, for any one of the n ports, a maximum output power of the one port according to the first charging information of the power adapter and the second charging information of the electronic device to which the one port is connected;
and a charging module 703, configured to charge the connected electronic device according to the maximum output power of each of the n ports.
Optionally, the first charging information includes at least one of:
an output voltage of each of the n ports;
an output current of each of the n ports;
the output power of each of the n ports;
maximum output power for each of the n ports;
the temperature of the power adapter;
protection policy for power adapter.
Optionally, the second charging information includes at least one of:
historical charging records of the electronic device;
charging protocols supported by the electronic device;
charging strategies for electronic devices;
status information of the electronic device.
Optionally, the acquiring module 701 is configured to:
for any one of n electronic devices, acquiring a device identifier of the electronic device;
searching a historical charging record of the electronic equipment from all historical charging records stored by the electronic equipment according to the equipment identifier of the electronic equipment;
if the historical charging record of the electronic equipment is found, determining the historical charging record of the electronic equipment as second charging information of the electronic equipment;
if the historical charging record of the electronic equipment is not found, the charging information is obtained from the electronic equipment and is used as second charging information of the electronic equipment.
Optionally, the adjustment module 702 is configured to:
if the second charging information of the electronic device connected with one port is not the historical charging record, reducing the maximum output power of the one port under the condition that the first charging information of the power adapter and/or the second charging information of the electronic device connected with the one port meet the power reduction condition; and increasing the maximum output power of one port when the first charging information of the power adapter and/or the second charging information of the electronic device to which the one port is connected satisfy the power increasing condition.
Optionally, the adjustment module 702 is configured to:
determining a target power to be increased when the first charging information of the power adapter and/or the second charging information of the electronic device connected to the one port meet the power increasing condition;
if the target power is larger than the idle power of the power adapter, increasing the maximum output power of one port by the idle power;
if the target power is less than or equal to the idle power of the power adapter, the maximum output power of one port is increased by the target power.
Optionally, the adjustment module 702 is configured to:
if the second charging information of the electronic equipment connected with one port is a historical charging record, determining a historical charging power curve of the electronic equipment connected with one port according to the second charging information of the electronic equipment connected with one port;
And adjusting the maximum output power of one port according to the first charging information and the historical charging power curve of the power adapter.
Optionally, the apparatus further comprises:
and the setting module is used for setting the maximum output power of each port in all ports connected with the electronic equipment as the initial maximum output power if any one of the ports is detected to be connected with the electronic equipment.
In the embodiment of the application, under the condition that n ports in a plurality of ports of a power adapter are connected with n electronic devices one by one, first charging information of the power adapter is obtained, and second charging information of each electronic device in the n electronic devices is obtained. The first charging information of the power adapter can embody the charging capability of the power adapter, and the second charging information of the electronic equipment can embody the charging requirement of the electronic equipment, so that the maximum output power of each port in n ports can be safely and reasonably adjusted according to the first charging information of the power adapter and the second charging information of each electronic equipment in n electronic equipment, and the power adapter can charge the connected electronic equipment according to the maximum output power of each port in n ports. Therefore, the charging flexibility is improved, and the charging capability of the power adapter can be exerted to the greatest extent under the condition that the charging requirement of the electronic equipment is met, so that the charging efficiency can be improved.
It should be noted that: in the charging device provided in the foregoing embodiment, only the division of the functional modules is used for illustration, and in practical application, the functional allocation may be performed by different functional modules according to needs, that is, the internal structure of the device is divided into different functional modules, so as to perform all or part of the functions described above.
The functional units and modules in the above embodiments may be integrated in one processing unit, or each unit may exist alone physically, or two or more units may be integrated in one unit, where the integrated units may be implemented in a form of hardware or a form of a software functional unit. In addition, specific names of the functional units and modules are only for convenience of distinguishing from each other, and are not used for limiting the protection scope of the embodiments of the present application.
The charging device and the charging method provided in the foregoing embodiments belong to the same concept, and specific working processes and technical effects brought by the units and modules in the foregoing embodiments may be referred to a method embodiment part, which is not described herein again.
The chip system according to the embodiment of the present application is described below.
Fig. 8 is a schematic structural diagram of a chip system according to an embodiment of the present application. As shown in fig. 8, the system-on-chip includes at least one processor 801 and at least one interface circuit 802. The processor 801 and the interface circuit 802 may be interconnected by wires. For example, interface circuit 802 may be used to receive signals from other devices, such as a memory of an electronic apparatus. For another example, interface circuit 802 may be used to send signals to other devices, such as processor 801. The interface circuit 802 may, for example, read instructions stored in a memory and send the instructions to the processor 801. The instructions, when executed by the processor 801, may cause the system-on-chip to perform the various steps described above in the embodiment of fig. 4. Of course, the chip system may also include other discrete devices, which are not limited in this embodiment.
In the above embodiments, it may be implemented in whole or in part by software, hardware, firmware, or any combination thereof. When implemented in software, may be implemented in whole or in part in the form of a computer program product. The computer program product includes one or more computer instructions. When the computer instructions are loaded and executed on a computer, the processes or functions described in accordance with embodiments of the present application are produced in whole or in part. The computer may be a general purpose computer, a special purpose computer, a computer network, or other programmable apparatus. The computer instructions may be stored in a computer-readable storage medium or transmitted from one computer-readable storage medium to another computer-readable storage medium, for example, the computer instructions may be transmitted from one website, computer, server, or data center to another website, computer, server, or data center by a wired (e.g., coaxial cable, fiber optic, data subscriber line (Digital Subscriber Line, DSL)) or wireless (e.g., infrared, wireless, microwave, etc.) means. The computer readable storage medium may be any available medium that can be accessed by a computer or a data storage device such as a server, data center, etc. that contains an integration of one or more available media. The usable medium may be a magnetic medium such as a floppy Disk, a hard Disk, a magnetic tape, an optical medium such as a digital versatile Disk (Digital Versatile Disc, DVD), or a semiconductor medium such as a Solid State Disk (SSD), etc.
The above embodiments are not intended to limit the present application, and any modifications, equivalent substitutions, improvements, etc. within the technical scope of the present disclosure should be included in the protection scope of the present application.

Claims (11)

1. A method of charging, for use with a power adapter having a plurality of ports, the method comprising:
under the condition that n ports in the plurality of ports are connected with n electronic devices one by one, acquiring first charging information of the power adapter and second charging information of each electronic device in the n electronic devices, wherein n is a positive integer;
for any one of the n ports, adjusting maximum output power of the one port according to the first charging information of the power adapter and the second charging information of the electronic device connected with the one port;
and charging the connected electronic equipment according to the maximum output power of each of the n ports.
2. The method of claim 1, wherein the first charging information comprises at least one of:
An output voltage of each of the n ports;
an output current of each of the n ports;
the output power of each of the n ports;
maximum output power of each of the n ports;
the temperature of the power adapter;
and the protection strategy of the power adapter.
3. The method of claim 1 or 2, wherein the second charging information comprises at least one of:
historical charging records of the electronic device;
charging protocols supported by the electronic device;
charging strategies for electronic devices;
status information of the electronic device.
4. The method of claim 1 or 2, wherein the obtaining the second charging information for each of the n electronic devices comprises:
for any one of the n electronic devices, acquiring a device identifier of the one electronic device;
searching the historical charging records of the electronic equipment from all the historical charging records stored by the electronic equipment according to the equipment identification of the electronic equipment;
if the historical charging record of the electronic equipment is found, determining the historical charging record of the electronic equipment as second charging information of the electronic equipment;
And if the historical charging record of the electronic equipment is not found, acquiring charging information from the electronic equipment as second charging information of the electronic equipment.
5. The method of any of claims 1-4, wherein the adjusting the maximum output power of the one port based on the first charging information of the power adapter and the second charging information of the electronic device to which the one port is connected comprises:
if the second charging information of the electronic device connected to the one port is not a historical charging record, reducing the maximum output power of the one port under the condition that the first charging information of the power adapter and/or the second charging information of the electronic device connected to the one port meet a power reduction condition; and increasing the maximum output power of the one port when the first charging information of the power adapter and/or the second charging information of the electronic device to which the one port is connected satisfy a power increasing condition.
6. The method of claim 5, wherein increasing the maximum output power of the one port if the first charging information of the power adapter and/or the second charging information of the electronic device to which the one port is connected satisfies a power increase condition, comprises:
Determining a target power to be increased if the first charging information of the power adapter and/or the second charging information of the electronic device to which the one port is connected satisfy a power increase condition;
if the target power is greater than the idle power of the power adapter, increasing the maximum output power of the one port by the idle power;
and if the target power is smaller than or equal to the idle power of the power adapter, increasing the maximum output power of the one port by the target power.
7. The method of any of claims 1-4, wherein the adjusting the maximum output power of the one port based on the first charging information of the power adapter and the second charging information of the electronic device to which the one port is connected comprises:
if the second charging information of the electronic equipment connected with the port is a historical charging record, determining a historical charging power curve of the electronic equipment connected with the port according to the second charging information of the electronic equipment connected with the port;
and adjusting the maximum output power of the port according to the first charging information and the historical charging power curve of the power adapter.
8. The method of any one of claims 1-7, wherein the method further comprises:
and if the fact that any one of the ports is connected with the electronic equipment is detected, setting the maximum output power of each port of all ports connected with the electronic equipment as the initial maximum output power.
9. A charging device for use with a power adapter having a plurality of ports, the device comprising:
the power adapter comprises an acquisition module, a power adapter and a power adapter, wherein the acquisition module is used for acquiring first charging information of the power adapter and second charging information of each electronic device in the n electronic devices under the condition that the n ports in the plurality of ports are connected with the n electronic devices one by one, and n is a positive integer;
the adjusting module is used for adjusting the maximum output power of any one of the n ports according to the first charging information of the power adapter and the second charging information of the electronic equipment connected with the one port;
and the charging module is used for charging the connected electronic equipment according to the maximum output power of each of the n ports.
10. A power adapter comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, which when executed by the processor, implements the method of any of claims 1-8.
11. A computer readable storage medium having instructions stored therein which, when run on a computer, cause the computer to perform the method of any of claims 1-8.
CN202210764606.7A 2022-06-30 2022-06-30 Charging method, device, power adapter and storage medium Active CN116031965B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202210764606.7A CN116031965B (en) 2022-06-30 2022-06-30 Charging method, device, power adapter and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202210764606.7A CN116031965B (en) 2022-06-30 2022-06-30 Charging method, device, power adapter and storage medium

Publications (2)

Publication Number Publication Date
CN116031965A true CN116031965A (en) 2023-04-28
CN116031965B CN116031965B (en) 2023-10-27

Family

ID=86069562

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202210764606.7A Active CN116031965B (en) 2022-06-30 2022-06-30 Charging method, device, power adapter and storage medium

Country Status (1)

Country Link
CN (1) CN116031965B (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN116545083A (en) * 2023-06-27 2023-08-04 荣耀终端有限公司 Charging circuit, electronic equipment and power adapter

Citations (13)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20150015195A1 (en) * 2012-07-06 2015-01-15 DvineWave Inc. Portable wireless charging pad
US9948118B1 (en) * 2014-09-11 2018-04-17 AMPL Labs, Inc. Recharging platform for electronic devices
CN109831004A (en) * 2019-02-19 2019-05-31 珠海智融科技有限公司 A kind of battery charge controller and method
CN110161429A (en) * 2019-05-24 2019-08-23 深圳市乐得瑞科技有限公司 Power supply adaptor test method, device, server and storage medium
CN110380489A (en) * 2019-08-08 2019-10-25 珠海英集芯半导体有限公司 A kind of fast charge circuit that can automatically adjust power and method
CN112202222A (en) * 2020-09-29 2021-01-08 维沃移动通信有限公司 Charger, charging control method and device
CN112448426A (en) * 2019-08-30 2021-03-05 华为技术有限公司 External charging method and device
CN113193620A (en) * 2021-04-26 2021-07-30 维沃移动通信有限公司 Charging power adjusting method and device and electronic equipment
CN114050627A (en) * 2021-11-26 2022-02-15 努比亚技术有限公司 Wireless charging separation control method and device and computer readable storage medium
CN114123380A (en) * 2021-10-15 2022-03-01 华为数字能源技术有限公司 Charging device, charger, and charging power adjustment method
CN114256897A (en) * 2020-09-23 2022-03-29 Oppo广东移动通信有限公司 Power supply device, power supply method, and power supply system
WO2022109837A1 (en) * 2020-11-25 2022-06-02 华为技术有限公司 Electronic device, charging base and charging method
CN114649596A (en) * 2020-12-18 2022-06-21 北京万集科技股份有限公司 Charging control method, charging control device, charging control system, storage medium, and electronic device

Patent Citations (14)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20150015195A1 (en) * 2012-07-06 2015-01-15 DvineWave Inc. Portable wireless charging pad
US9948118B1 (en) * 2014-09-11 2018-04-17 AMPL Labs, Inc. Recharging platform for electronic devices
CN109831004A (en) * 2019-02-19 2019-05-31 珠海智融科技有限公司 A kind of battery charge controller and method
CN110161429A (en) * 2019-05-24 2019-08-23 深圳市乐得瑞科技有限公司 Power supply adaptor test method, device, server and storage medium
CN110380489A (en) * 2019-08-08 2019-10-25 珠海英集芯半导体有限公司 A kind of fast charge circuit that can automatically adjust power and method
CN112448426A (en) * 2019-08-30 2021-03-05 华为技术有限公司 External charging method and device
CN114256897A (en) * 2020-09-23 2022-03-29 Oppo广东移动通信有限公司 Power supply device, power supply method, and power supply system
CN112202222A (en) * 2020-09-29 2021-01-08 维沃移动通信有限公司 Charger, charging control method and device
WO2022068802A1 (en) * 2020-09-29 2022-04-07 维沃移动通信有限公司 Charger, and charging control method and apparatus
WO2022109837A1 (en) * 2020-11-25 2022-06-02 华为技术有限公司 Electronic device, charging base and charging method
CN114649596A (en) * 2020-12-18 2022-06-21 北京万集科技股份有限公司 Charging control method, charging control device, charging control system, storage medium, and electronic device
CN113193620A (en) * 2021-04-26 2021-07-30 维沃移动通信有限公司 Charging power adjusting method and device and electronic equipment
CN114123380A (en) * 2021-10-15 2022-03-01 华为数字能源技术有限公司 Charging device, charger, and charging power adjustment method
CN114050627A (en) * 2021-11-26 2022-02-15 努比亚技术有限公司 Wireless charging separation control method and device and computer readable storage medium

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
刘有耀;崔盼;张烨晨;: "多协议智能快充电路的设计", 现代电子技术, no. 24, pages 25 - 33 *

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN116545083A (en) * 2023-06-27 2023-08-04 荣耀终端有限公司 Charging circuit, electronic equipment and power adapter

Also Published As

Publication number Publication date
CN116031965B (en) 2023-10-27

Similar Documents

Publication Publication Date Title
CN112152759B (en) Data transmission method, data transmission system, equipment and storage medium
US10910853B2 (en) Quick charging method, power adapter and mobile terminal
CN110626205B (en) Charging equipment power distribution method, storage medium and system
CN111522636A (en) Application container adjusting method, application container adjusting system, computer readable medium and terminal device
EP3982506B1 (en) Terminal device charging method and apparatus, and storage medium
CN116031965B (en) Charging method, device, power adapter and storage medium
CN111404228B (en) Terminal battery charging method and device, terminal battery charging equipment and storage medium
CN110650518A (en) Energy-saving method and equipment for base station equipment
CN114077296A (en) Method and device for controlling output power of power supply and related equipment
CN110515728B (en) Server scheduling method and device, electronic equipment and machine-readable storage medium
CN116418063A (en) Charging control method, system, electronic device and storage medium
WO2024103598A1 (en) Data backup method, apparatus and device, and nonvolatile readable storage medium
CN116231787A (en) Charging and discharging control method and device, terminal equipment and storage medium
CN110888331A (en) Power storage control method, intelligent home controller and storage medium
CN107645188B (en) Method and system for balancing PSU and BBU charging overcurrent protection
CN113315718B (en) System, method and device for self-adaptive current limiting
JP2021503265A (en) Charging method, terminal and computer storage medium
CN114759638A (en) Control method based on earphone charging bin electric quantity and related device
US8843137B2 (en) Femtocell radio base station, communication control method, and recording medium
CN113364122B (en) Power grid monitoring system channel distribution method based on server instance expansion
CN113347692B (en) Power utilization system, method and equipment, and computer-readable storage medium
CN113381471B (en) Control method and device for output limit value of charger and battery energy storage system
CN112492615B (en) Remote communication method, system, equipment and readable storage medium
CN117498508B (en) Quick charging method and device for mobile device, electronic device and storage medium
CN109861235B (en) Power consumption management method, power consumption management terminal and readable storage medium

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
GR01 Patent grant
GR01 Patent grant