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

CN113933717B - Method and device for obtaining electric quantity of battery, battery and electronic equipment - Google Patents

Method and device for obtaining electric quantity of battery, battery and electronic equipment Download PDF

Info

Publication number
CN113933717B
CN113933717B CN202010674764.4A CN202010674764A CN113933717B CN 113933717 B CN113933717 B CN 113933717B CN 202010674764 A CN202010674764 A CN 202010674764A CN 113933717 B CN113933717 B CN 113933717B
Authority
CN
China
Prior art keywords
battery
electric
electric quantity
acquiring
current
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
CN202010674764.4A
Other languages
Chinese (zh)
Other versions
CN113933717A (en
Inventor
高锃
曾耀亿
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Beijing Xiaomi Mobile Software Co Ltd
Original Assignee
Beijing Xiaomi Mobile Software Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Beijing Xiaomi Mobile Software Co Ltd filed Critical Beijing Xiaomi Mobile Software Co Ltd
Priority to CN202010674764.4A priority Critical patent/CN113933717B/en
Publication of CN113933717A publication Critical patent/CN113933717A/en
Application granted granted Critical
Publication of CN113933717B publication Critical patent/CN113933717B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • GPHYSICS
    • G01MEASURING; TESTING
    • G01RMEASURING ELECTRIC VARIABLES; MEASURING MAGNETIC VARIABLES
    • G01R31/00Arrangements for testing electric properties; Arrangements for locating electric faults; Arrangements for electrical testing characterised by what is being tested not provided for elsewhere
    • G01R31/36Arrangements for testing, measuring or monitoring the electrical condition of accumulators or electric batteries, e.g. capacity or state of charge [SoC]
    • G01R31/382Arrangements for monitoring battery or accumulator variables, e.g. SoC
    • GPHYSICS
    • G01MEASURING; TESTING
    • G01RMEASURING ELECTRIC VARIABLES; MEASURING MAGNETIC VARIABLES
    • G01R31/00Arrangements for testing electric properties; Arrangements for locating electric faults; Arrangements for electrical testing characterised by what is being tested not provided for elsewhere
    • G01R31/36Arrangements for testing, measuring or monitoring the electrical condition of accumulators or electric batteries, e.g. capacity or state of charge [SoC]
    • G01R31/389Measuring internal impedance, internal conductance or related variables
    • 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

  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Secondary Cells (AREA)
  • Charge And Discharge Circuits For Batteries Or The Like (AREA)

Abstract

The disclosure relates to a method and a device for acquiring battery power, a battery and electronic equipment. A method of obtaining battery power comprising: after the connection state of the at least two electric cores is switched, acquiring charge and discharge currents of each electric core in the current connection state; acquiring the electric quantity variation of each battery cell according to the charge and discharge current; and acquiring the electric quantity of the battery according to the electric quantity variation of each electric core. In the embodiment, the electric quantity of the battery can be obtained by adopting one electric quantity meter, which is beneficial to reducing the volume of the battery or the volume of the electronic equipment and reducing the cost.

Description

获取电池电量的方法及装置、电池、电子设备Method and device for obtaining battery power, battery, and electronic equipment

技术领域Technical Field

本公开涉及电池技术领域,尤其涉及一种获取电池电量的方法及装置、电池、电子设备。The present disclosure relates to the field of battery technology, and in particular to a method and device for obtaining battery power, a battery, and an electronic device.

背景技术Background Art

目前,随着快充技术的发展,电子设备的电池越来越多的采用双电芯设计,通过控制双电芯串联或者并联的工作状态,从而实现快速充电。考虑到双电芯的工作状态,相关技术中需要为各电芯设置一个电量计,对各电芯进行电量检测与管理。例如,各电量计检测电芯的电量,然后将两个电芯的电量相加,即可得到电池的电量。At present, with the development of fast charging technology, more and more electronic devices are using dual-cell design, which can achieve fast charging by controlling the working state of the dual-cell in series or in parallel. Considering the working state of the dual-cell, it is necessary to set a fuel gauge for each cell in the related technology to detect and manage the power of each cell. For example, each fuel gauge detects the power of the cell, and then adds the power of the two cells to get the power of the battery.

然而,随着电池中电芯数量的增加,相关技术中为各电芯设置一个电量计的方案,不仅会增加电池的体积或者电子设备的体积,还会增加电子设备的成本。However, as the number of cells in the battery increases, the solution of providing a fuel meter for each cell in the related art will not only increase the volume of the battery or the volume of the electronic device, but also increase the cost of the electronic device.

发明内容Summary of the invention

本公开提供一种获取电池电量的方法及装置、电池、电子设备,以解决相关技术的不足。The present disclosure provides a method and device for obtaining battery power, a battery, and an electronic device to solve the deficiencies of related technologies.

根据本公开实施例的第一方面,提供一种获取电池电量的方法,所述电池包括至少两个电芯和一个电量计,所述方法适用于所述电量计,包括:According to a first aspect of an embodiment of the present disclosure, a method for obtaining battery power is provided, wherein the battery includes at least two battery cells and a power meter, and the method is applicable to the power meter, including:

当所述至少两个电芯的连接状态完成切换后,获取各电芯在当前连接状态下的充放电电流;When the connection states of the at least two battery cells are switched, the charge and discharge current of each battery cell in the current connection state is obtained;

根据所述充放电电流获取各电芯的电量变化量;Obtaining a change in the amount of electricity of each battery cell according to the charge and discharge current;

根据各电芯的电量变化量获取所述电池的电量。The power of the battery is obtained according to the change in power of each battery cell.

可选地,获取各电芯在当前连接状态下的充放电电流,包括:Optionally, obtaining the charge and discharge current of each battery cell in the current connection state includes:

当所述至少两个电芯的连接状态为串联状态时,获取任一电芯的电流作为各电芯在当前连接状态下的充放电电流;以及,When the connection state of the at least two battery cells is a series connection state, obtaining the current of any battery cell as the charge and discharge current of each battery cell in the current connection state; and

当所述至少两个电芯的连接状态为并联状态时,获取各电芯的充放电电流。When the connection state of the at least two battery cells is a parallel state, the charge and discharge current of each battery cell is obtained.

可选地,当所述连接状态为串联状态时,根据各电芯的电量变化量获取所述电池的电量,包括:Optionally, when the connection state is a series connection state, obtaining the power of the battery according to the power change of each battery cell includes:

获取所述电芯的数量与所述电量变化量的乘积,将所述乘积作为至少两个电芯的电量变化总量;Obtaining the product of the number of the battery cells and the amount of change in power, and using the product as the total amount of change in power of at least two battery cells;

获取各电芯的初始电量之和,得到初始总量;Obtain the sum of the initial power of each battery cell to obtain the initial total amount;

根据所述电量变化总量和所述初始总量获取所述电池的电量。The power of the battery is acquired according to the total power change and the initial total power.

可选地,当所述连接状态为并联状态时,根据各电芯的电量变化量获取所述电池的电量,包括:Optionally, when the connection state is a parallel state, obtaining the power of the battery according to the power change of each battery cell includes:

获取各电芯的电量变化量之和,得到所述至少两个电芯的电量变化总量;Obtaining the sum of the changes in the power of each battery cell to obtain the total change in the power of the at least two battery cells;

获取各电芯的初始电量之和,得到初始总量;Obtain the sum of the initial power of each battery cell to obtain the initial total amount;

根据所述电量变化总量和所述初始总量获取所述电池的电量。The power of the battery is acquired according to the total power change and the initial total power.

可选地,所述方法还包括:Optionally, the method further comprises:

获取各电芯的实际内部电阻和检测电压;Obtain the actual internal resistance and detection voltage of each battery cell;

根据各电芯的实际内部电阻、充放电电流和检测电压获取各电芯的实际电压;Obtain the actual voltage of each battery cell according to the actual internal resistance, charge and discharge current and detection voltage of each battery cell;

基于预设的电压和电量的对应曲线,根据所述各电芯的实际电压获得所述电池的电量。Based on a preset voltage and power correspondence curve, the power of the battery is obtained according to the actual voltage of each battery cell.

可选地,获取各电芯的内部电阻,包括:Optionally, the internal resistance of each battery cell is obtained, including:

在所述至少两个电芯的连接状态切换为并联状态的预设时间段之内,获取各电芯连接状态切换前后引起的电压变化量以及预测充放电电流;所述预测充放电电流基于电芯的检测电压和初始内部电阻获得;Within a preset time period when the connection state of the at least two battery cells is switched to a parallel state, obtaining a voltage change amount caused by the switching of the connection state of each battery cell and a predicted charge and discharge current; the predicted charge and discharge current is obtained based on the detection voltage and initial internal resistance of the battery cell;

获取各电芯的充放电电流和预测充放电电流之差,得到电流变化量;Obtain the difference between the charge and discharge current of each battery cell and the predicted charge and discharge current to obtain the current change;

根据各电芯的电压变化量和电流变化量获得各电芯的实际内部电阻。The actual internal resistance of each battery cell is obtained according to the voltage change and current change of each battery cell.

根据本公开实施例的第二方面,提供一种获取电池电量的装置,所述电池包括至少两个电芯和一个电量计,所述装置适用于所述电量计包括:According to a second aspect of an embodiment of the present disclosure, a device for obtaining battery power is provided, wherein the battery comprises at least two battery cells and a power meter, and the device is applicable to the power meter comprising:

电流获取模块,用于当所述至少两个电芯的连接状态完成切换后,获取各电芯在当前连接状态下的充放电电流;A current acquisition module, used for acquiring the charge and discharge current of each battery cell in the current connection state after the connection state of the at least two battery cells is switched;

变化量获取模块,用于根据所述充放电电流获取各电芯的电量变化量;A change amount acquisition module is used to obtain the amount of change of the power of each battery cell according to the charging and discharging current;

电量获取模块,用于根据各电芯的电量变化量获取所述电池的电量。The power acquisition module is used to acquire the power of the battery according to the change in power of each battery cell.

可选地,所述电流获取模块包括:Optionally, the current acquisition module includes:

串联电流获取单元,用于当所述至少两个电芯的连接状态为串联状态时,获取任一电芯的电流作为各电芯在当前连接状态下的充放电电流;以及,A series current acquisition unit, used for acquiring the current of any one of the battery cells as the charge and discharge current of each battery cell in the current connection state when the connection state of the at least two battery cells is in the series connection state; and

并联电流获取单元,用于当所述至少两个电芯的连接状态为并联状态时,获取各电芯的充放电电流。The parallel current acquisition unit is used to acquire the charge and discharge current of each battery cell when the connection state of the at least two battery cells is a parallel state.

可选地,当所述连接状态为串联状态时,所述电量获取模块包括:Optionally, when the connection state is a series connection state, the power acquisition module includes:

电量变化获取单元,用于获取所述电芯的数量与所述电量变化量的乘积,将所述乘积作为至少两个电芯的电量变化总量;A power change acquisition unit, used to acquire the product of the number of the battery cells and the power change, and use the product as the total power change of at least two battery cells;

初始总量获取单元,用于获取各电芯的初始电量之和,得到初始总量;An initial total amount acquisition unit is used to acquire the sum of the initial electric quantities of each battery cell to obtain an initial total amount;

电池电量获取单元,用于根据所述电量变化总量和所述初始总量获取所述电池的电量。A battery power acquisition unit is used to acquire the power of the battery according to the total power change and the initial total power.

可选地,当所述连接状态为并联状态时,所述电量获取模块包括:Optionally, when the connection state is a parallel state, the power acquisition module includes:

电量变化获取单元,用于获取各电芯的电量变化量之和,得到所述至少两个电芯的电量变化总量;A power change acquisition unit, used to acquire the sum of power changes of each battery cell to obtain the total power change of the at least two battery cells;

初始总量获取单元,用于获取各电芯的初始电量之和,得到初始总量;An initial total amount acquisition unit is used to acquire the sum of the initial electric quantities of each battery cell to obtain an initial total amount;

电池电量获取单元,用于根据所述电量变化总量和所述初始总量获取所述电池的电量。A battery power acquisition unit is used to acquire the power of the battery according to the total power change and the initial total power.

可选地,所述装置还包括:Optionally, the device further comprises:

实际内阻获取模块,用于获取各电芯的实际内部电阻和检测电压;The actual internal resistance acquisition module is used to obtain the actual internal resistance and detection voltage of each battery cell;

电芯电压获取模块,用于根据各电芯的实际内部电阻、充放电电流和检测电压获取各电芯的实际电压;A cell voltage acquisition module is used to obtain the actual voltage of each cell according to the actual internal resistance, charge and discharge current and detection voltage of each cell;

电池电量校正模块,用于基于预设的电压和电量的对应曲线,根据所述各电芯的实际电压获得所述电池的电量。The battery power calibration module is used to obtain the power of the battery according to the actual voltage of each battery cell based on a preset voltage and power correspondence curve.

可选地,所述实际内阻获取模块包括:Optionally, the actual internal resistance acquisition module includes:

电流电压获取单元,用于在所述至少两个电芯的连接状态切换为并联状态的预设时间段之内,获取各电芯连接状态切换前后引起的电压变化量以及预测充放电电流;所述预测充放电电流基于电芯的检测电压和初始内部电阻获得;A current and voltage acquisition unit, used to acquire a voltage change caused by the switching of the connection state of each battery cell before and after the switching of the connection state of the at least two battery cells and a predicted charge and discharge current within a preset time period when the connection state of the at least two battery cells is switched to a parallel state; the predicted charge and discharge current is obtained based on the detection voltage and initial internal resistance of the battery cell;

电流变化获取单元,用于获取各电芯的充放电电流和预测充放电电流之差,得到电流变化量;A current change acquisition unit is used to acquire the difference between the charge and discharge current of each battery cell and the predicted charge and discharge current to obtain the current change;

实际内阻获取单元,用于根据各电芯的电压变化量和电流变化量获得各电芯的实际内部电阻。The actual internal resistance acquisition unit is used to obtain the actual internal resistance of each battery cell according to the voltage change and current change of each battery cell.

根据本公开实施例的第三方面,提供一种电池,包括至少两个电芯和一个电量计;所述电量计包括控制器和存储所述控制器可执行的计算机程序的存储器;According to a third aspect of an embodiment of the present disclosure, there is provided a battery, comprising at least two battery cells and a fuel gauge; the fuel gauge comprises a controller and a memory storing a computer program executable by the controller;

所述控制器被配置为执行所述存储器中的计算机程序以实现第一方面任一项所述方法的步骤。The controller is configured to execute the computer program in the memory to implement the steps of any method described in the first aspect.

根据本公开实施例的第四方面,提供一种电子设备,包括:According to a fourth aspect of an embodiment of the present disclosure, there is provided an electronic device, including:

如第三方面所述的电池;The battery according to the third aspect;

处理器;所述处理器分别与所述电池中的至少两个电芯电连接,用于控制所述至少两个电芯的连接状态,所述连接包括串联状态或并联状态。A processor; the processor is electrically connected to at least two cells in the battery, respectively, and is used to control the connection state of the at least two cells, wherein the connection includes a series state or a parallel state.

根据本公开实施例的第五方面,提供一种可读存储介质,其上存储有可执行的计算机程序,该计算机程序被执行时实现第一方面任一项所述方法的步骤。According to a fifth aspect of an embodiment of the present disclosure, there is provided a readable storage medium on which an executable computer program is stored, and when the computer program is executed, the steps of any one of the methods described in the first aspect are implemented.

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

由上述实施例可知,本公开实施例中通过在电池中设置一个电量计和至少两个电芯,这样电量计可以在至少两个电芯的连接状态切换之后,获取各电芯在当前连接状态下的充放电电流,然后可以根据充放电电流获取到各电芯的电量变化量,之后,可以根据各电芯的电量变化量获取电池的电量。这样,本实施例中采用一个电量计即可获取到电池的电量,有利于降低电池的体积或者电子设备的体积,降低成本。As can be seen from the above embodiments, in the embodiments of the present disclosure, a fuel gauge and at least two battery cells are set in the battery, so that the fuel gauge can obtain the charge and discharge current of each battery cell in the current connection state after the connection state of at least two battery cells is switched, and then the change in the power of each battery cell can be obtained according to the charge and discharge current, and then the power of the battery can be obtained according to the change in the power of each battery cell. In this way, the power of the battery can be obtained by using a fuel gauge in this embodiment, which is conducive to reducing the volume of the battery or the volume of the electronic device and reducing costs.

应当理解的是,以上的一般描述和后文的细节描述仅是示例性和解释性的,并不能限制本公开。It is to be understood that the foregoing general description and the following detailed description are exemplary and explanatory only and are not restrictive of the present disclosure.

附图说明BRIEF DESCRIPTION OF THE DRAWINGS

此处的附图被并入说明书中并构成本说明书的一部分,示出了符合本公开的实施例,并与说明书一起用于解释本公开的原理。The accompanying drawings, which are incorporated in and constitute a part of this specification, illustrate embodiments consistent with the present disclosure and, together with the description, serve to explain the principles of the present disclosure.

图1是根据一示例性实施例示出的一种获取电池电量的方法的流程图。Fig. 1 is a flow chart showing a method for obtaining battery power according to an exemplary embodiment.

图2是根据一示例性实施例示出的连接状态为串联状态和并联状态的示意图,其中图2中(a)图示出了串联状态,(b)图像示出了并联状态。FIG. 2 is a schematic diagram showing connection states of a series state and a parallel state according to an exemplary embodiment, wherein FIG. 2 (a) shows the series state, and FIG. 2 (b) shows the parallel state.

图3是根据一示例性实施例示出的校正内部电阻的流程图。FIG. 3 is a flow chart showing a method of calibrating internal resistance according to an exemplary embodiment.

图4是根据一示例性实施例示出的校正电池电量的流程图。Fig. 4 is a flow chart showing a method of correcting battery power according to an exemplary embodiment.

图5是根据一示例性实施例示出的预设的电压和电量的对应曲线示意图。Fig. 5 is a schematic diagram of a corresponding curve of a preset voltage and a power according to an exemplary embodiment.

图6是根据一示例性实施例示出的一种获取电池电量的装置的框图FIG. 6 is a block diagram showing a device for obtaining battery power according to an exemplary embodiment.

图7是根据一示例性实施例示出的一种电子设备的框图。Fig. 7 is a block diagram of an electronic device according to an exemplary embodiment.

具体实施方式DETAILED DESCRIPTION

这里将详细地对示例性实施例进行说明,其示例表示在附图中。下面的描述涉及附图时,除非另有表示,不同附图中的相同数字表示相同或相似的要素。以下示例性所描述的实施例并不代表与本公开相一致的所有实施例。相反,它们仅是与如所附权利要求书中所详述的、本公开的一些方面相一致的装置例子。Exemplary embodiments will be described in detail herein, examples of which are shown in the accompanying drawings. When the following description refers to the drawings, the same numbers in different drawings represent the same or similar elements unless otherwise indicated. The embodiments described below by way of example do not represent all embodiments consistent with the present disclosure. Instead, they are merely examples of devices consistent with some aspects of the present disclosure as detailed in the appended claims.

相关技术中为各电芯设置一个电量计的方案,随着电池中电芯数量的增加,会增加电池的体积或者电子设备的体积,还会增加电子设备的成本。In the related art, a solution of providing a fuel meter for each battery cell will increase the volume of the battery or the electronic device as the number of battery cells in the battery increases, and will also increase the cost of the electronic device.

为解决上述技术问题,本公开实施例提供了一种获取电池电量的方法,其中电池包括至少两个电芯和一个电量计,该电池可以应用于如智能手机、平板电脑、个人计算机、服务器等电子设备。该方法可以适用于电量计,其发明构思在于,通过一个电量计利用各电芯的充放电电流来获取电池的电量,这样可以减少电池中电量计的数量,从而减小电池的体积,降低生产成本。In order to solve the above technical problems, the embodiment of the present disclosure provides a method for obtaining the power of a battery, wherein the battery includes at least two cells and a fuel gauge, and the battery can be applied to electronic devices such as smart phones, tablet computers, personal computers, servers, etc. The method can be applied to a fuel gauge, and the inventive concept is that the power of the battery is obtained by using the charge and discharge current of each cell through a fuel gauge, which can reduce the number of fuel gauges in the battery, thereby reducing the volume of the battery and reducing the production cost.

图1是根据一示例性实施例示出的一种获取电池电量的方法的流程图,参见图1,一种获取电池电量的方法,包括步骤11~步骤13,其中:FIG. 1 is a flow chart of a method for obtaining battery power according to an exemplary embodiment. Referring to FIG. 1 , a method for obtaining battery power includes steps 11 to 13, wherein:

在步骤11中,当所述至少两个电芯的连接状态完成切换后,获取各电芯在当前连接状态下的充放电电流。In step 11, after the connection status of the at least two battery cells is switched, the charge and discharge current of each battery cell in the current connection status is obtained.

本实施例中,电池中的至少两个电芯包括切换电路,该切换电路在接收到控制信号后,可以将至少两个电芯的连接状态切换到串联状态或者并联状态,即所有的电芯串联或者所述的电芯并联。其中,控制信号可以由电量计发送,或者由设置有电池的电子设备的处理器发送,在此不作限定。In this embodiment, at least two cells in the battery include a switching circuit, which, after receiving a control signal, can switch the connection state of the at least two cells to a series state or a parallel state, that is, all cells are connected in series or the cells are connected in parallel. The control signal can be sent by a power meter or by a processor of an electronic device equipped with a battery, which is not limited here.

需要说明的是,当电芯较多时,其连接状态还可以包括串联和并联相混合的状态,此情况下可以将串联的电芯和并联的电芯分开计算,即连接状态又可以拆分为串联状态和并联状态,为方便理解,后续以串联状态和并联状态描述各实施例。It should be noted that when there are many battery cells, their connection status may also include a mixed state of series and parallel connection. In this case, the battery cells in series and the battery cells in parallel may be calculated separately, that is, the connection status may be divided into a series state and a parallel state. For ease of understanding, each embodiment will be described in terms of the series state and the parallel state in the following.

本实施例中,电量计可以获取控制信号,该控制信号可以来自自身、处理器或者电池管理芯片,在此不作限定。在接收到控制信号后,电量计确定电芯的连接状态。In this embodiment, the fuel gauge can obtain a control signal, and the control signal can come from the fuel gauge itself, a processor, or a battery management chip, which is not limited here. After receiving the control signal, the fuel gauge determines the connection status of the battery cell.

另一实施例中,电量计也可以不用获取控制信号,此情况下,电量计可以按照设定周期或者实时获取各电芯的端电压,若各电芯的端电压相等或者相近(电压之差在预设范围内,如0.5V),则说明各电芯的连接状态为并联状态;若任意相邻两个电芯中的一个电芯的端电压,大约是另一个电芯的端电压的2倍或者相差较大(例如3-4V),则说明各电芯的连接状态为串联状态。In another embodiment, the fuel meter does not need to obtain the control signal. In this case, the fuel meter can obtain the terminal voltage of each battery cell according to a set period or in real time. If the terminal voltages of each battery cell are equal or similar (the voltage difference is within a preset range, such as 0.5V), it means that the connection state of each battery cell is in parallel; if the terminal voltage of one battery cell between any two adjacent battery cells is approximately twice the terminal voltage of the other battery cell or the difference is large (for example, 3-4V), it means that the connection state of each battery cell is in series.

本实施例中,电量计在确定连接状态后,可以获取当前连接状态下的充放电电流。例如,在连接状态为图2(a)所示的串联状态时,采集任一电芯的电流作为各电芯的充放电电流,如采集精密电阻1的电流作为电芯1和电芯2充放电电流;又如,在连接状态为图2(b)所示的并联状态时,采集各电芯的电流作为各自的充放电电流,如采集精密电阻1的电流作为电芯1的充放电电流,采集精密电阻2的电流作为电芯2的充放电电流。In this embodiment, after determining the connection state, the fuel gauge can obtain the charge and discharge current in the current connection state. For example, when the connection state is the series state shown in Figure 2 (a), the current of any battery cell is collected as the charge and discharge current of each battery cell, such as collecting the current of precision resistor 1 as the charge and discharge current of battery cell 1 and battery cell 2; for another example, when the connection state is the parallel state shown in Figure 2 (b), the current of each battery cell is collected as the respective charge and discharge current, such as collecting the current of precision resistor 1 as the charge and discharge current of battery cell 1, and collecting the current of precision resistor 2 as the charge and discharge current of battery cell 2.

在步骤12中,根据所述充放电电流获取各电芯的电量变化量。In step 12, the amount of charge change of each battery cell is obtained according to the charge and discharge current.

本实施例中,电量计可以根据充放电电流获取可各电芯的电量变化量。以其中一个电芯为例,电量计可以根据本次获取充放电电流和前一次获取充放电电流的时间时间,对充放电电流进行积分,从而得到该电芯的电量变化量。In this embodiment, the fuel gauge can obtain the amount of change in the amount of power of each battery cell according to the charge and discharge current. Taking one of the batteries as an example, the fuel gauge can integrate the charge and discharge current according to the time of obtaining the charge and discharge current this time and the time of obtaining the charge and discharge current last time, so as to obtain the amount of change in the amount of power of the battery cell.

在步骤13中,根据各电芯的电量变化量获取所述电池的电量。In step 13, the power of the battery is obtained according to the change in power of each battery cell.

本实施例中,电量计可以从存储器获取各电芯在前一次检测时所得到的电量,以下称之为初始电量;然后,电量计可以获取各电芯的初始电量与电量变化量,得到各电芯在本次检测过程所得到的实际电量。需要说明的是,在获取各电芯的实际电量时,若电池处于充电状态,则实际电量等于初始电量与电量变化量之和;若电池处于放电状态,则实际电量等于初始电量与电量变化量之差。其中,充电状态或者放电状态或者根据充放电电流是流入电池还是流出电池获得。之后,电量计可以获取各电芯的电量之和,得到电池的电量;或者,电量计可以获取各电芯的电量与最大电量的电量比例,将电量比例的平均值作为电池的电容,或者将电芯中最小的电量比例作为电池的电量。这样,本实施例中采用一个电量计即可获取到电池的电量,有利于降低电池的体积或者电子设备的体积,降低成本。In this embodiment, the fuel gauge can obtain the power obtained by each battery cell in the previous detection from the memory, which is referred to as the initial power; then, the fuel gauge can obtain the initial power and power change of each battery cell to obtain the actual power obtained by each battery cell in this detection process. It should be noted that when obtaining the actual power of each battery cell, if the battery is in a charging state, the actual power is equal to the sum of the initial power and the power change; if the battery is in a discharging state, the actual power is equal to the difference between the initial power and the power change. Among them, the charging state or the discharging state is obtained according to whether the charging and discharging current flows into the battery or flows out of the battery. Afterwards, the fuel gauge can obtain the sum of the power of each battery cell to obtain the power of the battery; or, the fuel gauge can obtain the power ratio of the power of each battery cell to the maximum power, and use the average value of the power ratio as the capacitance of the battery, or use the smallest power ratio in the battery cell as the power of the battery. In this way, in this embodiment, a fuel gauge can be used to obtain the power of the battery, which is conducive to reducing the volume of the battery or the volume of the electronic device and reducing costs.

考虑到电池在充电和/或放电过程中,以及电池的使用环境发生变化(如温度变化),各电芯的内部电阻会动态变化,导致获取的电池的电量存在一定的误差。随着时间的积累,累积误差会越来越大。因此,在一实施例中,电量计可以对电池的电量进行校正。在对电量校正之前,电量计可以先对电池的内部电阻进行校正,参见图3,包括步骤31~步骤33:Considering that the internal resistance of each battery cell will change dynamically during the charging and/or discharging process of the battery, as well as changes in the battery's use environment (such as temperature changes), the obtained battery power will have a certain error. As time accumulates, the cumulative error will become larger and larger. Therefore, in one embodiment, the fuel meter can calibrate the battery power. Before calibrating the power, the fuel meter can first calibrate the internal resistance of the battery, see Figure 3, including steps 31 to 33:

在步骤31中,在电芯的连接状态切换为并联状态的预设时间段(如1-50ms,可调整)之内,电量计可以获取各电芯的充放电电流、检测电压、初始内部电阻、连接状态切换前后引起的电压变化量和预测充放电电流。其中,检测电压是指从串联状态切换到并联状态之后的第一次所能检测到的电压。初始内部电阻是指上一次所获取的内部电阻。连接状态切换前后引起的电压变化量是指切换之前串联状态下所能检测到的最后一次的电压U1-1和切换之后并联状态下所能检测到的第一次的电压U1-2之差,例如电芯1的电压变化量为U1-1-U1-2。预测充放电电流基于电芯的检测电压和初始内部电阻获得。在步骤32中,电量计可以获取各电芯的充放电电流和预测充放电电流之差,得到电流变化量。例如电芯1的预测充放电电流为I1-1,充放电电流为I1-2,则电流变化量为I1-1-I1-2。在步骤33中,电量计可以根据各电芯的电压变化量和电流变化量获得各电芯的实际内部电阻。例如,电芯1的实际内部电阻R1’=(U1-1-U1-2)/(I1-1-I1-2)。In step 31, within a preset time period (such as 1-50ms, adjustable) when the connection state of the battery cell is switched to the parallel state, the fuel gauge can obtain the charge and discharge current, detection voltage, initial internal resistance, voltage change caused before and after the connection state switching, and predicted charge and discharge current of each battery cell. Among them, the detection voltage refers to the voltage that can be detected for the first time after switching from the series state to the parallel state. The initial internal resistance refers to the internal resistance obtained last time. The voltage change caused before and after the connection state switching refers to the difference between the last voltage U1-1 that can be detected in the series state before the switching and the first voltage U1-2 that can be detected in the parallel state after the switching, for example, the voltage change of battery cell 1 is U 1-1 -U 1-2 . The predicted charge and discharge current is obtained based on the detection voltage and initial internal resistance of the battery cell. In step 32, the fuel gauge can obtain the difference between the charge and discharge current of each battery cell and the predicted charge and discharge current to obtain the current change. For example, the predicted charge and discharge current of cell 1 is I 1-1 , and the charge and discharge current is I 1-2 , then the current change is I 1-1 -I 1-2 . In step 33 , the fuel gauge can obtain the actual internal resistance of each cell according to the voltage change and current change of each cell. For example, the actual internal resistance R1' of cell 1 is R1'=(U 1-1 -U 1-2 )/(I 1-1 -I 1-2 ).

需要说明的是,本实施例中,实际内部电阻可以按照设定周期(例如取值范围在5-10分钟之间,可调整)对各电芯的内部电阻进行调整;还可以在从待机(电芯电流约几-数十毫安级别)到使用(电芯电流约为数十到数百毫安级别),即电芯输出电流突变较大的场景,若电芯的端电压发生变化,如从4.25V下降到4V,此时需要对电芯的内部电阻进行校正。技术人员可以根据具体场景设置合适的校正时间或者校正场景,相应方案落入本公开的保护范围。It should be noted that in this embodiment, the actual internal resistance can be adjusted according to a set period (for example, the value range is between 5-10 minutes, which can be adjusted) for the internal resistance of each battery cell; it can also be adjusted from standby (battery cell current is about several to tens of milliamperes) to use (battery cell current is about tens to hundreds of milliamperes), that is, when the battery cell output current changes greatly, if the terminal voltage of the battery cell changes, such as from 4.25V to 4V, the internal resistance of the battery cell needs to be corrected. The technician can set the appropriate correction time or correction scenario according to the specific scenario, and the corresponding scheme falls within the protection scope of the present disclosure.

需要说明的是,本实施例中,电量计可以将获取的实际内部电阻存储到指定的存储区域。在一示例中,电量计还与上一次校正的内部电阻进行对比,当本次的实际内部电阻与上一次的内部电阻的差值在预设的差值范围(如电阻值变化小于10%)内时,确定本次的实际内部电阻为有效值,可以存储到指定的存储区域,若超过差值范围,则确定实际内部电阻为无效值,直接丢弃。It should be noted that, in this embodiment, the power meter can store the actual internal resistance obtained in a designated storage area. In one example, the power meter also compares the internal resistance with the internal resistance calibrated last time. When the difference between the actual internal resistance this time and the internal resistance last time is within a preset difference range (such as a resistance value change of less than 10%), the actual internal resistance this time is determined to be a valid value and can be stored in the designated storage area. If it exceeds the difference range, the actual internal resistance is determined to be an invalid value and is directly discarded.

在获取到各电芯的实际内部电阻之后,可以再对电池的电量进行校正,参见图4,包括步骤41~步骤43:After obtaining the actual internal resistance of each battery cell, the battery power can be calibrated, as shown in FIG4 , including steps 41 to 43:

在步骤41中,电量计可以获取到实际内部电阻和检测电压。需要说明的是,实际内部电阻可以为本次电量校正过程所获取的电阻,还可以是之前获取的内部电阻(即可以理解为初始内部电阻)。本实施例中以前者为例进行说明。在步骤42中,电量计可以根据各电芯的实际内部电阻、充放电电流和检测电压获取各电芯的实际电压。例如,电芯1的实际电压U1’=U1+I*R1’,其中,U1是指电芯1的检测电压,即实际检测到的电压,I是指电芯1的充放电电流,R1’是指电芯1的实际内部电阻。在步骤43中,基于图5所示的预设的电压和电量的对应曲线,电量计可以根据各电芯的实际电压获得该电芯的电量。例如,当一个电芯的电压为3.8V时,其电量采用比例表示可以是40%。然后,电量计可以根据各电芯的电量来确定电池的电量。以电量采用比例为例,在充电过程中,可以将电量比例最大的电芯的比例作为电池的电量;在放电过程中,可以将电量比例最小的电芯的比例作为电池的电量。In step 41, the fuel gauge can obtain the actual internal resistance and the detection voltage. It should be noted that the actual internal resistance can be the resistance obtained in this power calibration process, or it can be the internal resistance obtained previously (that is, it can be understood as the initial internal resistance). In this embodiment, the former is used as an example for explanation. In step 42, the fuel gauge can obtain the actual voltage of each battery cell according to the actual internal resistance, charge and discharge current and detection voltage of each battery cell. For example, the actual voltage U1'=U1+I*R1' of battery cell 1, wherein U1 refers to the detection voltage of battery cell 1, that is, the actual detected voltage, I refers to the charge and discharge current of battery cell 1, and R1' refers to the actual internal resistance of battery cell 1. In step 43, based on the corresponding curve of the preset voltage and power shown in FIG5, the fuel gauge can obtain the power of each battery cell according to the actual voltage of the battery cell. For example, when the voltage of a battery cell is 3.8V, the proportion of its power can be 40%. Then, the fuel gauge can determine the power of the battery according to the power of each battery cell. Taking the power usage ratio as an example, during the charging process, the ratio of the battery cell with the largest power ratio can be used as the battery power; during the discharging process, the ratio of the battery cell with the smallest power ratio can be used as the battery power.

可理解的的是,本实施例中通过对各电芯的内部电阻进行校正,可以使电芯的内部电阻与连接状态或者使用环境更匹配,能够反映出电芯的真实内阻。进而,使用校正后的内部电阻来对电池的电量进行校正,可以使电池的电量更准确,有利于降低累积误差。It is understandable that in this embodiment, by correcting the internal resistance of each battery cell, the internal resistance of the battery cell can be more matched with the connection state or the use environment, and can reflect the real internal resistance of the battery cell. Furthermore, using the corrected internal resistance to correct the battery power can make the battery power more accurate, which is conducive to reducing the cumulative error.

在上述一种获取电池电量的方法的基础上,本公开实施例还提供了一种获取电池电量的装置,所述电池包括至少两个电芯和一个电量计,所述装置适用于所述电量计,图6是根据一示例性实施例示出的一种获取电池电量的装置的框图。参见图6,一种获取电池电量的装置,包括:Based on the above method for obtaining battery power, an embodiment of the present disclosure further provides a device for obtaining battery power, wherein the battery includes at least two battery cells and a power meter, and the device is suitable for the power meter. FIG6 is a block diagram of a device for obtaining battery power according to an exemplary embodiment. Referring to FIG6, a device for obtaining battery power includes:

电流获取模块61,用于当所述至少两个电芯的连接状态完成切换后,获取各电芯在当前连接状态下的充放电电流;A current acquisition module 61 is used to acquire the charge and discharge current of each battery cell in the current connection state after the connection state of the at least two battery cells is switched;

变化量获取模块62,用于根据所述充放电电流获取各电芯的电量变化量;A change amount acquisition module 62 is used to acquire the amount of change of the electric quantity of each battery cell according to the charging and discharging current;

电量获取模块63,用于根据各电芯的电量变化量获取所述电池的电量。The power acquisition module 63 is used to acquire the power of the battery according to the power change of each battery cell.

在一实施例中,所述电流获取模块包括:In one embodiment, the current acquisition module includes:

串联电流获取单元,用于当所述至少两个电芯的连接状态为串联状态时,获取任一电芯的电流作为各电芯在当前连接状态下的充放电电流;以及,A series current acquisition unit, used for acquiring the current of any one of the battery cells as the charge and discharge current of each battery cell in the current connection state when the connection state of the at least two battery cells is in the series connection state; and

并联电流获取单元,用于当所述至少两个电芯的连接状态为并联状态时,获取各电芯的充放电电流。The parallel current acquisition unit is used to acquire the charge and discharge current of each battery cell when the connection state of the at least two battery cells is a parallel state.

在一实施例中,当所述连接状态为串联状态时,所述电量获取模块包括:In one embodiment, when the connection state is a series connection state, the power acquisition module includes:

电量变化获取单元,用于获取所述电芯的数量与所述电量变化量的乘积,将所述乘积作为至少两个电芯的电量变化总量;A power change acquisition unit, used to acquire the product of the number of the battery cells and the power change, and use the product as the total power change of at least two battery cells;

初始总量获取单元,用于获取各电芯的初始电量之和,得到初始总量;An initial total amount acquisition unit is used to acquire the sum of the initial electric quantities of each battery cell to obtain an initial total amount;

电池电量获取单元,用于根据所述电量变化总量和所述初始总量获取所述电池的电量。A battery power acquisition unit is used to acquire the power of the battery according to the total power change and the initial total power.

在一实施例中,当所述连接状态为并联状态时,所述电量获取模块包括:In one embodiment, when the connection state is a parallel state, the power acquisition module includes:

电量变化获取单元,用于获取各电芯的电量变化量之和,得到所述至少两个电芯的电量变化总量;A power change acquisition unit, used to acquire the sum of power changes of each battery cell to obtain the total power change of the at least two battery cells;

初始总量获取单元,用于获取各电芯的初始电量之和,得到初始总量;An initial total amount acquisition unit is used to acquire the sum of the initial electric quantities of each battery cell to obtain an initial total amount;

电池电量获取单元,用于根据所述电量变化总量和所述初始总量获取所述电池的电量。A battery power acquisition unit is used to acquire the power of the battery according to the total power change and the initial total power.

在一实施例中,所述装置还包括:In one embodiment, the device further comprises:

实际内阻获取模块,用于获取各电芯的实际内部电阻和检测电压;The actual internal resistance acquisition module is used to obtain the actual internal resistance and detection voltage of each battery cell;

电芯电压获取模块,用于根据各电芯的实际内部电阻、充放电电流和检测电压获取各电芯的实际电压;A cell voltage acquisition module is used to obtain the actual voltage of each cell according to the actual internal resistance, charge and discharge current and detection voltage of each cell;

电池电量校正模块,用于基于预设的电压和电量的对应曲线,根据所述各电芯的实际电压获得所述电池的电量。The battery power calibration module is used to obtain the power of the battery according to the actual voltage of each battery cell based on a preset voltage and power correspondence curve.

在一实施例中,所述实际内阻获取模块包括:In one embodiment, the actual internal resistance acquisition module includes:

电流电压获取单元,用于在所述至少两个电芯的连接状态切换为并联状态的预设时间段之内,获取各电芯连接状态切换前后引起的电压变化量以及预测充放电电流;所述预测充放电电流基于电芯的检测电压和初始内部电阻获得;A current and voltage acquisition unit, used to acquire a voltage change caused by the switching of the connection state of each battery cell before and after the switching of the connection state of the at least two battery cells and a predicted charge and discharge current within a preset time period when the connection state of the at least two battery cells is switched to a parallel state; the predicted charge and discharge current is obtained based on the detection voltage and initial internal resistance of the battery cell;

电流变化获取单元,用于获取各电芯的充放电电流和预测充放电电流之差,得到电流变化量;A current change acquisition unit is used to acquire the difference between the charge and discharge current of each battery cell and the predicted charge and discharge current to obtain the current change;

实际内阻获取单元,用于根据各电芯的电压变化量和电流变化量获得各电芯的实际内部电阻。The actual internal resistance acquisition unit is used to obtain the actual internal resistance of each battery cell according to the voltage change and current change of each battery cell.

可理解的是,本公开实施例提供的装置与上述方法实施例相对应,具体内容可以参考方法各实施例的内容,在此不再赘述。It is understandable that the device provided in the embodiment of the present disclosure corresponds to the above-mentioned method embodiment. The specific content can refer to the content of each method embodiment, which will not be repeated here.

图7是根据一示例性实施例示出的一种电子设备的框图。例如,电子设备700可以是智能手机,计算机,数字广播终端,平板设备,医疗设备,健身设备,个人数字助理等。Fig. 7 is a block diagram of an electronic device according to an exemplary embodiment. For example, the electronic device 700 may be a smart phone, a computer, a digital broadcast terminal, a tablet device, a medical device, a fitness device, a personal digital assistant, etc.

参照图7,电子设备700可以包括以下一个或多个组件:处理组件702,存储器704,电源组件706,多媒体组件708,音频组件710,输入/输出(I/O)的接口712,传感器组件714,通信组件716,以及图像采集组件718。7 , the electronic device 700 may include one or more of the following components: a processing component 702 , a memory 704 , a power component 706 , a multimedia component 708 , an audio component 710 , an input/output (I/O) interface 712 , a sensor component 714 , a communication component 716 , and an image acquisition component 718 .

处理组件702通常处理电子设备700的整体操作,诸如与显示,电话呼叫,数据通信,相机操作和记录操作相关联的操作。处理组件702可以包括一个或多个处理器720来执行计算机程序。此外,处理组件702可以包括一个或多个模块,便于处理组件702和其他组件之间的交互。例如,处理组件702可以包括多媒体模块,以方便多媒体组件708和处理组件702之间的交互。The processing component 702 generally handles the overall operation of the electronic device 700, such as operations associated with display, phone calls, data communications, camera operations, and recording operations. The processing component 702 may include one or more processors 720 to execute computer programs. In addition, the processing component 702 may include one or more modules to facilitate interaction between the processing component 702 and other components. For example, the processing component 702 may include a multimedia module to facilitate interaction between the multimedia component 708 and the processing component 702.

存储器704被配置为存储各种类型的数据以支持在电子设备700的操作。这些数据的示例包括用于在电子设备700上操作的任何应用程序或方法的计算机程序,联系人数据,电话簿数据,消息,图片,视频等。存储器704可以由任何类型的易失性或非易失性存储设备或者它们的组合实现,如静态随机存取存储器(SRAM),电可擦除可编程只读存储器(EEPROM),可擦除可编程只读存储器(EPROM),可编程只读存储器(PROM),只读存储器(ROM),磁存储器,快闪存储器,磁盘或光盘。The memory 704 is configured to store various types of data to support operations on the electronic device 700. Examples of such data include computer programs for any application or method operating on the electronic device 700, contact data, phone book data, messages, pictures, videos, etc. The memory 704 can be implemented by any type of volatile or non-volatile storage device or a combination thereof, such as static random access memory (SRAM), electrically erasable programmable read-only memory (EEPROM), erasable programmable read-only memory (EPROM), programmable read-only memory (PROM), read-only memory (ROM), magnetic memory, flash memory, magnetic disk or optical disk.

电源组件706为电子设备700的各种组件提供电力。电源组件706可以包括电源管理系统,一个或多个电源,及其他与为电子设备700生成、管理和分配电力相关联的组件。电源组件706可以包括电源芯片,控制器可以电源芯片通信,从而控制电源芯片导通或者断开开关器件,使电池向主板电路供电或者不供电。The power supply component 706 provides power to various components of the electronic device 700. The power supply component 706 may include a power management system, one or more power supplies, and other components associated with generating, managing, and distributing power for the electronic device 700. The power supply component 706 may include a power chip, and the controller may communicate with the power chip to control the power chip to turn on or off a switch device, so that the battery supplies power to the mainboard circuit or not.

多媒体组件708包括在电子设备700和目标对象之间的提供一个输出接口的屏幕。在一些实施例中,屏幕可以包括液晶显示屏(LCD)和触摸面板(TP)。如果屏幕包括触摸面板,屏幕可以被实现为触摸屏,以接收来自目标对象的输入信号。触摸面板包括一个或多个触摸传感器以感测触摸、滑动和触摸面板上的手势。触摸传感器可以不仅感测触摸或滑动动作的边界,而且还检测与触摸或滑动操作相关的持续时间和压力。The multimedia component 708 includes a screen that provides an output interface between the electronic device 700 and the target object. In some embodiments, the screen may include a liquid crystal display (LCD) and a touch panel (TP). If the screen includes a touch panel, the screen may be implemented as a touch screen to receive input signals from the target object. The touch panel includes one or more touch sensors to sense touch, slide, and gestures on the touch panel. The touch sensor may not only sense the boundaries of a touch or slide action, but also detect the duration and pressure associated with the touch or slide operation.

音频组件710被配置为输出和/或输入音频信号。例如,音频组件710包括一个麦克风(MIC),当电子设备700处于操作模式,如呼叫模式、记录模式和语音识别模式时,麦克风被配置为接收外部音频信号。所接收的音频信号可以被进一步存储在存储器704或经由通信组件716发送。在一些实施例中,音频组件710还包括一个扬声器,用于输出音频信号。The audio component 710 is configured to output and/or input audio signals. For example, the audio component 710 includes a microphone (MIC), and when the electronic device 700 is in an operating mode, such as a call mode, a recording mode, and a voice recognition mode, the microphone is configured to receive an external audio signal. The received audio signal can be further stored in the memory 704 or sent via the communication component 716. In some embodiments, the audio component 710 also includes a speaker for outputting audio signals.

I/O接口712为处理组件702和外围接口模块之间提供接口,上述外围接口模块可以是键盘,点击轮,按钮等。The I/O interface 712 provides an interface between the processing component 702 and a peripheral interface module, such as a keyboard, a click wheel, a button, etc.

传感器组件714包括一个或多个传感器,用于为电子设备700提供各个方面的状态评估。例如,传感器组件714可以检测到电子设备700的打开/关闭状态,组件的相对定位,例如组件为电子设备700的显示屏和小键盘,传感器组件714还可以检测电子设备700或一个组件的位置改变,目标对象与电子设备700接触的存在或不存在,电子设备700方位或加速/减速和电子设备700的温度变化。The sensor assembly 714 includes one or more sensors for providing various aspects of status assessment for the electronic device 700. For example, the sensor assembly 714 can detect the open/closed state of the electronic device 700, the relative positioning of components, such as the display screen and keypad of the electronic device 700, and the sensor assembly 714 can also detect the position change of the electronic device 700 or a component, the presence or absence of contact between the target object and the electronic device 700, the orientation or acceleration/deceleration of the electronic device 700, and the temperature change of the electronic device 700.

通信组件716被配置为便于电子设备700和其他设备之间有线或无线方式的通信。电子设备700可以接入基于通信标准的无线网络,如WiFi,2G或3G,或它们的组合。在一个示例性实施例中,通信组件716经由广播信道接收来自外部广播管理系统的广播信号或广播相关信息。在一个示例性实施例中,通信组件716还包括近场通信(NFC)模块,以促进短程通信。例如,在NFC模块可基于射频识别(RFID)技术,红外数据协会(IrDA)技术,超宽带(UWB)技术,蓝牙(BT)技术和其他技术来实现。The communication component 716 is configured to facilitate wired or wireless communication between the electronic device 700 and other devices. The electronic device 700 can access a wireless network based on a communication standard, such as WiFi, 2G or 3G, or a combination thereof. In an exemplary embodiment, the communication component 716 receives a broadcast signal or broadcast-related information from an external broadcast management system via a broadcast channel. In an exemplary embodiment, the communication component 716 also includes a near field communication (NFC) module to facilitate short-range communication. For example, the NFC module can be implemented based on radio frequency identification (RFID) technology, infrared data association (IrDA) technology, ultra-wideband (UWB) technology, Bluetooth (BT) technology and other technologies.

在示例性实施例中,电子设备700可以被一个或多个应用专用集成电路(ASIC)、数字信号处理器(DSP)、数字信号处理设备(DSPD)、可编程逻辑器件(PLD)、现场可编程门阵列(FPGA)、控制器、微控制器、微处理器或其他电子元件实现。In an exemplary embodiment, the electronic device 700 may be implemented by one or more application specific integrated circuits (ASICs), digital signal processors (DSPs), digital signal processing devices (DSPDs), programmable logic devices (PLDs), field programmable gate arrays (FPGAs), controllers, microcontrollers, microprocessors, or other electronic components.

在示例性实施例中,还提供了一种包括可执行的计算机程序的非临时性可读存储介质,例如包括指令的存储器704,上述可执行的计算机程序可由处理器执行。其中,可读存储介质可以是ROM、随机存取存储器(RAM)、CD-ROM、磁带、软盘和光数据存储设备等。In an exemplary embodiment, a non-temporary readable storage medium including an executable computer program is also provided, such as a memory 704 including instructions, and the executable computer program can be executed by a processor. The readable storage medium can be a ROM, a random access memory (RAM), a CD-ROM, a magnetic tape, a floppy disk, an optical data storage device, etc.

本领域技术人员在考虑说明书及实践这里公开的公开后,将容易想到本公开的其它实施方案。本公开旨在涵盖任何变型、用途或者适应性变化,这些变型、用途或者适应性变化遵循本公开的一般性原理并包括本公开未公开的本技术领域中的公知常识或惯用技术手段。说明书和实施例仅被视为示例性的,本公开的真正范围和精神由下面的权利要求指出。Those skilled in the art will readily appreciate other embodiments of the present disclosure after considering the specification and practicing the disclosure disclosed herein. The present disclosure is intended to cover any variations, uses, or adaptations that follow the general principles of the present disclosure and include common knowledge or customary techniques in the art that are not disclosed in the present disclosure. The description and examples are to be considered exemplary only, and the true scope and spirit of the present disclosure are indicated by the following claims.

应当理解的是,本公开并不局限于上面已经描述并在附图中示出的精确结构,并且可以在不脱离其范围进行各种修改和改变。本公开的范围仅由所附的权利要求来限制。It should be understood that the present disclosure is not limited to the exact structures that have been described above and shown in the drawings, and that various modifications and changes may be made without departing from the scope thereof. The scope of the present disclosure is limited only by the appended claims.

Claims (9)

1. A method of harvesting power from a battery, the battery comprising at least two cells and a power meter, the method being adapted to the power meter and comprising:
After the connection state of the at least two electric cores is switched, charging and discharging currents of the electric cores in the current connection state are obtained, wherein the at least two electric cores comprise a switching circuit, and the switching circuit is used for switching the connection state of the at least two electric cores to a serial state or a parallel state;
acquiring the electric quantity variation of each battery cell according to the charge and discharge current;
acquiring the electric quantity of the battery according to the electric quantity variation of each electric core;
Acquiring the actual internal resistance and detection voltage of each battery cell;
Acquiring the actual voltage of each cell according to the actual internal resistance, the charge-discharge current and the detection voltage of each cell;
acquiring the electric quantity of the battery according to the actual voltage of each battery core based on a preset corresponding curve of the voltage and the electric quantity;
wherein, obtain the actual internal resistance of each electric core, include:
Acquiring voltage variation and predicted charge and discharge current caused by the connection state of each battery core before and after switching in a preset time period when the connection state of at least two battery cores is switched to a parallel state; the predicted charge-discharge current is obtained based on the detection voltage and the initial internal resistance of the battery cell;
Obtaining the difference between the charge and discharge current of each cell and the predicted charge and discharge current to obtain the current variation;
Obtaining the actual internal resistance of each cell according to the voltage variation and the current variation of each cell;
the step of obtaining the charge and discharge current of each battery cell in the current connection state comprises the following steps:
When the connection state of the at least two electric cores is a serial state, acquiring the current of any electric core as the charge and discharge current of each electric core in the current connection state; and
And when the connection state of the at least two electric cores is a parallel state, acquiring the charge and discharge current of each electric core.
2. The method according to claim 1, wherein when the connection state is a serial state, obtaining the electric quantity of the battery according to the electric quantity variation amount of each cell, comprises:
Obtaining the product of the quantity of the electric cores and the electric quantity variation, and taking the product as the electric quantity variation total quantity of at least two electric cores;
obtaining the sum of initial electric quantity of each electric core to obtain initial total quantity;
and acquiring the electric quantity of the battery according to the electric quantity change total quantity and the initial total quantity.
3. The method according to claim 1, wherein when the connection state is a parallel state, obtaining the electric quantity of the battery according to the electric quantity variation amount of each cell, comprises:
Obtaining the sum of the electric quantity variation of each electric core to obtain the total electric quantity variation of at least two electric cores;
obtaining the sum of initial electric quantity of each electric core to obtain initial total quantity;
and acquiring the electric quantity of the battery according to the electric quantity change total quantity and the initial total quantity.
4. An apparatus for harvesting power from a battery, said battery comprising at least two cells and a power meter, said apparatus adapted for use with said power meter comprising:
The current acquisition module is used for acquiring charge and discharge currents of each battery cell in the current connection state after the connection state of the at least two battery cells is switched, wherein the at least two battery cells comprise a switching circuit, and the switching circuit is used for switching the connection state of the at least two battery cells to a serial state or a parallel state;
The variation acquisition module is used for acquiring the electric quantity variation of each battery cell according to the charge and discharge current;
the electric quantity acquisition module is used for acquiring the electric quantity of the battery according to the electric quantity variation of each electric core;
The actual internal resistance acquisition module is used for acquiring the actual internal resistance and the detection voltage of each battery cell;
the battery cell voltage acquisition module is used for acquiring the actual voltage of each battery cell according to the actual internal resistance, the charge-discharge current and the detection voltage of each battery cell;
the battery electric quantity correction module is used for obtaining the electric quantity of the battery according to the actual voltage of each battery core based on a preset voltage and an electric quantity corresponding curve;
wherein, the actual internal resistance acquisition module includes:
the current and voltage acquisition unit is used for acquiring voltage variation and predicted charge and discharge current caused by the switching of the connection states of the at least two electric cores within a preset time period when the connection states of the at least two electric cores are switched to the parallel state; the predicted charge-discharge current is obtained based on the detection voltage and the initial internal resistance of the battery cell;
the current change acquisition unit is used for acquiring the difference between the charge and discharge current of each battery cell and the predicted charge and discharge current to obtain a current change amount;
the actual internal resistance acquisition unit is used for acquiring the actual internal resistance of each battery cell according to the voltage variation and the current variation of each battery cell;
Wherein, the electric current acquisition module includes:
the series current acquisition unit is used for acquiring the current of any one of the battery cells as the charge and discharge current of each battery cell in the current connection state when the connection state of the at least two battery cells is the series state; and
And the parallel current acquisition unit is used for acquiring the charge and discharge current of each battery cell when the connection state of the at least two battery cells is a parallel state.
5. The apparatus of claim 4, wherein when the connection state is a serial state, the power acquisition module comprises:
The electric quantity change acquisition unit is used for acquiring the product of the quantity of the electric cores and the electric quantity change quantity, and taking the product as the electric quantity change total quantity of at least two electric cores;
the initial total amount obtaining unit is used for obtaining the sum of the initial electric quantity of each battery cell to obtain the initial total amount;
and the battery electric quantity acquisition unit is used for acquiring the electric quantity of the battery according to the electric quantity change total quantity and the initial total quantity.
6. The apparatus of claim 4, wherein the power harvesting module comprises, when the connected state is a parallel state:
The electric quantity change acquisition unit is used for acquiring the sum of the electric quantity change amounts of the electric cores to obtain the total electric quantity change amount of the at least two electric cores;
the initial total amount obtaining unit is used for obtaining the sum of the initial electric quantity of each battery cell to obtain the initial total amount;
and the battery electric quantity acquisition unit is used for acquiring the electric quantity of the battery according to the electric quantity change total quantity and the initial total quantity.
7. A battery comprising at least two cells and an electricity meter; the electricity meter includes a controller and a memory storing a computer program executable by the controller;
The controller is configured to execute a computer program in the memory to implement the steps of the method of any one of claims 1 to 3.
8. An electronic device, comprising:
the battery of claim 7;
a processor; the processor is electrically connected with at least two electric cores in the battery respectively and is used for controlling the connection state of the at least two electric cores, and the connection comprises a serial state or a parallel state.
9. A readable storage medium having stored thereon an executable computer program, characterized in that the computer program when executed implements the steps of the method according to any of claims 1-3.
CN202010674764.4A 2020-07-14 2020-07-14 Method and device for obtaining electric quantity of battery, battery and electronic equipment Active CN113933717B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202010674764.4A CN113933717B (en) 2020-07-14 2020-07-14 Method and device for obtaining electric quantity of battery, battery and electronic equipment

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202010674764.4A CN113933717B (en) 2020-07-14 2020-07-14 Method and device for obtaining electric quantity of battery, battery and electronic equipment

Publications (2)

Publication Number Publication Date
CN113933717A CN113933717A (en) 2022-01-14
CN113933717B true CN113933717B (en) 2024-10-25

Family

ID=79274022

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202010674764.4A Active CN113933717B (en) 2020-07-14 2020-07-14 Method and device for obtaining electric quantity of battery, battery and electronic equipment

Country Status (1)

Country Link
CN (1) CN113933717B (en)

Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103308865A (en) * 2013-07-09 2013-09-18 福州瑞芯微电子有限公司 Method and electric equipment for calculating secondary battery SOC (system on a chip) and self-learning OCV (open circuit voltage)-SOC curve
CN109901082A (en) * 2017-12-08 2019-06-18 南京德朔实业有限公司 Portable electric energy system and its measurement method

Family Cites Families (15)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN100359780C (en) * 2003-04-04 2008-01-02 京东方科技集团股份有限公司 Chargeable cell unit whose connection state can be controlled and assembled battery
WO2011118112A1 (en) * 2010-03-26 2011-09-29 パナソニック株式会社 Charging state detection circuit, battery power source device, and battery information monitoring device
JP2014211307A (en) * 2011-08-30 2014-11-13 三洋電機株式会社 Battery system, charge state estimation device, electric vehicle, movable body, electric power storage device and power supply device
CN103901347B (en) * 2012-12-28 2016-11-23 华为终端有限公司 A kind of method showing battery electric quantity and terminal
CN105372595A (en) * 2014-09-02 2016-03-02 深圳富泰宏精密工业有限公司 Battery capacity detection system and method
CN105572599B (en) * 2014-09-04 2019-08-20 中兴通讯股份有限公司 A kind of method, apparatus and electronic equipment of the electricity showing battery
JP6614007B2 (en) * 2015-09-18 2019-12-04 住友電気工業株式会社 Internal resistance calculation device, computer program, and internal resistance calculation method
CN205051404U (en) * 2015-11-03 2016-02-24 深圳市瀚路新能源汽车有限公司 Battery charging system
CN105652210B (en) * 2016-01-04 2019-07-26 惠州市蓝微新源技术有限公司 One kind carrying out the modified method and system of SOC according to battery status amount change procedure
CN105548905B (en) * 2016-01-12 2019-04-30 浙江德景电子科技有限公司 A kind of test method and system of battery capacity
US10720672B2 (en) * 2017-04-24 2020-07-21 Autel Robotics Co., Ltd Series-multiple battery pack management system
CN107706979A (en) * 2017-10-24 2018-02-16 贝斯拓欧洲控股有限公司 Charge protection method, device and electronic cigarette
CN110850311B (en) * 2018-08-01 2022-04-26 西安中兴新软件有限责任公司 Method and device for displaying electric quantity by double batteries and computer readable storage medium
CN109066865B (en) * 2018-08-21 2021-02-09 北京小米移动软件有限公司 Calibration method of battery electric quantity and terminal
CN110687458A (en) * 2019-09-29 2020-01-14 北京四达时代软件技术股份有限公司 Terminal battery electric quantity determination method and device

Patent Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103308865A (en) * 2013-07-09 2013-09-18 福州瑞芯微电子有限公司 Method and electric equipment for calculating secondary battery SOC (system on a chip) and self-learning OCV (open circuit voltage)-SOC curve
CN109901082A (en) * 2017-12-08 2019-06-18 南京德朔实业有限公司 Portable electric energy system and its measurement method

Also Published As

Publication number Publication date
CN113933717A (en) 2022-01-14

Similar Documents

Publication Publication Date Title
CN108475935B (en) Battery charging management method and terminal
CN114062957B (en) Battery remaining capacity acquisition method and device, electronic equipment and storage medium
CN107843802A (en) Internal short-circuit detection method and device
CN114094646A (en) Charging control method, device, electronic device, storage medium
CN113933717B (en) Method and device for obtaining electric quantity of battery, battery and electronic equipment
CN117460961A (en) Battery temperature detection circuit and method, battery protection board, battery and mobile terminal
CN109066865B (en) Calibration method of battery electric quantity and terminal
CN113285499A (en) Charging control method, electronic device, control device, and storage medium
CN112986879B (en) Fuel gauge correction method and device, electronic equipment and storage medium
US20230261497A1 (en) Charging method, electronic equipment, non-transitory readable storage medium
US11846676B2 (en) Method and apparatus for predicting remaining charging time and storage medium
CN113517727B (en) Shutdown method and device
CN220754383U (en) Electronic equipment
CN113346564A (en) Power management chip control method and device and terminal equipment
CN116774082A (en) Battery health degree determining method, device and storage medium
CN118801498A (en) Charging and discharging control method and device, electronic device, and readable storage medium
CN219535677U (en) Charging circuit and terminal equipment
CN119438898A (en) Method, device, electronic device and storage medium for correcting battery health
CN221961627U (en) Electronic equipment
CN117538753A (en) Battery electric quantity determining method, device and medium
CN113253141B (en) Battery power metering method, electronic device and storage medium
CN119001483A (en) Electric quantity calculation method and device, terminal equipment and storage medium
CN119001447A (en) Residual electric quantity prediction method and device, electronic equipment and storage medium
CN118801500A (en) Battery charging circuit, method, device and storage medium
CN115327405A (en) Battery power display method and device, electronic equipment and storage medium

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant