Movatterモバイル変換


[0]ホーム

URL:


CN112311035B - Charge control method, charge control device, and readable storage medium - Google Patents

Charge control method, charge control device, and readable storage medium
Download PDF

Info

Publication number
CN112311035B
CN112311035BCN201910703045.8ACN201910703045ACN112311035BCN 112311035 BCN112311035 BCN 112311035BCN 201910703045 ACN201910703045 ACN 201910703045ACN 112311035 BCN112311035 BCN 112311035B
Authority
CN
China
Prior art keywords
charging
current
impedance
voltage
output
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN201910703045.8A
Other languages
Chinese (zh)
Other versions
CN112311035A (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 LtdfiledCriticalBeijing Xiaomi Mobile Software Co Ltd
Priority to CN201910703045.8ApriorityCriticalpatent/CN112311035B/en
Publication of CN112311035ApublicationCriticalpatent/CN112311035A/en
Application grantedgrantedCritical
Publication of CN112311035BpublicationCriticalpatent/CN112311035B/en
Activelegal-statusCriticalCurrent
Anticipated expirationlegal-statusCritical

Links

Classifications

Landscapes

Abstract

Translated fromChinese

本公开是关于一种充电控制方法、充电控制装置及可读存储介质,所述充电控制方法包括:获取充电器的输出接口处的第一电压;其中,充电器的输出接口处和移动终端的输入接口处连接有充电线;向充电器发送第一控制指令;其中,第一控制指令,用于控制充电器以预设步长值从初始充电电流值逐步增大输出的第一充电电流;针对每一个第一充电电流,获取移动终端的输入接口处的第二电压;根据第一电压、第二电压和第一充电电流,计算充电线的阻抗;根据充电线的阻抗,发送充电控制指令。

The present disclosure relates to a charging control method, a charging control device, and a readable storage medium. The charging control method includes: obtaining the first voltage at the output interface of the charger; wherein, the output interface of the charger and the mobile terminal A charging line is connected to the input interface; a first control instruction is sent to the charger; wherein, the first control instruction is used to control the charger to gradually increase the output first charging current from the initial charging current value with a preset step value; For each first charging current, obtain the second voltage at the input interface of the mobile terminal; calculate the impedance of the charging line according to the first voltage, the second voltage and the first charging current; send a charging control command according to the impedance of the charging line .

Description

Translated fromChinese
充电控制方法、充电控制装置及可读存储介质Charging control method, charging control device and readable storage medium

技术领域technical field

本公开涉及充电技术领域,尤其涉及一种充电控制方法、充电控制装置及可读存储介质。The present disclosure relates to the technical field of charging, and in particular, to a charging control method, a charging control device, and a readable storage medium.

背景技术Background technique

随着充电技术的不断革新,为了实现移动终端的快速充电,出现了许多大功率快速充电方案。大功率快速充电方案在给消费者带来更好充电体验的同时,也带来了安全方面的隐患。例如,造成移动终端、充电线或充电器的损坏。With the continuous innovation of charging technology, in order to realize the fast charging of mobile terminals, many high-power fast charging schemes have emerged. While the high-power fast charging solution brings consumers a better charging experience, it also brings hidden dangers in terms of safety. For example, causing damage to the mobile terminal, charging cable or charger.

发明内容Contents of the invention

为克服相关技术中存在的问题,本公开提供一种充电控制方法、充电控制装置及可读存储介质。In order to overcome the problems existing in related technologies, the present disclosure provides a charging control method, a charging control device and a readable storage medium.

根据本公开实施例的第一方面,提供一种充电控制方法,所述方法包括:According to a first aspect of an embodiment of the present disclosure, there is provided a charging control method, the method comprising:

获取充电器的输出接口处的第一电压;其中,所述充电器的输出接口处和移动终端的输入接口处连接有充电线;Obtaining the first voltage at the output interface of the charger; wherein, a charging line is connected to the output interface of the charger and the input interface of the mobile terminal;

向所述充电器发送第一控制指令;其中,所述第一控制指令,用于控制所述充电器以预设步长值从初始充电电流值逐步增大输出的第一充电电流;Sending a first control instruction to the charger; wherein the first control instruction is used to control the charger to gradually increase the output first charging current from the initial charging current value with a preset step value;

针对每一个所述第一充电电流,获取所述移动终端的输入接口处的第二电压;Obtaining a second voltage at an input interface of the mobile terminal for each of the first charging currents;

根据所述第一电压、所述第二电压和所述第一充电电流,计算所述充电线的阻抗;calculating the impedance of the charging line according to the first voltage, the second voltage and the first charging current;

根据所述充电线的阻抗,发送充电控制指令。Send a charging control instruction according to the impedance of the charging line.

根据本公开实施例的第二方面,提供一种充电控制方法,所述方法包括:According to a second aspect of an embodiment of the present disclosure, there is provided a charging control method, the method comprising:

向移动终端发送输出的第一电压;其中,所述第一电压为充电器的输出接口处的电压,所述充电器的输出接口处和所述移动终端的输入接口处连接有充电线;Sending the output first voltage to the mobile terminal; wherein, the first voltage is the voltage at the output interface of the charger, and a charging line is connected to the output interface of the charger and the input interface of the mobile terminal;

基于所述移动终端的第一控制指令,以预设步长值从初始充电电流值逐步增大输出的第一充电电流;其中,每一个所述第一充电电流,用于供所述移动终端计算所述充电线的阻抗;Based on the first control instruction of the mobile terminal, the output first charging current is gradually increased from the initial charging current value with a preset step value; wherein, each of the first charging currents is used for the mobile terminal calculating 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 instruction 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 charging control device, the device comprising:

第一电压获取模块,用于获取充电器输出接口处的第一电压;其中,所述充电器的输出接口处和移动终端的输入接口处连接有充电线;The first voltage acquisition module is used to acquire the first voltage at the output interface of the charger; wherein, the output interface of the charger and the input interface of the mobile terminal are connected with a charging line;

第一控制模块,用于向所述充电器发送第一控制指令;其中,所述第一控制指令,用于控制所述充电器以预设步长值从初始充电电流值逐步增大输出的第一充电电流;The first control module is configured to send a first control instruction to the charger; wherein the first control instruction is configured to control the charger to gradually increase the output current value from the initial charging current value with a preset step value first charging current;

所述第一电压获取模块,还用于针对每一个所述第一充电电流,获取所述移动终端的输入接口处的第二电压;The first voltage acquisition module is further configured to acquire a second voltage at the input interface of the mobile terminal for each of the first charging currents;

第一计算模块,用于根据所述第一电压、所述第二电压和所述第一充电电流,计算所述充电线的阻抗;a first calculation module, configured to calculate the impedance of the charging line 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 command according to the impedance of the charging line.

根据本公开实施例的第四方面,提供一种充电控制装置,所述装置包括:According to a fourth aspect of the embodiments of the present disclosure, there is provided a charging control device, the device comprising:

电压输出模块,用于向移动终端发送输出的第一电压;其中,所述第一电压为充电器的输出线接口处的电压,所述充电器的输出接口处和所述移动终端的输入接口处连接有充电线;A voltage output module, configured to send the output first voltage to the mobile terminal; wherein, the first voltage is the voltage at the output line interface of the charger, and the output interface of the charger and the input interface of the mobile terminal connected to the charging cable;

电流输出模块,用于以预设步长值从初始充电电流值逐步增大输出的第一充电电流;其中,每一个所述第一充电电流,用于供所述移动终端计算所述充电线的阻抗;The current output module is used to gradually increase the output first charging current from the initial charging current value with a preset step value; wherein, each of the first charging currents is used for the mobile terminal to calculate the charging line the impedance;

第二控制模块,用于基于所述移动终端发送的充电控制指令,向所述移动终端进行充电;其中,所述充电控制指令是根据所述充电线的阻抗确定的。The second control module is configured to charge the mobile terminal based on the charging control instruction sent by the mobile terminal; wherein the charging control instruction 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 charging control device, including:

处理器;processor;

用于存储处理器可执行指令的存储器;memory for storing processor-executable instructions;

其中,所述处理器被配置为:Wherein, the processor is configured as:

获取充电器输出接口处的第一电压;其中,所述充电器的输出接口处和移动终端的输入接口处连接有充电线;Obtaining the first voltage at the output interface of the charger; wherein, a charging line is connected to the output interface of the charger and the input interface of the mobile terminal;

向所述充电器发送第一控制指令;其中,所述第一控制指令,用于控制所述充电器以预设步长值从初始充电电流值逐步增大输出的第一充电电流;其中,所述第一充电电流小于或等于第一预设电流阈值;Sending a first control instruction to the charger; wherein the first control instruction is used to control the charger to gradually increase the output first charging current from the initial charging current value with a preset step value; wherein, The first charging current is less than or equal to a first preset current threshold;

针对每一个所述第一充电电流,获取移动终端的输入接口处的第二电压;Obtaining a second voltage at an input interface of the mobile terminal for each of the first charging currents;

根据所述第一电压、所述第二电压和所述第一充电电流,计算所述充电线的阻抗;calculating the impedance of the charging line according to the first voltage, the second voltage and the first charging current;

根据所述充电线的阻抗,发送充电控制指令。Send a charging control instruction according to the impedance of the charging line.

根据本公开实施例的第六方面,提供一种充电控制装置,包括:According to a sixth aspect of the embodiments of the present disclosure, there is provided a charging control device, including:

处理器;processor;

用于存储处理器可执行指令的存储器;memory for storing processor-executable instructions;

其中,所述处理器被配置为:Wherein, the processor is configured as:

向移动终端发送输出的第一电压;其中,所述第一电压为充电器的输出接口处的电压,所述充电器的输出接口处和所述移动终端的输入接口处连接有充电线;Sending the output first voltage to the mobile terminal; wherein, the first voltage is the voltage at the output interface of the charger, and a charging line is connected to the output interface of the charger and the input interface of the mobile terminal;

基于所述移动终端的第一控制指令,以预设步长值从初始充电电流值逐步增大输出的第一充电电流;其中,每一个所述第一充电电流,用于供所述移动终端计算所述充电线的阻抗;Based on the first control instruction of the mobile terminal, the output first charging current is gradually increased from the initial charging current value with a preset step value; wherein, each of the first charging currents is used for the mobile terminal calculating 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 instruction 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, when instructions in the storage medium are executed by a processor of a charging control device, a mobile terminal can execute a charging method, the Methods include:

获取充电器输出接口处的第一电压;其中,所述充电器的输出接口处和移动终端的输入接口处连接有充电线;Obtaining the first voltage at the output interface of the charger; wherein, a charging line is connected to the output interface of the charger and the input interface of the mobile terminal;

向所述充电器发送第一控制指令;其中,所述第一控制指令,用于控制所述充电器以预设步长值从初始充电电流值逐步增大输出的第一充电电流;其中,所述第一充电电流小于或等于第一预设电流阈值;Sending a first control instruction to the charger; wherein the first control instruction is used to control the charger to gradually increase the output first charging current from the initial charging current value with a preset step value; wherein, The first charging current is less than or equal to a first preset current threshold;

针对每一个所述第一充电电流,获取移动终端的输入接口处的第二电压;Obtaining a second voltage at an input interface of the mobile terminal for each of the first charging currents;

根据所述第一电压、所述第二电压和所述第一充电电流,计算所述充电线的阻抗;calculating the impedance of the charging line according to the first voltage, the second voltage and the first charging current;

根据所述充电线的阻抗,发送充电控制指令。Send a charging control instruction according to the impedance of the charging line.

根据本公开的第八方面,提供一种非临时性计算机可读存储介质,当所述存储介质中的指令由充电控制装置的处理器执行时,使得充电器能够执行一种充电方法,所述方法包括:According to an eighth aspect of the present disclosure, there is provided a non-transitory computer-readable storage medium, when instructions in the storage medium are executed by a processor of a charging control device, a charger can execute a charging method, the Methods include:

向移动终端发送输出的第一电压;其中,所述第一电压为充电器的输出接口处的电压,所述充电器的输出接口处和所述移动终端的输入接口处连接有充电线;Sending the output first voltage to the mobile terminal; wherein, the first voltage is the voltage at the output interface of the charger, and a charging line is connected to the output interface of the charger and the input interface of the mobile terminal;

基于所述移动终端的第一控制指令,以预设步长值从初始充电电流值逐步增大输出的第一充电电流;其中,每一个所述第一充电电流,用于供所述移动终端计算所述充电线的阻抗;Based on the first control instruction of the mobile terminal, the output first charging current is gradually increased from the initial charging current value with a preset step value; wherein, each of the first charging currents is used for the mobile terminal calculating 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 instruction is determined according to the impedance of the charging line.

本公开的实施例提供的技术方案可以包括以下有益效果:The technical solutions provided by the embodiments of the present disclosure may include the following beneficial effects:

相较于在输出稳定的充电电流过程中对充电线阻抗进行检测,进而选择充电策略,本实施例在从初始充电电流值逐步增大充电器输出电流的过程中,对充电线阻抗进行检测,一方面,可以根据多个第一充电电流进行阻抗的精确检测,从而提高了阻抗计算的准确性,进而提高了充电策略选择的准确性,保证充电安全性。另一方面,将充电线的阻抗检测提前到输出稳定充电电流之前,如此,可以直接根据已经检测到的充电线的阻抗提供稳定充电电流,降低了因为稳定的充电电流过大导致充电线、充电器或移动终端损坏的风险。Compared with detecting the impedance of the charging line during the process of outputting a stable charging current, and then selecting a charging strategy, this embodiment detects the impedance of the charging line during the process of gradually increasing the output current of the charger from the initial charging current value. On the one hand, the impedance can be accurately detected according to multiple first charging currents, thereby improving the accuracy of impedance calculation, thereby improving the accuracy of charging strategy selection, and ensuring charging safety. On the other hand, the impedance detection of the charging line is advanced before the output of the stable charging current. In this way, the stable charging current can be provided directly according to the detected impedance of the charging line, which reduces the risk of the charging line and charging due to the stable charging current being too large. risk of damage to the device or mobile terminal.

应当理解的是,以上的一般描述和后文的细节描述仅是示例性和解释性的,并不能限制本公开。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 present disclosure.

附图说明Description of 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.

图1是根据一示例性实施例示出的一种充电控制方法的示意图;Fig. 1 is a schematic diagram showing a charging control method according to an exemplary embodiment;

图2是根据一示例性实施例示出的一种充电控制方法的流程图;Fig. 2 is a flow chart showing a charging control method according to an exemplary embodiment;

图3是根据一示例性实施例示出的另一种充电控制方法的流程图;Fig. 3 is a flow chart showing another charging control method according to an exemplary embodiment;

图4是根据一示例性实施例示出的又一种充电控制方法的流程图;Fig. 4 is a flow chart showing another charging control method according to an exemplary embodiment;

图5是根据一示例性实施例示出的一种充电控制装置的框图一;Fig. 5 is a first block diagram of a charging control device according to an exemplary embodiment;

图6是根据一示例性实施例示出的一种充电控制装置的框图二;Fig. 6 is a second block diagram of a charging control device according to an exemplary embodiment;

图7是根据一示例性实施例示出的一种充电控制装置的框图三;Fig. 7 is a third block diagram of a charging control device according to an exemplary embodiment;

图8是根据一示例性实施例示出的一种充电控制装置的框图四;Fig. 8 is a fourth block diagram of a charging control device according to an exemplary embodiment;

图9是根据一示例性实施例示出的一种充电控制装置的框图五;Fig. 9 is a fifth block diagram of a charging control device according to an exemplary embodiment;

图10是根据一示例性实施例示出的一种充电控制装置的框图六;Fig. 10 is a sixth block diagram of a charging control device according to an exemplary embodiment;

图11是根据一示例性实施例示出的一种充电控制装置的框图七。Fig. 11 is a seventh block diagram of a charging control device according to an exemplary embodiment.

具体实施方式Detailed ways

这里将详细地对示例性实施例进行说明,其示例表示在附图中。下面的描述涉及附图时,除非另有表示,不同附图中的相同数字表示相同或相似的要素。以下示例性实施例中所描述的实施方式并不代表与本发明相一致的所有实施方式。相反,它们仅是与如所附权利要求书中所详述的、本发明的一些方面相一致的装置和方法的例子。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, the same numerals in different drawings refer to the same or similar elements unless otherwise indicated. The implementations described in the following exemplary examples do not represent all implementations consistent with the present invention. Rather, they are merely examples of apparatuses and methods consistent with aspects of the invention as recited in the appended claims.

随着充电芯片技术的革新,大功率充电方案不断出现,带来了不同的充电体验。同时,也引入了安全性问题。由于充电方案的优越性和目前充电线阻抗的无标准性,当使用大功率充电器充电时,如果引用阻抗不一样的充电线,一来降低充电体验,延长充电时间;二来可能会导致充电器无法正常工作,更有甚者,会造成手机侧,或者充电器侧的损坏。With the innovation of charging chip technology, high-power charging solutions continue to emerge, bringing different charging experiences. At the same time, security issues are also introduced. Due to the superiority of the charging solution and the current non-standard impedance of the charging line, when using a high-power charger to charge, if a charging line with a different impedance is used, it will reduce the charging experience and prolong the charging time; The charger cannot work normally, what's more, it will cause damage to the mobile phone side or the charger side.

图1为根据一示例性实施例提供的一种充电控制方法的示意图。充电器501通过充电线506与移动终端中的电源管理芯片503相连,电源管理芯片503与移动终端中的电池502相连,接口504为充电器的输出接口,接口505为移动终端的输入接口,充电线506通过接口504接入充电器501,且充电线506通过接口505接入移动终端的电源管理芯片503。Fig. 1 is a schematic diagram of a charging control method provided according to an exemplary embodiment. The charger 501 is connected to the power management chip 503 in the mobile terminal through the charging line 506, the power management chip 503 is connected to the battery 502 in the mobile terminal, the interface 504 is the output interface of the charger, and the interface 505 is the input interface of the mobile terminal. The line 506 is connected to the charger 501 through the interface 504 , and the charging line 506 is connected to the power management chip 503 of the mobile terminal through the interface 505 .

在电源管理芯片503中,包括用于进行充电保护及电压采集的模块,以及开关控制模块。其中,进行充电保护和电压采集的模块用于判断是否激活阻抗检测功能,并在激活阻抗检测功能后获取接口504处的第一电压V1、以及输出第一充电电流I时接口505处的第二电压V2。The power management chip 503 includes a module for charging protection and voltage acquisition, and a switch control module. Among them, the module for charging protection and voltage collection is used to judge whether to activate the impedance detection function, and obtain the first voltage V1 at the interface 504 and the second voltage V1 at the interface 505 when the first charging current I is output after the impedance detection function is activated. Voltage V2.

图2是根据一示例性实施例示出的一种充电控制方法的流程图,该充电控制方法应用于移动终端中,该方法包括以下步骤:Fig. 2 is a flowchart showing a charging control method according to an exemplary embodiment, the charging control method is applied in a mobile terminal, and the method includes the following steps:

S101:与充电器进行充电协议握手。S101: Perform a charging protocol handshake with the charger.

在本实施例中,当充电器的输出接口与移动终端的输入接口之间连接充电线后,移动终端与充电器之间进行充电协议的握手。充电协议可包括:电池充电协议1.2(BC1.2)、快充协议2.0(QC2.0)、快充协议3.0(QC3.0)、功率传输协议(PD协议)或者私有协议等。In this embodiment, after the charging cable is connected between the output interface of the charger and the input interface of the mobile terminal, a charging protocol handshake is performed between the mobile terminal and the charger. 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 transmission protocol (PD protocol) or proprietary protocol, etc.

当移动终端与充电器握手不成功时,该方法包括:充电器不对移动终端进行充电。例如,充电器不输出电流。When the handshake between the mobile terminal and the charger fails, the method includes: the charger does not charge the mobile terminal. For example, a charger does not output current.

S102:当充电协议握手成功后,根据握手成功的充电协议判断是否启动阻抗检测功能。S102: After the charging protocol handshake is successful, judge whether to start the impedance detection function according to the charging protocol with the successful handshaking.

在S102中,可能包括:In S102, may include:

判断握手成功的充电协议是否属于预设充电协议;Determine whether the charging protocol with a successful handshake belongs to the default charging protocol;

当握手成功的充电协议属于预设充电协议时,确定启动阻抗检测功能;当握手成功的充电协议不属于预设充电协议时,确定不启动阻抗检测功能。When the charging protocol with successful handshake belongs to the preset charging protocol, it is determined to start the impedance detection function; when the charging protocol with successful handshake does not belong to the preset charging protocol, it is determined not to start the impedance detection function.

此处,预设充电协议可能包括:允许利用大于第一电流阈值的充电电流进行充电的协议。其中,第一电流阈值可为4A。Here, the preset charging protocol may include: a protocol allowing charging with a charging current greater than the first current threshold. Wherein, the first current threshold may be 4A.

当充电线的过流能力在3A以下时,充电电流按照现有充电线的阻抗进行大功率充电时,充电线的阻抗对充电效果影响较小。但当电流达到5A以上,在进行大功率充电时,为了保证充电效果和充电安全,对充电线的阻抗要求就非常高,充电线的阻抗需要在预设阻抗范围内(例如充电线的阻抗需要小于100毫欧姆)。When the over-current capability of the charging line is below 3A, the charging current will perform high-power charging according to the impedance of the existing charging line, and the impedance of the charging line will have little influence on the charging effect. However, when the current reaches above 5A, in order to ensure the charging effect and charging safety, the impedance requirement of the charging line is very high during high-power charging. The impedance of the charging line needs to be within the preset impedance range (for example, the impedance of the charging line needs to be less than 100 milliohms).

由于PD协议或者私有协议支持充电线3A以上的充电能力,其他充电协议的充电线过流能力基本都在3A以下。此时,预设充电协议可为PD协议或私有协议。Since the PD protocol or private protocol supports the charging capacity of the charging line above 3A, the overcurrent capacity of the charging line of other charging protocols is basically below 3A. At this time, the preset charging protocol may be a PD protocol or a private protocol.

当移动终端确定握手成功的充电协议不是预设充电协议时,移动终端向充电器发送控制指令,控制充电器对移动终端进行充电。此时,处于安全因素考虑,充电器的输出电流小于或等于第一电流阈值。具体地,第一电流阈值可以根据充电协议或充电线的性能决定确定。例如,当充电协议为私有协议时,第一电流阈值可为4A。When the mobile terminal determines that the charging protocol with a successful handshake is not the preset charging protocol, the mobile terminal sends a control command to the charger to control the charger to charge the mobile terminal. At this time, for safety reasons, the output current of the charger is less than or equal to the first current threshold. Specifically, the first current threshold may be determined according to the charging protocol or the performance of the charging line. For example, when the charging protocol is a private protocol, the first current threshold may be 4A.

当判断握手成功的充电协议是预设充电协议时,例如,握手成功的充电协议是PD协议或者私有协议,则移动终端确定激活检测阻抗线阻抗的功能,进而根据充电线的阻抗选择充电架构和充电策略。When it is judged that the charging protocol with a successful handshake is the preset charging protocol, for example, the charging protocol with a successful handshake is a PD protocol or a proprietary protocol, the mobile terminal determines to activate the function of detecting impedance line impedance, and then selects the charging architecture and charging strategy.

S103:当确定启动阻抗检测功能时,获取充电器输出接口处的第一电压;其中,充电器的输出接口处和移动终端的输入接口处连接有充电线。S103: When it is determined to start the impedance detection function, acquire the first voltage at the output interface of the charger; wherein, the output interface of the charger and the input interface of the mobile terminal are connected with a charging line.

在S103中,参照图1所示,第一电压可为在充电器501输出电流较小(例如充电器501输出电流为3mA)时,采集的充电器501的输出接口504处的电压,记为V1。此处,由于3mA的输出电流相较于充电器的第一充电电流很小,不影响对于充电线的阻抗计算,因此可以忽略不计。In S103, referring to FIG. 1, the first voltage may be 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), which is denoted as V1. Here, since the output current of 3 mA is small compared with the first charging current of the charger, it does not affect the calculation of the impedance of the charging line, so it can be ignored.

