Nothing Special   »   [go: up one dir, main page]

CN112018831B - A charging control method, charging control device and electronic equipment - Google Patents

A charging control method, charging control device and electronic equipment Download PDF

Info

Publication number
CN112018831B
CN112018831B CN201910453549.9A CN201910453549A CN112018831B CN 112018831 B CN112018831 B CN 112018831B CN 201910453549 A CN201910453549 A CN 201910453549A CN 112018831 B CN112018831 B CN 112018831B
Authority
CN
China
Prior art keywords
battery
charging
voltage
current
preset
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
CN201910453549.9A
Other languages
Chinese (zh)
Other versions
CN112018831A (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.)
Honor Device Co Ltd
Original Assignee
Honor Device 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 Honor Device Co Ltd filed Critical Honor Device Co Ltd
Priority to CN201910453549.9A priority Critical patent/CN112018831B/en
Publication of CN112018831A publication Critical patent/CN112018831A/en
Application granted granted Critical
Publication of CN112018831B publication Critical patent/CN112018831B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

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

Landscapes

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

Abstract

In the method, when the voltage at two ends of a battery is detected to be greater than or equal to a first voltage threshold, the battery is charged by using a current with a preset magnitude, namely, a constant current charging stage is entered. And then, continuously detecting the voltages at two ends of the battery, and when the voltages at two ends of the battery are detected to be more than or equal to a second voltage threshold, controlling the voltage value for charging the battery to be kept at the value of the second voltage threshold, namely entering a first constant voltage charging stage. After entering the first constant voltage charging stage, detecting the charging current of the battery, and when detecting that the charging current of the battery is smaller than or equal to a preset current threshold value, controlling the voltage value of the battery to be kept at the value of the charging cut-off voltage of the battery, namely entering the second constant voltage charging stage.

Description

一种充电控制方法、充电控制装置及电子设备A charging control method, charging control device and electronic equipment

技术领域technical field

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

背景技术Background technique

随着全球信息化技术的发展,电子设备(例如智能手机、平板电脑等)已经完全渗入人们的生活。然而,这些电子设备是使用电池(例如锂电池)进行供电,当电池电量消耗完后,则需要对电池进行充电,以使得电池恢复供电能力。With the development of global information technology, electronic devices (such as smart phones, tablet computers, etc.) have completely penetrated into people's lives. However, these electronic devices use batteries (such as lithium batteries) for power supply, and when the power of the batteries is exhausted, the batteries need to be charged so that the batteries can restore their power supply capabilities.

