Method and device for calculating maximum power of battery and electronic equipment
By obtaining the current state parameters of the battery and using the lookup table to calculate the maximum power of the battery, the problem of the difference between the calculation results and the real state in the existing technology is solved, the power performance and energy management efficiency are improved, and the battery life is extended.
Patent Information
- Application Number
- CN202411075729.5
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-08-07
- Publication Date
- 2024-11-15
AI Technical Summary
When calculating the maximum power of the battery, the calculation results are very different from the real state, which affects the vehicle's power performance and the efficiency of the energy management system.
By obtaining the current current, battery capacity and temperature of the target battery, using a preset lookup table to determine the theoretical continuous current and theoretical instantaneous current, construct the current judgment interval, adjust the allowable current, and finally calculate the maximum power value of the battery.
It realizes fast and accurate maximum power calculation of battery status, improves vehicle power performance and energy management system efficiency, and extends battery service life.
Smart Images

Figure CN118962483A_ABST
Abstract
Description
Technical Field
[0001] One or more embodiments of the present specification relate to the field of battery technology, and in particular, to a method, device, and electronic device for calculating the maximum power of a battery. Background Art
[0002] The battery power state (State of Power, SOP) is a power state of the battery, which is used to describe the maximum power parameter that the battery can provide or absorb within a specific time. It is a dynamic indicator that reflects the battery's charging and discharging capabilities in the current state. For applications such as new energy vehicles and energy storage systems, the maximum power of the battery directly affects the vehicle's power performance and the efficiency of the energy management system. In hybrid vehicles, the internal combustion engine and lithium battery power are used as vehicle power sources. The internal combustion engine works in the hybrid vehicle's uniform speed state, while the lithium power battery works mostly when the vehicle starts, accelerates or brakes, providing or absorbing instantaneous high power for the vehicle. The peak power output and input of the battery directly affects the vehicle's rapid start, acceleration and emergency braking capabilities, which in turn affects the safety and reliability of the vehicle's operation.
[0003] Therefore, there is an urgent need for a method that can timely and correctly calculate the maximum power of the battery. However, the method used by most manufacturers on the market to calculate the maximum power of the battery is to directly obtain the result by looking up the battery instantaneous charge and discharge table and the continuous charge and discharge table. The output calculation result will be greatly different from the actual battery status, which will directly affect the vehicle's power performance and the efficiency of the energy management system. Summary of the invention
[0004] The embodiments of this specification provide a method, device and electronic device for calculating the maximum power of a battery, and the technical solution thereof is as follows: In a first aspect, an embodiment of the present specification provides a method for calculating the maximum power of a battery, the method comprising: Acquire a current current, a current battery capacity, and a current temperature of each battery pack of a target battery, wherein the target battery includes at least two of the battery packs; Querying the current battery capacity and each current temperature in a preset target query table to determine the theoretical continuous current and theoretical instantaneous current of the target battery in the current state, wherein the target query table stores a mapping relationship between capacity, temperature and current; Determine a current judgment interval of the target battery in the current state based on the theoretical continuous current and the theoretical instantaneous current, and determine an allowable current of the target battery based on the current judgment interval and the current current; A maximum power value of the target battery is determined based on the allowed current.
[0005] In a second aspect, a device for calculating the maximum power of a battery is provided, the device comprising: A first module is used to obtain a current current, a current battery capacity and a current temperature of each battery pack of a target battery, wherein the target battery includes at least two of the battery packs; The second module is used to query the current battery capacity and each current temperature in a preset target query table to determine the theoretical continuous current and theoretical instantaneous current of the target battery in the current state, wherein the target query table stores a mapping relationship between capacity, temperature and current; A third module is used to determine the current judgment interval of the target battery in the current state based on the theoretical continuous current and the theoretical instantaneous current, and determine the allowable current of the target battery based on the current judgment interval and the current current; The fourth module is used to determine the maximum power value of the target battery based on the allowed current.
[0006] In a third aspect, an electronic device is provided, including a device processor and a memory; The device processor is connected to the memory; The memory is used to store executable program code; The device processor runs a program corresponding to the executable program code by reading the executable program code stored in the memory, so as to execute the steps of the method provided in the first aspect or any possible implementation manner of the first aspect.
[0007] In a fourth aspect, a computer-readable storage medium is provided, on which a computer program is stored, and the computer-readable storage medium stores instructions, which, when the instructions are executed on a computer or a device processor, cause the computer or the device processor to execute the method provided in the first aspect or any possible implementation of the first aspect.
[0008] The beneficial effects brought by the technical solutions provided by some embodiments of this specification include at least: In one or more embodiments of the present specification, the current battery capacity of the target battery and the current temperature of each battery pack are first obtained, and then the theoretical continuous current and theoretical instantaneous current of the target battery in the current state are determined through a preset target query table. Furthermore, the current current is judged based on the current judgment interval constructed based on the theoretical continuous current and the theoretical instantaneous current, and the allowable current is determined after adjustment, and finally the maximum power value of the target battery is obtained based on the allowable current. Through the above calculation steps, the maximum power of the target battery in the real-time state can be automatically, quickly and accurately calculated, which improves the power performance of the vehicle and the efficiency of the energy management system, and the target battery can also be subjected to current reduction processing according to the calculated allowable current, thereby increasing the service life of the target battery. BRIEF DESCRIPTION OF THE DRAWINGS
[0009] In order to more clearly illustrate the technical solutions in the embodiments of the present application, the drawings required for use in the embodiments 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 creative work.
[0010] Figure 1 A schematic diagram of the system architecture of a method for calculating the maximum power of a battery provided in an embodiment of this specification; Figure 2 A flowchart of a method for calculating the maximum power of a battery provided in an embodiment of this specification; Figure 3 A schematic diagram of the structure of a maximum power calculation device for a battery provided in an embodiment of this specification; Figure 4 A schematic diagram of the structure of an electronic device provided in an embodiment of this specification. DETAILED DESCRIPTION
[0011] The technical solutions in the embodiments of the present application will be clearly and completely described below in conjunction with the drawings in the embodiments of the present application.
[0012] The terms "first", "second", "third", etc. in the description and claims of this specification and the above-mentioned drawings are used to distinguish different objects, rather than to describe a specific order. In addition, the terms "including" and "having" and any variations thereof are intended to cover non-exclusive inclusions. For example, a process, method, system, product or device that includes a series of steps or units is not limited to the listed steps or units, but optionally includes steps or units that are not listed, or optionally includes other steps or units inherent to these processes, methods, products or devices.
[0013] The following description provides examples and does not limit the scope, applicability or examples set forth in the claims. Changes may be made to the functions and arrangements of the elements described without departing from the scope of the present specification. Various processes or components may be appropriately omitted, substituted or added to each example. For example, the described method may be performed in an order different from the order described, and various steps may be added, omitted or combined. In addition, features described with respect to some examples may be combined in other examples.
[0014] See also Figure 1 , Figure 1 A schematic diagram of the system architecture of a method for calculating the maximum power of a battery provided in an embodiment of this specification is shown.
[0015] like Figure 1 As shown, the system architecture of the maximum power calculation method of the battery may at least include a terminal 10 , a server 20 and a network 30 .
[0016] The terminal 10 includes but is not limited to electronic devices such as smart phones, desktop computers, tablet computers, laptops, smart speakers, digital assistants, smart wearable devices, etc., and may also be software running on the above electronic devices, such as applications, etc. Optionally, the operating system running on the electronic device may include but is not limited to Android system, IOS system, Linux, Windows, etc. Optionally, the terminal 10 provides the user with a battery maximum power calculation service, and the terminal 10 may obtain a battery maximum power calculation instruction from an application program interface, and send a battery maximum power calculation request to the server 20.
[0017] The server 20 can provide background services for the terminal 10. According to the battery maximum power calculation request sent by the terminal 10, the server 20 will obtain a series of battery maximum power calculation instructions, and the server 20 transmits the battery maximum power calculation instructions to other terminals 10 through the network 30. Specifically, the server 20 can be an independent physical server, or a server cluster or distributed system composed of multiple physical servers, or a cloud server that provides basic cloud computing services such as cloud services, cloud databases, cloud computing, cloud functions, cloud storage, network services, cloud communications, middleware services, domain name services, security services, CDN (Content Delivery Network), and big data and artificial intelligence platforms.
[0018] The network 30 is used to provide a medium for a communication link between the terminal 10 and the server 20. The network 30 may include various connection types, such as wired or wireless communication links or optical fiber cables.
[0019] In addition, it should be noted that Figure 1 What is shown is only one system provided by the present disclosure. In practical applications, other systems may also be included, for example, more terminals may be included.
[0020] In the embodiments of the present specification, the terminal 10 and the server 20 may be directly or indirectly connected via wired or wireless communication, which is not limited in the present disclosure.
[0021] See next Figure 2 , Figure 2 The overall flow chart of a method for calculating the maximum power of a battery provided in an embodiment of the present specification is shown. The method for calculating the maximum power of a battery can be used in the server 20 .
[0022] like Figure 2 As shown, the maximum power calculation method of the battery may at least include the following steps: Step 201: Obtain the current current, current battery capacity and current temperature of each battery pack of the target battery.
[0023] Wherein, the target battery includes at least two of the battery packs.
[0024] In the embodiments of this specification, in order to calculate the maximum power of the target battery in the current state, it is necessary to first obtain the current current, current battery capacity and current temperature of the target battery in the current state. In general, a target battery may include multiple sub-battery groups, and during the actual charging and discharging process of the target battery, the internal temperature of each sub-battery group will be different. Different battery temperatures correspond to different standard theoretical parameters of the battery, so it is also necessary to obtain the current temperature of each battery group in the target battery.
[0025] Among them, the current current of the target battery can be obtained by reading the output signal of the current sensor, the real-time voltage of the target battery can be measured by the voltage sensor to predict the current battery capacity, the current temperature of each battery pack can be read by the data collector, and finally, all the required data for the measurement can be obtained from the battery management system through the communication protocol.
[0026] Step 202: Look up the current battery capacity and each current temperature in a preset target query table to determine the theoretical continuous current and theoretical instantaneous current of the target battery in the current state.
[0027] The target query table stores a mapping relationship between capacity, temperature and current.
[0028] In the embodiment of the present specification, after obtaining the current battery capacity and the current temperature of each battery pack, a query can be performed in a preset target query table. Among them, the target query table can be pre-constructed through a large number of historical battery test experiments or battery factory technical manuals, and the target query table can be represented by a cross table. In the target query table, the table row can represent the current battery capacity, the table column can represent the current temperature, and the internal unit of the table, that is, the intersection of the row and the column, represents the theoretical current, and the theoretical current may include the theoretical continuous current and the theoretical instantaneous current. Therefore, it is only necessary to enter the current battery capacity and each current temperature in the preset target query table to determine the theoretical continuous current and theoretical instantaneous current of the target battery in the current state. Furthermore, since there are multiple battery pack temperature queries, multiple theoretical continuous currents and theoretical instantaneous currents can be obtained, and they need to be screened again to select the theoretical continuous current and theoretical instantaneous current that can represent the target battery in the current state.
[0029] Among them, the theoretical continuous current refers to the maximum current value that the battery can stably output during long-term operation. This value is usually determined based on the chemical characteristics and design of the battery. At this current, the battery can work for a long time without overheating, performance degradation or damage. The theoretical instantaneous current refers to the maximum current value that the battery can provide in a short period of time. It usually refers to the peak current that the battery can output instantly. This value reflects the pulse output capability of the battery. The theoretical instantaneous current is crucial for application scenarios that require short-term high current, such as starting the engine, short-circuit protection testing, etc. Although the battery can provide a large current instantly, the duration is very short and cannot be maintained for a long time.
[0030] In one possible implementation, the target query table includes a first query table and a second query table, the first query table stores a mapping relationship between capacity, temperature and continuous current, and the second query table stores a mapping relationship between capacity, temperature and instantaneous current; The querying the current battery capacity and each current temperature in a preset target query table to determine the theoretical continuous current and theoretical instantaneous current of the target battery in the current state includes: Query the current battery capacity and each current temperature in the first query table to obtain a continuous current corresponding to each current temperature; querying the current battery capacity and each current temperature in the second query table to obtain the instantaneous current corresponding to each current temperature; The minimum values of the continuous currents and the instantaneous currents are determined respectively to obtain the theoretical continuous current and the theoretical instantaneous current of the target battery in the current state.
[0031] In the embodiment of the present specification, a first query table and a second query table can be set in the target query table library. The mapping relationship between capacity, temperature and continuous current is stored in the first query table, which can be used to query the current battery capacity and each current temperature to obtain the continuous current corresponding to each current temperature. The mapping relationship between capacity, temperature and instantaneous current is stored in the second query table, which can be used to query the current battery capacity and each current temperature to obtain the instantaneous current corresponding to each current temperature. Next, since the target battery is composed of multiple sub-battery groups, in order to ensure that each sub-battery group can work normally, it is necessary to find the minimum continuous current value and the minimum instantaneous current value corresponding to each sub-battery group, and use this as the standard to ensure the normal charging and discharging of the entire target battery. Therefore, the minimum value of each continuous current is first determined by a comparator, and used as the theoretical continuous current of the target battery in the current state, and then the minimum value of each instantaneous current is determined in the same way, and used as the theoretical instantaneous current of the target battery in the current state.
[0032] Step 203: determine a current judgment interval of the target battery in the current state based on the theoretical continuous current and the theoretical instantaneous current, and determine an allowable current of the target battery based on the current judgment interval and the current current.
[0033] In the embodiment of the present specification, under normal circumstances, when the battery capacity and the temperature of each battery are the same, the theoretical continuous current of the target battery must be less than the theoretical instantaneous current, and the theoretical instantaneous current is generally used as a reference value for the maximum allowable current, that is, the allowable current of the target battery will not exceed the theoretical instantaneous current, and needs to be determined according to the actual battery discharge situation, so that after obtaining the theoretical continuous current and theoretical instantaneous current of the target battery, the current size of the target battery can be divided into multiple current judgment intervals by the theoretical continuous current value and the theoretical instantaneous current value. As an example, it can be divided into three intervals: less than the theoretical continuous current, greater than the theoretical continuous current and less than the theoretical instantaneous current, and greater than the theoretical instantaneous current. Then, determine the current judgment interval in which the current current of the target battery is obtained, and each current judgment interval corresponds to an adjustment mode or adjustment ratio. Finally, the allowable current of the target battery is determined by the obtained adjustment mode or adjustment ratio, and combined with the theory.
[0034] In one possible implementation manner, the determining the current judgment interval of the target battery in the current state based on the theoretical continuous current and the theoretical instantaneous current includes: Based on the theoretical continuous current and the theoretical instantaneous current, a current judgment interval of the target battery in the current state is determined, the current judgment interval includes a first current judgment interval, a second current judgment interval and a third current judgment interval, the first current judgment interval is characterized by that the current of the target battery is not greater than the theoretical continuous current, the second current judgment interval is characterized by that the current of the target battery is greater than the theoretical continuous current and less than the theoretical instantaneous current, and the third current judgment interval is characterized by that the current of the target battery is not less than the theoretical instantaneous current.
[0035] In the embodiment of the present specification, after obtaining the theoretical continuous current value and the theoretical instantaneous current value, the theoretical continuous current value can be used as the left endpoint value of the judgment interval, and the theoretical instantaneous current can be used as the right endpoint value of the judgment interval, and the current judgment interval can be divided into a first current judgment interval, a second current judgment interval, and a third current judgment interval. The first current judgment interval is used to indicate the current interval in which the target battery is not greater than the theoretical continuous current, the second current judgment interval is used to indicate the current interval in which the target battery is greater than the theoretical continuous current and less than the theoretical instantaneous current, and the third current judgment interval is used to indicate the current interval in which the target battery is not less than the theoretical instantaneous current.
[0036] In one possible implementation, the determining the allowable current of the target battery based on the current judgment interval and the current current includes: Determine a current judgment interval corresponding to the current current, and determine an allowable ratio based on the current judgment interval, wherein the allowable ratio is a ratio between an allowable current of the target battery and the theoretical instantaneous current; The allowable current of the target battery is determined based on the allowable ratio.
[0037] In the embodiments of the present specification, after the current judgment interval of the target battery in the current state is determined by the theoretical continuous current and the theoretical instantaneous current, the current judgment interval corresponding to the current current of the target battery is determined. Then, each current judgment interval corresponds to an allowable ratio, which is characterized by the ratio between the allowable current of the target battery and the theoretical instantaneous current. As an example, the allowable ratio corresponding to the first current judgment interval is 1, the allowable ratio corresponding to the second current judgment interval is 0.8, and the allowable ratio corresponding to the third current judgment interval is 0.7. Furthermore, after determining the allowable ratio, the allowable current of the target battery is determined based on the product value of the allowable ratio and the theoretical instantaneous current.
[0038] In one possible implementation, determining the allowable ratio based on the current judgment interval includes: When the current condition satisfies a first condition, the ratio is allowed to be set to a target ratio, the first condition being that the current judgment interval is the second current judgment interval and the current current satisfies a second condition, the second condition being that the first integral difference is greater than the integral value of the theoretical instantaneous current within a first preset time length, and the first integral difference is the integral difference between the current current and the theoretical continuous current; When the current condition satisfies the third condition, the allowable ratio is set to the target ratio, the third condition is that the current judgment interval is the third current judgment interval and the current current satisfies the fourth condition, the fourth condition is that the second integral difference is greater than the integral value of the theoretical instantaneous current within the second preset time length, the second integral difference is the integral difference between the current current and the theoretical instantaneous current, and the second preset time length is less than the first preset time length; When the current condition satisfies neither the first condition nor the third condition, the allowable ratio is set to the full ratio, and the target ratio is smaller than the full ratio.
[0039] In the embodiments of this specification, when determining the allowable ratio by the current judgment interval, the determination method can be divided into three situation modes. The first situation mode is that the current condition satisfies the first condition, that is, the current judgment interval corresponding to the current current at this time is the second current judgment interval, and it is also necessary to satisfy that the integral difference between the current current and the theoretical continuous current is greater than the integral value of the theoretical instantaneous current within the first preset time length.
[0040] The second situation mode is that the current condition satisfies the third condition, that is, the current judgment interval corresponding to the current current at this time is the third current judgment interval, and it is also necessary to satisfy that the integral difference between the current current and the theoretical instantaneous current is greater than the integral value of the theoretical instantaneous current within the second preset time length. Among them, the first preset time length and the second preset time length can be automatically adjusted and set according to the actual situation, but the second preset time length should be set to be less than the first preset time length. As an example, the first preset time length can generally be set to 30s, and the second preset time length can be set to 5s.
[0041] The third situation mode is when the current condition satisfies neither the first condition nor the third condition, that is, it is characterized by the current judgment interval corresponding to the current current being the first current judgment interval, or the corresponding current judgment interval being the second current judgment interval but not satisfying that the integral difference between the current current and the theoretical continuous current is greater than the integral value of the theoretical instantaneous current within the first preset time length, or the corresponding current judgment interval being the third current judgment interval but not satisfying that the integral difference between the current current and the theoretical instantaneous current is greater than the integral value of the theoretical instantaneous current within the second preset time length.
[0042] Next, it is determined which of the above-set situation modes the current current of the target battery meets. When the first or second situation mode is met, the determined allowable ratio is the target ratio, and when the third situation mode is met, the determined allowable ratio is the full ratio. Among them, the target ratio is less than the full ratio, and the full ratio is set to 1, that is, the allowable current at this time is the same as the theoretical instantaneous current. The target ratio can generally be set to 0.8, and can also be adjusted according to factors such as the actual battery type or the test environment temperature.
[0043] Step 204: Determine the maximum power value of the target battery based on the allowed current.
[0044] In the embodiments of this specification, the target battery is generally charged and discharged in a constant voltage mode. Therefore, after obtaining the allowable current of the target battery, the maximum power value of the target battery can be calculated based on the constant voltage in the current state combined with the allowable current. The battery database can also be directly queried. In the battery database, the allowable current of each battery corresponds to a maximum power. Therefore, you only need to enter the allowable current in the current state to get the maximum power value of the target battery.
[0045] In one possible implementation, determining the maximum power value of the target battery based on the allowed current includes: Obtaining a constant voltage of the target battery in the current state; A maximum power value of the target battery is determined based on the allowed current and the constant voltage.
[0046] In the embodiments of this specification, when the maximum power value is determined by the allowed current, the constant voltage of the target battery in the current state can be directly retrieved through a voltage sensor or in a battery management system. Then, the product value of the allowed current and the constant voltage is calculated as the maximum power value of the target battery.
[0047] In one possible implementation manner, after determining the maximum power value of the target battery based on the allowed current, the method further includes: When the current current exceeds the allowed current, the current current is reduced until the current current is less than the allowed current; The allowed current in the current state is used as the theoretical instantaneous current in the next round of maximum power calculation process.
[0048] In the embodiments of this specification, after calculating the maximum power of the target battery, in order to ensure the long-term stable charge and discharge performance of the battery, it is necessary to reduce the current in the target battery when the current current exceeds the allowable current, so as to ensure the reliability and life of the battery system under normal operating conditions, until the current current is less than the allowable current calculated in the current state, and then the current reduction process is terminated. At the same time, in the initial calculation stage, after determining the theoretical instantaneous current in the current state through the preset rated target query table, the theoretical instantaneous current value can be iteratively updated in real time, and the allowable current value in the current state is used as the theoretical instantaneous current value in the next round of maximum power calculation process.
[0049] The above is a description of a specific embodiment of the specification. Other embodiments are within the scope of the appended claims. In some cases, the actions or steps recorded in the claims can be performed in an order different from that in the embodiments and still achieve the desired results. In addition, the processes depicted in the drawings do not necessarily require the specific order or continuous order shown to achieve the desired results. In some embodiments, multitasking and parallel processing are also possible or may be advantageous.
[0050] See next Figure 3 , Figure 3 The structure diagram of a maximum power calculation device for a battery provided in an embodiment of this specification is shown. It should be noted that: Figure 3 The maximum power calculation device of the battery shown is used to execute the present application Figure 2For the convenience of explanation, only the part related to the embodiment of the present application is shown. For the specific technical details not disclosed, please refer to the present application. Figure 2 The embodiment shown.
[0051] like Figure 3 As shown, the maximum power calculation device of the battery may at least include: The first module 301 is used to obtain the current current, current battery capacity and current temperature of each battery pack of a target battery, wherein the target battery includes at least two battery packs; The second module 302 is used to query the current battery capacity and each current temperature in a preset target query table to determine the theoretical continuous current and theoretical instantaneous current of the target battery in the current state, wherein the target query table stores a mapping relationship between capacity, temperature and current; The third module 303 is used to determine the current judgment interval of the target battery in the current state based on the theoretical continuous current and the theoretical instantaneous current, and determine the allowable current of the target battery based on the current judgment interval and the current current; The fourth module 304 is configured to determine the maximum power value of the target battery based on the allowed current.
[0052] In one possible implementation, the second module 302 is specifically used for: The querying the current battery capacity and each current temperature in a preset target query table to determine the theoretical continuous current and theoretical instantaneous current of the target battery in the current state includes: Query the current battery capacity and each current temperature in the first query table to obtain a continuous current corresponding to each current temperature; querying the current battery capacity and each current temperature in the second query table to obtain the instantaneous current corresponding to each current temperature; The minimum values of the continuous currents and the instantaneous currents are determined respectively to obtain the theoretical continuous current and the theoretical instantaneous current of the target battery in the current state.
[0053] In one possible implementation, the third module 303 is specifically used for: Based on the theoretical continuous current and the theoretical instantaneous current, a current judgment interval of the target battery in the current state is determined, the current judgment interval includes a first current judgment interval, a second current judgment interval and a third current judgment interval, the first current judgment interval is characterized by that the current of the target battery is not greater than the theoretical continuous current, the second current judgment interval is characterized by that the current of the target battery is greater than the theoretical continuous current and less than the theoretical instantaneous current, and the third current judgment interval is characterized by that the current of the target battery is not less than the theoretical instantaneous current.
[0054] In one possible implementation, the third module 303 is further specifically used for: Determine a current judgment interval corresponding to the current current, and determine an allowable ratio based on the current judgment interval, wherein the allowable ratio is a ratio between an allowable current of the target battery and the theoretical instantaneous current; The allowable current of the target battery is determined based on the allowable ratio.
[0055] In one possible implementation, the third module 303 is further specifically used for: When the current condition satisfies a first condition, the ratio is allowed to be set to a target ratio, the first condition being that the current judgment interval is the second current judgment interval and the current current satisfies a second condition, the second condition being that the first integral difference is greater than the integral value of the theoretical instantaneous current within a first preset time length, and the first integral difference is the integral difference between the current current and the theoretical continuous current; When the current condition satisfies the third condition, the allowable ratio is set to the target ratio, the third condition is that the current judgment interval is the third current judgment interval and the current current satisfies the fourth condition, the fourth condition is that the second integral difference is greater than the integral value of the theoretical instantaneous current within the second preset time length, the second integral difference is the integral difference between the current current and the theoretical instantaneous current, and the second preset time length is less than the first preset time length; When the current condition satisfies neither the first condition nor the third condition, the allowable ratio is set to the full ratio, and the target ratio is smaller than the full ratio.
[0056] In one possible implementation, the fourth module 304 is specifically used for: Obtaining a constant voltage of the target battery in the current state; A maximum power value of the target battery is determined based on the allowed current and the constant voltage.
[0057] In one possible implementation, the fourth module 304 is further configured to: When the current current exceeds the allowed current, the current current is reduced until the current current is less than the allowed current; The allowed current in the current state is used as the theoretical instantaneous current in the next round of maximum power calculation process.
[0058] Those skilled in the art can clearly understand that the technical solutions of the embodiments of the present application can be implemented with the help of software and / or hardware. The "unit" and "module" in this specification refer to software and / or hardware that can independently complete or cooperate with other components to complete specific functions, where the hardware can be, for example, a field programmable gate array (FPGA), an integrated circuit (IC), etc.
[0059] Each processing unit and / or module of the embodiments of the present application may be implemented by an analog circuit that implements the functions described in the embodiments of the present application, or may be implemented by software that executes the functions described in the embodiments of the present application.
[0060] See next Figure 4 , Figure 4 A schematic diagram of the structure of an electronic device provided in an embodiment of this specification is shown.
[0061] like Figure 4 As shown, the electronic device 400 may include: at least one device processor 401 , at least one network interface 404 , a user interface 403 , a memory 405 , and at least one communication bus 402 .
[0062] The communication bus 402 may be used to realize the connection and communication among the above-mentioned components.
[0063] The user interface 403 may include buttons, and the optional user interface may also include a standard wired interface or a wireless interface.
[0064] The network interface 404 may include, but is not limited to, a Bluetooth module, an NFC module, a Wi-Fi module, etc.
[0065] Among them, the device processor 401 may include one or more processing cores. The device processor 401 uses various interfaces and lines to connect various parts within the entire electronic device 400, and executes various functions and processes data of the electronic device 400 by running or executing instructions, programs, code sets or instruction sets stored in the memory 405, and calling data stored in the memory 405. Optionally, the device processor 401 can be implemented in at least one hardware form of DSP, FPGA, and PLA. The device processor 401 can integrate one or a combination of CPU, GPU, modem, etc. Among them, the CPU mainly processes the operating system, user interface, and application programs; the GPU is responsible for rendering and drawing the content to be displayed on the display screen; the modem is used to handle wireless communications. It can be understood that the above-mentioned modem may not be integrated into the device processor 401, and it can be implemented separately through a chip.
[0066] The memory 405 may include a RAM or a ROM. Optionally, the memory 405 includes a non-transitory computer-readable medium. The memory 405 may be used to store instructions, programs, codes, code sets or instruction sets. The memory 405 may include a program storage area and a data storage area, wherein the program storage area may store instructions for implementing an operating system, instructions for at least one function (such as a touch function, a sound playback function, an image playback function, etc.), instructions for implementing the above-mentioned method embodiments, etc.; the data storage area may store data involved in the above-mentioned method embodiments, etc. The memory 405 may optionally be at least one storage device located away from the aforementioned device processor 401. As Figure 4 As shown, the memory 405 as a computer storage medium may include an operating system, a network communication module, a user interface module, and program instructions.
[0067] Specifically, the device processor 401 may be used to call a battery maximum power calculation application stored in the memory 405, and specifically perform the following operations: Acquire a current current, a current battery capacity, and a current temperature of each battery pack of a target battery, wherein the target battery includes at least two of the battery packs; Querying the current battery capacity and each current temperature in a preset target query table to determine the theoretical continuous current and theoretical instantaneous current of the target battery in the current state, wherein the target query table stores a mapping relationship between capacity, temperature and current; Determine a current judgment interval of the target battery in the current state based on the theoretical continuous current and the theoretical instantaneous current, and determine an allowable current of the target battery based on the current judgment interval and the current current; A maximum power value of the target battery is determined based on the allowed current.
[0068] As an optional embodiment of this specification, it is characterized in that the target query table includes a first query table and a second query table, the first query table stores a mapping relationship between capacity, temperature and continuous current, and the second query table stores a mapping relationship between capacity, temperature and instantaneous current; The querying the current battery capacity and each current temperature in a preset target query table to determine the theoretical continuous current and theoretical instantaneous current of the target battery in the current state includes: Query the current battery capacity and each current temperature in the first query table to obtain a continuous current corresponding to each current temperature; querying the current battery capacity and each current temperature in the second query table to obtain the instantaneous current corresponding to each current temperature; The minimum values of the continuous currents and the instantaneous currents are determined respectively to obtain the theoretical continuous current and the theoretical instantaneous current of the target battery in the current state.
[0069] As an optional embodiment of this specification, it is characterized in that the determining the current judgment interval of the target battery in the current state based on the theoretical continuous current and the theoretical instantaneous current includes: Based on the theoretical continuous current and the theoretical instantaneous current, a current judgment interval of the target battery in the current state is determined, the current judgment interval includes a first current judgment interval, a second current judgment interval and a third current judgment interval, the first current judgment interval is characterized by that the current of the target battery is not greater than the theoretical continuous current, the second current judgment interval is characterized by that the current of the target battery is greater than the theoretical continuous current and less than the theoretical instantaneous current, and the third current judgment interval is characterized by that the current of the target battery is not less than the theoretical instantaneous current.
[0070] As an optional embodiment of this specification, it is characterized in that the determining the allowable current of the target battery based on the current judgment interval and the current current includes: Determine a current judgment interval corresponding to the current current, and determine an allowable ratio based on the current judgment interval, wherein the allowable ratio is a ratio between an allowable current of the target battery and the theoretical instantaneous current; The allowable current of the target battery is determined based on the allowable ratio.
[0071] As an optional embodiment of this specification, it is characterized in that the determining the allowable ratio based on the current judgment interval includes: When the current condition satisfies a first condition, the ratio is allowed to be set to a target ratio, the first condition being that the current judgment interval is the second current judgment interval and the current current satisfies a second condition, the second condition being that the first integral difference is greater than the integral value of the theoretical instantaneous current within a first preset time length, and the first integral difference is the integral difference between the current current and the theoretical continuous current; When the current condition satisfies the third condition, the allowable ratio is set to the target ratio, the third condition is that the current judgment interval is the third current judgment interval and the current current satisfies the fourth condition, the fourth condition is that the second integral difference is greater than the integral value of the theoretical instantaneous current within the second preset time length, the second integral difference is the integral difference between the current current and the theoretical instantaneous current, and the second preset time length is less than the first preset time length; When the current condition satisfies neither the first condition nor the third condition, the allowable ratio is set to the full ratio, and the target ratio is smaller than the full ratio.
[0072] As an optional embodiment of this specification, it is characterized in that determining the maximum power value of the target battery based on the allowed current includes: Obtaining a constant voltage of the target battery in the current state; A maximum power value of the target battery is determined based on the allowed current and the constant voltage.
[0073] As an optional embodiment of this specification, it is characterized in that after determining the maximum power value of the target battery based on the allowed current, it also includes: When the current current exceeds the allowed current, the current current is reduced until the current current is less than the allowed current; The allowed current in the current state is used as the theoretical instantaneous current in the next round of maximum power calculation process.
[0074] The embodiments of this specification also provide a computer-readable storage medium on which a computer program is stored, and when the program is executed by a processor, the steps of the above method are implemented. The computer-readable storage medium may include, but is not limited to, any type of disk, including a floppy disk, an optical disk, a DVD, a CD-ROM, a micro drive, and a magneto-optical disk, a ROM, a RAM, an EPROM, an EEPROM, a DRAM, a VRAM, a flash memory device, a magnetic card or an optical card, a nanosystem (including a molecular memory IC), or any type of medium or device suitable for storing instructions and / or data.
[0075] It should be noted that, for the aforementioned method embodiments, for the sake of simplicity, they are all expressed as a series of action combinations, but those skilled in the art should be aware that the present application is not limited by the described order of actions, because according to the present application, certain steps can be performed in other orders or simultaneously. Secondly, those skilled in the art should also be aware that the embodiments described in the specification are all preferred embodiments, and the actions and modules involved are not necessarily required by the present application.
[0076] In the above embodiments, the description of each embodiment has its own emphasis. For parts that are not described in detail in a certain embodiment, reference can be made to the relevant descriptions of other embodiments.
[0077] In the several embodiments provided in the present application, it should be understood that the disclosed devices can be implemented in other ways. For example, the device embodiments described above are only schematic, such as the division of the units, which 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 service interfaces, and the indirect coupling or communication connection of devices or units can be electrical or other forms.
[0078] 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.
[0079] In addition, each functional unit in each embodiment of the present application may be integrated into one processing unit, or each unit may exist physically separately, or two or more units may be integrated into one unit. The above-mentioned integrated unit may be implemented in the form of hardware or in the form of software functional units.
[0080] 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 memory. Based on this understanding, the technical solution of the present application, or the part that contributes to the prior art, or all or part of the technical solution can be embodied in the form of a software product. The computer software product is stored in a memory, including a number of instructions to enable a computer device (which can be a personal computer, server or network device, etc.) to execute all or part of the steps of the method described in each embodiment of the present application. The aforementioned memory includes: U disk, read-only memory (ROM), random access memory (RAM), mobile hard disk, disk or optical disk and other media that can store program codes.
[0081] A person skilled in the art may understand that all or part of the steps in the various methods of the above embodiments may be completed by entering a program to instruct related hardware, and the program may be stored in a computer-readable memory, which may include a flash drive, a read-only memory (ROM), a random access memory (RAM), a magnetic disk or an optical disk, etc.
[0082] The above is a description of a specific embodiment of the specification. Other embodiments are within the scope of the appended claims. In some cases, the actions or steps recorded in the claims can be performed in an order different from that in the embodiments and still achieve the desired results. In addition, the processes depicted in the drawings do not necessarily require the specific order or continuous order shown to achieve the desired results. In some embodiments, multitasking and parallel processing are also possible or may be advantageous.
Claims
1. A method for calculating the maximum power of a battery, characterized in that: The method comprises: Acquire a current current, a current battery capacity, and a current temperature of each battery pack of a target battery, wherein the target battery includes at least two of the battery packs; Querying the current battery capacity and each current temperature in a preset target query table to determine the theoretical continuous current and theoretical instantaneous current of the target battery in the current state, wherein the target query table stores a mapping relationship between capacity, temperature and current; Determine a current judgment interval of the target battery in the current state based on the theoretical continuous current and the theoretical instantaneous current, and determine an allowable current of the target battery based on the current judgment interval and the current current; A maximum power value of the target battery is determined based on the allowed current.
2. The method according to claim 1, characterized in that The target query table includes a first query table and a second query table, wherein the first query table stores a mapping relationship between capacity, temperature and continuous current, and the second query table stores a mapping relationship between capacity, temperature and instantaneous current; The querying the current battery capacity and each current temperature in a preset target query table to determine the theoretical continuous current and theoretical instantaneous current of the target battery in the current state includes: Query the current battery capacity and each current temperature in the first query table to obtain a continuous current corresponding to each current temperature; querying the current battery capacity and each current temperature in the second query table to obtain the instantaneous current corresponding to each current temperature; The minimum values of the continuous currents and the instantaneous currents are determined respectively to obtain the theoretical continuous current and the theoretical instantaneous current of the target battery in the current state.
3. The method according to claim 1, characterized in that The determining the current judgment interval of the target battery in the current state based on the theoretical continuous current and the theoretical instantaneous current includes: Based on the theoretical continuous current and the theoretical instantaneous current, a current judgment interval of the target battery in the current state is determined, the current judgment interval includes a first current judgment interval, a second current judgment interval and a third current judgment interval, the first current judgment interval is characterized by that the current of the target battery is not greater than the theoretical continuous current, the second current judgment interval is characterized by that the current of the target battery is greater than the theoretical continuous current and less than the theoretical instantaneous current, and the third current judgment interval is characterized by that the current of the target battery is not less than the theoretical instantaneous current.
4. The method according to claim 3, characterized in that The determining the allowable current of the target battery based on the current judgment interval and the current current includes: Determine a current judgment interval corresponding to the current current, and determine an allowable ratio based on the current judgment interval, wherein the allowable ratio is a ratio between an allowable current of the target battery and the theoretical instantaneous current; The allowable current of the target battery is determined based on the allowable ratio.
5. The method according to claim 4, characterized in that The determining of the allowable ratio based on the current judgment interval includes: When the current condition satisfies a first condition, the ratio is allowed to be set to a target ratio, the first condition being that the current judgment interval is the second current judgment interval and the current current satisfies a second condition, the second condition being that the first integral difference is greater than the integral value of the theoretical instantaneous current within a first preset time length, and the first integral difference is the integral difference between the current current and the theoretical continuous current; When the current condition satisfies the third condition, the allowable ratio is set to the target ratio, the third condition is that the current judgment interval is the third current judgment interval and the current current satisfies the fourth condition, the fourth condition is that the second integral difference is greater than the integral value of the theoretical instantaneous current within the second preset time length, the second integral difference is the integral difference between the current current and the theoretical instantaneous current, and the second preset time length is less than the first preset time length; When the current condition satisfies neither the first condition nor the third condition, the allowable ratio is set to the full ratio, and the target ratio is smaller than the full ratio.
6. The method according to claim 1, characterized in that The determining the maximum power value of the target battery based on the allowed current includes: Obtaining a constant voltage of the target battery in the current state; A maximum power value of the target battery is determined based on the allowed current and the constant voltage.
7. The method according to claim 1, characterized in that After determining the maximum power value of the target battery based on the allowed current, the method further includes: When the current current exceeds the allowed current, the current current is reduced until the current current is less than the allowed current; The allowed current in the current state is used as the theoretical instantaneous current in the next round of maximum power calculation process.
8. A device for calculating the maximum power of a battery, characterized in that: The device comprises: A first module is used to obtain a current current, a current battery capacity and a current temperature of each battery pack of a target battery, wherein the target battery includes at least two of the battery packs; The second module is used to query the current battery capacity and each current temperature in a preset target query table to determine the theoretical continuous current and theoretical instantaneous current of the target battery in the current state, wherein the target query table stores a mapping relationship between capacity, temperature and current; A third module is used to determine the current judgment interval of the target battery in the current state based on the theoretical continuous current and the theoretical instantaneous current, and determine the allowable current of the target battery based on the current judgment interval and the current current; The fourth module is used to determine the maximum power value of the target battery based on the allowed current.
9. 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 steps of the method according to any one of claims 1 to 7 are implemented.
10. A computer-readable storage medium having a computer program stored thereon, wherein the computer-readable storage medium has instructions stored therein, and when the instructions are executed on a computer or a processor, the computer or the processor executes the steps of the method according to any one of claims 1 to 7.
