[go: up one dir, main page]

CN107994650A - Charging control method, device and equipment - Google Patents

Charging control method, device and equipment Download PDF

Info

Publication number
CN107994650A
CN107994650A CN201711443853.2A CN201711443853A CN107994650A CN 107994650 A CN107994650 A CN 107994650A CN 201711443853 A CN201711443853 A CN 201711443853A CN 107994650 A CN107994650 A CN 107994650A
Authority
CN
China
Prior art keywords
charging
current
voltage
module
threshold
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Granted
Application number
CN201711443853.2A
Other languages
Chinese (zh)
Other versions
CN107994650B (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.)
Guangdong Oppo Mobile Telecommunications Corp Ltd
Original Assignee
Guangdong Oppo Mobile Telecommunications Corp 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 Guangdong Oppo Mobile Telecommunications Corp Ltd filed Critical Guangdong Oppo Mobile Telecommunications Corp Ltd
Priority to CN201711443853.2A priority Critical patent/CN107994650B/en
Publication of CN107994650A publication Critical patent/CN107994650A/en
Application granted granted Critical
Publication of CN107994650B publication Critical patent/CN107994650B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • H02J7/82
    • YGENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
    • Y02TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
    • Y02BCLIMATE CHANGE MITIGATION TECHNOLOGIES RELATED TO BUILDINGS, e.g. HOUSING, HOUSE APPLIANCES OR RELATED END-USER APPLICATIONS
    • Y02B40/00Technologies aiming at improving the efficiency of home appliances, e.g. induction cooking or efficient technologies for refrigerators, freezers or dish washers

Landscapes

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

Abstract

The application discloses a charging control method, a charging control device and charging control equipment, wherein the method comprises the steps of judging whether the current residual electric quantity of a charging module is greater than an electric quantity threshold value; if not, respectively detecting a first voltage and a second voltage at the input end when the input current of the charging module is a first charging current and a second charging current; calculating a first line impedance of the charging loop according to the first charging current, the second charging current, the first voltage and the second voltage; judging whether the impedance of the first line is greater than a resistance threshold value; if yes, judging whether the second charging current is a current threshold value; if not, judging whether the voltage at the input end of the charging module is greater than a first voltage threshold value or not when the input current of the charging module is increased to a third charging current; if not, controlling the current of the input end of the charging module to be the second charging current. The method improves the compatibility of the terminal equipment to adapters with different specifications, improves the charging efficiency, ensures the charging reliability and safety, and improves the user experience.

Description

充电控制方法、装置及设备Charging control method, device and equipment

技术领域technical field

本申请涉及充电技术领域,特别涉及一种充电控制方法、装置及设备。The present application relates to the technical field of charging, and in particular to a charging control method, device and equipment.

背景技术Background technique

通常,终端设备在充电时,均是通过适配器与交流市电连接,由适配器将交流市电转化为低压直流电后,再经过终端设备中充电电路为电池进行充电。目前,为了使终端设备的充电效率更高,充电过程更安全。终端设备的充电方式,通常是结合配套的适配器一同设计的。Usually, when the terminal device is charging, it is connected to the AC mains through an adapter, and the adapter converts the AC mains into low-voltage direct current, and then charges the battery through the charging circuit in the terminal device. At present, in order to make the charging efficiency of terminal equipment higher, the charging process is safer. The charging method of the terminal equipment is usually designed together with the matching adapter.

然而,在实际使用时,用户通常会使用不同厂家、不同规格的适配器,比如输出电流为1安培(A)、1.2A、1.5A、2A等对终端设备进行充电。由于不同适配器所输出的电流大小不同,因此采用上述充电方式,就容易出现在对终端设备进行充电时,所需的充电电流大于适配器自身额定输出电流,导致适配器采取保护措施而关闭电流的输出,进而造成终端设备无法正常进行充电,影响用户的使用。However, in actual use, users usually use adapters of different manufacturers and specifications, such as an output current of 1 ampere (A), 1.2 A, 1.5 A, 2 A, etc., to charge the terminal device. Due to the different output currents of different adapters, when using the above charging method, it is easy to appear that when charging the terminal equipment, the required charging current is greater than the rated output current of the adapter itself, causing the adapter to take protective measures and turn off the current output. In turn, the terminal device cannot be charged normally, which affects the use of the user.

发明内容Contents of the invention

本申请旨在至少在一定程度上解决上述的技术缺陷之一。The present application aims to solve one of the above-mentioned technical deficiencies at least to a certain extent.

为此,本申请的第一个目的在于提出一种充电控制方法,该方法提高了终端设备对不同规格适配器的兼容能力,在提高充电效率的同时,又保证了充电的可靠性和安全性,改善了用户体验。Therefore, the first purpose of this application is to propose a charging control method, which improves the compatibility of terminal equipment with adapters of different specifications, and ensures the reliability and safety of charging while improving charging efficiency. Improved user experience.

本申请的第二个目的在于提出一种充电控制装置。The second purpose of the present application is to provide a charging control device.

本申请的第三个目的在于提出一种终端设备。The third purpose of the present application is to provide a terminal device.

本申请的第四个目的在于提出一种计算机可读存储介质。The fourth object of the present application is to provide a computer-readable storage medium.

为了实现上述目的,本申请第一方面实施例的充电控制方法,应用于具有充电模块的终端,包括:判断所述充电模块当前剩余电量是否大于电量阈值;若否,则分别检测所述充电模块的输入电流为第一充电电流及第二充电电流时,输入端的第一电压及第二电压,其中,所述第一充电电流小于所述第二充电电流;根据所述第一充电电流、第二充电电流、第一电压及第二电压,计算充电回路的第一线路阻抗;判断所述第一线路阻抗是否大于电阻阈值;若是,则判断第二充电电流是否为电流阈值;若否,则判断当充电模块输入电流增加至第三充电电流时,所述充电模块的输入端电压是否大于第一电压阈值;若否,则控制所述充电模块输入端电流为第二充电电流。In order to achieve the above purpose, the charging control method of the embodiment of the first aspect of the present application is applied to a terminal with a charging module, including: judging whether the current remaining power of the charging module is greater than the power threshold; if not, detecting the charging modules respectively When the input current is the first charging current and the second charging current, the first voltage and the second voltage at the input end, wherein, the first charging current is smaller than the second charging current; according to the first charging current, the second charging current Two charging current, the first voltage and the second voltage, calculate the first line impedance of the charging circuit; judge whether the first line impedance is greater than the resistance threshold; if so, then judge whether the second charging current is the current threshold; if not, then Judging whether the input terminal voltage of the charging module is greater than the first voltage threshold when the input current of the charging module increases to the third charging current; if not, controlling the input terminal current of the charging module to be the second charging current.

为了实现上述目的,本申请第二方面实施例的充电控制装置,应用于具有充电模块的终端,包括:第一判断模块,用于判断所述充电模块当前剩余电量是否大于电量阈值;第一控制模块,用于若否,则分别检测所述充电模块的输入电流为第一充电电流及第二充电电流时,输入端的第一电压及第二电压,其中,所述第一充电电流小于所述第二充电电流;计算模块,用于根据所述第一充电电流、第二充电电流、第一电压及第二电压,计算充电回路的第一线路阻抗;第二判断模块,用于判断所述第一线路阻抗是否大于电阻阈值;第三判断模块,用于若是,则判断第二充电电流是否为电流阈值;第四判断模块,用于若否,则判断当充电模块输入电流增加至第三充电电流时,所述充电模块的输入端电压是否大于第一电压阈值;第二控制模块,用于若否,则控制所述充电模块输入端电流为第二充电电流。In order to achieve the above purpose, the charging control device of the embodiment of the second aspect of the present application is applied to a terminal with a charging module, including: a first judging module, used to judge whether the current remaining power of the charging module is greater than the power threshold; the first control module, for if not, respectively detecting the first voltage and the second voltage at the input terminal when the input current of the charging module is the first charging current and the second charging current, wherein the first charging current is less than the The second charging current; the calculation module is used to calculate the first line impedance of the charging circuit according to the first charging current, the second charging current, the first voltage and the second voltage; the second judging module is used to judge the Whether the first line impedance is greater than the resistance threshold; the third judging module is used to judge whether the second charging current is the current threshold; if not, the third judging module is used to judge when the input current of the charging module increases to the third When charging current, whether the input terminal voltage of the charging module is greater than the first voltage threshold; the second control module is used to control the input terminal current of the charging module to be the second charging current if not.

为了实现上述目的,本申请第三方面实施例的终端设备,包括存储器、处理器及存储在存储器上并可在处理器上运行的计算机程序,所述处理器执行所述程序时,以实现第一方面实施例所述的充电控制方法。In order to achieve the above object, the terminal device according to the embodiment of the third aspect of the present application includes a memory, a processor, and a computer program stored on the memory and operable on the processor. When the processor executes the program, the first On the one hand, the charging control method described in the embodiment.

为了实现上述目的,本申请第四方面实施例的计算机可读存储介质,其上存储有计算机程序,该计算机程序被处理器执行时实现第一方面实施例所述的充电控制方法。In order to achieve the above purpose, the computer-readable storage medium of the embodiment of the fourth aspect of the present application stores a computer program thereon, and when the computer program is executed by a processor, the charging control method described in the embodiment of the first aspect is implemented.