电池的充电过程一般包括预充电阶段(也称为涓流充电阶段)、恒流充电阶段以及恒压充电阶段。需要进行充电的电池的初始电压一般较低,为了保护电池的寿命,在对电池充电时,首先会使用较小的电流使电池的电压满足一定的条件(例如,使得电池的电压大于或等于3伏特(volt,V)),这个过程即预充电阶段。在完成对电池的预充电后,则进入恒流充电阶段,即,使用设定的电流对电池进行充电。在这个阶段中,电流较大(例如,2安(ampere,A),从而可以较快地将电池的电压提高到电池所能承受的最大电压(例如,4.4V)。当检测到电池的电压为该最大电压时,则进入恒压充电阶段。在这个阶段中,电池的电压保持不变,但是充电电流逐渐下降,当充电电流小于或等于预设的截止电流(例如,75毫安(milliampere,mA),则停止对电池充电。The charging process of the battery generally includes a pre-charging phase (also called a trickle charging phase), a constant current charging phase and a constant voltage charging phase. The initial voltage of the battery that needs to be charged is generally low. In order to protect the life of the battery, when charging the battery, a small current will be used first to make the voltage of the battery meet certain conditions (for example, make the voltage of the battery greater than or equal to 3 Volt (volt, V)), this process is the pre-charge stage. After the pre-charging of the battery is completed, it enters the constant current charging stage, that is, the battery is charged with the set current. In this stage, the current is large (for example, 2 amps (ampere, A), so that the voltage of the battery can be quickly increased to the maximum voltage that the battery can withstand (for example, 4.4V). When the battery voltage is detected When it is the maximum voltage, it enters the constant voltage charging phase. In this phase, the voltage of the battery remains constant, but the charging current gradually decreases. When the charging current is less than or equal to the preset cut-off current (for example, 75 milliamps , mA), then stop charging the battery.

由于在恒流充电阶段中,电流较大,也就是说,在进入恒压充电阶段的时刻,电流较大,因此,在恒压充电阶段中,由较大的电流降低到截止电流所需的时间较长,从而导致电池的充电时长较长。Since in the constant current charging stage, the current is larger, that is to say, at the moment of entering the constant voltage charging stage, the current is larger, therefore, in the constant voltage charging stage, the current is reduced from the larger current to the cut-off current. The longer the time, the longer the charging time of the battery will be.

发明内容Contents of the invention

本申请实施例提供一种充电控制方法、充电控制装置及电子设备,用以减少电池的充电时长。Embodiments of the present application provide a charging control method, a charging control device, and an electronic device, so as to reduce the charging time of a battery.

第一方面,提供一种充电控制方法,该方法应用在包括电池的电子设备中,在该方法中,当检测到电子设备当前处于被供电设备充电的状态后,首先对电池两端的电压进行检测。在检测到该电池两端的电压大于等于第一电压门限时,使用预设大小的电流对该电池充电,即进入恒流充电阶段,该第一电压门限小于该电池的充电截止电压。然后,继续检测电池两端的电压,在检测到该电池两端的电压大于等于第二电压门限时,在控制对该电池充电的电压值保持在该第二电压门限的取值,即进入第一恒压充电阶段,该第二电压门限高于该电池的充电截止电压。在进入第一恒压充电阶段后,则对电池的充电电流进行检测,在检测到该电池的充电电流小于或等于预设的电流门限值时,则控制对该电池充电的电压值保持在该电池的充电截止电压的取值,即进入第二恒压充电阶段,该预设的电流门限值大于该电池的充电截止电流。In the first aspect, a charging control method is provided, which is applied to electronic equipment including batteries. In this method, when it is detected that the electronic equipment is currently being charged by the power supply equipment, the voltage at both ends of the battery is first detected. . When it is detected that the voltage at both ends of the battery is greater than or equal to a first voltage threshold, the battery is charged with a preset current, that is, enters a constant current charging stage, and the first voltage threshold is lower than the charging cut-off voltage of the battery. Then, continue to detect the voltage at both ends of the battery, when it is detected that the voltage at both ends of the battery is greater than or equal to the second voltage threshold, control the voltage value charged to the battery to keep at the value of the second voltage threshold, that is, enter the first constant In the voltage charging stage, the second voltage threshold is higher than the charging cut-off voltage of the battery. After entering the first constant voltage charging stage, the charging current of the battery is detected, and when it is detected that the charging current of the battery is less than or equal to the preset current threshold value, the voltage value of the battery charging is controlled to remain at The value of the charging cut-off voltage of the battery enters the second constant voltage charging stage, and the preset current threshold value is greater than the charging cut-off current of the battery.

在上述技术方案中,设置两个恒压充电阶段对电池充电,且在第一恒压充电阶段,由于电压门限(即第二电压门限)高于电池的充电截止电压,这样,使得本应该进入恒压充电阶段的电池仍然保持在恒流充电阶段,相当于延长了电池处于恒流充电阶段的时长,可以减少电池的充电时长。且,在该第一恒压充电阶段还设置了对应的电流门限,该电流门限高于电池的充电截止电流,这样,即使在第一恒压充电阶段的充电电压较高,但由于该第一恒压充电阶段的电流门限也提高了,因此,不会引起电池过充的问题。In the above technical solution, two constant voltage charging stages are set to charge the battery, and in the first constant voltage charging stage, since the voltage threshold (that is, the second voltage threshold) is higher than the charging cut-off voltage of the battery, so that it should enter The battery in the constant voltage charging stage remains in the constant current charging stage, which is equivalent to prolonging the duration of the battery in the constant current charging stage, which can reduce the charging time of the battery. Moreover, a corresponding current threshold is also set in the first constant-voltage charging stage, and the current threshold is higher than the charging cut-off current of the battery. In this way, even if the charging voltage in the first constant-voltage charging stage is relatively high, due to the first The current threshold of the constant voltage charging stage is also increased, so it will not cause the problem of battery overcharging.

在一种可能的设计中,所述第二电压门限为所述充电截止电压以及预设的单位电压的和值。第二电压门限还可以根据使用需求设置,在本申请实施例中不作限制。In a possible design, the second voltage threshold is a sum of the charging cut-off voltage and a preset unit voltage. The second voltage threshold can also be set according to usage requirements, which is not limited in this embodiment of the present application.

在一种可能的设计中,所述预设的电流门限值为所述预设的单位电压与充电阻抗之间的比值,所述充电阻抗为所述供电设备的输出端与地之间的阻抗。In a possible design, the preset current threshold value is the ratio between the preset unit voltage and the charging impedance, and the charging impedance is the voltage between the output terminal of the power supply device and the ground. impedance.

在上述技术方案,预设的电流门限值与第二电压门限相关联,可以在避免电池过充的前提下,尽可能地延长电池在恒流充电阶段的时长,从而可以尽可能地减少充电时长。In the above technical solution, the preset current threshold is associated with the second voltage threshold, which can prolong the duration of the battery in the constant current charging phase as much as possible under the premise of avoiding battery overcharging, thereby reducing charging as much as possible. duration.

在一种可能的设计中,在电池被供电设备充电时,还可以根据所述电池在被所述供电设备充电之前的放电量,确定所述电池的报满电量,这样,在所述电池当前的电量大于或等于所述报满电量时,控制所述电子设备显示所述电池处于满充状态。然后,在检测到所述电池的充电电流小于或等于所述电池的充电截止电流时,停止对所述电池充电。In a possible design, when the battery is being charged by the power supply device, it is also possible to determine the full charge of the battery according to the discharge capacity of the battery before being charged by the power supply device, so that the battery is currently When the electric quantity is greater than or equal to the reported full electric quantity, the electronic device is controlled to display that the battery is fully charged. Then, when it is detected that the charging current of the battery is less than or equal to the charging cut-off current of the battery, charging the battery is stopped.

在上述技术方案中,通过报满机制,缩短电子设备显示电池充满所需的时长,这样,当电子设备显示电池已经充满后,可以将电子设备与供电设备断开连接,则可以进一步减少充电时长。In the above technical solution, the time required for the electronic device to display that the battery is fully charged is shortened through the full reporting mechanism, so that when the electronic device displays that the battery is fully charged, the electronic device can be disconnected from the power supply device, and the charging time can be further reduced .

在一种可能的设计中,可以将所述电池在被所述供电设备充电之前的放电量与预设百分比的乘积确定为电池的自学习电量,然后,比较自学习电容量与所述电池的预设电容量的大小关系,若自学习电容量大于或等于所述电池的预设电容量,则确定所述电池的报满电量为所述预设电容量与所述预设百分比的乘积;或者,若自学习电容量小于所述电池的预设电容量,则确定所述电池的报满电量为所述自学习电容量与所述预设百分比的乘积。In a possible design, the product of the discharge capacity of the battery before being charged by the power supply device and the preset percentage may be determined as the self-learning capacity of the battery, and then the self-learning capacity is compared with the The size relationship of the preset capacity, if the self-learning capacity is greater than or equal to the preset capacity of the battery, then it is determined that the reported full capacity of the battery is the product of the preset capacity and the preset percentage; Alternatively, if the self-learning capacity is less than the preset capacity of the battery, then determine that the reported full capacity of the battery is the product of the self-learning capacity and the preset percentage.

在上述技术方案中,通过将自学习电量与预设电容量进行比较的方式,可以确定更加合适的报满电量,可以实现充电精准报满,可以减少由于电池容量的差异导致的不同的电子设备的充电时长差异大的问题。In the above technical solution, by comparing the self-learning power with the preset capacity, it is possible to determine a more appropriate full charge, to achieve accurate full charge, and to reduce the number of different electronic devices due to differences in battery capacity. The problem of large differences in charging time.

第二方面,本申请实施例还提供一种电子设备,该电子设备包括至少一个处理器和至少一个存储器;所述存储器用于存储一个或多个计算机程序;当所述存储器存储的一个或多个计算机程序被所述至少一个处理器执行时,使得所述电子设备能够实现上述第一方面及其第一方面任一可能设计的技术方案。In the second aspect, the embodiment of the present application also provides an electronic device, the electronic device includes at least one processor and at least one memory; the memory is used to store one or more computer programs; when the memory stores one or more When a computer program is executed by the at least one processor, the electronic device can realize the technical solution of the first aspect and any possible design of the first aspect.

第三方面,本申请实施例还提供了一种充电控制装置,所述充电控制装置包括执行上述第一方面或者第一方面的任意一种可能的设计的方法的模块/单元;例如,该充电控制装置包括检测模块和控制模块,检测模块用于检测电子设备的电池两端的电压以及充电电流,控制模块根据检测模块检测到的所述电池两端的电压以及充电电流,对所述电池的充电过程进行控制。这些模块/单元可以通过硬件实现,也可以通过硬件执行相应的软件实现。In the third aspect, the embodiment of the present application also provides a charging control device, the charging control device includes a module/unit for implementing the above-mentioned first aspect or any possible design method of the first aspect; for example, the charging The control device includes a detection module and a control module. The detection module is used to detect the voltage at both ends of the battery of the electronic device and the charging current. The control module controls the charging process of the battery according to the voltage at both ends of the battery and the charging current detected by the detection module. Take control. These modules/units can be realized by hardware, and can also be realized by executing corresponding software by hardware.

第四方面,本申请实施例还提供一种芯片,所述芯片与存储器耦合,用于调用存储器中存储的计算机程序并执行本申请实施例第一方面及其第一方面任一可能设计的技术方案;本申请实施例中“耦合”是指两个部件彼此直接或间接地结合。In the fourth aspect, the embodiment of the present application also provides a chip, the chip is coupled with the memory, and is used to call the computer program stored in the memory and execute the first aspect of the embodiment of the present application and any possible design technology of the first aspect Scheme; "Coupling" in the embodiments of the present application means that two components are directly or indirectly combined with each other.

第五方面,本申请实施例还提供一种计算机可读存储介质,所述计算机可读存储介质包括计算机程序,当计算机程序在电子设备上运行时,使得电子设备执行本申请实施例第一方面及其第一方面任一可能设计的技术方案。In the fifth aspect, the embodiment of the present application further provides a computer-readable storage medium, the computer-readable storage medium includes a computer program, and when the computer program runs on the electronic device, the electronic device executes the first aspect of the embodiment of the present application Any possible design technical solution of the first aspect thereof.

第六方面,本申请实施例的中一种程序产品,包括指令,当所述程序产品在电子设备上运行时,使得电子设备执行本申请实施例第一方面及其第一方面任一可能设计的技术方案。In the sixth aspect, a program product in the embodiment of the present application includes instructions, and when the program product is run on the electronic device, the electronic device executes the first aspect of the embodiment of the present application and any possible design of the first aspect thereof. technical solutions.

上述第二方面至第六方面的及其实现方式的有益效果可以参考对第一方面的方法及其实现方式的有益效果的描述。For the beneficial effects of the above-mentioned second aspect to the sixth aspect and their implementation manners, reference may be made to the description of the beneficial effects of the method of the first aspect and its implementation manners.

附图说明Description of drawings

图1A为本申请实施例提供的通过外部电源对电子设备100进行充电的应用场景的示例;FIG. 1A is an example of an application scenario in which an electronic device 100 is charged by an external power supply according to an embodiment of the present application;

图1B为本申请实施例提供的通过移动电源对电子设备100进行充电的应用场景的示例;FIG. 1B is an example of an application scenario in which an electronic device 100 is charged by a mobile power supply according to an embodiment of the present application;

图2为本申请实施例提供的电子设备100的一种示例的硬件结构示意图;FIG. 2 is a schematic diagram of a hardware structure of an example of an electronic device 100 provided in an embodiment of the present application;

图3为充电IC的输出电流与地之间的电流回路框图;Figure 3 is a block diagram of the current loop between the output current of the charging IC and the ground;

图4为本申请实施例提供的一种充电控制方法的一种示例的流程图;FIG. 4 is a flow chart of an example of a charging control method provided in an embodiment of the present application;

图5为本申请实施例提供的一种充电控制方法的另一种示例的流程图;FIG. 5 is a flow chart of another example of a charging control method provided by an embodiment of the present application;

图6为本申请实施例提供一种充电控制装置的一种示例的结构示意图;FIG. 6 is a schematic structural diagram of an example of a charging control device provided by an embodiment of the present application;

图7为本申请实施例提供一种充电控制装置的另一种示例的结构示意图。FIG. 7 is a schematic structural diagram of another example of a charging control device provided by the embodiment of the present application.

具体实施方式Detailed ways

为了使本申请实施例的目的、技术方案和优点更加清楚,下面将结合说明书附图以及具体的实施方式对本申请实施例中的技术方案进行详细的说明。In order to make the purpose, technical solutions and advantages of the embodiments of the present application clearer, the technical solutions in the embodiments of the present application will be described in detail below in conjunction with the accompanying drawings and specific implementation methods.

以下,对本申请实施例中的部分用语进行解释说明,以便于本领域技术人员理解。In the following, some terms used in the embodiments of the present application are explained, so as to facilitate the understanding of those skilled in the art.

本申请实施例涉及两个电子设备,即被充电设备和供电设备。供电设备(或者称为充电设备、外部电源等等,本申请实施例对此名称不作限定)与被充电设备连接,可以将供电设备中的电能提供给被充电设备。为了方便描述,下文中以供电设备和电子设备(也就是说,将被充电设备称为电子设备)为例进行说明。The embodiment of the present application involves two electronic devices, that is, a device to be charged and a power supply device. The power supply device (or called charging device, external power supply, etc., which is not limited in this embodiment of the present application) is connected to the charged device, and can provide the electric energy in the power supply device to the charged device. For convenience of description, a power supply device and an electronic device (that is, the device to be charged is referred to as an electronic device) are taken as examples for description below.

需要说明的是,以下实施例中所使用的术语只是为了描述特定实施例的目的,而并非旨在作为对本申请的限制。如在本申请的说明书和所附权利要求书中所使用的那样,单数表达形式“一个”、“一种”、“所述”、“上述”、“该”和“这一”旨在也包括例如“一个或多个”这种表达形式,除非其上下文中明确地有相反指示。还应当理解,在本申请实施例中,“一个或多个”是指一个、两个或两个以上;“和/或”,描述关联对象的关联关系,表示可以存在三种关系;例如,A和/或B,可以表示:单独存在A,同时存在A和B,单独存在B的情况,其中A、B可以是单数或者复数。字符“以是一般表示前后关联对象是一种“或”的关系。It should be noted that the terms used in the following embodiments are only for the purpose of describing specific embodiments, and are not intended to limit the application. As used in the specification and appended claims of this application, the singular expressions "a", "an", "said", "above", "the" and "this" are intended to also Expressions such as "one or more" are included unless the context clearly dictates otherwise. It should also be understood that in the embodiments of the present application, "one or more" refers to one, two or more than two; "and/or" describes the association relationship of associated objects, indicating that there may be three types of relationships; for example, A and/or B may mean: A exists alone, A and B exist simultaneously, and B exists alone, wherein A and B may be singular or plural. The character "is to generally indicate that the associated objects before and after are a kind of "or" relationship.

在本说明书中描述的“参考一个实施例”或“参考一些实施例”等意味着在本申请的一个或多个实施例中包括结合该实施例描述的特定特征、结构或特点。由此,在本说明书中的不同之处出现的语句“在一个实施例中”、“在一些实施例中”、“在其他一些实施例中”、“在另外一些实施例中”等不是必然都参考相同的实施例,而是意味着“一个或多个但不是所有的实施例”,除非是以其他方式另外特别强调。术语“包括”、“包含”、“具有”及它们的变形都意味着“包括但不限于”,除非是以其他方式另外特别强调。"Reference to one embodiment" or "reference to some embodiments" or the like described in this specification means that a particular feature, structure or characteristic described in connection with the embodiment is included in one or more embodiments of the present application. Thus, appearances of the phrases "in one embodiment," "in some embodiments," "in other embodiments," "in other embodiments," etc. in various places in this specification are not necessarily All refer to the same embodiment, but mean "one or more but not all embodiments" unless specifically stated otherwise. The terms "including", "comprising", "having" and variations thereof mean "including but not limited to", unless specifically stated otherwise.

需要说明的是,本申请提供的技术方案可以应用在有线充电场景,也可以应用在无线充电场景。在无线充电场景下,电子设备和供电设备通过无线方式(例如无线保真(wireless fidelity,Wi-Fi)、蓝牙等)连接;有线充电场景下,电子设备和供电设备通过有线方式(例如通过电源线)连接。下文中以应用在有线充电场景为例进行说明。当然,在无线充电场景下,其实现原理和在有线充电场景下的实现原理类似,在此不再赘述。It should be noted that the technical solutions provided in this application can be applied in wired charging scenarios, and can also be applied in wireless charging scenarios. In the wireless charging scenario, the electronic device and the power supply device are connected wirelessly (such as wireless fidelity (Wi-Fi), Bluetooth, etc.); in the wired charging scenario, the electronic device and the power supply device line) connection. In the following, the application in the wired charging scenario is taken as an example for illustration. Of course, in the wireless charging scenario, its implementation principle is similar to that in the wired charging scenario, and will not be repeated here.

参见图1A-图1B,为本申请实施例提供的两种应用场景的示例。当然,本申请实施例的技术方案不限于适用于这两种应用场景,也可以适用于其他的应用场景,本申请实施例不作限制。Refer to FIG. 1A-FIG. 1B, which are examples of two application scenarios provided by the embodiment of the present application. Certainly, the technical solutions of the embodiments of the present application are not limited to the application of these two application scenarios, and may also be applicable to other application scenarios, which are not limited by the embodiments of the present application.

在图1A所述的场景中,包括电子设备100(以手机为例)和供电设备200(以手机的充电器)为例。该场景中,电子设备100与供电设备200连接之后,供电设备200与外部电源(例如电压为220伏特(volt,V)且频率为50赫兹(hertz,HZ)的市电)连接,供电设备200从外部电源获取电能,然后将电能提供给电子设备100。In the scenario shown in FIG. 1A , the electronic device 100 (taking a mobile phone as an example) and the power supply device 200 (taking a mobile phone charger as an example) are included. In this scenario, after the electronic device 100 is connected to the power supply device 200, the power supply device 200 is connected to an external power source (for example, a mains power supply with a voltage of 220 volts (volt, V) and a frequency of 50 hertz (hertz, HZ)), and the power supply device 200 Power is obtained from an external power source and then provided to the electronic device 100 .

与图1A不同的是,在图1B所述的场景中,供电设备200为移动电源。该场景中,当电子设备100与供电设备200连接之后,供电设备200可以将其存储的电能提供给电子设备100。Different from FIG. 1A, in the scenario described in FIG. 1B, the power supply device 200 is a mobile power supply. In this scenario, after the electronic device 100 is connected to the power supply device 200 , the power supply device 200 may provide the electronic device 100 with the electric energy stored therein.

在本申请实施例中,电子设备100可以是一种向用户提供语音和/或数据连通性的设备,例如可以包括具有无线连接功能的手持式设备、或连接到无线调制解调器的处理设备。In this embodiment of the present application, the electronic device 100 may be a device that provides voice and/or data connectivity to a user, for example, may include a handheld device with a wireless connection function, or a processing device connected to a wireless modem.

该电子设备100可以经无线接入网(radio access network,RAN)与核心网进行通信,与RAN交换语音和/或数据。该电子设备100可以包括用户设备(user equipment,UE)、无线终端、移动终端、订户单元(subscriber unit)、用户站(subscriber station),移动站(mobile station)、远程站(remote station)、接入点(access point,AP)、远程终端(remote terminal)、接入终端(access terminal)、用户终端(user terminal)、用户代理(user agent)、或用户装备(user device)等。或者,该电子设备100可以包括移动电话(或称为“蜂窝”电话),具有移动终端的计算机,便携式、袖珍式、手持式、计算机内置的或者车载的移动装置,智能穿戴式设备等。例如,个人通信业务(personal communicationservice,PCS)电话、无绳电话、会话发起协议(session initiation protocol,SIP)话机、无线本地环路(wireless local loop,WLL)站、个人数字助理(personal digitalassistant,PDA)、等设备。或者,该电子设备100还可以包括受限设备,例如功耗较低的设备,或存储能力有限的设备,或计算能力有限的设备等。例如包括条码、射频识别(radiofrequency identification,RFID)、传感器、全球定位系统(global positioning system,GPS)、激光扫描器等信息传感设备。The electronic device 100 may communicate with a core network via a radio access network (radio access network, RAN), and exchange voice and/or data with the RAN. The electronic device 100 may include user equipment (user equipment, UE), wireless terminal, mobile terminal, subscriber unit (subscriber unit), subscriber station (subscriber station), mobile station (mobile station), remote station (remote station), access Access point (access point, AP), remote terminal (remote terminal), access terminal (access terminal), user terminal (user terminal), user agent (user agent), or user equipment (user device), etc. Alternatively, the electronic device 100 may include a mobile phone (or called a "cellular" phone), a computer with a mobile terminal, a portable, pocket-sized, hand-held, computer-built-in or vehicle-mounted mobile device, a smart wearable device, and the like. For example, personal communication service (PCS) phones, cordless phones, session initiation protocol (SIP) phones, wireless local loop (WLL) stations, personal digital assistants (PDAs) , and other equipment. Alternatively, the electronic device 100 may also include a limited device, such as a device with low power consumption, or a device with limited storage capability, or a device with limited computing capability. For example, it includes barcodes, radio frequency identification (radiofrequency identification, RFID), sensors, global positioning system (global positioning system, GPS), laser scanners and other information sensing devices.

作为示例而非限定,在本申请实施例中,智能穿戴式设备,是应用穿戴式技术对日常穿戴进行智能化设计、开发出可以穿戴的设备的总称,如眼镜、手套、手表、服饰及鞋等。智能穿戴式设备即直接穿在身上,或是整合到用户的衣服或配件的一种便携式设备。智能穿戴式设备不仅仅是一种硬件设备,更是通过软件支持以及数据交互、云端交互来实现强大的功能。广义智能穿戴式设备包括功能全、尺寸大、可不依赖智能手机实现完整或者部分的功能,例如:智能手表或智能眼镜等,以及只专注于某一类应用功能,需要和其它设备如智能手机配合使用,如各类进行体征监测的智能手环、智能头盔、智能首饰等。As an example and not a limitation, in the embodiment of this application, smart wearable devices refer to the general term for wearable devices that are intelligently designed for daily wear and developed by applying wearable technology, such as glasses, gloves, watches, clothing and shoes. wait. A smart wearable device is a portable device that is worn directly on the body or integrated into the user's clothing or accessories. Smart wearable device is not only a hardware device, but also realizes powerful functions through software support, data interaction and cloud interaction. Generalized smart wearable devices include full-featured, large-sized, complete or partial functions without relying on smart phones, such as smart watches or smart glasses, etc., and only focus on a certain type of application functions, and need to cooperate with other devices such as smart phones Use, such as various smart bracelets, smart helmets, smart jewelry, etc. for physical sign monitoring.

或者,该电子设备100还可以是虚拟现实(virtual reality,VR)设备、增强现实(augmented reality,AR)设备、工业控制(industrial control)中的无线终端、无人驾驶(driverless)中的无线终端、远程手术(remote medical surgery)中的无线终端、智能电网(smart grid)中的无线终端、运输安全(transportation safety)中的无线终端、智慧城市(smart city)中的无线终端、智慧家庭(smart home)中的无线终端等。Alternatively, the electronic device 100 may also be a virtual reality (virtual reality, VR) device, an augmented reality (augmented reality, AR) device, a wireless terminal in industrial control (industrial control), or a wireless terminal in driverless (driverless) , wireless terminals in remote medical surgery, wireless terminals in smart grid, wireless terminals in transportation safety, wireless terminals in smart city, smart home home) in the wireless terminal, etc.

供电设备200可以是电源适配器、移动电源或其他具有对电子设备100进行充电功能的设备。例如,在供电设备200为电源适配器时,可以将外部电源(例如市电)转换成直流信号输出给电子设备100。The power supply device 200 may be a power adapter, a mobile power supply or other devices capable of charging the electronic device 100 . For example, when the power supply device 200 is a power adapter, it can convert an external power source (such as mains power) into a DC signal and output it to the electronic device 100 .

下面结合附图,进一步说明上述电子设备100的一种可能结构。请参考图2,为本申请实施例提供的电子设备100的一种示例的硬件结构示意图。如图2所示,该电子设备100可以包括处理器120、内部存储器110、外部存储器111、充电管理模块121,电源管理模块122,电池123,音频电路130、扬声器131、麦克风132、输入设备140、显示设备150、摄像头160、传感器170、射频(radio frequency,RF)电路180、无线保真(wireless fidelity,Wi-Fi)模块190等部件。A possible structure of the above-mentioned electronic device 100 will be further described below with reference to the accompanying drawings. Please refer to FIG. 2 , which is a schematic diagram of a hardware structure of an example of an electronic device 100 provided in an embodiment of the present application. As shown in Figure 2, the electronic device 100 may include a processor 120, an internal memory 110, an external memory 111, a charging management module 121, a power management module 122, a battery 123, an audio circuit 130, a speaker 131, a microphone 132, and an input device 140 , a display device 150 , a camera 160 , a sensor 170 , a radio frequency (radio frequency, RF) circuit 180 , a wireless fidelity (wireless fidelity, Wi-Fi) module 190 and other components.

本领域技术人员可以理解,图2仅仅是对电子设备的举例,并不构成对电子设备的限定,电子设备可以包括比图示更多或更少的部件,或者组合某些部件,或者不同的部件。或者,在图2所示的基础上,还可以有其他变型结构方式存在。Those skilled in the art can understand that Fig. 2 is only an example of the electronic equipment, and does not constitute a limitation to the electronic equipment. part. Or, on the basis of what is shown in FIG. 2 , there may be other modified structural manners.

处理器120是电子设备100的控制中心,利用各种接口和线路连接整个电子设备100的各个部分,通过运行或执行存储在内部存储器110内的指令以及调用存储在内部存储器110内的数据,完成电子设备100的各种功能和处理数据,从而对电子设备进行整体监控。可选的,处理器120可包括一个或多个处理单元,优选的,处理器120可集成应用处理器(application processor,AP)和调制解调处理器,其中,应用处理器主要处理操作系统、用户界面和应用程序等,调制解调处理器主要处理无线通信。可以理解的是,上述调制解调处理器也可以不集成到处理器120中。在一些实施例中,处理器120和内部存储器110可以在同一芯片上实现,在另一些实施例中,处理器120和内部存储器110也可以各自在独立的芯片上分别实现。The processor 120 is the control center of the electronic device 100. It uses various interfaces and lines to connect various parts of the entire electronic device 100. By running or executing instructions stored in the internal memory 110 and calling data stored in the internal memory 110, the processor 120 completes Various functions and processing data of the electronic device 100, so as to monitor the electronic device as a whole. Optionally, the processor 120 may include one or more processing units. Preferably, the processor 120 may integrate an application processor (application processor, AP) and a modem processor, wherein the application processor mainly processes the operating system, User interface and application programs, etc., modem processor mainly handles wireless communication. It can be understood that the foregoing modem processor may not be integrated into the processor 120 . In some embodiments, the processor 120 and the internal memory 110 may be implemented on the same chip, and in other embodiments, the processor 120 and the internal memory 110 may also be implemented on independent chips.

内部存储器110可以用于存储计算机可执行程序代码,所述可执行程序代码包括指令。处理器120通过运行存储在内部存储器110中的指令,从而执行电子设备100的各种功能应用以及数据处理。内部存储器110可以包括存储程序区和存储数据区。其中,存储程序区可存储操作系统,以及至少一个应用程序(比如相机应用,微信应用等)的软件代码等。存储数据区可存储电子设备100使用过程中所产生的数据(比如图像、视频等)等。此外,内部存储器110可以包括高速随机存取存储器,还可以包括非易失性存储器,例如至少一个磁盘存储器件,闪存器件,通用闪存存储器(universal flash storage,UFS)等。Internal memory 110 may be used to store computer-executable program code, which includes instructions. The processor 120 executes various functional applications and data processing of the electronic device 100 by executing instructions stored in the internal memory 110 . The internal memory 110 may include an area for storing programs and an area for storing data. Wherein, the storage program area can store the operating system, and software codes of at least one application program (such as camera application, WeChat application, etc.). The data storage area can store data (such as images, videos, etc.) generated during the use of the electronic device 100 . In addition, the internal memory 110 may include a high-speed random access memory, and may also include a non-volatile memory, such as at least one magnetic disk storage device, flash memory device, universal flash storage (universal flash storage, UFS) and the like.

外部存储器接口111可以用于连接外部存储卡,例如微型(micro)数字安全(secure digital,SD)卡,实现扩展电子设备100的存储能力。外部存储卡通过外部存储器接口111与处理器120通信,实现数据存储功能。例如将音乐,视频等文件保存在外部存储卡中。The external memory interface 111 can be used to connect an external memory card, such as a micro (secure digital, SD) card, to expand the storage capacity of the electronic device 100 . The external memory card communicates with the processor 120 through the external memory interface 111 to implement a data storage function. Such as saving music, video and other files in the external memory card.

外设接口,可以包括标准的微型通用串行总线(micro universal serial bus,Micro USB)接口,也可以包括多种连接器,比如可以用于连接电子设备100与其他设备进行通信的通信接口(未在图2中示出),再比如图2中示出的可以用于连接充电器为电子设备100充电的充电接口133。The peripheral interface may include a standard micro universal serial bus (micro universal serial bus, Micro USB) interface, and may also include a variety of connectors, such as a communication interface (not shown) that can be used to connect the electronic device 100 to communicate with other devices. 2 ), another example is the charging interface 133 shown in FIG. 2 that can be used to connect a charger to charge the electronic device 100 .

