Battery electric quantity detection method and device and electronic equipment
By obtaining the initial open circuit voltage of the battery and the power under the load state, and combining the load time to calculate the power loss, the existing power measurement methods are solved, and simple, accurate and low-cost power detection is achieved.
Patent Information
- Application Number
- CN202411399131.1
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-10-09
- Publication Date
- 2025-04-11
Smart Images

Figure CN119805264A_ABST
Abstract
Description
Technical Field
[0001] The present application belongs to the technical field of battery power supply, and in particular relates to a battery power detection method, device and electronic equipment. Background Art
[0002] Elevator emergency rescue batteries must be highly reliable to ensure that they can quickly and stably provide power support to the elevator and ensure passenger safety in the event of a sudden power outage or other emergency. Power measurement can reflect the remaining power and status of the battery in real time, helping the elevator system determine whether it needs to switch to a backup power source or take other safety measures. This is essential to ensure the safe operation of the elevator in an emergency. Power measurement also helps prevent battery over-discharge. When the battery is close to exhaustion, the system can send out a warning signal and take appropriate protective measures to prevent the battery from being damaged or affecting the normal operation of the elevator due to over-discharge.
[0003] At present, there are two methods for measuring power: load test method, which is to estimate the battery capacity by connecting the battery to the load and observing its voltage fluctuation under load; voltage measurement method, which records the voltage at the start of the measurement, and then records the voltage at the next time point after discharging through the rated load, and estimates the power through the two; dedicated chip method, which uses the MPF4279x series to use a high-efficiency hybrid mode algorithm to achieve excellent SOC estimation accuracy. Although the method of controlling battery access through MCU in standby state is technically feasible and effective, the above method has problems such as high cost and system complexity in actual application. For example, the introduction of MCU increases hardware costs and the complexity of software development.
[0004] Therefore, how to provide a simple and low-cost method for measuring the power of elevator emergency rescue batteries has become an urgent problem to be solved. Summary of the invention
[0005] The present application provides a battery power detection method, device and electronic device, which utilizes the characteristic that the elevator battery is in a standby state when the mains power is normal (that is, no current flows), to provide a simple and low-cost power measurement method.
[0006] In a first aspect, an embodiment of the present application provides a battery power detection method, the method comprising: obtaining an initial open circuit voltage corresponding to a battery; determining an initial power level of the battery based on the initial open circuit voltage; obtaining the power of the battery within a preset time period under a load state; determining the power loss of the battery based on the power of the battery and the load time; and determining the current state battery power based on the initial power level and the power loss.
[0007] In a possible implementation, determining the initial power of the battery based on the initial open circuit voltage includes: obtaining a voltage-power curve of the battery; determining the open circuit voltage corresponding to any same power based on an upper voltage limit and a lower voltage limit corresponding to any same power in the voltage-power curve; fitting an open circuit voltage-power formula based on the open circuit voltage and the power corresponding to the open circuit voltage; and determining the initial power based on the initial open circuit voltage and the open circuit voltage-power formula.
[0008] In a possible implementation, the open circuit voltage-electricity formula is:
[0009] C=Y1+((Y2-Y1)×(OCV (初始) -X1)) / (X2-X1)
[0010] Where C is the initial charge, Y1 is the low point of the charge range where the initial open circuit voltage is located, Y2 is the high point of the charge range where the initial open circuit voltage is located, X1 is the low point of the charge range where the initial open circuit voltage is located, X2 is the high point of the charge range where the initial open circuit voltage is located, OCV (初始) is the initial open circuit voltage.
[0011] In one possible implementation, determining the power loss of the battery based on the power and load time of the battery includes: determining a sufficient operating time of the battery at the power based on the power of the battery; and determining the power loss of the battery based on the sufficient operating time and the load time.
[0012] In one possible implementation, determining the sufficient operating time of the battery at the power based on the power of the battery includes: obtaining a power-time scatter plot of the battery; fitting a power-time formula based on the power-time scatter plot; and determining the sufficient operating time based on the power and the power-time formula.
[0013] In one possible implementation, determining the battery power loss based on the full operating time and the load time includes: during the load time, taking the preset time period as an update interval, determining the full operating time of each preset time period by acquiring the power corresponding to each preset time period; determining the sub-power loss within each preset time period based on the full operating time of each preset time period; determining the power loss based on the load time and the sub-power loss within each preset time period.
[0014] In a possible implementation, the power-time formula is:
[0015] T=T1-K×(W-W1)
[0016] K = (T1-T2) / (W2-W1)
[0017] Among them, T is the full operation time, W1 is the low power point of the interval where power W is located, W2 is the high power point of the interval where power W is located, T1 is the time high point of the interval where power W is located, and T2 is the time low point of the interval where power W is located.
[0018] In a possible implementation, a health warning is performed on the battery based on the power loss during the load time and a preset loss threshold.
[0019] In a second aspect, an embodiment of the present application provides a battery power detection device, the device comprising: an acquisition module, used to acquire an initial open circuit voltage corresponding to a battery; a determination module, used to determine the initial power of the battery based on the initial open circuit voltage; the acquisition module is also used to acquire the power of the battery within a preset time period under load; the determination module is also used to determine the power loss of the battery based on the power of the battery and the load time; the determination module is also used to determine the battery power in the current state based on the initial power and the power loss.
[0020] In a third aspect, an embodiment of the present application provides an electronic device, comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein when the processor executes the computer program, the method described in the first aspect or the second aspect or any one of the implementation methods thereof is implemented.
[0021] In a fourth aspect, an embodiment of the present application provides a computer-readable storage medium, wherein the computer-readable storage medium stores a computer program, and when the computer program is executed by a processor, the method described in the first aspect or the second aspect or any one of the implementation methods thereof is implemented.
[0022] In a fifth aspect, an embodiment of the present application provides a computer program product. When the computer program product runs on an electronic device, the electronic device executes the method described in the first aspect or any one of the implementation methods thereof.
[0023] Compared with the prior art, the embodiments of the present application have the following beneficial effects: by obtaining the initial open circuit voltage corresponding to the battery; determining the initial power of the battery based on the initial open circuit voltage; obtaining the power of the battery in a preset time period under load; determining the power loss of the battery based on the power and load time of the battery; determining the power of the battery in the current state based on the initial power and power loss. Compared with the problems of high cost and complex system of power measurement methods in the prior art, the present application can obtain the initial power by fitting the "open circuit voltage-power" formula. During the discharge (load) process, the power loss is also determined by fitting the "power-time" formula, which has certain pan-sexuality for the same series of batteries. It is only necessary to obtain the discharge power at the current moment, and the power loss can be obtained according to the preset time period. If multiple loads are discharged and calculated at the same time, the corresponding total power loss can also be obtained by the power superposition principle, without the need to calculate the power loss of each branch circuit separately, and superimpose, reduce the amount of calculation, and increase the accuracy. Since the battery has a maximum power loss limit, the power-time formula can be used to intervene in the power of the sudden discharge in a timely manner, and the intervention period can be set manually. BRIEF DESCRIPTION OF THE DRAWINGS
[0024] In order to more clearly illustrate the technical solutions in the embodiments of the present application, the drawings required for use in the embodiments or the description of the prior art will be briefly introduced below. Obviously, the drawings described below are only some embodiments of the present application. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying any creative work.
[0025] Figure 1 A flowchart of a battery power detection method provided in an embodiment of the present application;
[0026] Figure 2 The voltage-capacity curve diagram provided for this application;
[0027] Figure 3 A structural block diagram of a battery power detection device provided in an embodiment of the present application;
[0028] Figure 4 A schematic diagram of the structure of an electronic device provided in one embodiment of the present application. DETAILED DESCRIPTION
[0029] In the following description, specific details such as specific system structures, technologies, etc. are provided for the purpose of illustration rather than limitation, so as to provide a thorough understanding of the embodiments of the present application. However, it should be clear to those skilled in the art that the present application may also be implemented in other embodiments without these specific details. In other cases, detailed descriptions of well-known systems, devices, circuits, and methods are omitted to prevent unnecessary details from obstructing the description of the present application.
[0030] It should be understood that when used in the present specification and the appended claims, the term "comprising" indicates the presence of described features, wholes, steps, operations, elements and / or components, but does not exclude the presence or addition of one or more other features, wholes, steps, operations, elements, components and / or combinations thereof.
[0031] It should also be understood that the term “and / or” used in the specification and appended claims refers to any and all possible combinations of one or more of the associated listed items, and includes these combinations.
[0032] As used in the specification and appended claims of this application, the term "if" can be interpreted as "when" or "uponce" or "in response to determining" or "in response to detecting", depending on the context. Similarly, the phrase "if it is determined" or "if [described condition or event] is detected" can be interpreted as meaning "uponce it is determined" or "in response to determining" or "uponce [described condition or event] is detected" or "in response to detecting [described condition or event]", depending on the context.
[0033] In addition, in the description of the present application specification and the appended claims, the terms "first", "second", "third", etc. are only used to distinguish the descriptions and cannot be understood as indicating or implying relative importance.
[0034] References to "one embodiment" or "some embodiments" etc. described in the specification of this application mean that one or more embodiments of the present application include specific features, structures or characteristics described in conjunction with the embodiment. Therefore, the statements "in one embodiment", "in some embodiments", "in some other embodiments", "in some other embodiments", etc. that appear in different places in this specification do not necessarily refer to the same embodiment, but mean "one or more but not all embodiments", unless otherwise specifically emphasized in other ways. The terms "including", "comprising", "having" and their variations all mean "including but not limited to", unless otherwise specifically emphasized in other ways.
[0035] In the existing elevator emergency rescue devices, most of them still use lead-acid batteries as their power supply due to reasons such as maintainability and price. The characteristics of this application are:
[0036] (1) Under the mains power condition, the battery is in a floating charge state, which lasts for a long time;
[0037] (2) When emergency rescue occurs, it is necessary to switch to battery discharge, and the discharge current is large;
[0038] (3) The load of the emergency rescue device is the contactor coil, and sufficient voltage must be ensured to effectively attract the contactor.
[0039] For the elevator emergency rescue device, when the mains power is normal, the battery is in standby mode, which means that the battery is not discharging or charging, but in a ready state, ready to take over the system power supply when the mains power is interrupted.
[0040] When the system detects that there is no mains power supply (i.e., a power outage), the microcontroller (MCU) controls the battery to be connected to the system and begins to discharge for rescue work. This is the core function of the emergency power device, ensuring that power support can be quickly provided to elevators or other key equipment when the mains power is interrupted.
[0041] Open Circuit Voltage (OCV) is the voltage across the battery when no load current flows through it. In an elevator emergency power device, since the battery is in standby mode when the mains power is normal and no current flows through it, it provides conditions for obtaining an accurate OCV voltage. Based on this feature, the present application provides a battery power detection method, device, and electronic device that can measure power quickly, accurately, and at low cost.
[0042] Furthermore, this solution can be used to warn about the health of battery capacity, specifically including: based on the average value of the OCV (open circuit voltage) curve as the reference power, when emergency rescue is carried out, the constant current discharge characteristic table is used for the first capacity measurement, and after the rescue is completed, it is switched to the open circuit voltage (OCV) for the second capacity measurement. At the same time, by comparing the capacity values obtained twice, if the difference between the two capacities deviates downward by more than the set value, a warning battery capacity health warning is sent.
[0043] For ease of understanding, the technical solution of the present application will be described in detail below with reference to the accompanying drawings.
[0044] Figure 1 This is a flow chart of a battery power detection method provided in an embodiment of the present application. For the sake of convenience, only the part related to the present embodiment is shown. The method provided in the present embodiment includes the following steps:
[0045] S110, obtaining an initial open circuit voltage corresponding to the battery.
[0046] For example, in an elevator emergency power device, the battery is in a standby state for a long time, that is, no current flows through it. Under this characteristic, the open circuit voltage of the battery can be obtained.
[0047] Specifically, first, you can use a multimeter to directly measure the voltage of the battery in the open circuit state with a high-precision multimeter, that is, to obtain the initial open circuit voltage of the battery. Second, you can connect the battery to a professional battery testing system and directly read the open circuit voltage value of the battery through the system. This method is more accurate and can obtain other performance parameters of the battery at the same time.
[0048] S120, determining an initial charge of the battery based on the initial open circuit voltage.
[0049] Exemplarily, based on the measured open circuit voltage, the initial electric quantity is determined by querying the electric quantity corresponding to the open circuit voltage.
[0050] Specifically, determine the correspondence between the open circuit voltage and the battery capacity (State of Charge, SOC). This is usually achieved through multiple charge and discharge experiments at different charge and discharge rates, and record the open circuit voltage values of the battery at different SOCs. Then, organize these data into a data table or draw an open circuit voltage-capacity curve.
[0051] For example, the current open circuit voltage is 12.5V, and according to the open circuit voltage-capacity curve, it can be determined that the initial capacity corresponding to the initial open circuit voltage is 63.5%.
[0052] S130, obtaining the power of the battery in a preset time period under a load state.
[0053] For example, when the rescue begins, the elevator battery is in a load state, and the battery power can be determined based on the current, voltage, and preset time period.
[0054] For example, in the rescue state, the preset time period is 500ms, and the discharge power is measured every 500ms. It can be measured that the current discharge power is 231.25W. According to the power schedule of the battery, it can be determined that the full operating time at the current discharge power is 8.223 minutes.
[0055] S140, determining the power consumption of the battery based on the battery power and the load time.
[0056] For example,
[0057]
[0058] The discharge capacity under the current coefficient = CellDischargeCoef2 (discharge power) = 49340;
[0059] Current discharge capacity = CellDischargeCoef2 (discharge power) CellCapacityOCV(x) = 31339;
[0060] Assuming the load time is 1 minute, the power loss in 1 minute can be further calculated:
[0061] Discharge time = 1·60(s)_mul_100 = 6000
[0062]
[0063] Therefore, it can be determined that the battery power loss is 12.16%.
[0064] S150, determining the current battery power based on the initial power and power consumption.
[0065] Exemplarily, the battery power in the current state may be determined based on the initial power and the power loss under load.
[0066] Current battery power = initial power - power loss = 63.5% - 12.16% = 51.34%.
[0067] Based on the above embodiment, this embodiment further illustrates and optimizes the technical solution. Specifically, in this embodiment, based on the initial open circuit voltage, determining the initial power of the battery includes:
[0068] Obtain the voltage-capacity curve of the battery; determine the open circuit voltage corresponding to any same capacity based on the voltage upper limit and voltage lower limit corresponding to any same capacity in the voltage-capacity curve; fit the open circuit voltage-capacity formula based on the open circuit voltage and the capacity corresponding to the open circuit voltage; determine the initial capacity based on the initial open circuit voltage and the open circuit voltage-capacity formula.
[0069] For example, Figure 2 The voltage-capacity curve provided for this application is Figure 2 As shown in the figure, when the battery power is 100%, the upper and lower voltage limits of the battery are A hi =2.175 and A lw 2.15, in order to make the calculation result more accurate, the upper and lower limits of voltage are taken as the average value A of 2.175 and 2.15 respectively ave =2.162.
[0070] Furthermore, the open circuit voltage A when the battery power is 100% ocv =A ave ×K=12.975V, where K is a parameter.
[0071] Furthermore, the open circuit voltages of the battery at 75%, 50%, 25% and 10% of the power are determined according to the above method. Thus, it can be determined that 12.975V corresponds to 100% power; 12.660V corresponds to 75% power; 12.312V corresponds to 50% power; 11.865V corresponds to 25% power; and 11.550V corresponds to 10% power.
[0072] Furthermore, according to the open circuit voltages when the battery capacity is 100%, 75%, 50%, 25% and 10%, a fitting curve and a formula corresponding to the curve are obtained, so that the capacity corresponding to any open circuit voltage can be determined.
[0073] Exemplarily, the open circuit voltage-capacity curve / (formula) is:
[0074] C=Y1+((Y2-Y1)×(OCV (初始) -X1)) / (X2-X1)
[0075] Where C is the initial charge, Y1 is the low point of the charge range where the initial open circuit voltage is located, Y2 is the high point of the charge range where the initial open circuit voltage is located, X1 is the low point of the charge range where the initial open circuit voltage is located, X2 is the high point of the charge range where the initial open circuit voltage is located, OCV (初始) is the initial open circuit voltage.
[0076] Based on the above embodiments, this embodiment further illustrates and optimizes the technical solution. Specifically, in this embodiment, determining the battery power loss based on the battery power and load time includes: determining the full operating time of the battery under power based on the battery power; determining the battery power loss based on the full operating time and load time.
[0077] Exemplarily, the power of the battery is determined according to the current of the battery under load, and the full operating time of the battery under the power is determined according to the power of the battery. This application takes 1.75V / 6 batteries as the discharge termination voltage as an example, and explains it under the condition of taking only one point voltage. The full operating time of the battery under different powers is shown in Table 1, where the first row represents the full operating time and the second row represents different powers.
[0078] Table 1: Battery full running time at different power levels
[0079] FV / Time 3MIN 5MIN 8MIN 10MIN 15MIN 20MIN 30MIN 60MIN 90MIN 1.75V 54.44 47.85 39.08 34.26 26.13 21.08 15.28 8.793 6.331
[0080] Then, the battery power consumption is determined according to the full operation time and the load time, as shown in step S140. As shown, the discharge time can be regarded as the load time, and the discharge time under the current coefficient can be regarded as the full operating time.
[0081] Based on the above embodiments, this embodiment further illustrates and optimizes the technical solution. Specifically, in this embodiment, based on the power of the battery, determining the sufficient operating time of the battery under the power includes: obtaining a power-time scatter plot of the battery; based on the power-time scatter plot, fitting a power-time formula; based on the power and the power-time formula, determining the sufficient operating time.
[0082] For example, since the above Table 1 only shows the time corresponding to several special powers and cannot determine the sufficient operating time under each power, it is necessary to determine the power-time formula in order to obtain the sufficient operating time under each power state.
[0083] Specifically, according to Table 1, a power-time scatter plot of the battery is obtained, a power-time formula is fitted according to the power-time scatter plot, and then the sufficient operating time at each power is determined according to the power-time formula / (curve).
[0084] The power-time formula is:
[0085] T=T1-K×(W-W1)
[0086] K = (T1-T2) / (W2-W1)
[0087] Among them, T is the full operation time, W1 is the low power point of the interval where power W is located, W2 is the high power point of the interval where power W is located, T1 is the time high point of the interval where power W is located, and T2 is the time low point of the interval where power W is located.
[0088] For example, when the current discharge power W is between 54.44 and 47.85 in Table 1, then: W1 = 47.85; W2 = 54.44; T1 = 5 min; T2 = 3 min. Further, the sufficient operating time T of the current power can be calculated.
[0089] On the basis of the above-mentioned embodiments, the present embodiment further illustrates and optimizes the technical solution. Specifically, in the present embodiment, based on the full operating time and the load time, determining the battery power loss includes: during the load time, taking the preset time period as the update interval, determining the full operating time of each preset time period by acquiring the power corresponding to each preset time period; determining the sub-power loss within each preset time period based on the full operating time of each preset time period; determining the power loss based on the load time and the sub-power loss within each preset time period.
[0090] Specifically, during the battery load process, different powers may appear. According to the preset time period, the collected power is updated to determine the energy loss. For example, the preset time period is 500ms, and power collection is performed every 500ms. Then, the power loss within this 500ms is calculated. Taking Table 1 as an example, the power collected in the first 500ms is 54.44, and the corresponding full operation time is 3min. Then, the power loss within 500ms is calculated when the power is 54.44. The power collected in the second 500ms is 39.08, and the corresponding full operation time is 8min. Then, the power loss within 500ms is calculated when the power is 39.08. Similarly, the integral summation is performed to determine the sub-power loss in each preset time period during the overall load time, so as to determine the power consumption, and then the current battery power is determined based on the initial power and power loss.
[0091] On the basis of the above-mentioned embodiments, this embodiment further illustrates and optimizes the technical solution. Specifically, in this embodiment, a health warning is provided for the battery based on the power loss during the load time and a preset loss threshold.
[0092] For example, if the calculated power loss during battery operation is greater than a preset loss value, it means that the current battery is difficult to meet usage requirements and needs maintenance or replacement.
[0093] The solution provided by the present application is as follows: by obtaining the initial open circuit voltage corresponding to the battery; determining the initial battery power based on the initial open circuit voltage; obtaining the power of the battery in a preset time period under load; determining the battery power loss based on the battery power and load time; determining the battery power in the current state based on the initial power and power loss. Due to the characteristic that the elevator battery is in a standby state when the mains power is normal, the initial power is determined by detecting the no-load open circuit voltage of the battery, and the subsequent power update algorithms are all based on the initial power for power reduction, without the need for the battery voltage to participate in the battery power calculation (when the battery is in the undervoltage stage, the battery voltage changes rapidly, resulting in a jump in power). In addition, by obtaining the sufficient running time under load and the preset time period, the power loss during the load process is determined, and further, the battery power can be calculated quickly, simply, and at low cost.
[0094] Figure 3 This is a structural block diagram of a battery power detection device provided in an embodiment of the present application. For the sake of convenience, only the parts related to the embodiment of the present application are shown. Figure 3 The battery power detection device 300 may include an acquisition module 301 and a determination module 302 .
[0095] The acquisition module 301 is used to acquire the initial open circuit voltage corresponding to the battery.
[0096] The determination module 302 is configured to determine the initial power level of the battery based on the initial open circuit voltage.
[0097] The acquisition module 301 is further used to acquire the power of the battery in a preset time period under a load state.
[0098] The determination module 302 is further configured to determine the battery power in a current state based on the initial power and the power consumption.
[0099] It should be noted that the information interaction, execution process, etc. between the above-mentioned devices / units are based on the same concept as the method embodiment of the present application. Their specific functions and technical effects can be found in the method embodiment part and will not be repeated here.
[0100] The technicians in the relevant field can clearly understand that for the convenience and simplicity of description, only the division of the above-mentioned functional units and modules is used as an example for illustration. In practical applications, the above-mentioned function allocation can be completed by different functional units and modules as needed, that is, the internal structure of the device can be divided into different functional units or modules to complete all or part of the functions described above. The functional units and modules in the embodiment can be integrated in a processing unit, or each unit can exist physically separately, or two or more units can be integrated in one unit. The above-mentioned integrated unit can be implemented in the form of hardware or in the form of software functional units. In addition, the specific names of the functional units and modules are only for the convenience of distinguishing each other, and are not used to limit the scope of protection of this application. The specific working process of the units and modules in the above-mentioned system can refer to the corresponding process in the aforementioned method embodiment, which will not be repeated here.
[0101] Figure 4 This is a schematic diagram of the structure of an electronic device provided by an embodiment of the present application. Figure 4 As shown, the electronic device 4 of this embodiment includes: at least one processor 40 ( Figure 4 Only one is shown in the figure), a memory 41, and a computer program 42 stored in the memory 41 and executable on at least one processor 40, the processor 40 executes the computer program 42 to implement the above Figure 1 The steps in the method embodiment, or the implementation of the above Figure 3 Functions of each module / unit in the device embodiment.
[0102] The electronic device 4 may be a computing device such as a desktop computer, a notebook, a PDA, or a cloud server. The electronic device 4 may include but is not limited to a processor 40 and a memory 41. Those skilled in the art will appreciate that Figure 4It is only an example of the electronic device 4 and does not constitute a limitation on the electronic device 4. It may include more or fewer components than shown in the figure, or a combination of certain components, or different components. For example, it may also include input and output devices, network access devices, etc.
[0103] The processor 40 may be a central processing unit (CPU), or other general-purpose processors, digital signal processors (DSP), application-specific integrated circuits (ASIC), field-programmable gate arrays (FPGA) or other programmable logic devices, discrete gate or transistor logic devices, discrete hardware components, etc. A general-purpose processor may be a microprocessor or any conventional processor, etc.
[0104] In some embodiments, the memory 41 may be an internal storage unit of the electronic device 4, such as a hard disk or memory of the electronic device 4. In other embodiments, the memory 41 may also be an external storage device of the electronic device 4, such as a plug-in hard disk, a smart media card (SMC), a secure digital (SD) card, a flash card, etc. equipped on the electronic device 4. Further, the memory 41 may also include both an internal storage unit and an external storage device of the electronic device 4. The memory 41 is used to store an operating system, an application program, a boot loader (BootLoader), data, and other programs, such as program codes of a computer program. The memory 41 may also be used to temporarily store data that has been output or is to be output.
[0105] The embodiment of the present application further provides a computer-readable storage medium, which stores a computer program. When the computer program is executed by a processor, the steps in the above-mentioned method embodiments can be implemented.
[0106] If the integrated unit is implemented in the form of a software functional unit and sold or used as an independent product, it can be stored in a computer-readable storage medium. Based on this understanding, the present application implements all or part of the processes in the above-mentioned embodiment method, which can be completed by instructing the relevant hardware through a computer program, and the computer program can be stored in a computer-readable storage medium, and the computer program can implement the steps of the above-mentioned various method embodiments when executed by the processor. Among them, the computer program includes computer program code, and the computer program code can be in source code form, object code form, executable file or some intermediate form. The computer-readable medium may include at least: any entity or device capable of carrying the computer program code to an electronic device, a recording medium, a computer memory, a read-only memory (ROM, Read-Only Memory), a random access memory (RAM, Random Access Memory), an electric carrier signal, a telecommunication signal, and a software distribution medium. For example, a USB flash drive, a mobile hard disk, a disk or an optical disk.
[0107] A computer-readable storage medium provided in an embodiment of the present application has the same beneficial effects as the above-mentioned battery power detection method.
[0108] An embodiment of the present application provides a computer program product, which includes a computer program. When the computer program is executed by a processor, the steps in the above-mentioned method embodiments can be implemented.
[0109] A computer program product provided in an embodiment of the present application has the same beneficial effects as the above-mentioned battery power detection method.
[0110] In the above embodiments, the description of each embodiment has its own emphasis. For parts that are not described or recorded in detail in a certain embodiment, reference can be made to the relevant descriptions of other embodiments.
[0111] Those of ordinary skill in the art will appreciate that the units and algorithm steps of each example described in conjunction with the embodiments disclosed herein can be implemented in electronic hardware, or a combination of computer software and electronic hardware. Whether these functions are performed in hardware or software depends on the specific application and design constraints of the technical solution. Professional and technical personnel can use different methods to implement the described functions for each specific application, but such implementation should not be considered to be beyond the scope of this application.
[0112] In the embodiments provided in the present application, it should be understood that the disclosed devices / electronic devices and methods can be implemented in other ways. For example, the device / electronic device embodiments described above are merely schematic. For example, the division of the modules or units is only a logical function division. There may be other division methods in actual implementation, such as multiple units or components can be combined or integrated into another system, or some features can be ignored or not executed. Another point is that the mutual coupling or direct coupling or communication connection shown or discussed can be through some interfaces, indirect coupling or communication connection of devices or units, which can be electrical, mechanical or other forms.
[0113] The units described as separate components may or may not be physically separated, and the components shown as units may or may not be physical units, that is, they may be located in one place or distributed on multiple network units. Some or all of the units may be selected according to actual needs to achieve the purpose of the solution of this embodiment.
[0114] The above embodiments are only used to illustrate the technical solutions of the present application, rather than to limit them. Although the present application has been described in detail with reference to the aforementioned embodiments, those skilled in the art should understand that they can still modify the technical solutions described in the aforementioned embodiments, or make equivalent replacements for some of the technical features therein. These modifications or replacements do not deviate the essence of the corresponding technical solutions from the spirit and scope of the technical solutions of the embodiments of the present application, and should all be included in the protection scope of the present application.
Claims
1. A battery power detection method, characterized in that: The method comprises: Get the initial open circuit voltage corresponding to the battery; Determining an initial charge of the battery based on the initial open circuit voltage; Obtaining the power of the battery in a preset time period under a load state; Determining power consumption of the battery based on power and load time of the battery; The current battery power is determined based on the initial power and the power consumption.
2. The method according to claim 1, characterized in that The determining the initial power of the battery based on the initial open circuit voltage includes: Obtaining a voltage-capacity curve of the battery; Based on the voltage upper limit and the voltage lower limit corresponding to any same amount of electricity in the voltage-electricity curve, determining the open circuit voltage corresponding to any same amount of electricity; Fitting an open circuit voltage-electricity formula based on the open circuit voltage and the electric quantity corresponding to the open circuit voltage; The initial power quantity is determined based on the initial open circuit voltage and the open circuit voltage-power quantity formula.
3. The method according to claim 2, characterized in that The open circuit voltage-capacity formula is: C=Y1+((Y2-Y1)×(OCV (初始) -X1)) / (X2-X1) Where C is the initial charge, Y1 is the low point of the charge range where the initial open circuit voltage is located, Y2 is the high point of the charge range where the initial open circuit voltage is located, X1 is the low point of the charge range where the initial open circuit voltage is located, X2 is the high point of the charge range where the initial open circuit voltage is located, OCV (初始) is the initial open circuit voltage.
4. The method according to claim 1, characterized in that: Determining the power consumption of the battery based on the power and load time of the battery includes: Based on the power of the battery, determining a sufficient operating time of the battery at the power; Based on the full operating time and the load time, a power loss of the battery is determined.
5. The method according to claim 4, characterized in that The determining, based on the power of the battery, a sufficient operating time of the battery at the power comprises: Obtaining a power-time scatter plot of the battery; Based on the power-time scatter plot, fitting a power-time formula; Based on the power and the power-time formula, the sufficient operating time is determined.
6. The method according to claim 4, characterized in that The determining the power consumption of the battery based on the full operation time and the load time includes: During the load time, taking the preset time period as an update interval, determining the sufficient operating time of each preset time period by acquiring the power corresponding to each preset time period; Determining the sub-power consumption in each of the preset time periods based on the sufficient operating time of each of the preset time periods; The power loss is determined based on the load time and the sub-power loss in each of the preset time periods.
7. The method according to claim 5, characterized in that The power-time formula is: T=T1-K×(W-W1) K = (T1-T2) / (W2-W1) Among them, T is the full operation time, W1 is the low power point of the interval where power W is located, W2 is the high power point of the interval where power W is located, T1 is the time high point of the interval where power W is located, and T2 is the time low point of the interval where power W is located.
8. The method according to claim 6, characterized in that Based on the power loss during the load time and a preset loss threshold, a health warning is issued for the battery.
9. A battery power detection device, characterized in that: The device comprises: An acquisition module, used for acquiring an initial open circuit voltage corresponding to the battery; A determination module, configured to determine an initial charge of the battery based on the initial open circuit voltage; The acquisition module is further used to acquire the power of the battery within a preset time period under a load state; The determination module is further used to determine the power consumption of the battery based on the power and load time of the battery; The determination module is further configured to determine the battery power in a current state based on the initial power and the power consumption.
10. An electronic device comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, characterized in that: When the processor executes the computer program, the method according to any one of claims 1 to 8 is implemented.