本申请公开的技术方案,具有如下有益效果:The technical solution disclosed in this application has the following beneficial effects:

在终端设备进行充电操作时,通过先对终端设备的充电模块当前剩余电量是否大于电量阈值进行判断,若判断出充电模块当前剩余电量小于电量阈值时,则分别检测充电模块的输入电流为第一充电电流及第二充电电流时,输入端的第一电压及第二电压,并根据第一充电电流、第二充电电流、第一电压及第二电压计算出充电回路的第一线路阻抗,然后判断计算出的第一线路阻抗是否大于电阻阈值,若第一线路阻抗大于电阻阈值时,则进一步判断第二充电电流是否为电流阈值,若不是电流阈值,则判断充电模块输入电流增加至第三充电电流时,充电模块的输入端电压是否大于第一电压阈值,若不大于,则控制充电模块输入端的电流为第二充电电流。由此,实现了在对终端设备进行充电操作时,能够根据剩余容量、适配器的输出能力、充电线路的阻抗,适应性的调整终端设备充电电流的大小,从而提高了终端设备对不同规格适配器的兼容能力,在提高充电效率的同时,又保证了充电的可靠性和安全性,改善了用户体验。When the terminal device is performing a charging operation, it first judges whether the current remaining power of the charging module of the terminal device is greater than the power threshold. When charging current and second charging current, input the first voltage and second voltage, and calculate the first line impedance of the charging circuit according to the first charging current, second charging current, first voltage and second voltage, and then judge Whether the calculated first line impedance is greater than the resistance threshold, if the first line impedance is greater than the resistance threshold, then further judge whether the second charging current is the current threshold, if not, then judge that the input current of the charging module has increased to the third charging current, whether the voltage at the input terminal of the charging module is greater than the first voltage threshold, if not, control the current at the input terminal of the charging module to be the second charging current. Thus, when charging the terminal equipment, the charging current of the terminal equipment can be adaptively adjusted according to the remaining capacity, the output capacity of the adapter, and the impedance of the charging line, thereby improving the ability of the terminal equipment to adapt to adapters of different specifications. Compatibility, while improving the charging efficiency, it also ensures the reliability and safety of charging and improves the user experience.

本申请附加的方面和优点将在下面的描述中部分给出,部分将从下面的描述中变得明显,或通过本申请的实践了解到。Additional aspects and advantages of the application will be set forth in part in the description which follows, and in part will be obvious from the description, or may be learned by practice of the application.

附图说明Description of drawings

本申请上述的和/或附加的方面和优点从下面结合附图对实施例的描述中将变得明显和容易理解,其中,The above and/or additional aspects and advantages of the present application will become apparent and easy to understand from the following description of the embodiments in conjunction with the accompanying drawings, wherein,

图1是根据本申请一个实施例的充电控制方法的流程图;FIG. 1 is a flowchart of a charging control method according to an embodiment of the present application;

图2是根据本申请另一个实施例的充电控制方法的流程图;2 is a flowchart of a charging control method according to another embodiment of the present application;

图3是根据本申请又一个实施例的充电控制方法的流程图;FIG. 3 is a flow chart of a charging control method according to yet another embodiment of the present application;

图4是根据本申请一个实施例的充电控制装置的结构示意图;Fig. 4 is a schematic structural diagram of a charging control device according to an embodiment of the present application;

图5是根据本申请一个实施例的终端设备的结构示意图。Fig. 5 is a schematic structural diagram of a terminal device according to an embodiment of the present application.

具体实施方式Detailed ways

下面详细描述本申请的实施例,所述实施例的示例在附图中示出,其中自始至终相同或类似的标号表示相同或类似的元件或具有相同或类似功能的元件。下面通过参考附图描述的实施例是示例性的,旨在用于解释本申请,而不能理解为对本申请的限制。Embodiments of the present application are described in detail below, examples of which are shown in the drawings, wherein the same or similar reference numerals denote the same or similar elements or elements having the same or similar functions throughout. The embodiments described below by referring to the figures are exemplary, and are intended to explain the present application, and should not be construed as limiting the present application.

为了解决相关技术中,用户使用不同规格的适配器对终端设备进行充电操作时,容易出现所需充电电流大于适配器自身额定输出电流,导致适配器采取保护措施而关闭电流的输出,造成终端设备无法正常进行充电操作,影响用户使用的问题,提出了一种充电控制方法。In order to solve the related technology, when the user uses adapters of different specifications to charge the terminal equipment, the required charging current is likely to be greater than the rated output current of the adapter itself, causing the adapter to take protective measures to shut down the current output, causing the terminal equipment to fail to operate normally. The charging operation affects the user's use, and a charging control method is proposed.

本申请提供的充电控制方法,在对终端设备进行充电操作时,通过先对终端设备的充电模块当前剩余电量是否大于电量阈值进行判断,若判断出充电模块当前剩余电量小于电量阈值时,则分别检测充电模块的输入电流为第一充电电流及第二充电电流时,输入端的第一电压及第二电压,并根据第一充电电流、第二充电电流、第一电压及第二电压计算出充电回路的第一线路阻抗,然后判断计算出的第一线路阻抗是否大于电阻阈值,若第一线路阻抗大于电阻阈值时,则进一步判断第二充电电流是否为电流阈值,若不是电流阈值,则判断充电模块输入电流增加至第三充电电流时,充电模块的输入端电压是否大于第一电压阈值,若不大于,则控制充电模块输入端的电流为第二充电电流。由此,实现了在对终端设备进行充电操作时,能够根据剩余容量、适配器的输出能力、充电线路的阻抗,适应性的调整终端设备充电电流的大小,从而提高了终端设备对不同规格适配器的兼容能力,在提高充电效率的同时,又保证了充电的可靠性和安全性,改善了用户体验。In the charging control method provided by this application, when performing a charging operation on a terminal device, it first judges whether the current remaining power of the charging module of the terminal device is greater than the power threshold, and if it is judged that the current remaining power of the charging module is less than the power threshold, then respectively When the input current of the charging module is the first charging current and the second charging current, the first voltage and the second voltage at the input terminal are detected, and the charging is calculated according to the first charging current, the second charging current, the first voltage and the second voltage Then determine whether the calculated first line impedance is greater than the resistance threshold, if the first line impedance is greater than the resistance threshold, further determine whether the second charging current is the current threshold, if not the current threshold, then judge When the input current of the charging module increases to the third charging current, whether the voltage at the input terminal of the charging module is greater than the first voltage threshold, if not, control the current at the input terminal of the charging module to be the second charging current. Thus, when charging the terminal equipment, the charging current of the terminal equipment can be adaptively adjusted according to the remaining capacity, the output capacity of the adapter, and the impedance of the charging line, thereby improving the ability of the terminal equipment to adapt to adapters of different specifications. Compatibility, while improving the charging efficiency, it also ensures the reliability and safety of charging and improves the user experience.

下面参考附图描述本申请实施例的充电控制方法。The charging control method of the embodiment of the present application will be described below with reference to the accompanying drawings.

图1是根据本申请一个实施例的充电控制方法的流程图。Fig. 1 is a flowchart of a charging control method according to an embodiment of the present application.

如图1所示,本申请的充电控制方法可以包括以下步骤:As shown in Figure 1, the charging control method of the present application may include the following steps:

步骤101,判断充电模块当前剩余电量是否大于电量阈值,若小于则执行步骤102,否则执行步骤108。Step 101, judge whether the current remaining power of the charging module is greater than the power threshold, if less, execute step 102, otherwise execute step 108.

具体的,本申请实施例提供的充电控制方法,可以由本申请提供的充电控制装置执行,上述装置配置于终端设备中,以实现对终端的充电过程进行控制。Specifically, the charging control method provided in the embodiment of the present application can be executed by the charging control device provided in the present application, and the above-mentioned device is configured in a terminal device to control the charging process of the terminal.

其中,在本实施例中,终端设备可以是任意具有充电模块的硬件设备,比如智能手机、个人数字助理(Personal Digital Assistant,简称为PDA)、平板电脑等等,本申请对此不作具体限定。在本实施例中充电模块可以是指终端设备中的可充电池。Wherein, in this embodiment, the terminal device may be any hardware device having a charging module, such as a smart phone, a personal digital assistant (Personal Digital Assistant, PDA for short), a tablet computer, etc., which is not specifically limited in this application. In this embodiment, the charging module may refer to a rechargeable battery in the terminal device.

其中,电量阈值可以是根据充电模块的属性进行适应性设置,比如80%、85%等等,此处对其不作具体限定。Wherein, the power threshold can be adaptively set according to the properties of the charging module, such as 80%, 85%, etc., which is not specifically limited here.