S104:向充电器发送第一控制指令;其中,第一控制指令,用于控制充电器以预设步长值从初始充电电流值逐步增大输出的第一充电电流。S104: Send a first control instruction to the charger; wherein, the first control instruction is used to control the charger to gradually increase the output first charging current from the initial charging current value with a preset step value.

在S104中,预设步长值和初始充电电流可根据充电协议进行确定。例如,预设步长值可能为200mA,初始充电电流可能为100mA。此时,S104可包括:向充电器发送第一控制指令,控制充电器以涓流充电方式向移动终端进行充电。In S104, the preset step value and the initial charging current can be determined according to the charging protocol. For example, the preset step value might be 200mA and the initial charge current might be 100mA. At this time, S104 may include: sending a first control instruction to the charger, and controlling the charger to charge the mobile terminal in a trickle charging manner.

具体地,移动终端为手机时,手机通过配置通道引脚(CC pin)与充电器沟通,向充电器发送第一控制指令,用于控制充电器按照输出电压为9V、初始充电电流值为100mA的标准向手机输出能量;然后以200ms为一个时间周期,每间隔200ms,以200mA为预设步长值逐步增大第一充电电流,直至第一充电电流增大到预设稳定充电电流。此处,预设稳定充电电流可根据充电协议或充电线的性能确定。例如,当充电协议为PD协议或私有协议时,预设稳定充电电流可为2A。Specifically, when the mobile terminal is a mobile phone, the mobile phone communicates with the charger through the configuration channel pin (CC pin), and sends the first control command to the charger, which is used to control the charger according to the output voltage of 9V and the initial charging current value of 100mA. The standard output energy to the mobile phone; then take 200ms as a time period, every 200ms, and use 200mA as the preset step value to gradually increase the first charging current until the first charging current increases to the preset stable charging current. Here, the preset stable charging current can be determined according to the charging protocol or the performance of the charging cable. For example, when the charging protocol is a PD protocol or a proprietary protocol, the preset stable charging current may be 2A.

相较于在输出稳定的充电电流过程中对充电线阻抗进行检测,进而选择充电策略,通过控制充电器以预设步长值从初始充电电流值逐步增大充电器输出的第一充电电流,以供移动终端可在第一充电电流逐步增大的阶段对充电线阻抗进行检测,一方面,移动终端可以根据多个第一充电电流进行阻抗的精确检测,从而提高了阻抗计算的准确性,进而提高了充电策略选择的准确性,保证充电安全性。Compared with detecting the impedance of the charging line during the process of outputting a stable charging current, and then selecting a charging strategy, by controlling the charger to gradually increase the first charging current output by the charger from the initial charging current value with a preset step value, In order for the mobile terminal to detect the impedance of the charging line when the first charging current gradually increases, on the one hand, the mobile terminal can accurately detect the impedance according to multiple first charging currents, thereby improving the accuracy of impedance calculation, In turn, the accuracy of charging strategy selection is improved, and charging safety is ensured.

另一方面,将充电线的阻抗检测提前到输出稳定充电电流之前,移动终端可以直接根据已经检测到的充电线的阻抗提供稳定充电电流,降低了因为稳定的充电电流过大导致充电线、充电器或移动终端损坏的风险。On the other hand, if the impedance detection of the charging line is advanced before the stable charging current is output, the mobile terminal can directly provide a stable charging current according to the detected impedance of the charging line, which reduces the risk of charging lines and charging caused by the stable charging current being too large. risk of damage to the device or mobile terminal.

S105:针对每一个第一充电电流,获取移动终端的输入接口处的第二电压。S105: For each first charging current, acquire a second voltage at an input interface of the mobile terminal.

参照图1所示,第二电压可为接口505处的电压,记为V2。此时,充电器501的输出电流为第一充电电流I。该第一充电电流I通过接口504、经充电线506,输入接口505,进而对移动终端进行充电。Referring to FIG. 1 , the second voltage may be the 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, through the charging line 506, and then charges the mobile terminal.

S106:根据第一电压、第二电压和第一充电电流,计算充电线的阻抗。S106: Calculate the impedance of the charging line according to the first voltage, the second voltage and the first charging current.

由于第一电压V1为充电器501输出电流较小(例如充电器501输出电流为3mA)时,采集的充电器501的输出接口504处的电压,较小的输出电流(3mA)相较于充电器501的第一充电电流很小,不影响对于充电线的阻抗计算,可以忽略不计。因此,根据欧姆定律(电阻=电压/电流),充电线的阻抗R=(V1-V2)/I。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 smaller output current (3mA) is compared with charging The first charging current of the charger 501 is very small, does not affect the impedance calculation of the charging line, and can be ignored. Therefore, according to Ohm's law (resistance=voltage/current), the impedance R=(V1-V2)/I of the charging line.

在S106中,可能包括:In S106, may include:

分别根据每一个第一充电电流,及各自对应的第一电压及第二电压,计算充电线在每个第一充电电流状态下的第一阻抗,并计算多个第一阻抗的方差。Calculate the 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 calculate the variance of the plurality of first impedances.

本公开实施例中,根据所得的方差与预设方差阈值之间的比较结果,设置了如下两种获得阻抗的方式:In the embodiment of the present disclosure, according to the comparison result between the obtained variance and the preset variance threshold, the following two ways of obtaining impedance are set:

方式一:method one:

若方差小于或等于预设方差阈值,则确定多个第一阻抗的平均值为充电线的阻抗。If the variance is less than or equal to the preset variance threshold, the average value of the plurality of first impedances is determined as the impedance of the charging line.

本实施例中,通过在逐步增大第一充电电流的过程中,根据每一个充电电流及其对应的第一电压和第二电压,计算充电线的第一阻抗,并在多个第一阻抗的方差小于或等于预设方差阈值时,确定多个第一阻抗的平均值为充电线的阻抗,提高了充电线阻抗计算的准确度,保证了充电效果,提高了用户体验。In this 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 its corresponding first voltage and second voltage, and the multiple first impedances When the variance of is less than or equal to the preset variance threshold, the average value of multiple first impedances is determined as the impedance of the charging line, which improves the accuracy of charging line impedance calculation, ensures the charging effect, and improves user experience.

方式二:Method 2:

若方差大于预设方差阈值,则输出提示充电过程存在异常的第一状态提醒,并向充电器发送第六控制指令;其中,第六控制指令,用于控制充电器停止输出电流。If the variance is greater than the preset variance threshold, output a first state alert indicating that there is an abnormality in the charging process, and send a sixth control instruction to the charger; wherein the sixth control instruction is used to control the charger to stop outputting current.

在计算充电线阻抗的过程中,方差大于预设方差阈值的原因可能包括:可能由于雷电、磁场等环境因素,或者其他人为因素导致充电器的输出的充电电流、输出电压不稳定,使得充电器的输出电流大于失效电流,导致充电线、充电器或移动终端发生损坏。若此时继续进行充电,充电线、充电器或移动终端发生损坏的几率增加。此处,该失效电流可为:使充电线、充电器或移动电源发生损坏的电流。In the process of calculating the charging line impedance, the reasons why the variance is greater than the preset variance threshold may include: environmental factors such as lightning, magnetic fields, or other human factors may cause the output charging current and output voltage of the charger to be unstable, making the charger The output current is greater than the failure current, resulting in damage to the charging cable, charger or mobile terminal. If you continue to charge at this time, the probability of damage to the charging cable, charger or mobile terminal will increase. Here, the failure current may be: a current that causes damage to the charging line, the charger or the mobile power supply.

输出提示充电过程存在异常的第一状态提醒,可能包括以下至少之一或组合:Outputting a first state reminder indicating that there is an abnormality in the charging process may include at least one or a combination of the following:

1)通过扬声器等输出声音提醒的模块,输出提示充电过程存在异常的提示音;1) A module that outputs a sound reminder through a speaker, etc., and outputs a sound that prompts that there is an abnormality in the charging process;

2)通过振动器等输出震动提醒的模块,输出提示充电过程存在异常的震动;2) Through the module that outputs vibration reminders such as vibrators, the output prompts that there is abnormal vibration during the charging process;

3)通过显示屏等输出文字提醒的显示模块,输出提示充电过程存在异常的文字信息。3) A display module that outputs text reminders through a display screen, etc., and outputs text information that prompts that there is an abnormality in the charging process.

本实施通过当方差大于预设方差阈值时,输出该第一状态提醒并控制充电器停止输出电流,保证了充电线、充电器和移动终端的安全性,提高了充电过程的智能性,有利于用户及时发现充电线或移动终端中出现了异常,保证了充电安全性。In this implementation, when the variance is greater than the preset variance threshold, the first state is output to remind and control the charger to stop the output current, which ensures the safety of the charging line, the charger and the mobile terminal, improves the intelligence of the charging process, and is beneficial The user discovers abnormalities in the charging cable or the mobile terminal in time, which ensures the safety of charging.

当充电线的阻抗计算过程异常时,该方法包括:When the impedance calculation process of the charging line is abnormal, the method includes:

