CN107196372B - Charging method and device - Google Patents

Charging method and device Download PDF

Info

Publication number
CN107196372B
CN107196372B CN201710525727.5A CN201710525727A CN107196372B CN 107196372 B CN107196372 B CN 107196372B CN 201710525727 A CN201710525727 A CN 201710525727A CN 107196372 B CN107196372 B CN 107196372B
Authority
CN
China
Prior art keywords
current value
charging
impedance
input
maximum output
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
CN201710525727.5A
Other languages
Chinese (zh)
Other versions
CN107196372A (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.)
Beijing Xiaomi Mobile Software Co Ltd
Original Assignee
Beijing Xiaomi Mobile Software 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 Beijing Xiaomi Mobile Software Co Ltd filed Critical Beijing Xiaomi Mobile Software Co Ltd
Priority to CN201710525727.5A priority Critical patent/CN107196372B/en
Publication of CN107196372A publication Critical patent/CN107196372A/en
Application granted granted Critical
Publication of CN107196372B publication Critical patent/CN107196372B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • H02J7/0077

Landscapes

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

Abstract

The disclosure relates to a charging method and apparatus. The method comprises the following steps: the maximum output current value and the charging impedance of the charging equipment are obtained, the maximum output power of the charging equipment is obtained according to the maximum output current value and the charging impedance, the maximum safe working current value of the charging equipment is obtained according to the maximum output power, the current value input to the terminal equipment is controlled to be an adjusting current value, so that the charging equipment charges the terminal equipment according to the adjusting current value, the charging impedance is the sum of the impedance of the charging equipment and the impedance of a PCB where a power management chip of the terminal equipment is located, and the adjusting current value is smaller than or equal to the maximum safe working current value. After the maximum output power of the charging equipment is obtained, the maximum safe working current value of the charging equipment is determined according to the maximum output power, and then the terminal equipment is charged according to the current value smaller than or equal to the maximum safe working current value.

Description