具体的,当检测到充电模块与适配器建立连接之后,充电控制装置即可检测充电模块当前剩余电量,并将检测结果与电量阈值进行比对,以确定出充电模块当前剩余电量是否大于电量阈值。其中,充电模块当前剩余电量可以用百分比来表示。Specifically, after detecting that the charging module is connected to the adapter, the charging control device can detect the current remaining power of the charging module, and compare the detection result with the power threshold to determine whether the current remaining power of the charging module is greater than the power threshold. Wherein, the current remaining power of the charging module can be represented by a percentage.

具体实现时,本实施例可以根据存储单元记录的充电模块在上次充电后的放电时间、放电电流及充电模块上次充电结束时的容量,来计算出充电模块当前剩余电量。During specific implementation, this embodiment can calculate the current remaining power of the charging module according to the discharge time and discharge current of the charging module after the last charging recorded by the storage unit, and the capacity of the charging module at the end of the last charging.

具体的,可利用公式(1),计算充电模块当前剩余电量。Specifically, formula (1) can be used to calculate the current remaining power of the charging module.

C=Q-I*t…………………………………………………(1)C=Q-I*t………………………………………(1)

其中,C为充电模块当前剩余电量,Q为充电模块上次充电结束时的容量,I为充电模块的放电电流、t为充电模块上次充电后的放电时间。Among them, C is the current remaining power of the charging module, Q is the capacity of the charging module at the end of the last charge, I is the discharge current of the charging module, and t is the discharge time of the charging module after the last charge.

举例说明,若充电模块上次充电结束时的容量为3000毫安(mA),且放电电流为200mA,放电时间为1小时(h),那么利用公式(1)可以计算出充电模块当前剩余电量为2800mA。也就是说,充电模块当前剩余电量为额定容量的94%。For example, if the capacity of the charging module at the end of the last charge is 3000 milliamps (mA), and the discharge current is 200mA, and the discharge time is 1 hour (h), then the current remaining power of the charging module can be calculated using formula (1) 2800mA. That is to say, the current remaining power of the charging module is 94% of the rated capacity.

若本实施例中电量阈值为80%,那么说明充电模块当前剩余电量大于电量阈值。If the power threshold in this embodiment is 80%, it means that the current remaining power of the charging module is greater than the power threshold.

步骤102,分别检测充电模块的输入电流为第一充电电流及第二充电电流时,输入端的第一电压及第二电压。Step 102, respectively detecting the first voltage and the second voltage at the input terminal when the input current of the charging module is the first charging current and the second charging current.

其中,第一充电电流小于第二充电电流。Wherein, the first charging current is smaller than the second charging current.

具体的,第一充电电流及第二充电电流,可以为充电控制装置预先设定的多组充电电流中的任意两种;或者,可以为根据充电模块当前的剩余容量计算的任意两种充电电流,此处对其不作具体限定。Specifically, the first charging current and the second charging current can be any two of the multiple groups of charging currents preset by the charging control device; or they can be any two of the charging currents calculated according to the current remaining capacity of the charging module. , which is not specifically limited here.

具体的,本实施例的充电控制装置可实时检测充电模块的输入电流,并且当确定充电模块的输入电流为第一充电电流及第二充电电流时,获取充电模块输入端与第一充电电流对应的第一电压,及与第二充电电流对应的第二电压。Specifically, the charging control device of this embodiment can detect the input current of the charging module in real time, and when it is determined that the input current of the charging module is the first charging current and the second charging current, obtain the input terminal of the charging module corresponding to the first charging current. The first voltage, and the second voltage corresponding to the second charging current.

步骤103,根据第一充电电流、第二充电电流、第一电压及第二电压,计算充电回路的第一线路阻抗。Step 103, calculating a first line impedance of the charging circuit according to the first charging current, the second charging current, the first voltage and the second voltage.

具体的,由于在对充电模块充电时,适配器输出到充电模块的充电电流需要使用导线传递,而导线本身具有电阻,因此当充电电流经过导线到达充电模块时会产生电压差,使得充电模块输入端的电压低于适配器输出口的电压,并且上述电压差会随着适配器输出电流的增加而加大。Specifically, when charging the charging module, the charging current output from the adapter to the charging module needs to be transmitted through a wire, and the wire itself has resistance, so when the charging current reaches the charging module through the wire, a voltage difference will be generated, so that the input terminal of the charging module The voltage is lower than the voltage at the output port of the adapter, and the above-mentioned voltage difference will increase with the increase of the output current of the adapter.

因此,为了确定适配器到充电模块间的线路阻抗是否合理,本申请可利用第一充电电流、第二充电电流、第一电压及第二电压对充电回路的第一线路阻抗进行计算。Therefore, in order to determine whether the line impedance between the adapter and the charging module is reasonable, the present application can use the first charging current, the second charging current, the first voltage and the second voltage to calculate the first line impedance of the charging circuit.

具体实现时,可通过公式(2)来计算充电回路的第一线路阻抗:In specific implementation, the first line impedance of the charging circuit can be calculated by formula (2):

其中,R为充电回路的第一线路阻抗,V1为充电模块输入端的第一电压,V2为充电模块输入端的第二电压,I1为充电模块的第一充电电流,I2为充电模块的第二充电电流。Among them, R is the first line impedance of the charging circuit, V 1 is the first voltage at the input terminal of the charging module, V 2 is the second voltage at the input terminal of the charging module, I 1 is the first charging current of the charging module, and I 2 is the charging module The second charging current.

例如,若充电模块的第一充电电流为300毫安倍(mA),第二充电电流为500mA,第一电压为5.1伏特(V),第二电压为5.0V,那么利用公式(2)可以计算出充电回路的第一线路阻抗为 For example, if the first charging current of the charging module is 300 milliamperes (mA), the second charging current is 500 mA, the first voltage is 5.1 volts (V), and the second voltage is 5.0 V, then formula (2) can be used to calculate The first line impedance out of the charging loop is

步骤104,判断第一线路阻抗是否大于电阻阈值,若大于则执行步骤105。Step 104, judging whether the impedance of the first line is greater than a resistance threshold, and if so, performing step 105.

其中,本实施例中电阻阈值可以根据经验进行取值,对此不作具体限定。比如100(mΩ)等等。Wherein, the resistance threshold value in this embodiment may be selected according to experience, which is not specifically limited. Such as 100 (mΩ) and so on.

继续使用上述示例进行说明,若本实施例中电阻阈值为100mΩ,则说明第一线路阻抗大于电阻阈值。Continuing to use the above example for description, if the resistance threshold in this embodiment is 100 mΩ, it means that the impedance of the first line is greater than the resistance threshold.

步骤105,判断第二充电电流是否为电流阈值,若否,则执行步骤106。Step 105, judging whether the second charging current is the current threshold, if not, then execute step 106.

其中,在本实施例中电流阈值为充电模块在充电时所允许的最大充电电流值,比如2A、2.1A等等,此处对其不作具体限定。Wherein, in this embodiment, the current threshold is the maximum charging current value allowed by the charging module during charging, such as 2A, 2.1A, etc., which is not specifically limited here.

也就是说,对充电模块进行充电操作时,输入的电流最大为电流阈值,否则过大的充电电流将会对充电模块造成不利影响。That is to say, when the charging operation is performed on the charging module, the maximum input current is the current threshold, otherwise an excessive charging current will have an adverse effect on the charging module.

继续使用上述示例进行说明,若电流阈值为2A,第二充电电流为500mA时,则表明第二充电电流小于电流阈值。Continuing to use the above example for illustration, if the current threshold is 2A and the second charging current is 500mA, it indicates that the second charging current is smaller than the current threshold.

步骤106,判断当充电模块输入电流增加至第三充电电流时,充电模块的输入端电压是否大于第一电压阈值,若否,则执行步骤107。Step 106 , judging whether the input terminal voltage of the charging module is greater than the first voltage threshold when the input current of the charging module increases to the third charging current, and if not, go to step 107 .

其中,第一电压阈值为预先设置的充电模块输入端第一限压值,充电模块输入端的电压值需大于该第一电压阈值时,充电模块才能进行充电。第一电压阈值的大小可以根据充电模块的硬件电路确定,比如,5.1V等等,此处不作具体限定。Wherein, the first voltage threshold is a preset first limited voltage value of the input terminal of the charging module, and the charging module can only charge when the voltage value of the input terminal of the charging module is greater than the first voltage threshold. The magnitude of the first voltage threshold can be determined according to the hardware circuit of the charging module, for example, 5.1V, etc., which is not specifically limited here.

具体的,当确定出第二充电电流小于电流阈值时,则说明当前的充电电流没有到达充电模块所允许的最大充电电流,此时可以继续增加对充电模块的输入电流。Specifically, when it is determined that the second charging current is less than the current threshold, it means that the current charging current has not reached the maximum charging current allowed by the charging module, and at this time, the input current to the charging module can continue to be increased.

进一步的,为了避免增大后的充电电流超出适配器的输出能力,造成适配器出现保护处理而关闭电流的输出,本申请在增大充电电流之前,先计算一下当充电电流从第二充电电流增加到第三充电电流时,对应的输入端电压值(第三电压值),并将第三电压值与第一电压值进行比对操作,以确定第三电压值是否大于第一电压阈值。Further, in order to prevent the increased charging current from exceeding the output capability of the adapter, causing the adapter to perform protection processing and turn off the output of the current, before increasing the charging current, this application first calculates when the charging current increases from the second charging current to When the third charging current is used, the corresponding input terminal voltage value (third voltage value), and the third voltage value is compared with the first voltage value to determine whether the third voltage value is greater than the first voltage threshold.