应理解,当电子设备100通过充电接口133与电源适配器连接时,电子设备100与电源适配器之间的电能传输可以通过充电接口133实现;当电子设备100使用无线充电的方式进行充电,比如电子设备100通过蓝牙连接的方式与电源适配器无线连接,这样的话,电子设备100与电源适配器之间的电能传输可以通过蓝牙传输。其中,电源适配器和电子设备100可以支持相同的协议,比如充电(power delivery,PD)协议等,本申请实施例不作限定。It should be understood that when the electronic device 100 is connected to the power adapter through the charging interface 133, the power transmission between the electronic device 100 and the power adapter can be realized through the charging interface 133; 100 is wirelessly connected to the power adapter through a Bluetooth connection, so that the power transmission between the electronic device 100 and the power adapter can be transmitted through Bluetooth. Wherein, the power adapter and the electronic device 100 may support the same protocol, such as a charging (power delivery, PD) protocol, etc., which is not limited in this embodiment of the present application.

电源适配器与外部的电源(例如市电等)连接,从外部的电源(例如市电等)处获取电能,然后将获取的电能通过充电接口133输入到电子设备100(例如输入到电子设备100中的充电管理模块121)。充电管理模块121用于管理充电过程,该充电管理模块121中包括用于充电的充电集成电路(integrated circuit,IC)和以及用于控制充电阶段的控制电路。例如,在电子设备100的充电接口133与供电设备200之间建立连接后,通过该充电IC对电池123供电,控制电路可以检测电子设备100的两端的充电电压和充电电流,并根据检测到的电子设备100的两端的充电电压和充电电流,控制电子设备100所处的充电阶段(例如处于恒压充电阶段或者处于恒流充电阶段),在确定电子设备100的电池123充满后,控制显示设备150或者扬声器131生成提示信息,该提示信息可以是语音、文本等,也可以是发光二极管(light emitting diode,LED)信号。例如,显示设备150中的显示面板151显示基本文本形式的提示信息,也可以通过音频电路130的扬声器131发出基于音频形式的提示信息,也可以通过控制LED灯闪烁来提示电量不足,这里不做限定。充电管理模块121中还可以设置电量计,从而使得充电管理模块121可以通过电量计获取电池123当前的剩余电量以及电池上一次的放电量的信息。本申请实施例所提供的充电方法,其主要步骤可由充电管理模块121执行。The power adapter is connected to an external power source (such as commercial power, etc.), obtains electric energy from the external power source (such as commercial power, etc.), and then inputs the obtained electric energy to the electronic device 100 through the charging interface 133 (for example, input into the electronic device 100 charging management module 121). The charging management module 121 is used to manage the charging process, and the charging management module 121 includes a charging integrated circuit (integrated circuit, IC) for charging and a control circuit for controlling the charging phase. For example, after the connection between the charging interface 133 of the electronic device 100 and the power supply device 200 is established, the battery 123 is powered by the charging IC, and the control circuit can detect the charging voltage and charging current at both ends of the electronic device 100, and according to the detected The charging voltage and charging current at both ends of the electronic device 100, control the charging stage of the electronic device 100 (for example, in the constant voltage charging stage or in the constant current charging stage), after determining that the battery 123 of the electronic device 100 is full, control the display device 150 or the speaker 131 generates prompt information, where the prompt information may be voice, text, etc., or may be a light emitting diode (light emitting diode, LED) signal. For example, the display panel 151 in the display device 150 displays prompt information in basic text form, and the speaker 131 of the audio circuit 130 can also send out prompt information based on audio form, or control the LED light to flash to prompt that the battery is insufficient, which will not be done here. limited. A fuel gauge can also be set in the charging management module 121 , so that the charging management module 121 can obtain information about the current remaining power of the battery 123 and the last discharge capacity of the battery through the fuel gauge. The main steps of the charging method provided by the embodiment of the present application can be executed by the charging management module 121 .

或者,充电管理模块121一方面为电池123蓄电,另一方面为电源管理模块122提供输入电能;或者,充电管理模块121仅为电池123蓄电,电源管理模块122再从电池123获取电能为各个部件(例如处理器120、内部存储器110、输入设备140、显示设备150、传感器170等)供电。Or, the charging management module 121 stores electricity for the battery 123 on the one hand, and provides input electric energy for the power management module 122 on the other hand; Various components (eg, processor 120, internal memory 110, input device 140, display device 150, sensor 170, etc.) provide power.

电源管理模块122接收电池123和/或充电管理模块121输入的电能,为各个部件供电。例如,当电子设备100未与电源适配器连接时,电源管理模块122接收电池123输入的电能,为各个部件供电。当电子设备100与电源适配器连接并进行充电时,电源管理模块122接收充电管理模块121输入的电能,为各个部件供电,当然,当电子设备100与电源适配器连接并进行充电时,电源管理模块122也可以接收电池123输入的电能,为各个部件供电。需要说明的是,电源管理模块122为各个部件供电可以有先后顺序,例如先为处理器120供电,然后为其它部件供电,当电源管理模块122为处理器120供电,处理器120启动之后,可以通知电源管理模块122为其它部件中的哪些部分供电,或者不为哪些部件供电等。The power management module 122 receives the electric energy input by the battery 123 and/or the charging management module 121 to supply power for each component. For example, when the electronic device 100 is not connected to the power adapter, the power management module 122 receives the electric energy input by the battery 123 to supply power for various components. When the electronic device 100 is connected to the power adapter and charged, the power management module 122 receives the electric energy input by the charging management module 121 to supply power for each component. Of course, when the electronic device 100 is connected to the power adapter and charged, the power management module 122 It can also receive the electric energy input by the battery 123 to supply power for each component. It should be noted that the power management module 122 can supply power to each component in a sequential order, for example, supply power to the processor 120 first, and then supply power to other components. When the power management module 122 supplies power to the processor 120 and the processor 120 starts, it can Notify the power management module 122 which parts of other components are powered, or which components are not powered, and so on.