Charging method and device
Technical Field
The present disclosure relates to the field of communications technologies, and in particular, to a charging method and apparatus.
Background
With the development of terminal equipment technology, in order to meet various requirements of people, terminal equipment such as mobile phones and tablet computers and the like have more and more integrated functions.
However, as the functions of the terminal devices increase, the power consumption thereof also increases, and it is generally necessary to charge them using a charging device. At present, in order to shorten the charging time, in the related art, after the terminal device is connected to the charging device, the terminal device may obtain the maximum output power of the charging device through a fast charging protocol, and then charge the terminal device according to the maximum output power, so that the charging time of the terminal device may be greatly shortened.
Disclosure of Invention
To overcome the problems in the related art, embodiments of the present disclosure provide a charging method and apparatus. The technical scheme is as follows:
according to a first aspect of the embodiments of the present disclosure, there is provided a charging method, including:
acquiring the maximum output current value of the charging equipment;
acquiring charging impedance, wherein the charging impedance is the sum of the impedance of the charging equipment and the impedance of a PCB where a power management chip of the terminal equipment is located;
acquiring the maximum output power of the charging equipment according to the maximum output current value and the charging impedance;
acquiring the maximum safe working current value of the charging equipment according to the maximum output power;
and controlling the current value input to the terminal equipment to be an adjusting current value so as to enable the charging equipment to charge the terminal equipment according to the first current value, wherein the adjusting current value is less than or equal to the maximum safe working current value.
The technical scheme provided by the embodiment of the disclosure can have the following beneficial effects: the maximum output current value and the charging impedance of the charging equipment are obtained, wherein the charging impedance is the sum of the impedance of the charging equipment and the impedance of a PCB where a power management chip of the terminal equipment is located, the maximum output power of the charging equipment is further obtained according to the maximum output current value and the charging impedance, after the maximum output power is obtained, the maximum safe working current value of the charging equipment is obtained according to the maximum output power, at the moment, the current value input to the terminal equipment is controlled to be an adjusting current value, so that the charging equipment charges the terminal equipment according to the adjusting current value, and the adjusting current value is smaller than or equal to the maximum safe working current value. After the maximum output power of the charging equipment is obtained, in order to ensure that the charging equipment cannot be damaged due to excessive heating, the terminal equipment is not charged according to the maximum output power at the moment, the maximum safe working current value of the charging equipment is determined according to the maximum output power, and the terminal equipment is charged according to the current value smaller than or equal to the maximum safe working current value.
In one embodiment, the obtaining the charging impedance comprises:
adjusting the current value input to the terminal equipment to be a first preset current value;
detecting a first input voltage value input to the power management chip when the current value input to the terminal equipment is the first preset current value;
adjusting the current value input to the terminal equipment to be a second preset current value;
detecting a second input voltage value input to the power management chip when the current value input to the terminal equipment is the second preset current value;
and acquiring the charging impedance according to the first preset current value, the second preset current value, the first input voltage value and the second input voltage value.
The technical scheme provided by the embodiment of the disclosure can have the following beneficial effects: the charging impedance can be more accurately obtained by adjusting the current value input to the terminal equipment twice and obtaining the corresponding input voltage value, so that the maximum output power of the charging equipment which is worthy of being finally obtained is more accurate.
In one embodiment, the obtaining the maximum output current value of the charging device includes:
adjusting the voltage value input to the power management chip to a first preset voltage value through a high-pass quick charge protocol;
acquiring an output current value of the charging equipment when the voltage value input to the power management chip is adjusted to be the first preset voltage value;
and reducing the output current value of the charging equipment by a third preset current value, and taking the reduced output current value of the charging equipment as the maximum output current value.
The technical scheme provided by the embodiment of the disclosure can have the following beneficial effects: the maximum output current value of the charging equipment is obtained through the high-pass Quick-charging protocol, the purpose of the method can be achieved based on the existing Quick charge charger, the charging equipment does not need to be replaced, and the utilization rate of the charging equipment is effectively improved.
In one embodiment, the obtaining of the maximum output power of the charging device according to the maximum output current value and the charging impedance includes:
by Pmax=(U1*Imax+Imax*ImaxR) obtaining a maximum output power of the charging device;
wherein, the PmaxIs the maximum output power of the charging device, U1The first preset voltage value is obtained; said ImaxIs the maximum output current value; and R is the charging impedance.
In one embodiment, the determining a maximum safe operating current value of the charging device according to the maximum output power includes:
according to Iqc2*U2+Iqc2*Iqc2*R=Pmax1Determining a maximum safe working current value of the charging equipment;
wherein, the Iqc2The maximum safe working current value of the charging equipment is obtained; the U is2Outputting a voltage value for a design of the charging device; the R is the charging impedance; the P ismaxThe maximum output power of the charging equipment; delta. the1Is a first predetermined ratio.
The technical scheme provided by the embodiment of the disclosure can have the following beneficial effects: by acquiring the maximum safe working current of the charging equipment, the charging equipment can work under the maximum safe working current, so that the heating value of the charging equipment is reduced, and the charging time is shortened.
In one embodiment, the determining a maximum safe operating current value of the charging device according to the maximum output power includes:
according to Iqc3*Vqc3≤Pmax2Determining a maximum safe working current value of the charging equipment;
wherein, the Vqc3For the current voltage value currently input to the power management chip, Iqc3The maximum safe working current value of the charging equipment corresponding to the current voltage value is PmaxThe maximum output power of the charging equipment; delta. the2Is a second predetermined ratio.
The technical scheme provided by the embodiment of the disclosure can have the following beneficial effects: by acquiring the maximum safe working current of the charging equipment, the charging equipment can work under the maximum safe working current, so that the heating value of the charging equipment is reduced, and the charging time is shortened.
According to a second aspect of the embodiments of the present disclosure, there is provided a charging device including:
the first acquisition module is used for acquiring the maximum output current value of the charging equipment;
the second acquisition module is used for acquiring charging impedance, and the charging impedance is the sum of the impedance of the charging equipment and the impedance of a PCB where a power management chip of the terminal equipment is located;
a third obtaining module, configured to obtain a maximum output power of the charging device according to the maximum output current value obtained by the first obtaining module and the charging impedance obtained by the second obtaining module;
the fourth obtaining module is used for obtaining the maximum safe working current value of the charging equipment according to the maximum output power obtained by the third obtaining module;
and the control module is used for controlling the current value input to the terminal equipment to be an adjusting current value so as to enable the charging equipment to charge the terminal equipment according to the first current value, wherein the adjusting current value is less than or equal to the maximum safe working current value.
In one embodiment, the second obtaining module comprises: the device comprises a first adjusting submodule, a first detecting submodule, a second adjusting submodule, a second detecting submodule and a first obtaining submodule;
the first adjusting submodule is used for adjusting the current value input to the terminal equipment to be a first preset current value;
the first detection submodule is used for detecting a first input voltage value input to the power management chip when the first adjustment submodule adjusts the current value input to the terminal equipment to the first preset current;
the second adjusting submodule is used for adjusting the current value input to the terminal equipment to be a second preset current value;
the second detection submodule is configured to detect a second input voltage value input to the power management chip when the second adjustment submodule adjusts the current value input to the terminal device to the second preset current value;
the first obtaining submodule is configured to obtain the charging impedance according to the first preset current value, the second preset current value, the first input voltage value, and the second input voltage value.
In one embodiment, the first obtaining module comprises: a third adjusting submodule, a second obtaining submodule and a third obtaining submodule;
the third adjusting submodule is used for adjusting the voltage value input to the power management chip to be a first preset voltage value through a high-pass quick-charging protocol;
the second obtaining submodule is used for obtaining an output current value of the charging equipment when the third adjusting submodule adjusts the voltage value input to the power management chip to the first preset voltage value;
the third obtaining submodule is configured to reduce the output current value of the charging device obtained by the second obtaining submodule by a third preset current value, and use the reduced output current value of the charging device as the maximum output current value.
In one embodiment, the third obtaining module comprises: a fourth acquisition submodule;
the fourth obtaining submodule is used for passing through Pmax=(U1*Imax+Imax*ImaxR) obtaining a maximum output power of the charging device;
wherein, the PmaxIs the maximum output power of the charging device, U1The first preset voltage value is obtained; said ImaxIs the maximum output current value; and R is the charging impedance.
In one embodiment, the fourth obtaining module comprises: a fifth obtaining submodule;
the fifth obtaining submodule is used for obtaining the data according to Iqc2*U2+Iqc2*Iqc2*R=Pmax1Determining a maximum safe working current value of the charging equipment;
wherein, the Iqc2To the maximum safety of the charging equipmentMaking a current value; the U is2Outputting a voltage value for a design of the charging device; the R is the charging impedance; the P ismaxThe maximum output power of the charging equipment; delta. the1Is a first predetermined ratio.
In one embodiment, the fourth obtaining module comprises: a sixth obtaining submodule;
the sixth obtaining submodule is used for obtaining the data according to Iqc3*Vqc3≤Pmax2Determining a maximum safe working current value of the charging equipment;
wherein, the Vqc3For the current voltage value currently input to the power management chip, Iqc3The maximum safe working current value of the charging equipment corresponding to the current voltage value is PmaxThe maximum output power of the charging equipment; delta. the2Is a second predetermined ratio.
According to a third aspect of the embodiments of the present disclosure, there is provided a charging device including:
a processor;
a memory for storing processor-executable instructions;
wherein the processor is configured to:
acquiring the maximum output current value of the charging equipment;
acquiring charging impedance, wherein the charging impedance is the sum of the impedance of the charging equipment and the impedance of a PCB where a power management chip of the terminal equipment is located;
acquiring the maximum output power of the charging equipment according to the maximum output current value and the charging impedance;
acquiring the maximum safe working current value of the charging equipment according to the maximum output power;
and controlling the current value input to the terminal equipment to be an adjusting current value so as to enable the charging equipment to charge the terminal equipment according to the first current value, wherein the adjusting current value is less than or equal to the maximum safe working current value.
According to a fourth aspect of embodiments of the present disclosure, there is provided a computer readable storage medium having stored thereon computer instructions which, when executed by a processor, implement the steps of:
acquiring the maximum output current value of the charging equipment;
acquiring charging impedance, wherein the charging impedance is the sum of the impedance of the charging equipment and the impedance of a PCB where a power management chip of the terminal equipment is located;
acquiring the maximum output power of the charging equipment according to the maximum output current value and the charging impedance;
acquiring the maximum safe working current value of the charging equipment according to the maximum output power;
and controlling the current value input to the terminal equipment to be an adjusting current value so as to enable the charging equipment to charge the terminal equipment according to the first current value, wherein the adjusting current value is less than or equal to the maximum safe working current value.
It is to be understood that both the foregoing general description and the following detailed description are exemplary and explanatory only and are not restrictive of the disclosure.
Drawings
The accompanying drawings, which are incorporated in and constitute a part of this specification, illustrate embodiments consistent with the present disclosure and together with the description, serve to explain the principles of the disclosure.
FIG. 1 is a flow chart illustrating a charging method according to an example embodiment.
Fig. 2 is a flowchart illustrating step S102 in the charging method according to an exemplary embodiment.
Fig. 3 is a flowchart illustrating a step S101 in a charging method according to an exemplary embodiment.
Fig. 4 is a flowchart illustrating a charging method according to an exemplary embodiment.
Fig. 5 is a flowchart illustrating a charging method according to an exemplary embodiment.
Fig. 6 is a block diagram illustrating a charging device according to an exemplary embodiment.
Fig. 7 is a block diagram illustrating the second acquisition module 12 in the charging apparatus according to an exemplary embodiment.
Fig. 8 is a block diagram illustrating the first acquisition module 11 in the charging apparatus according to an exemplary embodiment.
Fig. 9 is a block diagram illustrating the third obtaining module 13 in the charging apparatus according to an exemplary embodiment.
Fig. 10 is a block diagram illustrating the fourth obtaining module 14 in the charging apparatus according to an exemplary embodiment.
Fig. 11 is a block diagram of the fourth obtaining module 14 in the charging apparatus according to the second exemplary embodiment.
Fig. 12 is a block diagram illustrating a charging device 80 according to an exemplary embodiment.
Detailed Description
Reference will now be made in detail to the exemplary embodiments, examples of which are illustrated in the accompanying drawings. When the following description refers to the accompanying drawings, like numbers in different drawings represent the same or similar elements unless otherwise indicated. The implementations described in the exemplary embodiments below are not intended to represent all implementations consistent with the present disclosure. Rather, they are merely examples of apparatus and methods consistent with certain aspects of the present disclosure, as detailed in the appended claims.
In the related art, the charging device charges the accessed terminal device in a fixed charging mode, for example, constant voltage charging, at this time, the charging device will operate at a rated output power, but the charging time is often long when the terminal device is charged by the above method.
In order to shorten the charging time and improve the user experience, after the terminal equipment is connected to the charging equipment, the terminal equipment can acquire the maximum output power of the charging equipment through a quick charging protocol, and then the terminal equipment is charged according to the maximum output power, so that the charging time of the terminal equipment can be greatly shortened.
The terminal equipment is charged through the maximum output power, although the charging time can be effectively shortened, the maximum output power is often larger than the rated output power, the rated output power is a power value of the charging equipment working in a safe state, and the heat productivity of the charging equipment is also in an allowable range at the moment.
For example: the high-throughput Quick Charge technology is a fast Charge method widely used at present, and comprises a Quick Charge2.0 technology and a Quick Charge 3.0 technology. The principle is that after the terminal device is inserted into the charging device, the terminal device communicates with the charging device through the level state on the USB D +/USB D-, at the moment, the communication is carried out according to the table 1, and the output of the voltage of the charging device is controlled by controlling the level state of the USB D +/USB D-. Because the high-pass Quick Charge technology can obtain the maximum output power of the charging equipment to the maximum extent, for example, the rated output power of the charging equipment standardized by millet is 18W, but the maximum output power is about 22W, when the high-pass Quick Charge2.0 or 3.0 is used for charging, the output power of the charging equipment can reach the maximum output power of 22W or even higher, at the moment, the charging current of the mobile phone can reach 4A or 5A, thereby greatly shortening the charging time, because the maximum output power of the charging equipment is far greater than the rated output power, the charging equipment can generate heat seriously, and if the charging equipment works in a high-output power state for a long time, potential safety hazards exist.
TABLE 1
Figure GDA0002823575190000091
According to the method, the maximum output current value and the charging impedance of the charging equipment are obtained, wherein the charging impedance is the sum of the impedance of the charging equipment and the impedance of a Printed Circuit Board (PCB) where a power management chip of the terminal equipment is located, the maximum output power of the charging equipment is further obtained according to the maximum output current value and the charging impedance, after the maximum output power is obtained, the maximum safe working current value of the charging equipment is obtained according to the maximum output power, at the moment, the current value input to the terminal equipment is controlled to be an adjusting current value, so that the charging equipment charges the terminal equipment according to the adjusting current value, and the adjusting current value is smaller than or equal to the maximum safe working current value. After the maximum output power of the charging equipment is obtained, in order to ensure that the charging equipment cannot be damaged due to excessive heating, the terminal equipment is not charged according to the maximum output power at the moment, the maximum safe working current value of the charging equipment is determined according to the maximum output power, and the terminal equipment is charged according to the current value smaller than or equal to the maximum safe working current value.
Fig. 1 is a flowchart illustrating a charging method according to an exemplary embodiment, as shown in fig. 1, the method includes the following steps S101-S105:
in step S101, the maximum output current value of the charging device is acquired.
In step S102, a charging impedance is obtained, where the charging impedance is a sum of an impedance of the charging device and an impedance of a PCB where a power management chip of the terminal device is located.
For example, the impedance of the charging device is the impedance of a cable line in the charging device, and the impedance of the PCB where the power management chip of the terminal device is located is the VBUS impedance of the PCB of the terminal device.
In step S103, the maximum output power of the charging device is acquired from the maximum output current value and the charging impedance.
The maximum output power of the charging device obtained at this time is the maximum output capacity of the charging device, and may be greater than the rated output power of the terminal device.
For example, the rated output power of the charging device is 18W, but the designed maximum output power may be up to 22W. When the terminal device uses the charging device, the maximum output power of the charging device that can be obtained may be 22W, and then when the output voltage of the charging device is 9V, the rated output current corresponding to the rated output power 18W is 2A, and the maximum output current corresponding to the maximum output power 22W is 2.44A. Obviously, when the charging device outputs 9V, the terminal device is charged at 2.44A, the charger has no overcurrent or overpower protection, the heat generated when the charging device operates at the maximum output power of 22W is higher than the heat generated when the charging device operates at the rated output power of 18W, and when the charging device operates at the maximum output power of 24W for a long time, the charging device is damaged, and a safety hazard exists.
In step S104, a maximum safe operating current value of the charging device is obtained according to the maximum output power.
Continuing with the above example, although the charging time of the terminal device can be shortened when the charging device operates at the maximum output power 22W, the amount of heat generated is higher than that generated when the charging device operates at the rated output power 18W, and when the charging device operates at the maximum output power 22W for a long time, the charging device may be damaged, which may cause a safety hazard. Therefore, after the maximum output power of the charging device is obtained, the maximum safe operating current of the charging device needs to be determined according to the maximum output power, wherein the maximum safe operating current of the charging device is the maximum output power which can be achieved when the charging device is in safe operation and is multiplied by a preset proportion δ1(e.g., 80%) corresponding to the current.
Continuing with the above example, assuming that when the output voltage of the charging device is 9V, the maximum safe operating current value at that time may be 22W 80%/9V 1.96A, which is less than the rated output current 2A of the charging device. As can be seen from the above analysis, the rated output power of the charging device is 18W, and when the maximum power of the charging device obtained by the terminal device is 22W, the maximum output power is not used for charging, but the maximum safe operating current of 1.96A at 9V is obtained by multiplying a preset ratio (for example, 80%). The 9V/1.96A is used for charging the terminal equipment, so that a large amount of heating of the charging equipment can be avoided, and the safety of the charging equipment is effectively improved. Here, it should be noted that the terminal device cannot obtain the rated output power of the charging device, and can obtain the maximum output power of the charging device only by some method.
In step S105, the current value input to the terminal device is controlled to be an adjustment current value so that the charging device charges the terminal device according to the adjustment current value, wherein the adjustment current value is less than or equal to the maximum safe operating current value.
Because the output current of the charging equipment is limited by the input current of the terminal equipment, after the maximum safe working current value of the charging equipment is obtained, the current value input to the terminal equipment can be limited to be smaller than or equal to the maximum safe working current value, and correspondingly, the output current of the charging equipment is smaller than or equal to the maximum safe working current value, namely, the output power of the charging equipment is smaller than or equal to the rated output power of the charging equipment.
According to the method and the device, the maximum output current value and the charging impedance of the charging equipment are obtained, wherein the charging impedance is the sum of the impedance of the charging equipment and the impedance of a PCB where a power management chip of the terminal equipment is located, the maximum output power of the charging equipment is further obtained according to the maximum output current value and the charging impedance, after the maximum output power is obtained, the maximum safe working current value of the charging equipment is obtained according to the maximum output power, at the moment, the current value input to the terminal equipment is controlled to be an adjusting current value, so that the charging equipment charges the terminal equipment according to the adjusting current value, and the adjusting current value is smaller than or equal to the maximum safe working current value. After the maximum output power of the charging equipment is obtained, in order to ensure that the charging equipment cannot be damaged due to excessive heating, the terminal equipment is not charged according to the maximum output power at the moment, the maximum safe working current value of the charging equipment is determined according to the maximum output power, and the terminal equipment is charged according to the current value smaller than or equal to the maximum safe working current value.
In an implementation manner of the present disclosure, as shown in fig. 2, the step S102 may be implemented as the following steps S1021 to S1025:
in step S1021, the current value input to the terminal device is adjusted to a first preset current value.
In step S1022, when the current value input to the terminal device is detected to be the first preset current value, the first input voltage value input to the power management chip is detected.
In step S1023, the current value input to the terminal device is adjusted to a second preset current value.
In step S1024, when the current value input to the terminal device is detected to be a second preset current value, a second input voltage value input to the power management chip is detected.
In step S1025, a charging impedance is obtained according to the first preset current value, the second preset current value, the first input voltage value and the second input voltage value.
The terminal device can calculate the charging impedance by two current detections.
Firstly, adjusting a first preset current value input to the terminal device to be 0A, and when the current value input to the terminal device is 0A, detecting that a first input voltage value of VBUS input to the power management chip is V by a power management chip of the terminal device1(ii) a Then, adjusting a second preset current value input to the terminal equipment to be IDA, when the current value input to the terminal equipment is IDWhen A is detected, the power management chip of the terminal device detects that the second input voltage value of the VBUS input to the power management chip is V2(ii) a Then, at this time, the charging impedance
Figure GDA0002823575190000121
The technical scheme provided by the embodiment of the disclosure can have the following beneficial effects: the charging impedance can be more accurately obtained by adjusting the current value input to the terminal equipment twice and obtaining the corresponding input voltage value, so that the maximum output power of the charging equipment which is worthy of being finally obtained is more accurate.
In an implementation manner, as shown in fig. 3, the step S101 may be implemented as steps S1011 to S1013:
in step S1011, the voltage value input to the power management chip is adjusted to a first preset voltage value by a high-pass fast charge protocol;
in step S1012, an output current value of the charging device when the voltage value input to the power management chip is adjusted to the first preset voltage value is acquired.
In step S1013, the output current value of the charging device is reduced by a third preset current value, and the reduced output current value of the charging device is taken as the maximum output current value.
When the charging device is a Quick charge charger, that is, when the terminal device is charged by using the Quick charge charger, firstly, according to a high-pass Quick charge protocol, the terminal device and the charger communicate with each other through a D +/D-protocol to obtain that the type of the charger is HVDCP, at this time, the output voltage of VBUS is the designed output voltage value (for example, 9V) of the charger, and simultaneously, according to the high-pass Quick charge protocol, the terminal device gradually increases the pulling current on the VBUS to obtain the output of the VBUS, that is, the voltage value input to the power management chip is detected, and when the voltage value input to the power management chip is adjusted to a first preset voltage value (for example, VBUS collapse is 7.8V), the output current value of the charging device at this time (for example, 500mA) is recorded. Furthermore, the output current value of the charging device is reduced by a third preset current value (for example, 100mA), and the reduced output current value is taken as a maximum output current value Imax(e.g., 500mA-100 mA-400 mA).
The technical scheme provided by the embodiment of the disclosure can have the following beneficial effects: the maximum output current value of the charging equipment is obtained through the high-pass Quick-charging protocol, the purpose of the method can be achieved based on the existing Quick charge charger, the charging equipment does not need to be replaced, and the utilization rate of the charging equipment is effectively improved.
In one implementation, obtaining the maximum output power of the charging device according to the maximum output current value and the charging impedance includes:
by Pmax=(U1*Imax+Imax*ImaxR) obtaining a maximum output power of the charging device;
wherein, PmaxTo chargeMaximum output power, U, of an electrical device1Is a first preset voltage value; i ismaxIs the maximum output current value; and R is charging impedance.
In one implementation manner, when the charging device is a QC2.0 charger, the determining the maximum safe operating current of the charging device according to the maximum output power includes:
according to Iqc2*U2+Iqc2*Iqc2*R=Pmax1Determining the maximum safe working current of the charging equipment;
wherein, Iqc2The maximum safe working current of the charging equipment; u shape2Outputting a voltage value for the design of the charging device; r is a charging impedance; pmaxThe maximum output power of the charging equipment; delta1Is a first predetermined ratio.
Generally, when the output power of the charging device reaches a first preset proportion (for example, 85% -90%) of the maximum output power of the charging device, the charging device is in a relatively safe state, and the maximum safe operating current I of the charging device can be obtained by calculating through the formulaqc2Namely, the maximum working current corresponding to the QC2.0 charger.
The technical scheme provided by the embodiment of the disclosure can have the following beneficial effects: by acquiring the maximum safe working current of the charging equipment, the charging equipment can work under the maximum safe working current, so that the heating value of the charging equipment is reduced, and the charging time is shortened.
In another implementation manner, when the charging device is a QC3.0 charger, the determining the maximum safe operating current of the charging device according to the maximum output power includes:
according to Iqc3*Vqc3≤Pmax2Determining the maximum safe working current of the charging equipment;
wherein, Vqc3For the current voltage value currently input to the power management chip, Iqc3The maximum safe working current, P, of the charging equipment corresponding to the current voltage valuemaxThe maximum output power of the charging equipment; delta2Is a second predetermined ratio.
When the charging device is a QC3.0 charger, the output power of the charging device is generally allowed to reach a second preset proportion (for example, 80% -85%) of the maximum output power of the charging device, which is a relatively safe state of the charging device, and since the VBUS voltage is continuously regulated, but the maximum power of the VBUS voltage satisfies the above formula, the maximum safe operating current I of the charging device can be calculated by the above formulaqc3Namely, the maximum working current corresponding to the QC3.0 charger.
The technical scheme provided by the embodiment of the disclosure can have the following beneficial effects: by acquiring the maximum safe working current of the charging equipment, the charging equipment can work under the maximum safe working current, so that the heating value of the charging equipment is reduced, and the charging time is shortened.
The implementation is described in detail below by way of several embodiments.
Fig. 4 is a flowchart illustrating a charging method according to an exemplary embodiment, where an execution subject is a mobile phone, as shown in fig. 4, the method includes the following steps:
in step S201: when a Quick charge2.0 charger is used for charging, the mobile phone end and the charger are in protocol communication through D +/D-, the type of the obtained charger is HVDCP, and VBUS outputs 9V at the moment, namely the designed output voltage value of the charger is 9V.
In step S202: when protocol communication is carried out, the mobile phone end gradually increases current to draw through the VBUS, the output of the VBUS is detected, and when the VBUS collapse reaches 7.8V, namely the voltage value of a power management chip input into the mobile phone is 7.8V, the output current value of the charger at the moment is recorded.
In step S203: the mobile phone reduces the output current value of the charger by a third preset current value of 100mA, namely the third preset current value is used as the maximum output current value I of the chargermax
In step S204: the mobile phone calculates the charging impedance through two current detections, namely, calculates the sum R of the cable line impedance of the charger and the VBUS impedance of the mobile phone PCB.
(1) And (3) detecting impedance: when the first preset current value input to the mobile phone is adjusted to be 0A by the mobile phone, the power management chip in the mobile phone detects that the first input voltage value input to the power management chip is V1That is, VBUS has a voltage of V1
(2) The mobile phone adjusts a second preset current value input to the mobile phone to be IDThen, the power management chip in the mobile phone detects that the second input voltage value input to the power management chip is V2That is, VBUS has a voltage of V2
(3) Charging impedance
Figure GDA0002823575190000151
In step S205: maximum output power P of mobile phone calculating chargermax
Pmax=(7.8*Imax+Imax*Imax*R)
In step S206: generally, the charger is operated in a state that the output power is 85% -90% of the maximum output power, namely a relatively safe state, and the maximum safe operating current I can be obtained by calculating according to the following formulaqc2Namely, the maximum safe working current corresponding to the QC2.0 charger.
Iqc2*9+Iqc2*Iqc2*R=Pmax*0.85
I can be obtained by formula calculationqc2
In step S207: when the mobile phone is adjusted to use the QC2.0 charger, the current value input to the mobile phone is Iqc2Therefore, the QC2.0 charger can work in a safe and stable state.
Fig. 5 is a flowchart of a charging method according to a third exemplary embodiment, where an execution subject is a mobile phone, and as shown in fig. 5, the method includes the following steps:
in step S301: when a Quick charge2.0 charger is used for charging, the mobile phone end and the charger are in protocol communication through D +/D-, the type of the obtained charger is HVDCP, and VBUS outputs 9V at the moment, namely the designed output voltage value of the charger is 9V.
In step S302: when protocol communication is carried out, the mobile phone end gradually increases current to draw through the VBUS, the output of the VBUS is detected, and when the VBUS collapse reaches 7.8V, namely the voltage value of a power management chip input into the mobile phone is 7.8V, the output current value of the charger at the moment is recorded.
In step S303: the mobile phone reduces the output current value of the charger by a third preset current value of 100mA, namely the third preset current value is used as the maximum output current value I of the chargermax
In step S304: the mobile phone calculates the charging impedance through two current detections, namely, calculates the sum R of the cable line impedance of the charger and the VBUS impedance of the mobile phone PCB.
(1) And (3) detecting impedance: when the first preset current value input to the mobile phone is adjusted to be 0A by the mobile phone, the power management chip in the mobile phone detects that the first input voltage value input to the power management chip is V1That is, VBUS has a voltage of V1
(2) The mobile phone adjusts a second preset current value input to the mobile phone to be IDThen, the power management chip in the mobile phone detects that the second input voltage value input to the power management chip is V2That is, VBUS has a voltage of V2
(3) Charging impedance
Figure GDA0002823575190000161
In step S305: maximum output power P of mobile phone calculating chargermax
Pmax=(7.8*Imax+Imax*Imax*R)
In step S306: generally, the charger is enabled to work in a state that the output power is 85% -90% of the maximum output power, namely a relatively safe state, and the maximum safe working current I can be obtained by calculating through the following formula because the VBUS voltage is continuously regulated, but the maximum power of the VBUS voltage meets the following formulaqc3I.e. the maximum safety work corresponding to the QC3.0 chargerAnd then the current is applied.
Iqc3*Vqc3≤Pmax*0.85
Wherein, Vqc3For the current voltage value (i.e., V) input to the power management chipqc3Current VBUS operating voltage), Iqc3And the maximum safe working current value of the charging equipment corresponding to the current voltage value is obtained.
I can be obtained by the calculation of the formulaqc3
In step S307: when the mobile phone is adjusted to use the QC3.0 charger, the current value input to the mobile phone is Iqc3Therefore, the QC3.0 charger can work in a safe and stable state.
The following are embodiments of the disclosed apparatus that may be used to perform embodiments of the disclosed methods.
Fig. 6 is a block diagram illustrating a charging apparatus that may be implemented as part or all of an electronic device via software, hardware, or a combination of both, according to an example embodiment. As shown in fig. 6, the charging device includes:
the first obtaining module 11 is configured to obtain a maximum output current value of the charging device;
a second obtaining module 12, configured to obtain a charging impedance, where the charging impedance is a sum of an impedance of the charging device and an impedance of a PCB where a power management chip of the terminal device is located;
a third obtaining module 13, configured to obtain a maximum output power of the charging device according to the maximum output current value obtained by the first obtaining module 11 and the charging impedance obtained by the second obtaining module 12;
a fourth obtaining module 14, configured to obtain a maximum safe operating current value of the charging device according to the maximum output power obtained by the third obtaining module 13;
and the control module 15 is configured to control a current value input to the terminal device to be an adjustment current value, so that the charging device charges the terminal device according to the first current value, where the adjustment current value is smaller than or equal to the maximum safe working current value.
In one embodiment, as shown in fig. 7, the second obtaining module 12 includes: a first adjustment submodule 121, a first detection submodule 122, a second adjustment submodule 123, a second detection submodule 124 and a first obtaining submodule 125;
the first adjusting submodule 121 is configured to adjust a current value input to the terminal device to a first preset current value;
the first detecting submodule 122 is configured to detect a first input voltage value input to the power management chip when the first adjusting submodule 121 adjusts the current value input to the terminal device to the first preset current;
the second adjusting submodule 123 is configured to adjust the current value input to the terminal device to a second preset current value;
the second detecting submodule 124 is configured to detect a second input voltage value input to the power management chip when the second adjusting submodule 123 adjusts the current value input to the terminal device to the second preset current value;
the first obtaining submodule 125 is configured to obtain the charging impedance according to the first preset current value, the second preset current value, the first input voltage value, and the second input voltage value.
In one embodiment, as shown in fig. 8, the first obtaining module 11 includes: a third adjusting submodule 111, a second obtaining submodule 112 and a third obtaining submodule 113;
the third adjusting submodule 111 is configured to adjust the voltage value input to the power management chip to a first preset voltage value through a high-pass fast charging protocol;
the second obtaining submodule 112 is configured to obtain an output current value of the charging device when the third adjusting submodule 111 adjusts the voltage value input to the power management chip to the first preset voltage value;
the third obtaining submodule 113 is configured to reduce the output current value of the charging device obtained by the second obtaining submodule 112 by a third preset current value, and use the reduced output current value of the charging device as the maximum output current value.
In one embodiment, as shown in fig. 9, the third obtaining module 13 includes: a fourth acquisition submodule 131;
the fourth obtaining submodule 131 is configured to pass through Pmax=(U1*Imax+Imax*ImaxR) obtaining a maximum output power of the charging device;
wherein, the PmaxIs the maximum output power of the charging device, U1The first preset voltage value is obtained; said ImaxIs the maximum output current value; and R is the charging impedance.
In one embodiment, as shown in fig. 10, the fourth obtaining module 14 includes: a fifth obtaining sub-module 141;
the fifth obtaining submodule 141 is configured to obtain the result according to Iqc2*U2+Iqc2*Iqc2*R=Pmax1Determining a maximum safe working current value of the charging equipment;
wherein, the Iqc2The maximum safe working current value of the charging equipment is obtained; the U is2Outputting a voltage value for a design of the charging device; the R is the charging impedance; the P ismaxThe maximum output power of the charging equipment; delta. the1Is a first predetermined ratio.
In one embodiment, as shown in fig. 11, the fourth obtaining module 14 includes: a sixth acquisition sub-module 142;
the sixth obtaining sub-module 142, configured to obtain the data according to Iqc3*Vqc3≤Pmax2Determining a maximum safe working current value of the charging equipment;
wherein, the Vqc3For the current voltage value currently input to the power management chip, Iqc3The maximum safe working current value of the charging equipment corresponding to the current voltage value is PmaxMaximum output power of the charging equipment(ii) a Delta. the2Is a second predetermined ratio.
According to a third aspect of the embodiments of the present disclosure, there is provided a charging device including:
a processor;
a memory for storing processor-executable instructions;
wherein the processor is configured to:
acquiring the maximum output current value of the charging equipment;
acquiring charging impedance, wherein the charging impedance is the sum of the impedance of the charging equipment and the impedance of a PCB where a power management chip of the terminal equipment is located;
acquiring the maximum output power of the charging equipment according to the maximum output current value and the charging impedance;
acquiring the maximum safe working current value of the charging equipment according to the maximum output power;
and controlling the current value input to the terminal equipment to be an adjusting current value so as to enable the charging equipment to charge the terminal equipment according to the first current value, wherein the adjusting current value is less than or equal to the maximum safe working current value.
The processor may be further configured to:
the obtaining the charging impedance comprises:
adjusting the current value input to the terminal equipment to be a first preset current value;
detecting a first input voltage value input to the power management chip when the current value input to the terminal equipment is the first preset current value;
adjusting the current value input to the terminal equipment to be a second preset current value;
detecting a second input voltage value input to the power management chip when the current value input to the terminal equipment is the second preset current value;
and acquiring the charging impedance according to the first preset current value, the second preset current value, the first input voltage value and the second input voltage value.
The acquiring of the maximum output current value of the charging device includes:
adjusting the voltage value input to the power management chip to a first preset voltage value through a high-pass quick charge protocol;
acquiring an output current value of the charging equipment when the voltage value input to the power management chip is adjusted to be the first preset voltage value;
and reducing the output current value of the charging equipment by a third preset current value, and taking the reduced output current value of the charging equipment as the maximum output current value.
The obtaining of the maximum output power of the charging device according to the maximum output current value and the charging impedance includes:
by Pmax=(U1*Imax+Imax*ImaxR) obtaining a maximum output power of the charging device;
wherein, the PmaxIs the maximum output power of the charging device, U1The first preset voltage value is obtained; said ImaxIs the maximum output current value; and R is the charging impedance.
The determining the maximum safe working current value of the charging device according to the maximum output power includes:
according to Iqc2*U2+Iqc2*Iqc2*R=Pmax1Determining a maximum safe working current value of the charging equipment;
wherein, the Iqc2The maximum safe working current value of the charging equipment is obtained; the U is2Outputting a voltage value for a design of the charging device; the R is the charging impedance; the P ismaxThe maximum output power of the charging equipment; delta. the1Is a first predetermined ratio.
The determining the maximum safe working current value of the charging device according to the maximum output power includes:
according to Iqc3*Vqc3≤Pmax2Determining a maximum safe working current value of the charging equipment;
wherein, the Vqc3For the current voltage value currently input to the power management chip, Iqc3The maximum safe working current value of the charging equipment corresponding to the current voltage value is PmaxThe maximum output power of the charging equipment; delta. the2Is a second predetermined ratio.
With regard to the apparatus in the above-described embodiment, the specific manner in which each module performs the operation has been described in detail in the embodiment related to the method, and will not be elaborated here.
Fig. 12 is a block diagram illustrating a charging apparatus 80 adapted for use with a terminal device according to an exemplary embodiment. For example, the apparatus 80 may be a mobile phone, a computer, a digital broadcast terminal, a messaging device, a game console, a tablet device, a medical device, an exercise device, a personal digital assistant, and the like.
The apparatus 80 may include one or more of the following components: processing component 802, memory 804, power component 806, multimedia component 808, audio component 810, input/output (I/O) interface 812, sensor component 814, and communication component 816.
The processing component 802 generally controls overall operation of the device 80, such as operations associated with display, telephone calls, data communications, camera operations, and recording operations. The processing components 802 may include one or more processors 820 to execute instructions to perform all or a portion of the steps of the methods described above. Further, the processing component 802 can include one or more modules that facilitate interaction between the processing component 802 and other components. For example, the processing component 802 can include a multimedia module to facilitate interaction between the multimedia component 808 and the processing component 802.
The memory 804 is configured to store various types of data to support operations at the apparatus 80. Examples of such data include instructions for any application or method operating on the device 80, contact data, phonebook data, messages, pictures, videos, and so forth. The memory 804 may be implemented by any type or combination of volatile or non-volatile memory devices such as Static Random Access Memory (SRAM), electrically erasable programmable read-only memory (EEPROM), erasable programmable read-only memory (EPROM), programmable read-only memory (PROM), read-only memory (ROM), magnetic memory, flash memory, magnetic or optical disks.
The power supply component 806 provides power to the various components of the device 80. The power components 806 may include a power management system, one or more power supplies, and other components associated with generating, managing, and distributing power for the device 80.
The multimedia component 808 includes a screen that provides an output interface between the device 80 and the user. In some embodiments, the screen may include a Liquid Crystal Display (LCD) and a Touch Panel (TP). If the screen includes a touch panel, the screen may be implemented as a touch screen to receive an input signal from a user. The touch panel includes one or more touch sensors to sense touch, slide, and gestures on the touch panel. The touch sensor may not only sense the boundary of a touch or slide action, but also detect the duration and pressure associated with the touch or slide operation. In some embodiments, the multimedia component 808 includes a front facing camera and/or a rear facing camera. The front camera and/or the rear camera may receive external multimedia data when the device 80 is in an operating mode, such as a shooting mode or a video mode. Each front camera and rear camera may be a fixed optical lens system or have a focal length and optical zoom capability.
The audio component 810 is configured to output and/or input audio signals. For example, the audio component 810 includes a Microphone (MIC) configured to receive external audio signals when the apparatus 80 is in an operating mode, such as a call mode, a recording mode, and a voice recognition mode. The received audio signals may further be stored in the memory 804 or transmitted via the communication component 816. In some embodiments, audio component 810 also includes a speaker for outputting audio signals.
The I/O interface 812 provides an interface between the processing component 802 and peripheral interface modules, which may be keyboards, click wheels, buttons, etc. These buttons may include, but are not limited to: a home button, a volume button, a start button, and a lock button.
The sensor assembly 814 includes one or more sensors for providing various aspects of state assessment for the device 80. For example, the sensor assembly 814 may detect the open/closed status of the device 80, the relative positioning of the components, such as a display and keypad of the device 80, the change in position of the device 80 or a component of the device 80, the presence or absence of user contact with the device 80, the orientation or acceleration/deceleration of the device 80, and the change in temperature of the device 80. Sensor assembly 814 may include a proximity sensor configured to detect the presence of a nearby object without any physical contact. The sensor assembly 814 may also include a light sensor, such as a CMOS or CCD image sensor, for use in imaging applications. In some embodiments, the sensor assembly 814 may also include an acceleration sensor, a gyroscope sensor, a magnetic sensor, a pressure sensor, or a temperature sensor.
The communication component 816 is configured to facilitate wired or wireless communication between the apparatus 80 and other devices. The device 80 may access a wireless network based on a communication standard, such as WiFi, 2G or 3G, or a combination thereof. In an exemplary embodiment, the communication component 816 receives a broadcast signal or broadcast related information from an external broadcast management system via a broadcast channel. In an exemplary embodiment, the communication component 816 further includes a Near Field Communication (NFC) module to facilitate short-range communications. For example, the NFC module may be implemented based on Radio Frequency Identification (RFID) technology, infrared data association (IrDA) technology, Ultra Wideband (UWB) technology, Bluetooth (BT) technology, and other technologies.
In an exemplary embodiment, the apparatus 80 may be implemented by one or more Application Specific Integrated Circuits (ASICs), Digital Signal Processors (DSPs), Digital Signal Processing Devices (DSPDs), Programmable Logic Devices (PLDs), Field Programmable Gate Arrays (FPGAs), controllers, micro-controllers, microprocessors or other electronic components for performing the above-described methods.
In an exemplary embodiment, a non-transitory computer-readable storage medium comprising instructions, such as the memory 804 comprising instructions, executable by the processor 820 of the apparatus 80 to perform the above-described method is also provided. For example, the non-transitory computer readable storage medium may be a ROM, a Random Access Memory (RAM), a CD-ROM, a magnetic tape, a floppy disk, an optical data storage device, and the like.
A non-transitory computer readable storage medium, wherein instructions, when executed by a processor of an apparatus 80, enable the apparatus 80 to perform the charging method described above, the method comprising:
acquiring the maximum output current value of the charging equipment;
acquiring charging impedance, wherein the charging impedance is the sum of the impedance of the charging equipment and the impedance of a PCB where a power management chip of the terminal equipment is located;
acquiring the maximum output power of the charging equipment according to the maximum output current value and the charging impedance;
acquiring the maximum safe working current value of the charging equipment according to the maximum output power;
and controlling the current value input to the terminal equipment to be an adjusting current value so as to enable the charging equipment to charge the terminal equipment according to the first current value, wherein the adjusting current value is less than or equal to the maximum safe working current value.
The obtaining the charging impedance comprises:
adjusting the current value input to the terminal equipment to be a first preset current value;
detecting a first input voltage value input to the power management chip when the current value input to the terminal equipment is the first preset current value;
adjusting the current value input to the terminal equipment to be a second preset current value;
detecting a second input voltage value input to the power management chip when the current value input to the terminal equipment is the second preset current value;
and acquiring the charging impedance according to the first preset current value, the second preset current value, the first input voltage value and the second input voltage value.
The acquiring of the maximum output current value of the charging device includes:
adjusting the voltage value input to the power management chip to a first preset voltage value through a high-pass quick charge protocol;
acquiring an output current value of the charging equipment when the voltage value input to the power management chip is adjusted to be the first preset voltage value;
and reducing the output current value of the charging equipment by a third preset current value, and taking the reduced output current value of the charging equipment as the maximum output current value.
The obtaining of the maximum output power of the charging device according to the maximum output current value and the charging impedance includes:
by Pmax=(U1*Imax+Imax*ImaxR) obtaining a maximum output power of the charging device;
wherein, the PmaxIs the maximum output power of the charging device, U1The first preset voltage value is obtained; said ImaxIs the maximum output current value; and R is the charging impedance.
The determining the maximum safe working current value of the charging device according to the maximum output power includes:
according to Iqc2*U2+Iqc2*Iqc2*R=Pmax1Determining a maximum safe working current value of the charging equipment;
wherein, the Iqc2The maximum safe working current value of the charging equipment is obtained; the U is2Outputting a voltage value for a design of the charging device; the R is the charging impedance; the P ismaxThe maximum output power of the charging equipment; delta. the1Is a first predetermined ratio.
The determining the maximum safe working current value of the charging device according to the maximum output power includes:
according to Iqc3*Vqc3≤Pmax2Determining a maximum safe working current value of the charging equipment;
wherein, the Vqc3For the current voltage value currently input to the power management chip, Iqc3The maximum safe working current value of the charging equipment corresponding to the current voltage value is PmaxThe maximum output power of the charging equipment; delta. the2Is a second predetermined ratio.
Other embodiments of the disclosure will be apparent to those skilled in the art from consideration of the specification and practice of the disclosure disclosed herein. This application is intended to cover any variations, uses, or adaptations of the disclosure following, in general, the principles of the disclosure and including such departures from the present disclosure as come within known or customary practice within the art to which the disclosure pertains. It is intended that the specification and examples be considered as exemplary only, with a true scope and spirit of the disclosure being indicated by the following claims.
It will be understood that the present disclosure is not limited to the precise arrangements described above and shown in the drawings and that various modifications and changes may be made without departing from the scope thereof. The scope of the present disclosure is limited only by the appended claims.