具体实现时,本实施例可先从预先设定多组充电电流中,选择比第二充电电流大一级的第三充电电流,然后根据适配器的输出端电压、充电回路的第一线路阻抗、第二电压、第三充电电流,来计算充电模块输入端的第三电压。During specific implementation, in this embodiment, a third charging current that is one level higher than the second charging current can be selected from among multiple sets of preset charging currents, and then according to the output terminal voltage of the adapter, the first line impedance of the charging circuit, The second voltage and the third charging current are used to calculate the third voltage at the input terminal of the charging module.

具体实现时,可利用公式(3)和(4)计算充电模块输入端的第三电压:During specific implementation, formulas (3) and (4) can be used to calculate the third voltage at the input terminal of the charging module:

Vs=(I2×R)+V2…………………………………………(3)V s =(I 2 ×R)+V 2 …………………………………(3)

V3=Vs-(I3×R)=(I2×R)+V2-(I3×R)=V2-(I3-I2)×R…………(4)V 3 =V s -(I 3 ×R)=(I 2 ×R)+V 2 -(I 3 ×R)=V 2 -(I 3 -I 2 )×R...(4)

其中,Vs为适配器的输出电压,V2为充电模块输入端的第二电压,V3充电模块输入端的第三电压,I2为充电模块的第二充电电流,I3为充电模块的第一充电电流,R为充电回路的第一线路阻抗。Among them, Vs is the output voltage of the adapter, V2 is the second voltage at the input terminal of the charging module, V3 is the third voltage at the input terminal of the charging module, I2 is the second charging current of the charging module, and I3 is the first charging current of the charging module current, R is the first line impedance of the charging circuit.

举例来说,若选取的第三充电电流为800mA,充电回路的第一线路阻抗为150mΩ,充电模块的第二充电电流为500mA,充电模块输入端的第二电压为5.0V,那么基于公式(3),可以计算出适配器的输出端电压为5.075。For example, if the selected third charging current is 800mA, the first line impedance of the charging circuit is 150mΩ, the second charging current of the charging module is 500mA, and the second voltage at the input terminal of the charging module is 5.0V, then based on the formula (3 ), the output voltage of the adapter can be calculated as 5.075.

进一步的,在计算出适配器的输出端电压之后,可利用公式(4),计算出充电模块输入电流为800mA时,对应的第三电压为4.955V。Further, after the output terminal voltage of the adapter is calculated, formula (4) can be used to calculate that when the input current of the charging module is 800mA, the corresponding third voltage is 4.955V.

其中,若第一电压阈值为5.1V,则表明充电模块的第三电压4.955小于第一电压阈值5.1V。Wherein, if the first voltage threshold is 5.1V, it indicates that the third voltage 4.955 of the charging module is lower than the first voltage threshold 5.1V.

步骤107,控制充电模块输入端电流为第二充电电流。Step 107, controlling the current at the input terminal of the charging module to be the second charging current.

具体的,当确定出充电模块的输入电流为第三充电电流,对应的输入端第三电压小于第一电压阈值时,可表明适配器的输出能力已经超出自身额定输出能力。因此,为了避免适配器因输出超过自身能力,而采取保护措施导致充电模块无法正常进行充电操作的问题,本实施例充电控制装置可通过控制充电模块的输入电流为第二充电电流,以对充电模块进行充电操作。Specifically, when it is determined that the input current of the charging module is the third charging current and the corresponding third voltage at the input terminal is lower than the first voltage threshold, it may indicate that the output capability of the adapter has exceeded its own rated output capability. Therefore, in order to avoid the problem that the charging module cannot perform normal charging operation due to the protection measures taken by the adapter because the output exceeds its own capacity, the charging control device in this embodiment can control the input current of the charging module to be the second charging current to control the charging module. Perform charging operation.

步骤108,根据当前的剩余电量确定第四充电电流,并控制充电模块输入端电流为第四充电电流。Step 108, determine the fourth charging current according to the current remaining power, and control the current at the input terminal of the charging module to be the fourth charging current.

具体的,当判断出充电模块当前剩余电量大于电量阈值时,充电控制装置可以直接采取较小的充电电流对充电模块进行充电,或者根据当前的剩余电量,计算一个充电电流来对充电模块进行充电,本实施例对此不做限定。Specifically, when it is determined that the current remaining power of the charging module is greater than the power threshold, the charging control device can directly charge the charging module with a smaller charging current, or calculate a charging current to charge the charging module according to the current remaining power. , which is not limited in this embodiment.

需要说明的是,充电控制装置,也可以在充电过程中,周期性的对充电模块的剩余电量进行检测,以对充电电流进行调整,从而使充电过程更安全、更可靠。It should be noted that the charging control device can also periodically detect the remaining power of the charging module during the charging process, so as to adjust the charging current, so as to make the charging process safer and more reliable.

本申请提供的充电控制方法,实现了在对终端设备进行充电操作时,能够根据剩余容量、适配器的输出能力、充电线路的阻抗,适应性的调整终端设备充电电流的大小,从而提高了终端设备对不同规格适配器的兼容能力,在提高充电效率的同时,又保证了充电的可靠性和安全性,改善了用户体验。The charging control method provided by the present application can adaptively adjust the charging current of the terminal device according to the remaining capacity, the output capacity of the adapter, and the impedance of the charging line during the charging operation of the terminal device, thereby improving the charging efficiency of the terminal device. Compatibility with adapters of different specifications not only improves charging efficiency, but also ensures charging reliability and safety, and improves user experience.

通过上述分析可知,本申请在确定充电回路的第一线路阻抗大于电阻阈值时,则可以对充电电流进行进一步自适应调整。在本申请的另一种情形中,当判断出第一线路阻抗小于电阻阈值时,则需要进一步对线路阻抗进行判断,以确定出对充电模块的充电电流大小。下面结合图2,对本申请的充电控制方法进行进一步的描述。From the above analysis, it can be known that the present application can further adaptively adjust the charging current when it is determined that the first line impedance of the charging circuit is greater than the resistance threshold. In another situation of the present application, when it is judged that the first line impedance is less than the resistance threshold, it is necessary to further judge the line impedance to determine the magnitude of the charging current for the charging module. The charging control method of the present application will be further described below with reference to FIG. 2 .

图2是本申请的另一个充电控制方法的流程图。Fig. 2 is a flow chart of another charging control method of the present application.

如图2所示,本申请的充电控制方法可以包括以下步骤:As shown in Figure 2, the charging control method of the present application may include the following steps:

步骤201,判断充电模块当前剩余电量是否大于电量阈值,若小于则执行步骤202,否则执行步骤209。Step 201, judge whether the current remaining power of the charging module is greater than the power threshold, if less, execute step 202, otherwise execute step 209.

步骤202,分别检测充电模块的输入电流为第一充电电流及第二充电电流时,输入端的第一电压及第二电压。Step 202, respectively detecting the first voltage and the second voltage at the input terminal when the input current of the charging module is the first charging current and the second charging current.

其中,第一充电电流小于所述第二充电电流。Wherein, the first charging current is smaller than the second charging current.

步骤203,根据第一充电电流、第二充电电流、第一电压及第二电压,计算充电回路的第一线路阻抗。Step 203, calculate a first line impedance of the charging circuit according to the first charging current, the second charging current, the first voltage and the second voltage.

步骤204,判断第一线路阻抗是否大于电阻阈值,若小于则执行步骤205。Step 204, judging whether the impedance of the first line is greater than the resistance threshold, and if smaller, execute step 205.

例如,若电阻阈值为150mΩ,而第一线路阻抗为200mΩ,则说明第一线路阻抗大于电阻阈值。For example, if the resistance threshold is 150mΩ and the first line impedance is 200mΩ, it means that the first line impedance is greater than the resistance threshold.

步骤205,判断第二充电电流是否等于电流阈值,若等于则执行步骤206,否则执行步骤207。Step 205 , judging whether the second charging current is equal to the current threshold, if so, execute step 206 , otherwise execute step 207 .

步骤206,控制充电模块输入端电流为第二充电电流。Step 206, controlling the current at the input terminal of the charging module to be the second charging current.

具体的,当确定出第二充电电流等于电流阈值时,则说明当前的第二充电电流已经为充电模块输入的最大电流,因此不需要进行进一步的判断操作,直接可利用第二充电电流对充电模块进行充电操作。Specifically, when it is determined that the second charging current is equal to the current threshold, it means that the current second charging current has already reached the maximum current input by the charging module, so no further judgment operation is required, and the second charging current can be directly used to charge The module performs charging operation.

步骤207,检测充电模块输入电流增加至第三充电电流时,输入端的第三电压。Step 207, detecting the third voltage at the input terminal when the input current of the charging module increases to the third charging current.

