CN106972558B - Charging control method and electronic equipment - Google Patents

Charging control method and electronic equipment Download PDF

Info

Publication number
CN106972558B
CN106972558B CN201710188165.XA CN201710188165A CN106972558B CN 106972558 B CN106972558 B CN 106972558B CN 201710188165 A CN201710188165 A CN 201710188165A CN 106972558 B CN106972558 B CN 106972558B
Authority
CN
China
Prior art keywords
output
power supply
parameter
interface
voltage
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.)
Active
Application number
CN201710188165.XA
Other languages
Chinese (zh)
Other versions
CN106972558A (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.)
Lenovo Beijing Ltd
Original Assignee
Lenovo Beijing 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 Lenovo Beijing Ltd filed Critical Lenovo Beijing Ltd
Priority to CN201710188165.XA priority Critical patent/CN106972558B/en
Publication of CN106972558A publication Critical patent/CN106972558A/en
Application granted granted Critical
Publication of CN106972558B publication Critical patent/CN106972558B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • HELECTRICITY
    • H02GENERATION; CONVERSION OR DISTRIBUTION OF ELECTRIC POWER
    • H02JCIRCUIT ARRANGEMENTS OR SYSTEMS FOR SUPPLYING OR DISTRIBUTING ELECTRIC POWER; SYSTEMS FOR STORING ELECTRIC ENERGY
    • H02J2207/00Indexing scheme relating to details of circuit arrangements for charging or depolarising batteries or for supplying loads from batteries
    • H02J2207/40Indexing scheme relating to details of circuit arrangements for charging or depolarising batteries or for supplying loads from batteries adapted for charging from various sources, e.g. AC, DC or multivoltage

Landscapes

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

Abstract

The embodiment of the invention discloses a charging control method and electronic equipment. The electronic device has an electrical energy storage unit; the method comprises the following steps: the electronic equipment detects that the first interface is connected to the first power supply equipment and detects that the second interface is connected to the second power supply equipment; obtaining a first output parameter of the first power supply device through the first interface, and obtaining a second output parameter of the second power supply device through the second interface; obtaining input parameters of the electric energy storage unit; when the first output parameter and the second output parameter meet a preset condition, comparing the input parameter with the first output parameter, and comparing the input parameter with the second output parameter; and selecting the first power supply equipment or the second power supply equipment based on the comparison result, and establishing a power transmission link with the first power supply equipment or the second power supply equipment.

Description

