CN112311035A - Charging control method, charging control device and readable storage medium - Google Patents

Charging control method, charging control device and readable storage medium Download PDF

Info

Publication number
CN112311035A
CN112311035A CN201910703045.8A CN201910703045A CN112311035A CN 112311035 A CN112311035 A CN 112311035A CN 201910703045 A CN201910703045 A CN 201910703045A CN 112311035 A CN112311035 A CN 112311035A
Authority
CN
China
Prior art keywords
charging
voltage
current
charger
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.)
Granted
Application number
CN201910703045.8A
Other languages
Chinese (zh)
Other versions
CN112311035B (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 CN201910703045.8A priority Critical patent/CN112311035B/en
Publication of CN112311035A publication Critical patent/CN112311035A/en
Application granted granted Critical
Publication of CN112311035B publication Critical patent/CN112311035B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

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

Abstract

The present disclosure relates to a charging control method, a charging control apparatus, and a readable storage medium, the charging control method including: acquiring a first voltage at an output interface of a charger; the output interface of the charger and the input interface of the mobile terminal are connected with charging wires; sending a first control instruction to the charger; the first control instruction is used for controlling the charger to gradually increase the output first charging current from the initial charging current value by a preset step value; acquiring a second voltage at an input interface of the mobile terminal aiming at each first charging current; calculating the impedance of the charging line according to the first voltage, the second voltage and the first charging current; and sending a charging control command according to the impedance of the charging wire.

Description

Charging control method, charging control device and readable storage medium
Technical Field
The present disclosure relates to the field of charging technologies, and in particular, to a charging control method, a charging control apparatus, and a readable storage medium.
Background
With the continuous innovation of charging technology, many high-power fast charging schemes have appeared in order to realize fast charging of mobile terminals. The high-power quick charging scheme brings better charging experience to consumers and also brings potential safety hazards. For example, damage to the mobile terminal, the charging cord, or the charger is caused.
Disclosure of Invention
To overcome the problems in the related art, the present disclosure provides a charge control method, a charge control device, and a readable storage medium.
According to a first aspect of embodiments of the present disclosure, there is provided a charge control method, the method including:
acquiring a first voltage at an output interface of a charger; the output interface of the charger and the input interface of the mobile terminal are connected with charging wires;
sending a first control instruction to the charger; the first control instruction is used for controlling the charger to gradually increase the output first charging current from the initial charging current value by a preset step value;
acquiring a second voltage at an input interface of the mobile terminal aiming at each first charging current;
calculating an impedance of the charging line according to the first voltage, the second voltage and the first charging current;
and sending a charging control command according to the impedance of the charging wire.
According to a second aspect of the embodiments of the present disclosure, there is provided a charge control method, the method including:
transmitting the output first voltage to the mobile terminal; the first voltage is the voltage at an output interface of a charger, and charging wires are connected to the output interface of the charger and an input interface of the mobile terminal;
based on a first control instruction of the mobile terminal, gradually increasing the output first charging current from the initial charging current value by a preset step value; each first charging current is used for the mobile terminal to calculate the impedance of the charging line;
charging the mobile terminal based on a charging control instruction sent by the mobile terminal; wherein the charging control command is determined according to the impedance of the charging line.
According to a third aspect of the embodiments of the present disclosure, there is provided a charge control device, the device including:
the first voltage acquisition module is used for acquiring a first voltage at an output interface of the charger; the output interface of the charger and the input interface of the mobile terminal are connected with charging wires;
the first control module is used for sending a first control instruction to the charger; the first control instruction is used for controlling the charger to gradually increase the output first charging current from the initial charging current value by a preset step value;
the first voltage obtaining module is further configured to obtain, for each of the first charging currents, a second voltage at an input interface of the mobile terminal;
the first calculation module is used for calculating the impedance of the charging wire according to the first voltage, the second voltage and the first charging current;
the first control module is further configured to send a charging control instruction according to the impedance of the charging line.
According to a fourth aspect of the embodiments of the present disclosure, there is provided a charge control device, the device including:
the voltage output module is used for sending the output first voltage to the mobile terminal; the first voltage is the voltage at an output line interface of a charger, and charging lines are connected to the output interface of the charger and an input interface of the mobile terminal;
the current output module is used for gradually increasing the output first charging current from the initial charging current value by a preset step value; each first charging current is used for the mobile terminal to calculate the impedance of the charging line;
the second control module is used for charging the mobile terminal based on a charging control instruction sent by the mobile terminal; wherein the charging control command is determined according to the impedance of the charging line.
According to a fifth aspect of the embodiments of the present disclosure, there is provided a charge control device including:
a processor;
a memory for storing processor-executable instructions;
wherein the processor is configured to:
acquiring a first voltage at an output interface of the charger; the output interface of the charger and the input interface of the mobile terminal are connected with charging wires;
sending a first control instruction to the charger; the first control instruction is used for controlling the charger to gradually increase the output first charging current from the initial charging current value by a preset step value; wherein the first charging current is less than or equal to a first preset current threshold;
acquiring a second voltage at an input interface of the mobile terminal aiming at each first charging current;
calculating an impedance of the charging line according to the first voltage, the second voltage and the first charging current;
and sending a charging control command according to the impedance of the charging wire.
According to a sixth aspect of the embodiments of the present disclosure, there is provided a charge control device including:
a processor;
a memory for storing processor-executable instructions;
wherein the processor is configured to:
transmitting the output first voltage to the mobile terminal; the first voltage is the voltage at an output interface of a charger, and charging wires are connected to the output interface of the charger and an input interface of the mobile terminal;
based on a first control instruction of the mobile terminal, gradually increasing the output first charging current from the initial charging current value by a preset step value; each first charging current is used for the mobile terminal to calculate the impedance of the charging line;
charging the mobile terminal based on a charging control instruction sent by the mobile terminal; wherein the charging control command is determined according to the impedance of the charging line.
According to a seventh aspect of the present disclosure, there is provided a non-transitory computer readable storage medium having instructions therein, which when executed by a processor of a charging control apparatus, enable a mobile terminal to perform a charging method, the method comprising:
acquiring a first voltage at an output interface of the charger; the output interface of the charger and the input interface of the mobile terminal are connected with charging wires;
sending a first control instruction to the charger; the first control instruction is used for controlling the charger to gradually increase the output first charging current from the initial charging current value by a preset step value; wherein the first charging current is less than or equal to a first preset current threshold;
acquiring a second voltage at an input interface of the mobile terminal aiming at each first charging current;
calculating an impedance of the charging line according to the first voltage, the second voltage and the first charging current;
and sending a charging control command according to the impedance of the charging wire.
According to an eighth aspect of the present disclosure, there is provided a non-transitory computer readable storage medium having instructions therein, which when executed by a processor of a charging control device, enable a charger to perform a charging method, the method comprising:
transmitting the output first voltage to the mobile terminal; the first voltage is the voltage at an output interface of a charger, and charging wires are connected to the output interface of the charger and an input interface of the mobile terminal;
based on a first control instruction of the mobile terminal, gradually increasing the output first charging current from the initial charging current value by a preset step value; each first charging current is used for the mobile terminal to calculate the impedance of the charging line;
charging the mobile terminal based on a charging control instruction sent by the mobile terminal; wherein the charging control command is determined according to the impedance of the charging line.
The technical scheme provided by the embodiment of the disclosure can have the following beneficial effects:
compared with the method for detecting the impedance of the charging line in the process of outputting stable charging current, and then selecting the charging strategy, the impedance of the charging line is detected in the process of gradually increasing the output current of the charger from the initial charging current value, and on one hand, the impedance can be accurately detected according to a plurality of first charging currents, so that the accuracy of impedance calculation is improved, the accuracy of selection of the charging strategy is improved, and the charging safety is ensured. On the other hand, before the impedance detection with the charging wire arrived output stable charging current in advance, so, can directly provide stable charging current according to the impedance of the charging wire that has detected, reduced because the too big risk that leads to charging wire, charger or mobile terminal damage of stable charging current.
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 invention and together with the description, serve to explain the principles of the invention.
FIG. 1 is a schematic diagram illustrating a charge control method according to an exemplary embodiment;
FIG. 2 is a flow chart illustrating a charge control method according to an exemplary embodiment;
FIG. 3 is a flow chart illustrating another charge control method according to an exemplary embodiment;
FIG. 4 is a flow chart illustrating yet another charge control method according to an exemplary embodiment;
FIG. 5 is a block diagram one of a charge control device according to an exemplary embodiment;
fig. 6 is a block diagram two of a charge control device according to an exemplary embodiment;
fig. 7 is a block diagram three showing a charge control device according to an exemplary embodiment;
fig. 8 is a block diagram four illustrating a charge control device according to an exemplary embodiment;
fig. 9 is a block diagram five illustrating a charge control device according to an exemplary embodiment;
fig. 10 is a block diagram six of a charge control device according to an exemplary embodiment;
fig. 11 is a block diagram seven illustrating a charge control device 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 embodiments described in the following exemplary embodiments do not represent all embodiments consistent with the present invention. Rather, they are merely examples of apparatus and methods consistent with certain aspects of the invention, as detailed in the appended claims.
With the innovation of the charging chip technology, a high-power charging scheme continuously appears, and different charging experiences are brought. At the same time, safety issues are also introduced. Due to the superiority of the charging scheme and the non-standard property of the impedance of the current charging line, when a high-power charger is used for charging, if the charging lines with different impedances are introduced, the charging experience is reduced, and the charging time is prolonged; secondly, the charger may not work properly, and even more, the mobile phone side or the charger side may be damaged.
Fig. 1 is a schematic diagram of a charging control method according to an exemplary embodiment. The charger 501 is connected with a power management chip 503 in the mobile terminal through a charging wire 506, the power management chip 503 is connected with a battery 502 in the mobile terminal, an interface 504 is an output interface of the charger, an interface 505 is an input interface of the mobile terminal, the charging wire 506 is connected into the charger 501 through the interface 504, and the charging wire 506 is connected into the power management chip 503 of the mobile terminal through the interface 505.
The power management chip 503 includes a module for performing charge protection and voltage collection, and a switch control module. The module for performing charging protection and voltage acquisition is configured to determine whether to activate the impedance detection function, and obtain a first voltage V1 at the interface 504 after activating the impedance detection function, and obtain a second voltage V2 at the interface 505 when outputting the first charging current I.
Fig. 2 is a flowchart illustrating a charging control method applied to a mobile terminal according to an exemplary embodiment, the method including the steps of:
s101: and carrying out charge protocol handshake with the charger.
In this embodiment, after the charging line is connected between the output interface of the charger and the input interface of the mobile terminal, the mobile terminal and the charger perform handshaking of a charging protocol. The charging protocol may include: battery charging protocol 1.2(BC1.2), fast charging protocol 2.0(QC2.0), fast charging protocol 3.0(QC3.0), power transfer protocol (PD protocol), or proprietary protocol, etc.
When the handshake of the mobile terminal and the charger is unsuccessful, the method comprises the following steps: the charger does not charge the mobile terminal. For example, the charger does not output current.
S102: and after the charging protocol is successfully handshake, judging whether to start an impedance detection function according to the successfully handshake charging protocol.
In S102, it may include:
judging whether the charging protocol with successful handshaking belongs to a preset charging protocol or not;
when the charging protocol with successful handshaking belongs to a preset charging protocol, determining to start an impedance detection function; and when the charging protocol with successful handshaking does not belong to the preset charging protocol, determining not to start the impedance detection function.
Here, the preset charging protocol may include: a protocol that allows charging with a charging current greater than a first current threshold. Wherein the first current threshold may be 4A.
When the ability that overflows of charging wire is under 3A, when charging current carries out high-power charging according to the impedance of current charging wire, the impedance of charging wire is less to the charging effect influence. However, when the current reaches 5A or more, in order to ensure the charging effect and the charging safety during high-power charging, the impedance requirement on the charging line is very high, and the impedance of the charging line needs to be within a preset impedance range (for example, the impedance of the charging line needs to be less than 100 milliohms).
Since the PD protocol or the proprietary protocol supports a charging capability above charging line 3A, the charging line overcurrent capability of other charging protocols is substantially below 3A. At this time, the preset charging protocol may be a PD protocol or a proprietary protocol.
And when the mobile terminal determines that the charging protocol with successful handshaking is not the preset charging protocol, the mobile terminal sends a control instruction to the charger to control the charger to charge the mobile terminal. At this time, in consideration of safety, the output current of the charger is less than or equal to the first current threshold. In particular, the first current threshold may be determined according to a charging protocol or performance decision of the charging line. For example, when the charging protocol is a proprietary protocol, the first current threshold may be 4A.
When the charging protocol with successful handshaking is judged to be the preset charging protocol, for example, the charging protocol with successful handshaking is a PD protocol or a proprietary protocol, the mobile terminal determines to activate the function of detecting the impedance of the impedance line, and then selects a charging framework and a charging strategy according to the impedance of the charging line.
S103: when the impedance detection function is determined to be started, acquiring a first voltage at an output interface of the charger; and the output interface of the charger and the input interface of the mobile terminal are connected with charging wires.
In S103, referring to fig. 1, the first voltage may be a voltage at the output interface 504 of the charger 501 collected when the output current of the charger 501 is small (for example, the output current of the charger 501 is 3mA), which is denoted as V1. Here, since the output current of 3mA is small compared to the first charging current of the charger, it does not affect the impedance calculation for the charging line and thus can be ignored.
S104: sending a first control instruction to the charger; the first control instruction is used for controlling the charger to gradually increase the output first charging current from the initial charging current value by a preset step value.
In S104, the preset step value and the initial charging current may be determined according to a charging protocol. For example, the preset step value may be 200mA and the initial charging current may be 100 mA. At this time, S104 may include: and sending a first control instruction to the charger to control the charger to charge the mobile terminal in a trickle charging mode.
Specifically, when the mobile terminal is a mobile phone, the mobile phone communicates with the charger through a configuration channel pin (CC pin), and sends a first control instruction to the charger, so as to control the charger to output energy to the mobile phone according to a standard that the output voltage is 9V and the initial charging current value is 100 mA; and then, the first charging current is gradually increased by taking 200mA as a preset step value every 200ms at intervals of 200ms as a time period until the first charging current is increased to a preset stable charging current. Here, the preset stable charging current may be determined according to a charging protocol or performance of a charging wire. For example, when the charging protocol is a PD protocol or a proprietary protocol, the preset stable charging current may be 2A.
Compared with the method for detecting the impedance of the charging line in the process of outputting stable charging current, the charging strategy is selected, the first charging current output by the charger is gradually increased from the initial charging current value by controlling the charger according to the preset step value, so that the mobile terminal can detect the impedance of the charging line in the stage of gradually increasing the first charging current.
On the other hand, before the impedance detection with the charging wire arrived output stable charging current in advance, mobile terminal can directly provide stable charging current according to the impedance of the charging wire that has detected, has reduced because the too big risk that leads to charging wire, charger or mobile terminal damage of stable charging current.
S105: and acquiring a second voltage at the input interface of the mobile terminal aiming at each first charging current.
Referring to fig. 1, the second voltage may be a voltage at the interface 505, denoted as V2. At this time, the output current of the charger 501 is the first charging current I. The first charging current I is input to the interface 505 through the interface 504, the charging line 506, and then the mobile terminal is charged.
S106: and calculating the impedance of the charging wire according to the first voltage, the second voltage and the first charging current.
Since the first voltage V1 is the voltage at the output interface 504 of the charger 501 collected when the output current of the charger 501 is small (for example, the output current of the charger 501 is 3mA), the small output current (3mA) is small compared with the first charging current of the charger 501, and does not affect the impedance calculation on the charging line, and can be ignored. Therefore, according to ohm's law (resistance-voltage/current), the impedance R of the charging line is (V1-V2)/I.
In S106, it may include:
and calculating a first impedance of the charging line in each first charging current state according to each first charging current and the corresponding first voltage and second voltage respectively, and calculating a variance of the plurality of first impedances.
In the embodiment of the present disclosure, according to a comparison result between the obtained variance and a preset variance threshold, the following two ways of obtaining impedance are set:
the first method is as follows:
and if the variance is smaller than or equal to a preset variance threshold value, determining the average value of the plurality of first impedances as the impedance of the charging line.
In the embodiment, in the process of gradually increasing the first charging current, the first impedance of the charging line is calculated according to each charging current and the corresponding first voltage and second voltage, and when the variance of the first impedances is smaller than or equal to the preset variance threshold, the average value of the first impedances is determined to be the impedance of the charging line, so that the accuracy of calculation of the impedance of the charging line is improved, the charging effect is guaranteed, and the user experience is improved.
The second method comprises the following steps:
if the variance is larger than the preset variance threshold, outputting a first state prompt prompting that the charging process is abnormal, and sending a sixth control instruction to the charger; and the sixth control instruction is used for controlling the charger to stop outputting the current.
In calculating the impedance of the charging line, the reason why the variance is greater than the preset variance threshold may include: the charging current and the output voltage output by the charger are unstable due to environmental factors such as lightning and magnetic fields or other human factors, so that the output current of the charger is larger than the failure current, and the charging wire, the charger or the mobile terminal is damaged. If the charging is continued, the probability of damage to the charging wire, the charger or the mobile terminal increases. Here, the failure current may be: and a current that causes damage to a charging wire, a charger, or a mobile power supply.
Outputting a first state prompt for indicating that an abnormality exists in the charging process, wherein the first state prompt may include at least one or a combination of the following:
1) a module for outputting sound prompt through a loudspeaker and the like outputs prompt sound for prompting that abnormity exists in the charging process;
2) a module for outputting vibration prompt through a vibrator and the like outputs vibration prompting that abnormal vibration exists in the charging process;
3) and outputting character information for prompting the abnormal charging process through a display module for outputting character prompt through a display screen and the like.
This implementation is through when the variance is greater than the preset variance threshold value, and this first state of output is reminded and is controlled the charger and stop output current, has guaranteed charging wire, charger and mobile terminal's security, has improved the intelligence of charging process, is favorable to the user in time to discover charging wire or mobile terminal in the abnormity has appeared, has guaranteed the security of charging.
When the impedance calculation process of the charging line is abnormal, the method comprises the following steps:
outputting a second state prompt prompting that the charging line or the mobile terminal is abnormal, and sending a seventh control instruction to the charger; and the seventh control instruction is used for controlling the charger to output a fourth charging current, and the fourth charging current is smaller than or equal to the first current threshold.
The concrete representation of the abnormity of the impedance calculation process of the charging wire may comprise the following steps: the calculated impedance of the charging wire is a negative value, or the impedance of the charging wire cannot be calculated, and the like.
Causes of abnormalities in the impedance calculation process of the charging line may include: a hardware failure of the mobile terminal or the charging cable occurs, for example, the mobile terminal is damaged by a module for calculating impedance.
This embodiment is through when impedance calculation process is unusual, exports this second state and reminds to control the charger output and be less than or equal to the fourth charging current of first current threshold value, at the in-process of guaranteeing charging safety, increased the intellectuality of charging process, be favorable to the user in time to discover charging line or mobile terminal in the unusual, improved user experience.
S107: and sending a charging control command according to the impedance of the charging wire.
Specifically, in the stage of gradually increasing the first charging current of the charger in a trickle charging manner, when the mobile terminal fails to calculate the impedance of the charging line, the first charging current of the charger may be increased to a preset stable charging current at the maximum, and then the mobile terminal waits for sending an instruction, and the charger may determine whether to continue to increase the charging current according to the instruction sent by the mobile terminal. Here, the preset stable charging current may be set according to the performance of the charging line or the charging protocol. For example, when the charging protocol is a PD protocol or a proprietary protocol, the preset stable charging current may be 2A.
When the mobile terminal calculates the impedance of the charging line in the process of gradually increasing the first charging current of the charger in a trickle charging mode, the mobile terminal sends a charging control instruction to the charger according to the impedance.
When the impedance of the charging line is within the preset impedance range, S106 may specifically include:
sending a second control instruction to the charger; and the second control instruction is used for controlling the charger to increase the output voltage and outputting a second charging current, and the second charging current is determined according to the first preset current which has a corresponding relation with the output voltage. The predetermined impedance range may be: 0 to 100 milliohms.
The second charging current may be a maximum charging current that the charging wire can transmit while ensuring that the charger, the charging wire, and the mobile terminal are functional. The first preset current may be a current value preset in the charging protocol.
When the impedance of the charging line is within the preset impedance range, the mobile terminal sends a second control instruction to control the charger to release the charging limitation, the output voltage is increased, a second charging current is output, the charging is carried out by a high-voltage charging strategy, and the battery is charged in a series connection mode.
Here, the high voltage charging strategy may be: the output voltage of the charger is 20V, the output current is 5A, and the output voltage and the output current are converted into the charging voltage of 10V and the charging current of 10A through the amplifying circuit to charge the battery. At this time, the amplifying circuit may be a charge pump (charge pump) circuit, and the first preset current may be 10A. The conversion rate of energy can reach more than 97% by adopting the charge pump technology. In addition, the battery adopts a high-voltage series connection mode, so that the energy can be utilized to charge the battery to the maximum extent, and the charging efficiency is improved.
This embodiment is when the impedance of charging wire is in presetting the impedance range, through the output voltage of control increase charger, adjusts output current to output second charging current, under the circumstances of guaranteeing to charge safety, make charging current maximize, improve charge efficiency.
When the impedance of the charging line is not within the preset impedance range, S106 may specifically include:
and sending a third control instruction to the charger, wherein the third control instruction is used for controlling the charger to output a third charging current, the third charging current is less than or equal to the first current threshold, and the third charging current is less than the second charging current.
When the impedance of the charging line is not in the preset impedance range, the low-voltage charging architecture can be started, and the mobile phone is charged through the low-impedance controllable metal-oxide-semiconductor (MOS) architecture according to a low-voltage charging strategy.
Specifically, when the impedance of the charging line is not within the preset impedance range, S106 may include: and the mobile terminal sends a third control instruction to the charger, controls the output current of the charger to be limited within 4A, keeps the output voltage of the charger unchanged and keeps the output voltage of 9V to 10V. At this time, the mobile terminal starts a low-voltage charging strategy for controlling the low-impedance MOS architecture to charge the battery of the mobile terminal, wherein the battery of the mobile terminal is in a series connection mode.
The energy conversion efficiency of the low-voltage charging strategy is higher and can reach 99%. The energy conversion mode at this time is as follows: the charger outputs 9V to 10V voltage and maximum 4A output current; the voltage received by the battery is 9V to 10V, and the current is 4A at most.
According to the embodiment, when the impedance of the charging line is not within the preset impedance range, the charger is controlled to output the third charging current which is smaller than or equal to the first current threshold value, so that the mobile terminal is charged, and the charging safety is ensured.
To sum up, this embodiment selects the charge strategy according to the impedance of charging wire in the trickle charge stage, has reduced in the heavy current charging process, because charging wire impedance industry is not unified and the probability that the experience of charging is relatively poor, the charging effect is not good appears, has improved charging safety and user experience. In some embodiments, the method further comprises:
acquiring the battery voltage of a battery in the mobile terminal;
when the voltage of the battery reaches the preset saturation voltage after being charged from the lower voltage than the preset saturation voltage, sending a fourth control instruction to the charger; and the fourth control instruction is used for controlling the charger to reduce the output current.
In the charging process, due to the fact that impedance exists inside the battery, under the condition that the charging current of the battery is large, the increasing speed of the voltage of the battery is fast, and the voltage of the battery is enabled to be rapidly increased to the preset saturation voltage. At this time, because the charging line has impedance, the voltage drop at the two ends of the charging line is large, so that the input voltage for charging the battery is smaller than the voltage of the battery, and the battery cannot be continuously charged although the battery does not actually reach a charging saturation state. Here, the preset saturation voltage may be determined according to a charging protocol or a rated voltage of the battery. For example, when the battery rated voltage is 10V, the preset saturation voltage may be set to 8.8V.
After the battery voltage reaches the preset saturation voltage, the output current of the charger is reduced, so that the voltage drop at two ends of the charging wire is reduced, the voltage at the input interface of the mobile terminal is improved, the input voltage for charging the battery is larger than the battery voltage, and the battery can be continuously charged.
This embodiment is through charging at the battery, when making battery voltage rise to predetermineeing saturation voltage, through the output current who reduces the charger for the voltage drop at charging wire both ends reduces, has improved the voltage at mobile terminal input kneck, and then makes the input voltage who charges for the battery be greater than battery voltage, guarantees to continue to charge to the battery, has improved the charging effect and has charged experience.
And when the voltage of the battery reaches the preset saturation voltage again, judging the output current of the charger and the first current threshold value. And when the output current of the charger is larger than the first current threshold, the mobile terminal sends a fourth control instruction to the charger again for controlling the charger to reduce the output current. And circulating the steps until the output current of the charger is reduced to the first current threshold value.
When the output current of the charger decreases to equal the first current threshold, the method may further comprise:
sending a fifth control instruction to the charger; and the fifth control instruction is used for controlling the charger to reduce the output voltage and keep outputting the output current.
And when the output current of the charger is reduced to be equal to the first current threshold, the mobile terminal outputs a fifth control instruction so that the charger is switched to the low-voltage charging mode of the controllable low-impedance and MOS architecture.
In this embodiment, when the output current of the charger is decreased to be equal to the first current threshold, the output voltage is decreased, so that the heating value of the charging line is reduced, the energy loss is reduced, and the charging efficiency is improved.
To sum up, compare in the charging line impedance and detect at the in-process of the stable charging current of output, and then select the charging strategy, the charging control method that this disclosure provided detects the charging line impedance at the in-process of the charger output current of the gradual increase from initial charging current value to confirm the charging strategy according to the impedance that detects, on the one hand, can carry out the accurate detection of impedance according to a plurality of first charging currents, thereby improved the accuracy of impedance calculation, and then improved the accuracy of charging strategy selection, guarantee the security of charging. On the other hand, before the impedance detection with the charging wire arrived output stable charging current in advance, so, can directly provide stable charging current according to the impedance of the charging wire that has detected, reduced because the too big risk that leads to charging wire, charger or mobile terminal damage of stable charging current.
Fig. 3 is a schematic flowchart of a charging method applied to a charger according to an exemplary embodiment, and the method includes the following steps:
s201: and carrying out charging protocol handshake with the mobile terminal.
In this embodiment, the charging protocol may include: battery charging protocol 1.2(BC1.2), fast charging protocol 2.0(QC2.0), fast charging protocol 3.0(QC3.0), power transfer protocol (PD protocol), or proprietary protocol, etc.
S202: when the charging protocol is successfully handshake-jointed, the output first voltage is sent to the mobile terminal; the first voltage is the voltage at the output interface of the charger, and the output interface of the charger and the input interface of the mobile terminal are connected with charging wires.
S203: based on a first control instruction of the mobile terminal, gradually increasing the output first charging current from the initial charging current value by a preset step value; and each first charging current is used for calculating the impedance of the charging wire by the mobile terminal.
S204: charging the mobile terminal based on a charging control instruction sent by the mobile terminal; wherein the charging control command is determined according to the impedance of the charging line.
When the impedance of the charging line is within the preset impedance range, S204 may include:
increasing the output voltage and outputting a second charging current based on a second control instruction sent by the mobile terminal; the second charging current is determined according to the first preset current corresponding to the output voltage.
The predetermined impedance range may be: 0 to 100 milliohms.
This embodiment is when the impedance of charging wire when predetermineeing the impedance within range, through increase output voltage, adjusts output current to output second charging current, under the circumstances of guaranteeing to charge safety, make charging current maximize, improve charge efficiency.
When the impedance of the charging line is not within the preset impedance range, S204 may include:
outputting a third charging current based on a third control instruction sent by the mobile terminal; the third charging current is smaller than or equal to the first current threshold, and the third charging current is smaller than the second charging current.
Illustratively, the first current threshold may be determined according to a charging protocol. For example, when the charging protocol is a proprietary protocol, the first current threshold may be 4A.
When the impedance of the charging line is not within the preset impedance range, the mobile terminal is charged by outputting the third charging current smaller than or equal to the first current threshold, so that the charging safety is ensured.
In S204, it may include:
stopping outputting the current based on a sixth control instruction sent by the mobile terminal; wherein the sixth control command is determined according to a variance of the first impedance corresponding to each of the first charging currents.
In the process of calculating the impedance of the charging line, the charging current and the output voltage output by the charger may be unstable due to environmental factors such as lightning and magnetic field, or other human factors, so that the output current of the charger is greater than the failure current, and the variance is greater than the preset variance threshold. Here, the failure current may be: and a current that causes damage to a charging wire, a charger, or a mobile power supply. If the charging is continued, the probability of damage to the charging wire, the charger or the mobile power supply is increased.
The mobile terminal calculates first impedance of the charging line in each first charging current state according to each first charging current and the corresponding first voltage and second voltage respectively, and calculates variance of the plurality of first impedances. When the mobile terminal judges that the variance is larger than the preset variance threshold value, the charger stops outputting current based on the sixth control instruction of the mobile terminal, the risk that the charger, the charging wire and the mobile terminal are damaged is reduced, and charging safety is guaranteed.
When the impedance calculation process of the charging line is abnormal, S204 may include:
outputting a fourth charging current based on a seventh control instruction sent by the mobile terminal; wherein the fourth charging current is less than or equal to the first current threshold.
The concrete representation of the abnormity of the impedance calculation process of the charging wire may comprise the following steps: the calculated impedance of the charging wire is a negative value, or the impedance of the charging wire cannot be calculated, and the like.
Causes of abnormalities in the impedance calculation process of the charging line may include: a hardware failure of the mobile terminal or the charging cable occurs, for example, the mobile terminal is damaged by a module for calculating impedance.
In the embodiment, when the impedance calculation process is abnormal, the fourth charging current which is less than or equal to the first current threshold is output based on the seventh control instruction of the mobile terminal, so that the charging safety is ensured.
When the battery voltage of the battery in the mobile terminal reaches the preset saturation voltage after being charged from below the preset saturation voltage, the method may include:
and reducing the output current based on a fourth control instruction sent by the mobile terminal.
In the charging process, due to the fact that impedance exists inside the battery, under the condition that the charging current of the battery is large, the increasing speed of the voltage of the battery is fast, and the voltage of the battery is enabled to be rapidly increased to the preset saturation voltage. At this time, because the charging line has impedance, the voltage drop at the two ends of the charging line is large, so that the input voltage for charging the battery is smaller than the voltage of the battery, and the battery cannot be continuously charged although the battery does not actually reach a charging saturation state. Here, the preset saturation voltage may be determined according to a charging protocol or a rated voltage of the battery. For example, when the battery rated voltage is 10V, the preset saturation voltage may be set to 8.8V.
After the battery voltage reaches the preset saturation voltage, the output current of the charger is reduced, so that the voltage drop at two ends of the charging wire is reduced, the voltage at the input interface of the mobile terminal is improved, the input voltage for charging the battery is larger than the battery voltage, and the battery can be continuously charged.
This embodiment is through charging at the battery, when making battery voltage rise to predetermineeing saturation voltage, through reducing output current for the voltage drop at charging wire both ends reduces, has improved the voltage at mobile terminal input kneck, and then makes the input voltage who charges for the battery be greater than battery voltage, guarantees to continue to charge to the battery, has improved the charging effect.
And when the battery voltage reaches the preset saturation voltage again and the output current of the charger is greater than the first current threshold, the charger gives a fourth control instruction again to reduce the output current. And circulating the steps until the output current of the charger is reduced to the first current threshold value.
When the output current of the charger decreases to the first current threshold, the method may include:
and reducing the output voltage and keeping outputting the output current based on a fifth control instruction sent by the mobile terminal.
In this embodiment, when the output current of the charger is decreased to be equal to the first current threshold, the output voltage is decreased, so that the heating value of the charging line is reduced, the energy loss is reduced, and the charging efficiency is improved.
To sum up, compare in the charging line impedance and detect in the charging current process of output stability, and then select the charging strategy, the charging control method that this disclosure provided detects the charging line impedance at the first control instruction based on mobile terminal, from the output current of the initial charging current value step-by-step increase charger in-process, on the one hand, can supply mobile terminal to carry out the accurate detection of impedance according to a plurality of first charging current to improve the accuracy of impedance calculation, and then improved the accuracy of charging strategy selection, guaranteed the security of charging. On the other hand, before the impedance detection with the charging wire arrived output stable charging current in advance, so, can directly provide stable charging current according to the impedance of the charging wire that has detected, reduced because the too big risk that leads to charging wire, charger or mobile terminal damage of stable charging current.
Fig. 4 is a flowchart illustrating a charging method according to an exemplary embodiment, applied to a mobile terminal and a charger, the method including the following steps:
s10: when detecting that the charger is connected to the mobile terminal through the charging wire, the mobile terminal and the charger perform charging protocol handshake.
When the charging protocol handshake of the mobile terminal and the charger fails, S21 is executed: the charger does not charge the mobile terminal.
When the charging protocol handshake of the mobile terminal and the charger is successful, S22 is executed: and the mobile terminal judges whether to start an impedance detection function according to the charging protocol with successful handshaking.
S22 may include: the mobile terminal judges whether the charging protocol successfully handshaking belongs to a preset charging protocol or not; when the charging protocol with successful handshaking belongs to a preset charging protocol, the mobile terminal starts an impedance detection function; and when the charging protocol with successful handshaking does not belong to the preset charging protocol, the mobile terminal does not start the impedance detection function.
The preset charging protocol may include: a protocol that allows charging with a charging current greater than a first current threshold. For example, the preset charging protocol may include: PD protocol or proprietary protocol. Wherein the first current threshold may be determined according to a preset charging protocol. Here, the first current threshold may be 4A.
When the mobile terminal determines that the impedance detection function is not activated, S31 is executed: the mobile terminal sends an eighth control instruction to the charger, and the charger outputs a fifth charging current based on the eighth control instruction; wherein the fifth charging current is less than or equal to the first current threshold.
When the mobile terminal determines that the impedance detection function is activated, S32 is executed: the mobile terminal sends an acquisition request to the charger; based on the acquisition request, the charger sends the output first voltage to the mobile terminal; the first voltage is a voltage at an output interface of the charger.
S40: the mobile terminal sends a first control instruction to the charger; the charger increases the output first charging current step by step from the initial charging current value by a preset step value based on the first control instruction.
S50: the mobile terminal acquires a second voltage at an input interface of the mobile terminal aiming at each first charging current;
s60: the mobile terminal calculates the impedance of the charging line according to the first voltage, the second voltage and the first charging current.
S70: the mobile terminal sends a charging control instruction to the charger according to the impedance of the charging line; and the charger charges the mobile terminal according to the received charging control instruction.
To sum up, compare in detecting the charging line impedance in the charging current process that outputs the stability, and then select the charging strategy, the charging control method that this disclosure provides, at the charger based on mobile terminal's first control instruction, from the process of the output current of the initial charging current value step-by-step increase charger, utilize mobile terminal to detect the charging line impedance, on the one hand, can supply mobile terminal to carry out the accurate detection of impedance according to a plurality of first charging current to improve the accuracy of impedance calculation, and then improved the accuracy of charging strategy selection, guarantee the security of charging. On the other hand, before the impedance detection with the charging wire arrived output stable charging current in advance, so, can directly provide stable charging current according to the impedance of the charging wire that has detected, reduced because the too big risk that leads to charging wire, charger or mobile terminal damage of stable charging current.
Fig. 5 is a block diagram of a charge control device 300 according to an exemplary embodiment, the device 300 including:
a first voltage obtaining module 301, configured to obtain a first voltage at an output interface of the charger; the output interface of the charger and the input interface of the mobile terminal are connected with charging wires;
a first control module 302, configured to send a first control instruction to the charger; the first control instruction is used for controlling the charger to gradually increase the output first charging current from the initial charging current value by a preset step value;
the first voltage obtaining module 301 is further configured to obtain, for each first charging current, a second voltage at an input interface of the mobile terminal;
a first calculating module 303, configured to calculate an impedance of the charging line according to the first voltage, the second voltage, and the first charging current;
the first control module 302 is further configured to send a charging control instruction according to the impedance of the charging line.
In some embodiments, the first control module 302 is specifically configured to send a second control instruction to the charger when the impedance of the charging line is within a preset impedance range; and the second control instruction is used for increasing the output voltage of the charger and outputting a second charging current, and the second charging current is determined according to the first preset current which has a corresponding relation with the output voltage.
In some embodiments, the first control module 302 is specifically configured to send a third control instruction to the charger when the impedance of the charging line is not within the preset impedance range; and the third control instruction is used for controlling the charger to output a third charging current, wherein the third charging current is less than or equal to the first current threshold, and the third charging current is less than the second charging current.
In some embodiments, the first voltage obtaining module 301 is further configured to obtain a battery voltage of a battery in the mobile terminal;
the first control module 302 is further configured to send a fourth control instruction to the charger when the battery voltage reaches the preset saturation voltage after being charged from below the preset saturation voltage; and the fourth control instruction is used for reducing the output current of the charger.
In some embodiments, the first control module 302 is further configured to send a fifth control instruction to the charger when the output current of the charger decreases to the first current threshold; and the fifth control instruction is used for reducing the output voltage of the charger and keeping outputting the output current.
In some embodiments, the first calculating module 303 is specifically configured to calculate a first impedance of the charging line in each first charging current state according to each first charging current and the corresponding first voltage and second voltage, respectively; the first calculating module 303 is further configured to calculate a variance of the plurality of first impedances.
When the variance is smaller than or equal to a preset variance threshold value, the first calculation module determines the average value of the first impedances as the impedance of the charging line.
In some embodiments, as shown in fig. 6, the apparatus 300 further comprises:
a first output module 304, configured to output a first state reminder prompting that an abnormality exists in the charging process when the variance is greater than a preset variance threshold;
the first voltage control module 301 is configured to send a sixth control instruction to the charger; and the sixth control instruction is used for controlling the charger to stop outputting the current.
In this embodiment, the first output module may include: the module that speaker etc. output sound was reminded, the module that vibrator etc. output vibrations were reminded, display module that display screen etc. output characters were reminded.
In some embodiments, the first output module 304 is further configured to output a second status prompt prompting that the charging line or the mobile terminal is abnormal when the impedance calculation process of the charging line is abnormal;
the first control module 302 is configured to send a seventh control instruction to the charger; and the seventh control instruction is used for controlling the charger to output a fourth charging current, and the fourth charging current is smaller than or equal to the first current threshold.
In some embodiments, as shown in fig. 7, the apparatus 300 further comprises:
a first protocol handshake module 305, configured to perform a charging protocol handshake with a charger;
the first judging module 306 is configured to, after the charging protocol is successfully handshake, judge whether to start an impedance detection function according to the successfully handshake charging protocol;
a first executing module 307, configured to obtain a first voltage at an output interface of the charger when it is determined that the impedance detecting function is started.
Fig. 8 is a block diagram of a charging control apparatus 400 provided according to an exemplary embodiment, the apparatus 400 including:
a voltage output module 401, configured to send the output first voltage to the mobile terminal; the first voltage is the voltage at an output line interface of the charger, and charging lines are connected to the output interface of the charger and an input interface of the mobile terminal;
a current output module 402, configured to gradually increase the output first charging current from the initial charging current value by a preset step value; each first charging current is used for the mobile terminal to calculate the impedance of the charging line;
a second control module 403, configured to charge the mobile terminal based on a charging control instruction sent by the mobile terminal; wherein the charging control command is determined according to the impedance of the charging line.
In some embodiments, the second control module 403 is specifically configured to increase the output voltage and control the current output module 402 to output the second charging current based on a second control instruction sent by the mobile terminal when the impedance of the charging line is within the preset impedance range; the second charging current is determined according to the first preset current corresponding to the output voltage.
In some embodiments, the second control module 403 is specifically configured to control the current output module 402 to output the third charging current based on a third control instruction sent by the mobile terminal when the impedance of the charging line is not within the preset impedance range; wherein the third charging current is less than or equal to the first current threshold, and the third charging current is less than the second charging current.
In some embodiments, the second control module 403 is further configured to reduce the output current based on a fourth control instruction sent by the mobile terminal when the battery voltage of the battery in the mobile terminal reaches the preset saturation voltage after being charged from below the preset saturation voltage.
In some embodiments, the second control module 403 is further configured to decrease the output voltage and control the current output module 402 to keep outputting the output current based on a fifth control instruction sent by the mobile terminal when the output current decreases to the first current threshold.
In some embodiments, the second control module 403 is further configured to control the current output module 402 to stop outputting the current based on a sixth control instruction sent by the terminal; wherein the sixth control command is determined according to a variance of the first impedance corresponding to each of the first charging currents.
In some embodiments, the second control module 403 is further configured to control the current output module 402 to output the fourth charging current based on a seventh control instruction sent by the mobile terminal; wherein the fourth charging current is less than or equal to the first current threshold.
In some inventive embodiments, as shown in fig. 9, the apparatus 400 further comprises:
a second protocol handshaking module 404, configured to perform charging protocol handshaking with the mobile terminal;
and the voltage output module 401 is configured to send the output first voltage to the mobile terminal after the handshake is successful.
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. 10 is a block diagram illustrating a charging control apparatus 800 for performing the charging method described above according to an exemplary embodiment. For example, the apparatus 800 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.
In an exemplary embodiment, the apparatus 800 includes:
a processor 820;
a memory 804 for storing processor-executable instructions;
wherein the processor 820 is configured to:
acquiring a first voltage at an output interface of the charger; the output interface of the charger and the input interface of the mobile terminal are connected with charging wires;
sending a first control instruction to the charger; the first control instruction is used for controlling the charger to gradually increase the output first charging current from the initial charging current value by a preset step value; the first charging current is less than or equal to a first preset current threshold;
acquiring a second voltage at an input interface of the mobile terminal aiming at each first charging current;
calculating the impedance of the charging line according to the first voltage, the second voltage and the first charging current;
and sending a charging control command according to the impedance of the charging wire.
In some embodiments, the apparatus 800 comprises:
a processor 820;
a memory 804 for storing processor-executable instructions;
wherein the processor 820 is configured to:
transmitting the output first voltage to the mobile terminal; the first voltage is the voltage at the output interface of the charger, and the output interface of the charger and the input interface of the mobile terminal are connected with charging wires;
based on a first control instruction of the mobile terminal, gradually increasing the output first charging current from the initial charging current value by a preset step value; each first charging current is used for the mobile terminal to calculate the impedance of the charging line;
charging the mobile terminal based on a charging control instruction sent by the mobile terminal; wherein the charging control command is determined according to the impedance of the charging line.
Referring to fig. 10, the apparatus 800 may include one or more of the following components: a processing component 802, a memory 804, a power component 806, a multimedia component 808, an audio component 810, an input/output (I/O) interface 812, a sensor component 814, and a communication component 816.
The processing component 802 generally controls overall operation of the device 800, 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 operation at the device 800. Examples of such data include instructions for any application or method operating on device 800, 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.
Power component 806 provides power to the various components of device 800. The power components 806 may include a power management system, one or more power sources, and other components associated with generating, managing, and distributing power for the device 800.
The multimedia component 808 includes a screen that provides an output interface between the device 800 and a 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-facing camera and/or the rear-facing camera may receive external multimedia data when the device 800 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 800 is in an operational 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 800. For example, the sensor assembly 814 may detect the open/closed state of the device 800, the relative positioning of the components, such as a display and keypad of the apparatus 800, the sensor assembly 814 may also detect a change in position of the apparatus 800 or a component of the apparatus 800, the presence or absence of user contact with the apparatus 800, orientation or acceleration/deceleration of the apparatus 800, and a change in temperature of the apparatus 800. 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 communications between the apparatus 800 and other devices in a wired or wireless manner. The device 800 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 800 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 device 800 to perform the charging method described above 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.
According to an embodiment, there is provided a non-transitory computer-readable storage medium having instructions stored thereon, which when executed by a processor of a charging control apparatus, enable a mobile terminal to perform a charging method, the method including:
acquiring a first voltage at an output interface of the charger; the output interface of the charger and the input interface of the mobile terminal are connected with charging wires;
sending a first control instruction to the charger; the first control instruction is used for controlling the charger to gradually increase the output first charging current from the initial charging current value by a preset step value; the first charging current is less than or equal to a first preset current threshold;
acquiring a second voltage at an input interface of the mobile terminal aiming at each first charging current;
calculating the impedance of the charging line according to the first voltage, the second voltage and the first charging current;
and sending a charging control command according to the impedance of the charging wire.
According to an embodiment, there is provided a non-transitory computer readable storage medium having instructions stored thereon that, when executed by a processor of a charging control device, enable a charger to perform a charging method, the method comprising:
transmitting the output first voltage to the mobile terminal; the first voltage is the voltage at the output interface of the charger, and the output interface of the charger and the input interface of the mobile terminal are connected with charging wires;
based on a first control instruction of the mobile terminal, gradually increasing the output first charging current from the initial charging current value by a preset step value; each first charging current is used for the mobile terminal to calculate the impedance of the charging line;
charging the mobile terminal based on a charging control instruction sent by the mobile terminal; wherein the charging control command is determined according to the impedance of the charging line.
Fig. 11 is a block diagram illustrating a charging control apparatus 1900 according to an example embodiment. For example, the apparatus 1900 may be provided as a server. Referring to FIG. 11, the device 1900 includes a processing component 1922 further including one or more processors and memory resources, represented by memory 1932, for storing instructions, e.g., applications, executable by the processing component 1922. The application programs stored in memory 1932 may include one or more modules that each correspond to a set of instructions. Further, the processing component 1922 is configured to execute instructions to perform the charging method described above.
The device 1900 may also include a power component 1926 configured to perform power management of the device 1900, a wired or wireless network interface 1950 configured to connect the device 1900 to a network, and an input/output (I/O) interface 1958. The device 1900 may operate based on an operating system stored in memory 1932, such as Windows Server, Mac OS XTM, UnixTM, LinuxTM, FreeBSDTM, or the like.
Other embodiments of the invention will be apparent to those skilled in the art from consideration of the specification and practice of the invention disclosed herein. This application is intended to cover any variations, uses, or adaptations of the invention following, in general, the principles of the invention and including such departures from the present disclosure as come within known or customary practice within the art to which the invention pertains. It is intended that the specification and examples be considered as exemplary only, with a true scope and spirit of the invention being indicated by the following claims.
It will be understood that the invention 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 invention is limited only by the appended claims.