步骤208,根据第三电压、第三充电电流、第二电压及第二充电电流,执行计算充电回路的第一线路阻抗的步骤(步骤203)。Step 208, perform the step of calculating the first line impedance of the charging circuit according to the third voltage, the third charging current, the second voltage and the second charging current (step 203).

步骤209,根据当前的剩余电量确定第四充电电流,并控制充电模块输入端电流为第四充电电流。Step 209, determine a fourth charging current according to the current remaining power, and control the current at the input terminal of the charging module to be the fourth charging current.

本申请实施例的充电控制方法,实现了在对终端设备进行充电操作时,能够根据剩余容量、适配器的输出能力、充电线路的阻抗,适应性的调整终端设备充电电流的大小,从而提高了终端设备对不同规格适配器的兼容能力,在提高充电效率的同时,又保证了充电的可靠性和安全性,改善了用户体验。并且实现了在不改变电路基础上,实现了较好的效果,有效节省了花费成本。The charging control method of the embodiment of the present application can adaptively adjust the charging current of the terminal device according to the remaining capacity, the output capacity of the adapter, and the impedance of the charging line during the charging operation of the terminal device, thereby improving the charging efficiency of the terminal device. The compatibility of the device with adapters of different specifications not only improves the charging efficiency, but also ensures the reliability and safety of charging and improves the user experience. In addition, better effects can be achieved without changing the circuit, and the cost can be effectively saved.

通过上述分析可知,本申请可以根据电阻阈值、电流阈值及第一电压阈值,对充电电流进行自适应调节。在本申请的另一个情形中,为了进一步对充电过程进行可靠控制,还可以结合第二电压阈值,对充电电流的自适应过程进行控制。下面结合图3,对本申请的充电控制方法进行进一步的描述。It can be seen from the above analysis that the present application can adaptively adjust the charging current according to the resistance threshold, the current threshold and the first voltage threshold. In another situation of the present application, in order to further reliably control the charging process, the adaptive process of the charging current may also be controlled in combination with the second voltage threshold. The charging control method of the present application will be further described below with reference to FIG. 3 .

图3是本申请的又一个充电控制方法的流程图。Fig. 3 is a flow chart of another charging control method of the present application.

如图3所示,本申请的充电控制方法可以包括以下步骤:As shown in Figure 3, the charging control method of the present application may include the following steps:

步骤301,判断充电模块当前剩余电量是否大于电量阈值,若小于则执行步骤302,否则执行步骤315。Step 301 , judging whether the current remaining power of the charging module is greater than the power threshold, if less, execute step 302 , otherwise execute step 315 .

步骤302,分别检测充电模块的输入电流为第一充电电流及第二充电电流时,输入端的第一电压及第二电压,其中,第一充电电流小于所述第二充电电流。Step 302 , respectively detecting the first voltage and the second voltage at the input terminal when the input current of the charging module is the first charging current and the second charging current, wherein the first charging current is smaller than the second charging current.

步骤303,根据第一充电电流、第二充电电流、第一电压及第二电压,计算充电回路的第一线路阻抗。Step 303, calculate a first line impedance of the charging circuit according to the first charging current, the second charging current, the first voltage and the second voltage.

步骤304,判断第一线路阻抗是否大于电阻阈值,若大于则执行步骤305。Step 304, judging whether the impedance of the first line is greater than a resistance threshold, and if so, performing step 305.

步骤305,判断第二充电电流是否为电流阈值,若是则执行步骤306,否则执行步骤307a。Step 305, judging whether the second charging current is the current threshold, if so, execute step 306, otherwise execute step 307a.

步骤306,控制充电模块输入端电流为第二充电电流。Step 306, controlling the current at the input terminal of the charging module to be the second charging current.

步骤307a,将第二充电电流增加至第三充电电流。Step 307a, increasing the second charging current to the third charging current.

步骤307b,判断充电模块的输入端电压是否大于第一电压阈值,若大于则执行步骤308。Step 307b, judging whether the voltage at the input terminal of the charging module is greater than the first voltage threshold, and if so, performing step 308.

步骤308,增加充电模块输入端电流,并检测输入端的第三电压。Step 308, increase the current at the input end of the charging module, and detect a third voltage at the input end.

具体的,本实施例可通过充电控制装置中的电压传感器检测充电模块输入端的第三电压,此处不作具体限定。Specifically, in this embodiment, the voltage sensor in the charging control device can detect the third voltage at the input end of the charging module, which is not specifically limited here.

步骤309,判断第三电压是否小于第二电压阈值,若小于则执行步骤310,否则执行步骤311。Step 309 , judging whether the third voltage is less than the second voltage threshold, if less, execute step 310 , otherwise execute step 311 .

其中,本实施例中第二电压阈值为充电模块输入端的软件电压值,比如,5.2V等等,此处不作具体限定。Wherein, in this embodiment, the second voltage threshold is the software voltage value of the input terminal of the charging module, for example, 5.2V, etc., which is not specifically limited here.

可以理解的是,在本申请中第一电压阈值小于第二电压阈值。It can be understood that, in this application, the first voltage threshold is smaller than the second voltage threshold.

具体的,在实际使用时,可以对充电模块输入端的限压点设置两个电压阈值。充电模块输入端的电压超过第一电压阈值时,能够保证对充电模块处于充电状态,而仅当输入端的电压超过第二电压阈值时,才可以实现对充电模块进行正常充电操作。Specifically, in actual use, two voltage thresholds can be set for the voltage limiting point at the input end of the charging module. When the voltage at the input terminal of the charging module exceeds the first voltage threshold, the charging module can be guaranteed to be in the charging state, and only when the voltage at the input terminal exceeds the second voltage threshold, the normal charging operation of the charging module can be realized.

因此,当充电模块的输入端电压大于第一电压阈值,通过判断第三电压是否小于第二电压阈值,而确定对充电模块充电操作是否能可靠进入充电状态。Therefore, when the voltage at the input terminal of the charging module is greater than the first voltage threshold, it is determined whether the charging operation of the charging module can reliably enter the charging state by judging whether the third voltage is lower than the second voltage threshold.

其中,若第三电压小于第二电压阈值,则说明当前对充电模块仅能处于充电状态,并不满足保证充电模块处于可靠充电状态;若第三电压大于第二电压阈值,则说明当前充电模块处于可靠充电状态。Among them, if the third voltage is less than the second voltage threshold, it means that the current charging module can only be in the charging state, which does not satisfy the requirement to ensure that the charging module is in a reliable charging state; if the third voltage is greater than the second voltage threshold, it means that the current charging module in a reliable state of charge.

步骤310,控制充电模块输入端电流为第二充电电流。Step 310, controlling the current at the input terminal of the charging module to be the second charging current.

步骤311,根据第二电压及预设的误差补偿参数,确定第三电压阈值。Step 311: Determine a third voltage threshold according to the second voltage and preset error compensation parameters.

其中,预设的误差补偿参数可以根据适配器的性能进行适应性设置,本申请对此不作具体限定。比如,0.1等等。Wherein, the preset error compensation parameters may be adaptively set according to the performance of the adapter, which is not specifically limited in the present application. For example, 0.1 and so on.

具体的,由于在实际使用时,适配器输出端可能存在电压补偿(误差补偿参数),这会影响对充电模块输入端电压的检测准确度。因此为了能够提高对充电模块输入端电压是否大于输入端限压点的电压值的检测准确度,本申请可根据第二电压及预设的误差补偿参数,确定出第三电压阈值。Specifically, in actual use, there may be voltage compensation (error compensation parameters) at the output end of the adapter, which will affect the detection accuracy of the voltage at the input end of the charging module. Therefore, in order to improve the detection accuracy of whether the voltage at the input terminal of the charging module is greater than the voltage value of the input terminal voltage limit point, the present application can determine the third voltage threshold according to the second voltage and the preset error compensation parameter.

具体实现时,可基于公式(4)可以确定出第三电压阈值为:V2-(I3-I2)×R-N,其中,V2为充电模块输入端的第二电压,I2为充电模块的第二充电电流,I3为充电模块的第三充电电流,R为充电回路的第一线路阻抗,N为预设的误差补偿参数。During specific implementation, the third voltage threshold can be determined based on formula (4): V 2 -(I 3 -I 2 )×RN, where V 2 is the second voltage at the input terminal of the charging module, and I 2 is the charging module The second charging current, I 3 is the third charging current of the charging module, R is the first line impedance of the charging circuit, and N is the preset error compensation parameter.

例如,若充电模块的第二充电电流为500mA,充电模块的第三充电电流为800mA,充电回路的第一线路阻抗为150mΩ,充电模块输入端的第二电压为5.0V,预设的误差补偿参数为0.11,那么可以计算出第三电压阈值为:4.845V。For example, if the second charging current of the charging module is 500mA, the third charging current of the charging module is 800mA, the first line impedance of the charging circuit is 150mΩ, and the second voltage at the input terminal of the charging module is 5.0V, the preset error compensation parameters is 0.11, then the third voltage threshold can be calculated as: 4.845V.

步骤312,判断第三电压是否大于第三电压阈值,若大于则执行步骤313,否则执行步骤314。Step 312 , judging whether the third voltage is greater than the third voltage threshold, if so, execute step 313 , otherwise execute step 314 .