Charging control method and electronic equipment
Technical Field
The invention relates to a charging technology, in particular to a charging control method and electronic equipment.
Background
Currently, more and more electronic devices (e.g., notebook computers) support at least two types of power adapters, i.e., electronic devices have at least two types of power adapter interfaces, such as a Direct Current (DC) interface and a universal serial bus Type-C (USB Type-C) interface. When at least two power adapters are connected to the electronic device, the electronic device usually selects the power adapter with the largest output power for charging. If the output power is the same, the electronic device selects the power adapter which is accessed first to charge. And compared with the power adapter which is not connected, the connected power adapter has the problem of low charging efficiency.
Disclosure of Invention
In order to solve the existing technical problem, embodiments of the present invention provide a charging control method and an electronic device.
In order to achieve the above purpose, the technical solution of the embodiment of the present invention is realized as follows:
the embodiment of the invention provides a charging control method, which is applied to electronic equipment, wherein the electronic equipment is provided with an electric energy storage unit; the method comprises the following steps:
the electronic equipment detects that the first interface is connected to the first power supply equipment and detects that the second interface is connected to the second power supply equipment;
obtaining a first output parameter of the first power supply device through the first interface, and obtaining a second output parameter of the second power supply device through the second interface;
obtaining input parameters of the electric energy storage unit;
when the first output parameter and the second output parameter meet a preset condition, comparing the input parameter with the first output parameter, and comparing the input parameter with the second output parameter;
and selecting the first power supply equipment or the second power supply equipment based on the comparison result, and establishing a power transmission link with the first power supply equipment or the second power supply equipment.
In the foregoing solution, the obtaining the first output parameter of the first power supply device through the first interface includes: obtaining a first output voltage and a first output current of the first power supply device through the first interface;
correspondingly, the obtaining of the second output parameter of the second power supply device through the second interface includes: and obtaining a second output voltage and a second output current of the second power supply equipment through the second interface.
In the foregoing solution, the first output parameter and the second output parameter satisfy a preset condition, including:
determining a first output power of the first power supply device based on the first output voltage and the first output current;
determining a second output power of the second power supply device based on the second output voltage and the second output current;
and when the first output power is consistent with the second output power, determining that the first output parameter and the second output parameter meet a preset condition.
In the foregoing solution, the obtaining the input parameters of the electric energy storage unit includes: obtaining an input voltage of the electrical energy storage unit;
the comparing the input parameter and the first output parameter, and comparing the input parameter and the second output parameter, respectively, includes:
comparing the input voltage with the first output voltage to obtain a first comparison result; and comparing the input voltage with the second output voltage to obtain a second comparison result.
In the foregoing aspect, the selecting the first power supply apparatus or the second power supply apparatus based on the comparison result includes: selecting the first power supply device when the first comparison result and the second comparison result indicate that the input voltage is less than the first output voltage, the input voltage is less than the second output voltage, and a first difference between the input voltage and the first output voltage is less than a second difference between the input voltage and the second output voltage;
and when the first comparison result shows that the input voltage is smaller than the first output voltage and the second comparison result shows that the input voltage is larger than the second output voltage, selecting the first power supply equipment.
The embodiment of the invention also provides the electronic equipment, which at least comprises a first interface and a second interface; the electronic device includes: a rechargeable battery and a controller; wherein,
the controller is used for detecting that the first interface is connected to the first power supply equipment and detecting that the second interface is connected to the second power supply equipment; obtaining a first output parameter of the first power supply device through the first interface, and obtaining a second output parameter of the second power supply device through the second interface; and is also used for obtaining the input parameters of the rechargeable battery; when the first output parameter and the second output parameter meet a preset condition, comparing the input parameter with the first output parameter, and comparing the input parameter with the second output parameter; selecting the first power supply equipment or the second power supply equipment based on the comparison result, and establishing a power transmission link with the first power supply equipment through the first interface or establishing a power transmission link with the second power supply equipment through the second interface.
In the above scheme, the controller is configured to obtain a first output voltage and a first output current of the first power supply device through the first interface; and is further configured to obtain a second output voltage and a second output current of the second power supply device through the second interface.
In the foregoing solution, the controller is configured to determine a first output power of the first power supply device based on the first output voltage and the first output current; determining a second output power of the second power supply device based on the second output voltage and the second output current; and when the first output power is consistent with the second output power, determining that the first output parameter and the second output parameter meet a preset condition.
In the above scheme, the controller is configured to obtain an input voltage of the rechargeable battery;
the controller is used for comparing the input voltage with the first output voltage to obtain a first comparison result; and comparing the input voltage with the second output voltage to obtain a second comparison result.
In the foregoing solution, the controller is configured to select the first power supply device when the first comparison result and the second comparison result indicate that the input voltage is smaller than the first output voltage, the input voltage is smaller than the second output voltage, and a first difference between the input voltage and the first output voltage is smaller than a second difference between the input voltage and the second output voltage; and when the first comparison result shows that the input voltage is smaller than the first output voltage and the second comparison result shows that the input voltage is larger than the second output voltage, selecting the first power supply equipment.
According to the charging control method and the electronic device provided by the embodiment of the invention, the electronic device is provided with an electric energy storage unit; the method comprises the following steps: the electronic equipment detects that the first interface is connected to the first power supply equipment and detects that the second interface is connected to the second power supply equipment; obtaining a first output parameter of the first power supply device through the first interface, and obtaining a second output parameter of the second power supply device through the second interface; obtaining input parameters of the electric energy storage unit; when the first output parameter and the second output parameter meet a preset condition, comparing the input parameter with the first output parameter, and comparing the input parameter with the second output parameter; and selecting the first power supply equipment or the second power supply equipment based on the comparison result, and establishing a power transmission link with the first power supply equipment or the second power supply equipment. By adopting the technical scheme of the embodiment of the invention, under the condition that the electronic equipment is respectively connected with the corresponding charging adapters (such as the power supply equipment) through at least two interfaces and the power of at least two charging adapters is the same, the output parameters of the charging adapters are compared with the input parameters of the electric energy storage unit of the electronic equipment to select the proper adapter to supply power to the electric energy storage unit, so that the charging efficiency is greatly improved and the charging time is reduced.
Drawings
Fig. 1 is a schematic flowchart of a charging control method according to a first embodiment of the invention;
fig. 2 is a schematic flowchart of a charging control method according to a second embodiment of the present invention;
fig. 3 is a flowchart illustrating a charging control method according to a third embodiment of the present invention;
fig. 4a and fig. 4b are schematic application diagrams of a charging control method according to an embodiment of the present invention;
fig. 5 is a schematic structural diagram of an electronic device according to an embodiment of the present invention.
Detailed Description
The present invention will be described in further detail with reference to the accompanying drawings and specific embodiments.
The embodiment of the invention provides a charging control method. Fig. 1 is a schematic flowchart of a charging control method according to a first embodiment of the invention; as shown in fig. 1, the method includes:
step 101: the electronic equipment detects that the first interface is connected to the first power supply equipment and detects that the second interface is connected to the second power supply equipment.
Step 102: and obtaining a first output parameter of the first power supply equipment through the first interface, and obtaining a second output parameter of the second power supply equipment through the second interface.
Step 103: input parameters of the electrical energy storage unit are obtained.
Step 104: when the first output parameter and the second output parameter satisfy a preset condition, comparing the input parameter with the first output parameter, and comparing the input parameter with the second output parameter.
Step 105: and selecting the first power supply equipment or the second power supply equipment based on the comparison result, and establishing a power transmission link with the first power supply equipment or the second power supply equipment.
The charging control method is applied to electronic equipment, wherein the electronic equipment is provided with an electric energy storage unit, and the electric energy storage unit can be a rechargeable battery; the electronic device further has at least two interfaces, and the at least two interfaces can be respectively connected to the power supply device, as an implementation manner, the at least two interfaces belong to different types of interfaces, for example, one Type of interface is a DC interface, and the other Type of interface is a USB Type-C interface, although the Type of interface in the embodiment of the present invention is not limited to the two listed above, and other types of charging interfaces are also within the protection scope of the embodiment of the present invention. It can be understood that the electronic device can access different types of power supply devices (the power supply device may be specifically a power adapter) through different types of interfaces, that is, the electronic device supports at least two types of power supply devices for supplying power. In practical applications, the electronic device may specifically be a mobile device such as a notebook computer, a mobile phone, a tablet computer, and the like.
In this embodiment, a first interface of an electronic device is connected to a first power supply device, and a second interface of the electronic device is connected to a second power supply device; the first interface and the second interface may be any two interfaces of at least two interfaces that the electronic device has. After the electronic device detects that the first interface is connected to the first power supply device and the second interface is connected to the second power supply device, the first output parameter of the first power supply device is obtained through the first interface, and the second output parameter of the second power supply device is obtained through the second interface; wherein the first output parameter characterizes the first power supply device power supply capability; accordingly, the second output parameter characterizes the power supply capability of the second power supply device.
In this embodiment, the electronic device further obtains input parameters of the electric energy storage unit, where the input parameters include at least one of the following parameters: input voltage, input current, power rating, storage capacity, etc. When the electric energy storage unit is formed by connecting a plurality of sub-units in series, the input parameters of the electric energy storage unit are the total input parameters of the plurality of sub-units after being connected in series, that is, the total input voltage, the total input current, the total storage capacity and the like of the plurality of sub-units after being connected in series.
In this embodiment, determining whether the first output parameter and the second output parameter satisfy a preset condition specifically includes: judging whether the power supply capacity of the first power supply equipment is consistent with the power supply capacity of the second power supply equipment or not based on the first output parameter and the second output parameter; and when the power supply capacity of the first power supply equipment is judged to be consistent with the power supply capacity of the second power supply equipment, the first output parameter and the second output parameter are shown to meet a preset condition.
In this embodiment, the electronic device compares the input parameter with the first output parameter and compares the input parameter with the second output parameter on the premise of the power supply capabilities of the first power supply device and the second power supply device; obtaining a first parameter indicative of a degree of difference between the input parameter and the first output parameter, and obtaining a second parameter indicative of a degree of difference between the input parameter and the second output parameter; when the first parameter is smaller than the second parameter and indicates that the first output parameter of the first power supply device is closest to the input parameter of the electric energy storage unit, selecting the first power supply device, and establishing an electric energy transmission link with the first power supply device, so that the first power supply device supplies power to the electric energy storage unit of the electronic device; and when the first parameter is larger than the second parameter and indicates that the second output parameter of the second power supply device is closest to the input parameter of the electric energy storage unit, selecting the second power supply device, and establishing an electric energy transmission link with the second power supply device, so that the second power supply device supplies power to the electric energy storage unit of the electronic device. When the first parameter is equal to the second parameter, the output parameters of the first power supply device and the second power supply device are equivalent, and any one of the first power supply device and the second power supply device can be selected according to a preset rule to supply power to the electric energy storage unit of the electronic device; the preset rule may be that power supply devices which are accessed first are selected according to a time sequence. It should be noted that the power supply capability of the selected first power supply device or the selected second power supply device needs to meet the input parameter of the electrical energy storage unit, for example, the output parameter of the selected first power supply device or the selected second power supply device needs to be greater than or equal to the input parameter of the electrical energy storage unit, so as to meet the charging requirement of the electrical energy storage unit.
By adopting the technical scheme of the embodiment of the invention, under the condition that the electronic equipment is respectively connected with the corresponding charging adapters (such as the power supply equipment) through at least two interfaces and the power of at least two charging adapters is the same, the output parameters of the charging adapters are compared with the input parameters of the electric energy storage unit of the electronic equipment to select the proper adapter to supply power to the electric energy storage unit, so that the charging efficiency is greatly improved and the charging time is reduced.
Example two
The embodiment of the invention also provides a charging control method. Fig. 2 is a schematic flowchart of a charging control method according to a first embodiment of the invention; as shown in fig. 2, the method includes:
step 201: the electronic equipment detects that the first interface is connected to the first power supply equipment and detects that the second interface is connected to the second power supply equipment.
Step 202: obtaining a first output voltage and a first output current of the first power supply device through the first interface, and obtaining a second output voltage and a second output current of the second power supply device through the second interface.
Step 203: an input voltage of the electrical energy storage unit is obtained.
Step 204: determining a first output power of the first power supply device based on the first output voltage and the first output current, and determining a second output power of the second power supply device based on the second output voltage and the second output current.
Step 205: when the first output power is consistent with the second output power, comparing the input voltage with the first output voltage to obtain a first comparison result; and comparing the input voltage with the second output voltage to obtain a second comparison result.
Step 206: and when the first comparison result and the second comparison result show that the input voltage is smaller than the first output voltage, the input voltage is smaller than the second output voltage, and a first difference value between the input voltage and the first output voltage is smaller than a second difference value between the input voltage and the second output voltage, selecting the first power supply equipment and establishing a power transmission link with the first power supply equipment.
The charging control method is applied to electronic equipment, wherein the electronic equipment is provided with an electric energy storage unit, and the electric energy storage unit can be a rechargeable battery; the electronic device further has at least two interfaces, and the at least two interfaces can be respectively connected to the power supply device, as an implementation manner, the at least two interfaces belong to different types of interfaces, for example, one Type of interface is a DC interface, and the other Type of interface is a USB Type-C interface, although the Type of interface in the embodiment of the present invention is not limited to the two listed above, and other types of charging interfaces are also within the protection scope of the embodiment of the present invention. It can be understood that the electronic device can access different types of power supply devices (the power supply device may be specifically a power adapter) through different types of interfaces, that is, the electronic device supports at least two types of power supply devices for supplying power. In practical applications, the electronic device may specifically be a mobile device such as a notebook computer, a mobile phone, a tablet computer, and the like.
In this embodiment, a first interface of an electronic device is connected to a first power supply device, and a second interface of the electronic device is connected to a second power supply device; the first interface and the second interface may be any two interfaces of at least two interfaces that the electronic device has. After the electronic device detects that the first interface is connected to the first power supply device and the second interface is connected to the second power supply device, obtaining a first output parameter of the first power supply device through the first interface, wherein the first output parameter comprises a first output voltage and a first output current; and obtaining a second output parameter of the second power supply equipment through the second interface, wherein the second output parameter comprises a second output voltage and a second output current.
In this embodiment, the electronic device further obtains an input voltage of the electrical energy storage unit. When the electric energy storage unit is formed by connecting a plurality of sub-units in series, the input voltage of the electric energy storage unit is the total input voltage of the plurality of sub-units after being connected in series.
In this embodiment, the electronic device determines a first output power of the first power supply device based on the obtained first output voltage and first output current, determines a second output power of the second power supply device based on the obtained second output voltage and second output current, and executes the following technical solutions of the embodiments of the present invention when the first output power and the second output power are consistent, that is, when the power supply capability of the first power supply device and the power supply capability of the second power supply device are consistent.
In this embodiment, the comparing, by the electronic device, the input parameter of the electric energy storage unit with the first output parameter of the first power supply device and the second output parameter of the second power supply device respectively includes: comparing the input voltage with the first output voltage to obtain a first comparison result; and comparing the input voltage with the second output voltage to obtain a second comparison result. Selecting a power supply unit that satisfies an input voltage of the electric energy storage unit and has a minimum difference from the input voltage of the electric energy storage unit, from the first comparison result and the second comparison result. In this embodiment, when the first input voltage and the second input voltage are both greater than the input voltage, that is, the first power supply device and the second power supply device are both capable of meeting the charging requirement of the electrical energy storage unit, if a first difference between a first output voltage of the first power supply device and the input voltage of the electrical energy storage unit is smaller than a second difference between the input voltage and the second output voltage, which indicates that a voltage difference between the first power supply device and the electrical energy storage unit is minimum, the first power supply device is selected as the power supply device of the electrical energy storage unit, and an electrical energy transmission link with the first power supply device is established, so that the first power supply device supplies power to the electrical energy storage unit of the electronic device.
By adopting the technical scheme of the embodiment of the invention, under the condition that the electronic equipment is respectively connected with the corresponding charging adapters (such as the power supply equipment) through at least two interfaces and the power of at least two charging adapters is the same, the output parameters of the charging adapters are compared with the input parameters of the electric energy storage unit of the electronic equipment to select the proper adapter to supply power to the electric energy storage unit, so that the charging efficiency is greatly improved and the charging time is reduced.
EXAMPLE III
The embodiment of the invention also provides a charging control method. Fig. 3 is a flowchart illustrating a charging control method according to a third embodiment of the present invention; as shown in fig. 3, the method includes:
step 301: the electronic equipment detects that the first interface is connected to the first power supply equipment and detects that the second interface is connected to the second power supply equipment.
Step 302: obtaining a first output voltage and a first output current of the first power supply device through the first interface, and obtaining a second output voltage and a second output current of the second power supply device through the second interface.
Step 303: an input voltage of the electrical energy storage unit is obtained.
Step 304: determining a first output power of the first power supply device based on the first output voltage and the first output current, and determining a second output power of the second power supply device based on the second output voltage and the second output current.
Step 305: when the first output power is consistent with the second output power, comparing the input voltage with the first output voltage to obtain a first comparison result; and comparing the input voltage with the second output voltage to obtain a second comparison result.
Step 306: and when the first comparison result shows that the input voltage is smaller than the first output voltage and the second comparison result shows that the input voltage is larger than the second output voltage, selecting the first power supply equipment and establishing a power transmission link with the first power supply equipment.
The charging control method is applied to electronic equipment, wherein the electronic equipment is provided with an electric energy storage unit, and the electric energy storage unit can be a rechargeable battery; the electronic device further has at least two interfaces, and the at least two interfaces can be respectively connected to the power supply device, as an implementation manner, the at least two interfaces belong to different types of interfaces, for example, one Type of interface is a DC interface, and the other Type of interface is a USB Type-C interface, although the Type of interface in the embodiment of the present invention is not limited to the two listed above, and other types of charging interfaces are also within the protection scope of the embodiment of the present invention. It can be understood that the electronic device can access different types of power supply devices (the power supply device may be specifically a power adapter) through different types of interfaces, that is, the electronic device supports at least two types of power supply devices for supplying power. In practical applications, the electronic device may specifically be a mobile device such as a notebook computer, a mobile phone, a tablet computer, and the like.
In this embodiment, a first interface of an electronic device is connected to a first power supply device, and a second interface of the electronic device is connected to a second power supply device; the first interface and the second interface may be any two interfaces of at least two interfaces that the electronic device has. After the electronic device detects that the first interface is connected to the first power supply device and the second interface is connected to the second power supply device, obtaining a first output parameter of the first power supply device through the first interface, wherein the first output parameter comprises a first output voltage and a first output current; and obtaining a second output parameter of the second power supply equipment through the second interface, wherein the second output parameter comprises a second output voltage and a second output current.
In this embodiment, the electronic device further obtains an input voltage of the electrical energy storage unit. When the electric energy storage unit is formed by connecting a plurality of sub-units in series, the input voltage of the electric energy storage unit is the total input voltage of the plurality of sub-units after being connected in series.
In this embodiment, the electronic device determines a first output power of the first power supply device based on the obtained first output voltage and first output current, determines a second output power of the second power supply device based on the obtained second output voltage and second output current, and executes the following technical solutions of the embodiments of the present invention when the first output power and the second output power are consistent, that is, when the power supply capability of the first power supply device and the power supply capability of the second power supply device are consistent.
In this embodiment, the comparing, by the electronic device, the input parameter of the electric energy storage unit with the first output parameter of the first power supply device and the second output parameter of the second power supply device respectively includes: comparing the input voltage with the first output voltage to obtain a first comparison result; and comparing the input voltage with the second output voltage to obtain a second comparison result. Selecting a power supply unit that satisfies an input voltage of the electric energy storage unit and has a minimum difference from the input voltage of the electric energy storage unit, from the first comparison result and the second comparison result. In this embodiment, when the first input voltage is greater than the input voltage and the second input voltage is less than the input voltage, which indicates that the first power supply device can meet the charging requirement of the electrical energy storage unit, and the second power supply device cannot meet the power supply requirement of the electrical energy storage unit, the first power supply device is selected as the power supply device of the electrical energy storage unit, and an electrical energy transmission link with the first power supply device is established, so that the first power supply device supplies power to the electrical energy storage unit of the electronic device.
By adopting the technical scheme of the embodiment of the invention, under the condition that the electronic equipment is respectively connected with the corresponding charging adapters (such as the power supply equipment) through at least two interfaces and the power of at least two charging adapters is the same, the output parameters of the charging adapters are compared with the input parameters of the electric energy storage unit of the electronic equipment to select the proper adapter to supply power to the electric energy storage unit, so that the charging efficiency is greatly improved and the charging time is reduced.
The charging control method according to the embodiment of the present invention is described below with reference to specific application scenarios. Taking an electronic device as a notebook computer and a power supply device as an example, the power supply device is specifically a power adapter, the power adapter includes, for example, a first power adapter (with an output parameter of 20V × 2.25A) and a second power adapter (with an output parameter of 15V × 3A), a battery in the notebook computer is specifically formed by connecting at least one sub-battery module in series, wherein the voltage of each sub-battery module is about 4.35V, and when the battery in the notebook computer is formed by connecting two sub-battery modules in series, the voltage of the battery is about 8.7V; correspondingly, when the battery in the notebook computer is formed by connecting three sub-battery modules in series, the voltage of the battery is about 13.05V; when the battery in the notebook computer is formed by connecting four sub-battery modules in series, the voltage of the battery is about 17.4V.
Fig. 4a and fig. 4b are schematic application diagrams of a charging control method according to an embodiment of the present invention; as shown in fig. 4a, in the application scenario, when the battery is formed by connecting two sub battery modules or three sub battery modules in series, the second power adapter (with an output parameter of 15V × 3A) is selected as the power supply device of the notebook computer to charge the battery. As shown in fig. 4b, when the battery is formed by connecting four sub-battery modules in series, since the voltage of the battery is about 17.4V, the output voltage of the second power adapter is less than the voltage of the battery, and the charging requirement of the battery is not met, the first power adapter (with an output parameter of 20V × 2.25A) is selected as the power supply device of the notebook computer to charge the battery.
Example four
The embodiment of the invention also provides the electronic equipment. Fig. 5 is a schematic structural diagram of an electronic device according to an embodiment of the present invention, and as shown in fig. 5, the electronic device has at least a first interface 41 and a second interface 42; the electronic device includes: a rechargeable battery 44 and a controller 43; wherein,
the controller 43 is configured to detect that the first interface 41 is connected to the first power supply device, and detect that the second interface 42 is connected to the second power supply device; obtaining a first output parameter of the first power supply device through the first interface 41, and obtaining a second output parameter of the second power supply device through the second interface 42; and for obtaining input parameters of the rechargeable battery 44; when the first output parameter and the second output parameter meet a preset condition, comparing the input parameter with the first output parameter, and comparing the input parameter with the second output parameter; selecting the first power supply apparatus or the second power supply apparatus based on the comparison result, establishing a power transmission link with the first power supply apparatus through the first interface 41, or establishing a power transmission link with the second power supply apparatus through the second interface 42.
It should be understood by those skilled in the art that the functions of each processing unit in the electronic device according to the embodiment of the present invention may be understood by referring to the description of the charging control method, and each processing unit in the electronic device according to the embodiment of the present invention may be implemented by an analog circuit that implements the functions described in the embodiment of the present invention, or may be implemented by running software that executes the functions described in the embodiment of the present invention on an intelligent terminal.
EXAMPLE five
The embodiment of the invention also provides the electronic equipment. As shown in fig. 5, the electronic device has at least a first interface 41 and a second interface 42; the electronic device includes: a rechargeable battery 44 and a controller 43; wherein,
the controller 43 is configured to detect that the first interface 41 is connected to the first power supply device, and detect that the second interface 42 is connected to the second power supply device; obtaining a first output voltage and a first output current of the first power supply device through the first interface 41; obtaining a second output voltage and a second output current of the second power supply device through the second interface 42; also for obtaining an input voltage of the rechargeable battery 44; further for determining a first output power of the first power supply device based on the first output voltage and the first output current; determining a second output power of the second power supply device based on the second output voltage and the second output current; when the first output power is consistent with the second output power, comparing the input voltage with the first output voltage to obtain a first comparison result; comparing the input voltage with the second output voltage to obtain a second comparison result; and when the first comparison result and the second comparison result show that the input voltage is smaller than the first output voltage, the input voltage is smaller than the second output voltage, and a first difference value between the input voltage and the first output voltage is smaller than a second difference value between the input voltage and the second output voltage, selecting the first power supply device, and establishing an electric energy transmission link with the first power supply device through the first interface 41.
It should be understood by those skilled in the art that the functions of each processing unit in the electronic device according to the embodiment of the present invention may be understood by referring to the description of the charging control method, and each processing unit in the electronic device according to the embodiment of the present invention may be implemented by an analog circuit that implements the functions described in the embodiment of the present invention, or may be implemented by running software that executes the functions described in the embodiment of the present invention on an intelligent terminal.
EXAMPLE six
The embodiment of the invention also provides the electronic equipment. As shown in fig. 5, the electronic device has at least a first interface 41 and a second interface 42; the electronic device includes: a rechargeable battery 44 and a controller 43; wherein,
the controller 43 is configured to detect that the first interface 41 is connected to the first power supply device, and detect that the second interface 42 is connected to the second power supply device; obtaining a first output voltage and a first output current of the first power supply device through the first interface 41; obtaining a second output voltage and a second output current of the second power supply device through the second interface 42; also for obtaining an input voltage of the rechargeable battery 44; further for determining a first output power of the first power supply device based on the first output voltage and the first output current; determining a second output power of the second power supply device based on the second output voltage and the second output current; when the first output power is consistent with the second output power, comparing the input voltage with the first output voltage to obtain a first comparison result; comparing the input voltage with the second output voltage to obtain a second comparison result; and when the first comparison result shows that the input voltage is smaller than the first output voltage and the second comparison result shows that the input voltage is greater than the second output voltage, selecting the first power supply device, and establishing a power transmission link with the first power supply device through the first interface 41.
It should be understood by those skilled in the art that the functions of each processing unit in the electronic device according to the embodiment of the present invention may be understood by referring to the description of the charging control method, and each processing unit in the electronic device according to the embodiment of the present invention may be implemented by an analog circuit that implements the functions described in the embodiment of the present invention, or may be implemented by running software that executes the functions described in the embodiment of the present invention on an intelligent terminal.
In the fourth to sixth embodiments of the present invention, the controller 43 in the electronic device may be implemented by a Central Processing Unit (CPU), a Digital Signal Processor (DSP), a Micro Control Unit (MCU), or a Programmable Gate Array (FPGA) in the electronic device in practical application; the first interface 41 and the second interface 42 in the electronic device can be implemented by a communication module (including a basic communication suite, an operating system, a communication module, a standardized interface, a protocol, and the like) in the electronic device in practical application; the rechargeable battery 44 in the electronic device may be implemented by an energy storage battery in the electronic device.
In the several embodiments provided in the present application, it should be understood that the disclosed apparatus and method may be implemented in other ways. The above-described device embodiments are merely illustrative, for example, the division of the unit is only a logical functional division, and there may be other division ways in actual implementation, such as: multiple units or components may be combined, or may be integrated into another system, or some features may be omitted, or not implemented. In addition, the coupling, direct coupling or communication connection between the components shown or discussed may be through some interfaces, and the indirect coupling or communication connection between the devices or units may be electrical, mechanical or other forms.
The units described as separate parts may or may not be physically separate, and parts displayed as units may or may not be physical units, that is, may be located in one place, or may be distributed on a plurality of network units; some or all of the units can be selected according to actual needs to achieve the purpose of the solution of the embodiment.
In addition, all the functional units in the embodiments of the present invention may be integrated into one processing unit, or each unit may be separately regarded as one unit, or two or more units may be integrated into one unit; the integrated unit can be realized in a form of hardware, or in a form of hardware plus a software functional unit.
Those of ordinary skill in the art will understand that: all or part of the steps for implementing the method embodiments may be implemented by hardware related to program instructions, and the program may be stored in a computer readable storage medium, and when executed, the program performs the steps including the method embodiments; and the aforementioned storage medium includes: a mobile storage device, a Read-Only Memory (ROM), a Random Access Memory (RAM), a magnetic disk or an optical disk, and other various media capable of storing program codes.
Alternatively, the integrated unit of the present invention may be stored in a computer-readable storage medium if it is implemented in the form of a software functional module and sold or used as a separate product. Based on such understanding, the technical solutions of the embodiments of the present invention may be essentially implemented or a part contributing to the prior art may be embodied in the form of a software product, which is stored in a storage medium and includes several instructions for causing a computer device (which may be a personal computer, a server, or a network device) to execute all or part of the methods described in the embodiments of the present invention. And the aforementioned storage medium includes: a removable storage device, a ROM, a RAM, a magnetic or optical disk, or various other media that can store program code.
The above description is only for the specific embodiments of the present invention, but the scope of the present invention is not limited thereto, and any person skilled in the art can easily conceive of the changes or substitutions within the technical scope of the present invention, and all the changes or substitutions should be covered within the scope of the present invention. Therefore, the protection scope of the present invention shall be subject to the protection scope of the appended claims.