Claims (12)

1. A method of charging, comprising:
acquiring the maximum output current value of the charging equipment;
acquiring charging impedance, wherein the charging impedance is the sum of the impedance of the charging equipment and the impedance of a Printed Circuit Board (PCB) where a power management chip of the terminal equipment is located;
acquiring the maximum output power of the charging equipment according to the maximum output current value and the charging impedance;
acquiring the maximum safe working current value of the charging equipment according to the maximum output power;
controlling a current value input to the terminal equipment to be an adjusting current value so that the charging equipment charges the terminal equipment according to the adjusting current value, wherein the adjusting current value is smaller than or equal to the maximum safe working current value;
the obtaining the charging impedance comprises:
adjusting the current value input to the terminal equipment to be a first preset current value;
detecting a first input voltage value input to the power management chip when the current value input to the terminal equipment is the first preset current value;
adjusting the current value input to the terminal equipment to be a second preset current value;
detecting a second input voltage value input to the power management chip when the current value input to the terminal equipment is the second preset current value;
acquiring the charging impedance according to the first preset current value, the second preset current value, the first input voltage value and the second input voltage value;
wherein the first preset current value is 0A; the obtaining the charging impedance according to the first preset current value, the second preset current value, the first input voltage value, and the second input voltage value includes:
by passing
Figure FDA0002823575180000011
Acquiring the charging impedance;
wherein R is the charging impedance, and V1Is the first input voltage value, IDFor a second predetermined current value, said V2The value 0 is the first preset current value, and is the second input voltage value.
2. The method of claim 1, wherein obtaining the maximum output current value of the charging device comprises:
adjusting the voltage value input to the power management chip to a first preset voltage value through a high-pass quick charge protocol;
acquiring an output current value of the charging equipment when the voltage value input to the power management chip is adjusted to be the first preset voltage value;
and reducing the output current value of the charging equipment by a third preset current value, and taking the reduced output current value of the charging equipment as the maximum output current value.
3. The method of claim 2, wherein the obtaining the maximum output power of the charging device from the maximum output current value and the charging impedance comprises:
by Pmax=(U1*Imax+Imax*ImaxR) obtaining a maximum output power of the charging device;
wherein, the PmaxIs the maximum output power of the charging device, U1The first preset voltage value is obtained; said ImaxIs the maximum output current value; and R is the charging impedance.
4. The method of claim 1, wherein said determining a maximum safe operating current value for the charging device from the maximum output power comprises:
according to Iqc2*U2+Iqc2*Iqc2*R=Pmax1Determining a maximum safe working current value of the charging equipment;
wherein, the Iqc2The maximum safe working current value of the charging equipment is obtained; the U is2Outputting a voltage value for a design of the charging device; the R is the charging impedance; the P ismaxThe maximum output power of the charging equipment; delta. the1Is a first predetermined ratio.
5. The method of claim 1, wherein said determining a maximum safe operating current value for the charging device from the maximum output power comprises:
according to Iqc3*Vqc3≤Pmax2Determining a maximum safe working current value of the charging equipment;
wherein, the Vqc3For the current voltage value currently input to the power management chip, Iqc3The maximum safe working current value of the charging equipment corresponding to the current voltage value is PmaxThe maximum output power of the charging equipment; delta. the2Is a second predetermined ratio.
6. A charging device, comprising:
the first acquisition module is used for acquiring the maximum output current value of the charging equipment;
the second acquisition module is used for acquiring charging impedance, and the charging impedance is the sum of the impedance of the charging equipment and the impedance of a PCB where a power management chip of the terminal equipment is located;
a third obtaining module, configured to obtain a maximum output power of the charging device according to the maximum output current value obtained by the first obtaining module and the charging impedance obtained by the second obtaining module;
the fourth obtaining module is used for obtaining the maximum safe working current value of the charging equipment according to the maximum output power obtained by the third obtaining module;
the control module is used for controlling a current value input to the terminal equipment to be an adjusting current value so as to enable the charging equipment to charge the terminal equipment according to the adjusting current value, wherein the adjusting current value is smaller than or equal to the maximum safe working current value;
the second acquisition module includes: the device comprises a first adjusting submodule, a first detecting submodule, a second adjusting submodule, a second detecting submodule and a first obtaining submodule;
the first adjusting submodule is used for adjusting the current value input to the terminal equipment to be a first preset current value;
the first detection submodule is used for detecting a first input voltage value input to the power management chip when the first adjustment submodule adjusts the current value input to the terminal equipment to the first preset current;
the second adjusting submodule is used for adjusting the current value input to the terminal equipment to be a second preset current value;
the second detection submodule is configured to detect a second input voltage value input to the power management chip when the second adjustment submodule adjusts the current value input to the terminal device to the second preset current value;
the first obtaining submodule is used for obtaining the charging impedance according to the first preset current value, the second preset current value, the first input voltage value and the second input voltage value;
wherein the first preset current value is 0A; the first obtaining sub-module is further configured to:
by passing
Figure FDA0002823575180000041
Acquiring the charging impedance;
wherein R is the charging impedance, and V1Is the first input voltage value, IDFor a second predetermined current value, said V2The value 0 is the first preset current value, and is the second input voltage value.
7. The apparatus of claim 6, wherein the first obtaining module comprises: a third adjusting submodule, a second obtaining submodule and a third obtaining submodule;
the third adjusting submodule is used for adjusting the voltage value input to the power management chip to be a first preset voltage value through a high-pass quick-charging protocol;
the second obtaining submodule is used for obtaining an output current value of the charging equipment when the third adjusting submodule adjusts the voltage value input to the power management chip to the first preset voltage value;
the third obtaining submodule is configured to reduce the output current value of the charging device obtained by the second obtaining submodule by a third preset current value, and use the reduced output current value of the charging device as the maximum output current value.
8. The apparatus of claim 7, wherein the third obtaining module comprises: a fourth acquisition submodule;
the fourth obtaining submodule is used for passing through Pmax=(U1*Imax+Imax*ImaxR) obtaining a maximum output power of the charging device;
wherein, the PmaxIs the maximum output power of the charging device, U1The first preset voltage value is obtained; said ImaxIs the maximum output current value; and R is the charging impedance.
9. The apparatus of claim 6, wherein the fourth obtaining module comprises: a fifth obtaining submodule;
the fifth obtaining submodule is used for obtaining the data according to Iqc2*U2+Iqc2*Iqc2*R=Pmax1Determining a maximum safe working current value of the charging equipment;
wherein, the Iqc2The maximum safe working current value of the charging equipment is obtained; the U is2Outputting a voltage value for a design of the charging device; the R is the charging impedance; the P ismaxThe maximum output power of the charging equipment; delta. the1Is a first predetermined ratio.
10. The apparatus of claim 6, wherein the fourth obtaining module comprises: a sixth obtaining submodule;
the sixth obtaining submodule is used for obtaining the data according to Iqc3*Vqc3≤Pmax2Determining a maximum safe working current value of the charging equipment;
wherein, the Vqc3For the current voltage value currently input to the power management chip, Iqc3The maximum safe working current value of the charging equipment corresponding to the current voltage value is PmaxThe maximum output power of the charging equipment; delta. the2Is a second predetermined ratio.
11. A charging device, comprising:
a processor;
a memory for storing processor-executable instructions;
wherein the processor is configured to:
acquiring the maximum output current value of the charging equipment;
acquiring charging impedance, wherein the charging impedance is the sum of the impedance of the charging equipment and the impedance of a PCB where a power management chip of the terminal equipment is located;
acquiring the maximum output power of the charging equipment according to the maximum output current value and the charging impedance;
acquiring the maximum safe working current value of the charging equipment according to the maximum output power;
controlling a current value input to the terminal equipment to be an adjusting current value so that the charging equipment charges the terminal equipment according to the adjusting current value, wherein the adjusting current value is smaller than or equal to the maximum safe working current value;
the obtaining the charging impedance comprises:
adjusting the current value input to the terminal equipment to be a first preset current value;
detecting a first input voltage value input to the power management chip when the current value input to the terminal equipment is the first preset current value;
adjusting the current value input to the terminal equipment to be a second preset current value;
detecting a second input voltage value input to the power management chip when the current value input to the terminal equipment is the second preset current value;
acquiring the charging impedance according to the first preset current value, the second preset current value, the first input voltage value and the second input voltage value;
wherein the first preset current value is 0A; the obtaining the charging impedance according to the first preset current value, the second preset current value, the first input voltage value, and the second input voltage value includes:
by passing
Figure FDA0002823575180000061
Acquiring the charging impedance;
wherein R is the charging impedance, and V1Is the first input voltage value, IDFor a second predetermined current value, said V2The value 0 is the first preset current value, and is the second input voltage value.
12. A computer readable storage medium having computer instructions stored thereon which, when executed by a processor, perform the steps of:
acquiring the maximum output current value of the charging equipment;
acquiring charging impedance, wherein the charging impedance is the sum of the impedance of the charging equipment and the impedance of a PCB where a power management chip of the terminal equipment is located;
acquiring the maximum output power of the charging equipment according to the maximum output current value and the charging impedance;
acquiring the maximum safe working current value of the charging equipment according to the maximum output power;
controlling a current value input to the terminal equipment to be an adjusting current value so that the charging equipment charges the terminal equipment according to the adjusting current value, wherein the adjusting current value is smaller than or equal to the maximum safe working current value;
the obtaining the charging impedance comprises:
adjusting the current value input to the terminal equipment to be a first preset current value;
detecting a first input voltage value input to the power management chip when the current value input to the terminal equipment is the first preset current value;
adjusting the current value input to the terminal equipment to be a second preset current value;
detecting a second input voltage value input to the power management chip when the current value input to the terminal equipment is the second preset current value;
acquiring the charging impedance according to the first preset current value, the second preset current value, the first input voltage value and the second input voltage value;
wherein the first preset current value is 0A; the obtaining the charging impedance according to the first preset current value, the second preset current value, the first input voltage value, and the second input voltage value includes:
by passing
Figure FDA0002823575180000071
Acquiring the charging impedance;
wherein R is the charging impedance, and V1Is the first input voltage value, IDFor a second predetermined current value, said V2The value 0 is the first preset current value, and is the second input voltage value.
CN201710525727.5A 2017-06-30 2017-06-30 Charging method and device Active CN107196372B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201710525727.5A CN107196372B (en) 2017-06-30 2017-06-30 Charging method and device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201710525727.5A CN107196372B (en) 2017-06-30 2017-06-30 Charging method and device