具体的,当确定出第三电压阈值之后,本实施例充电控制装置可以将检测到的第三电压与第三电压阈值进行比对,以确定出第三电压是否大于第三电压阈值。Specifically, after the third voltage threshold is determined, the charging control device in this embodiment may compare the detected third voltage with the third voltage threshold to determine whether the third voltage is greater than the third voltage threshold.

步骤313,继续增加充电模块输入电流,返回执行步骤307b。Step 313, continue to increase the input current of the charging module, and return to step 307b.

步骤314,控制充电模块输入端电流为第二充电电流。Step 314, controlling the current at the input terminal of the charging module to be the second charging current.

步骤315,根据当前的剩余电量确定第四充电电流,并控制充电模块输入端电流为第四充电电流。Step 315, determine the fourth charging current according to the current remaining power, and control the current at the input terminal of the charging module to be the fourth charging current.

本申请实施例的充电控制方法,通过结合适配器输出端存在的误差,以确定出充电模块输入端的电压阈值,不仅提高了对适配器的输出性能检测准确性,而且还提高了终端设备对不同规格的适配器的兼容能力,同时也提高了充电效率,保证了充电可靠性和安全性,改善了用户体验。并且实现了在不改变电路基础上,实现了较好的效果,有效节省了消费成本。The charging control method of the embodiment of the present application determines the voltage threshold of the input terminal of the charging module by combining the error existing at the output terminal of the adapter, which not only improves the accuracy of the detection of the output performance of the adapter, but also improves the terminal equipment’s sensitivity to different specifications. The compatibility of the adapter also improves the charging efficiency, ensures the reliability and safety of charging, and improves the user experience. In addition, better effects are achieved on the basis of not changing the circuit, and the consumption cost is effectively saved.

为了实现上述实施例,本申请还提出了一种充电控制装置。In order to realize the above embodiments, the present application also proposes a charging control device.

图4是本申请一个实施例的充电控制装置的结构示意图。Fig. 4 is a schematic structural diagram of a charging control device according to an embodiment of the present application.

如图4所示,本申请的充电控制装置包括:第一判断模块11、第一控制模块12、计算模块13、第二判断模块14、第三判断模块15、第四判断模块16、第二控制模块17。As shown in Figure 4, the charging control device of the present application includes: a first judging module 11, a first control module 12, a computing module 13, a second judging module 14, a third judging module 15, a fourth judging module 16, a second Control module 17.

其中,第一判断模块11用于判断所述充电模块当前剩余电量是否大于电量阈值;Wherein, the first judging module 11 is used to judge whether the current remaining power of the charging module is greater than the power threshold;

第一控制模块12用于若否,则分别检测所述充电模块的输入电流为第一充电电流及第二充电电流时,输入端的第一电压及第二电压,其中,所述第一充电电流小于所述第二充电电流;If not, the first control module 12 is used to respectively detect the first voltage and the second voltage at the input terminal when the input current of the charging module is the first charging current and the second charging current, wherein the first charging current less than the second charging current;

计算模块13用于根据所述第一充电电流、第二充电电流、第一电压及第二电压,计算充电回路的第一线路阻抗;The calculation module 13 is used to calculate the first line impedance of the charging circuit according to the first charging current, the second charging current, the first voltage and the second voltage;

第二判断模块14用于判断所述第一线路阻抗是否大于电阻阈值;The second judging module 14 is used to judge whether the first line impedance is greater than a resistance threshold;

第三判断模块15用于若是,则判断第二充电电流是否为电流阈值;The third judging module 15 is used for judging whether the second charging current is the current threshold if so;

第四判断模块16用于若否,则判断当充电模块输入电流增加至第三充电电流时,所述充电模块的输入端电压是否大于第一电压阈值;If not, the fourth judging module 16 is used to judge whether the voltage at the input terminal of the charging module is greater than the first voltage threshold when the input current of the charging module increases to the third charging current;

第二控制模块17用于若否,则控制所述充电模块输入端电流为第二充电电流。If not, the second control module 17 is used to control the current at the input terminal of the charging module to be the second charging current.

需要说明的是,前述对充电控制方法实施例的解释说明也适用于该实施例的充电控制装置,其实现原理类似,此处不再赘述。It should be noted that the foregoing explanations of the embodiment of the charging control method are also applicable to the charging control device of this embodiment, and its implementation principles are similar, so details are not repeated here.

本实施例提供的充电控制装置中,在对终端设备进行充电操作时,通过先对终端设备的充电模块当前剩余电量是否大于电量阈值进行判断,若判断出充电模块当前剩余电量小于电量阈值时,则分别检测充电模块的输入电流为第一充电电流及第二充电电流时,输入端的第一电压及第二电压,并根据第一充电电流、第二充电电流、第一电压及第二电压计算出充电回路的第一线路阻抗,然后判断计算出的第一线路阻抗是否大于电阻阈值,若第一线路阻抗大于电阻阈值时,则进一步判断第二充电电流是否为电流阈值,若不是电流阈值,则判断充电模块输入电流增加至第三充电电流时,充电模块的输入端电压是否大于第一电压阈值,若不大于,则控制充电模块输入端的电流为第二充电电流。由此,实现了在对终端设备进行充电操作时,能够根据剩余容量、适配器的输出能力、充电线路的阻抗,适应性的调整终端设备充电电流的大小,从而提高了终端设备对不同规格适配器的兼容能力,在提高充电效率的同时,又保证了充电的可靠性和安全性,改善了用户体验。In the charging control device provided in this embodiment, when performing a charging operation on a terminal device, it first judges whether the current remaining power of the charging module of the terminal device is greater than the power threshold, and if it is determined that the current remaining power of the charging module is less than the power threshold, Then respectively detect the first voltage and the second voltage at the input terminal when the input current of the charging module is the first charging current and the second charging current, and calculate according to the first charging current, the second charging current, the first voltage and the second voltage Find the first line impedance of the charging circuit, and then judge whether the calculated first line impedance is greater than the resistance threshold, if the first line impedance is greater than the resistance threshold, then further determine whether the second charging current is the current threshold, if not the current threshold, Then judge whether the input terminal voltage of the charging module is greater than the first voltage threshold when the input current of the charging module increases to the third charging current, and if not, control the current at the input terminal of the charging module to be the second charging current. Thus, when charging the terminal equipment, the charging current of the terminal equipment can be adaptively adjusted according to the remaining capacity, the output capacity of the adapter, and the impedance of the charging line, thereby improving the compatibility of the terminal equipment with adapters of different specifications. Compatibility, while improving the charging efficiency, it also ensures the reliability and safety of charging and improves the user experience.

为了实现上述实施例,本申请还提出一种终端设备。In order to implement the foregoing embodiments, the present application further proposes a terminal device.

图5是本申请一个实施例的终端设备的结构示意图。Fig. 5 is a schematic structural diagram of a terminal device according to an embodiment of the present application.

参见图5,本申请实施例以终端设备为手机为例进行说明显示,本申请终端设备20包括存储器21、处理器22及存储在存储器21上并可在处理器22上运行的计算机程序,所述处理器22执行所述程序时,以实现第一方面实施例所述的充电控制方法。其中充电控制方法可以包括:判断所述充电模块当前剩余电量是否大于电量阈值;若否,则分别检测所述充电模块的输入电流为第一充电电流及第二充电电流时,输入端的第一电压及第二电压,其中,所述第一充电电流小于所述第二充电电流;根据所述第一充电电流、第二充电电流、第一电压及第二电压,计算充电回路的第一线路阻抗;判断所述第一线路阻抗是否大于电阻阈值;若是,则判断第二充电电流是否为电流阈值;若否,则判断当充电模块输入电流增加至第三充电电流时,所述充电模块的输入端电压是否大于第一电压阈值;若否,则控制所述充电模块输入端电流为第二充电电流。Referring to FIG. 5 , the embodiment of the present application takes the terminal device as an example for illustration and display. The terminal device 20 of the present application includes a memory 21 , a processor 22 and a computer program stored in the memory 21 and operable on the processor 22 . When the processor 22 executes the program, the charging control method described in the embodiment of the first aspect is realized. Wherein the charging control method may include: judging whether the current remaining power of the charging module is greater than the power threshold; if not, detecting the first voltage at the input terminal when the input current of the charging module is the first charging current and the second charging current and a second voltage, wherein the first charging current is smaller than the second charging current; according to the first charging current, the second charging current, the first voltage and the second voltage, calculate the first line impedance of the charging circuit ; Judging whether the first line impedance is greater than the resistance threshold; if so, judging whether the second charging current is the current threshold; if not, judging that when the input current of the charging module increases to the third charging current, the input of the charging module Whether the terminal voltage is greater than the first voltage threshold; if not, control the current at the input terminal of the charging module to be the second charging current.

其中,在本实施例中,终端设备可以是任意具有充电模块的硬件设备,比如智能手机、个人数字助理(Personal Digital Assistant,简称为PDA)、平板电脑等等,本申请对此不作具体限定。Wherein, in this embodiment, the terminal device may be any hardware device having a charging module, such as a smart phone, a personal digital assistant (Personal Digital Assistant, PDA for short), a tablet computer, etc., which is not specifically limited in this application.