输出提示充电线或移动终端存在异常的第二状态提醒,并向充电器发送第七控制指令;其中,第七控制指令用于控制充电器输出第四充电电流,第四充电电流小于或等于第一电流阈值。Outputting a second state reminder that there is an abnormality in the charging line or the mobile terminal, and sending a seventh control instruction to the charger; wherein, the seventh control instruction is used to control the charger to output a fourth charging current, and the fourth charging current is less than or equal to the first charging current. a current threshold.

充电线的阻抗计算过程异常的具体表现可能包括:计算得出的充电线的阻抗为负值、或无法计算出充电线的阻抗等。Specific manifestations of an abnormality in the impedance calculation process of the charging line may include: the calculated impedance of the charging line is a negative value, or the impedance of the charging line cannot be calculated.

导致充电线的阻抗计算过程异常的原因可能包括:移动终端或充电线出现硬件故障,例如,移动终端用于计算阻抗的模块发生损坏。Reasons for the abnormality of the impedance calculation process of the charging line may include: a hardware failure of the mobile terminal or the charging line, for example, a damage to a module of the mobile terminal used to calculate the impedance.

本实施例通过在阻抗计算过程异常时,输出该第二状态提醒,并控制充电器输出小于或等于第一电流阈值的第四充电电流,在保证充电安全的过程中,增加了充电过程的智能性,有利于用户及时发现充电线或移动终端中出现了异常,提高了用户体验。In this embodiment, when the impedance calculation process is abnormal, the second state reminder is output, and the charger is controlled to output the fourth charging current less than or equal to the first current threshold, which increases the intelligence of the charging process in the process of ensuring charging safety. It is beneficial for the user to discover abnormalities in the charging line or the mobile terminal in time, and improves the user experience.

S107:根据充电线的阻抗,发送充电控制指令。S107: Send a charging control command according to the impedance of the charging line.

具体地,在通过涓流充电方式逐渐增大充电器的第一充电电流阶段,当移动终端未能计算出充电线的阻抗时,充电器的第一充电电流最大会增加至预设稳定充电流,然后等待移动终端发送指令,充电器会根据移动终端发送的指令确定是否继续提升充电电流。此处,预设稳定充电电流可根据充电线的性能或充电协议进行设置。例如,当充电协议为PD协议或私有协议时,预设稳定充电电流可为2A。Specifically, in the stage of gradually increasing the first charging current of the charger by means of trickle charging, when the mobile terminal fails to calculate the impedance of the charging line, the first charging current of the charger will increase to a maximum of the preset stable charging current , and then wait for the mobile terminal to send an instruction, and the charger will determine whether to continue to increase the charging current according to the instruction sent by the mobile terminal. Here, the preset stable charging current can be set according to the performance of the charging cable 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 first charging current of the charger is gradually increased by means of trickle charging, when the mobile terminal has calculated the impedance of the charging line, the mobile terminal will send a charging control command to the charger according to the impedance.

当充电线的阻抗在预设阻抗范围内时,S106具体可能包括:When the impedance of the charging line is within the preset impedance range, S106 may specifically include:

向充电器发送第二控制指令;其中,第二控制指令,用于控制充电器增加输出电压,并输出第二充电电流,第二充电电流是根据与输出电压有对应关系的第一预设电流确定的。该预设阻抗范围可能为:0至100毫欧姆。Sending a second control instruction to the charger; wherein, the second control instruction is used to control the charger to increase the output voltage and output a second charging current, the second charging current is based on the first preset current corresponding to the output voltage definite. The preset impedance range may be: 0 to 100 milliohms.

第二充电电流可能为在保证充电器、充电线以及移动终端功能完好的情况下,充电线能够传输的最大充电电流。第一预设电流可以是充电协议中预先设定好的电流值。The second charging current may be the maximum charging current that the charging line can transmit under the condition that the charger, the charging line and the mobile terminal are guaranteed to be in good condition. The first preset current may be a preset current value in the charging protocol.

当充电线的阻抗在预设阻抗范围内时,移动终端发送第二控制指令控制充电器放开充电限制,增加输出电压并输出第二充电电流,以高压充电策略进行充电,电池则采用串联的方式被充电。When the impedance of the charging line is within the preset impedance range, the mobile terminal sends a second control command to control the charger to release the charging limit, increase the output voltage and output the second charging current, and charge with a high-voltage charging strategy, and the battery is connected in series. way is charged.

此处,高压充电策略可为:充电器输出电压为20V,输出电流为5A,经过放大电路,转换成10V的充电电压和10A的充电电流为电池充电。此时,放大电路可为电荷泵(chargepump)电路,第一预设电流可为10A。采用电荷泵的技术,可使能量的转换率高达97%以上。并且,电池采用高压串联的方式,可以最大限度的利用能量为电池充电,有利于提高充电效率。Here, the high-voltage charging strategy can be: the output voltage of the charger is 20V, and the output current is 5A, which is converted into a charging voltage of 10V and a charging current of 10A through an amplifier circuit to charge the battery. At this time, the amplifying circuit may be a charge pump circuit, and the first preset current may be 10A. Using charge pump technology, the energy conversion rate can be as high as 97%. Moreover, the battery adopts a high-voltage series connection method, which can maximize the use of energy to charge the battery, which is conducive to improving the charging efficiency.

本实施例在充电线的阻抗在预设阻抗范围内时,通过控制增大充电器的输出电压,调整输出电流,并输出第二充电电流,在保证充电安全的情况下,使充电电流最大化,提高充电效率。In this embodiment, when the impedance of the charging line is within the preset impedance range, the output voltage of the charger is controlled to increase, the output current is adjusted, and the second charging current is output to maximize the charging current while ensuring charging safety. , improve charging efficiency.

当充电线的阻抗不在预设阻抗范围内时,S106具体可包括:When the impedance of the charging line is not within the preset impedance range, S106 may specifically include:

向充电器发送第三控制指令,其中,第三控制指令,用于控制充电器输出第三充电电流,第三充电电流小于或等于第一电流阈值,第三充电电流小于第二充电电流。Sending a third control instruction to the charger, wherein the third control instruction is used to control 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 smaller than the second charging current.

当充电线的阻抗不在预设阻抗范围时,可启用低压充电架构,依照低压充电策略,通过低阻抗可控金属-氧化物-半导体(MOS)架构为手机充电。When the impedance of the charging line is not within the preset impedance range, the low-voltage charging architecture can be enabled, and the mobile phone can be charged through the low-impedance controllable metal-oxide-semiconductor (MOS) architecture according to the low-voltage charging strategy.

具体地,当充电线的阻抗不在预设阻抗范围内时,S106可包括:移动终端给充电器发出第三控制指令,控制充电器的输出电流限制在4A以内,且保持充电器的输出电压不变,保持9V至10V的输出电压。此时,移动终端启动控制低阻抗MOS架构的低压充电策略,为移动终端的电池进行充电,移动终端的电池是串联形式。Specifically, when the impedance of the charging line is not within the preset impedance range, S106 may include: the mobile terminal sends a third control command to the charger, controlling the output current of the charger to be within 4A, and keeping the output voltage of the charger within 4A. change, maintaining an output voltage of 9V to 10V. At this time, the mobile terminal starts a low-voltage charging strategy that controls the low-impedance MOS architecture to charge the battery of the mobile terminal, and the battery of the mobile terminal is connected in series.

低压充电策略的能量转换效率更高,可以达到99%。此时的能量转换方式则变为:充电器输出9V至10V的电压,最大4A的输出电流;而电池接收到的电压也是9V至10V,电流最大为4A。The energy conversion efficiency of the low-voltage charging strategy is higher, which can reach 99%. At this time, the energy conversion method becomes: the charger outputs a voltage of 9V to 10V, and the maximum output current is 4A; while the voltage received by the battery is also 9V to 10V, and the maximum current is 4A.

本实施例在充电线的阻抗不在预设阻抗范围内时,通过控制充电器输出小于或等于第一电流阈值的第三充电电流,对移动终端进行充电,保证了充电的安全性。In this embodiment, when the impedance of the charging line is not within the preset impedance range, the mobile terminal is charged by controlling the charger to output a third charging current less than or equal to the first current threshold, thereby ensuring the safety of charging.

综上所述,本实施例在涓流充电阶段,根据充电线的阻抗选择充电策略,降低了在大电流充电过程中,由于充电线阻抗业界不统一而出现充电体验较差、充电效果不佳的几率,提高了充电安全和用户体验。在一些实施例中,该方法还包括:To sum up, in the trickle charging stage of this embodiment, the charging strategy is selected according to the impedance of the charging line, which reduces the poor charging experience and poor charging effect during the high-current charging process due to the non-uniform charging line impedance in the industry. The probability of charging improves charging safety and user experience. In some embodiments, the method also includes:

获取移动终端中电池的电池电压;Obtain the battery voltage of the battery in the mobile terminal;

当电池电压从低于预设饱和电压经过充电达到预设饱和电压时,向充电器发送第四控制指令;其中,第四控制指令,用于控制充电器减小输出电流。When the battery voltage reaches the preset saturation voltage after being charged from being lower than the preset saturation voltage, a fourth control command is sent to the charger; wherein, the fourth control command is used to control the charger to reduce the output current.

在充电过程中,由于电池内部有阻抗,在电池充电电流较大的情况下,电池电压增加的速率很快,使得电池电压迅速增加至预设饱和电压。此时,由于充电线存在阻抗,充电线两端的压降较大,使得给电池充电的输入电压小于电池电压,导致电池虽然没有实际达到充电饱和状态,但无法继续进行充电。此处,预设饱和电压可以根据充电协议或电池额定电压确定。例如,当电池额定电压为10V时,预设饱和电压可设置为8.8V。During the charging process, due to the internal impedance of the battery, the battery voltage increases rapidly when the battery charging current is large, so that the battery voltage rapidly increases to the preset saturation voltage. At this time, due to the impedance of the charging line, the voltage drop at both ends of the charging line is large, so that the input voltage for charging the battery is lower than the battery voltage, resulting in that the battery cannot continue to charge although it has not actually reached the state of charging saturation. Here, the preset saturation voltage can be determined according to the charging protocol or the rated voltage of the battery. For example, when the rated battery voltage is 10V, the preset saturation voltage can be set to 8.8V.

在电池电压达到预设饱和电压后,通过减小充电器的输出电流,使得充电线两端的压降减小,提高了移动终端输入接口处的电压,进而使得给电池充电的输入电压大于电池电压,保证能够继续对电池进行充电。After the battery voltage reaches the preset saturation voltage, by reducing the output current of the charger, the voltage drop at both ends of the charging line is reduced, and the voltage at the input interface of the mobile terminal is increased, so that the input voltage for charging the battery is greater than the battery voltage , to ensure that the battery can continue to be charged.

本实施例在电池经过充电,使电池电压上升到预设饱和电压时,通过减小充电器的输出电流,使得充电线两端的压降减小,提高了移动终端输入接口处的电压,进而使得给电池充电的输入电压大于电池电压,保证能够继续对电池进行充电,提高了充电效果和充电体验。In this embodiment, when the battery is charged and the battery voltage rises to the preset saturation voltage, the voltage drop at both ends of the charging line is reduced by reducing the output current of the charger, and the voltage at the input interface of the mobile terminal is increased, thereby making the The input voltage for charging the battery is greater than the battery voltage, ensuring that the battery can continue to be charged, improving the charging effect and charging experience.

当电池电压再次达到预设饱和电压时,判断充电器的输出电流与第一电流阈值的大小。当充电器的输出电流大于第一电流阈值时,移动终端再次向充电器发送第四控制指令,用于控制充电器减小输出电流。如此循环,直至充电器的输出电流减小至第一电流阈值。When the battery voltage reaches the preset saturation voltage again, the output current of the charger and the value of the first current threshold are judged. When the output current of the charger is greater 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. This cycle continues until the output current of the charger decreases to the first current threshold.

当充电器的输出电流减小到等于第一电流阈值时,该方法还可能包括:When the output current of the charger is reduced to be equal to the first current threshold, the method may further include:

向充电器发送第五控制指令;其中,第五控制指令用于控制充电器减小输出电压,并保持输出该输出电流。Sending a fifth control instruction to the charger; wherein, the fifth control instruction is used to control the charger to reduce the output voltage and keep outputting the output current.

当充电器的输出电流减小到等于第一电流阈值时,移动终端输出的第五控制指令,以使充电器切换至上述可控低阻抗,MOS架构的低压充电模式。When the output current of the charger is reduced to be equal to the first current threshold, the mobile terminal outputs a fifth control command to switch the charger to the above-mentioned controllable low-impedance, MOS low-voltage charging mode.

在本实施例中,当充电器的输出电流减小到等于第一电流阈值时,通过减小输出电压,减小充电线的发热量,降低能量损耗,提高充电效率。In this embodiment, when the output current of the charger is reduced to be equal to the first current threshold, by reducing the output voltage, the heating value of the charging line is reduced, the energy loss is reduced, and the charging efficiency is improved.

综上所述,相较于在输出稳定的充电电流过程中对充电线阻抗进行检测,进而选择充电策略,本公开提供的充电控制方法,在从初始充电电流值逐步增大充电器输出电流的过程中,对充电线阻抗进行检测,并根据检测的阻抗确定充电策略,一方面,可以根据多个第一充电电流进行阻抗的精确检测,从而提高了阻抗计算的准确性,进而提高了充电策略选择的准确性,保证充电安全性。另一方面,将充电线的阻抗检测提前到输出稳定充电电流之前,如此,可以直接根据已经检测到的充电线的阻抗提供稳定充电电流,降低了因为稳定的充电电流过大导致充电线、充电器或移动终端损坏的风险。To sum up, compared with detecting the impedance of the charging line during the process of outputting a stable charging current, and then selecting a charging strategy, the charging control method provided by the present disclosure gradually increases the output current of the charger from the initial charging current value. In the process, the impedance of the charging line is detected, and the charging strategy is determined according to the detected impedance. On the one hand, the impedance can be accurately detected according to multiple first charging currents, thereby improving the accuracy of the impedance calculation and further improving the charging strategy. The accuracy of the selection ensures the safety of charging. On the other hand, the impedance detection of the charging line is advanced before the output of the stable charging current. In this way, the stable charging current can be provided directly according to the detected impedance of the charging line, which reduces the risk of the charging line and charging due to the stable charging current being too large. risk of damage to the device or mobile terminal.

图3是根据一示例性实施例提供的一种充电方法的流程示意图,该方法应用于充电器中,该方法包括以下步骤:Fig. 3 is a schematic flowchart of a charging method provided according to an exemplary embodiment, the method is applied in a charger, and the method includes the following steps:

S201:与移动终端进行充电协议握手。S201: Perform a charging protocol handshake with the mobile terminal.

在本实施例中,充电协议可包括:电池充电协议1.2(BC1.2)、快充协议2.0(QC2.0)、快充协议3.0(QC3.0)、功率传输协议(PD协议)或者私有协议等。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 private agreement etc.

S202:当充电协议握手成功后,向移动终端发送输出的第一电压;其中,第一电压为充电器的输出接口处的电压,充电器的输出接口处和移动终端的输入接口处连接有充电线。S202: After the handshake of the charging protocol is successful, send the output first voltage to the mobile terminal; wherein, the first voltage is the voltage at the output interface of the charger, and the output interface of the charger is connected to the input interface of the mobile terminal. Wire.

S203:基于移动终端的第一控制指令,以预设步长值从初始充电电流值逐步增大输出的第一充电电流;其中,每一个第一充电电流,用于供移动终端计算充电线的阻抗。S203: Based on the first control instruction of the mobile terminal, gradually increase the output first charging current from the initial charging current value with a preset step value; wherein, each first charging current is used for the mobile terminal to calculate the charging line impedance.

S204:基于移动终端发送的充电控制指令,向移动终端进行充电;其中,充电控制指令是根据充电线的阻抗确定的。S204: Based on the charging control command sent by the mobile terminal, charge the mobile terminal; wherein, the charging control command is determined according to the impedance of the charging line.

当充电线的阻抗在预设阻抗范围内时,S204可能包括:When the impedance of the charging line is within the preset impedance range, S204 may include:

基于移动终端发送的第二控制指令,增大输出电压,并输出第二充电电流;其中,第二充电电流是根据与输出电压有对应关系的第一预设电流确定的。Based on the second control instruction sent by the mobile terminal, the output voltage is increased, and a second charging current is output; wherein, the second charging current is determined according to a first preset current corresponding to the output voltage.

该预设阻抗范围可能为:0至100毫欧姆。The preset impedance range may be: 0 to 100 milliohms.

本实施例当充电线的阻抗在预设阻抗范围内时,通过增大输出电压,调整输出电流,并输出第二充电电流,在保证充电安全的情况下,使充电电流最大化,提高充电效率。In this embodiment, when the impedance of the charging line is within the preset impedance range, by increasing the output voltage, adjusting the output current, and outputting the second charging current, the charging current is maximized and the charging efficiency is improved while ensuring charging safety. .