应理解,当电子设备100未连接电源适配器时,电子设备100可以通过电池123中储存的电能来为各个器件供电。It should be understood that, when the electronic device 100 is not connected to the power adapter, the electronic device 100 can provide power for various devices through the electric energy stored in the battery 123 .

输入设备140可用于接收输入的数字或字符信息,以及产生与电子设备的用户设置以及功能控制有关的键信号输入。以该电子设备支持触摸输入为例,则输入设备140可包括触摸屏,还可以包其他输入设备,触摸屏可收集用户在其上或附近的触摸操作(比如用户使用手指、关节、触笔等任何适合的物体在触摸屏上或在触摸屏附近的操作),并根据预先设定的程序驱动相应的连接装置。触摸屏可以检测用户对触摸屏的触控操作,将触控操作转换为触控信号发送给处理器120,或者理解为可将触控操作的触控信息发送给处理器120,并能接收处理器120发来的命令并加以执行。触摸屏可以提供电子设备100和用户之间的输入界面和输出界面。此外,可以采用电阻式、电容式、红外线以及表面声波等多种类型实现触摸屏。除了触摸屏,输入设备140还可以包括其他输入设备。比如,其他输入设备可以包括但不限于物理键盘、功能键(比如音量控制按键、开关按键等)、轨迹球、鼠标、操作杆等中的一种或多种。The input device 140 can be used to receive input numbers or character information, and generate key signal input related to user settings and function control of the electronic device. Taking the electronic device supporting touch input as an example, the input device 140 may include a touch screen, and may also include other input devices. Objects on the touch screen or near the touch screen), and drive the corresponding connection device according to the preset program. The touch screen can detect the user's touch operation on the touch screen, convert the touch operation into a touch signal and send it to the processor 120, or understand that the touch information of the touch operation can be sent to the processor 120, and can receive the touch signal from the processor 120. Orders sent and executed. The touch screen may provide an input interface and an output interface between the electronic device 100 and a user. In addition, touch screens can be implemented in various types such as resistive, capacitive, infrared, and surface acoustic waves. In addition to a touch screen, the input device 140 may also include other input devices. For example, other input devices may include, but are not limited to, one or more of physical keyboards, function keys (such as volume control buttons, switch buttons, etc.), trackballs, mice, joysticks, and the like.

显示设备150,包括的显示面板,可用于显示由用户输入的信息或提供给用户的信息以及电子设备100的各种菜单界面等。进一步的,触摸屏可覆盖显示设备150,当触摸屏检测到在其上或附近的触控操作后,传送给处理器120以确定触控事件的类型,随后处理器120根据触摸事件的类型在显示设备150上提供相应的视觉输出。在本实施例中,触摸屏与显示设备150可以集成为一个部件而实现电子设备100的输入、输出、显示功能,比如通过显示设备150在触摸屏上显示提示信息,以提示电子设备100当前的剩余电量。为便于描述,本申请实施例以触摸屏代表触摸屏和显示设备150的功能集合为例,当然在某些实施例中,触摸屏与显示设备150也可以作为两个独立的部件。The display device 150 , including a display panel, can be used to display information input by a user or information provided to the user, various menu interfaces of the electronic device 100 , and the like. Further, the touch screen can cover the display device 150. When the touch screen detects a touch operation on or near it, it is sent to the processor 120 to determine the type of the touch event. A corresponding visual output is provided at 150 . In this embodiment, the touch screen and the display device 150 can be integrated into one component to realize the input, output, and display functions of the electronic device 100, such as displaying prompt information on the touch screen through the display device 150 to prompt the current remaining power of the electronic device 100 . For ease of description, the embodiment of the present application takes the touch screen as an example to represent the function set of the touch screen and the display device 150 , of course, in some embodiments, the touch screen and the display device 150 may also be used as two independent components.

射频电路180可用于收发信息或通话过程中信号的接收和发送。通常,射频电路包括但不限于天线、至少一个放大器、收发信机、耦合器、低噪声放大器(low noiseamplifier,LNA)、双工器等。此外,射频电路180还可以通过无线通信与网络设备和其他设备通信。无线通信可以使用任一通信标准或协议,包括但不限于全球移动通讯系统(globalsystem of mobile communication,GSM)、通用分组无线服务(general packet radioservice,GPRS)、码分多址(code division multiple access,CDMA)、宽带码分多址(wideband code division multiple access,WCDMA)、长期演进(long term evolution,LTE)、电子邮件、短消息服务(short messaging service,SMS)等。The radio frequency circuit 180 can be used for sending and receiving information or receiving and sending signals during a call. Generally, a radio frequency circuit includes, but is not limited to, an antenna, at least one amplifier, a transceiver, a coupler, a low noise amplifier (low noise amplifier, LNA), a duplexer, and the like. In addition, the radio frequency circuit 180 can also communicate with network equipment and other equipment through wireless communication. Wireless communication can use any communication standard or protocol, including but not limited to Global System of Mobile Communication (GSM), General Packet Radio Service (GPRS), Code Division Multiple Access, CDMA), wideband code division multiple access (wideband code division multiple access, WCDMA), long term evolution (long term evolution, LTE), email, short message service (short messaging service, SMS), etc.

音频电路130、扬声器131、麦克风132可提供用户与电子设备100之间的音频接口。音频电路130可将接收到的音频数据转换后的电信号,传输到扬声器131,由扬声器131转换为声音信号输出。另一方面,麦克风132将收集的声音信号转换为电信号,由音频电路130接收后转换为音频数据,再将音频数据输出处理器120处理后,经射频电路180以发送给例如另一电子设备,或者将音频数据输出至内部存储器110以便进一步处理,音频电路130也可以包括耳机插孔,用于提供音频电路130和耳机之间的连接接口。本申请实施例中,可以通过音频电路130将基于音频形式的提示信息传输到扬声器131,由扬声器131转换为声音信号输出,以达到基于声音方式提示电子设备100电量不足需要充电或者电量已充满的目的。The audio circuit 130 , the speaker 131 , and the microphone 132 can provide an audio interface between the user and the electronic device 100 . The audio circuit 130 can transmit the electrical signal converted from the received audio data to the speaker 131, and the speaker 131 converts it into an audio signal for output. On the other hand, the microphone 132 converts the collected sound signal into an electrical signal, which is converted into audio data after being received by the audio circuit 130, and then the audio data is processed by the output processor 120, and then sent to another electronic device through the radio frequency circuit 180 , or output the audio data to the internal memory 110 for further processing, and the audio circuit 130 may also include an earphone jack for providing a connection interface between the audio circuit 130 and the earphone. In the embodiment of the present application, the audio-based prompt information can be transmitted to the speaker 131 through the audio circuit 130, and the speaker 131 converts it into a sound signal for output, so as to achieve a voice-based prompt that the electronic device 100 is low in power and needs to be charged or that the power is fully charged. Purpose.

Wi-Fi模块190属于短距离无线传输技术,电子设备100通过Wi-Fi模块190可以帮助用户收发电子邮件、浏览网页和访问流式媒体等,它为用户提供了无线的宽带互联网访问。虽然图2示出了Wi-Fi模块190,但是可以理解的是,其并不属于电子设备100的必须构成,完全可以根据需要在不改变申请的本质的范围内而省略。The Wi-Fi module 190 belongs to the short-distance wireless transmission technology. The electronic device 100 can help users send and receive emails, browse webpages, and access streaming media through the Wi-Fi module 190. It provides users with wireless broadband Internet access. Although FIG. 2 shows the Wi-Fi module 190, it can be understood that it is not a necessary component of the electronic device 100, and can be completely omitted as required without changing the essence of the application.

电子设备100还可以包括蓝牙模块(图2中未示出),蓝牙(bluetooth)是一种短距离无线通讯技术。利用蓝牙技术,能够有效地简化掌上电脑、笔记本电脑和手机等移动通信电子设备之间的通信,也能够成功地简化以上这些设备与因特网(internet)之间的通信,电子设备100通过蓝牙模块使电子设备100与因特网之间的数据传输变得更加迅速高效,为无线通信拓宽道路。蓝牙技术是能够实现语音和数据无线传输的开放性方案。虽然图2示出了蓝牙模块,但是可以理解的是,其并不属于电子设备100的必须构成,完全可以根据需要在不改变申请的本质的范围内而省略。The electronic device 100 may also include a Bluetooth module (not shown in FIG. 2 ). Bluetooth (bluetooth) is a short-distance wireless communication technology. The use of bluetooth technology can effectively simplify the communication between mobile communication electronic devices such as handheld computers, notebook computers and mobile phones, and can also successfully simplify the communication between the above-mentioned devices and the Internet. The electronic device 100 uses the bluetooth module. Data transmission between the electronic device 100 and the Internet becomes faster and more efficient, broadening the way for wireless communication. Bluetooth technology is an open solution that enables wireless transmission of voice and data. Although FIG. 2 shows a bluetooth module, it can be understood that it is not a necessary component of the electronic device 100, and can be completely omitted as required without changing the essence of the application.

电子设备100中还包括用于拍摄图像或视频的摄像头160。摄像头160可以是普通摄像头,也可以是对焦摄像头。The electronic device 100 also includes a camera 160 for capturing images or videos. The camera 160 may be a common camera or a focusing camera.

尽管并未在图2中示出,电子设备100还可以包括闪光灯、LED灯、各类传感器等其他可能的功能模块,在此不再赘述。Although not shown in FIG. 2 , the electronic device 100 may also include other possible functional modules such as flashlights, LED lights, and various sensors, which will not be repeated here.

下面结合图2所示的电子设备100的硬件结构,介绍现有技术中电子设备100的充电过程。The charging process of the electronic device 100 in the prior art will be introduced below in combination with the hardware structure of the electronic device 100 shown in FIG. 2 .

在目前的充电过程中,是通过设置与不同充电阶段对应的截止电压来控制充电过程。作为一种示例,分别设置预充电阶段对应的截止电压为3V和恒流充电阶段对应的截止电压为电池123能承受的最大电压(例如为4.4V)。然后,在充电过程中,由充电管理模块121的控制电路实时监测电池123两端的电压,从而控制电池123进入对应的充电阶段。In the current charging process, the charging process is controlled by setting cut-off voltages corresponding to different charging stages. As an example, the cut-off voltage corresponding to the pre-charging phase is set to 3V and the cut-off voltage corresponding to the constant-current charging phase is set to the maximum voltage that the battery 123 can withstand (for example, 4.4V). Then, during the charging process, the control circuit of the charging management module 121 monitors the voltage at both ends of the battery 123 in real time, so as to control the battery 123 to enter a corresponding charging stage.

充电开始时,充电管理模块121的控制电路首先控制电池处于预充电阶段,当检测到电池123两端的电压达到该预充电阶段对应的截止电压时,则充电管理模块121的控制电路控制电池123进入恒流充电阶段,即采用恒定的电流(预设的电流)对电池123充电。继续对电池123两端的电压进行检测,当充电管理模块121的控制电路确定电池123两端的电压达到恒流充电阶段对应的截止电压后,则控制电池123进入恒压充电阶段。在这个阶段中,电池的电压保持不变,充电电流逐渐下降,当充电电流小于或等于预设的截止电流时,则认为电池123已经充满,从而停止对电池123充电。When charging starts, the control circuit of the charging management module 121 first controls the battery to be in the pre-charging stage. In the constant current charging stage, the battery 123 is charged with a constant current (preset current). Continue to detect the voltage at both ends of the battery 123. When the control circuit of the charge management module 121 determines that the voltage at both ends of the battery 123 reaches the cut-off voltage corresponding to the constant current charging stage, the battery 123 is controlled to enter the constant voltage charging stage. In this stage, the voltage of the battery remains constant, and the charging current gradually decreases. When the charging current is less than or equal to the preset cut-off current, it is considered that the battery 123 is fully charged, thereby stopping charging the battery 123 .

然而,在实际充电过程中,充电管理模块121以充电IC的输出电流与地之间的电压,作为电池123两端的电压。而在充电IC的输出电流与地之间,存在一些阻抗。请参考图3,为充电IC通过连接器与电池123连接时,充电IC的输出电流与地之间的电流回路框图。如图3所示,充电IC的输出电流首先流经连接器的正极,然后,输出电流经由连接器的正极,流经电池123的电芯。电池123内部设置有电芯保护器件,从而输出电流经由电芯保护器件,流经连接器的负极,最后通过电量计,流向地。However, in the actual charging process, the charging management module 121 uses the voltage between the output current of the charging IC and the ground as the voltage across the battery 123 . And there is some impedance between the output current of the charging IC and the ground. Please refer to FIG. 3 , which is a block diagram of the current loop between the output current of the charging IC and the ground when the charging IC is connected to the battery 123 through a connector. As shown in FIG. 3 , the output current of the charging IC first flows through the positive pole of the connector, and then the output current flows through the battery cell 123 via the positive pole of the connector. The battery 123 is provided with a cell protection device, so that the output current flows through the cell protection device, through the negative pole of the connector, and finally through the fuel gauge, to the ground.