Claims (8)

1. A charging control method is applied to an electronic device, wherein the electronic device is provided with an electric energy storage unit; characterized in that the method comprises:
the electronic equipment detects that the first interface is connected to the first power supply equipment and detects that the second interface is connected to the second power supply equipment;
obtaining a first output parameter of the first power supply device through the first interface, and obtaining a second output parameter of the second power supply device through the second interface; wherein the first output parameter of the first power supply device comprises: a first output voltage and a first output current of the first power supply device; the second output parameter of the second power supply apparatus includes: a second output voltage and a second output current of the second power supply device;
obtaining input parameters of the electric energy storage unit; wherein the input parameter is an input voltage;
when the first output parameter and the second output parameter meet a preset condition, comparing the input parameter with the first output parameter, and comparing the input parameter with the second output parameter;
selecting the first power supply equipment or the second power supply equipment based on the comparison result, and establishing a power transmission link with the first power supply equipment or the second power supply equipment;
wherein comparing the input parameter with the first output parameter and comparing the input parameter with the second output parameter when the first output parameter and the second output parameter satisfy a preset condition comprises:
when a first output power determined based on the first output voltage and the first output current coincides with a second output power of the second power supply apparatus determined based on the second output voltage and the second output current, the input voltage and the first output voltage are compared to obtain a first comparison result, and the input voltage and the second output voltage are compared to obtain a second comparison result.
2. The method of claim 1, wherein obtaining the first output parameter of the first power sourcing equipment via the first interface comprises:
obtaining a first output voltage and a first output current of the first power supply device through the first interface;
correspondingly, the obtaining of the second output parameter of the second power supply device through the second interface includes:
and obtaining a second output voltage and a second output current of the second power supply equipment through the second interface.
3. The method of claim 2, wherein the first output parameter and the second output parameter satisfy a preset condition, comprising:
determining a first output power of the first power supply device based on the first output voltage and the first output current;
determining a second output power of the second power supply device based on the second output voltage and the second output current;
and when the first output power is consistent with the second output power, determining that the first output parameter and the second output parameter meet a preset condition.
4. The method of claim 1, wherein selecting the first power supply device or the second power supply device based on the comparison comprises:
selecting the first power supply device when the first comparison result and the second comparison result indicate that the input voltage is less than the first output voltage, the input voltage is less than the second output voltage, and a first difference between the input voltage and the first output voltage is less than a second difference between the input voltage and the second output voltage;
and when the first comparison result shows that the input voltage is smaller than the first output voltage and the second comparison result shows that the input voltage is larger than the second output voltage, selecting the first power supply equipment.
5. An electronic device, characterized in that the electronic device has at least a first interface and a second interface; the electronic device includes: a rechargeable battery and a controller; wherein,
the controller is used for detecting that the first interface is connected to the first power supply equipment and detecting that the second interface is connected to the second power supply equipment; obtaining a first output parameter of the first power supply device through the first interface, and obtaining a second output parameter of the second power supply device through the second interface; and is also used for obtaining the input parameters of the rechargeable battery; when the first output parameter and the second output parameter meet a preset condition, comparing the input parameter with the first output parameter, and comparing the input parameter with the second output parameter; selecting the first power supply equipment or the second power supply equipment based on the comparison result, and establishing a power transmission link with the first power supply equipment through the first interface or establishing a power transmission link with the second power supply equipment through the second interface; wherein the first output parameter of the first power supply device comprises: a first output voltage and a first output current of the first power supply device; the second output parameter of the second power supply apparatus includes: a second output voltage and a second output current of the second power supply device; the input parameter is input voltage;
the controller is further configured to compare the input voltage with the first output voltage to obtain a first comparison result, and compare the input voltage with the second output voltage to obtain a second comparison result, when a first output power determined based on the first output voltage and the first output current is identical to a second output power of the second power supply apparatus determined based on the second output voltage and the second output current.
6. The electronic device of claim 5, wherein the controller is configured to obtain a first output voltage and a first output current of the first power supply device via the first interface; and is further configured to obtain a second output voltage and a second output current of the second power supply device through the second interface.
7. The electronic device of claim 6, wherein the controller is configured to determine a first output power of the first power supply device based on the first output voltage and the first output current; determining a second output power of the second power supply device based on the second output voltage and the second output current; and when the first output power is consistent with the second output power, determining that the first output parameter and the second output parameter meet a preset condition.
8. The electronic device of claim 5, wherein the controller is configured to select the first power supply device when the first comparison result and the second comparison result indicate that the input voltage is less than the first output voltage, the input voltage is less than the second output voltage, and a first difference between the input voltage and the first output voltage is less than a second difference between the input voltage and the second output voltage; and when the first comparison result shows that the input voltage is smaller than the first output voltage and the second comparison result shows that the input voltage is larger than the second output voltage, selecting the first power supply equipment.
CN201710188165.XA 2017-03-27 2017-03-27 Charging control method and electronic equipment Active CN106972558B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201710188165.XA CN106972558B (en) 2017-03-27 2017-03-27 Charging control method and electronic equipment

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201710188165.XA CN106972558B (en) 2017-03-27 2017-03-27 Charging control method and electronic equipment