当充电线的阻抗不在预设阻抗范围内时,S204可能包括:When the impedance of the charging line is not within the preset impedance range, S204 may include:

基于移动终端发送的第三控制指令,输出第三充电电流;其中,第三充电电流小于或等于第一电流阈值,第三充电电流小于第二充电电流。Based on the third control instruction sent by the mobile terminal, a third charging current is output; wherein, the third charging current is less than or equal to the first current threshold, and the third charging current is smaller than the second charging current.

示例性地,第一电流阈值可以根据充电协议确定。例如,当充电协议为私有协议时,第一电流阈值可为4A。Exemplarily, the first current threshold can be determined according to a charging protocol. For example, when the charging protocol is a private protocol, the first current threshold may be 4A.

本实施例在充电线的阻抗不在预设阻抗范围内时,通过输出小于或等于第一电流阈值的第三充电电流,对移动终端进行充电,保证了充电的安全性。In this embodiment, 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 less than or equal to the first current threshold, thereby ensuring the safety of charging.

在S204中,可能包括:In S204, may include:

基于移动终端发送的第六控制指令,停止输出电流;其中,第六控制指令是根据与每一个第一充电电流对应的第一阻抗的方差确定的。Based on the sixth control instruction sent by the mobile terminal, the output current is stopped; wherein, the sixth control instruction is determined according to the variance of the first impedance corresponding to each first charging current.

在计算充电线阻抗的过程中,可能由于雷电、磁场等环境因素,或者其他人为因素导致充电器的输出的充电电流、输出电压不稳定,使得充电器的输出电流大于失效电流,导致该方差大于预设方差阈值。此处,该失效电流可为:使充电线、充电器或移动电源发生损坏的电流。若此时继续进行充电,充电线、充电器或移动电源发生损坏的几率增加。In the process of calculating the impedance of the charging line, environmental factors such as lightning and magnetic fields, or other human factors may cause the output charging current and output voltage of the charger to be unstable, so that the output current of the charger is greater than the failure current, resulting in a variance greater than Preset variance threshold. Here, the failure current may be: a current that causes damage to the charging line, the charger or the mobile power supply. If you continue to charge at this time, the chances of damage to the charging cable, charger or power bank will increase.

移动终端分别根据每个第一充电电流、及各自对应的第一电压和第二电压,计算出充电线在每个第一充电电流状态下的第一阻抗,并计算出多个第一阻抗的方差。当移动终端判断该方差大于预设方差阈值时,充电器基于移动终端该第六控制指令,停止输出电流,降低了充电器、充电线和移动终端被损坏的风险,保证了充电安全性。The mobile terminal calculates the first impedance of the charging line at each first charging current state according to each first charging current and the corresponding first voltage and second voltage respectively, and calculates a plurality of first impedances variance. When the mobile terminal judges that the variance is greater than the preset variance threshold, the charger stops outputting current based on the sixth control instruction of the mobile terminal, which reduces the risk of damage to the charger, charging line and mobile terminal, and ensures charging safety.

当充电线的阻抗计算过程异常时,S204可能包括:When the impedance calculation process of the charging line is abnormal, S204 may include:

基于移动终端发送的第七控制指令,输出第四充电电流;其中,第四充电电流小于或等于第一电流阈值。Based on the seventh control instruction sent by the mobile terminal, a fourth charging current is output; wherein, the fourth charging current is less than or equal to the first current threshold.

充电线的阻抗计算过程异常的具体表现可能包括:计算得出的充电线的阻抗为负值、或无法计算出充电线的阻抗等。Specific manifestations of an abnormality in the impedance calculation process of the charging line may include: the calculated impedance of the charging line is a negative value, or the impedance of the charging line cannot be calculated.

导致充电线的阻抗计算过程异常的原因可能包括:移动终端或充电线出现硬件故障,例如,移动终端用于计算阻抗的模块发生损坏。Reasons for the abnormality of the impedance calculation process of the charging line may include: a hardware failure of the mobile terminal or the charging line, for example, a damage to a module of the mobile terminal used to calculate the impedance.

本实施例在阻抗计算过程异常时,基于移动终端的第七控制指令,输出小于或等于第一电流阈值的第四充电电流,保证了充电安全性。In this embodiment, when the impedance calculation process is abnormal, the fourth charging current less than or equal to the first current threshold is output based on the seventh control instruction of the mobile terminal, thereby ensuring charging safety.

当移动终端中电池的电池电压从低于预设饱和电压经过充电达到预设饱和电压时,该方法可包括:When the battery voltage of the battery in the mobile terminal reaches the preset saturation voltage after being charged from being lower than the preset saturation voltage, the method may include:

基于移动终端发送的第四控制指令,减小输出电流。Based on the fourth control instruction sent by the mobile terminal, the output current is reduced.

在充电过程中,由于电池内部有阻抗,在电池充电电流较大的情况下,电池电压增加的速率很快,使得电池电压迅速增加至预设饱和电压。此时,由于充电线存在阻抗,充电线两端的压降较大,使得给电池充电的输入电压小于电池电压,导致电池虽然没有实际达到充电饱和状态,但无法继续进行充电。此处,预设饱和电压可以根据充电协议或电池额定电压确定。例如,当电池额定电压为10V时,预设饱和电压可设置为8.8V。During the charging process, due to the internal impedance of the battery, the battery voltage increases rapidly when the battery charging current is large, so that the battery voltage rapidly increases to the preset saturation voltage. At this time, due to the impedance of the charging line, the voltage drop at both ends of the charging line is large, so that the input voltage for charging the battery is lower than the battery voltage, resulting in that the battery cannot continue to charge although it has not actually reached the state of charging saturation. Here, the preset saturation voltage can be determined according to the charging protocol or the rated voltage of the battery. For example, when the rated battery voltage is 10V, the preset saturation voltage can be set to 8.8V.

在电池电压达到预设饱和电压后,通过减小充电器的输出电流,使得充电线两端的压降减小,提高了移动终端输入接口处的电压,进而使得给电池充电的输入电压大于电池电压,保证能够继续对电池进行充电。After the battery voltage reaches the preset saturation voltage, by reducing the output current of the charger, the voltage drop at both ends of the charging line is reduced, and the voltage at the input interface of the mobile terminal is increased, so that the input voltage for charging the battery is greater than the battery voltage , to ensure that the battery can continue to be charged.

本实施例在电池经过充电,使电池电压上升到预设饱和电压时,通过减小输出电流,使得充电线两端的压降减小,提高了移动终端输入接口处的电压,进而使得给电池充电的输入电压大于电池电压,保证能够继续对电池进行充电,提高了充电效果。In this embodiment, when the battery is charged and the battery voltage rises to the preset saturation voltage, the voltage drop at both ends of the charging line is reduced by reducing the output current, which increases the voltage at the input interface of the mobile terminal, thereby allowing the battery to be charged The input voltage of the battery is greater than the battery voltage, which ensures that the battery can continue to be charged and improves the charging effect.

当电池电压再次达到预设饱和电压时,且充电器的输出电流大于第一电流阈值时,充电器再次给予第四控制指令减小输出电流。如此循环,直至充电器的输出电流减小至第一电流阈值。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 the fourth control instruction to reduce the output current again. This cycle continues until the output current of the charger decreases to the first current threshold.

当充电器的输出电流减小到第一电流阈值时,该方法可能包括:When the output current of the charger decreases to a first current threshold, the method may include:

基于移动终端发送的第五控制指令,减小输出电压,并保持输出该输出电流。Based on the fifth control instruction sent by the mobile terminal, the output voltage is reduced, and the output current is maintained.

在本实施例中,当充电器的输出电流减小到等于第一电流阈值时,通过减小输出电压,减小充电线的发热量,降低能量损耗,提高充电效率。In this embodiment, when the output current of the charger is reduced to be equal to the first current threshold, by reducing the output voltage, the heating value of the charging line is reduced, the energy loss is reduced, and the charging efficiency is improved.

综上所述,相较于在输出稳定的充电电流过程中对充电线阻抗进行检测,进而选择充电策略,本公开提供的充电控制方法,在基于移动终端的第一控制指令,从初始充电电流值逐步增大充电器的输出电流的过程中,对充电线阻抗进行检测,一方面,可供移动终端根据多个第一充电电流进行阻抗的精确检测,从而提高了阻抗计算的准确性,进而提高了充电策略选择的准确性,保证充电安全性。另一方面,将充电线的阻抗检测提前到输出稳定充电电流之前,如此,可以直接根据已经检测到的充电线的阻抗提供稳定充电电流,降低了因为稳定的充电电流过大导致充电线、充电器或移动终端损坏的风险。In summary, compared with detecting the impedance of the charging line during the process of outputting a stable charging current, and then selecting a charging strategy, the charging control method provided by the present disclosure is based on the first control command of the mobile terminal, starting from the initial charging current In the process of gradually increasing the output current of the charger, the impedance of the charging line is detected. On the one hand, it can be used for the mobile terminal to accurately detect the impedance according to multiple first charging currents, thereby improving the accuracy of the impedance calculation. The accuracy of charging strategy selection is improved to ensure charging safety. On the other hand, the impedance detection of the charging line is advanced before the output of the stable charging current. In this way, the stable charging current can be provided directly according to the detected impedance of the charging line, which reduces the risk of the charging line and charging due to the stable charging current being too large. risk of damage to the device or mobile terminal.

图4是根据一示例性实施例提供的一种充电方法的流程示意图,应用于移动终端和充电器中,该方法包括以下步骤:Fig. 4 is a schematic flowchart of a charging method provided according to an exemplary embodiment, which is applied to a mobile terminal and a charger, and the method includes the following steps:

S10:当检测到充电器通过充电线接入移动终端时,移动终端与该充电器进行充电协议握手。S10: When detecting that the charger is connected to the mobile terminal through the charging cable, the mobile terminal performs a charging protocol handshake with the charger.

当移动终端与充电器的充电协议握手失败时,执行S21:充电器不对移动终端进行充电。When the charging protocol handshake between the mobile terminal and the charger fails, perform S21: the charger does not charge the mobile terminal.

当移动终端与充电器的充电协议握手成功时,执行S22:移动终端根据握手成功的充电协议判断是否启动阻抗检测功能。When the handshake of the charging protocol between the mobile terminal and the charger succeeds, execute S22: the mobile terminal judges whether to start the impedance detection function according to the charging protocol of the successful handshake.

S22可能包括:移动终端判断握手成功的充电协议是否属于预设充电协议;其中,当握手成功的充电协议属于预设充电协议时,移动终端启动阻抗检测功能;当握手成功的充电协议不属于预设充电协议时,移动终端不启动阻抗检测功能。S22 may include: the mobile terminal judges whether the charging protocol with a successful handshake belongs to the preset charging protocol; wherein, when the charging protocol with a successful handshake belongs to the preset charging protocol, the mobile terminal starts the impedance detection function; when the charging protocol with a successful handshake does not belong to the preset charging protocol When the charging protocol is set, the mobile terminal does not start the impedance detection function.

预设充电协议可包括:允许利用大于第一电流阈值的充电电流进行充电的协议。例如,预设充电协议可包括:PD协议或私有协议。其中,第一电流阈值可根据预设充电协议确定。此处,第一电流阈值可为4A。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 private protocol. Wherein, the first current threshold can be determined according to a preset charging protocol. Here, the first current threshold may be 4A.

当移动终端确定不启动阻抗检测功能时,执行S31:移动终端向充电器发送第八控制指令,充电器基于第八控制指令输出第五充电电流;其中,第五充电电流小于或等于第一电流阈值。When the mobile terminal determines not to start the impedance detection function, execute S31: the mobile terminal sends the eighth control instruction to the charger, and the charger outputs the fifth charging current based on the eighth control instruction; wherein, the fifth charging current is less than or equal to the first current threshold.

当移动终端确定启动阻抗检测功能时,执行S32:移动终端向充电器发送获取请求;基于该获取请求,充电器向移动终端发送输出的第一电压;其中,第一电压为充电器的输出接口处的电压。When the mobile terminal determines to start the impedance detection function, execute S32: the mobile terminal sends an acquisition request to the charger; based on the acquisition request, the charger sends the first output voltage to the mobile terminal; where the first voltage is the output interface of the charger the voltage at.

S40:移动终端向充电器发送第一控制指令;充电器基于该第一控制指令,以预设步长值从初始充电电流值逐步增大输出的第一充电电流。S40: The mobile terminal sends a first control instruction to the charger; based on the first control instruction, the charger gradually increases the output first charging current from the initial charging current value with a preset step value.

S50:移动终端针对每一个第一充电电流,获取移动终端的输入接口处的第二电压;S50: The mobile terminal acquires a second voltage at the input interface of the mobile terminal for each first charging current;

S60:移动终端根据第一电压、第二电压和第一充电电流,计算充电线的阻抗。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:移动终端根据充电线的阻抗,向充电器发送充电控制指令;充电器根据接收到的充电控制指令,向移动终端进行充电。S70: The mobile terminal sends a charging control instruction to the charger according to the impedance of the charging line; the charger charges the mobile terminal according to the received charging control instruction.

综上所述,相较于在输出稳定的充电电流过程中对充电线阻抗进行检测,进而选择充电策略,本公开提供的充电控制方法,在充电器基于移动终端的第一控制指令,从初始充电电流值逐步增大充电器的输出电流的过程中,利用移动终端对充电线阻抗进行检测,一方面,可供移动终端根据多个第一充电电流进行阻抗的精确检测,从而提高了阻抗计算的准确性,进而提高了充电策略选择的准确性,保证充电安全性。另一方面,将充电线的阻抗检测提前到输出稳定充电电流之前,如此,可以直接根据已经检测到的充电线的阻抗提供稳定充电电流,降低了因为稳定的充电电流过大导致充电线、充电器或移动终端损坏的风险。In summary, compared to detecting the impedance of the charging line during the process of outputting a stable charging current, and then selecting a charging strategy, the charging control method provided by the present disclosure, based on the first control command of the mobile terminal, starts from the initial When the charging current value gradually increases the output current of the charger, the mobile terminal is used to detect the impedance of the charging line. On the one hand, the mobile terminal can accurately detect the impedance according to multiple first charging currents, thereby improving the impedance calculation. Accuracy, and then improve the accuracy of charging strategy selection, to ensure the safety of charging. On the other hand, the impedance detection of the charging line is advanced before the output of the stable charging current. In this way, the stable charging current can be provided directly according to the detected impedance of the charging line, which reduces the risk of the charging line and charging due to the stable charging current being too large. risk of damage to the device or mobile terminal.

图5是根据一示例性实施例提供的一种充电控制装置300的框图,装置300包括:Fig. 5 is a block diagram of a charging control device 300 provided according to an exemplary embodiment, and the device 300 includes:

第一电压获取模块301,用于获取充电器输出接口处的第一电压;其中,充电器的输出接口处和移动终端的输入接口处连接有充电线;The first voltage acquisition module 301 is configured to acquire the first voltage at the output interface of the charger; wherein, a charging line is connected to the output interface of the charger and the input interface of the mobile terminal;

第一控制模块302,用于向充电器发送第一控制指令;其中,第一控制指令,用于控制充电器以预设步长值从初始充电电流值逐步增大输出的第一充电电流;The first control module 302 is configured to send a first control instruction to the charger; wherein the first control instruction is used to control the charger to gradually increase the output first charging current from the initial charging current value with a preset step value;

第一电压获取模块301,还用于针对每一个第一充电电流,获取移动终端的输入接口处的第二电压;The first voltage obtaining module 301 is further configured to obtain a second voltage at the input interface of the mobile terminal for each first charging current;

第一计算模块303,用于根据第一电压、第二电压和第一充电电流,计算充电线的阻抗;The first calculation module 303 is configured to calculate the impedance of the charging line according to the first voltage, the second voltage and the first charging current;

第一控制模块302,还用于根据充电线的阻抗,发送充电控制指令。The first control module 302 is further configured to send a charging control command according to the impedance of the charging line.

在一些实施例中,第一控制模块302,具体用于当充电线的阻抗在预设阻抗范围内时,向充电器发送第二控制指令;其中,第二控制指令,用于增加充电器的输出电压,并输出第二充电电流,第二充电电流是根据与输出电压有对应关系的第一预设电流确定的。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; wherein, the second control instruction is used to increase the output voltage, and output a second charging current, the second charging current is determined according to the first preset current corresponding to the output voltage.