在图3所示的电流回路中,充电IC和连接器的正极之间存在连接器正极接触电阻,电芯保护器件有内阻、连接器的负极与电芯保护器件之间存在连接器负极接触电阻,以及电量计有内阻等。由于这些阻抗的存在,在电池123处于恒压充电阶段时,随着电芯电压的增加,这些电阻会产生压降,使得充电电流会缓慢下降。而恒流充电阶段的电流通常较大且预设的截止电流较小,因此,从较大的电流缓慢下降到较小的电流所需的时间较长,进而造成电子设备的充电时长较长。In the current loop shown in Figure 3, there is a contact resistance of the positive pole of the connector between the charging IC and the positive pole of the connector, the battery protection device has internal resistance, and there is a negative contact of the connector between the negative pole of the connector and the battery protection device Resistors, and fuel gauges have internal resistance, etc. Due to the existence of these impedances, when the battery 123 is in the constant voltage charging phase, as the cell voltage increases, these resistances will produce a voltage drop, so that the charging current will slowly decrease. However, the current in the constant current charging stage is generally large and the preset cut-off current is small. Therefore, it takes a long time to slowly drop from a large current to a small current, which in turn results in a long charging time of the electronic device.

鉴于此,本申请实施例提供一种充电控制方法,该方法可以减少电子设备的充电时长。请参考图4,为本申请实施例提供的一种充电控制方法的一种示例的流程图。下文中,以该方法应用于上述图2所示的电子设备100中为例进行说明。可以理解的是,该方法可以由电子设备100的充电管理模块121执行。该方法的流程包括:In view of this, an embodiment of the present application provides a charging control method, which can reduce the charging time of an electronic device. Please refer to FIG. 4 , which is a flowchart of an example of a charging control method provided in an embodiment of the present application. Hereinafter, it will be described by taking the method applied to the electronic device 100 shown in FIG. 2 as an example. It can be understood that the method can be executed by the charging management module 121 of the electronic device 100 . The flow of the method includes:

S401、充电管理模块121确定电子设备100处于充电状态。S401. The charging management module 121 determines that the electronic device 100 is in a charging state.

充电管理模块121可以通过检测充电接口133当前是否与供电设备200存在电连接,确定电子设备100是否处于充电状态,若是,则确定电子设备100处于充电状态。当然,如果是无线充电场景下,充电管理模块121也可以检测是否通过无线方式接收到电能,若是,则确定电子设备100处于充电状态。The charging management module 121 can determine whether the electronic device 100 is in the charging state by detecting whether the charging interface 133 is currently electrically connected to the power supply device 200 , and if so, determine that the electronic device 100 is in the charging state. Of course, if it is a wireless charging scenario, the charging management module 121 may also detect whether electric energy is received wirelessly, and if so, determine that the electronic device 100 is in a charging state.

作为一种示例,充电接口133在没有与供电设备200连接时,产生第一电信号(例如,低电平信号),当供电设备200与充电接口133连接时,充电接口133可以产生第二电信号(例如,高电平信号)。充电管理模块121实时对充电接口133产生的电信号进行检测,当充电管理模块121检测到该充电接口133产生第二电信号时,则确定电子设备100处于充电状态。As an example, when the charging interface 133 is not connected to the power supply device 200, it generates a first electrical signal (for example, a low level signal), and when the power supply device 200 is connected to the charging interface 133, the charging interface 133 can generate a second electrical signal. signal (for example, a high-level signal). The charging management module 121 detects the electrical signal generated by the charging interface 133 in real time, and when the charging management module 121 detects that the charging interface 133 generates the second electrical signal, it determines that the electronic device 100 is in a charging state.

S402、充电管理模块121确定初始充电阶段为预充电阶段。S402. The charging management module 121 determines that the initial charging phase is a pre-charging phase.

具体来讲,由前述说明可知,电池123的充电过程可以分为3个阶段,分别为预充电阶段、恒流充电阶段以及恒压充电阶段。然而,预充电阶段通常针对电池的初始电压较低的情况,也就是说,在对电池123进行充电时,若电池123的初始电压已经较高,则可以直接进入恒流电阶段,因此,在本申请实施例中,当充电管理模块121确定电子设备100处于充电状态时,充电管理模块121需要根据电池123当前的剩余电量或电池123两端的电压,确定对电池123进行充电时所对应的初始充电阶段。Specifically, it can be seen from the foregoing description that the charging process of the battery 123 can be divided into three stages, which are the pre-charging stage, the constant current charging stage and the constant voltage charging stage. However, the pre-charging stage is usually aimed at the situation that the initial voltage of the battery is low, that is to say, when the battery 123 is charged, if the initial voltage of the battery 123 is already high, it can directly enter the constant current stage. Therefore, in In the embodiment of the present application, when the charging management module 121 determines that the electronic device 100 is in the charging state, the charging management module 121 needs to determine the corresponding initial charging time for the battery 123 according to the current remaining power of the battery 123 or the voltage at both ends of the battery 123. charging phase.

作为一种示例,充电管理模块121可以获取电池123在当前时刻的剩余电量,然后根据电池123的剩余电量确定初始充电阶段。例如,若电池123的剩余电量小于20%(电池处于满充状态时,剩余电量为100%),则充电管理模块121确定初始充电阶段为预充电阶段;若电池123的剩余电量大于20%,则充电管理模块121确定初始充电阶段为恒流充电阶段。As an example, the charging management module 121 may acquire the remaining power of the battery 123 at the current moment, and then determine an initial charging stage according to the remaining power of the battery 123 . For example, if the remaining power of the battery 123 is less than 20% (when the battery is fully charged, the remaining power is 100%), then the charging management module 121 determines that the initial charging stage is the pre-charging stage; if the remaining power of the battery 123 is greater than 20%, Then the charging management module 121 determines that the initial charging phase is a constant current charging phase.

作为另一种示例,充电管理模块121可以在确定电子设备100处于充电状态后,获取电池123两端的电压,然后根据电池123两端的电压确定初始充电阶段。例如,若电池123两端的电压小于3V时,则充电管理模块121确定初始充电阶段为预充电阶段,否则,充电管理模块121确定初始充电阶段为恒流充电阶段。As another example, the charging management module 121 may acquire the voltage across the battery 123 after determining that the electronic device 100 is in the charging state, and then determine the initial charging stage according to the voltage across the battery 123 . For example, if the voltage across the battery 123 is less than 3V, the charging management module 121 determines that the initial charging phase is a pre-charging phase; otherwise, the charging management module 121 determines that the initial charging phase is a constant current charging phase.

需要说明的是,电池123两端的电压可以理解为充电IC的输出电流与地之间的电压,具体请参考图3,在此不再赘述。It should be noted that the voltage at both ends of the battery 123 can be understood as the voltage between the output current of the charging IC and the ground, please refer to FIG. 3 for details, and details will not be repeated here.

为方便说明,在下文中以初始充电阶段为预充电阶段为例。For the convenience of description, the initial charging stage is taken as the pre-charging stage as an example in the following.

S403、充电管理模块121根据与预充电阶段对应的充电参数为电池123充电。S403, the charging management module 121 charges the battery 123 according to the charging parameters corresponding to the pre-charging stage.

在充电管理模块121确定初始充电阶段后,则使用与预充电阶段对应的充电电流(例如,0.5A)为电池123进行充电。预充电阶段与现有技术相同,在此不再赘述。After the charging management module 121 determines the initial charging stage, it charges the battery 123 with a charging current (for example, 0.5A) corresponding to the pre-charging stage. The pre-charging stage is the same as that of the prior art, and will not be repeated here.

S404、充电管理模块121确定电池123两端的电压是否大于或等于第一电压门限,若为是,则进入恒流充电阶段。S404. The charging management module 121 determines whether the voltage across the battery 123 is greater than or equal to the first voltage threshold, and if yes, enters a constant current charging phase.

在本申请实施例中,第一电压门限小于电池123的充电截止电压。充电截止电压可以理解为电池123的额定电压,可以为4.2V或者4.4V等。由于预充电阶段使用的充电电流较小,因此,为了减少将电池123充满所需的总时长,可以设置第一电压门限的取值为一个较小值,例如,可以为3V等,本领域技术人员可以根据实际情况进行设置,在此不作限制。In the embodiment of the present application, the first voltage threshold is smaller than the charging cut-off voltage of the battery 123 . The charging cut-off voltage can be understood as the rated voltage of the battery 123 , which can be 4.2V or 4.4V. Since the charging current used in the pre-charging stage is relatively small, in order to reduce the total time required to fully charge the battery 123, the value of the first voltage threshold can be set to a relatively small value, for example, 3V, etc. The personnel can be set according to the actual situation, and there is no limitation here.

当充电管理模块121对电池123充电时,充电管理模块121会实时监控电池123两端的电压,当充电管理模块121确定电池123两端的电压等于该第一电压门限,则进入恒流充电阶段,控制充电IC的输出电流为预设电流,从而使用该预设电流对电池123充电。该预设电流可以为一个较大的电流值,例如,可以为1A或者2A等,在此不作限制。When the charging management module 121 is charging the battery 123, the charging management module 121 will monitor the voltage at both ends of the battery 123 in real time. When the charging management module 121 determines that the voltage at the two ends of the battery 123 is equal to the first voltage threshold, it will enter the constant current charging stage and control The output current of the charging IC is a preset current, so that the battery 123 is charged with the preset current. The preset current can be a larger current value, for example, 1A or 2A, etc., which is not limited here.

需要说明的是,充电管理模块121也可以采用其他方式获取电池123两端的电压,例如,可以是按照预设的频率获取电池123两端的电压。在这种情况下,若第n次获取电池123两端的电压小于该第一电压门限,且第n+1次获取电池123两端的电压大于该第一电压门限,则充电管理模块121控制充电IC的输出电流为预设电流。为方便说明,在下文中,以充电管理模块121实时监测电池123两端的电压为例。It should be noted that the charging management module 121 may also acquire the voltage across the battery 123 in other ways, for example, may acquire the voltage across the battery 123 at a preset frequency. In this case, if the voltage across the battery 123 obtained for the nth time is less than the first voltage threshold, and the voltage obtained for the n+1th time across the battery 123 is greater than the first voltage threshold, the charging management module 121 controls the charging IC The output current is the preset current. For the convenience of description, in the following, the charge management module 121 monitors the voltage across the battery 123 in real time as an example.

S405、充电管理模块121确定电池123两端的电压是否大于或等于第二电压门限,若为是,则进入第一恒压充电阶段。S405. The charging management module 121 determines whether the voltage across the battery 123 is greater than or equal to the second voltage threshold, and if yes, enters the first constant voltage charging stage.

在本申请实施例中,第二电压门限高于电池123的充电截止电压。这样,相较于现有技术中的充电方式(即,通过判断电池两端的电压是否大于或等于充电截止电压,来控制充电过程进入恒压充电阶段)而言,相当于延长了电池123处于恒流充电阶段的时长,进而可以减少充电时长。In the embodiment of the present application, the second voltage threshold is higher than the charging cut-off voltage of the battery 123 . In this way, compared with the charging method in the prior art (that is, by judging whether the voltage at both ends of the battery is greater than or equal to the charging cut-off voltage, the charging process is controlled to enter the constant voltage charging stage), it is equivalent to prolonging the battery 123 in the constant voltage charging stage. The length of the flow charging phase can reduce the charging time.

下面对第二电压门限进行说明。The second voltage threshold will be described below.

第二电压门限有两种情况:There are two situations for the second voltage threshold:

第一种情况,若充电管理模块121中的充电IC具有补偿功能,则第二电压门限可以设置为充电截止电压与补偿电压之和,该补偿电压为恒流充电阶段的预设电流与补偿电阻的阻抗值的乘积。该补偿电阻可以设置在如图3所示的电流回路中的连接器和电池之间,该补偿电阻的阻抗值可以根据使用需求进行设置。In the first case, if the charging IC in the charging management module 121 has a compensation function, the second voltage threshold can be set to the sum of the charging cut-off voltage and the compensation voltage, which is the preset current and compensation resistance in the constant current charging phase The product of the impedance values. The compensation resistor can be set between the connector and the battery in the current loop as shown in FIG. 3 , and the impedance value of the compensation resistor can be set according to usage requirements.

第二种情况,若充电管理模块122中的充电IC不具备补偿功能,则第二电压门限无法设置成第一种情况中所述的取值,则第二电压门限可以设置为充电截止电压与预设的单位电压的和值,该预设的单位电压可以理解为充电IC设置停充电压的步进值,标记为△V,例如,△V为0.02V或者0.03V或者0.032V等。由于不同的类型的电子设备100中电池123的满充电压可能不相同,因此,为了能够对具有不同满充电压的电池进行充电,充电管理模块122可以预先对充电IC设置该步进值,从而可以根据不同的电池的满充电压,适应性地调整充电截止电压,可以提高充电IC的适用范围。在本申请实施例中,不对步进值的具体取值进行限制。In the second case, if the charging IC in the charging management module 122 does not have a compensation function, the second voltage threshold cannot be set to the value described in the first case, and the second voltage threshold can be set to the value equal to the charging cut-off voltage and The sum of the preset unit voltage, the preset unit voltage can be understood as the step value of the charging IC setting stop charging voltage, marked as △V, for example, △V is 0.02V or 0.03V or 0.032V, etc. Since the full charge voltage of the battery 123 in different types of electronic devices 100 may be different, in order to be able to charge batteries with different full charge voltages, the charging management module 122 can pre-set the step value for the charging IC, so that According to the full charge voltage of different batteries, the charging cut-off voltage can be adjusted adaptively, which can improve the application range of the charging IC. In the embodiment of the present application, the specific value of the step value is not limited.