Claims (34)

1. A charge control method, characterized in that the method comprises:
acquiring a first voltage at an output interface of a charger; the output interface of the charger and the input interface of the mobile terminal are connected with charging wires;
sending a first control instruction to the charger; the first control instruction is used for controlling the charger to gradually increase the output first charging current from the initial charging current value by a preset step value;
acquiring a second voltage at an input interface of the mobile terminal aiming at each first charging current;
calculating an impedance of the charging line according to the first voltage, the second voltage and the first charging current;
and sending a charging control command according to the impedance of the charging wire.
2. The method of claim 1, wherein the sending a charging control command according to the impedance of the charging line comprises:
when the impedance of the charging line is within a preset impedance range, sending a second control instruction to the charger; the second control instruction is used for controlling the charger to increase output voltage and output second charging current, and the second charging current is determined according to first preset current which corresponds to the output voltage;
when the impedance of the charging line is not within the preset impedance range, sending a third control instruction to the charger, wherein the third control instruction is used for controlling the charger to output a third charging current, the third charging current is less than or equal to a first current threshold, and the third charging current is less than the second charging current.
3. The method of claim 2, further comprising:
acquiring the battery voltage of a battery in the mobile terminal;
when the battery voltage reaches the preset saturation voltage after being charged from the lower voltage than the preset saturation voltage, sending a fourth control instruction to the charger; wherein the fourth control instruction is used for controlling the charger to reduce the output current.
4. The method of claim 3, further comprising:
when the output current of the charger is reduced to be equal to the first current threshold, sending a fifth control instruction to the charger; wherein the fifth control instruction is used for controlling the charger to reduce the output voltage and keep outputting the output current.
5. The method of claim 1, wherein calculating the impedance of the charging line from the first voltage, the second voltage, and the first charging current comprises:
calculating a first impedance of the charging line in each first charging current state according to each first charging current and the corresponding first voltage and second voltage respectively;
calculating a variance of a plurality of the first impedances;
when the variance is smaller than or equal to a preset variance threshold value, determining the average value of the first impedances as the impedance of the charging line.
6. The method of claim 5, further comprising:
when the variance is larger than the preset variance threshold, outputting a first state prompt prompting that an abnormity exists in the charging process, and sending a sixth control instruction to the charger; and the sixth control instruction is used for controlling the charger to stop outputting current.
7. The method of claim 5, further comprising:
when the impedance calculation process of the charging line is abnormal, outputting a second state prompt prompting that the charging line or the mobile terminal is abnormal, and sending a seventh control instruction to the charger; the seventh control instruction is used for controlling the charger to output a fourth charging current, and the fourth charging current is smaller than or equal to a first current threshold.
8. The method of claim 1, wherein prior to the obtaining the first voltage at the output interface of the charger, the method further comprises:
performing a charging protocol handshake with the charger;
after the charging protocol is successfully handshake, judging whether an impedance detection function is started or not according to the charging protocol with successful handshake;
when it is determined that the impedance detection function is activated, a first voltage at an output interface of the charger is obtained.
9. A charge control method, characterized in that the method comprises:
transmitting the output first voltage to the mobile terminal; the first voltage is the voltage at an output interface of a charger, and charging wires are connected to the output interface of the charger and an input interface of the mobile terminal;
based on a first control instruction of the mobile terminal, gradually increasing the output first charging current from the initial charging current value by a preset step value; each first charging current is used for the mobile terminal to calculate the impedance of the charging line;
charging the mobile terminal based on a charging control instruction sent by the mobile terminal; wherein the charging control command is determined according to the impedance of the charging line.
10. The method of claim 9, wherein the charging the mobile terminal based on the charging control instruction sent by the mobile terminal comprises:
when the impedance of the charging line is within a preset impedance range, increasing the output voltage and outputting a second charging current based on a second control instruction sent by the mobile terminal; the second charging current is determined according to a first preset current corresponding to the output voltage;
when the impedance of the charging line is not within the preset impedance range, outputting a third charging current based on a third control instruction sent by the mobile terminal; wherein the third charging current is less than or equal to a first current threshold, and the third charging current is less than the second charging current.
11. The method of claim 10, further comprising:
and when the battery voltage of the battery in the mobile terminal reaches the preset saturation voltage after being charged from the lower voltage than the preset saturation voltage, reducing the output current based on a fourth control instruction sent by the mobile terminal.
12. The method of claim 11, further comprising:
and when the output current of the charger is reduced to the first current threshold, reducing the output voltage and keeping outputting the output current based on a fifth control instruction sent by the mobile terminal.
13. The method of claim 9, further comprising:
stopping outputting the current based on a sixth control instruction sent by the mobile terminal; wherein the sixth control command is determined according to a variance of first impedances corresponding to each of the first charging currents.
14. The method of claim 13, further comprising:
when the impedance calculation process of the charging line is abnormal, outputting a fourth charging current based on a seventh control instruction sent by the mobile terminal; wherein the fourth charging current is less than or equal to a first current threshold.
15. The method of claim 9, wherein prior to said outputting the first voltage, the method further comprises:
performing charging protocol handshaking with the mobile terminal;
and when the charging protocol handshake is successful, the output first voltage is sent to the mobile terminal.
16. A charge control device, characterized in that the device comprises:
the first voltage acquisition module is used for acquiring a first voltage at an output interface of the charger; the output interface of the charger and the input interface of the mobile terminal are connected with charging wires;
the first control module is used for sending a first control instruction to the charger; the first control instruction is used for controlling the charger to gradually increase the output first charging current from the initial charging current value by a preset step value;
the first voltage obtaining module is further configured to obtain, for each of the first charging currents, a second voltage at an input interface of the mobile terminal;
the first calculation module is used for calculating the impedance of the charging wire according to the first voltage, the second voltage and the first charging current;
the first control module is further configured to send a charging control instruction according to the impedance of the charging line.
17. The apparatus of claim 16,
the first control module is specifically configured to send a second control instruction to the charger when the impedance of the charging line is within a preset impedance range; the second control instruction is used for increasing the output voltage of the charger and outputting a second charging current, and the second charging current is determined according to a first preset current which corresponds to the output voltage;
the first control module is specifically further configured to send a third control instruction to the charger when the impedance of the charging line is not within the preset impedance range; the third control instruction is used for controlling the charger to output a third charging current, wherein the third charging current is smaller than or equal to a first current threshold value, and the third charging current is smaller than the second charging current.
18. The apparatus of claim 17,
the first voltage obtaining module is further configured to obtain a battery voltage of a battery in the mobile terminal;
the first control module is further used for sending a fourth control instruction to the charger when the battery voltage reaches a preset saturation voltage after being charged from a voltage lower than the preset saturation voltage; wherein the fourth control instruction is to reduce an output current of the charger.
19. The apparatus of claim 18,
the first control module is further configured to send a fifth control instruction to the charger when the output current of the charger decreases to the first current threshold; wherein the fifth control instruction is used for reducing the output voltage of the charger and keeping outputting the output current.
20. The apparatus of claim 16,
the first calculating module is specifically configured to calculate a first impedance of the charging line in each first charging current state according to each first charging current, and the corresponding first voltage and the corresponding second voltage; the first calculation module is further configured to calculate a variance of the plurality of first impedances;
when the variance is smaller than or equal to a preset variance threshold, the first calculation module determines that the average value of the first impedances is the impedance of the charging line.
21. The apparatus of claim 20, further comprising:
the first output module is used for outputting a first state prompt prompting that an abnormity exists in the charging process when the variance is larger than the preset variance threshold;
the first voltage control module is further configured to send a sixth control instruction to the charger; and the sixth control instruction is used for controlling the charger to stop outputting current.
22. The apparatus of claim 20,
the first output module is further configured to output a second state prompt prompting that the charging line or the mobile terminal is abnormal when the impedance calculation process of the charging line is abnormal;
the first control module is used for sending a seventh control instruction to the charger; the seventh control instruction is used for controlling the charger to output a fourth charging current, and the fourth charging current is smaller than or equal to a first current threshold.
23. The apparatus of claim 16, further comprising:
the first protocol handshake module is used for carrying out charging protocol handshake with the charger;
the first judgment module is used for judging whether to start an impedance detection function according to the charging protocol which is successfully handshake after the charging protocol is successfully handshake;
the first voltage obtaining module is used for obtaining a first voltage at an output interface of the charger when the impedance detection function is determined to be started.
24. A charge control device, characterized in that the device comprises:
the voltage output module is used for sending the output first voltage to the mobile terminal; the first voltage is the voltage at an output line interface of a charger, and charging lines are connected to the output interface of the charger and an input interface of the mobile terminal;
the current output module is used for gradually increasing the output first charging current from the initial charging current value by a preset step value; each first charging current is used for the mobile terminal to calculate the impedance of the charging line;
the second control module is used for charging the mobile terminal based on a charging control instruction sent by the mobile terminal; wherein the charging control command is determined according to the impedance of the charging line.
25. The apparatus of claim 24,
the second control module is specifically configured to increase the output voltage based on a second control instruction sent by the mobile terminal when the impedance of the charging line is within a preset impedance range, and control the current output module to output a second charging current; the second charging current is determined according to a first preset current corresponding to the output voltage;
the second control module is specifically configured to, when the impedance of the charging line is not within the preset impedance range, control the current output module to output a third charging current based on a third control instruction sent by the mobile terminal; wherein the third charging current is less than or equal to a first current threshold, and the third charging current is less than the second charging current.
26. The apparatus of claim 25,
the second control module is further configured to reduce the output current based on a fourth control instruction sent by the mobile terminal when the battery voltage of the battery in the mobile terminal reaches a preset saturation voltage after being charged from a voltage lower than the preset saturation voltage.
27. The apparatus of claim 26,
the second control module is further configured to reduce the output voltage based on a fifth control instruction sent by the mobile terminal when the output current is reduced to the first current threshold, and control the current output module to keep outputting the output current.
28. The apparatus of claim 24,
the second control module is further configured to control the current output module to stop outputting current based on a sixth control instruction sent by the terminal; wherein the sixth control command is determined based on a variance of the first impedance corresponding to each of the first charging currents.
29. The apparatus of claim 28,
the second control module is further configured to control the current output module to output a fourth charging current based on a seventh control instruction sent by the mobile terminal; wherein the fourth charging current is less than or equal to a first current threshold.
30. The apparatus of claim 24, further comprising:
the second protocol handshaking module is used for performing charging protocol handshaking with the mobile terminal;
and the voltage output module is used for sending the output first voltage to the mobile terminal after the handshaking is successful.
31. A charge control device, characterized by comprising:
a processor;
a memory for storing processor-executable instructions;
wherein the processor is configured to:
acquiring a first voltage at an output interface of the charger; the output interface of the charger and the input interface of the mobile terminal are connected with charging wires;
sending a first control instruction to the charger; the first control instruction is used for controlling the charger to gradually increase the output first charging current from the initial charging current value by a preset step value; wherein the first charging current is less than or equal to a first preset current threshold;
acquiring a second voltage at an input interface of the mobile terminal aiming at each first charging current;
calculating an impedance of the charging line according to the first voltage, the second voltage and the first charging current;
and sending a charging control command according to the impedance of the charging wire.
32. A charge control device, characterized by comprising:
a processor;
a memory for storing processor-executable instructions;
wherein the processor is configured to:
transmitting the output first voltage to the mobile terminal; the first voltage is the voltage at an output interface of a charger, and charging wires are connected to the output interface of the charger and an input interface of the mobile terminal;
based on a first control instruction of the mobile terminal, gradually increasing the output first charging current from the initial charging current value by a preset step value; each first charging current is used for the mobile terminal to calculate the impedance of the charging line;
charging the mobile terminal based on a charging control instruction sent by the mobile terminal; wherein the charging control command is determined according to the impedance of the charging line.
33. A non-transitory computer-readable storage medium in which instructions, when executed by a processor of a charging control apparatus, enable a mobile terminal to perform a charging method, the method comprising:
acquiring a first voltage at an output interface of the charger; the output interface of the charger and the input interface of the mobile terminal are connected with charging wires;
sending a first control instruction to the charger; the first control instruction is used for controlling the charger to gradually increase the output first charging current from the initial charging current value by a preset step value; wherein the first charging current is less than or equal to a first preset current threshold;
acquiring a second voltage at an input interface of the mobile terminal aiming at each first charging current;
calculating an impedance of the charging line according to the first voltage, the second voltage and the first charging current;
and sending a charging control command according to the impedance of the charging wire.
34. A non-transitory computer readable storage medium in which instructions, when executed by a processor of a charging control device, enable a charger to perform a charging method, the method comprising:
transmitting the output first voltage to the mobile terminal; the first voltage is the voltage at an output interface of the charger, and charging wires are connected to the output interface of the charger and an input interface of the mobile terminal;
based on a first control instruction of the mobile terminal, gradually increasing the output first charging current from the initial charging current value by a preset step value; each first charging current is used for the mobile terminal to calculate the impedance of the charging line;
charging the mobile terminal based on a charging control instruction sent by the mobile terminal; wherein the charging control command is determined according to the impedance of the charging line.
CN201910703045.8A 2019-07-31 2019-07-31 Charge control method, charge control device, and readable storage medium Active CN112311035B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201910703045.8A CN112311035B (en) 2019-07-31 2019-07-31 Charge control method, charge control device, and readable storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201910703045.8A CN112311035B (en) 2019-07-31 2019-07-31 Charge control method, charge control device, and readable storage medium