在一些实施例中,第一控制模块302,具体用于当充电线的阻抗不在预设阻抗范围内时,向充电器发送第三控制指令;其中,第三控制指令,用于控制充电器输出第三充电电流,第三充电电流小于或等于第一电流阈值,第三充电电流小于第二充电电流。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; wherein, the third control instruction is used to control the output of the charger. The third charging current, the third charging current is less than or equal to the first current threshold, the third charging current is smaller than the second charging current.

在一些实施例中,第一电压获取模块301,还用于获取移动终端中电池的电池电压;In some embodiments, the first voltage obtaining module 301 is also used to obtain the battery voltage of the battery in the mobile terminal;

第一控制模块302,还用于当电池电压从低于预设饱和电压经过充电达到预设饱和电压时,向充电器发送第四控制指令;其中,第四控制指令,用于减小充电器的输出电流。The first control module 302 is also used to send a fourth control instruction to the charger when the battery voltage reaches the preset saturation voltage after charging from lower than the preset saturation voltage; wherein, the fourth control instruction is used to reduce the charging voltage of the charger output current.

在一些实施例中,第一控制模块302,还用于当充电器的输出电流减小到第一电流阈值时,向充电器发送第五控制指令;其中,第五控制指令,用于减小充电器的输出电压,并保持输出该输出电流。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; wherein, the fifth control instruction is used to reduce The output voltage of the charger, and keep outputting the output current.

在一些实施例中,第一计算模块303,具体用于分别根据每一个第一充电电流,及各自对应的第一电压及第二电压,计算充电线在每一个第一充电电流状态下的第一阻抗;第一计算模块303,还用于计算多个第一阻抗的方差。In some embodiments, the first calculation module 303 is specifically configured to calculate the first voltage 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. An impedance; the first calculation module 303 is also used to calculate the variance of multiple first impedances.

当方差小于或等于预设方差阈值时,第一计算模块确定多个第一阻抗的平均值为充电线的阻抗。When the variance is less than or equal to the preset variance threshold, the first calculation module determines the average value of the plurality of first impedances as the impedance of the charging line.

在一些实施例中,如图6所示,装置300还包括:In some embodiments, as shown in FIG. 6, the device 300 further includes:

第一输出模块304,用于当方差大于预设方差阈值时,输出提示充电过程存在异常的第一状态提醒;The first output module 304 is configured to, when the variance is greater than a preset variance threshold, output a first state reminder indicating that there is an abnormality in the charging process;

第一电压控制模块301,用于向充电器发送第六控制指令;其中,第六控制指令,用于控制充电器停止输出电流。The first voltage control module 301 is configured to send a sixth control command to the charger; wherein, the sixth control command is used to control the charger to stop outputting current.

在本实施例中,第一输出模块可包括:扬声器等输出声音提醒的模块、振动器等输出震动提醒的模块、显示屏等输出文字提醒的显示模块等。In this embodiment, the first output module may include: a module for outputting sound reminders such as a speaker, a module for outputting vibration reminders such as a vibrator, and a display module for outputting text reminders such as a display screen.

在一些实施例中,第一输出模块304,还用于当充电线的阻抗计算过程异常时,输出提示充电线或移动终端存在异常的第二状态提醒;In some embodiments, the first output module 304 is further configured to output a second status reminder indicating that the charging line or the mobile terminal is abnormal when the impedance calculation process of the charging line is abnormal;

第一控制模块302,用于向充电器发送第七控制指令;其中,第七控制指令,用于控制充电器输出第四充电电流,第四充电电流小于或等于第一电流阈值。The first control module 302 is configured to send a seventh control instruction to the charger; wherein, the seventh control instruction is configured to control the charger to output a fourth charging current, and the fourth charging current is less than or equal to the first current threshold.

在一些实施例中,如图7所示,装置300还包括:In some embodiments, as shown in FIG. 7 , the device 300 further includes:

第一协议握手模块305,用于与充电器进行充电协议握手;The first protocol handshake module 305 is configured to perform a charging protocol handshake with the charger;

第一判断模块306,用于当充电协议握手成功后,根据握手成功的充电协议判断是否启动阻抗检测功能;The first judging module 306 is used to judge whether to start the impedance detection function according to the charging protocol with successful handshake after the charging protocol handshake is successful;

第一执行模块307,用于当确定启动阻抗检测功能时,获取充电器的输出接口处的第一电压。The first execution module 307 is configured to acquire the first voltage at the output interface of the charger when it is determined to start the impedance detection function.

图8是根据一示例性实施例提供的一种充电控制装置400的框图,装置400包括:Fig. 8 is a block diagram of a charging control device 400 provided according to an exemplary embodiment, and the device 400 includes:

电压输出模块401,用于向移动终端发送输出的第一电压;其中,第一电压为充电器的输出线接口处的电压,充电器的输出接口处和移动终端的输入接口处连接有充电线;The voltage output module 401 is configured to send the output first voltage to the mobile terminal; wherein, the first voltage is the voltage at the output line interface of the charger, and a charging line is connected between the output interface of the charger and the input interface of the mobile terminal ;

电流输出模块402,用于以预设步长值从初始充电电流值逐步增大输出的第一充电电流;其中,每一个第一充电电流,用于供移动终端计算充电线的阻抗;The current output module 402 is configured to gradually increase the output first charging current from the initial charging current value with a preset step value; wherein, each first charging current is used for the mobile terminal to calculate the impedance of the charging line;

第二控制模块403,用于基于移动终端发送的充电控制指令,向移动终端进行充电;其中,充电控制指令是根据充电线的阻抗确定的。The second control module 403 is configured to charge the mobile terminal based on the charging control instruction sent by the mobile terminal; wherein, the charging control instruction is determined according to the impedance of the charging line.

在一些实施例中,第二控制模块403,具体用于当充电线的阻抗在预设阻抗范围内时,基于移动终端发送的第二控制指令,增大输出电压,并控制电流输出模块402输出第二充电电流;其中,第二充电电流是根据与输出电压有对应关系的第一预设电流确定的。In some embodiments, the second control module 403 is specifically configured to increase the output voltage based on the second control command sent by the mobile terminal when the impedance of the charging line is within the preset impedance range, and control the current output module 402 to output The second charging current; wherein, the second charging current is determined according to the first preset current corresponding to the output voltage.

在一些实施例中,第二控制模块403,具体用于当充电线的阻抗不在预设阻抗范围内时,基于移动终端发送的第三控制指令,控制电流输出模块402输出第三充电电流;其中第三充电电流小于或等于第一电流阈值,第三充电电流小于第二充电电流。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 the 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 smaller than the second charging current.

在一些实施例中,第二控制模块403,还用于当移动终端中电池的电池电压从低于预设饱和电压经过充电达到预设饱和电压时,基于移动终端发送的第四控制指令,减小输出电流。In some embodiments, the second control module 403 is further configured to: when the battery voltage of the battery in the mobile terminal reaches the preset saturation voltage after charging from lower than the preset saturation voltage, based on the fourth control instruction sent by the mobile terminal, reduce small output current.

在一些实施例中,第二控制模块403,还用于当输出电流减小到第一电流阈值时,基于移动终端发送的第五控制指令,减小输出电压,并控制电流输出模块402保持输出该输出电流。In some embodiments, the second control module 403 is further configured to reduce the output voltage based on the fifth control instruction sent by the mobile terminal when the output current decreases to the first current threshold, and control the current output module 402 to maintain the output the output current.

在一些实施例中,第二控制模块403,还用于基于终端发送的第六控制指令,控制电流输出模块402停止输出电流;其中,第六控制指令是根据与每一个第一充电电流对应的第一阻抗的方差确定的。In some embodiments, the second control module 403 is further configured to control the current output module 402 to stop outputting current based on the sixth control instruction sent by the terminal; The variance of the first impedance is determined.

在一些实施例中,第二控制模块403,还用于基于移动终端发送的第七控制指令,控制电流输出模块402输出第四充电电流;其中,第四充电电流小于或等于第一电流阈值。In some embodiments, the second control module 403 is further configured to control the current output module 402 to output a fourth charging current based on the seventh control command sent by the mobile terminal; wherein, the fourth charging current is less than or equal to the first current threshold.

在一些发明实施例中,如图9所示,装置400还包括:In some invention embodiments, as shown in FIG. 9, the device 400 further includes:

第二协议握手模块404,用于与移动终端进行充电协议握手;The second protocol handshake module 404 is used to perform charging protocol handshake with the mobile terminal;

电压输出模块401,用于握手成功后,向移动终端发送输出的第一电压。The voltage output module 401 is configured to send the first output voltage to the mobile terminal after the handshake is successful.

关于上述实施例中的装置,其中各个模块执行操作的具体方式已经在有关该方法的实施例中进行了详细描述,此处将不做详细阐述说明。Regarding the apparatus in the foregoing embodiments, the specific manner in which each module executes operations has been described in detail in the embodiments related to the method, and will not be described in detail here.

图10是根据一示例性实施例示出的一种充电控制装置800的框图,该装置用于执行上述充电方法。例如,装置800可以是移动电话,计算机,数字广播终端,消息收发设备,游戏控制台,平板设备,医疗设备,健身设备,个人数字助理等。Fig. 10 is a block diagram showing a charging control device 800 according to an exemplary embodiment, and the device is used to implement the charging method described above. 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, a fitness device, a personal digital assistant, and the like.

在一示例性实施例,装置800包括:In an exemplary embodiment, device 800 includes:

处理器820;processor 820;

用于存储处理器可执行指令的存储器804;memory 804 for storing processor-executable instructions;

其中,处理器820被配置为:Wherein, the processor 820 is configured as:

获取充电器输出接口处的第一电压;其中,充电器的输出接口处和移动终端的输入接口处连接有充电线;Obtaining the first voltage at the output interface of the charger; wherein, a charging line is connected to the output interface of the charger and the input interface of the mobile terminal;

向充电器发送第一控制指令;其中,第一控制指令,用于控制充电器以预设步长值从初始充电电流值逐步增大输出的第一充电电流;其中,第一充电电流小于或等于第一预设电流阈值;Sending a first control instruction to the charger; wherein the first control instruction is used to control the charger to gradually increase the output first charging current from the initial charging current value with a preset step value; wherein the first charging current is less than or equal to the first preset current threshold;

针对每一个第一充电电流,获取移动终端的输入接口处的第二电压;For each first charging current, obtain a second voltage at the input interface of the mobile terminal;

根据第一电压、第二电压和第一充电电流,计算充电线的阻抗;calculating the impedance of the charging line according to the first voltage, the second voltage and the first charging current;

根据充电线的阻抗,发送充电控制指令。According to the impedance of the charging line, a charging control command is sent.

在一些实施例中,装置800包括:In some embodiments, apparatus 800 includes:

处理器820;processor 820;

用于存储处理器可执行指令的存储器804;memory 804 for storing processor-executable instructions;

其中,处理器820被配置为:Wherein, the processor 820 is configured as:

向移动终端发送输出的第一电压;其中,第一电压为充电器的输出接口处的电压,充电器的输出接口处和移动终端的输入接口处连接有充电线;Sending the output first voltage to the mobile terminal; wherein, the first voltage is the voltage at the output interface of the charger, and the output interface of the charger is connected to the input interface of the mobile terminal with a charging line;

基于移动终端的第一控制指令,以预设步长值从初始充电电流值逐步增大输出的第一充电电流;其中,每一个第一充电电流,用于供移动终端计算充电线的阻抗;Based on the first control instruction of the mobile terminal, gradually increase the output first charging current from the initial charging current value with a preset step value; wherein, each first charging current is used for the mobile terminal to calculate the impedance of the charging line;

基于移动终端发送的充电控制指令,向移动终端进行充电;其中,充电控制指令是根据充电线的阻抗确定的。The mobile terminal is charged based on the charging control instruction sent by the mobile terminal; wherein, the charging control instruction is determined according to the impedance of the charging line.

参照图10,装置800可以包括以下一个或多个组件:处理组件802,存储器804,电力组件806,多媒体组件808,音频组件810,输入/输出(I/O)的接口812,传感器组件814,以及通信组件816。Referring to FIG. 10 , the device 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 .

处理组件802通常控制装置800的整体操作,诸如与显示,电话呼叫,数据通信,相机操作和记录操作相关联的操作。处理组件802可以包括一个或多个处理器820来执行指令,以完成上述的方法的全部或部分步骤。此外,处理组件802可以包括一个或多个模块,便于处理组件802和其他组件之间的交互。例如,处理组件802可以包括多媒体模块,以方便多媒体组件808和处理组件802之间的交互。The processing component 802 generally controls the overall operations of the device 800, such as those associated with display, telephone calls, data communications, camera operations, and recording operations. The processing component 802 may include one or more processors 820 to execute instructions to complete all or part of the steps of the above method. Additionally, processing component 802 may include one or more modules that facilitate interaction between processing component 802 and other components. For example, processing component 802 may include a multimedia module to facilitate interaction between multimedia component 808 and processing component 802 .

存储器804被配置为存储各种类型的数据以支持在设备800的操作。这些数据的示例包括用于在装置800上操作的任何应用程序或方法的指令,联系人数据,电话簿数据,消息,图片,视频等。存储器804可以由任何类型的易失性或非易失性存储设备或者它们的组合实现,如静态随机存取存储器(SRAM),电可擦除可编程只读存储器(EEPROM),可擦除可编程只读存储器(EPROM),可编程只读存储器(PROM),只读存储器(ROM),磁存储器,快闪存储器,磁盘或光盘。The memory 804 is configured to store various types of data to support operations 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 the like. The memory 804 can be implemented by any type of volatile or non-volatile storage device or their combination, 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 Disk.

电力组件806为装置800的各种组件提供电力。电力组件806可以包括电源管理系统,一个或多个电源,及其他与为装置800生成、管理和分配电力相关联的组件。Power component 806 provides power to various components of device 800 . Power components 806 may include a power management system, one or more power supplies, and other components associated with generating, managing, and distributing power for device 800 .

多媒体组件808包括在所述装置800和用户之间的提供一个输出接口的屏幕。在一些实施例中,屏幕可以包括液晶显示器(LCD)和触摸面板(TP)。如果屏幕包括触摸面板,屏幕可以被实现为触摸屏,以接收来自用户的输入信号。触摸面板包括一个或多个触摸传感器以感测触摸、滑动和触摸面板上的手势。所述触摸传感器可以不仅感测触摸或滑动动作的边界,而且还检测与所述触摸或滑动操作相关的持续时间和压力。在一些实施例中,多媒体组件808包括一个前置摄像头和/或后置摄像头。当设备800处于操作模式,如拍摄模式或视频模式时,前置摄像头和/或后置摄像头可以接收外部的多媒体数据。每个前置摄像头和后置摄像头可以是一个固定的光学透镜系统或具有焦距和光学变焦能力。The multimedia component 808 includes a screen that provides an output interface between the device 800 and the user. In some embodiments, the screen may include a liquid crystal display (LCD) and a touch panel (TP). If the screen includes a touch panel, the screen may be implemented as a touch screen to receive input signals from a user. The touch panel includes one or more touch sensors to sense touches, swipes, and gestures on the touch panel. The touch sensor may not only sense a boundary of a touch or swipe action, but also detect duration and pressure associated with the touch or swipe action. In some embodiments, the multimedia component 808 includes a front camera and/or a rear camera. When the device 800 is in an operation mode, such as a shooting mode or a video mode, the front camera and/or the rear camera can receive external multimedia data. Each front camera and rear camera can be a fixed optical lens system or have focal length and optical zoom capability.

音频组件810被配置为输出和/或输入音频信号。例如,音频组件810包括一个麦克风(MIC),当装置800处于操作模式,如呼叫模式、记录模式和语音识别模式时,麦克风被配置为接收外部音频信号。所接收的音频信号可以被进一步存储在存储器804或经由通信组件816发送。在一些实施例中,音频组件810还包括一个扬声器,用于输出音频信号。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 device 800 is in operation modes, such as call mode, recording mode and voice recognition mode. Received audio signals may be further stored in memory 804 or sent via communication component 816 . In some embodiments, the audio component 810 also includes a speaker for outputting audio signals.

I/O接口812为处理组件802和外围接口模块之间提供接口,上述外围接口模块可以是键盘,点击轮,按钮等。这些按钮可包括但不限于:主页按钮、音量按钮、启动按钮和锁定按钮。The I/O interface 812 provides an interface between the processing component 802 and a peripheral interface module, which may be a keyboard, a click wheel, a button, and the like. These buttons may include, but are not limited to: a home button, volume buttons, start button, and lock button.