在这种方式下,即使充电IC没有补偿功能,也可以延长电池123处于恒流充电阶段的时长,即可以实现与补偿功能相似的效果。In this manner, even if the charging IC has no compensation function, the duration of the battery 123 in the constant current charging phase can be extended, that is, an effect similar to that of the compensation function can be achieved.

在本申请实施例中,以充电IC为不具备补偿功能的情况为例。In the embodiment of the present application, the case where the charging IC does not have a compensation function is taken as an example.

当充电管理模块121确定电池123两端的电压等于该第二电压门限后,则控制充电IC的输出电压保持为该第二电压门限的取值,使得电池123的充电电压不变,即进入第一恒压充电阶段。需要说明的是,该第二电压门限也可以理解为第一恒压充电阶段的充电电压。When the charging management module 121 determines that the voltage at both ends of the battery 123 is equal to the second voltage threshold, the output voltage of the charging IC is controlled to remain at the value of the second voltage threshold, so that the charging voltage of the battery 123 remains unchanged, that is, enters the first voltage threshold. Constant voltage charging stage. It should be noted that the second voltage threshold can also be understood as the charging voltage in the first constant voltage charging stage.

S406、充电管理模块121确定电池123的充电电流是否小于或等于预设的电流门限值,若为是,则进入第二恒压充电阶段。S406. The charging management module 121 determines whether the charging current of the battery 123 is less than or equal to a preset current threshold value, and if yes, enters a second constant voltage charging stage.

在本申请实施例中,该预设的电流门限值大于电池123的充电截止电流。该预设的电流门限值可以为充电截止电流与预设的电流的和值,其中,该预设的电流可以为预设的单位电压与充电IC的输出电流到电芯之间的阻抗的比值。具体来讲,假设充电IC的输出电流到电芯之间的阻抗的实际测试值为R,例如,R的取值可以为0.055欧姆·米(Ω·m或ohm),从而得到预设的电流为△V/R=0.032/0.055=0.581A,其中0.032为预设的单位电压,则该预设的电流门限值为充电截止电流与0.581A的和值。In the embodiment of the present application, the preset current threshold is greater than the charging cut-off current of the battery 123 . The preset current threshold value may be the sum of the charging cut-off current and the preset current, wherein the preset current may be the preset unit voltage and the impedance between the output current of the charging IC and the battery core. ratio. Specifically, assuming that the actual test value of the impedance between the output current of the charging IC and the battery core is R, for example, the value of R can be 0.055 ohm m (Ω m or ohm), so as to obtain the preset current ΔV/R=0.032/0.055=0.581A, where 0.032 is the preset unit voltage, then the preset current threshold value is the sum of the charging cut-off current and 0.581A.

需要说明的是,该预设的电流门限值也可以理解为与第一恒压充电阶段对应的充电截止电流。It should be noted that the preset current threshold value can also be understood as the charging cut-off current corresponding to the first constant voltage charging stage.

由此可知,当电池123处于第一恒压充电阶段时,电池123的充电电流是高于预设的电流门限值的。但是,即使电池123的充电电流高于预设的电流门限值,由于充电IC的输出电流与电芯之间存在阻抗,电池123也不会存在过充问题。例如,假设电池123的充电截止电压为4.4V,预设的单位电压为0.032V,充电IC的输出电流与电芯之间的阻抗为0.055ohm,则根据欧姆定律可知,电芯的电压小于第一恒压充电阶段对应的充电截止电压与充电IC的输出电流与电芯之间的电阻两端的电压的差值,例如,第一恒压充电阶段对应的充电截止电压为4.432V,充电IC的输出电流与电芯之间的电阻两端的电压为(0.581A*0.055),则电芯的电压小于[4.432V-(0.581*0.055)V],即电芯的电压始终是小于或等于4.4V的,可见,当电池123处于第一恒压充电阶段时,即使充电管理模块121出现故障,电池123也不会存在过充风险。It can be seen that, when the battery 123 is in the first constant voltage charging stage, the charging current of the battery 123 is higher than the preset current threshold value. However, even if the charging current of the battery 123 is higher than the preset current threshold value, due to the impedance between the output current of the charging IC and the battery cell, the battery 123 will not be overcharged. For example, assuming that the charging cut-off voltage of the battery 123 is 4.4V, the preset unit voltage is 0.032V, and the impedance between the output current of the charging IC and the battery cell is 0.055ohm, then according to Ohm's law, the voltage of the battery cell is less than the first The difference between the charging cut-off voltage corresponding to a constant voltage charging stage and the voltage across the resistor between the output current of the charging IC and the battery cell, for example, the charging cut-off voltage corresponding to the first constant voltage charging stage is 4.432V, and the charging IC’s The voltage across the resistor between the output current and the cell is (0.581A*0.055), then the voltage of the cell is less than [4.432V-(0.581*0.055)V], that is, the voltage of the cell is always less than or equal to 4.4V It can be seen that when the battery 123 is in the first constant-voltage charging stage, even if the charging management module 121 fails, the battery 123 will not have the risk of overcharging.

在电池123处于第一恒压充电阶段时,充电管理模块121会实时监测电池123的充电电流(或者可以理解为充电IC的输出电流)。当充电管理模块121确定充电电流小于或等于该预设的电流门限值时,则控制充电IC的输出电压为电池123的充电截止电压,并保持充电电压不变,即使得电池123进入第二恒压充电阶段。在本申请实施例中,第二恒压充电阶段的充电电压为充电截止电压。例如,为4.2V或者4.4V。When the battery 123 is in the first constant voltage charging stage, the charging management module 121 will monitor the charging current of the battery 123 in real time (or it can be understood as the output current of the charging IC). When the charging management module 121 determines that the charging current is less than or equal to the preset current threshold value, the output voltage of the charging IC is controlled to be the charging cut-off voltage of the battery 123, and the charging voltage is kept unchanged, that is, the battery 123 enters the second Constant voltage charging stage. In the embodiment of the present application, the charging voltage in the second constant voltage charging stage is the charging cut-off voltage. For example, 4.2V or 4.4V.

当电池处于第二恒压充电阶段时,由于第二恒压充电阶段的充电电压已经设置为电池123的充电截止电压,因此,电池123的电压也不会超过该充电截止电压,从而也不会存在过充风险。When the battery is in the second constant-voltage charging stage, since the charging voltage in the second constant-voltage charging stage has been set as the charging cut-off voltage of the battery 123, the voltage of the battery 123 will not exceed the charging cut-off voltage. There is a risk of overcharging.

S407、充电管理模块121确定电池123的充电电流是否小于充电截止电流,若为是,则停止为电池123充电。S407 , the charging management module 121 determines whether the charging current of the battery 123 is less than the charging cut-off current, and if yes, stops charging the battery 123 .

在上述技术方案中,通过设置两个不同的恒压充电阶段,且,在第一个恒压充电阶段的充电电压高于电池的充电截止电压,从而可以延长电池处于恒流充电阶段的时长,可以减少充电时长。且,由于在第一个恒压充电阶段的充电截止电流也大于电池的充电截止电流,从而可以避免电池存在过充风险。In the above technical solution, by setting two different constant-voltage charging stages, and the charging voltage in the first constant-voltage charging stage is higher than the charging cut-off voltage of the battery, the duration of the battery in the constant-current charging stage can be extended, Can reduce charging time. Moreover, since the charging cut-off current in the first constant-voltage charging stage is also greater than the charging cut-off current of the battery, the risk of overcharging of the battery can be avoided.

上述实施例中,在对电池123充电时,设置了一个充电截止电压较高以及充电截止电流较大的新的恒压充电阶段,在实际使用中,也可以设置两个或者更多个与该新的恒压充电阶段相似的恒压充电阶段,以尽量延长电池处于恒流充电阶段的时长,在此不对该新的恒压充电阶段的数量进行限制。In the above-mentioned embodiment, when charging the battery 123, a new constant voltage charging stage with a higher charge cut-off voltage and a larger charge cut-off current is set. The new constant-voltage charging stage is similar to the constant-voltage charging stage, so as to prolong the duration of the battery in the constant-current charging stage as far as possible, and the number of the new constant-voltage charging stage is not limited here.

在图4所示的实施例中,充电管理模块121是通过充电IC的充电电流来确定电池是否充满,从而决定是否需要停止对电池充电。在另一种实施例中,也可以通过确定电池的容量来确定是否需要停止对电池充电,例如,可以设置电池的报满容量,当充电管理模块121确定电池的电量达到该报满容量时,则确定停止对电池充电。可见,电池的报满容量也是影响充电时长的因素。为减少电池的充电时长,在实际使用中,可以采用提前报满机制。具体来讲,充电管理模块121可以通过电量计获取电池123上一次的放电量,将电池123上一次的放电量的98%或者97%作为下次充电的报满容量,这个报满容量称为“自学习容量”。下次充电时,当充电管理模块121通过电量计确定电池123的充电容量达到报满容量时,实施报满,即可以通过处理器控制电子设备100的用户界面显示电量为100%。In the embodiment shown in FIG. 4 , the charging management module 121 determines whether the battery is fully charged through the charging current of the charging IC, so as to decide whether to stop charging the battery. In another embodiment, it is also possible to determine whether to stop charging the battery by determining the capacity of the battery. For example, the full capacity of the battery can be set. When the charging management module 121 determines that the battery capacity reaches the full capacity, Then it is determined to stop charging the battery. It can be seen that the full capacity of the battery is also a factor that affects the charging time. In order to reduce the charging time of the battery, in actual use, a mechanism for reporting full in advance can be used. Specifically, the charging management module 121 can obtain the last discharge capacity of the battery 123 through the fuel gauge, and use 98% or 97% of the last discharge capacity of the battery 123 as the reported full capacity for the next charge. This reported full capacity is called "Self-learning capacity". When charging next time, when the charging management module 121 determines that the charging capacity of the battery 123 reaches the full capacity through the fuel gauge, the full capacity will be implemented, that is, the user interface of the electronic device 100 can be controlled by the processor to display the power as 100%.

由于电池的容量个体有差异,不同电池的放电容量也不同,从而使得不同的电池在下次充电时的报满容量各不相同,导致不同电子设备的充电时长存在差异,例如,可能存在10分钟左右的差异。因此,确定电池合适的报满容量,也可以实现减少充电时长的技术效果。下面,请参考图5,介绍本申请实施例提供的充电控制方法的另一种示例的流程图,在实施例中,通过提高电池报满的精准度的方式减少充电时长。Due to the individual differences in the capacity of batteries, the discharge capacity of different batteries is also different, so that the reported full capacity of different batteries at the next charge is different, resulting in differences in the charging time of different electronic devices, for example, there may be about 10 minutes difference. Therefore, determining the appropriate full capacity of the battery can also achieve the technical effect of reducing the charging time. Next, please refer to FIG. 5 , which introduces a flow chart of another example of the charging control method provided by the embodiment of the present application. In the embodiment, the charging time is reduced by improving the accuracy of battery full report.

S501、充电管理模块121确定电子设备100处于充电状态。S501. The charging management module 121 determines that the electronic device 100 is in a charging state.

步骤S501与步骤S401相似,在此不再赘述。Step S501 is similar to step S401 and will not be repeated here.

S502、充电管理模块121确定电池123的自学习容量。S502 , the charging management module 121 determines the self-learning capacity of the battery 123 .

具体来讲,电量计可以统计电池123上一次的放电量,当充电管理模块121确定电子设备处于充电状态后,可以从电量计中获取该放电量。然后根据从电量计中获取的放电量,确定电池的自学习容量。作为一种示例,可以将该放电量的98%或者97%作为电池123的自学习容量。例如,充电管理模块121确定电池123的自学习容量为3050毫安时(mAh)或者2800mAh等。Specifically, the fuel gauge can count the discharge capacity of the battery 123 last time, and when the charging management module 121 determines that the electronic device is in a charging state, it can obtain the discharge capacity from the fuel gauge. Then determine the self-learning capacity of the battery according to the discharge capacity obtained from the fuel gauge. As an example, 98% or 97% of the discharge capacity can be used as the self-learning capacity of the battery 123 . For example, the charging management module 121 determines that the self-learning capacity of the battery 123 is 3050 milliampere hours (mAh) or 2800 mAh.

S503、充电管理模块121将确定自学习容量与电池123的预设容量进行比较,确定自学习容量是否大于电池123的预设容量。若为是,则执行步骤S504,若否,则执行步骤S505。S503 , the charging management module 121 compares the determined self-learning capacity with the preset capacity of the battery 123 , and determines whether the self-learning capacity is greater than the preset capacity of the battery 123 . If yes, execute step S504, and if no, execute step S505.

作为一种示例,电池123的预设容量可以为电子设备100出厂时由技术人员设置的电池123的容量,例如,可以为3000mAh。该预设容量可以是预存在充电管理模块的内存中的。当然,充电管理模块121也可以采用方式获取该预设容量,例如,可以从电子设备100中的存储器110中获取,在本申请实施例中不对此进行限制。As an example, the preset capacity of the battery 123 may be the capacity of the battery 123 set by a technician when the electronic device 100 leaves the factory, for example, it may be 3000mAh. The preset capacity may be pre-stored in the memory of the charging management module. Of course, the charging management module 121 may also acquire the preset capacity in a manner, for example, from the memory 110 in the electronic device 100, which is not limited in this embodiment of the present application.