Publications (2)

Publication Number Publication Date
CN112311035A true CN112311035A (en) 2021-02-02
CN112311035B CN112311035B (en) 2023-08-29

Family

ID=74486320

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201910703045.8A Active CN112311035B (en) 2019-07-31 2019-07-31 Charge control method, charge control device, and readable storage medium

Country Status (1)

Country Link
CN (1) CN112311035B (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113098085A (en) * 2021-03-31 2021-07-09 联想(北京)有限公司 Charging processing method and electronic equipment

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20150025822A1 (en) * 2013-07-16 2015-01-22 Stmicroelectronics International N.V. Battery dc impedance measurement
CN105826959A (en) * 2015-05-18 2016-08-03 维沃移动通信有限公司 Charging method, device and mobile terminal
CN106712219A (en) * 2017-03-06 2017-05-24 北京小米移动软件有限公司 Charging protection method and device
CN108448673A (en) * 2018-03-29 2018-08-24 维沃移动通信有限公司 A kind of charging method, mobile terminal and charger
CN109962514A (en) * 2019-02-22 2019-07-02 维沃移动通信有限公司 A kind of charging method and mobile terminal

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20150025822A1 (en) * 2013-07-16 2015-01-22 Stmicroelectronics International N.V. Battery dc impedance measurement
CN105826959A (en) * 2015-05-18 2016-08-03 维沃移动通信有限公司 Charging method, device and mobile terminal
CN106712219A (en) * 2017-03-06 2017-05-24 北京小米移动软件有限公司 Charging protection method and device
CN108448673A (en) * 2018-03-29 2018-08-24 维沃移动通信有限公司 A kind of charging method, mobile terminal and charger
CN109962514A (en) * 2019-02-22 2019-07-02 维沃移动通信有限公司 A kind of charging method and mobile terminal

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113098085A (en) * 2021-03-31 2021-07-09 联想(北京)有限公司 Charging processing method and electronic equipment

Also Published As

Publication number Publication date
CN112311035B (en) 2023-08-29

Similar Documents

Publication Publication Date Title
US10498156B2 (en) Charging control method, charging control device and terminal
CN108964182B (en) Reverse charging equipment, and method and device for adjusting reverse charging current
CN107482710B (en) Wireless charging method and terminal
EP3832841A1 (en) Charging circuit, electronic device, charging control method and device
EP3745750A1 (en) Communication method, device, and equipment for wireless charging and storage medium
EP3852217A1 (en) Charging method and device, electronic device and storage medium
CN107546873B (en) Wireless charging distance control method and device and electronic equipment
US10852798B2 (en) Power supply control method and apparatus for power strip, and storage medium
CN107124012B (en) Charging method, device, charger, terminal and system
CN113224822A (en) Charging control method and device and storage medium
CN112311035B (en) Charge control method, charge control device, and readable storage medium
CN109450032B (en) Wireless charging processing method, device and equipment
EP3866298A1 (en) Charging method and device
CN112821475B (en) Charging circuit, charging control method and device
CN111988110B (en) Wireless charging method and device
CN112186823B (en) Wireless charging method, circuit and system
CN114498784A (en) Charging method, charging device, electronic device and storage medium
CN111600351A (en) Rechargeable battery, terminal device, charging method, charging system, and charging apparatus
EP4170855A1 (en) Charging method, electronic device and storage medium
CN112448054B (en) Charging method and device of mobile terminal, terminal and storage medium
CN112701737B (en) Battery circuit, charging method and device and electronic equipment
CN116937828A (en) Temperature control method of wireless charger, wireless charger and electronic equipment
CN116131375A (en) Charging module, charging method, electronic device and storage medium
CN116937719A (en) Device charging method and device, electronic device and storage medium
CN114665556A (en) Charging conversion device, charging method and device, electronic device, 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