传感器组件814包括一个或多个传感器,用于为装置800提供各个方面的状态评估。例如,传感器组件814可以检测到设备800的打开/关闭状态,组件的相对定位,例如所述组件为装置800的显示器和小键盘,传感器组件814还可以检测装置800或装置800一个组件的位置改变,用户与装置800接触的存在或不存在,装置800方位或加速/减速和装置800的温度变化。传感器组件814可以包括接近传感器,被配置用来在没有任何的物理接触时检测附近物体的存在。传感器组件814还可以包括光传感器,如CMOS或CCD图像传感器,用于在成像应用中使用。在一些实施例中,该传感器组件814还可以包括加速度传感器,陀螺仪传感器,磁传感器,压力传感器或温度传感器。Sensor assembly 814 includes one or more sensors for providing status assessments of various aspects of device 800 . For example, the sensor component 814 can detect the open/closed state of the device 800, the relative positioning of components, such as the display and keypad of the device 800, and the sensor component 814 can also detect a change in the position of the device 800 or a component of the device 800 , the presence or absence of user contact with the device 800 , the device 800 orientation or acceleration/deceleration and the temperature change of the device 800 . Sensor assembly 814 may include a proximity sensor configured to detect the presence of nearby objects in the absence of any physical contact. Sensor assembly 814 may also include an optical sensor, such as a CMOS or CCD image sensor, for use in imaging applications. In some embodiments, the sensor component 814 may also include an acceleration sensor, a gyroscope sensor, a magnetic sensor, a pressure sensor or a temperature sensor.

通信组件816被配置为便于装置800和其他设备之间有线或无线方式的通信。装置800可以接入基于通信标准的无线网络,如WiFi,2G或3G,或它们的组合。在一个示例性实施例中,通信组件816经由广播信道接收来自外部广播管理系统的广播信号或广播相关信息。在一个示例性实施例中,所述通信组件816还包括近场通信(NFC)模块,以促进短程通信。例如,在NFC模块可基于射频识别(RFID)技术,红外数据协会(IrDA)技术,超宽带(UWB)技术,蓝牙(BT)技术和其他技术来实现。The communication component 816 is configured to facilitate wired or wireless communication between the apparatus 800 and other devices. The device 800 can access wireless networks based on communication standards, such as WiFi, 2G or 3G, or a combination thereof. In an exemplary embodiment, the communication component 816 receives broadcast signals or broadcast related information from an external broadcast management system via a broadcast channel. In an exemplary embodiment, the communication component 816 also includes a near field communication (NFC) module to facilitate short-range communication. 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.

在示例性实施例中,装置800可以被一个或多个应用专用集成电路(ASIC)、数字信号处理器(DSP)、数字信号处理设备(DSPD)、可编程逻辑器件(PLD)、现场可编程门阵列(FPGA)、控制器、微控制器、微处理器或其他电子元件实现,用于执行上述方法。In an exemplary embodiment, apparatus 800 may be programmed by one or more application specific integrated circuits (ASICs), digital signal processors (DSPs), digital signal processing devices (DSPDs), programmable logic devices (PLDs), field programmable A gate array (FPGA), controller, microcontroller, microprocessor or other electronic component implementation for performing the methods described above.

在示例性实施例中,还提供了一种包括指令的非临时性计算机可读存储介质,例如包括指令的存储器804,上述指令可由装置800的处理器820执行以完成上述充电方法。例如,所述非临时性计算机可读存储介质可以是ROM、随机存取存储器(RAM)、CD-ROM、磁带、软盘和光数据存储设备等。In an exemplary embodiment, there is also provided a non-transitory computer-readable storage medium including instructions, such as the memory 804 including instructions, which can be executed by the processor 820 of the device 800 to implement the above charging method. For example, the non-transitory computer readable storage medium may be ROM, random access memory (RAM), CD-ROM, magnetic tape, floppy disk, optical data storage device, and the like.

根据一种实施例,提供一种非临时性计算机可读存储介质,当存储介质中的指令由充电控制装置的处理器执行时,使得移动终端能够执行一种充电方法,该方法包括:According to an embodiment, a non-transitory computer-readable storage medium is provided, and when instructions in the storage medium are executed by a processor of a charging control device, the mobile terminal can execute a charging method, the method comprising:

获取充电器输出接口处的第一电压;其中,充电器的输出接口处和移动终端的输入接口处连接有充电线;Obtaining the first voltage at the output interface of the charger; wherein, a charging line is connected to the output interface of the charger and the input interface of the mobile terminal;

向充电器发送第一控制指令;其中,第一控制指令,用于控制充电器以预设步长值从初始充电电流值逐步增大输出的第一充电电流;其中,第一充电电流小于或等于第一预设电流阈值;Sending a first control instruction to the charger; wherein the first control instruction is used to control the charger to gradually increase the output first charging current from the initial charging current value with a preset step value; wherein the first charging current is less than or equal to the first preset current threshold;

针对每一个第一充电电流,获取移动终端的输入接口处的第二电压;For each first charging current, obtain a second voltage at the input interface of the mobile terminal;

根据第一电压、第二电压和第一充电电流,计算充电线的阻抗;calculating the impedance of the charging line according to the first voltage, the second voltage and the first charging current;

根据充电线的阻抗,发送充电控制指令。According to the impedance of the charging line, a charging control command is sent.

根据一种实施例,提供一种非临时性计算机可读存储介质,当存储介质中的指令由充电控制装置的处理器执行时,使得充电器能够执行一种充电方法,该方法包括:According to an embodiment, a non-transitory computer-readable storage medium is provided, and when instructions in the storage medium are executed by a processor of a charging control device, a charger can execute a charging method, the method comprising:

向移动终端发送输出的第一电压;其中,第一电压为充电器的输出接口处的电压,充电器的输出接口处和移动终端的输入接口处连接有充电线;Sending the output first voltage to the mobile terminal; wherein, the first voltage is the voltage at the output interface of the charger, and the output interface of the charger is connected to the input interface of the mobile terminal with a charging line;

基于移动终端的第一控制指令,以预设步长值从初始充电电流值逐步增大输出的第一充电电流;其中,每一个第一充电电流,用于供移动终端计算充电线的阻抗;Based on the first control instruction of the mobile terminal, gradually increase the output first charging current from the initial charging current value with a preset step value; wherein, each first charging current is used for the mobile terminal to calculate the impedance of the charging line;

基于移动终端发送的充电控制指令,向移动终端进行充电;其中,充电控制指令是根据充电线的阻抗确定的。The mobile terminal is charged based on the charging control instruction sent by the mobile terminal; wherein, the charging control instruction is determined according to the impedance of the charging line.

图11是根据一示例性实施例示出的一种用于充电控制装置1900的框图。例如,装置1900可以被提供为一服务器。参照图11,装置1900包括处理组件1922,其进一步包括一个或多个处理器,以及由存储器1932所代表的存储器资源,用于存储可由处理组件1922的执行的指令,例如应用程序。存储器1932中存储的应用程序可以包括一个或一个以上的每一个对应于一组指令的模块。此外,处理组件1922被配置为执行指令,以执行上述充电方法。Fig. 11 is a block diagram showing a charging control device 1900 according to an exemplary embodiment. For example, apparatus 1900 may be provided as a server. Referring to FIG. 11 , apparatus 1900 includes processing component 1922 , which further includes one or more processors, and a memory resource represented by memory 1932 for storing instructions executable by processing component 1922 , such as application programs. The application programs stored in memory 1932 may include one or more modules each corresponding to a set of instructions. In addition, the processing component 1922 is configured to execute instructions to perform the charging method described above.

装置1900还可以包括一个电源组件1926被配置为执行装置1900的电源管理,一个有线或无线网络接口1950被配置为将装置1900连接到网络,和一个输入输出(I/O)接口1958。装置1900可以操作基于存储在存储器1932的操作系统,例如Windows ServerTM,MacOS XTM,UnixTM,LinuxTM,FreeBSDTM或类似。Device 1900 may also include a power component 1926 configured to perform power management of device 1900 , a wired or wireless network interface 1950 configured to connect device 1900 to a network, and an input-output (I/O) interface 1958 . The apparatus 1900 can operate based on an operating system stored in the memory 1932, such as Windows Server™, MacOS X™, Unix™, Linux™, FreeBSD™ or the like.

本领域技术人员在考虑说明书及实践这里公开的发明后,将容易想到本发明的其它实施方案。本申请旨在涵盖本发明的任何变型、用途或者适应性变化,这些变型、用途或者适应性变化遵循本发明的一般性原理并包括本公开未公开的本技术领域中的公知常识或惯用技术手段。说明书和实施例仅被视为示例性的,本发明的真正范围和精神由下面的权利要求指出。Other embodiments of the invention will be readily 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 modification, use or adaptation of the present invention, these modifications, uses or adaptations follow the general principles of the present invention and include common knowledge or conventional technical means in the technical field not disclosed in this disclosure . The specification and examples are to be considered exemplary only, with a true scope and spirit of the invention being indicated by the following claims.

应当理解的是,本发明并不局限于上面已经描述并在附图中示出的精确结构,并且可以在不脱离其范围进行各种修改和改变。本发明的范围仅由所附的权利要求来限制。It should be understood that the present invention is not limited to the precise constructions which have been described above and shown in the accompanying drawings, and 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 (27)