S504、充电管理模块121确定将电池123的预设容量与预设百分比的乘积作为电池123的报满容量。S504 , the charging management module 121 determines that the product of the preset capacity of the battery 123 and the preset percentage is taken as the reported full capacity of the battery 123 .

在本申请实施例中,该预设百分比可以为98%或者97%,或者也可以是其他数值,在此不作限制。作为一种示例,若充电管理模块121确定电池123的自学习容量为3050mAh,以及,电池123的预设容量为3000mAh,由于电池123的自学习容量大于电池123的预设容量,从而充电管理模块121确定将预设容量的98%作为电池123的报满容量。In the embodiment of the present application, the preset percentage may be 98% or 97%, or other values, which are not limited herein. As an example, if the charging management module 121 determines that the self-learning capacity of the battery 123 is 3050mAh, and the preset capacity of the battery 123 is 3000mAh, since the self-learning capacity of the battery 123 is greater than the preset capacity of the battery 123, the charging management module 121 determines to use 98% of the preset capacity as the reported full capacity of the battery 123 .

S505、充电管理模块121确定将确定的电池123的自学习容量与预设百分比的乘积作为电池123的报满容量。S505 , the charging management module 121 determines that the product of the determined self-learning capacity of the battery 123 and a preset percentage is taken as the reported full capacity of the battery 123 .

该预设百分比与步骤S504中的预设百分比相似,在此不再赘述。作为一种示例,若充电管理模块121确定电池123的自学习容量为2800mAh,以及,电池123的预设容量为3000mAh,由于电池123的自学习容量小于电池123的预设容量,从而充电管理模块121确定将自学习容量的98%作为电池123的报满容量。The preset percentage is similar to the preset percentage in step S504 and will not be repeated here. As an example, if the charging management module 121 determines that the self-learning capacity of the battery 123 is 2800mAh, and the preset capacity of the battery 123 is 3000mAh, since the self-learning capacity of the battery 123 is smaller than the preset capacity of the battery 123, the charging management module 121 determines that 98% of the self-learning capacity is taken as the reported full capacity of the battery 123 .

需要说明的是,本申请实施例中,不对步骤S501与步骤S502~步骤S505的执行顺序进行限制。例如,步骤S501可以在步骤S502之前执行,或者,步骤S502~步骤S505可以在步骤S501之前执行,或者,步骤S501与步骤S502~步骤S505可以同时执行。在图5中,以先执行步骤S501,再执行步骤S502~步骤S505为例。It should be noted that, in the embodiment of the present application, the execution order of step S501 and step S502 to step S505 is not limited. For example, step S501 may be performed before step S502, or step S502-step S505 may be performed before step S501, or step S501 and step S502-step S505 may be performed simultaneously. In FIG. 5 , it takes step S501 to be executed first, and then steps S502 to S505 to be executed as an example.

S506、充电管理模块121确定初始充电阶段为预充电阶段。S506. The charging management module 121 determines that the initial charging phase is a pre-charging phase.

S507、充电管理模块121根据与预充电阶段对应的充电参数为电池123充电。S507, the charging management module 121 charges the battery 123 according to the charging parameters corresponding to the pre-charging stage.

S508、充电管理模块121确定电池123两端的电压大于或等于第一电压门限,则进入恒流充电阶段。S508. The charging management module 121 determines that the voltage across the battery 123 is greater than or equal to the first voltage threshold, and enters a constant current charging phase.

S509、充电管理模块121确定电池123两端的电压大于或等于第二电压门限,则进入第一恒压充电阶段。S509. The charging management module 121 determines that the voltage across the battery 123 is greater than or equal to the second voltage threshold, and enters the first constant voltage charging stage.

S510、充电管理模块121确定电池123的充电电流小于或等于预设的电流门限值,则进入第二恒压充电阶段。S510, the charging management module 121 determines that the charging current of the battery 123 is less than or equal to a preset current threshold value, and then enters a second constant voltage charging stage.

步骤S506~步骤S510与步骤S402~步骤S406相似,在此不再赘述。Steps S506 to S510 are similar to steps S402 to S406 and will not be repeated here.

S511、充电管理模块121确定电池123的充电电量达到该报满容量时,控制电子设备100的显示屏上显示电量为100%。或者,还可以通过控制LED灯闪烁或者改变LED的颜色提示电量为100%,在此不作限制。S511. When the charging management module 121 determines that the charging power of the battery 123 reaches the reported full capacity, control the display screen of the electronic device 100 to display that the power is 100%. Alternatively, it is also possible to indicate that the power is 100% by controlling the blinking of the LED light or changing the color of the LED, which is not limited here.

S512、充电管理模块121确定电池123的充电电流小于充电截止电流,则停止为电池123充电。S512 , the charging management module 121 determines that the charging current of the battery 123 is less than the charging cut-off current, and stops charging the battery 123 .

在上述技术方案中,在图4所示的实施例的基础上,通过将自学习容量与电池的预设容量进行比较,从而可以确定电池的最佳的报满容量,可以提高电池报满的精准度,进而可以缩短对不同电子设备的电池充电的时间差异。In the above technical solution, on the basis of the embodiment shown in Fig. 4, by comparing the self-learning capacity with the preset capacity of the battery, the optimal full capacity of the battery can be determined, and the rate of battery full can be improved. Accuracy, which in turn can shorten the time difference in charging the batteries of different electronic devices.

需要说明的是,充电管理模块121所执行的步骤可以以指令或者程序的方式烧写在充电管理模块121中,这样,当充电管理模块121处于运行状态时,则会根据该指令或者程序执行本申请实施例中的方法。It should be noted that the steps performed by the charging management module 121 can be written in the charging management module 121 in the form of instructions or programs, so that when the charging management module 121 is in the running state, it will execute the steps according to the instructions or programs. Apply the method in the examples.

上述本申请提供的实施例中,从电子设备作为执行主体的角度对本申请实施例提供的方法进行了介绍。为了实现上述本申请实施例提供的方法中的各功能,电子设备可以包括硬件结构和/或软件模块,以硬件结构、软件模块、或硬件结构加软件模块的形式来实现上述各功能。上述各功能中的某个功能以硬件结构、软件模块、还是硬件结构加软件模块的方式来执行,取决于技术方案的特定应用和设计约束条件。In the above-mentioned embodiments provided in the present application, the method provided in the embodiments of the present application is introduced from the perspective of an electronic device serving as an execution subject. In order to realize the various functions in the method provided by the above embodiments of the present application, the electronic device may include a hardware structure and/or a software module, and realize the above-mentioned functions in the form of a hardware structure, a software module, or a hardware structure plus a software module. Whether one of the above-mentioned functions is executed in the form of a hardware structure, a software module, or a hardware structure plus a software module depends on the specific application and design constraints of the technical solution.

下面结合附图介绍本申请实施例提供的装置,以实现本申请上述方法实施例。The following describes the devices provided by the embodiments of the present application with reference to the accompanying drawings, so as to implement the above-mentioned method embodiments of the present application.

基于与方法实施例的同一发明构思,本申请实施例提供一种充电控制装置600,具体用于实现图4和图5所述的实施例中充电管理模块121执行的方法,该充电控制装置600的结构如图6所示,包括检测模块601、控制模块602,其中,当充电控制装置600执行如图4所示的方法时,检测模块601可以用于获取充电过程中电池123的充电电流和/或电池123两端的充电电压,和/或用于支持本申请实施例所描述的技术的其它过程。控制模块602可以用于执行图4所示的实施例中的步骤S401~步骤S407,和/或用于支持本申请实施例所描述的技术的其它过程。其中,上述方法实施例涉及的各步骤的所有相关内容均可以援引到对应功能模块的功能描述,在此不再赘述。Based on the same inventive concept as the method embodiment, the embodiment of the present application provides a charging control device 600, which is specifically used to implement the method executed by the charging management module 121 in the embodiment described in Fig. 4 and Fig. 5 , the charging control device 600 The structure shown in FIG. 6 includes a detection module 601 and a control module 602. When the charging control device 600 executes the method shown in FIG. 4, the detection module 601 can be used to obtain the charging current and /or the charging voltage across the battery 123, and/or other processes used to support the techniques described in the embodiments of this application. The control module 602 may be used to execute steps S401 to S407 in the embodiment shown in FIG. 4 , and/or to support other processes of the technologies described in the embodiments of this application. Wherein, all relevant content of each step involved in the above-mentioned method embodiment can be referred to the function description of the corresponding function module, and will not be repeated here.

采用硬件实现时,该充电控制装置的硬件实现还可以参考图7及其相关描述。When implemented by hardware, the hardware implementation of the charging control device can also refer to FIG. 7 and related descriptions.

如图7所示,为充电控制装置的另一种示例的结构图,该充电控制装置700可以包括:一个或多个处理器701,存储器702,一个或多个计算机程序703;上述各器件可以通过一个或多个通信总线704连接。其中,所述一个或多个计算机程序703被存储在上述存储器702中并被配置为被该一个或多个处理器701执行,该一个或多个计算机程序703包括指令,该指令被一个或多个处理器701执行时,可以实现前述的图4或图5所示的方法实施例中记载的全部或部分步骤。As shown in FIG. 7 , it is a structural diagram of another example of a charging control device. The charging control device 700 may include: one or more processors 701, memory 702, and one or more computer programs 703; The connection is via one or more communication buses 704 . Wherein, the one or more computer programs 703 are stored in the memory 702 and configured to be executed by the one or more processors 701, the one or more computer programs 703 include instructions, and the instructions are executed by one or more When executed by each processor 701, all or part of the steps described in the foregoing method embodiment shown in FIG. 4 or FIG. 5 may be implemented.

其中,处理器701可以是中央处理器(central processing unit,CPU),或特定应用集成电路(application-specific integrated circuit,ASIC),可以是一个或多个用于控制程序执行的集成电路,可以是基带芯片,等等。存储器702的数量可以是一个或多个,存储器702可以是只读存储器(read-only memory,ROM)、随机存取存储器(random accessmemory,RAM)或磁盘存储器,等等。Wherein, the processor 701 may be a central processing unit (central processing unit, CPU), or a specific application integrated circuit (application-specific integrated circuit, ASIC), may be one or more integrated circuits for controlling program execution, may be Baseband chips, and so on. The number of the memory 702 may be one or more, and the memory 702 may be a read-only memory (read-only memory, ROM), a random access memory (random access memory, RAM), or a disk memory, and so on.

图7所示的电子设备可以是手机、ipad、笔记本电脑、智能电视、穿戴式设备(例如智能手表、智能头盔或智能手环等)等。当图7所示的电子设备是手机时,其结构可以参见图2,比如,存储器702是图2中的内部存储器110。The electronic device shown in FIG. 7 may be a mobile phone, an ipad, a notebook computer, a smart TV, a wearable device (such as a smart watch, a smart helmet or a smart bracelet, etc.) and the like. When the electronic device shown in FIG. 7 is a mobile phone, its structure can be referred to in FIG. 2 , for example, the memory 702 is the internal memory 110 in FIG. 2 .

本申请实施例还提供一种计算机存储介质,所述计算机可读存储介质包括计算机程序,当计算机程序在电子设备上运行时,使得所述电子设备执行如前图4或图5所示的方法实施例中记载的充电管理模块121所执行的全部步骤。An embodiment of the present application also provides a computer storage medium, the computer-readable storage medium includes a computer program, and when the computer program runs on the electronic device, the electronic device executes the method shown in Figure 4 or Figure 5 All the steps performed by the charging management module 121 described in the embodiments.

本申请实施例还提供一种计算机程序产品,当所述计算机程序产品在电子设备上运行时,使得所述电子设备执行如前图4或图5所示的方法实施例中记载的充电管理模块121所执行的全部步骤。The embodiment of the present application also provides a computer program product, which, when the computer program product runs on the electronic device, causes the electronic device to execute the charging management module described in the method embodiment shown in Figure 4 or Figure 5 All the steps performed by 121.

本申请实施例还提供一种芯片系统,该芯片系统包括处理器,用于支持充电控制装置实现图4或图5所示的实施例提供所述的方法,例如生成或处理图4或图5所示的实施例提供的方法中所涉及的数据和/或信息。该芯片系统还包括存储器,所述存储器用于保存充电控制装置必要的程序指令和数据,该芯片系统中的处理器可以调用该芯片系统中的存储器存储的程序指令和数据,以使该芯片系统可以实现上述充电管理模块121能够实现功能。该芯片系统,可以由芯片构成,也可以包含芯片和其它分立器件。The embodiment of the present application also provides a chip system, the chip system includes a processor, used to support the charging control device to implement the method shown in the embodiment shown in Figure 4 or Figure 5, such as generating or processing Figure 4 or Figure 5 The illustrated embodiments provide data and/or information involved in the methods. The chip system also includes a memory, the memory is used to save the necessary program instructions and data of the charging control device, and the processor in the chip system can call the program instructions and data stored in the memory in the chip system to make the chip system The functions that can be realized by the charging management module 121 described above can be realized. The system-on-a-chip may consist of chips, or may include chips and other discrete devices.