需要说明的是,前述对充电控制方法实施例的解释说明也适用于该实施例的终端设备,其实现原理类似,此处不再赘述。It should be noted that the foregoing explanations of the embodiment of the charging control method are also applicable to the terminal device of this embodiment, and its implementation principles are similar, so details are not repeated here.

本实施例提供的终端设备中,在对终端设备进行充电操作时,通过先对终端设备的充电模块当前剩余电量是否大于电量阈值进行判断,若判断出充电模块当前剩余电量小于电量阈值时,则分别检测充电模块的输入电流为第一充电电流及第二充电电流时,输入端的第一电压及第二电压,并根据第一充电电流、第二充电电流、第一电压及第二电压计算出充电回路的第一线路阻抗,然后判断计算出的第一线路阻抗是否大于电阻阈值,若第一线路阻抗大于电阻阈值时,则进一步判断第二充电电流是否为电流阈值,若不是电流阈值,则判断充电模块输入电流增加至第三充电电流时,充电模块的输入端电压是否大于第一电压阈值,若不大于,则控制充电模块输入端的电流为第二充电电流。由此,实现了在对终端设备进行充电操作时,能够根据剩余容量、适配器的输出能力、充电线路的阻抗,适应性的调整终端设备充电电流的大小,从而提高了终端设备对不同规格适配器的兼容能力,在提高充电效率的同时,又保证了充电的可靠性和安全性,改善了用户体验In the terminal device provided in this embodiment, when charging the terminal device, it first judges whether the current remaining power of the charging module of the terminal device is greater than the power threshold, and if it is determined that the current remaining power of the charging module is less than the power threshold, then When the input current of the charging module is the first charging current and the second charging current, the first voltage and the second voltage at the input end are respectively detected, and calculated according to the first charging current, the second charging current, the first voltage and the second voltage The first line impedance of the charging circuit, and then judge whether the calculated first line impedance is greater than the resistance threshold, if the first line impedance is greater than the resistance threshold, then further judge whether the second charging current is the current threshold, if not the current threshold, then It is judged whether the input terminal voltage of the charging module is greater than the first voltage threshold when the input current of the charging module increases to the third charging current, and if not, the current at the input terminal of the charging module is controlled to be the second charging current. Thus, when charging the terminal equipment, the charging current of the terminal equipment can be adaptively adjusted according to the remaining capacity, the output capacity of the adapter, and the impedance of the charging line, thereby improving the ability of the terminal equipment to adapt to adapters of different specifications. Compatibility, while improving the charging efficiency, it also ensures the reliability and safety of charging and improves the user experience

为了实现上述实施例,本申请还提出了一种计算机可读存储介质。In order to implement the above embodiments, the present application also proposes a computer-readable storage medium.

该计算机可读存储介质,其上存储有计算机程序,该程序被处理器执行时实现第一方面实施例的充电控制方法。其中充电控制方法可以包括:判断所述充电模块当前剩余电量是否大于电量阈值;若否,则分别检测所述充电模块的输入电流为第一充电电流及第二充电电流时,输入端的第一电压及第二电压,其中,所述第一充电电流小于所述第二充电电流;根据所述第一充电电流、第二充电电流、第一电压及第二电压,计算充电回路的第一线路阻抗;判断所述第一线路阻抗是否大于电阻阈值;若是,则判断第二充电电流是否为电流阈值;若否,则判断当充电模块输入电流增加至第三充电电流时,所述充电模块的输入端电压是否大于第一电压阈值;若否,则控制所述充电模块输入端电流为第二充电电流。The computer-readable storage medium stores a computer program thereon, and when the program is executed by a processor, the charging control method of the embodiment of the first aspect is implemented. Wherein the charging control method may include: judging whether the current remaining power of the charging module is greater than the power threshold; if not, detecting the first voltage at the input terminal when the input current of the charging module is the first charging current and the second charging current and a second voltage, wherein the first charging current is smaller than the second charging current; according to the first charging current, the second charging current, the first voltage and the second voltage, calculate the first line impedance of the charging circuit ; Judging whether the first line impedance is greater than the resistance threshold; if so, judging whether the second charging current is the current threshold; if not, judging that when the input current of the charging module increases to the third charging current, the input of the charging module Whether the terminal voltage is greater than the first voltage threshold; if not, control the current at the input terminal of the charging module to be the second charging current.

在本申请中,除非另有明确的规定和限定,术语“设置”、“连接”等术语应做广义理解,例如,可以是机械连接,也可以是电连接;可以是直接相连,也可以通过中间媒介间接相连,可以是两个元件内部的连通或两个元件的相互作用关系,除非另有明确的限定。对于本领域的普通技术人员而言,可以根据具体情况理解上述术语在本申请中的具体含义。In this application, unless otherwise clearly specified and limited, the terms "arrangement", "connection" and other terms should be understood in a broad sense, for example, it can be mechanical connection or electrical connection; it can be direct connection or through An indirect connection through an intermediary may be an internal communication between two elements or an interaction relationship between two elements, unless otherwise clearly defined. Those of ordinary skill in the art can understand the specific meanings of the above terms in this application according to specific situations.

在本说明书的描述中,参考术语“一个实施例”、“一些实施例”、“示例”、“具体示例”、或“一些示例”等的描述意指结合该实施例或示例描述的具体特征、结构、材料或者特点包含于本申请的至少一个实施例或示例中。In the description of this specification, descriptions referring to the terms "one embodiment", "some embodiments", "example", "specific examples", or "some examples" mean that specific features described in connection with the embodiment or example , structure, material or characteristic is included in at least one embodiment or example of the present application.

此外,术语“第一”、“第二”仅用于描述目的,而不能理解为指示或暗示相对重要性或者隐含指明所指示的技术特征的数量。由此,限定有“第一”、“第二”的特征可以明示或者隐含地包括至少一个该特征。In addition, the terms "first" and "second" are used for descriptive purposes only, and cannot be interpreted as indicating or implying relative importance or implicitly specifying the quantity of indicated technical features. Thus, the features defined as "first" and "second" may explicitly or implicitly include at least one of these features.

流程图中或在此以其他方式描述的任何过程或方法描述可以被理解为,表示包括一个或更多个用于实现特定逻辑功能或过程的步骤的可执行指令的代码的模块、片段或部分,并且本申请的优选实施方式的范围包括另外的实现,其中可以不按所示出或讨论的顺序,包括根据所涉及的功能按基本同时的方式或按相反的顺序,来执行功能,这应被本申请的实施例所属技术领域的技术人员所理解。Any process or method descriptions in flowcharts or otherwise described herein may be understood to represent modules, segments or portions of code comprising one or more executable instructions for implementing specific logical functions or steps of the process , and the scope of preferred embodiments of the present application includes additional implementations in which functions may be performed out of the order shown or discussed, including in substantially simultaneous fashion or in reverse order depending on the functions involved, which shall It should be understood by those skilled in the art to which the embodiments of the present application belong.

应当理解,本申请的各部分可以用硬件、软件、固件或它们的组合来实现。在上述实施方式中,多个步骤或方法可以用存储在存储器中且由合适的指令执行系统执行的软件或固件来实现。例如,如果用硬件来实现,和在另一实施方式中一样,可用本领域公知的下列技术中的任一项或他们的组合来实现:具有用于对数据信号实现逻辑功能的逻辑门电路的离散逻辑电路,具有合适的组合逻辑门电路的专用集成电路,可编程门阵列(PGA),现场可编程门阵列(FPGA)等。It should be understood that each part of the present application may be realized by hardware, software, firmware or a combination thereof. In the embodiments described above, various steps or methods may be implemented by software or firmware stored in memory and executed by a suitable instruction execution system. For example, if implemented in hardware, as in another embodiment, it can be implemented by any one or combination of the following techniques known in the art: Discrete logic circuits, ASICs with suitable combinational logic gates, Programmable Gate Arrays (PGAs), Field Programmable Gate Arrays (FPGAs), etc.

本技术领域的普通技术人员可以理解实现上述实施例方法携带的全部或部分步骤是可以通过程序来指令相关的硬件完成,所述的程序可以存储于一种计算机可读存储介质中,该程序在执行时,包括方法实施例的步骤之一或其组合。Those of ordinary skill in the art can understand that all or part of the steps carried by the methods of the above embodiments can be completed by instructing related hardware through a program, and the program can be stored in a computer-readable storage medium. During execution, one or a combination of the steps of the method embodiments is included.

上述提到的存储介质可以是只读存储器,磁盘或光盘等。尽管上面已经示出和描述了本申请的实施例,可以理解的是,上述实施例是示例性的,不能理解为对本申请的限制,本领域的普通技术人员在本申请的范围内可以对上述实施例进行变化、修改、替换和变型。The storage medium mentioned above may be a read-only memory, a magnetic disk or an optical disk, and the like. Although the embodiments of the present application have been shown and described above, it can be understood that the above embodiments are exemplary and should not be construed as limitations on the present application, and those skilled in the art can make the above-mentioned The embodiments are subject to changes, modifications, substitutions and variations.