Translated fromChinese
1.一种充电控制方法,其特征在于,所述方法包括:1. A charge control method, characterized in that the method comprises:获取充电器的输出接口处的第一电压;其中,所述充电器的输出接口处和移动终端的输入接口处连接有充电线;Obtaining the first voltage at the output interface of the charger; wherein, a charging line is connected to the output interface of the charger and the input interface of the mobile terminal;向所述充电器发送第一控制指令;其中,所述第一控制指令,用于控制所述充电器以预设步长值从初始充电电流值逐步增大输出的第一充电电流;Sending a first control instruction to the charger; wherein the first control instruction is used to control the charger to gradually increase the output first charging current from the initial charging current value with a preset step value;针对每一个所述第一充电电流,获取所述移动终端的输入接口处的第二电压;Obtaining a second voltage at an input interface of the mobile terminal for each of the first charging currents;根据所述第一电压、所述第二电压和所述第一充电电流,计算所述充电线的阻抗;其中,每一个所述第一充电电流用于对应计算一个第一阻抗,所述多个第一阻抗用于计算方差;根据所述充电线的阻抗,发送充电控制指令;其中,当所述方差大于预设方差阈值时,输出提示充电过程存在异常的第一状态提醒,并向所述充电器发送第六控制指令;其中,所述第六控制指令用于控制所述充电器停止输出电流;Calculate the impedance of the charging line according to the first voltage, the second voltage, and the first charging current; wherein, each of the first charging currents is used to calculate a corresponding first impedance, and the multiple A first impedance is used to calculate the variance; according to the impedance of the charging line, a charging control command is sent; wherein, when the variance is greater than a preset variance threshold, a first state reminder indicating that there is an abnormality in the charging process is output, and the notification is sent to all The charger sends a sixth control instruction; wherein, the sixth control instruction is used to control the charger to stop outputting current;当所述充电线的阻抗计算过程异常时,输出提示所述充电线或所述移动终端存在异常的第二状态提醒,并向所述充电器发送第七控制指令;其中,所述第七控制指令用于控制所述充电器输出第四充电电流,所述第四充电电流小于或等于第一电流阈值;所述充电线的阻抗计算过程异常包括:所述充电线的阻抗为负值或者无法计算出所述充电线的阻抗;且所述充电线的阻抗计算过程异常的原因包括:移动终端或充电线出现硬件故障;When the impedance calculation process of the charging line is abnormal, output a second status reminder prompting that the charging line or the mobile terminal is abnormal, and send a seventh control instruction to the charger; wherein, the seventh control The instruction is used to control the charger to output a fourth charging current, the fourth charging current is less than or equal to the first current threshold; the abnormality of the impedance calculation process of the charging line includes: the impedance of the charging line is negative or cannot Calculate the impedance of the charging line; and the reason why the impedance calculation process of the charging line is abnormal includes: a hardware failure of the mobile terminal or the charging line;当所述充电线的阻抗不在预设阻抗范围内时,按照低压充电策略,向所述充电器发送第三控制指令;所述第三控制指令用于控制所述充电器输出第三充电电流且保持所述充电器的输出电压在低压阈值范围内不变,所述第三充电电流小于或等于第一电流阈值,所述第三充电电流小于第二充电电流。When the impedance of the charging line is not within the preset impedance range, according to the low-voltage charging strategy, send a third control instruction to the charger; the third control instruction is used to control the charger to output a third charging current and The output voltage of the charger is kept constant within the low-voltage threshold range, the third charging current is less than or equal to the first current threshold, and the third charging current is smaller than the second charging current.2.根据权利要求1所述的方法,其特征在于,所述根据所述充电线的阻抗,发送充电控制指令,包括:2. The method according to 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 the preset impedance range, send a second control instruction to the charger; wherein the second control instruction is used to control the charger to increase the output voltage and output the second The charging current, the second charging current is determined according to the first preset current corresponding to the output voltage.3.根据权利要求2所述的方法,其特征在于,所述方法还包括:3. The method according to claim 2, wherein the method further comprises:获取所述移动终端中电池的电池电压;Acquiring the battery voltage of the battery in the mobile terminal;当所述电池电压从低于预设饱和电压经过充电达到所述预设饱和电压时,向所述充电器发送第四控制指令;其中,所述第四控制指令,用于控制所述充电器减小输出电流。When the battery voltage reaches the preset saturation voltage after charging from lower than the preset saturation voltage, a fourth control instruction is sent to the charger; wherein, the fourth control instruction is used to control the charger reduce the output current.4.根据权利要求3所述的方法,其特征在于,所述方法还包括:4. method according to claim 3, is characterized in that, described method also comprises:当所述充电器的输出电流减小到等于所述第一电流阈值时,向所述充电器发送第五控制指令;其中,所述第五控制指令用于控制所述充电器减小输出电压,并保持输出所述输出电流。When the output current of the charger is reduced to be equal to the first current threshold, a fifth control instruction is sent to the charger; wherein the fifth control instruction is used to control the charger to reduce the output voltage , and keep outputting the output current.5.根据权利要求1所述的方法,其特征在于,所述根据所述第一电压、所述第二电压和所述第一充电电流,计算所述充电线的阻抗,包括:5. The method according to claim 1, wherein the calculating the impedance of the charging line according to the first voltage, the second voltage and the first charging current comprises:分别根据每一个所述第一充电电流,及各自对应的所述第一电压及所述第二电压,计算所述充电线在每个所述第一充电电流状态下的第一阻抗;calculating a first impedance of the charging line in each state of the first charging current according to each of the first charging currents and the corresponding first voltage and the second voltage respectively;计算多个所述第一阻抗的方差;calculating a variance of a plurality of said first impedances;当所述方差小于或等于预设方差阈值时,确定多个所述第一阻抗的平均值为所述充电线的阻抗。When the variance is less than or equal to a preset variance threshold, determine an average value of a plurality of first impedances as the impedance of the charging line.6.根据权利要求1所述的方法,其特征在于,在所述获取充电器的输出接口处的第一电压之前,所述方法还包括:6. The method according to claim 1, characterized in that, before 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 handshake of the charging protocol is successful, it is judged whether to start the impedance detection function according to the charging protocol of the successful handshaking;当确定启动所述阻抗检测功能时,获取所述充电器输出接口处的第一电压。When it is determined to start the impedance detection function, the first voltage at the output interface of the charger is acquired.7.一种充电控制方法,其特征在于,所述方法包括:7. A charge control method, characterized in that the method comprises:向移动终端发送输出的第一电压;其中,所述第一电压为充电器的输出接口处的电压,所述充电器的输出接口处和所述移动终端的输入接口处连接有充电线;Sending the output first voltage to the mobile terminal; wherein, the first voltage is the voltage at the output interface of the charger, and a charging line is connected to the output interface of the charger and the input interface of the mobile terminal;基于所述移动终端的第一控制指令,以预设步长值从初始充电电流值逐步增大输出的第一充电电流;其中,每一个所述第一充电电流,用于供所述移动终端计算所述充电线的阻抗;Based on the first control instruction of the mobile terminal, the output first charging current is gradually increased from the initial charging current value with a preset step value; wherein, each of the first charging currents is used for the mobile terminal calculating the impedance of the charging line;基于所述移动终端发送的充电控制指令,向所述移动终端进行充电;其中,所述充电控制指令是根据所述充电线的阻抗确定的;其中,基于所述移动终端发送的第六控制指令,停止输出电流;其中,所述第六控制指令是根据与每一个所述第一充电电流对应的第一阻抗的方差确定的;Charging the mobile terminal based on the charging control instruction sent by the mobile terminal; wherein, the charging control instruction is determined according to the impedance of the charging line; wherein, based on the sixth control instruction sent by the mobile terminal , stop outputting current; wherein, the sixth control command is determined according to the variance of the first impedance corresponding to each of the first charging currents;当所述充电线的阻抗计算过程异常时,基于所述移动终端发送的第七控制指令,输出第四充电电流;其中,所述第四充电电流小于或等于第一电流阈值;所述充电线的阻抗计算过程异常包括:所述充电线的阻抗为负值或者无法计算出所述充电线的阻抗;且所述充电线的阻抗计算过程异常的原因包括:移动终端或充电线出现硬件故障;When the impedance calculation process of the charging line is abnormal, based on the seventh control instruction sent by the mobile terminal, a fourth charging current is output; wherein, the fourth charging current is less than or equal to the first current threshold; the charging line The abnormality of the impedance calculation process includes: the impedance of the charging line is negative or the impedance of the charging line cannot be calculated; and the reason for the abnormality of the impedance calculation process of the charging line includes: a hardware failure of the mobile terminal or the charging line;当所述充电线的阻抗不在预设阻抗范围内时,基于所述移动终端依照低压充电策略发送的第三控制指令,输出第三充电电流,并且保持输出电压在低压阈值范围内不变;其中,所述第三充电电流小于或等于第一电流阈值,所述第三充电电流小于第二充电电流。When the impedance of the charging line is not within the preset impedance range, based on the third control instruction sent by the mobile terminal according to the low-voltage charging strategy, a third charging current is output, and the output voltage is kept constant within the low-voltage threshold range; wherein , the third charging current is less than or equal to the first current threshold, and the third charging current is smaller than the second charging current.8.根据权利要求7所述的方法,其特征在于,所述基于所述移动终端发送的充电控制指令,向所述移动终端进行充电,包括:8. The method according to claim 7, wherein 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 the preset impedance range, based on the second control instruction sent by the mobile terminal, the output voltage is increased, and a second charging current is output; wherein, the second charging current is based on the The output voltage is determined corresponding to the first preset current.9.根据权利要求8所述的方法,其特征在于,所述方法还包括:9. The method of claim 8, further comprising:当所述移动终端中电池的电池电压从低于预设饱和电压经过充电达到所述预设饱和电压时,基于所述移动终端发送的第四控制指令,减小输出电流。When the battery voltage of the battery in the mobile terminal reaches the preset saturation voltage after being charged from being lower than the preset saturation voltage, the output current is reduced based on a fourth control instruction sent by the mobile terminal.10.根据权利要求9所述的方法,其特征在于,所述方法还包括:10. The method according to claim 9, further comprising:当所述充电器的输出电流减小到所述第一电流阈值时,基于所述移动终端发送的第五控制指令,减小输出电压,并保持输出所述输出电流。When the output current of the charger decreases to the first current threshold, based on the fifth control instruction sent by the mobile terminal, the output voltage is reduced, and the output current is maintained.11.根据权利要求7所述的方法,其特征在于,在所述输出第一电压之前,所述方法还包括:11. The method according to claim 7, characterized in that, before the outputting the first voltage, the method further comprises:与所述移动终端进行充电协议握手;performing a charging protocol handshake with the mobile terminal;当充电协议握手成功后,向所述移动终端发送输出的第一电压。After the handshake of the charging protocol succeeds, the output first voltage is sent to the mobile terminal.12.一种充电控制装置,其特征在于,所述装置包括:12. A charge control device, characterized in that the device comprises:第一电压获取模块,用于获取充电器输出接口处的第一电压;其中,所述充电器的输出接口处和移动终端的输入接口处连接有充电线;The first voltage acquisition module is used to acquire the first voltage at the output interface of the charger; wherein, the output interface of the charger and the input interface of the mobile terminal are connected with a charging line;第一控制模块,用于向所述充电器发送第一控制指令;其中,所述第一控制指令,用于控制所述充电器以预设步长值从初始充电电流值逐步增大输出的第一充电电流;The first control module is configured to send a first control instruction to the charger; wherein the first control instruction is configured to control the charger to gradually increase the output current value from the initial charging current value with a preset step value first charging current;所述第一电压获取模块,还用于针对每一个所述第一充电电流,获取所述移动终端的输入接口处的第二电压;The first voltage acquisition module is further configured to acquire a second voltage at the input interface of the mobile terminal for each of the first charging currents;第一计算模块,用于根据所述第一电压、所述第二电压和所述第一充电电流,计算所述充电线的阻抗;其中,每一个所述第一充电电流用于对应计算一个第一阻抗,所述多个第一阻抗用于计算方差;A first calculation module, configured to calculate the impedance of the charging line according to the first voltage, the second voltage, and the first charging current; wherein, each of the first charging currents is used to calculate a corresponding a first impedance, the plurality of first impedances are used to calculate variance;所述第一控制模块,还用于根据所述充电线的阻抗,发送充电控制指令;The first control module is further configured to send a charging control command according to the impedance of the charging line;第一输出模块,用于当所述方差大于预设方差阈值时,输出提示充电过程存在异常的第一状态提醒;The first output module is configured to output a first state reminder indicating that there is an abnormality in the charging process when the variance is greater than a preset variance threshold;所述第一电压控制模块,还用于向所述充电器发送第六控制指令;其中,所述第六控制指令,用于控制所述充电器停止输出电流;The first voltage control module is further configured to send a sixth control instruction to the charger; wherein the sixth control instruction is configured to control the charger to stop outputting current;所述第一输出模块,还用于当所述充电线的阻抗计算过程异常时,输出提示所述充电线或所述移动终端存在异常的第二状态提醒;The first output module is further configured to output a second status reminder indicating 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 configured to send a seventh control instruction to the charger; wherein the seventh control instruction is configured to control the charger to output a fourth charging current, and the fourth charging current is less than or equal to the first current threshold; the abnormality of the impedance calculation process of the charging line includes: the impedance of the charging line is negative or the impedance of the charging line cannot be calculated; and the reasons for the abnormality of the impedance calculation process of the charging line include : There is a hardware failure in the mobile terminal or the charging cable;所述第一控制模块,还用于当所述充电线的阻抗不在预设阻抗范围内时,按照低压充电策略,向所述充电器发送第三控制指令;用于控制所述充电器输出第三充电电流且保持所述充电器的输出电压在低压阈值范围内不变,所述第三充电电流小于或等于第一电流阈值,所述第三充电电流小于第二充电电流。The first control module is further configured to send a third control instruction to the charger according to the low-voltage charging strategy when the impedance of the charging line is not within the preset impedance range; and is used to control the charger to output the first Three charging currents and keeping the output voltage of the charger constant within the low-voltage threshold range, the third charging current is less than or equal to the first current threshold, and the third charging current is smaller than the second charging current.13.根据权利要求12所述的装置,其特征在于,13. The device of claim 12, wherein:所述第一控制模块,具体用于当所述充电线的阻抗在预设阻抗范围内时,向所述充电器发送第二控制指令;其中,所述第二控制指令,用于增加所述充电器的输出电压,并输出第二充电电流,所述第二充电电流是根据与所述输出电压有对应关系的第一预设电流确定的。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; wherein the second control instruction is used to increase the output voltage of the charger, and output a second charging current, the second charging current is determined according to a first preset current corresponding to the output voltage.14.根据权利要求13所述的装置,其特征在于,14. The apparatus of claim 13, wherein:所述第一电压获取模块,还用于获取所述移动终端中电池的电池电压;The first voltage obtaining module is also used to obtain the battery voltage of the battery in the mobile terminal;所述第一控制模块,还用于当所述电池电压从低于预设饱和电压经过充电达到预设饱和电压时,向所述充电器发送第四控制指令;其中,所述第四控制指令,用于减小所述充电器的输出电流。The first control module is further configured to send a fourth control command to the charger when the battery voltage reaches a preset saturation voltage after charging from lower than a preset saturation voltage; wherein, the fourth control command , used to reduce the output current of the charger.15.根据权利要求14所述的装置,其特征在于,15. The apparatus of claim 14, wherein:所述第一控制模块,还用于当所述充电器的输出电流减小到所述第一电流阈值时,向所述充电器发送第五控制指令;其中,所述第五控制指令,用于减小所述充电器的输出电压,并保持输出所述输出电流。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 to reduce the output voltage of the charger and keep outputting the output current.16.根据权利要求12所述的装置,其特征在于,16. The apparatus of claim 12, wherein:所述第一计算模块,具体用于分别根据每一个所述第一充电电流,及各自对应的所述第一电压及所述第二电压,计算所述充电线在每个所述第一充电电流状态下的第一阻抗;所述第一计算模块,还用于计算多个所述第一阻抗的方差;The first calculation module is specifically configured to calculate the charging time of the charging line in each of the first charging currents according to each of the first charging currents and the corresponding first voltage and the second voltage respectively. The first impedance in the current state; the first calculation module is also used to calculate the variance of multiple first impedances;当所述方差小于或等于预设方差阈值时,所述第一计算模块确定多个所述第一阻抗的平均值为所述充电线的阻抗。When the variance is less than or equal to a preset variance threshold, the first calculating module determines an average value of a plurality of first impedances as the impedance of the charging line.17.根据权利要求12所述的装置,其特征在于,所述装置还包括:17. The device according to claim 12, further comprising:第一协议握手模块,用于与所述充电器进行充电协议握手;A first protocol handshake module, configured to perform a charging protocol handshake with the charger;第一判断模块,用于当充电协议握手成功后,根据握手成功的充电协议判断是否启动阻抗检测功能;The first judging module is used to judge whether to start the impedance detection function according to the successful charging protocol after the charging protocol handshake is successful;所述第一电压获取模块,用于当确定启动所述阻抗检测功能时,获取充电器的输出接口处的第一电压。The first voltage acquisition module is configured to acquire the first voltage at the output interface of the charger when it is determined to start the impedance detection function.18.一种充电控制装置,其特征在于,所述装置包括:18. A charge control device, characterized in that the device comprises:电压输出模块,用于向移动终端发送输出的第一电压;其中,所述第一电压为充电器的输出线接口处的电压,所述充电器的输出接口处和所述移动终端的输入接口处连接有充电线;A voltage output module, configured to send the output first voltage to the mobile terminal; wherein, the first voltage is the voltage at the output line interface of the charger, and the output interface of the charger and the input interface of the mobile terminal connected to the charging cable;电流输出模块,用于以预设步长值从初始充电电流值逐步增大输出的第一充电电流;其中,每一个所述第一充电电流,用于供所述移动终端计算所述充电线的阻抗;The current output module is used to gradually increase the output first charging current from the initial charging current value with a preset step value; wherein, each of the first charging currents is used for the mobile terminal to calculate the charging line the impedance;第二控制模块,用于基于所述移动终端发送的充电控制指令,向所述移动终端进行充电;其中,所述充电控制指令是根据所述充电线的阻抗确定的;所述第二控制模块,还用于基于所述终端发送的第六控制指令,控制所述电流输出模块停止输出电流;其中,所述第六控制指令,是根据与每一个所述第一充电电流对应的第一阻抗的方差确定的;所述第二控制模块,还用于所述充电线的阻抗计算过程异常时,基于所述移动终端发送的第七控制指令,控制所述电流输出模块输出第四充电电流;其中,所述第四充电电流小于或等于第一电流阈值;所述充电线的阻抗计算过程异常包括:所述充电线的阻抗为负值或者无法计算出所述充电线的阻抗;且所述充电线的阻抗计算过程异常的原因包括:移动终端或充电线出现硬件故障;The second control module is configured to charge the mobile terminal based on the charging control instruction sent by the mobile terminal; wherein, the charging control instruction is determined according to the impedance of the charging line; the second control module , is further configured to control the current output module to stop outputting current based on the sixth control command sent by the terminal; wherein the sixth control command is based on the first impedance corresponding to each of the first charging currents The variance is determined; the second control module is also used to control the current output module to output a fourth charging current based on the seventh control instruction sent by the mobile terminal when the impedance calculation process of the charging line is abnormal; Wherein, the fourth charging current is less than or equal to the first current threshold; the abnormality of the impedance calculation process of the charging line includes: the impedance of the charging line is a negative value or the impedance of the charging line cannot be calculated; and the The reasons for the abnormality of the impedance calculation process of the charging line include: hardware failure of the mobile terminal or the charging line;当所述充电线的阻抗不在预设阻抗范围内时,基于所述移动终端按照低压充电策略发送的第三控制指令,输出第三充电电流,并且保持输出电压在低压阈值范围内不变;其中,所述第三充电电流小于或等于第一电流阈值,所述第三充电电流小于第二充电电流。When the impedance of the charging line is not within the preset impedance range, based on the third control instruction sent by the mobile terminal according to the low-voltage charging strategy, a third charging current is output, and the output voltage is kept constant within the low-voltage threshold range; wherein , the third charging current is less than or equal to the first current threshold, and the third charging current is smaller than the second charging current.19.根据权利要求18所述的装置,其特征在于,19. The apparatus of claim 18, wherein:所述第二控制模块,具体用于当所述充电线的阻抗在预设阻抗范围内时,基于所述移动终端发送的第二控制指令,增大输出电压,并控制所述电流输出模块输出第二充电电流;其中,所述第二充电电流是根据与所述输出电压有对应关系的第一预设电流确定的。The second control module is specifically configured to increase the output voltage based on the second control instruction sent by the mobile terminal when the impedance of the charging line is within a preset impedance range, and control the output voltage of the current output module. A second charging current; wherein, the second charging current is determined according to a first preset current corresponding to the output voltage.20.根据权利要求19所述的装置,其特征在于,20. The apparatus of claim 19, wherein:所述第二控制模块,还用于当所述移动终端中电池的电池电压从低于预设饱和电压经过充电达到预设饱和电压时,基于所述移动终端发送的第四控制指令,减小输出电流。The second control module is further configured to: when the battery voltage of the battery in the mobile terminal reaches the preset saturation voltage after being charged from being lower than the preset saturation voltage, based on the fourth control instruction sent by the mobile terminal, reduce Output current.21.根据权利要求20所述的装置,其特征在于,21. The apparatus of claim 20, wherein:所述第二控制模块,还用于当所述输出电流减小到第一电流阈值时,基于所述移动终端发送的第五控制指令,减小输出电压,并控制所述电流输出模块保持输出所述输出电流。The second control module is further configured to reduce the output voltage based on the fifth control instruction sent by the mobile terminal when the output current decreases to the first current threshold, and control the current output module to maintain output the output current.22.根据权利要求18所述的装置,其特征在于,22. The device of claim 18, wherein:所述第二控制模块,还用于基于所述移动终端发送的第七控制指令,控制所述电流输出模块输出第四充电电流;其中,所述第四充电电流小于或等于第一电流阈值。The second control module is further configured to control the current output module to output a fourth charging current based on the seventh control instruction sent by the mobile terminal; wherein the fourth charging current is less than or equal to the first current threshold.23.根据权利要求18所述的装置,其特征在于,所述装置还包括:23. The device of claim 18, further comprising:第二协议握手模块,用于与所述移动终端进行充电协议握手;The second protocol handshake module is used to perform a charging protocol handshake with the mobile terminal;所述电压输出模块,用于握手成功后,向所述移动终端发送输出的第一电压。The voltage output module is configured to send the output first voltage to the mobile terminal after the handshake is successful.24.一种充电控制装置,其特征在于,包括:24. A charging control device, comprising:处理器;processor;用于存储处理器可执行指令的存储器;memory for storing processor-executable instructions;其中,所述处理器被配置为:Wherein, the processor is configured as:获取充电器输出接口处的第一电压;其中,所述充电器的输出接口处和移动终端的输入接口处连接有充电线;Obtaining the first voltage at the output interface of the charger; wherein, a charging line is connected to the output interface of the charger and the input interface of the mobile terminal;向所述充电器发送第一控制指令;其中,所述第一控制指令,用于控制所述充电器以预设步长值从初始充电电流值逐步增大输出的第一充电电流;其中,所述第一充电电流小于或等于第一预设电流阈值;Sending a first control instruction to the charger; wherein the first control instruction is used to control the charger to gradually increase the output first charging current from the initial charging current value with a preset step value; wherein, The first charging current is less than or equal to a first preset current threshold;针对每一个所述第一充电电流,获取移动终端的输入接口处的第二电压;Obtaining a second voltage at an input interface of the mobile terminal for each of the first charging currents;根据所述第一电压、所述第二电压和所述第一充电电流,计算所述充电线的阻抗;其中,每一个所述第一充电电流用于对应计算一个第一阻抗,所述多个第一阻抗用于计算方差;Calculate the impedance of the charging line according to the first voltage, the second voltage, and the first charging current; wherein, each of the first charging currents is used to calculate a corresponding first impedance, and the multiple A first impedance is used to calculate the variance;根据所述充电线的阻抗,发送充电控制指令;其中,当所述方差大于预设方差阈值时,输出提示充电过程存在异常的第一状态提醒,并向所述充电器发送第六控制指令;其中,所述第六控制指令用于控制所述充电器停止输出电流;Sending a charging control command according to the impedance of the charging line; wherein, when the variance is greater than a preset variance threshold, outputting a first state reminder prompting that there is an abnormality in the charging process, and sending a sixth control command to the charger; Wherein, the sixth control instruction is used to control the charger to stop outputting current;当所述充电线的阻抗计算过程异常时,输出提示所述充电线或所述移动终端存在异常的第二状态提醒,并向所述充电器发送第七控制指令;其中,所述第七控制指令用于控制所述充电器输出第四充电电流,所述第四充电电流小于或等于第一电流阈值;所述充电线的阻抗计算过程异常包括:所述充电线的阻抗为负值或者无法计算出所述充电线的阻抗;且所述充电线的阻抗计算过程异常的原因包括:移动终端或充电线出现硬件故障;When the impedance calculation process of the charging line is abnormal, output a second status reminder prompting that the charging line or the mobile terminal is abnormal, and send a seventh control instruction to the charger; wherein, the seventh control The instruction is used to control the charger to output a fourth charging current, the fourth charging current is less than or equal to the first current threshold; the abnormality of the impedance calculation process of the charging line includes: the impedance of the charging line is negative or cannot Calculate the impedance of the charging line; and the reason why the impedance calculation process of the charging line is abnormal includes: a hardware failure of the mobile terminal or the charging line;当所述充电线的阻抗不在预设阻抗范围内时,按照低压充电策略,向所述充电器发送第三控制指令;所述第三控制指令用于控制所述充电器输出第三充电电流且保持所述充电器的输出电压在低压阈值范围内不变,所述第三充电电流小于或等于第一电流阈值,所述第三充电电流小于第二充电电流。When the impedance of the charging line is not within the preset impedance range, according to the low-voltage charging strategy, send a third control instruction to the charger; the third control instruction is used to control the charger to output a third charging current and The output voltage of the charger is kept constant within the low-voltage threshold range, the third charging current is less than or equal to the first current threshold, and the third charging current is smaller than the second charging current.25.一种充电控制装置,其特征在于,包括:25. A charging control device, comprising:处理器;processor;用于存储处理器可执行指令的存储器;memory for storing processor-executable instructions;其中,所述处理器被配置为:Wherein, the processor is configured as:向移动终端发送输出的第一电压;其中,所述第一电压为充电器的输出接口处的电压,所述充电器的输出接口处和所述移动终端的输入接口处连接有充电线;Sending the output first voltage to the mobile terminal; wherein, the first voltage is the voltage at the output interface of the charger, and a charging line is connected to the output interface of the charger and the input interface of the mobile terminal;基于所述移动终端的第一控制指令,以预设步长值从初始充电电流值逐步增大输出的第一充电电流;其中,每一个所述第一充电电流,用于供所述移动终端计算所述充电线的阻抗;Based on the first control instruction of the mobile terminal, the output first charging current is gradually increased from the initial charging current value with a preset step value; wherein, each of the first charging currents is used for the mobile terminal calculating the impedance of the charging line;基于所述移动终端发送的充电控制指令,向所述移动终端进行充电;其中,所述充电控制指令是根据所述充电线的阻抗确定的;其中,基于所述移动终端发送的第六控制指令,停止输出电流;其中,所述第六控制指令是根据与每一个所述第一充电电流对应的第一阻抗的方差确定的;Charging the mobile terminal based on the charging control instruction sent by the mobile terminal; wherein, the charging control instruction is determined according to the impedance of the charging line; wherein, based on the sixth control instruction sent by the mobile terminal , stop outputting current; wherein, the sixth control command is determined according to the variance of the first impedance corresponding to each of the first charging currents;当所述充电线的阻抗计算过程异常时,基于所述移动终端发送的第七控制指令,输出第四充电电流;其中,所述第四充电电流小于或等于第一电流阈值;所述充电线的阻抗计算过程异常包括:所述充电线的阻抗为负值或者无法计算出所述充电线的阻抗;且所述充电线的阻抗计算过程异常的原因包括:移动终端或充电线出现硬件故障;When the impedance calculation process of the charging line is abnormal, based on the seventh control instruction sent by the mobile terminal, a fourth charging current is output; wherein, the fourth charging current is less than or equal to the first current threshold; the charging line The abnormality of the impedance calculation process includes: the impedance of the charging line is negative or the impedance of the charging line cannot be calculated; and the reason for the abnormality of the impedance calculation process of the charging line includes: a hardware failure of the mobile terminal or the charging line;当所述充电线的阻抗不在预设阻抗范围内时,基于所述移动终端依照低压充电策略发送的第三控制指令,输出第三充电电流,并且保持输出电压在低压阈值范围内不变;其中,所述第三充电电流小于或等于第一电流阈值,所述第三充电电流小于第二充电电流。When the impedance of the charging line is not within the preset impedance range, based on the third control instruction sent by the mobile terminal according to the low-voltage charging strategy, a third charging current is output, and the output voltage is kept constant within the low-voltage threshold range; wherein , the third charging current is less than or equal to the first current threshold, and the third charging current is smaller than the second charging current.26.一种非临时性计算机可读存储介质,当所述存储介质中的指令由充电控制装置的处理器执行时,使得移动终端能够执行一种充电方法,所述方法包括:26. A non-transitory computer-readable storage medium, when the instructions in the storage medium are executed by the processor of the charging control device, the mobile terminal can execute a charging method, the method comprising:获取充电器输出接口处的第一电压;其中,所述充电器的输出接口处和移动终端的输入接口处连接有充电线;Obtaining the first voltage at the output interface of the charger; wherein, a charging line is connected to the output interface of the charger and the input interface of the mobile terminal;向所述充电器发送第一控制指令;其中,所述第一控制指令,用于控制所述充电器以预设步长值从初始充电电流值逐步增大输出的第一充电电流;其中,所述第一充电电流小于或等于第一预设电流阈值;Sending a first control instruction to the charger; wherein the first control instruction is used to control the charger to gradually increase the output first charging current from the initial charging current value with a preset step value; wherein, The first charging current is less than or equal to a first preset current threshold;针对每一个所述第一充电电流,获取移动终端的输入接口处的第二电压;Obtaining a second voltage at an input interface of the mobile terminal for each of the first charging currents;根据所述第一电压、所述第二电压和所述第一充电电流,计算所述充电线的阻抗;其中,每一个所述第一充电电流用于对应计算一个第一阻抗,所述多个第一阻抗用于计算方差;Calculate the impedance of the charging line according to the first voltage, the second voltage, and the first charging current; wherein, each of the first charging currents is used to calculate a corresponding first impedance, and the multiple A first impedance is used to calculate the variance;根据所述充电线的阻抗,发送充电控制指令;其中,当所述方差大于预设方差阈值时,输出提示充电过程存在异常的第一状态提醒,并向所述充电器发送第六控制指令;其中,所述第六控制指令用于控制所述充电器停止输出电流;Sending a charging control command according to the impedance of the charging line; wherein, when the variance is greater than a preset variance threshold, outputting a first state reminder prompting that there is an abnormality in the charging process, and sending a sixth control command to the charger; Wherein, the sixth control instruction is used to control the charger to stop outputting current;当所述充电线的阻抗计算过程异常时,输出提示所述充电线或所述移动终端存在异常的第二状态提醒,并向所述充电器发送第七控制指令;其中,所述第七控制指令用于控制所述充电器输出第四充电电流,所述第四充电电流小于或等于第一电流阈值;所述充电线的阻抗计算过程异常包括:所述充电线的阻抗为负值或者无法计算出所述充电线的阻抗;且所述充电线的阻抗计算过程异常的原因包括:移动终端或充电线出现硬件故障;When the impedance calculation process of the charging line is abnormal, output a second status reminder prompting that the charging line or the mobile terminal is abnormal, and send a seventh control instruction to the charger; wherein, the seventh control The instruction is used to control the charger to output a fourth charging current, the fourth charging current is less than or equal to the first current threshold; the abnormality of the impedance calculation process of the charging line includes: the impedance of the charging line is negative or cannot Calculate the impedance of the charging line; and the reason why the impedance calculation process of the charging line is abnormal includes: a hardware failure of the mobile terminal or the charging line;当所述充电线的阻抗不在预设阻抗范围内时,按照低压充电策略,向所述充电器发送第三控制指令;所述第三控制指令用于控制所述充电器输出第三充电电流且保持所述充电器的输出电压在低压阈值范围内不变,所述第三充电电流小于或等于第一电流阈值,所述第三充电电流小于第二充电电流。When the impedance of the charging line is not within the preset impedance range, according to the low-voltage charging strategy, send a third control instruction to the charger; the third control instruction is used to control the charger to output a third charging current and The output voltage of the charger is kept constant within the low-voltage threshold range, the third charging current is less than or equal to the first current threshold, and the third charging current is smaller than the second charging current.27.一种非临时性计算机可读存储介质,当所述存储介质中的指令由充电控制装置的处理器执行时,使得充电器能够执行一种充电方法,所述方法包括:27. A non-transitory computer-readable storage medium, when the instructions in the storage medium are executed by the processor of the charging control device, the charger can perform a charging method, the method comprising:向移动终端发送输出的第一电压;其中,所述第一电压为所述充电器的输出接口处的电压,所述充电器的输出接口处和所述移动终端的输入接口处连接有充电线;Send the output first voltage to the mobile terminal; wherein, the first voltage is the voltage at the output interface of the charger, and a charging line is connected between the output interface of the charger and the input interface of the mobile terminal ;基于所述移动终端的第一控制指令,以预设步长值从初始充电电流值逐步增大输出的第一充电电流;其中,每一个所述第一充电电流,用于供所述移动终端计算所述充电线的阻抗;Based on the first control instruction of the mobile terminal, the output first charging current is gradually increased from the initial charging current value with a preset step value; wherein, each of the first charging currents is used for the mobile terminal calculating the impedance of the charging line;基于所述移动终端发送的充电控制指令,向所述移动终端进行充电;其中,所述充电控制指令是根据所述充电线的阻抗确定的;其中,基于所述移动终端发送的第六控制指令,停止输出电流;其中,所述第六控制指令是根据与每一个所述第一充电电流对应的第一阻抗的方差确定的;Charging the mobile terminal based on the charging control instruction sent by the mobile terminal; wherein, the charging control instruction is determined according to the impedance of the charging line; wherein, based on the sixth control instruction sent by the mobile terminal , stop outputting current; wherein, the sixth control command is determined according to the variance of the first impedance corresponding to each of the first charging currents;当所述充电线的阻抗计算过程异常时,基于所述移动终端发送的第七控制指令,输出第四充电电流;其中,所述第四充电电流小于或等于第一电流阈值;所述充电线的阻抗计算过程异常包括:所述充电线的阻抗为负值或者无法计算出所述充电线的阻抗;且所述充电线的阻抗计算过程异常的原因包括:移动终端或充电线出现硬件故障;When the impedance calculation process of the charging line is abnormal, based on the seventh control instruction sent by the mobile terminal, a fourth charging current is output; wherein, the fourth charging current is less than or equal to the first current threshold; the charging line The abnormality of the impedance calculation process includes: the impedance of the charging line is negative or the impedance of the charging line cannot be calculated; and the reason for the abnormality of the impedance calculation process of the charging line includes: a hardware failure of the mobile terminal or the charging line;当所述充电线的阻抗不在预设阻抗范围内时,基于所述移动终端按照低压充电策略发送的第三控制指令,输出第三充电电流,并且保持输出电压在低压阈值范围内不变;其中,所述第三充电电流小于或等于第一电流阈值,所述第三充电电流小于第二充电电流。When the impedance of the charging line is not within the preset impedance range, based on the third control instruction sent by the mobile terminal according to the low-voltage charging strategy, a third charging current is output, and the output voltage is kept constant within the low-voltage threshold range; wherein , the third charging current is less than or equal to the first current threshold, and the third charging current is smaller than the second charging current.
CN201910703045.8A2019-07-312019-07-31Charge control method, charge control device, and readable storage mediumActiveCN112311035B (en)