在上述实施例中,可以全部或部分地通过软件、硬件、固件或者其任意组合来实现。当使用软件实现时,可以全部或部分地以计算机程序产品的形式实现。所述计算机程序产品包括一个或多个计算机指令。在计算机上加载和执行所述计算机程序指令时,全部或部分地产生按照本申请实施例所述的流程或功能。所述计算机可以是通用计算机、专用计算机、计算机网络、或者其他可编程装置。所述计算机指令可以存储在计算机可读存储介质中,或者从一个计算机可读存储介质向另一个计算机可读存储介质传输,例如,所述计算机指令可以从一个网站站点、计算机、服务器或数据中心通过有线(例如同轴电缆、光纤、数字用户线)或无线(例如红外、无线、微波等)方式向另一个网站站点、计算机、服务器或数据中心进行传输。所述计算机可读存储介质可以是计算机能够存取的任何可用介质或者是包含一个或多个可用介质集成的服务器、数据中心等数据存储设备。所述可用介质可以是磁性介质,(例如,软盘、硬盘、磁带)、光介质(例如DVD)、或者半导体介质(例如固态硬盘)等。In the above embodiments, all or part of them may be implemented by software, hardware, firmware or any combination thereof. When implemented using software, it may be implemented in whole or in part in the form of a computer program product. The computer program product includes one or more computer instructions. When the computer program instructions are loaded and executed on the computer, the processes or functions according to the embodiments of the present application will be generated in whole or in part. The computer can be a general purpose computer, a special purpose computer, a computer network, or other programmable devices. The computer instructions may be stored in or transmitted from one computer-readable storage medium to another computer-readable storage medium, for example, the computer instructions may be transmitted from a website, computer, server or data center Transmission to another website site, computer, server, or data center by wired (eg, coaxial cable, optical fiber, DSL) or wireless (eg, infrared, wireless, microwave, etc.) means. The computer-readable storage medium may be any available medium that can be accessed by a computer, or a data storage device such as a server or a data center integrated with one or more available media. The available media may be magnetic media (eg, floppy disk, hard disk, magnetic tape), optical media (eg, DVD), or semiconductor media (eg, solid state hard disk), etc.

为了解释的目的,前面的描述是通过参考具体实施例来进行描述的。然而,上面的示例性的讨论并非意图是详尽的,也并非意图要将本申请限制到所公开的精确形式。根据以上教导内容,很多修改形式和变型形式都是可能的。选择和描述实施例是为了充分阐明本申请的原理及其实际应用,以由此使得本领域的其他技术人员能够充分利用具有适合于所构想的特定用途的各种修改的本申请以及各种实施例。The foregoing description, for purposes of explanation, has been described with reference to specific embodiments. However, the exemplary discussions above are not intended to be exhaustive or to limit the application to the precise forms disclosed. Many modifications and variations are possible in light of the above teaching. The embodiment was chosen and described in order to fully explain the principles of the application and its practical application, to thereby enable others skilled in the art to fully utilize the application and various implementations with various modifications as are suited to the particular use contemplated. example.

Claims (6)

1. A charge control method applied to an electronic device including a battery, comprising:
detecting that the electronic equipment is currently in a state of being charged by power supply equipment;
when the voltage at the two ends of the battery is detected to be larger than or equal to a first voltage threshold, charging the battery by using a current with a preset size; the first voltage threshold is less than a charge cutoff voltage of the battery;
when the voltage at the two ends of the battery is detected to be more than or equal to a second voltage threshold, controlling the voltage value for charging the battery to be kept at the value of the second voltage threshold; the second voltage threshold is higher than a charge cutoff voltage of the battery; the second voltage threshold is the sum of the charging cut-off voltage and a preset unit voltage;
When detecting that the charging current of the battery is smaller than or equal to a preset current threshold value, controlling the voltage value for charging the battery to be kept at the value of the charging cut-off voltage of the battery; the preset current threshold value is larger than the charging cut-off current of the battery; the preset current threshold value is a ratio between the preset unit voltage and charging impedance, and the charging impedance is an impedance between an output end of the power supply equipment and ground;
determining the full charge of the battery according to the discharge amount of the battery before the battery is charged by the power supply equipment; when the current electric quantity of the battery is larger than or equal to the full charge, controlling the electronic equipment to display that the battery is in a full charge state; stopping charging the battery when detecting that the charging current of the battery is less than or equal to the charging cut-off current of the battery;
wherein, according to the discharge amount of the battery before being charged by the power supply equipment, determining the full charge of the battery comprises: comparing the magnitude relation between the self-learning capacitance and the preset capacitance of the battery; the self-learning capacitance is the product of the discharge amount of the battery before being charged by the power supply equipment and a preset percentage; and if the self-learning electric capacity is larger than or equal to the preset electric capacity of the battery, determining that the full charge of the battery is the product of the preset electric capacity and the preset percentage.
2. The method of claim 1, wherein determining the full charge of the battery based on the discharge of the battery prior to charging by the power supply device, further comprises:
and if the self-learning electric capacity is smaller than the preset electric capacity of the battery, determining that the full charge of the battery is the product of the self-learning electric capacity and the preset percentage.
3. A charging control device applied to an electronic apparatus including a battery, comprising a detection module and a control module, wherein:
the detection module is used for detecting that the electronic equipment is in a state of being charged by power supply equipment currently, and detecting the voltage and charging current at two ends of the battery when the electronic equipment is charged by the power supply equipment;
the control module is used for charging the battery by using a current with a preset size when the voltage at the two ends of the battery is larger than or equal to a first voltage threshold; the first voltage threshold is less than a charge cutoff voltage of the battery; when the voltage at the two ends of the battery is larger than or equal to a second voltage threshold, controlling the voltage value for charging the battery to be kept at the value of the second voltage threshold; the second voltage threshold is higher than a charge cutoff voltage of the battery; and when the charging current of the battery is smaller than or equal to a preset current threshold value, controlling the voltage value for charging the battery to be kept at the value of the charging cut-off voltage of the battery; the preset current threshold value is larger than the charging cut-off current of the battery; the second voltage threshold is the sum of the charging cut-off voltage and a preset unit voltage;
The control module is further configured to: determining the full charge of the battery according to the discharge amount of the battery before the battery is charged by the power supply equipment; when the current electric quantity of the battery is larger than or equal to the full charge, controlling the electronic equipment to display that the battery is in a full charge state; stopping charging the battery when the detection module detects that the charging current of the battery is less than or equal to the charging cut-off current of the battery; the preset current threshold value is a ratio between the preset unit voltage and charging impedance, and the charging impedance is an impedance between an output end of the power supply equipment and ground;
the control module determines the full charge of the battery according to the discharge amount of the battery before being charged by the power supply equipment, and is specifically used for: comparing the magnitude relation between the self-learning capacitance and the preset capacitance of the battery; the self-learning capacitance is the product of the discharge amount of the battery before being charged by the power supply equipment and a preset percentage; and if the self-learning electric capacity is larger than or equal to the preset electric capacity of the battery, determining that the full charge of the battery is the product of the preset electric capacity and the preset percentage.
4. The apparatus of claim 3, wherein the control module is further configured to determine a full charge of the battery based on an amount of discharge of the battery prior to charging by the power supply device, and further configured to:
and if the self-learning electric capacity is smaller than the preset electric capacity of the battery, determining that the full charge of the battery is the product of the self-learning electric capacity and the preset percentage.
5. An electronic device comprising at least one processor and at least one memory, wherein;
the memory is used for storing one or more computer programs;
the one or more computer programs, when executed by the at least one processor, enable the electronic device to implement the method of any one of claims 1-2.
6. A computer readable storage medium, characterized in that the computer readable storage medium comprises a computer program which, when run on an electronic device, causes the electronic device to perform the method according to any of claims 1-2.
CN201910453549.9A 2019-05-28 2019-05-28 A charging control method, charging control device and electronic equipment Active CN112018831B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201910453549.9A CN112018831B (en) 2019-05-28 2019-05-28 A charging control method, charging control device and electronic equipment

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201910453549.9A CN112018831B (en) 2019-05-28 2019-05-28 A charging control method, charging control device and electronic equipment

Publications (2)

Publication Number Publication Date
CN112018831A CN112018831A (en) 2020-12-01
CN112018831B true CN112018831B (en) 2023-06-16

Family

ID=73501724

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201910453549.9A Active CN112018831B (en) 2019-05-28 2019-05-28 A charging control method, charging control device and electronic equipment

Country Status (1)

Country Link
CN (1) CN112018831B (en)

Families Citing this family (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113162196B (en) * 2021-05-12 2024-07-02 西安易朴通讯技术有限公司 Device for protecting battery, control method, wearable device, and storage medium
CN114567055B (en) * 2022-04-28 2022-09-30 荣耀终端有限公司 Charging method and related equipment
CN116094082B (en) * 2022-06-21 2024-12-03 荣耀终端有限公司 Charging control method and related device
CN116914894B (en) * 2023-09-12 2023-12-01 荣耀终端有限公司 Cut-off voltage adjusting method, electronic device and readable storage medium

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
EP0228573A1 (en) * 1985-11-29 1987-07-15 Kabushiki Kaisha Meidensha A surface treated electrode and a zinc-halogen secondary battery incorporating the same
JPH11297364A (en) * 1998-04-07 1999-10-29 Matsushita Electric Ind Co Ltd Charging method for lead-acid battery
JP2004319336A (en) * 2003-04-17 2004-11-11 Nippon Telegr & Teleph Corp <Ntt> Charge control method and charge control device of alkaline aqueous solution secondary battery, and battery pack
CN105978103A (en) * 2016-06-30 2016-09-28 努比亚技术有限公司 Charging control device and method
CN106026269A (en) * 2016-06-27 2016-10-12 深圳天珑无线科技有限公司 Rapid charging device and method

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP4499164B2 (en) * 2008-02-25 2010-07-07 岩崎電気株式会社 Charging apparatus and charging method

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
EP0228573A1 (en) * 1985-11-29 1987-07-15 Kabushiki Kaisha Meidensha A surface treated electrode and a zinc-halogen secondary battery incorporating the same
JPH11297364A (en) * 1998-04-07 1999-10-29 Matsushita Electric Ind Co Ltd Charging method for lead-acid battery
JP2004319336A (en) * 2003-04-17 2004-11-11 Nippon Telegr & Teleph Corp <Ntt> Charge control method and charge control device of alkaline aqueous solution secondary battery, and battery pack
CN106026269A (en) * 2016-06-27 2016-10-12 深圳天珑无线科技有限公司 Rapid charging device and method
CN105978103A (en) * 2016-06-30 2016-09-28 努比亚技术有限公司 Charging control device and method

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
基于ATMEGA16控制的铅酸电池智能快速充电系统;李斌等;《机电产品开发与创新》;20080128(第01期);全文 *

Also Published As

Publication number Publication date
CN112018831A (en) 2020-12-01

Similar Documents

Publication Publication Date Title
CN112018831B (en) A charging control method, charging control device and electronic equipment
US20150050881A1 (en) Wireless power charger
US20100109602A1 (en) Charging device and method of operating the same
TWI451703B (en) Mobile terminal aware of external device and control method for the same
CN107546808B (en) Charging identification circuit, identification method and terminal equipment
WO2017101047A1 (en) Charging control method and device, power adapter, and mobile terminal
CN106340925B (en) A kind of charge control method, device and terminal
WO2018103021A1 (en) Wireless charging and discharging method, wireless charging and discharging device
WO2021077611A1 (en) Battery charging method, battery charging apparatus and storage medium
JP2015165764A5 (en)
US10218209B2 (en) Selecting a charging mode for charging a battery of a portable device
CN103730933A (en) Charging method and electronic devices
CN106786961A (en) Charging process method, device and terminal
CN108964187A (en) The charging method of terminal and terminal room
CN107046674A (en) A kind of bluetooth earphone Auto Power On, matching method and system
US8909955B2 (en) Method and apparatus for providing characteristics information of a peripheral device to an electronic device by encoding the characteristic information into a power signal
CN114865755A (en) Multi-battery power supply, charging and discharging method and electronic equipment
CN106532876A (en) Power supply control method and device and computer equipment
CN107124012B (en) Charging method, device, charger, terminal and system
CN205385321U (en) A structure that automatically selects between normal charging and quick charging of rechargeable batteries in mobile devices
CN114844182A (en) Charging circuit, charging method and electronic device
CN207835120U (en) A kind of intelligent Charge-control System and its charging adapter, data line, wireless contactless charging equipment
JP2015032976A (en) Information processing apparatus, charging control method and program
CN107104473A (en) Structure and method for automatically selecting general charging or quick charging of rechargeable battery of mobile device
US9685808B2 (en) USB energy harvesting

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
TA01 Transfer of patent application right
TA01 Transfer of patent application right

Effective date of registration: 20210429

Address after: Unit 3401, unit a, building 6, Shenye Zhongcheng, No. 8089, Hongli West Road, Donghai community, Xiangmihu street, Futian District, Shenzhen, Guangdong 518040

Applicant after: Honor Device Co.,Ltd.

Address before: 518129 Bantian HUAWEI headquarters office building, Longgang District, Guangdong, Shenzhen

Applicant before: HUAWEI TECHNOLOGIES Co.,Ltd.

GR01 Patent grant
GR01 Patent grant
CP03 Change of name, title or address

Address after: Unit 3401, unit a, building 6, Shenye Zhongcheng, No. 8089, Hongli West Road, Donghai community, Xiangmihu street, Futian District, Shenzhen, Guangdong 518040

Patentee after: Honor Terminal Co.,Ltd.

Country or region after: China

Address before: 3401, unit a, building 6, Shenye Zhongcheng, No. 8089, Hongli West Road, Donghai community, Xiangmihu street, Futian District, Shenzhen, Guangdong

Patentee before: Honor Device Co.,Ltd.

Country or region before: China