Publications (2)

Publication Number Publication Date
CN106972558A CN106972558A (en) 2017-07-21
CN106972558B true CN106972558B (en) 2019-12-31

Family

ID=59335464

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201710188165.XA Active CN106972558B (en) 2017-03-27 2017-03-27 Charging control method and electronic equipment

Country Status (1)

Country Link
CN (1) CN106972558B (en)

Families Citing this family (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110380469A (en) * 2019-06-28 2019-10-25 联想(北京)有限公司 Electronic equipment and method of supplying power to
CN110380475B (en) * 2019-07-16 2021-08-31 合肥联宝信息技术有限公司 Power supply method and power supply device for electronic equipment
CN116780723B (en) * 2023-08-18 2023-11-28 合肥联宝信息技术有限公司 Power supply control method and system and electronic equipment

Citations (10)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101997323A (en) * 2009-08-05 2011-03-30 通用汽车环球科技运作公司 Charging system with galvanic isolation and multiple operating modes
WO2012167677A1 (en) * 2011-06-09 2012-12-13 中兴通讯股份有限公司 Device and method for communication and charging for external device via usb interface
CN203623840U (en) * 2013-12-02 2014-06-04 陕西理工学院 Multifunctional vehicle power supply for outdoor sports bicycle
CN103904712A (en) * 2012-12-27 2014-07-02 联想(北京)有限公司 Electronic device and power supply method thereof
CN104167793A (en) * 2014-08-19 2014-11-26 上海天奕达电子科技有限公司 Charging system and method of handheld terminal
CN204030645U (en) * 2014-06-12 2014-12-17 惠州市德赛工业发展有限公司 The charging circuit of portable power source
CN204243832U (en) * 2014-12-05 2015-04-01 重庆蓝岸通讯技术有限公司 A kind of charging and output compatible multiplex roles charging circuit
CN105591430A (en) * 2015-12-31 2016-05-18 深圳市华思旭科技有限公司 Intelligent wire-connection control device
CN205544368U (en) * 2016-01-21 2016-08-31 易事特集团股份有限公司 Take two -way current detection circuit's uninterrupted power source
WO2016210157A1 (en) * 2015-06-24 2016-12-29 Apple Inc. Systems and methods for bidirectional two-port battery charging with boost functionality

Patent Citations (10)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101997323A (en) * 2009-08-05 2011-03-30 通用汽车环球科技运作公司 Charging system with galvanic isolation and multiple operating modes
WO2012167677A1 (en) * 2011-06-09 2012-12-13 中兴通讯股份有限公司 Device and method for communication and charging for external device via usb interface
CN103904712A (en) * 2012-12-27 2014-07-02 联想(北京)有限公司 Electronic device and power supply method thereof
CN203623840U (en) * 2013-12-02 2014-06-04 陕西理工学院 Multifunctional vehicle power supply for outdoor sports bicycle
CN204030645U (en) * 2014-06-12 2014-12-17 惠州市德赛工业发展有限公司 The charging circuit of portable power source
CN104167793A (en) * 2014-08-19 2014-11-26 上海天奕达电子科技有限公司 Charging system and method of handheld terminal
CN204243832U (en) * 2014-12-05 2015-04-01 重庆蓝岸通讯技术有限公司 A kind of charging and output compatible multiplex roles charging circuit
WO2016210157A1 (en) * 2015-06-24 2016-12-29 Apple Inc. Systems and methods for bidirectional two-port battery charging with boost functionality
CN105591430A (en) * 2015-12-31 2016-05-18 深圳市华思旭科技有限公司 Intelligent wire-connection control device
CN205544368U (en) * 2016-01-21 2016-08-31 易事特集团股份有限公司 Take two -way current detection circuit's uninterrupted power source

Also Published As

Publication number Publication date
CN106972558A (en) 2017-07-21

Similar Documents

Publication Publication Date Title
US11631981B2 (en) Power adapter, terminal, and method for processing impedance anomalies in charging loop
US10424958B2 (en) Charging method and apparatus for rechargeable battery
US10424954B2 (en) Power adaptor, terminal and charging system
US7489102B2 (en) Battery charger that identifies portable device type and rechargeable battery type and method
US8729867B2 (en) Sink current adaptation based on power supply detection
CN105576727B (en) Method, device and system for quick charging
CN106972558B (en) Charging control method and electronic equipment
CN105576753A (en) Information processing method and electronic equipment
CN110492575A (en) For the quick charging system and method for handheld device, handheld device
CN108496289B (en) Battery charging control method, charging equipment, user terminal equipment and system
CN105048018B (en) The charging method and device of a kind of terminal with data exchanging function
US20180097315A1 (en) Power adapter, terminal device, charging system, and charging method
CN106707194B (en) Rechargeable battery detection method and electronic equipment
US9172269B2 (en) Device and method using a keyboard controller and voltage detection circuitry for battery charging
CN106786959B (en) Charge control method, device and terminal
US10742057B2 (en) Self-loop detection method and apparatus for charging device
CN109148986A (en) A kind of charging method and device
US10481576B2 (en) Method and device for implementing connection control
CN111293748A (en) Method and device for monitoring electric quantity data
CN113507154B (en) Charging method and device, charger and electronic equipment
CN109546705A (en) Terminal device and its method, apparatus of charging and communication
CN113872303A (en) Charging control method and device, electronic equipment and storage medium
US20150303725A1 (en) Charging and discharging system among two portable devices
CN104868509A (en) Control method and external battery
US20240003985A1 (en) Systems and methods for determining electrical characteristics of power supply cable/s and taking one or more actions based on same

Legal Events

Date Code Title Description
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