Priority Applications (1)

Application NumberPriority DateFiling DateTitle
CN201910703045.8ACN112311035B (en)2019-07-312019-07-31Charge control method, charge control device, and readable storage medium

Applications Claiming Priority (1)

Application NumberPriority DateFiling DateTitle
CN201910703045.8ACN112311035B (en)2019-07-312019-07-31Charge control method, charge control device, and readable storage medium

Publications (2)

Publication NumberPublication Date
CN112311035A CN112311035A (en)2021-02-02
CN112311035Btrue CN112311035B (en)2023-08-29

Family

ID=74486320

Family Applications (1)

Application NumberTitlePriority DateFiling Date
CN201910703045.8AActiveCN112311035B (en)2019-07-312019-07-31Charge control method, charge control device, and readable storage medium

Country Status (1)

CountryLink
CN (1)CN112311035B (en)

Families Citing this family (2)

* Cited by examiner, † Cited by third party
Publication numberPriority datePublication dateAssigneeTitle
CN113098085B (en)*2021-03-312023-05-02联想(北京)有限公司Charging processing method and electronic equipment
CN118232482B (en)*2024-05-222024-08-16惠州市乐亿通科技股份有限公司 Charger intelligent charging and protection system

Citations (4)

* Cited by examiner, † Cited by third party
Publication numberPriority datePublication dateAssigneeTitle
CN105826959A (en)*2015-05-182016-08-03维沃移动通信有限公司Charging method, device and mobile terminal
CN106712219A (en)*2017-03-062017-05-24北京小米移动软件有限公司Charging protection method and device
CN108448673A (en)*2018-03-292018-08-24维沃移动通信有限公司 A charging method, mobile terminal and charger
CN109962514A (en)*2019-02-222019-07-02维沃移动通信有限公司 A charging method and mobile terminal

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication numberPriority datePublication dateAssigneeTitle
EP2827162A1 (en)*2013-07-162015-01-21ST-Ericsson SABattery DC impedance measurement

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication numberPriority datePublication dateAssigneeTitle
CN105826959A (en)*2015-05-182016-08-03维沃移动通信有限公司Charging method, device and mobile terminal
CN106712219A (en)*2017-03-062017-05-24北京小米移动软件有限公司Charging protection method and device
CN108448673A (en)*2018-03-292018-08-24维沃移动通信有限公司 A charging method, mobile terminal and charger
CN109962514A (en)*2019-02-222019-07-02维沃移动通信有限公司 A charging method and mobile terminal

Also Published As

Publication numberPublication date
CN112311035A (en)2021-02-02

Similar Documents

PublicationPublication DateTitle
EP3439138B1 (en)Method and terminal for wireless charging
EP3796511A1 (en)Charging method, charging device and readable storage medium
CN106712219A (en)Charging protection method and device
US20210126483A1 (en)Battery charging method, battery charging apparatus and storage medium
CN108964182A (en)The adjusting method and device of reverse charging equipment, reverse charging electric current
CN113258625A (en)Charging method, charging device, terminal and storage medium
CN108475931A (en)Mobile terminal and charging method
CN107196372A (en)Charging method and device
CN108091809A (en)Battery, equipment, charge control method and device
CN108091808A (en)Battery, equipment, charge control method and device
CN112311035B (en)Charge control method, charge control device, and readable storage medium
CN106230066A (en)Charge prompting method and apparatus
CN108448694A (en) Wireless charging equipment, method and device, electronic equipment
CN107124012B (en)Charging method, device, charger, terminal and system
CN116111659A (en)Charging circuit, method, device, electronic equipment and medium
CN114552683A (en) Detection circuit, wireless charging device, terminal equipment, control method and device
CN105490332B (en)Charging method, apparatus and system
EP4170855A1 (en)Charging method, electronic device and storage medium
CN106877451A (en) Charging port short-circuit protection method and device
CN106785135A (en)Multichannel charging method, device and equipment
CN113258150B (en)Charging method and device, electronic equipment and computer readable storage medium
CN113451670B (en)Battery charging method, device and medium
CN113572208B (en) Battery charging method and device
CN108429312A (en)Charge control method and device
CN112448054B (en)Charging method and device of mobile terminal, terminal and storage medium

Legal Events

DateCodeTitleDescription
PB01Publication
PB01Publication
SE01Entry into force of request for substantive examination
SE01Entry into force of request for substantive examination
GR01Patent grant
GR01Patent grant

[8]ページ先頭

©2009-2025 Movatter.jp