Publications (2)

Publication Number Publication Date
CN107196372A CN107196372A (en) 2017-09-22
CN107196372B true CN107196372B (en) 2021-03-09

Family

ID=59880739

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201710525727.5A Active CN107196372B (en) 2017-06-30 2017-06-30 Charging method and device

Country Status (1)

Country Link
CN (1) CN107196372B (en)

Families Citing this family (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111316523A (en) * 2017-10-19 2020-06-19 深圳市柔宇科技有限公司 Cable through-current capacity detection method and electronic equipment
CN108711905B (en) * 2018-05-31 2021-04-27 北京小米移动软件有限公司 Output voltage control method and device of charging equipment
CN110018728B (en) * 2019-03-29 2021-05-18 联想(北京)有限公司 Electronic equipment
CN110018731B (en) * 2019-03-29 2021-08-17 联想(北京)有限公司 Control method and electronic equipment
CN112421700A (en) * 2019-08-22 2021-02-26 中兴通讯股份有限公司 Charging method, terminal and computer readable storage medium
CN112350393B (en) * 2020-06-28 2021-11-02 中兴通讯股份有限公司 Charging method, terminal and storage medium
CN113098085B (en) * 2021-03-31 2023-05-02 联想(北京)有限公司 Charging processing method and electronic equipment
CN114221400B (en) * 2021-11-04 2022-11-04 荣耀终端有限公司 Impedance detection method of charging cable, electronic equipment and power supply equipment

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN202759260U (en) * 2012-07-03 2013-02-27 中兴通讯股份有限公司 Charging circuit and terminal device
JP2015056954A (en) * 2013-09-11 2015-03-23 シャープ株式会社 Charging circuit
CN105790603A (en) * 2014-12-22 2016-07-20 华硕电脑股份有限公司 Power supply control method and portable electronic device applying same
CN105914807A (en) * 2016-03-21 2016-08-31 联想(北京)有限公司 Method for reducing heating of charging cable, and electronic device

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN202759260U (en) * 2012-07-03 2013-02-27 中兴通讯股份有限公司 Charging circuit and terminal device
JP2015056954A (en) * 2013-09-11 2015-03-23 シャープ株式会社 Charging circuit
CN105790603A (en) * 2014-12-22 2016-07-20 华硕电脑股份有限公司 Power supply control method and portable electronic device applying same
CN105914807A (en) * 2016-03-21 2016-08-31 联想(北京)有限公司 Method for reducing heating of charging cable, and electronic device

Also Published As

Publication number Publication date
CN107196372A (en) 2017-09-22

Similar Documents

Publication Publication Date Title
CN107196372B (en) Charging method and device
US10205332B2 (en) Efficient two way charging method using master and slave devices
CN108365657B (en) Charging current control method, device and storage medium
US20170093182A1 (en) Method and device for charging management
CN107482710B (en) Wireless charging method and terminal
CN108110854B (en) Charging method, charging device and computer-readable storage medium
CN111261081B (en) Screen display method and device
CN107734613B (en) Power management method and device
CN107940689B (en) Fan rotating speed control method and device, fan and storage medium
US11205906B2 (en) Charging processing method, terminal device and storage medium
CN113725954B (en) Charging method, device, equipment and storage medium
CN110941321A (en) Power supply method and device for electronic equipment and intelligent equipment
CN109788530B (en) Device and method for adjusting radiation power and electronic equipment
CN107733021B (en) Control method and device of electronic equipment
CN115912571A (en) Wireless charging method and device, electronic equipment and storage medium
CN109450032B (en) Wireless charging processing method, device and equipment
CN111130222B (en) Wireless charging power supply circuit and method and electronic equipment
CN108092986B (en) Data transmission method and device of mobile terminal
CN112421702A (en) Lithium battery charging method and device
WO2018053724A1 (en) Mobile terminal, charging method, and charging system
CN113138036B (en) Temperature detection method and device and electronic equipment
CN112448054B (en) Charging method and device of mobile terminal, terminal and storage medium
EP4170856A1 (en) Charging method and device, terminal device and computer readable storage medium
CN114498792A (en) Charging method, device, equipment and storage medium
CN116365616A (en) Shutdown voltage adjustment method, device, equipment and 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