Claims (10)

  1. A kind of 1. charge control method, applied to the terminal with charging module, it is characterised in that including:
    Judge whether the charging module current residual electricity is more than power threshold;
    If it is not, when the input current for then detecting the charging module respectively is the first charging current and the second charging current, input The first voltage and second voltage at end, wherein, first charging current is less than second charging current;
    According to first charging current, the second charging current, first voltage and second voltage, the First Line of charge circuit is calculated Roadlock resists;
    Judge whether the first line impedance is more than resistance threshold;
    If so, then judging whether the second charging current is current threshold;
    If it is not, then judge when charging module input current increases to three charging currents, the input terminal electricity of the charging module Whether pressure is more than first voltage threshold value;
    If it is not, it is the second charging current then to control the charging module input terminal electric current.
  2. 2. the method as described in claim 1, it is characterised in that described to judge whether present battery remaining capacity is more than electricity threshold After value, further include:
    If so, the 4th charging current is then determined according to the current residual electricity;
    It is the 4th charging current to control the charging module input terminal electric current.
  3. 3. the method as described in claim 1, it is characterised in that it is described judge the second charging current whether be current threshold it Afterwards, further include:
    If so, it is the second charging current then to control the charging module input terminal electric current.
  4. 4. the method as described in claim 1, it is characterised in that judge when charging current increases to three charging currents, institute Whether the input terminal voltage for stating charging module is more than after first voltage threshold value, further includes:
    If so, when then to detect the charging module input terminal electric current be three charging currents, the tertiary voltage of input terminal;
    Judge whether the tertiary voltage is less than second voltage threshold value;
    If so, it is the second charging current then to control the charging module input terminal electric current.
  5. 5. method as claimed in claim 4, it is characterised in that described to judge whether the tertiary voltage is less than second voltage threshold After value, further include:
    If it is not, tertiary voltage threshold value is then determined according to the second voltage and default error compensation parameter;
    Judge whether the tertiary voltage is more than tertiary voltage threshold value;
    If it is not, it is the second charging current then to control the charging module input terminal electric current;
    Judge if so, then performing when charging module input current increases to five charging currents, the input of the charging module The step of whether terminal voltage is more than first voltage threshold value.
  6. 6. the method as described in claim 1, it is characterised in that described to judge whether the first line impedance is more than resistance threshold After value, further include:
    If it is not, then judging whether second charging current is equal to current threshold;
    If so, it is the second charging current then to control the charging module input terminal electric current.
  7. 7. method as claimed in claim 6, it is characterised in that described to judge whether second charging current is equal to current threshold After value, further include:
    If it is not, when then detection charging module input current increases to three charging currents, the tertiary voltage of input terminal;
    According to the tertiary voltage, the 3rd charging current, second voltage and the second charging current, perform and calculate the charge circuit First line impedance the step of.
  8. A kind of 8. battery charge controller, applied to the terminal with charging module, it is characterised in that including:
    First judgment module, for judging whether the charging module current residual electricity is more than power threshold;
    First control module, for if it is not, then detecting the input current of the charging module respectively as the first charging current and the During two charging currents, the first voltage and second voltage of input terminal, wherein, first charging current is less than the described second charging Electric current;
    Computing module, for being filled according to first charging current, the second charging current, first voltage and second voltage, calculating The first line impedance of electrical circuit;
    Second judgment module, for judging whether the first line impedance is more than resistance threshold;
    3rd judgment module, for if so, then judging whether the second charging current is current threshold;
    4th judgment module, it is described to fill for if it is not, then judge when charging module input current increases to three charging currents Whether the input terminal voltage of electric module is more than first voltage threshold value;
    Second control module, for if it is not, it is the second charging current then to control the charging module input terminal electric current.
  9. 9. a kind of terminal device, it is characterised in that including memory, processor and storage on a memory and can be on a processor The computer program of operation, when the processor performs described program, to realize the charging control as described in claim 1-7 is any Method processed.
  10. 10. a kind of computer-readable recording medium, is stored thereon with computer program, it is characterised in that the computer program quilt When processor performs, to realize the charge control method as described in claim 1-7 is any.
CN201711443853.2A 2017-12-27 2017-12-27 Charging control method, device and equipment Active CN107994650B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201711443853.2A CN107994650B (en) 2017-12-27 2017-12-27 Charging control method, device and equipment

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201711443853.2A CN107994650B (en) 2017-12-27 2017-12-27 Charging control method, device and equipment

Publications (2)

Publication Number Publication Date
CN107994650A true CN107994650A (en) 2018-05-04
CN107994650B CN107994650B (en) 2020-01-10

Family

ID=62041864

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201711443853.2A Active CN107994650B (en) 2017-12-27 2017-12-27 Charging control method, device and equipment

Country Status (1)

Country Link
CN (1) CN107994650B (en)

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109962514A (en) * 2019-02-22 2019-07-02 维沃移动通信有限公司 A charging method and mobile terminal
CN110824286A (en) * 2019-11-29 2020-02-21 恒大智慧充电科技有限公司 Charging abnormality detection method, charging device, computer device, and storage medium
CN113922442A (en) * 2021-09-13 2022-01-11 合肥联宝信息技术有限公司 Battery charging method, equipment and readable storage medium

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104518206A (en) * 2013-09-26 2015-04-15 联想(北京)有限公司 Rechargeable battery, method, and equipment
WO2016002205A1 (en) * 2014-07-02 2016-01-07 パナソニックIpマネジメント株式会社 Handheld-terminal charging device
CN106786843A (en) * 2016-11-24 2017-05-31 惠州Tcl移动通信有限公司 The method of adjustment and system of a kind of charging current, electric terminal

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104518206A (en) * 2013-09-26 2015-04-15 联想(北京)有限公司 Rechargeable battery, method, and equipment
WO2016002205A1 (en) * 2014-07-02 2016-01-07 パナソニックIpマネジメント株式会社 Handheld-terminal charging device
CN106786843A (en) * 2016-11-24 2017-05-31 惠州Tcl移动通信有限公司 The method of adjustment and system of a kind of charging current, electric terminal

Cited By (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109962514A (en) * 2019-02-22 2019-07-02 维沃移动通信有限公司 A charging method and mobile terminal
CN110824286A (en) * 2019-11-29 2020-02-21 恒大智慧充电科技有限公司 Charging abnormality detection method, charging device, computer device, and storage medium
CN110824286B (en) * 2019-11-29 2022-07-19 恒大恒驰新能源汽车研究院(上海)有限公司 Charging abnormality detection method, charging device, computer device, and storage medium
CN113922442A (en) * 2021-09-13 2022-01-11 合肥联宝信息技术有限公司 Battery charging method, equipment and readable storage medium
CN113922442B (en) * 2021-09-13 2025-03-14 合肥联宝信息技术有限公司 A battery charging method, device and readable storage medium

Also Published As

Publication number Publication date
CN107994650B (en) 2020-01-10

Similar Documents

Publication Publication Date Title
CN104600796B (en) Fast charging mobile terminal, method and system
CN103682498B (en) A kind of charging method and electronic equipment
JP6500911B2 (en) Battery device, charge control device and charge control method
CN104242372B (en) The charging method and electronic cigarette packet of electronic cigarette
CN106786980B (en) An electronic device and a charging control method based on the electronic device
CN109802452B (en) Power management circuit
CN103326432B (en) A kind of battery charging control method of electronic equipment and system
CN105794079B (en) Method and device for adjusting voltage threshold of battery
CN105449757B (en) Prevent the method and device that adapter or portable power source disconnect in charging process
CN105896655B (en) Method for charging for electronic equipment and electronic equipment
CN107894567A (en) The detecting system and detection method of battery bag and battery bag Interface status
WO2015007236A1 (en) Method, charger device, and adaptor capable of maximum output power point tracking
CN105871021B (en) Battery management system and method for battery of electric bicycle group quick charge
CN106340691A (en) Charging management method and mobile communication terminal
CN103036206A (en) Detecting approach and device of motor controller pre-fill line breakdown
CN103700900B (en) Control method, device, system and the mobile terminal of mobile terminal charging
CN106842010A (en) Contactor adhesion detection method, detection device and battery management system
CN105406548B (en) The whether online detection method of battery in electri forklift charger charging process
CN112534675A (en) Fast battery charging
CN107171384A (en) The charge control method and device of battery
CN107994650B (en) Charging control method, device and equipment
CN107706952A (en) A kind of charging method and device
CN104362686B (en) Charger and charging method
CN106549458B (en) Battery charging circuit and charging method
CN105826959B (en) A kind of method, device and mobile terminal of charging

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
CB02 Change of applicant information
CB02 Change of applicant information

Address after: 523860 No. 18, Wu Sha Beach Road, Changan Town, Dongguan, Guangdong

Applicant after: OPPO Guangdong Mobile Communications Co., Ltd.

Address before: 523860 No. 18, Wu Sha Beach Road, Changan Town, Dongguan, Guangdong

Applicant before: Guangdong OPPO Mobile Communications Co., Ltd.

GR01 Patent grant
GR01 Patent grant